diff --git a/app/api/biometrics/watch-motion/[id]/route.ts b/app/api/biometrics/watch-motion/[id]/route.ts new file mode 100644 index 000000000..7a8f0e8af --- /dev/null +++ b/app/api/biometrics/watch-motion/[id]/route.ts @@ -0,0 +1,14 @@ +import { biometricsDb } from '@/src/db' +import { getWatchMotionFile } from '@/src/biometrics/references/watch-motion' + +export const runtime = 'nodejs' +export const dynamic = 'force-dynamic' + +/** The stored, trimmed canonical file: byte-for-byte what training imports. */ +export async function GET(_request: Request, { params }: { params: Promise<{ id: string }> }): Promise { + const { id } = await params + if (!/^[1-9]\d{0,15}$/.test(id)) return Response.json({ error: 'Invalid id' }, { status: 400 }) + const file = getWatchMotionFile(biometricsDb, Number(id)) + if (file === null) return Response.json({ error: 'Not found' }, { status: 404 }) + return new Response(file, { headers: { 'Content-Type': 'application/json' } }) +} diff --git a/app/api/biometrics/watch-motion/route.test.ts b/app/api/biometrics/watch-motion/route.test.ts new file mode 100644 index 000000000..02acc67fe --- /dev/null +++ b/app/api/biometrics/watch-motion/route.test.ts @@ -0,0 +1,168 @@ +// @vitest-environment node +import { createHash } from 'node:crypto' +import { beforeEach, expect, it, vi } from 'vitest' + +const state = vi.hoisted(() => ({ db: null as unknown, raw: null as { exec: (sql: string) => void } | null })) +vi.mock('@/src/db', async () => { + const Database = (await import('better-sqlite3')).default + const { drizzle } = await import('drizzle-orm/better-sqlite3') + const { migrate } = await import('drizzle-orm/better-sqlite3/migrator') + const schema = await import('@/src/db/biometrics-schema') + const raw = new Database(':memory:') + const db = drizzle(raw, { schema }) + migrate(db, { migrationsFolder: 'src/db/biometrics-migrations' }) + state.db = db + state.raw = raw + return { biometricsDb: db } +}) + +const { POST, GET } = await import('./route') +const { GET: GET_ONE } = await import('./[id]/route') + +const FROM = 1_793_618_344_598 +const TO = FROM + 8 * 3600_000 +const FIRST_BIN = Math.floor(FROM / 2000) * 2000 // overlaps the start edge, so it is kept + +function file(version: 'watch-motion-v1' | 'watch-motion-v2', starts: number[], extra: Record = {}) { + const axes = version === 'watch-motion-v2' ? { meanX: starts.map(() => 0.1), meanY: starts.map(() => -0.2), meanZ: starts.map(() => 0.97) } : {} + return { + version, recordedFromMs: FROM, recordedToMs: TO, timeZone: 'America/Los_Angeles', utcOffsetSeconds: -28800, + sampleRateHz: 50, binSeconds: 2, jerkThresholdGPerSecond: 1, device: 'Apple Watch · watchOS 26.6', + bins: { startMs: starts, samples: starts.map(() => 100), meanMagnitude: starts.map(() => 1), magnitudeVariance: starts.map((_, i) => i * 1e-6), + maxJerk: starts.map((_, i) => i % 7), movingSamples: starts.map((_, i) => i % 3), ...axes }, + ...extra, + } +} +const night = Array.from({ length: 90 }, (_, i) => FIRST_BIN + i * 2000) +/** The same file with a bin prepended to every column, as the Watch recorder's leftovers. */ +function withStray(f: ReturnType, startMs: number) { + return { ...f, bins: Object.fromEntries(Object.entries(f.bins).map(([column, values]) => [column, [column === 'startMs' ? startMs : 1, ...values]])) } +} + +const post = (body: unknown, side = 'left', headers: Record = {}) => POST(new Request(`http://pod/api/biometrics/watch-motion?side=${side}`, { + method: 'POST', headers: { 'content-type': 'application/json', ...headers }, body: typeof body === 'string' ? body : JSON.stringify(body), +})) + +beforeEach(() => state.raw?.exec('DELETE FROM watch_motion_captures')) + +it('accepts a v1 file and serves the stored canonical file back byte-for-byte', async () => { + const response = await post(file('watch-motion-v1', night)) + expect(response.status).toBe(200) + const body = await response.json() + expect(body).toEqual({ id: expect.any(Number), side: 'left', version: 'watch-motion-v1', recordedFromMs: FROM, recordedToMs: TO, bins: 90, trimmedBins: 0, status: 'created' }) + const stored = await GET_ONE(new Request('http://pod'), { params: Promise.resolve({ id: String(body.id) }) }) + expect(stored.headers.get('content-type')).toBe('application/json') + const text = await stored.text() + expect(JSON.parse(text)).toEqual(file('watch-motion-v1', night)) + // Keys sorted at every level, like the iOS encoder. + expect(text.indexOf('"binSeconds"')).toBeLessThan(text.indexOf('"bins"')) + expect(text.indexOf('"magnitudeVariance"')).toBeLessThan(text.indexOf('"startMs"')) + const [listed] = await (await GET(new Request('http://pod/api/biometrics/watch-motion?side=left'))).json() + expect(listed).toMatchObject({ id: body.id, sha256: createHash('sha256').update(text).digest('hex'), bins: 90, trimmedBins: 0 }) +}) + +it('accepts a v2 file with axis means', async () => { + const response = await post(file('watch-motion-v2', night), 'right') + expect(response.status).toBe(200) + const body = await response.json() + expect(body).toMatchObject({ side: 'right', version: 'watch-motion-v2', bins: 90, status: 'created' }) + const stored = JSON.parse(await (await GET_ONE(new Request('http://pod'), { params: Promise.resolve({ id: String(body.id) }) })).text()) + expect(stored.bins.meanZ).toHaveLength(90) +}) + +it('trims a stray bin from an earlier recording and counts it', async () => { + const stray = FROM - 20 * 3600_000 - (FROM - 20 * 3600_000) % 2000 + const after = Math.ceil(TO / 2000) * 2000 + const response = await post(file('watch-motion-v2', [stray, stray + 2000, ...night, after])) + expect(await response.json()).toMatchObject({ bins: 90, trimmedBins: 3, status: 'created' }) + const [listed] = await (await GET(new Request(`http://pod/api/biometrics/watch-motion?startDate=${FROM}&endDate=${new Date(TO).toISOString()}`))).json() + expect(listed).toMatchObject({ bins: 90, trimmedBins: 3, recordedFromMs: FROM }) + const stored = JSON.parse(await (await GET_ONE(new Request('http://pod'), { params: Promise.resolve({ id: String(listed.id) }) })).text()) + expect(stored.bins.startMs[0]).toBe(FIRST_BIN) + expect(stored.bins.meanX).toHaveLength(90) + // Each kept bin keeps its own values. + expect(stored.bins.maxJerk).toEqual(night.map((_, i) => (i + 2) % 7)) +}) + +it('reports unchanged for identical content and replaced for new content of the same night', async () => { + const first = await (await post(file('watch-motion-v1', night))).json() + // A fixed app resending without the stray bin stores the same trimmed file. + const again = await (await post(withStray(file('watch-motion-v1', night), FIRST_BIN - 40 * 3600_000))).json() + expect(again).toMatchObject({ id: first.id, status: 'unchanged', trimmedBins: 1 }) + const replaced = await (await post(file('watch-motion-v2', night))).json() + expect(replaced).toMatchObject({ id: first.id, status: 'replaced', version: 'watch-motion-v2' }) + expect(await (await GET(new Request('http://pod/api/biometrics/watch-motion'))).json()).toHaveLength(1) + // The other side is a separate capture. + expect(await (await post(file('watch-motion-v1', night), 'right')).json()).toMatchObject({ status: 'created' }) +}) + +it('rejects raw readings, oversize bodies and invalid files', async () => { + const rawResponse = await post(file('watch-motion-v1', night, { raw: [[FROM, 0, 0, 1]] })) + expect(rawResponse.status).toBe(400) + expect(await rawResponse.json()).toEqual({ error: 'raw readings are not accepted' }) + + expect((await post('x', 'left', { 'content-length': String(8 * 1024 * 1024 + 1) })).status).toBe(413) + const chunk = new Uint8Array(1) + Object.defineProperty(chunk, 'byteLength', { value: 8 * 1024 * 1024 + 1 }) + const stream = new ReadableStream({ start(controller) { + controller.enqueue(chunk) + controller.close() + } }) + const streamed = await POST(new Request('http://pod/api/biometrics/watch-motion?side=left', { method: 'POST', body: stream, duplex: 'half' } as RequestInit)) + expect(streamed.status).toBe(413) + + const mismatched = file('watch-motion-v1', night) + mismatched.bins.maxJerk.pop() + const cases: Array<[unknown, RegExp]> = [ + [mismatched, /bins\.maxJerk differ/], + [file('watch-motion-v1', night, { version: 'watch-motion-v3' }), /version/], + [file('watch-motion-v1', night, { binSeconds: 1 }), /binSeconds/], + [file('watch-motion-v2', night, { bins: { ...file('watch-motion-v1', night).bins } }), /v2 requires/], + [file('watch-motion-v1', night, { bins: file('watch-motion-v2', night).bins }), /v1 must not/], + [file('watch-motion-v1', [FIRST_BIN, FIRST_BIN + 1000]), /multiple of 2000/], + [file('watch-motion-v1', [FIRST_BIN + 2000, FIRST_BIN]), /strictly increasing/], + [file('watch-motion-v1', [FIRST_BIN, FIRST_BIN + 2000], { bins: { ...file('watch-motion-v1', [FIRST_BIN, FIRST_BIN + 2000]).bins, movingSamples: [1, -1] } }), /movingSamples/], + [file('watch-motion-v1', [FIRST_BIN, FIRST_BIN + 2000], { bins: { ...file('watch-motion-v1', [FIRST_BIN, FIRST_BIN + 2000]).bins, samples: [1.5, 2] } }), /samples/], + [file('watch-motion-v1', [FIRST_BIN - 3600_000]), /No bins fall inside/], + [file('watch-motion-v1', night, { recordedToMs: FROM }), /recordedToMs must be after/], + [file('watch-motion-v1', night, { extra: 1 }), /extra/], + ] + for (const [body, message] of cases) { + const response = await post(body) + expect(response.status, String(message)).toBe(400) + expect((await response.json()).error).toMatch(message) + } + // JSON.parse turns 1e999 into Infinity. + const infinite = JSON.stringify(file('watch-motion-v1', [FIRST_BIN])).replace('"maxJerk":[0]', '"maxJerk":[1e999]') + expect((await post(infinite)).status).toBe(400) + expect((await post('{not json')).status).toBe(400) + expect((await post('')).status).toBe(400) + expect((await POST(new Request('http://pod/api/biometrics/watch-motion', { method: 'POST', body: '{}' }))).status).toBe(400) + expect(await (await GET(new Request('http://pod/api/biometrics/watch-motion'))).json()).toEqual([]) +}) + +it('rejects cross-origin and DNS-rebinding uploads but accepts the same-origin web app', async () => { + for (const origin of ['http://evil', 'http://192.168.1.88:8080', 'null']) { + const response = await post(file('watch-motion-v1', night), 'left', { origin, host: '192.168.1.88:3000' }) + expect(response.status).toBe(403) + } + const rebound = await post(file('watch-motion-v1', night), 'left', { origin: 'http://attacker.example.com:3000', host: 'attacker.example.com:3000' }) + expect(rebound.status).toBe(403) + expect(await (await GET(new Request('http://pod/api/biometrics/watch-motion'))).json()).toEqual([]) + const same = await post(file('watch-motion-v1', night), 'left', { origin: 'http://192.168.1.88:3000', host: '192.168.1.88:3000' }) + expect(same.status).toBe(200) +}) + +it('lists by overlap and validates list and fetch parameters', async () => { + await post(file('watch-motion-v1', night)) + const list = (query: string) => GET(new Request(`http://pod/api/biometrics/watch-motion?${query}`)) + expect(await (await list(`startDate=${TO}`)).json()).toEqual([]) + expect(await (await list(`endDate=${FROM - 1}`)).json()).toEqual([]) + expect(await (await list(`startDate=${TO - 1}&endDate=${TO + 1}&side=left`)).json()).toHaveLength(1) + expect(await (await list('side=right')).json()).toEqual([]) + expect((await list('side=middle')).status).toBe(400) + expect((await list('startDate=yesterday')).status).toBe(400) + expect((await list(`startDate=${TO}&endDate=${FROM}`)).status).toBe(400) + expect((await GET_ONE(new Request('http://pod'), { params: Promise.resolve({ id: '999' }) })).status).toBe(404) + expect((await GET_ONE(new Request('http://pod'), { params: Promise.resolve({ id: '../x' }) })).status).toBe(400) +}) diff --git a/app/api/biometrics/watch-motion/route.ts b/app/api/biometrics/watch-motion/route.ts new file mode 100644 index 000000000..4c7a155cb --- /dev/null +++ b/app/api/biometrics/watch-motion/route.ts @@ -0,0 +1,103 @@ +import { z } from 'zod' +import { biometricsDb } from '@/src/db' +import { rejectUnknownHost } from '@/src/lib/hostAllowlist' +import { + listWatchMotion, parseWatchMotion, saveWatchMotion, WATCH_MOTION_MAX_BYTES, WatchMotionError, +} from '@/src/biometrics/references/watch-motion' + +export const runtime = 'nodejs' +export const dynamic = 'force-dynamic' + +const sideQuery = z.object({ side: z.enum(['left', 'right']) }) +/** ISO 8601 text or Unix milliseconds. */ +const dateParam = z.string().transform((value, ctx) => { + const date = new Date(/^\d+$/.test(value) ? Number(value) : value) + if (Number.isNaN(date.getTime())) { + ctx.addIssue({ code: 'custom', message: 'must be ISO 8601 or Unix milliseconds' }) + return z.NEVER + } + return date +}) +const listQuery = z.object({ side: z.enum(['left', 'right']).optional(), startDate: dateParam.optional(), endDate: dateParam.optional() }).strict() + +/** Same check as watch-upload: Next reports the 0.0.0.0 bind address in request.url, so compare Origin with Host. */ +function isSameOrigin(request: Request): boolean { + const origin = request.headers.get('origin') + if (origin === null) return true + try { + return new URL(origin).host === request.headers.get('host') + } + catch { + return false + } +} + +class TooLarge extends Error {} + +/** The body as text, refusing to buffer more than the limit even without a Content-Length. */ +async function readBody(request: Request): Promise { + if (Number(request.headers.get('content-length')) > WATCH_MOTION_MAX_BYTES) throw new TooLarge() + if (!request.body) return '' + const chunks: Uint8Array[] = [] + let bytes = 0 + const reader = request.body.getReader() + for (;;) { + const { done, value } = await reader.read() + if (done) break + bytes += value.byteLength + if (bytes > WATCH_MOTION_MAX_BYTES) { + await reader.cancel() + throw new TooLarge() + } + chunks.push(value) + } + return Buffer.concat(chunks).toString('utf8') +} + +/** + * One night's watch-motion-v1/v2 file from the iOS app, as-is. Stored as a + * movement label only (see docs/biometrics-reference-imports.md). + */ +export async function POST(request: Request): Promise { + const rejectedHost = rejectUnknownHost(request) + if (rejectedHost) return rejectedHost + if (!isSameOrigin(request)) return Response.json({ error: 'Cross-origin upload is not allowed' }, { status: 403 }) + const query = sideQuery.safeParse(Object.fromEntries(new URL(request.url).searchParams)) + if (!query.success) return Response.json({ error: 'Specify side=left|right' }, { status: 400 }) + let body: string + try { + body = await readBody(request) + } + catch (error) { + if (error instanceof TooLarge) return Response.json({ error: 'Upload exceeds 8 MiB' }, { status: 413 }) + return Response.json({ error: 'Upload interrupted' }, { status: 400 }) + } + if (!body) return Response.json({ error: 'Send the watch-motion JSON file as the request body' }, { status: 400 }) + try { + const parsed = parseWatchMotion(body) + const { capture, status } = saveWatchMotion(biometricsDb, query.data.side, parsed) + return Response.json({ + id: capture.id, + side: capture.side, + version: capture.version, + recordedFromMs: capture.recordedFromMs, + recordedToMs: capture.recordedToMs, + bins: capture.bins, + trimmedBins: parsed.trimmedBins, + status, + }) + } + catch (error) { + if (error instanceof WatchMotionError) return Response.json({ error: error.message }, { status: error.status }) + return Response.json({ error: 'Could not store the recording' }, { status: 500 }) + } +} + +/** Capture metadata overlapping [startDate, endDate], oldest first. */ +export async function GET(request: Request): Promise { + const query = listQuery.safeParse(Object.fromEntries(new URL(request.url).searchParams)) + if (!query.success) return Response.json({ error: 'Use side=left|right and startDate/endDate as ISO 8601 or Unix milliseconds' }, { status: 400 }) + const { side, startDate, endDate } = query.data + if (startDate && endDate && startDate > endDate) return Response.json({ error: 'startDate must be before or equal to endDate' }, { status: 400 }) + return Response.json(listWatchMotion(biometricsDb, { side, start: startDate, end: endDate })) +} diff --git a/app/api/biometrics/watch-upload/route.test.ts b/app/api/biometrics/watch-upload/route.test.ts index 2be35c9fe..c52401e7a 100644 --- a/app/api/biometrics/watch-upload/route.test.ts +++ b/app/api/biometrics/watch-upload/route.test.ts @@ -60,16 +60,18 @@ it('imports Watch breathing rate and HRV, skips records sleepypod wrote to Healt const xml = `${[ record('RespiratoryRate', 'Apple Watch', 14.5, 'count/min'), record('HeartRateVariabilitySDNN', 'Apple Watch', 48, 'ms'), + record('HeartRateVariabilityRMSSD', 'Apple Watch', 0.032, 's'), + record('OxygenSaturation', 'Apple Watch', 0.97, '%'), // The pod's own readings written back by the iOS app, even from a source named like a Watch. record('RespiratoryRate', 'sleepypod', 99, 'count/min'), record('HeartRateVariabilitySDNN', 'sleepypod design', 99, 'ms'), record('HeartRate', 'sleepypod Watch', 99, 'count/min'), ].join('')}` const request = () => new Request('http://pod/api/biometrics/watch-upload?side=left&days=7', { method: 'POST', body: xml }) - expect(await (await POST(request())).json()).toEqual({ stages: 0, vitals: 0, breathing: 1, hrv: 1, rejectedStageBatches: 0, - matchedStages: 0, matchedVitals: 0, matchedBreathing: 1, matchedHrv: 1 }) - expect(requests.map(r => [r.metric, r.side, r.samples?.map(s => s.value)])).toEqual([['breathing_rate', 'left', [14.5]], ['hrv_sdnn', 'left', [48]]]) - expect(await (await POST(request())).json()).toMatchObject({ breathing: 0, hrv: 0, matchedBreathing: 1, matchedHrv: 1 }) + expect(await (await POST(request())).json()).toEqual({ stages: 0, vitals: 0, breathing: 1, hrv: 1, rmssd: 1, oxygen: 1, rejectedStageBatches: 0, + matchedStages: 0, matchedVitals: 0, matchedBreathing: 1, matchedHrv: 1, matchedRmssd: 1, matchedOxygen: 1 }) + expect(requests.map(r => [r.metric, r.side, r.samples?.map(s => s.value)])).toEqual([['breathing_rate', 'left', [14.5]], ['hrv_sdnn', 'left', [48]], ['hrv_rmssd', 'left', [32]], ['blood_oxygen', 'left', [97]]]) + expect(await (await POST(request())).json()).toMatchObject({ breathing: 0, hrv: 0, matchedBreathing: 1, matchedHrv: 1, matchedRmssd: 1 }) }) it('rejects malformed files and cleans up after parser failure', async () => { diff --git a/app/api/biometrics/watch-upload/route.ts b/app/api/biometrics/watch-upload/route.ts index 14017d593..86db68175 100644 --- a/app/api/biometrics/watch-upload/route.ts +++ b/app/api/biometrics/watch-upload/route.ts @@ -9,8 +9,8 @@ export const runtime = 'nodejs' export const dynamic = 'force-dynamic' const MAX_BYTES = 512 * 1024 * 1024 const options = z.object({ side: z.enum(['left', 'right']), days: z.coerce.number().int().min(1).max(90).default(30) }) -const resultSchema = z.object({ stages: z.number(), vitals: z.number(), breathing: z.number(), hrv: z.number(), rejectedStageBatches: z.number(), - matchedStages: z.number(), matchedVitals: z.number(), matchedBreathing: z.number(), matchedHrv: z.number() }) +const resultSchema = z.object({ stages: z.number(), vitals: z.number(), breathing: z.number(), hrv: z.number(), rmssd: z.number().default(0), oxygen: z.number().default(0), rejectedStageBatches: z.number(), + matchedStages: z.number(), matchedVitals: z.number(), matchedBreathing: z.number(), matchedHrv: z.number(), matchedRmssd: z.number().default(0), matchedOxygen: z.number().default(0) }) const shared = globalThis as typeof globalThis & { watchUploadBusy?: boolean } /** diff --git a/docs/DEBUGGING.md b/docs/DEBUGGING.md index bc4b51617..2f4ca277e 100644 --- a/docs/DEBUGGING.md +++ b/docs/DEBUGGING.md @@ -63,7 +63,10 @@ reads red/amber while the bed is occupied, the ingest pipeline has stalled. in-app equivalent of the `biometrics pipeline` section of `sp-status` (`docs/nats-frame-readers.md` → "Surfacing the selection in the app"). On NATS firmware, stop here: there are no `.RAW` files to inspect, and an - empty `/persistent/biometrics` is expected. + empty `/persistent/biometrics` is expected. If no frames arrive and + **Publishing prefixes** lists one marked "(not read)", set **Subject + prefix** to it, then **Restart biometrics modules** (an MCP agent: + `get_sensor_source`, then `set_device_settings` with `natsSubjectPrefix`). 1. Confirm `RAW_DATA_DIR` matches the tmpfs hot dir (`/persistent/biometrics`, per ADR-0018). A mismatch makes readers see an empty directory while frank writes fine — the classic silent failure (`docs/sleep-detector.md` §9). diff --git a/docs/biometrics-reference-imports.md b/docs/biometrics-reference-imports.md index 4a96e7c15..1c4d00e09 100644 --- a/docs/biometrics-reference-imports.md +++ b/docs/biometrics-reference-imports.md @@ -144,8 +144,10 @@ follows the same contract for one `metric` per request, `breathing_rate` samples stored in `reference_samples` and first-write-wins on side, metric, time and source. The **Upload Apple Watch data** dialog (`POST /api/biometrics/watch-upload`) feeds all three from a Health export, -using only Watch-sourced records: anything the sleepypod iOS app wrote back -into Health is the pod's own data and is never imported as a reference. +using only records an Apple Watch made, matched on `sourceName` or the record's +`device`, since a source can carry any name the owner gave it. Sleep stages have +no `device` and match on `sourceName` alone. Anything the sleepypod iOS app wrote +back into Health is the pod's own data and is never imported as a reference. Newly accepted rows and normalized provenance commit atomically; if provenance cannot be saved, the legacy insert rolls back too. @@ -205,3 +207,100 @@ Biometric calibration draws the nights as a trend with these as markers once any night in the last 31 days pairs with Watch data. HRV is not like-for-like: the pod stores a window IBI variability index, not SDNN, which the response's `hrvNote` repeats. + +## Devices + +Wearables differ: an Apple Watch reports SDNN and, from iOS 27, RMSSD; other +devices report one, the other or neither, and each has its own stage labels. +Every value below is optional. A device sends what it has and a missing metric +stays missing, never zero. + +`GET /api/biometrics/reference-capabilities` lists the metrics this pod accepts +with their unit and bounds, and the optional sample fields. `/reference-samples` +rejects unknown metrics and fields, so a client reads this first. A 404 means +older software: keep to `breathing_rate` and `hrv_sdnn` with bare +`{ timestamp, value }` samples. + +| Metric | Unit | Notes | +| --- | --- | --- | +| `breathing_rate` | breaths/min | | +| `hrv_sdnn` | ms | | +| `hrv_rmssd` | ms | Not comparable with the pod's `window_ibi_variability_v1` index | +| `blood_oxygen` | % | 0 to 100, not a fraction | +| `resting_heart_rate` | bpm | | +| `skin_temperature` | degC | Absolute. A device reporting only a deviation from baseline must not use this metric | +| `breathing_disturbances` | events/h | | + +A sample may add `endTimestamp` when it covers a window, `device` for the +hardware (`Watch8,2`) and `algorithm` for the vendor's version. The same metric +can change meaning between hardware or algorithm versions, so keep these whenever +the source reports them. Normalized rows accept the same `device` and `algorithm`. + +`/reference-samples`, `/reference-stages` and `/reference-vitals` remain +`apple_watch` only, because the Watch charts and the deviation report read those +tables across sources. Any other device, such as a ring or an Android watch, uses +the preview and commit import above with its own `source`. + +### Apple Watch blood oxygen row + +The Health export importer and `/reference-samples` accept `blood_oxygen` as a +percentage. Health exports write saturation as a fraction under unit `%` (`0.97`), +so the importer multiplies by 100 before the 50–100 check. Nights and Biometrics +draw it as a separate row, because the pod has no oxygen sensor to overlay it on. +The row and its legend entry appear only when a reading falls inside a drawn +session, so daytime spot checks alone add nothing. The row spans 80–100%; a lower +reading sits on the bottom edge and its hover label keeps the real value. +`scripts/import-watch-health.py --oxygen-only` imports this metric alone. + +### Optional Apple Watch RMSSD overlay + +The Health export importer and legacy `reference-samples` endpoints accept +`hrv_rmssd` separately from `hrv_sdnn` and `breathing_rate`. Both HRV metrics use +milliseconds and the same 1–500 ms ingestion guard; this is an input sanity +bound, not a clinical validity claim. Export values in seconds are converted +before validation. Records written by sleepypod are excluded from Watch imports. +The unique key includes the metric, so SDNN, RMSSD and breathing can coexist at +one timestamp; retrying an import preserves existing records. + +Nights and Biometrics show RMSSD only when samples exist, as a distinct labeled +Watch overlay on the HRV row. Missing Watch data produces no RMSSD legend or +placeholder. Sampling gaps remain gaps. Pod HRV is a window-based IBI variability +index, not Watch RMSSD or SDNN; the overlay does not make them interchangeable. +The existing deviation report continues using SDNN and does not silently +substitute RMSSD. Breathing keeps its own series and units. + +The companion iOS app requests and reads HealthKit RMSSD only on iOS 27 or +newer. Its optional read cannot block the existing breathing/SDNN upload; an +RMSSD read failure is reported while the other readings are sent. A newer app +and core are needed for RMSSD sync. Neither deployment nor local training +imports a Health export automatically; the user must initiate/authorize an +import. No Watch is required for Pod-only charts or model inference. + +### Apple Watch wrist movement + +`POST /api/biometrics/watch-motion?side=left|right` stores one night's +`watch-motion-v1` or `watch-motion-v2` file from the iOS app, sent as-is +(format: sleepypod-ios `docs/watch-motion-format.md`). It is a movement label +only: it never feeds sleep staging, movement scoring or hardware control. +Bodies over 8 MiB are rejected (413), and so are files carrying `raw` +readings (400). `binSeconds` must be 2, every `bins` column must match +`startMs` in length, `startMs` must lie on the 2 s Unix grid and strictly +increase, counts must be nonnegative integers, and v2 requires (v1 forbids) +`meanX`/`meanY`/`meanZ`. Bins outside [`recordedFromMs`, `recordedToMs`) are +leftovers of an earlier recording and are trimmed, not rejected; a bin +overlapping the start edge stays. The response reports `trimmedBins`. + +One capture is kept per side and `recordedFromMs`. Resending identical +trimmed content returns `status: "unchanged"`; different content for the same +night replaces the stored file in place (`"replaced"`, same `id`). The stored +file is the trimmed file as sorted-key compact JSON; `sha256` is its hash. +`GET /api/biometrics/watch-motion?side=&startDate=&endDate=` lists capture +metadata overlapping the window (dates as ISO 8601 or Unix ms), and +`GET /api/biometrics/watch-motion/{id}` returns the stored file byte for byte +for the training workspace. `biometrics.getWatchMotionSeries` +(`GET /api/biometrics/watch-motion-series`) sums the bins per minute +(`movingSamples`, max `maxJerk`, mean `magnitudeVariance`, `samples`) for at +most 31 days; minutes without bins are absent rather than zero. The night +chart draws it over the pod's movement, scaled to each night. Unlike the other +reference tables, captures (~0.5 MB a night) are pruned with the biometrics +retention window by `recordedToMs`; the iPhone keeps the original files. diff --git a/docs/nats-frame-readers.md b/docs/nats-frame-readers.md index 6c1254299..a99c20479 100644 --- a/docs/nats-frame-readers.md +++ b/docs/nats-frame-readers.md @@ -25,7 +25,19 @@ runtime — never a replacement. ## Wire format (as captured) -Each subscribed sensor message (`raw.sens.>` / `raw.frz.>`) contains one +The readers subscribe to `raw.sens.>`, `raw.frz.>`, `rawmem.sens.>` and +`rawmem.frz.>` to cover both firmware subject prefixes (`rawmem` arrived with the +EmmcWear firmware, rat_version `4b7552d5`). Each sensor subject (`sens.piezo`, +`frz.temp`, ...) is fed by exactly one prefix, and `raw` always wins: `rawmem` +feeds a subject only when `raw` has not delivered a decodable message for it and +30 s have passed since subscribing (three periods of the slowest 0.1 Hz +subjects). A prefix silent on a subject for 60 s gives it up, so one stray +message can't pin a subject to a prefix that no longer feeds it. Pods that +publish `raw` read exactly what they read before `rawmem` existed, and a firmware that publishes both never double-feeds a consumer. +The journal logs which subject feeds each sensor (`[natsSource] reading +sens.piezo from rawmem.sens.piezo`). That is the auto mode; the +`natsSubjectPrefix` setting can pin both readers to a single prefix instead +(see [Subject prefix setting](#subject-prefix-setting)). Each sensor message contains one complete CBOR value whose decoded value is a record map. Definite and indefinite maps both occur; consumers must not depend on a leading encoding byte. NATS supplies the message boundary, so sensor readers need no outer @@ -194,9 +206,12 @@ is data flowing?* Until now the only answer was `sp-status` over SSH. Two in-app surfaces answer it without a shell: - **Settings → Device → Sensor data source** (`SensorSourceCard`, backed by - `system.getSensorSource`). Read-only. Shows the firmware generation, the + `system.getSensorSource`). Shows the firmware generation, the transport the core's stream picked at startup, and the age of the last live frame, with a note when the two disagree or an env override is in force. + On NATS firmware it also shows which prefix feeds each subject, every + prefix seen publishing, and the subject prefix control (below). The + transport itself stays read-only. The firmware half is probed once per process (the signals cannot change while the core is running); only the stream fields are live on each poll, and a service restart re-detects. @@ -226,15 +241,69 @@ shows "Not running on a pod" when no systemd probe could run. ### What the card deliberately does not do -- **No toggle.** Source selection happens once per process and the two +- **No transport toggle.** Source selection happens once per process and the two sources are designed never to run together, so a UI switch would need a service restart to take effect and would invite forcing the wrong path. The existing `PIEZO_SENSOR_SOURCE=raw|nats` env override covers custom firmware; - the card names it when set. + the card names it when set. The subject prefix is different: changing it + only changes which NATS subjects the already-selected source reads. - **No per-module view.** The Python readers each run the same selector in their own process. Their liveness is already on System → Health per unit; their individual source pick is in their journals. +## Subject prefix setting + +Firmware has moved its sensor subjects once already (`raw` → `rawmem` in +EmmcWear, rat_version `4b7552d5`), and the first pod to hit that needed a code +patch. `device_settings.nats_subject_prefix` makes the next move a setting: + +- **`null` (default) = auto.** Both readers subscribe to `raw` and `rawmem` + with the per-subject priority rule above. +- **A pinned prefix** (one NATS token, `^[A-Za-z0-9_-]{1,32}$`, so no dots or + wildcards) makes both readers subscribe to `.sens.>` and + `.frz.>` only. With a single prefix there is no fallback grace. + `settings.updateDevice` validates the value; a stored value that fails the + pattern (a hand-edited row) reads as auto in both readers. + +**Discovery.** The Node reader also subscribes to `*.sens.>`, in auto and +pinned mode alike. That subscription only counts messages per prefix +(`stats.observedPrefixes`, bounded to 16 prefixes); it never decodes or feeds +a frame. A pin to the wrong prefix is exactly when this is needed, so it runs +in both modes. If the reader's own subjects stay silent for 60 s while discovery +has seen a prefix it does not read, the journal says so: `[natsSource] firmware +publishes under rawv2, which this reader does not subscribe to — set +natsSubjectPrefix to read it`. + +**Applying a change.** + +- Node (`piezoStream`): `settings.updateDevice` calls + `restartNatsFrameSource()` when the value changes. Only the NATS frame + source stops and reconnects with the new prefixes; the WebSocket server, + its clients and the process stay up. Restarts are serialized, so + back-to-back changes end on the latest value. If NATS is not the active + source the call is a no-op; a source still being selected reads the + setting when it connects. A failed reconnect hands back to the startup + selection loop. +- Python (`NatsFollower`): `subject_prefixes()` reads the setting once at + construction, tolerant like `side_mode` (missing db, table or column, + unreadable db, or an invalid value → auto). A change takes effect on the + module's next restart. The Settings card offers **Restart biometrics + modules**, which calls `health.restartService` for piezo-processor, + sleep-detector and environment-monitor (the units the installer's sudoers + rule covers). The MCP `set_device_settings` reply tells the agent to do the + same through `pod_maintenance restart_service`, which keeps its approval + prompt. The calibrator is not in that sudoers rule and picks the change up + on its next restart. + +**Diagnostics.** `system.getSensorSource` returns a `nats` block (null unless +NATS is the selected source): `mode` (`auto` | `pinned`), `configuredPrefix`, +`subscribedSubjects`, `sources` (subject → prefix), `messages`, +`decodeFailures`, `ignoredMessages`, and `observedPrefixes` +(`{ prefix, subscribed, messages, lastSeenAtMs, lastSeenAgeMs }[]`). The MCP +tool `get_sensor_source` returns the same object, and its description tells an +agent the fix: no frames plus an observed prefix with `subscribed: false` → +set `natsSubjectPrefix` to it; a pin that stopped working → set it to `null`. + ## `NatsFollower` design New file: `modules/common/nats_follower.py`. Interface-compatible with @@ -249,7 +318,9 @@ accrues. `queue.Queue(maxsize=256)`; the generator `get()`s from the queue. Queue full ⇒ drop-oldest + counter (matches tailer semantics: live data beats backlog; 256 is about one minute of the full captured sensor firehose). -- **Subscription:** core NATS subscribe on `raw.sens.>` and `raw.frz.>` +- **Subscription:** core NATS subscribe on `raw.sens.>`, `raw.frz.>`, + `rawmem.sens.>` and `rawmem.frz.>`, or `.sens.>` and + `.frz.>` when `nats_subject_prefix` is pinned (plain subscribe, not JetStream pull — see Backfill below). Per-module subject narrowing is a premature optimization at these rates (~4.6 KB/s total); every consumer gets the same firehose and filters by diff --git a/modules/common/nats_follower.py b/modules/common/nats_follower.py index afd08ea8f..99be838ba 100644 --- a/modules/common/nats_follower.py +++ b/modules/common/nats_follower.py @@ -28,8 +28,11 @@ import asyncio import logging +import os import queue +import re import socket +import sqlite3 import threading import time from collections import deque @@ -51,10 +54,39 @@ NATS_DEFAULT_PORT = 4222 NATS_INFO_MAX_BYTES = 4096 -# Subjects consumed by the biometrics modules. raw.log lives outside these -# prefixes on purpose — it is a firmware log channel surfaced by sp-status, -# not a sensor stream, so the modules never subscribe to it. -NATS_SENSOR_SUBJECTS = ("raw.sens.>", "raw.frz.>") +# Firmware publishes under raw, or rawmem since the EmmcWear firmware +# (rat_version 4b7552d5). Prefixes are in priority order and each sensor +# subject (sens.piezo, frz.temp, ...) is fed by exactly one of them: a raw +# subject always wins, and a fallback prefix feeds a subject only when no +# higher-priority prefix is delivering it and the startup grace has passed. +# A prefix that goes silent on a subject for a minute gives the subject up, so +# one stray message can't pin a subject to a prefix that no longer feeds it. +# Pods that publish raw therefore read exactly what they read before rawmem +# existed, and a firmware publishing both never double-feeds. .log lives outside +# these subjects on purpose — it is a firmware log channel surfaced by +# sp-status, not a sensor stream, so the modules never subscribe to it. +# +# This is the auto mode. device_settings.nats_subject_prefix pins every reader +# to one prefix instead (see subject_prefixes); it is read at construction, so a +# changed setting takes effect when the module restarts. +NATS_SUBJECT_PREFIXES = ("raw", "rawmem") + + +def sensor_subjects(prefixes: Iterable[str]) -> tuple: + return tuple(f"{prefix}.{kind}.>" for prefix in prefixes for kind in ("sens", "frz")) + + +NATS_SENSOR_SUBJECTS = sensor_subjects(NATS_SUBJECT_PREFIXES) + +# One subject token, so a pin can never widen the subscription. Keep in sync +# with NATS_SUBJECT_PREFIX_PATTERN in src/lib/natsSubjectPrefix.ts. +NATS_SUBJECT_PREFIX_RE = re.compile(r"^[A-Za-z0-9_-]{1,32}$") + +# The slowest sensor subjects publish at 0.1 Hz, so 30 s gives a higher-priority +# prefix three chances to claim a subject before a fallback prefix may feed it. +NATS_FALLBACK_GRACE_SECONDS = 30.0 +# Six periods of the slowest subjects: an owner silent this long gives the subject up. +NATS_OWNER_STALE_SECONDS = 60.0 # Bounded hand-off queue. Full ⇒ drop-oldest (live data beats backlog, exactly # like the file tailer jumping to EOF). 256 ≈ 2 min of capSense at 2 Hz. @@ -80,6 +112,41 @@ _FATAL = object() +def subject_prefixes(db_path: Optional[Path] = None) -> tuple: + """Prefixes to read: the pinned device_settings.nats_subject_prefix, else auto. + + Tolerant like side_mode: a missing db, table or column, an unreadable db, + or an invalid stored value all read as auto, so an older core schema or a + hand-edited row can never stop the readers. + """ + if db_path is None: + db_path = Path(os.environ.get( + "DATABASE_URL", "file:/persistent/sleepypod-data/sleepypod.db").removeprefix("file:")) + if not Path(db_path).exists(): + return NATS_SUBJECT_PREFIXES + try: + conn = sqlite3.connect(f"file:{db_path}?mode=ro", uri=True, timeout=2.0) + try: + columns = conn.execute("PRAGMA table_info(device_settings)").fetchall() + if not any(column[1] == "nats_subject_prefix" for column in columns): + return NATS_SUBJECT_PREFIXES + row = conn.execute("SELECT nats_subject_prefix FROM device_settings WHERE id=1").fetchone() + finally: + conn.close() + except sqlite3.Error as e: + log.warning("Could not read nats_subject_prefix (reading %s): %s", + "/".join(NATS_SUBJECT_PREFIXES), e) + return NATS_SUBJECT_PREFIXES + prefix = row[0] if row else None + if prefix is None: + return NATS_SUBJECT_PREFIXES + if not isinstance(prefix, str) or not NATS_SUBJECT_PREFIX_RE.match(prefix): + log.warning("Ignoring invalid nats_subject_prefix %r (reading %s)", + prefix, "/".join(NATS_SUBJECT_PREFIXES)) + return NATS_SUBJECT_PREFIXES + return (prefix,) + + class NatsFollowerError(RuntimeError): """Raised out of NatsFollower.read_records() when the NATS connection is permanently lost, so the module exits and systemd restarts + re-probes.""" @@ -150,19 +217,25 @@ class NatsFollower: Args: shutdown_event: A threading.Event that signals shutdown. servers: NATS server URL(s). - subjects: Core-subscribe subject filters. + subjects: Core-subscribe subject filters. Defaults to the sensor + subjects of ``prefixes``. + prefixes: Subject prefixes in priority order. Defaults to + :func:`subject_prefixes` (the device setting, else auto). queue_maxsize: Bounded hand-off queue size (drop-oldest when full). max_reconnect_failures: Reconnect failures per server before the client gives up and read_records() raises NatsFollowerError. """ def __init__(self, shutdown_event, servers=NATS_DEFAULT_SERVER, - subjects: Iterable[str] = NATS_SENSOR_SUBJECTS, + subjects: Optional[Iterable[str]] = None, queue_maxsize: int = NATS_QUEUE_MAXSIZE, - max_reconnect_failures: int = MAX_RECONNECT_FAILURES): + max_reconnect_failures: int = MAX_RECONNECT_FAILURES, + fallback_grace_seconds: float = NATS_FALLBACK_GRACE_SECONDS, + prefixes: Optional[Iterable[str]] = None): self._shutdown = shutdown_event self._servers = servers - self._subjects = tuple(subjects) + self._prefixes = tuple(prefixes) if prefixes is not None else subject_prefixes() + self._subjects = tuple(subjects) if subjects is not None else sensor_subjects(self._prefixes) self._queue: "queue.Queue" = queue.Queue(maxsize=queue_maxsize) self._max_reconnect_failures = max_reconnect_failures self._thread: Optional[threading.Thread] = None @@ -174,6 +247,13 @@ def __init__(self, shutdown_event, servers=NATS_DEFAULT_SERVER, self._decode_failures = 0 self._dropped = 0 self._decode_logged = False + self._fallback_grace = fallback_grace_seconds + self._subscribed_monotonic = 0.0 + # Prefix feeding each sensor subject, e.g. {"sens.piezo": "rawmem"}. + self._sources: dict = {} + self._owner_last_monotonic: dict = {} + self._ignored = 0 + self._ignored_logged = False self._start_monotonic = 0.0 self._silence_logged = False @@ -202,14 +282,29 @@ def _offer(self, item) -> None: except queue.Full: pass - def _handle_payload(self, data: bytes) -> Optional[dict]: + def _handle_payload(self, data: bytes, subject: Optional[str] = None) -> Optional[dict]: """Decode one CBOR message payload and enqueue it. The transport guarantees message boundaries, so there is no framing, magic-byte scan, or corruption recovery — just decode. A malformed payload is logged (first occurrence) and dropped against a failure - counter. Returns the decoded record, or None on a bad payload. + counter. Messages on a subject another prefix owns, or on a fallback + prefix during the startup grace, are dropped against an ignored + counter (see NATS_SUBJECT_PREFIXES). Returns the decoded record, or + None on a bad or ignored payload. """ + prefix, _, tail = subject.partition(".") if subject else (None, "", "") + owner = self._sources.get(tail) + now = time.monotonic() + if prefix is not None and self._owned_elsewhere(prefix, tail, owner, now): + self._ignored += 1 + if not self._ignored_logged: + self._ignored_logged = True + log.warning("Ignoring %s — %s.%s already feeds it", subject, owner, tail) + return None + if prefix is not None and self._in_fallback_grace(prefix, now): + self._ignored += 1 + return None try: record = cbor2.loads(data) except Exception as e: # cbor2.CBORDecodeError + defensive catch-all @@ -222,10 +317,33 @@ def _handle_payload(self, data: bytes) -> Optional[dict]: if not isinstance(record, dict): self._decode_failures += 1 return None + if prefix is not None: + if owner != prefix: + self._sources[tail] = prefix + log.info("NatsFollower reading %s from %s", tail, subject) + self._owner_last_monotonic[tail] = now self._msg_count += 1 self._offer(record) return record + def _owned_elsewhere(self, prefix: str, tail: str, owner: Optional[str], now: float) -> bool: + """True when a higher-priority prefix is still feeding this subject.""" + return (owner is not None + and self._rank(prefix) > self._rank(owner) + and now - self._owner_last_monotonic[tail] < NATS_OWNER_STALE_SECONDS) + + def _in_fallback_grace(self, prefix: str, now: float) -> bool: + """True while a fallback prefix must wait for raw to claim subjects.""" + return (self._rank(prefix) > 0 + and now - self._subscribed_monotonic < self._fallback_grace) + + def _rank(self, prefix: str) -> int: + """Priority of a prefix; one outside the configured list ranks last.""" + try: + return self._prefixes.index(prefix) + except ValueError: + return len(self._prefixes) + # -- lifecycle --------------------------------------------------------- def _ensure_started(self) -> None: @@ -325,12 +443,14 @@ async def on_closed(): return async def on_msg(msg): - self._handle_payload(msg.data) + self._handle_payload(msg.data, msg.subject) + self._subscribed_monotonic = time.monotonic() for subject in self._subjects: await nc.subscribe(subject, cb=on_msg) - log.info("NatsFollower subscribed to %s on %s", - list(self._subjects), self._servers) + log.info("NatsFollower subscribed to %s on %s (%s)", + list(self._subjects), self._servers, + "auto" if self._prefixes == NATS_SUBJECT_PREFIXES else "pinned by nats_subject_prefix") while not self._shutdown.is_set() and not self._closed_evt.is_set(): await asyncio.sleep(0.25) @@ -388,11 +508,12 @@ class NatsRecordBuffer: } def __init__(self, shutdown_event, servers=NATS_DEFAULT_SERVER, - subjects: Iterable[str] = NATS_SENSOR_SUBJECTS, - maxlen: Optional[dict] = None): + subjects: Optional[Iterable[str]] = None, + maxlen: Optional[dict] = None, + prefixes: Optional[Iterable[str]] = None): self._shutdown = shutdown_event self._follower = NatsFollower(shutdown_event, servers=servers, - subjects=subjects) + subjects=subjects, prefixes=prefixes) limits = {**self.DEFAULT_MAXLEN, **(maxlen or {})} self._buffers = {t: deque(maxlen=n) for t, n in limits.items()} self._lock = threading.Lock() diff --git a/modules/common/test_nats_follower.py b/modules/common/test_nats_follower.py index c60d8212f..bedd0e53a 100644 --- a/modules/common/test_nats_follower.py +++ b/modules/common/test_nats_follower.py @@ -9,20 +9,26 @@ existing parsers — exactly the contract the .RAW path already relies on. """ +import asyncio import base64 import socket +import sqlite3 import struct import threading import time +from types import SimpleNamespace import pytest from common.nats_follower import ( + NATS_SENSOR_SUBJECTS, + NATS_SUBJECT_PREFIXES, NatsFollower, NatsFollowerError, NatsRecordBuffer, create_follower, nats_reachable, + subject_prefixes, wait_for_nats, ) from common.raw_follower import RawFileFollower @@ -39,6 +45,12 @@ def _payload(subject: str) -> bytes: SENSOR_SUBJECTS = list(CAPTURE_FIXTURES) +@pytest.fixture(autouse=True) +def _no_pod_settings(tmp_path, monkeypatch): + """Keep followers on auto unless a test provides a settings db.""" + monkeypatch.setenv("DATABASE_URL", f"file:{tmp_path / 'absent.db'}") + + # --------------------------------------------------------------------------- # Layer-2 reachability probe # --------------------------------------------------------------------------- @@ -192,6 +204,152 @@ def test_frztemp_fixture_matches_freezer_writer_shape(self): assert isinstance(rec[key], int) +@pytest.mark.parametrize("prefix", ["raw", "rawmem"]) +def test_follower_receives_sensor_and_freezer_records(prefix): + messages = { + f"{prefix}.sens.piezo": _payload("raw.sens.piezo"), + f"{prefix}.sens.bedtemp": _payload("raw.sens.bedtemp"), + f"{prefix}.frz.health": _payload("raw.frz.health"), + f"{prefix}.log": b"not a sensor record", + } + + async def subscribe(pattern, *, cb): + for subject, data in messages.items(): + if subject.startswith(pattern.removesuffix(">")): + await cb(SimpleNamespace(subject=subject, data=data)) + + async def close(): + pass + + async def connect(*args, **kwargs): + return SimpleNamespace(subscribe=subscribe, close=close) + + shutdown = threading.Event() + shutdown.set() # Return after subscribing and delivering the fixtures. + follower = NatsFollower(shutdown, fallback_grace_seconds=0) + asyncio.run(follower._connect_and_run(SimpleNamespace(connect=connect))) + + assert follower._queue.qsize() == 3 + assert {follower._queue.get_nowait()["type"] for _ in range(3)} == { + "piezo-dual", "bedTemp", "frzHealth", + } + assert follower._decode_failures == 0 + assert set(follower._sources.values()) == {prefix} + + +def test_follower_holds_fallback_prefix_during_startup_grace(): + follower = NatsFollower(threading.Event()) + follower._subscribed_monotonic = time.monotonic() + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") is None + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "raw.sens.bedtemp") + assert follower._sources == {"sens.bedtemp": "raw"} + assert follower._ignored == 1 + + +def test_follower_feeds_each_subject_from_raw_first_then_rawmem(): + follower = NatsFollower(threading.Event(), fallback_grace_seconds=0) + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "raw.sens.bedtemp") + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") is None + assert follower._handle_payload(_payload("raw.frz.health"), "rawmem.frz.health") + + assert follower._sources == {"sens.bedtemp": "raw", "frz.health": "rawmem"} + assert follower._queue.qsize() == 2 + assert follower._ignored == 1 + + +def test_follower_hands_subject_back_to_raw(): + follower = NatsFollower(threading.Event(), fallback_grace_seconds=0) + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "raw.sens.bedtemp") + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") is None + assert follower._sources == {"sens.bedtemp": "raw"} + + +def test_follower_lets_rawmem_take_over_when_raw_goes_silent(): + follower = NatsFollower(threading.Event(), fallback_grace_seconds=0) + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "raw.sens.bedtemp") + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") is None + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") is None + + follower._owner_last_monotonic["sens.bedtemp"] -= 61 + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") + assert follower._sources == {"sens.bedtemp": "rawmem"} + assert follower._ignored == 2 + + +def _settings_db(tmp_path, prefix="unset", column=True): + path = tmp_path / "sleepypod.db" + conn = sqlite3.connect(path) + if column: + conn.execute("CREATE TABLE device_settings (id INTEGER PRIMARY KEY, nats_subject_prefix TEXT)") + if prefix != "unset": + conn.execute("INSERT INTO device_settings VALUES (1, ?)", (prefix,)) + else: + conn.execute("CREATE TABLE device_settings (id INTEGER PRIMARY KEY, bed_mode TEXT)") + conn.execute("INSERT INTO device_settings VALUES (1, 'two')") + conn.commit() + conn.close() + return path + + +def test_subject_prefixes_default_to_auto_without_a_settings_db(tmp_path): + assert subject_prefixes(tmp_path / "absent.db") == NATS_SUBJECT_PREFIXES + + +def test_subject_prefixes_read_auto_on_an_older_schema(tmp_path): + assert subject_prefixes(_settings_db(tmp_path, column=False)) == NATS_SUBJECT_PREFIXES + + +@pytest.mark.parametrize("stored", [None, "unset"]) +def test_subject_prefixes_read_auto_when_unset(tmp_path, stored): + assert subject_prefixes(_settings_db(tmp_path, stored)) == NATS_SUBJECT_PREFIXES + + +def test_subject_prefixes_read_a_pinned_prefix(tmp_path): + assert subject_prefixes(_settings_db(tmp_path, "rawmem")) == ("rawmem",) + + +@pytest.mark.parametrize("stored", ["raw.sens", "*", ">", "", "raw mem", "x" * 33]) +def test_subject_prefixes_ignore_an_invalid_pin(tmp_path, stored): + assert subject_prefixes(_settings_db(tmp_path, stored)) == NATS_SUBJECT_PREFIXES + + +def test_subject_prefixes_read_auto_when_the_db_is_unreadable(tmp_path): + path = tmp_path / "sleepypod.db" + path.write_bytes(b"not a sqlite database" * 100) + assert subject_prefixes(path) == NATS_SUBJECT_PREFIXES + + +def test_follower_reads_the_pinned_prefix_from_database_url(tmp_path, monkeypatch): + monkeypatch.setenv("DATABASE_URL", f"file:{_settings_db(tmp_path, 'rawmem')}") + follower = NatsFollower(threading.Event()) + assert follower._subjects == ("rawmem.sens.>", "rawmem.frz.>") + + +def test_follower_defaults_to_both_prefixes(): + assert NatsFollower(threading.Event())._subjects == NATS_SENSOR_SUBJECTS + + +def test_pinned_follower_feeds_its_prefix_without_a_startup_grace(): + follower = NatsFollower(threading.Event(), prefixes=("rawmem",)) + follower._subscribed_monotonic = time.monotonic() + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") + assert follower._sources == {"sens.bedtemp": "rawmem"} + assert follower._ignored == 0 + + +def test_record_buffer_passes_prefixes_through(): + buf = NatsRecordBuffer(threading.Event(), prefixes=("custom",)) + assert buf._follower._subjects == ("custom.sens.>", "custom.frz.>") + + +def test_undecodable_raw_message_does_not_claim_subject(): + follower = NatsFollower(threading.Event(), fallback_grace_seconds=0) + assert follower._handle_payload(b"\xff not cbor", "raw.sens.bedtemp") is None + assert follower._handle_payload(_payload("raw.sens.bedtemp"), "rawmem.sens.bedtemp") + assert follower._sources == {"sens.bedtemp": "rawmem"} + + # --------------------------------------------------------------------------- # Bounded queue — drop-oldest semantics # --------------------------------------------------------------------------- diff --git a/scripts/art/generate-welcome.py b/scripts/art/generate-welcome.py new file mode 100644 index 000000000..8b8870cab --- /dev/null +++ b/scripts/art/generate-welcome.py @@ -0,0 +1,57 @@ +#!/usr/bin/env python3 +"""Embed matching ASCII and 38x40, 256-colour terminal art from the iOS WelcomeLogo.png. + +Run with: uv run --with pillow scripts/art/generate-welcome.py /path/to/WelcomeLogo.png +The generated data is embedded in sp-welcome; Pillow is never needed on the pod. +""" +import sys +from pathlib import Path +from PIL import Image + +# Crop away the original icon's empty border. Two vertical pixels per terminal +# cell preserve the logo's proportions without doubling the terminal width. +image = Image.open(sys.argv[1]).convert('RGB') +image = image.crop((230, 180, 800, 800)) +# Alpha-weight the edge before downsampling, avoiding a dark fringe from the +# source image's black background on light or coloured terminal themes. +image.putalpha(Image.eval(image.convert('HSV').getchannel('V'), lambda v: 255 if v >= 45 else 0)) +image = image.resize((38, 40), Image.Resampling.BOX) +levels = [0, 95, 135, 175, 215, 255] +palette = [(r, g, b) for r in levels for g in levels for b in levels] +palette += [(v, v, v) for v in range(8, 239, 10)] +rows = [] +for y in range(40): + row = [] + for x in range(38): + red, green, blue, alpha = image.getpixel((x, y)) + rgb = (red, green, blue) + # Remove the image's dark grain instead of painting a black rectangle + # over the user's terminal background. Keep the blue mattress shading. + if alpha < 128: + row.append('-') + else: + index = min(range(len(palette)), key=lambda i: sum((a-b)**2 for a, b in zip(rgb, palette[i]))) + row.append(str(index + 16)) + rows.append(' '.join(row)) +path = Path(__file__).resolve().parents[1] / 'bin/sp-welcome' +source = path.read_text() +# The ASCII fallback uses exactly the same silhouette and orientation as the +# coloured raster. Average only visible pixels, so the crescent edge stays clear. +ascii_rows = [] +for y in range(0, 40, 2): + line = "" + for x in range(38): + visible = [image.getpixel((x, yy))[:3] for yy in (y, y + 1) + if image.getpixel((x, yy))[3] >= 128] + if not visible: + line += " " + continue + brightness = sum(0.2126*r + 0.7152*g + 0.0722*b for r, g, b in visible) / len(visible) + ramp = ".:-=+*#%@" + line += ramp[min(len(ramp) - 1, int(brightness / 256 * len(ramp)))] + ascii_rows.append(line.rstrip()) +for tag, lines in (("ART", ascii_rows), ("PIXELS", rows)): + start = source.index(" cat <<'" + tag + "'\n") + len(" cat <<'" + tag + "'\n") + end = source.index(tag + "\n", start) + source = source[:start] + "\n".join(lines) + "\n" + source[end:] +path.write_text(source) diff --git a/scripts/bin/sp-uninstall b/scripts/bin/sp-uninstall index b50545a43..3c187bb28 100755 --- a/scripts/bin/sp-uninstall +++ b/scripts/bin/sp-uninstall @@ -93,6 +93,9 @@ fi systemctl daemon-reload +# Remove our SSH login welcome. +rm -f /etc/profile.d/sleepypod-welcome.sh + # Remove CLI tools echo "Removing CLI tools..." rm -f /usr/local/bin/sp-info diff --git a/scripts/bin/sp-update b/scripts/bin/sp-update index 7f3b0b8d1..e210337f9 100644 --- a/scripts/bin/sp-update +++ b/scripts/bin/sp-update @@ -705,6 +705,12 @@ if [ -d "$INSTALL_DIR/scripts/bin" ]; then done fi +# Static welcome for interactive SSH logins only. +if [ -f "$INSTALL_DIR/scripts/profile.d/sleepypod-welcome.sh" ]; then + mkdir -p /etc/profile.d + install -m 0644 "$INSTALL_DIR/scripts/profile.d/sleepypod-welcome.sh" /etc/profile.d/sleepypod-welcome.sh +fi + # Root ExecStartPre that re-applies a block saved in Settings at boot, from a # root-owned copy of internet-control. install_maintenance_timer also runs it, # so updaters from before this helper apply it on their first update. diff --git a/scripts/bin/sp-welcome b/scripts/bin/sp-welcome new file mode 100755 index 000000000..d3fe3c299 --- /dev/null +++ b/scripts/bin/sp-welcome @@ -0,0 +1,656 @@ +#!/bin/sh +# sp-welcome — neofetch-style welcome screen: the sleepypod logo beside a panel +# of live pod facts. Read-only: it reads files, asks systemd for unit state and +# GETs the local status API, and never writes, restarts or touches hardware. +# +# Every fact falls back to "-", and every lookup has a deadline, so the screen +# still appears promptly on a slow or half-broken pod. Colour is used only on a +# TTY without NO_COLOR; piped output is plain ASCII so it pastes into Discord. +# --animate plays once while the facts load, then leaves the same static screen. +# +# Intentionally NOT using `set -e`: lookups are best-effort, as in sp-status. + +INSTALL_DIR="${INSTALL_DIR:-/home/dac/sleepypod-core}" +export LC_ALL=C + +# ----- style: everything a restyle should need to touch -------------------- +# Colours are xterm-256 indexes. Letters select the wordmark gradient. +PALETTE='a=223 b=209 c=205 d=134 e=63 f=26 g=195 h=153 i=183 j=105' +WORD_GRADIENT='b c d e j' # wordmark, left to right, following the moon +LABEL_COLOUR=105 +GOOD_COLOUR=114 +WARN_COLOUR=221 +BAD_COLOUR=203 +DIM_COLOUR=240 + +ART_WIDTH=38 +ART_ROWS=20 +GAP=3 +PANEL_WIDTH=38 # below ART_WIDTH + GAP + PANEL_WIDTH the panel drops under the logo +LABEL_WIDTH=10 +BAR_WIDTH=10 + +# --animate: seconds per logo row, then per Z. Each Z is "rows up from the line +# below the logo, column, glyph", rising from the pillow into the gap by the moon. +LINE_DELAY=0.03 +ZZZ_DELAY=0.12 +ZZZ_COLOUR=183 +ZZZ_STEPS='13 31 z 15 33 z 17 35 Z' + +# fact key, label, style (text | state | bar | temperature). Row order is display order. +PANEL_ROWS='host host text +web web text +pod pod text +app sleepypod text +firmware firmware text +service service state +frank frank state +dns dnsmasq state +blocked blocked text +pipeline pipeline text +left left temperature +right right temperature +water water state +disk disk bar +writes writes text +memory memory bar +uptime uptime text' + +# Generated from the same artwork as pixels(), including the moon orientation. +art() { + cat <<'ART' + . + ---:::.. + *+++=--:::.... + ##***++==--:::::.: + #####***++====-=- + %%%#######*** + %%%%%%# + + **####%#*+=- + *##########%#####*+==- + +--=*###%###############*+=- + ####-:-=*##################%%%#*===- +++**++=-:::-=+*########%%%######*+++= +-----=====---::--+*##############**** +:::::::::--====----+#########******** + ..........::--=+*#####***+++++++**** + ...:::--===========+++++ + ...:::--------== + ...:::::--- + ..:::: +ART +} + +# Generated by scripts/art/generate-welcome.py from the iOS welcome artwork. +# Each pair of pixel rows becomes one terminal row, using Unicode half blocks. +# A dash is transparent: preserve the terminal background around the silhouette. +pixels() { + cat <<'PIXELS' +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - 52 - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - 88 52 52 235 - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - 131 131 95 89 53 236 17 17 - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - 167 167 167 131 95 54 54 18 17 17 17 - - - - - - - - - - - - - - - - - +- - - - - - - - - - 209 209 203 204 168 132 61 61 19 18 18 17 17 17 - - - - - - - - - - - - - - +- - - - - - - - - - 210 210 210 210 204 169 133 97 61 25 25 25 18 18 17 17 17 - - - - - - - - - - - +- - - - - - - - - - 216 216 216 210 210 210 205 133 98 62 62 26 25 25 25 18 18 18 - - - - - - - - - - +- - - - - - - - - - - 216 216 216 216 210 211 205 170 134 98 62 62 26 26 26 26 26 - - - - - - - - - - +- - - - - - - - - - - - 216 216 216 216 210 211 211 212 170 134 134 98 98 98 98 - - - - - - - - - - - +- - - - - - - - - - - - - 217 217 217 217 217 217 211 211 211 212 176 176 176 - - - - - - - - - - - - +- - - - - - - - - - - - - - 223 223 217 217 217 217 217 217 217 217 217 - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - 223 223 223 223 223 217 217 - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - 146 147 153 153 153 104 61 60 - - - - - - - - - - - - - - - - +- - - - - - - - - - - - 110 110 146 153 153 152 153 153 153 110 61 60 - - - - - - - - - - - - - - +- - - - - - - - - 110 146 147 147 110 110 146 146 152 153 153 153 153 153 146 67 61 24 - - - - - - - - - - - +- - - - - - - 110 110 147 153 153 153 152 146 146 153 153 153 153 153 153 153 153 153 147 104 61 60 - - - - - - - - - +- - - - - - 24 24 67 146 146 146 152 153 153 153 153 153 153 153 153 153 153 153 153 153 153 147 104 61 60 - - - - - - - +- - - - - 103 24 23 239 103 146 152 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 110 61 60 - - - - - +- - - 146 146 24 24 24 67 146 147 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 67 61 60 - - - +- 146 146 146 146 25 18 17 24 67 110 146 147 153 153 153 147 153 153 153 153 153 153 153 153 153 153 153 153 153 152 146 110 61 61 61 61 - +104 146 146 140 104 62 25 24 18 17 24 61 74 110 147 147 147 147 153 153 153 153 153 153 153 153 153 153 152 146 146 146 110 67 61 61 61 - +61 98 104 104 104 98 62 62 25 24 18 18 24 25 68 110 146 147 153 153 153 153 153 153 153 153 146 146 146 146 147 146 146 104 104 103 61 - +25 25 62 62 62 98 98 62 62 62 25 25 24 18 24 24 67 110 146 153 153 153 153 152 146 146 146 153 153 147 146 146 146 104 104 104 103 - +18 24 25 25 25 25 62 62 62 62 62 62 25 25 24 18 24 24 67 110 152 146 146 146 146 146 147 147 147 146 146 146 146 146 110 104 104 - +17 18 18 18 18 18 19 25 25 62 62 62 62 62 25 25 24 24 23 60 146 146 146 146 147 147 146 146 146 146 146 146 146 146 146 146 140 - +- 17 17 17 17 17 17 17 18 19 25 61 62 62 62 62 61 61 61 67 146 146 147 147 146 146 146 146 146 140 140 140 140 146 146 146 146 - +- 17 17 17 17 17 17 17 17 17 18 18 25 61 62 104 104 104 146 146 146 146 146 146 146 140 140 104 103 103 103 103 103 103 139 140 140 - +- - - - - - - - - 17 17 17 17 18 25 62 104 146 146 146 146 146 140 104 104 104 103 103 103 103 103 103 103 103 103 248 139 - +- - - - - - - - - - - - 17 17 17 18 25 25 62 62 62 62 98 62 61 61 61 61 61 61 61 103 103 103 103 103 - - +- - - - - - - - - - - - - 17 17 17 18 18 25 25 61 62 61 61 61 61 61 61 61 61 61 61 61 97 - - - - +- - - - - - - - - - - - - - - 17 17 17 18 25 25 25 25 61 61 61 61 61 61 61 61 - - - - - - - +- - - - - - - - - - - - - - - - 17 17 17 18 25 25 25 25 25 61 60 61 60 - - - - - - - - - +- - - - - - - - - - - - - - - - 17 17 17 18 18 24 24 24 24 24 60 - - - - - - - - - - - +- - - - - - - - - - - - - - - - - 17 17 18 18 18 24 24 24 - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - 17 17 18 18 18 24 - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +PIXELS +} + +wordmark() { + cat <<'WORD' + _ _ + ___| |___ ___ ___ _ _ ___ ___ _| | +|_ -| | -_| -_| . | | | . | . | . | +|___|_|___|___| _|_ | _|___|___| + |_| |___|_| +WORD +} + +usage() { + cat <<'USAGE' +Usage: sp-welcome [--demo] [--animate] + + --demo render with sample facts (preview off-pod) + --animate draw the logo in first, on a colour terminal tall enough for it +USAGE +} + +# ----- lookups -------------------------------------------------------------- +fact() { + # key, value, optional detail. A fact left unset renders as a dash. + [ -n "$2" ] && printf '%s\t%s\t%s\n' "$1" "$2" "${3:-}" +} + +lim() { + # Python ships on every supported pod. Buffer output privately and isolate + # the process group: neither descendants nor uninterruptible filesystem I/O + # can hold the renderer's pipe open after the deadline. Never wait after kill. + python3 -c ' +import os, signal, subprocess, sys +try: + child = subprocess.Popen(sys.argv[2:], stdout=subprocess.PIPE, + stderr=subprocess.DEVNULL, start_new_session=True) + try: + output, _ = child.communicate(timeout=float(sys.argv[1])) + except subprocess.TimeoutExpired: + os.killpg(child.pid, signal.SIGKILL) + sys.exit(124) + sys.stdout.buffer.write(output) + sys.exit(child.returncode) +except (OSError, ValueError): + sys.exit(1) +' "$@" +} + +unit_state() { + lim 1 systemctl is-active "$1" 2>/dev/null | head -1 +} + +json_string() { + sed -n "s/.*\"$1\":\"\([^\"]*\)\".*/\1/p" | head -1 +} + +json_number() { + sed -n "s/.*\"$1\":\(-\{0,1\}[0-9][0-9.]*\).*/\1/p" | head -1 +} + +api_port() { + # Read the running service environment, not the interactive shell or .env: + # standalone Next.js chooses its port before loading dotenv. + pid=$(lim 1 systemctl show sleepypod.service --property=MainPID --value) + port=$(lim 1 python3 -c ' +import pathlib, sys +pid = sys.argv[1] +if pid.isdecimal() and int(pid) > 0: + for entry in pathlib.Path("/proc", pid, "environ").read_bytes().split(b"\0"): + if entry.startswith(b"PORT="): + value = entry[5:].decode("ascii") + if value.isdecimal() and 0 < int(value) < 65536: + print(int(value)) + break +' "$pid" 2>/dev/null) + echo "${port:-3000}" +} + +side_summary() { + # On/off comes from targetLevel alone: the firmware countdown keeps running + # after power-off, so nothing else is reliable. + side=$(printf '%s' "$1" | sed -n "s/.*\"$2\":{\([^}]*\)}.*/\1/p") + [ -n "$side" ] || return 0 + current=$(printf '%s' "$side" | json_number currentTemperature) + target=$(printf '%s' "$side" | json_number targetTemperature) + level=$(printf '%s' "$side" | json_number targetLevel) + [ -n "$current" ] && current=$(printf '%.0fF' "$current") + if [ "$level" = 0 ]; then + echo "${current:--} off" + elif [ -n "$target" ]; then + printf '%s -> %.0fF\n' "${current:--}" "$target" + else + echo "$current" + fi +} + +fact_device() { + port=$(api_port) + # SSH_CONNECTION identifies the address the user actually reached, including + # IPv6. Off SSH, prefer an available LAN address. Never guess a public URL. + address=$(printf '%s' "${SSH_CONNECTION:-}" | awk '{print $3}') + [ -n "$address" ] || address=$(lim 1 hostname -I 2>/dev/null | awk '{print $1}') + case "$address" in *:*) address="[$address]" ;; esac + [ -n "$address" ] && fact web "http://$address:$port" + status=$(lim 3 curl --silent --fail --max-time 2 --noproxy '*' \ + "http://127.0.0.1:$port/api/device/status" 2>/dev/null) + [ -n "$status" ] || return 0 + + # Same revision rule as sp-info. Only the revision is kept, never the serial. + fact pod "$(printf '%s' "$status" | json_string sensorLabel | awk -F- '{ + for (i = NF; i > 0; i--) if ($i ~ /^[H-Z][0-9][0-9]$/) { + c = substr($i, 1, 1) + print "Pod " (c == "H" ? 3 : c == "I" ? 4 : 5) " (" $i ")" + exit + } + }')" + fact left "$(side_summary "$status" leftSide)" + fact right "$(side_summary "$status" rightSide)" + + water=$(printf '%s' "$status" | json_string waterLevel) + case "$status" in *'"isPriming":true'*) water="${water:+$water, }priming" ;; esac + fact water "$water" +} + +fact_app() { + info=$(lim 1 cat "$INSTALL_DIR/.git-info" 2>/dev/null) + commit=$(printf '%s' "$info" | sed -n 's/.*"commitHash"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | cut -c1-7) + branch=$(printf '%s' "$info" | sed -n 's/.*"branch"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p') + fact app "$commit${commit:+${branch:+ }}${branch:+($branch)}" +} + +fact_pipeline() { + # Same precedence as sp-status. No answer from systemd means no claim at all. + nats=$(unit_state nats-server.service) + [ -n "$nats" ] || return 0 + if [ "$nats" = active ] && lim 1 test -d /persistent/jetstream; then + fact pipeline 'NATS JetStream' + elif lim 1 grep -q ' /persistent/biometrics ' /proc/mounts 2>/dev/null; then + fact pipeline 'tmpfs .RAW' + elif lim 1 test -d /persistent; then + fact pipeline 'filesystem .RAW' + fi +} + +# Report configured NXDOMAIN zones only when the service and resolver are in use. +fact_dns() { + dns_state=$(unit_state sleepypod-dns.service) + fact dns "$dns_state" + [ "$dns_state" = active ] || return 0 + resolver=$(lim 1 readlink /etc/resolv.conf) + [ "$resolver" = /etc/sleepypod/resolv.conf ] || return 0 + zones=$(lim 1 awk -F/ 'NF == 3 && $1 == "address=" && $2 != "" && $3 == "" { + printf "%s*.%s", sep, $2; sep=", " + }' /etc/sleepypod/dnsmasq.conf) + fact blocked "$zones" +} + +fact_disk() { + usage_line=$(lim 1 df -Pk /persistent 2>/dev/null | awk ' + function human(k) { + if (k >= 1048576) return sprintf("%.1fG", k / 1048576) + return sprintf("%.0fM", k / 1024) + } + NR == 2 { + pct = $(NF - 1) + sub(/%/, "", pct) + printf "%s\t%s/%s\n", pct, human($(NF - 3)), human($(NF - 4)) + }') + [ -n "$usage_line" ] && printf 'disk\t%s\n' "$usage_line" +} + +# A one-second sample of the entire eMMC, including firmware and OS writes. +# No cache files or database writes; unavailable/reset counters render a dash. +fact_writes() { + rate=$(lim 3 python3 -c ' +import os, pathlib, time +name = os.environ.get("SP_FLASH_DEVICE", "mmcblk0") +if not name or any(c not in "abcdefghijklmnopqrstuvwxyz0123456789_-" for c in name): + raise ValueError("invalid block device") +path = pathlib.Path("/sys/block", name, "stat") +start = int(path.read_text().split()[6]) +then = time.monotonic() +time.sleep(1) +end = int(path.read_text().split()[6]) +elapsed = time.monotonic() - then +if start >= 0 and end >= start and elapsed > 0: + rate = (end - start) * 512 / elapsed + unit, divisor = ("MiB/s", 1048576) if rate >= 1048576 else ("KiB/s", 1024) + print("{:.1f} {} (1s)".format(rate / divisor, unit)) +' 2>/dev/null) + fact writes "$rate" +} + +fact_memory() { + lim 1 awk ' + function human(k) { + if (k >= 1048576) return sprintf("%.1fG", k / 1048576) + return sprintf("%.0fM", k / 1024) + } + /^MemTotal:/ { total = $2 } + /^MemFree:/ { free = $2 } + /^MemAvailable:/ { avail = $2 } + END { + if (!total) exit + if (avail == "") avail = free + used = total - avail + printf "memory\t%d\t%s/%s\n", used * 100 / total, human(used), human(total) + }' /proc/meminfo 2>/dev/null +} + +fact_uptime() { + fact uptime "$(lim 1 awk '{ + s = int($1) + d = int(s / 86400); h = int(s % 86400 / 3600); m = int(s % 3600 / 60) + if (d) printf "%dd %dh %dm\n", d, h, m + else if (h) printf "%dh %dm\n", h, m + else printf "%dm\n", m + }' /proc/uptime 2>/dev/null)" +} + +facts_live() { + # Parallel, so the slowest lookup sets the wait rather than the sum of them. + # Rows go through one pipe instead of temp files, keeping this read-only. + fact host "$(lim 1 uname -n 2>/dev/null)" + fact firmware "$(lim 1 head -1 /etc/rat_version 2>/dev/null | cut -c1-12)" + fact_app & + fact_memory + fact_uptime + fact_device & + fact_pipeline & + fact_disk & + fact_writes & + (fact service "$(unit_state sleepypod.service)") & + (fact frank "$(unit_state frank.service)") & + fact_dns & + wait +} + +facts_demo() { + fact host demo-pod + fact web 'http://192.168.1.88:3000' + fact pod 'Pod 5 (J55)' + fact app '6179822 (dev)' + fact firmware ca35aafa + fact service active + fact frank active + fact dns 'active' + fact blocked '*.8slp.net' + fact pipeline 'NATS JetStream' + fact left '74F -> 68F' + fact right '71F off' + fact water ok + fact writes '240.0 KiB/s (1s)' + fact disk 42 '2.6G/6.2G' + fact memory 61 '1.2G/1.9G' + fact uptime '3d 4h 12m' +} + +facts_none() { :; } + +# ----- layout --------------------------------------------------------------- +detect_size() { + # Sets $rows and $cols rather than printing them: inside $(...) stdout is never the TTY. + size= + if [ -t 1 ]; then + { size=$(stty size <&3 2>/dev/null); } 3>&1 + fi + rows=${size%% *} + cols=${size##* } + case "$rows" in ''|*[!0-9]*) rows=0 ;; esac + case "$cols" in ''|*[!0-9]*|0) cols=${COLUMNS:-80} ;; esac + case "$cols" in ''|*[!0-9]*|0) cols=80 ;; esac +} + +render() { + # The sections are streamed to one awk, which owns all layout decisions. + { + echo '%%art'; art + echo '%%pixels'; pixels + echo '%%word'; wordmark + echo '%%rows'; printf '%s\n' "$PANEL_ROWS" + echo '%%facts'; "$1" 2>/dev/null + } | LC_ALL=C awk -v cols="$2" -v colour="$3" -v logo_only="${4:-0}" \ + -v palette="$PALETTE" -v gradient="$WORD_GRADIENT" \ + -v label_colour="$LABEL_COLOUR" -v good="$GOOD_COLOUR" -v warn="$WARN_COLOUR" \ + -v bad="$BAD_COLOUR" -v dim="$DIM_COLOUR" \ + -v art_w="$ART_WIDTH" -v gap="$GAP" -v panel_w="$PANEL_WIDTH" \ + -v label_w="$LABEL_WIDTH" -v bar_w="$BAR_WIDTH" ' + function fg(n) { return colour ? sprintf("\033[38;5;%dm", n) : "" } + function off() { return colour ? "\033[0m" : "" } + function tint(n, s) { return fg(n) s off() } + function spaces(n, s) { s = ""; while (n-- > 0) s = s " "; return s } + function repeat(c, n, s) { s = ""; while (n-- > 0) s = s c; return s } + function fit(s, n) { + if (n < 0) n = 0 + if (length(s) <= n) return s + return n < 3 ? substr(s, 1, n) : substr(s, 1, n - 2) ".." + } + + # Emit a colour code only where the mask letter changes. + function paint(text, letters, out, i, c, m, last) { + if (!colour) return text + out = ""; last = "" + for (i = 1; i <= length(text); i++) { + c = substr(text, i, 1) + m = substr(letters, i, 1) + if (c != " " && m != last && (m in pal)) { out = out fg(pal[m]); last = m } + out = out c + } + return out off() + } + + # Work in pixel columns, never byte lengths: a UTF-8 half block is one cell. + function logo_line(row, width, x, upper, lower, out) { + if (!colour) return art[row] spaces(width - length(art[row])) + out = "" + for (x = 1; x <= art_w; x++) { + upper = pixel[(row - 1) * 2 + 1, x] + lower = pixel[(row - 1) * 2 + 2, x] + if (upper == "" || upper == "-") { + out = out "\033[49m" (lower == "" || lower == "-" ? " " : fg(lower) "▄") + } else if (lower == "" || lower == "-") { + out = out "\033[49m" fg(upper) "▀" + } else { + out = out fg(upper) sprintf("\033[48;5;%dm▀", lower) + } + } + return out off() spaces(width - art_w) + } + + function word_line(text, letters, i) { + letters = "" + for (i = 1; i <= length(text); i++) + letters = letters grad[int((i - 1) * ngrad / word_w) + 1] + return paint(text, letters) + } + + function state_colour(v) { + if (v == "active" || v == "ok") return good + if (v == "failed" || v ~ /^low(,|$)/) return bad + return warn + } + + function bar_value(k, room, p, text, filled, c, out, i, step) { + p = val[k] + 0 + text = p "% " detail[k] + if (length(text) + bar_w + 3 > room) return fit(text, room) + filled = int(p * bar_w / 100 + 0.5) + if (filled < 0) filled = 0 + if (filled > bar_w) filled = bar_w + if (!colour) return "[" repeat("#", filled) repeat("-", bar_w - filled) "] " text + out = "" + for (i = 1; i <= filled; i++) { + step = int((i - 1) * 3 / (filled > 1 ? filled - 1 : 1)) + # Four related shades per state: mint, amber, or coral. + c = p >= 90 ? (step == 0 ? 167 : step == 1 ? 203 : step == 2 ? 209 : 216) : \ + p >= 80 ? (step == 0 ? 172 : step == 1 ? 214 : step == 2 ? 220 : 222) : \ + (step == 0 ? 29 : step == 1 ? 35 : step == 2 ? 78 : 114) + out = out tint(c, "█") + } + return "[" out tint(dim, repeat("░", bar_w - filled)) "] " text + } + + # Colour each Fahrenheit number independently; arrows stay neutral. + function temperature_value(v, out, token, n) { + out = "" + while (match(v, /-?[0-9]+F|off/)) { + out = out substr(v, 1, RSTART - 1) + token = substr(v, RSTART, RLENGTH) + n = token + 0 + out = out tint(token == "off" ? dim : n < 75 ? 117 : n <= 85 ? 183 : 209, token) + v = substr(v, RSTART + RLENGTH) + } + return out v + } + + function fact_line(i, width, k, room, head, v) { + k = row_key[i] + head = fit(row_label[i], width) + room = width - label_w + if (room < 1) return tint(label_colour, head) + head = tint(label_colour, head spaces(label_w - length(head))) + if (!(k in val)) return head tint(dim, "-") + if (row_style[i] == "bar") return head bar_value(k, room) + v = fit(val[k], room) + if (row_style[i] == "temperature") return head temperature_value(v) + if (row_style[i] == "state") return head tint(state_colour(val[k]), v) + return head v + } + + BEGIN { + FS = "\t" + n = split(palette, pairs, " ") + for (i = 1; i <= n; i++) { split(pairs[i], kv, "="); pal[kv[1]] = kv[2] } + ngrad = split(gradient, grad, " ") + } + /^%%(art|pixels|word|rows|facts)$/ { sec = substr($0, 3); next } + sec == "art" { art[++art_n] = $0; next } + sec == "pixels" { + pixel_n++ + n = split($0, px, " ") + for (i = 1; i <= n; i++) pixel[pixel_n, i] = px[i] + next + } + sec == "word" { + word[++word_n] = $0 + if (length($0) > word_w) word_w = length($0) + next + } + sec == "rows" { + split($0, r, " ") + row_n++ + row_key[row_n] = r[1]; row_label[row_n] = r[2]; row_style[row_n] = r[3] + next + } + sec == "facts" { + v = $2; d = $3 + gsub(/[^ -~]/, "", v) + gsub(/[^ -~]/, "", d) + if (v != "") { val[$1] = v; detail[$1] = d } + next + } + + END { + if (logo_only) { + for (i = 1; i <= art_n; i++) print logo_line(i, art_w) + exit + } + + side = cols >= art_w + gap + panel_w + width = side ? panel_w : cols + + panel_n = 0 + if (width >= word_w) { + for (i = 1; i <= word_n; i++) panel[++panel_n] = word_line(word[i]) + } else { + panel[++panel_n] = tint(pal[grad[1]], fit("sleepypod", width)) + } + panel[++panel_n] = "" + for (i = 1; i <= row_n; i++) panel[++panel_n] = fact_line(i, width) + + if (side) { + top = int((art_n - panel_n) / 2) + if (top < 0) top = 0 + total = art_n > top + panel_n ? art_n : top + panel_n + for (i = 1; i <= total; i++) { + p = i - top + right = (p >= 1 && p <= panel_n) ? panel[p] : "" + print logo_line(i, right != "" ? art_w + gap : art_w) right + } + exit + } + + if (cols >= art_w) { + for (i = 1; i <= art_n; i++) print logo_line(i, art_w) + print "" + } + for (i = 1; i <= panel_n; i++) print panel[i] + }' +} + +# ----- animation ------------------------------------------------------------ +can_animate() { + # Fractional sleep is the one thing a minimal BusyBox may lack. + [ "$colour" = 1 ] && [ "$rows" -gt "$ART_ROWS" ] && [ "$cols" -ge "$ART_WIDTH" ] && + sleep 0.01 2>/dev/null +} + +animate() { + # No pipelines: a Ctrl-C has to stop this with one kill. Painted rows are never + # empty (they end in a colour reset), so splitting on newlines keeps them all. + set -f + IFS=' +' + for line in $1; do + printf '%s\n' "$line" + sleep "$LINE_DELAY" + done + IFS=' ' + # shellcheck disable=SC2086 # split into up, column, glyph triples + set -- $ZZZ_STEPS + while [ "$#" -ge 3 ]; do + printf '\033[%dA\033[%dG\033[38;5;%dm%s\033[0m\033[%dB\r' "$1" "$2" "$ZZZ_COLOUR" "$3" "$1" + sleep "$ZZZ_DELAY" + shift 3 + done +} + +animated_render() { + # The animation runs beside the lookups, so a slow pod is not made any slower. + logo=$(render facts_none "$cols" "$colour" 1) + trap 'printf "\033[?25h"' EXIT + trap 'kill "$anim_pid" 2>/dev/null; exit 130' INT TERM + printf '\033[?25l' + animate "$logo" & + anim_pid=$! + screen=$(render "$1" "$cols" "$colour") + wait "$anim_pid" + printf '\033[%dA\r\033[J%s\n' "$ART_ROWS" "$screen" +} + +# ----- main ----------------------------------------------------------------- +source_facts=facts_live +animated=0 +for arg in "$@"; do + case "$arg" in + --demo) source_facts=facts_demo ;; + --animate) animated=1 ;; + -h|--help) usage; exit 0 ;; + *) usage >&2; exit 2 ;; + esac +done + +colour=0 +if [ -t 1 ] && [ -z "${NO_COLOR:-}" ] && [ "${TERM:-dumb}" != dumb ]; then + colour=1 +fi + +detect_size +printf '\n' +if [ "$animated" = 1 ] && can_animate; then + animated_render "$source_facts" +else + render "$source_facts" "$cols" "$colour" +fi +printf '\n' diff --git a/scripts/biometrics-archive/README.md b/scripts/biometrics-archive/README.md index 30c6e3c26..3755f4c51 100644 --- a/scripts/biometrics-archive/README.md +++ b/scripts/biometrics-archive/README.md @@ -119,6 +119,7 @@ Rules (`TABLES` in `merge.ts`): | `reference_stages` | side, start, source | state: a corrected import replaces the label | | `reference_samples` | side, metric, timestamp, source | state (Watch breathing rate and HRV SDNN) | | `reference_vitals` | side, timestamp, source | state | +| `watch_motion_captures` | side, recorded_from | state: a resent night replaces the file | | `reference_imports` | id (text) | state (deleted_at_ms) | | `biometric_processing_runs`, `biometric_experiments`, `biometric_backtest_jobs`, `biometric_raw_sources`, `biometric_shadow_runs`, `biometric_dataset_raw_artifacts` | id (text) | state | | `biometric_backtest_results` | job_id | state | diff --git a/scripts/biometrics-archive/merge.ts b/scripts/biometrics-archive/merge.ts index 8170d6416..21f1ca26e 100644 --- a/scripts/biometrics-archive/merge.ts +++ b/scripts/biometrics-archive/merge.ts @@ -56,6 +56,7 @@ export const TABLES: TableSpec[] = [ { table: 'reference_stages', key: ['side', 'start', 'source'], mode: 'state' }, { table: 'reference_samples', key: ['side', 'metric', 'timestamp', 'source'], mode: 'state' }, { table: 'reference_vitals', key: ['side', 'timestamp', 'source'], mode: 'state' }, + { table: 'watch_motion_captures', key: ['side', 'recorded_from'], mode: 'state' }, { table: 'biometric_processing_runs', key: ['id'], mode: 'state' }, { table: 'biometric_runtime_configs', key: ['side', 'generation'], mode: 'append' }, { table: 'biometric_runtime_receipts', key: ['side', 'component', 'generation'], mode: 'state' }, diff --git a/scripts/import-watch-health.py b/scripts/import-watch-health.py index 42456e974..3ed908662 100755 --- a/scripts/import-watch-health.py +++ b/scripts/import-watch-health.py @@ -1,32 +1,35 @@ #!/usr/bin/env -S uv run --quiet --no-project """ -Import Apple Watch sleep stages, heart rate, breathing rate and HRV from a Health export into the pod. +Import Apple Watch sleep stages, heart rate, breathing rate, HRV and blood oxygen from a Health export into the pod. scripts/import-watch-health.py ~/Desktop/apple_health_export --pod 192.168.1.88 --side left Reads export.xml (or the unzipped apple_health_export/ directory) with the same -parser as sleep-stage-dataset.py, keeps samples whose sourceName matches ---source (default: Watch) and was not written by sleepypod itself, and posts -them to the pod's REST API: +parser as sleep-stage-dataset.py, keeps samples an Apple Watch recorded (by +sourceName or device; --source narrows this to a sourceName pattern alone) that +sleepypod did not write itself, and posts them to the pod's REST API: POST /api/biometrics/reference-stages SleepAnalysis segments (wake/light/deep/rem) POST /api/biometrics/reference-vitals HeartRate samples POST /api/biometrics/reference-samples RespiratoryRate (breathing_rate, breaths/min) - and HeartRateVariabilitySDNN (hrv_sdnn, ms) + HeartRateVariabilitySDNN (hrv_sdnn, ms) + HeartRateVariabilityRMSSD (hrv_rmssd, ms) + and OxygenSaturation (blood_oxygen, %) -Heart rate, breathing rate and HRV are first-write-wins on side + time + +Heart rate, breathing rate, HRV and blood oxygen are first-write-wins on side + time + source (+ metric), so re-running on a newer export only adds what is new. Stages are stricter: a batch is rejected (HTTP 400) when a segment overlaps a stored one with different boundaries, e.g. a night the iOS app already posted. Such a batch is skipped with a warning, the vitals are still imported, and the run exits 1 at the end. Nothing is written to the pod's own `vitals` table: Watch heart rate lives in `reference_vitals` (the Biometrics page draws it as a second line over the -pod's heart rate), breathing rate and HRV in `reference_samples`. +pod's heart rate), breathing rate, HRV and blood oxygen in `reference_samples`. Options: --days N only samples from the last N days (default 30; 0 = everything) --dry-run parse and count, post nothing --stages-only / --hr-only (heart rate alone, without breathing rate and HRV) + --oxygen-only blood oxygen alone """ import argparse import importlib.util @@ -48,15 +51,26 @@ HK_RR = 'HKQuantityTypeIdentifierRespiratoryRate' HK_HRV = 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN' +HK_RMSSD = 'HKQuantityTypeIdentifierHeartRateVariabilityRMSSD' +HK_SPO2 = 'HKQuantityTypeIdentifierOxygenSaturation' # reference_samples metric, HK type, plausible range (the API enforces the same) -SAMPLE_METRICS = (('breathing_rate', HK_RR, 4, 60), ('hrv_sdnn', HK_HRV, 1, 500)) -# Factors into the canonical unit (breaths/min, ms). Health exports use -# count/min and ms; anything unlisted is skipped instead of stored unconverted. -SAMPLE_UNITS = {HK_RR: {'count/min': 1, 'count/s': 60, 'Hz': 60}, HK_HRV: {'ms': 1, 's': 1000}} +SAMPLE_METRICS = (('breathing_rate', HK_RR, 4, 60), ('hrv_sdnn', HK_HRV, 1, 500), ('hrv_rmssd', HK_RMSSD, 1, 500), + ('blood_oxygen', HK_SPO2, 50, 100)) +# Factors into the canonical unit (breaths/min, ms, %). Health exports use +# count/min and ms, and write saturation as a fraction under unit "%" (0.97); +# anything unlisted is skipped instead of stored unconverted. +SAMPLE_UNITS = {HK_RR: {'count/min': 1, 'count/s': 60, 'Hz': 60}, HK_HRV: {'ms': 1, 's': 1000}, HK_RMSSD: {'ms': 1, 's': 1000}, + HK_SPO2: {'%': 100}} # The sleepypod iOS app writes the pod's own HR, breathing, HRV and sleep stages # back into Health (sourceName "sleepypod", "sleepypod design"). Those are never # a reference, whatever --source says. POD_SOURCE = '(?i)sleepypod' +# A sourceName is whatever the owner named the device or app ("nPhone", "Blood +# Oxygen"), so a Watch's readings can arrive under a name without "Watch" in it. +# The device attribute still says what recorded them. Sleep stages carry no device +# and stay matched on sourceName, which also keeps iPhone sleep out. +WATCH_SOURCE = 'Watch' +WATCH_DEVICE = r'\bmodel:Watch\b' # The API caps both endpoints at 2000 items per call. BATCH = 2000 @@ -141,18 +155,20 @@ def export_stream(export): yield export -def run(export, pod, side, source_pattern='Watch', days=30, dry_run=False, - stages=True, hr=True, extra=True, post=post_json, now=None, report=False): +def run(export, pod, side, source_pattern=None, days=30, dry_run=False, + stages=True, hr=True, extra=True, oxygen=True, post=post_json, now=None, report=False): now = time.time() if now is None else now cutoff = now - days * 86400 if days > 0 else float('-inf') quantities = {hk: [] for _, hk, _, _ in SAMPLE_METRICS} with export_stream(export) as xml: - segments, hr_samples = parse_export(xml, source_pattern, cutoff=cutoff, quantities=quantities, - exclude_pattern=POD_SOURCE, units=SAMPLE_UNITS) + segments, hr_samples = parse_export(xml, source_pattern or WATCH_SOURCE, cutoff=cutoff, quantities=quantities, + exclude_pattern=POD_SOURCE, units=SAMPLE_UNITS, + device_pattern=None if source_pattern else WATCH_DEVICE) segs = [s for s in dedupe_segments(segments) if s[1] >= cutoff] if stages else [] samples = [(t, bpm) for t, bpm in hr_samples if t >= cutoff and 20 <= bpm <= 250] if hr else [] - extras = {metric: [(t, v) for t, v in quantities[hk] if t >= cutoff and lo <= v <= hi] if extra else [] + extras = {metric: [(t, v) for t, v in quantities[hk] if t >= cutoff and lo <= v <= hi] + if (oxygen if metric == 'blood_oxygen' else extra) else [] for metric, hk, lo, hi in SAMPLE_METRICS} def span(times): @@ -164,13 +180,13 @@ def span(times): print(f'{len(segs)} stage segments ({span([s[0] for s in segs])}), ' f'{len(samples)} heart-rate samples ({span([t for t, _ in samples])}), ' - f"{len(extras['breathing_rate'])} breathing-rate and {len(extras['hrv_sdnn'])} HRV samples for side {side}", + f"{len(extras['breathing_rate'])} breathing-rate, {len(extras['hrv_sdnn'])} HRV, {len(extras['hrv_rmssd'])} RMSSD and {len(extras['blood_oxygen'])} blood-oxygen samples for side {side}", file=sys.stderr) if dry_run: - return {'stages': 0, 'vitals': 0, 'breathing': 0, 'hrv': 0} + return {'stages': 0, 'vitals': 0, 'breathing': 0, 'hrv': 0, 'rmssd': 0, 'oxygen': 0} url = base_url(pod) - written = {'stages': 0, 'vitals': 0, 'breathing': 0, 'hrv': 0} + written = {'stages': 0, 'vitals': 0, 'breathing': 0, 'hrv': 0, 'rmssd': 0, 'oxygen': 0} rejected = 0 for batch in chunks(segs): try: @@ -191,7 +207,7 @@ def span(times): 'samples': [{'timestamp': t, 'heartRate': bpm} for t, bpm in batch], }) written['vitals'] += int(out.get('written', 0)) - for metric, key in (('breathing_rate', 'breathing'), ('hrv_sdnn', 'hrv')): + for metric, key in (('breathing_rate', 'breathing'), ('hrv_sdnn', 'hrv'), ('hrv_rmssd', 'rmssd'), ('blood_oxygen', 'oxygen')): for batch in chunks(extras[metric]): out = post(f'{url}/api/biometrics/reference-samples', { 'side': side, 'source': 'apple_watch', 'metric': metric, @@ -199,11 +215,12 @@ def span(times): }) written[key] += int(out.get('written', 0)) print(f"wrote {written['stages']} new stage segments, {written['vitals']} new heart-rate, " - f"{written['breathing']} new breathing-rate and {written['hrv']} new HRV samples to {url}", + f"{written['breathing']} new breathing-rate, {written['hrv']} new HRV, {written['rmssd']} new RMSSD and {written['oxygen']} new blood-oxygen samples to {url}", file=sys.stderr) if report: return {**written, 'rejectedStageBatches': rejected, 'matchedStages': len(segs), 'matchedVitals': len(samples), - 'matchedBreathing': len(extras['breathing_rate']), 'matchedHrv': len(extras['hrv_sdnn'])} + 'matchedBreathing': len(extras['breathing_rate']), 'matchedHrv': len(extras['hrv_sdnn']), 'matchedRmssd': len(extras['hrv_rmssd']), + 'matchedOxygen': len(extras['blood_oxygen'])} if rejected: raise SystemExit(f'error: {rejected} stage batch(es) rejected by the pod; vitals were still imported') return written @@ -214,20 +231,22 @@ def main(argv=None): ap.add_argument('export', help='export.xml or the apple_health_export directory') ap.add_argument('--pod', required=True, help='pod host/IP (port 3000 assumed) or a full http(s) URL') ap.add_argument('--side', choices=('left', 'right'), required=True, help='the side the Watch wearer sleeps on') - ap.add_argument('--source', default='Watch', help='regex on export sourceName (default: Watch)') + ap.add_argument('--source', help='regex on export sourceName, instead of everything an Apple Watch recorded') ap.add_argument('--days', type=int, default=30, help='only the last N days (default 30; 0 = all)') ap.add_argument('--json', action='store_true', help='return import counts and partial stage conflicts as JSON') ap.add_argument('--dry-run', action='store_true', help='parse and count only') group = ap.add_mutually_exclusive_group() group.add_argument('--stages-only', action='store_true') group.add_argument('--hr-only', action='store_true') + group.add_argument('--oxygen-only', action='store_true') args = ap.parse_args(argv) export = os.path.join(args.export, 'export.xml') if os.path.isdir(args.export) else args.export if not os.path.exists(export): ap.error(f'{export} not found') result = run(export, args.pod, args.side, args.source, args.days, args.dry_run, - stages=not args.hr_only, hr=not args.stages_only, extra=not (args.hr_only or args.stages_only), + stages=not (args.hr_only or args.oxygen_only), hr=not (args.stages_only or args.oxygen_only), + extra=not (args.hr_only or args.stages_only or args.oxygen_only), oxygen=not (args.hr_only or args.stages_only), report=args.json) if args.json: print(json.dumps(result)) diff --git a/scripts/install b/scripts/install index 7c6b93c78..9889360f5 100755 --- a/scripts/install +++ b/scripts/install @@ -1549,6 +1549,12 @@ if [ -d "$INSTALL_DIR/scripts/bin" ]; then chmod 0755 "$target" done fi +# Static welcome for interactive SSH logins only. +if [ -f "$INSTALL_DIR/scripts/profile.d/sleepypod-welcome.sh" ]; then + mkdir -p /etc/profile.d + install -m 0644 "$INSTALL_DIR/scripts/profile.d/sleepypod-welcome.sh" /etc/profile.d/sleepypod-welcome.sh +fi + # Root ExecStartPre drop-in that re-applies a block saved in Settings at boot, # from a root-owned copy of internet-control in /usr/local/bin. source "$INSTALL_DIR/scripts/lib/internet-choice-helpers" diff --git a/scripts/profile.d/sleepypod-welcome.sh b/scripts/profile.d/sleepypod-welcome.sh new file mode 100644 index 000000000..acc4a2412 --- /dev/null +++ b/scripts/profile.d/sleepypod-welcome.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Display once on interactive SSH login; remote commands and transfers stay quiet. +case $- in + *i*) + if [ -n "${SSH_CONNECTION:-}" ] && [ -t 1 ] && [ -x /usr/local/bin/sp-welcome ]; then + /usr/local/bin/sp-welcome + fi + ;; +esac diff --git a/scripts/sleep-stage-dataset.py b/scripts/sleep-stage-dataset.py index 69dc4e77c..a91ee6cca 100755 --- a/scripts/sleep-stage-dataset.py +++ b/scripts/sleep-stage-dataset.py @@ -82,9 +82,10 @@ def night_of(dt): # ── Health export ────────────────────────────────────────────────────────── -def parse_export(path, source_pattern='Watch', cutoff=None, quantities=None, exclude_pattern=None, units=None): +def parse_export(path, source_pattern='Watch', cutoff=None, quantities=None, exclude_pattern=None, units=None, device_pattern=None): """Stream export.xml and return (stage_segments, hr_samples) for sources - matching source_pattern and, when given, not matching exclude_pattern. + matching source_pattern (or a record's device matching device_pattern, when + given) and, when given, not matching exclude_pattern. stage_segments: [(start_dt, end_dt, stage)] in file order (aware datetimes) hr_samples: [(unix_s, bpm)] sorted by time @@ -98,6 +99,7 @@ def parse_export(path, source_pattern='Watch', cutoff=None, quantities=None, exc path = os.path.join(path, 'export.xml') source_re = re.compile(source_pattern) exclude_re = re.compile(exclude_pattern) if exclude_pattern else None + device_re = re.compile(device_pattern) if device_pattern else None segments, hr = [], [] quantities = quantities or {} units = units or {} @@ -106,7 +108,8 @@ def add(a): kind = a.get('type') source = a.get('sourceName', '') if (kind not in (HK_SLEEP, HK_HR) and kind not in quantities) \ - or not source_re.search(source) or (exclude_re and exclude_re.search(source)): + or not (source_re.search(source) or (device_re and device_re.search(a.get('device', '')))) \ + or (exclude_re and exclude_re.search(source)): return try: start = datetime.strptime(a['startDate'], '%Y-%m-%d %H:%M:%S %z') diff --git a/scripts/tests/test_import_watch_health.py b/scripts/tests/test_import_watch_health.py index ed15063cb..7162a106c 100644 --- a/scripts/tests/test_import_watch_health.py +++ b/scripts/tests/test_import_watch_health.py @@ -11,6 +11,7 @@ import os import tempfile import unittest +from unittest import mock from datetime import datetime, timedelta, timezone HERE = os.path.dirname(os.path.abspath(__file__)) @@ -22,6 +23,8 @@ TZ = timezone(timedelta(hours=-7)) T0 = datetime(2026, 10, 9, 2, 0, tzinfo=TZ) WATCH = "Jon’s Apple Watch" +WATCH_HARDWARE = '<<HKDevice: 0x1>, name:Apple Watch, manufacturer:Apple Inc., model:Watch, hardware:Watch8,2>' +PHONE_HARDWARE = '<<HKDevice: 0x2>, name:iPhone, manufacturer:Apple Inc., model:iPhone, hardware:iPhone17,1>' def hk_time(dt): @@ -39,8 +42,8 @@ def hr_record(at, bpm, source=WATCH): f'startDate="{hk_time(at)}" endDate="{hk_time(at)}" value="{bpm}"/>\n') -def quantity_record(kind, at, value, unit, source=WATCH): - return (f' \n') @@ -115,14 +118,14 @@ def test_posts_stages_and_heart_rate_to_the_pod_endpoints(self): {'timestamp': int((T0 + timedelta(minutes=6)).timestamp()), 'heartRate': 56.5}, {'timestamp': int((T0 + timedelta(minutes=11)).timestamp()), 'heartRate': 61.0}, ]) - self.assertEqual(written, {'stages': 3, 'vitals': 3, 'breathing': 0, 'hrv': 0}) + self.assertEqual(written, {'stages': 3, 'vitals': 3, 'breathing': 0, 'hrv': 0, 'rmssd': 0, 'oxygen': 0}) self.assertIn('wrote 3 new stage segments, 3 new heart-rate', err) def test_dry_run_posts_nothing_but_reports_counts(self): write_export(self.export, [(0, 20, 'AsleepCore')], [(1, 58)]) post, written, err = self.run_import(dry_run=True) self.assertEqual(post.calls, []) - self.assertEqual(written, {'stages': 0, 'vitals': 0, 'breathing': 0, 'hrv': 0}) + self.assertEqual(written, {'stages': 0, 'vitals': 0, 'breathing': 0, 'hrv': 0, 'rmssd': 0, 'oxygen': 0}) self.assertIn('1 stage segments', err) self.assertIn('1 heart-rate samples', err) @@ -133,7 +136,7 @@ def test_days_window_drops_old_samples(self): self.assertEqual(len(post.calls[0][1]['segments']), 1) self.assertEqual(len(post.calls[1][1]['samples']), 1) _, written_all, _ = self.run_import(days=0) - self.assertEqual(written_all, {'stages': 2, 'vitals': 2, 'breathing': 0, 'hrv': 0}) + self.assertEqual(written_all, {'stages': 2, 'vitals': 2, 'breathing': 0, 'hrv': 0, 'rmssd': 0, 'oxygen': 0}) def test_batches_at_the_api_limit(self): write_export(self.export, [], [(m, 60) for m in range(0, 4500)]) @@ -185,6 +188,32 @@ def test_ignores_other_sources(self): post, _, _ = self.run_import(source_pattern='Nope') self.assertEqual(post.calls, []) + def test_a_watch_is_found_by_its_device_whatever_the_source_is_named(self): + at = T0 + timedelta(minutes=2) + write_export(self.export, [], [], extra=( + quantity_record('OxygenSaturation', at, 0.97, '%', source='nPhone', device=WATCH_HARDWARE) + + quantity_record('OxygenSaturation', at + timedelta(minutes=1), 0.96, '%', source='Blood Oxygen', device=WATCH_HARDWARE) + + quantity_record('OxygenSaturation', at + timedelta(minutes=2), 0.95, '%', source='nPhone', device=PHONE_HARDWARE) + + quantity_record('OxygenSaturation', at + timedelta(minutes=3), 0.94, '%', source='nPhone') + + sleep_record(at, at + timedelta(minutes=20), 'AsleepCore', source='nPhone'))) + post, _, _ = self.run_import() + self.assertEqual([u for u, _ in post.calls], ['http://192.168.1.88:3000/api/biometrics/reference-samples']) + self.assertEqual([s['value'] for s in post.calls[0][1]['samples']], [97.0, 96.0]) + + def test_sleepypod_is_never_a_reference_even_on_a_watch_device(self): + at = T0 + timedelta(minutes=2) + write_export(self.export, [], [], extra=quantity_record('OxygenSaturation', at, 0.97, '%', source='sleepypod', device=WATCH_HARDWARE)) + post, _, _ = self.run_import() + self.assertEqual(post.calls, []) + + def test_a_chosen_source_is_the_only_filter(self): + at = T0 + timedelta(minutes=2) + write_export(self.export, [], [], extra=( + quantity_record('OxygenSaturation', at, 0.97, '%', source='nPhone', device=WATCH_HARDWARE) + + quantity_record('OxygenSaturation', at + timedelta(minutes=1), 0.96, '%', source='Blood Oxygen', device=WATCH_HARDWARE))) + post, _, _ = self.run_import(source_pattern='^Blood Oxygen$') + self.assertEqual([s['value'] for s in post.calls[0][1]['samples']], [96.0]) + def test_posts_breathing_rate_and_hrv_per_metric(self): write_export(self.export, [], [(1, 58)], rr=[(2, 14.5), (7, 15), (8, 2), (9, 90)], hrv=[(3, 48), (4, 0), (5, 900)]) post, written, err = self.run_import() @@ -195,8 +224,8 @@ def test_posts_breathing_rate_and_hrv_per_metric(self): 'samples': [{'timestamp': t(2), 'value': 14.5}, {'timestamp': t(7), 'value': 15.0}]}) self.assertEqual(post.calls[2][1], {'side': 'left', 'source': 'apple_watch', 'metric': 'hrv_sdnn', 'samples': [{'timestamp': t(3), 'value': 48.0}]}) - self.assertEqual(written, {'stages': 0, 'vitals': 1, 'breathing': 2, 'hrv': 1}) - self.assertIn('2 breathing-rate and 1 HRV samples', err) + self.assertEqual(written, {'stages': 0, 'vitals': 1, 'breathing': 2, 'hrv': 1, 'rmssd': 0, 'oxygen': 0}) + self.assertIn('2 breathing-rate, 1 HRV, 0 RMSSD and 0 blood-oxygen samples', err) # --hr-only and --stages-only leave breathing rate and HRV out. post, _, _ = self.run_import(stages=False, extra=False) self.assertEqual([u.rsplit('/', 1)[1] for u, _ in post.calls], ['reference-vitals']) @@ -211,7 +240,7 @@ def test_converts_breathing_and_hrv_units_and_skips_unknown_ones(self): t = lambda m: int((T0 + timedelta(minutes=m)).timestamp()) self.assertEqual(post.calls[1][1]['samples'], [{'timestamp': t(2), 'value': 15.0}]) self.assertEqual(post.calls[2][1]['samples'], [{'timestamp': t(4), 'value': 42.0}]) - self.assertEqual(written, {'stages': 0, 'vitals': 1, 'breathing': 1, 'hrv': 1}) + self.assertEqual(written, {'stages': 0, 'vitals': 1, 'breathing': 1, 'hrv': 1, 'rmssd': 0, 'oxygen': 0}) def test_never_imports_records_sleepypod_wrote_to_health(self): at = T0 + timedelta(minutes=1) @@ -229,7 +258,50 @@ def test_never_imports_records_sleepypod_wrote_to_health(self): self.assertEqual(values, [58.0, 14.0, 40.0]) self.assertEqual([s['stage'] for s in post.calls[0][1]['segments']], ['light']) _, written_any, _ = self.run_import(source_pattern='.') - self.assertEqual(written_any, {'stages': 1, 'vitals': 1, 'breathing': 1, 'hrv': 1}) + self.assertEqual(written_any, {'stages': 1, 'vitals': 1, 'breathing': 1, 'hrv': 1, 'rmssd': 0, 'oxygen': 0}) + + def test_rmssd_remains_distinct_and_preserves_breathing(self): + at = T0 + timedelta(minutes=2) + extra = (quantity_record('HeartRateVariabilityRMSSD', at, 0.032, 's') + + quantity_record('HeartRateVariabilityRMSSD', at, 32, 'us') + + quantity_record('HeartRateVariabilityRMSSD', at, 99, 'ms', source='sleepypod Watch')) + write_export(self.export, [], [], rr=[(2, 14)], hrv=[(2, 48)], extra=extra) + post, written, _ = self.run_import() + self.assertEqual([p['metric'] for _, p in post.calls], ['breathing_rate', 'hrv_sdnn', 'hrv_rmssd']) + self.assertEqual([p['samples'][0]['value'] for _, p in post.calls], [14, 48, 32]) + self.assertEqual(written['rmssd'], 1) + + def test_blood_oxygen_fraction_is_stored_as_a_percentage(self): + at = T0 + timedelta(minutes=2) + extra = (quantity_record('OxygenSaturation', at, 0.97, '%') + # A percentage, not a fraction, lands out of range rather than as 9700%. + + quantity_record('OxygenSaturation', at + timedelta(minutes=1), 97, '%') + + quantity_record('OxygenSaturation', at + timedelta(minutes=2), 0.4, '%') + + quantity_record('OxygenSaturation', at + timedelta(minutes=3), 0.96, 'ratio') + + quantity_record('OxygenSaturation', at + timedelta(minutes=4), 0.95, '%', source='sleepypod Watch')) + write_export(self.export, [], [], extra=extra) + post, written, _ = self.run_import() + self.assertEqual([(p['metric'], p['source'], p['samples'][0]['value'], len(p['samples'])) for _, p in post.calls], + [('blood_oxygen', 'apple_watch', 97, 1)]) + self.assertEqual(written['oxygen'], 1) + + def test_oxygen_only_leaves_every_other_metric_alone(self): + at = T0 + timedelta(minutes=2) + write_export(self.export, [(0, 20, 'AsleepCore')], [(2, 58)], rr=[(2, 14)], hrv=[(2, 48)], + extra=quantity_record('OxygenSaturation', at, 0.97, '%')) + post, written, _ = self.run_import(stages=False, hr=False, extra=False) + self.assertEqual([p.get('metric') for _, p in post.calls], ['blood_oxygen']) + self.assertEqual(written, {'stages': 0, 'vitals': 0, 'breathing': 0, 'hrv': 0, 'rmssd': 0, 'oxygen': 1}) + + def test_only_flags_choose_what_is_imported(self): + write_export(self.export, [], []) + cases = {'--oxygen-only': (False, False, False, True), '--stages-only': (True, False, False, False), + '--hr-only': (False, True, False, False)} + for flag, (stages, hr, extra, oxygen) in cases.items(): + with mock.patch.object(iw, 'run', return_value={}) as run: + iw.main([self.export, '--pod', 'x', '--side', 'left', flag]) + self.assertEqual({k: run.call_args.kwargs[k] for k in ('stages', 'hr', 'extra', 'oxygen')}, + {'stages': stages, 'hr': hr, 'extra': extra, 'oxygen': oxygen}, flag) def test_base_url_forms(self): self.assertEqual(iw.base_url('192.168.1.88'), 'http://192.168.1.88:3000') diff --git a/scripts/tests/welcomeCli.test.ts b/scripts/tests/welcomeCli.test.ts new file mode 100644 index 000000000..4fd14c362 --- /dev/null +++ b/scripts/tests/welcomeCli.test.ts @@ -0,0 +1,348 @@ +// @vitest-environment node +import { spawnSync } from 'node:child_process' +import { mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join, resolve } from 'node:path' +import { afterEach, beforeEach, expect, it } from 'vitest' + +const STATUS = JSON.stringify({ + leftSide: { currentTemperature: 74.4, targetTemperature: 68, currentLevel: -20, targetLevel: -20, heatingDuration: 600 }, + rightSide: { currentTemperature: 71, targetTemperature: 80, currentLevel: 0, targetLevel: 0, heatingDuration: 0 }, + waterLevel: 'ok', + isPriming: false, + podVersion: 'J00', + sensorLabel: '20600-0003-J55-PRIVATE-SERIAL', +}) + +let root: string +let bin: string +let install: string +let script: string +let env: NodeJS.ProcessEnv + +/** Install a shell command fixture on the isolated lookup PATH. */ +function stub(command: string, body: string) { + writeFileSync(join(bin, command), `#!/bin/sh\n${body}\n`, { mode: 0o755 }) +} + +beforeEach(() => { + root = mkdtempSync(join(tmpdir(), 'sp-welcome-')) + bin = join(root, 'bin') + install = join(root, 'install') + mkdirSync(bin) + mkdirSync(install) + writeFileSync(join(root, 'rat_version'), 'f76374f38f9ffed57b320b1b079c6fcf00242bf5\n') + writeFileSync(join(install, '.git-info'), JSON.stringify({ commitHash: 'abc1234def', branch: 'main', buildDate: '2026-10-05' })) + writeFileSync(join(install, '.env'), 'PORT=3333\nAPI_TOKEN=secret-for-redaction-test\n') + script = join(root, 'sp-welcome') + writeFileSync(script, readFileSync(resolve('scripts/bin/sp-welcome'), 'utf8').replaceAll('/etc/rat_version', join(root, 'rat_version'))) + stub('curl', 'for arg do url=$arg; done; [ "$url" = "http://127.0.0.1:${EXPECTED_PORT:-3000}/api/device/status" ] || exit 1; printf "%s" "$MOCK_STATUS"') + stub('systemctl', 'echo active') + stub('df', 'printf "Filesystem 1024-blocks Used Available Capacity Mounted on\\n/dev/mmcblk0p8 6291456 2726298 3565158 91%% /persistent\\n"') + env = { ...process.env, PORT: undefined, PATH: `${bin}:${process.env.PATH}`, INSTALL_DIR: install, MOCK_STATUS: STATUS, COLUMNS: '80' } +}) +afterEach(() => rmSync(root, { recursive: true, force: true })) + +function run(args: string[] = []) { + return spawnSync('/bin/sh', [script, ...args], { encoding: 'utf8', env, timeout: 20_000 }) +} + +function widest(output: string) { + return Math.max(...output.split('\n').map(line => line.length)) +} + +it('renders the demo as plain ASCII within 80 columns when piped', () => { + const result = run(['--demo']) + expect(result.status, result.stderr).toBe(0) + expect(result.stdout).toMatch(/^[\n -~]+$/) + expect(widest(result.stdout)).toBeLessThanOrEqual(80) + expect(result.stdout).toMatch(/firmware\s+ca35aafa/) +}) + +it('keeps the ASCII and pixel silhouettes aligned with the reference moon', () => { + const source = readFileSync(resolve('scripts/bin/sp-welcome'), 'utf8') + const block = (tag: string) => source.split(`<<'${tag}'\n`)[1].split(`\n${tag}\n`)[0].split('\n') + const art = block('ART') + const pixels = block('PIXELS').map(row => row.split(' ')) + expect(pixels).toHaveLength(art.length * 2) + art.forEach((line, row) => { + for (let col = 0; col < 38; col++) { + const visible = pixels[row * 2][col] !== '-' || pixels[row * 2 + 1][col] !== '-' + expect((line[col] ?? ' ') !== ' ', `row ${row}, col ${col}`).toBe(visible) + } + }) + // The supplied logo has its higher moon tip on the left, with the curved + // illuminated lower edge beneath it. Guard against mirroring either axis. + expect(art[0].trim()).toBe('.') + expect(art[0].indexOf('.')).toBe(10) + expect(art[2].trim().length).toBeGreaterThan(art[0].trim().length) + expect(art[6].trim().length).toBeLessThan(art[4].trim().length) +}) + +it('keeps the animation geometry on the logo: every Z lands on an empty cell', () => { + const source = readFileSync(resolve('scripts/bin/sp-welcome'), 'utf8') + const art = source.split(`<<'ART'\n`)[1].split('\nART\n')[0].split('\n') + expect(source).toContain(`ART_ROWS=${art.length}\n`) + const steps = (source.match(/^ZZZ_STEPS='(.+)'$/m)?.[1] ?? '').split(' ') + expect(steps.length).toBeGreaterThan(0) + for (let i = 0; i < steps.length; i += 3) { + const line = art[art.length - Number(steps[i])] + expect(line.length, `Z ${i / 3}`).toBeLessThan(Number(steps[i + 1])) + } +}) + +it.each([{ NO_COLOR: '1' }, {}])('keeps piped output static under --animate with %j', (extra) => { + Object.assign(env, extra) + const animated = run(['--demo', '--animate']) + expect(animated.status, animated.stderr).toBe(0) + expect(animated.stdout).toBe(run(['--demo']).stdout) + expect(animated.stdout).toMatch(/^[\n -~]+$/) +}) + +it.each([79, 77, 60, 40])('drops the panel beneath the logo at %i columns', (columns) => { + env.COLUMNS = String(columns) + const result = run(['--demo']) + const lines = result.stdout.split('\n') + expect(widest(result.stdout)).toBeLessThanOrEqual(columns) + if (columns >= 78) expect(lines.findIndex(line => line.includes('uptime'))).toBeLessThan(25) + else expect(lines.findIndex(line => line.startsWith('host'))).toBeGreaterThan(19) +}) + +it.each([37, 30, 12, 5])('never overflows a very narrow %i column terminal', (columns) => { + env.COLUMNS = String(columns) + expect(widest(run(['--demo']).stdout)).toBeLessThanOrEqual(columns) +}) + +it('shows live facts without the device serial or env secrets', () => { + const result = run() + expect(result.status, result.stderr).toBe(0) + expect(result.stdout).toMatch(/pod\s+Pod 5 \(J55\)/) + expect(result.stdout).toMatch(/sleepypod\s+abc1234 \(main\)/) + expect(result.stdout).toMatch(/firmware\s+f76374f38f9f/) + expect(result.stdout).toMatch(/service\s+active/) + expect(result.stdout).toMatch(/left\s+74F -> 68F/) + expect(result.stdout).toMatch(/right\s+71F off/) + expect(result.stdout).toMatch(/water\s+ok/) + expect(result.stdout).toMatch(/disk\s+\[#{9}-\] 91% 2\.6G\/6\.0G/) + expect(result.stdout).not.toContain('PRIVATE-SERIAL') + expect(result.stdout).not.toContain('secret-for-redaction-test') +}) + +it('keeps the disk bar on a full-size eMMC, where the sizes are at their widest', () => { + stub('df', 'printf "Filesystem 1024-blocks Used Available Capacity Mounted on\\n/dev/mmcblk0p8 15129544 11459508 2867220 81%% /persistent\\n"') + const result = run() + expect(result.stdout).toMatch(/disk\s+\[#{8}--\] 81% 10\.9G\/14\.4G/) + expect(widest(result.stdout)).toBeLessThanOrEqual(80) +}) + +it.each(['', 'not json', '{"sensorLabel":"unknown"}'])('degrades device facts to dashes for status %j', (status) => { + env.MOCK_STATUS = status + const result = run() + expect(result.status, result.stderr).toBe(0) + expect(result.stderr).toBe('') + for (const label of ['pod', 'left', 'right', 'water']) expect(result.stdout).toMatch(new RegExp(`${label}\\s+-$`, 'm')) +}) + +it('renders every row as a dash when nothing is available', () => { + rmSync(join(root, 'rat_version')) + rmSync(install, { recursive: true }) + for (const command of ['curl', 'systemctl', 'df']) stub(command, 'exit 1') + const result = run() + expect(result.status, result.stderr).toBe(0) + expect(result.stderr).toBe('') + for (const label of ['pod', 'sleepypod', 'firmware', 'service', 'frank', 'pipeline', 'disk']) { + expect(result.stdout).toMatch(new RegExp(`${label}\\s+-$`, 'm')) + } +}) + +it('bounds hung lookups and still renders', () => { + for (const command of ['curl', 'systemctl', 'df']) stub(command, 'exec sleep 30') + const started = Date.now() + const result = run() + expect(result.status, result.stderr).toBe(0) + expect(Date.now() - started).toBeLessThan(6000) + expect(result.stdout).toMatch(/service\s+-$/m) + expect(result.stdout).toMatch(/pod\s+-$/m) +}) + +it('never writes while rendering', () => { + const before = readdirSync(root, { recursive: true }).sort() + const fixtures = [join(root, 'rat_version'), join(install, '.git-info'), join(install, '.env')] + const contents = fixtures.map(path => readFileSync(path, 'utf8')) + env.TMPDIR = root + run() + expect(fixtures.map(path => readFileSync(path, 'utf8'))).toEqual(contents) + expect(readdirSync(root, { recursive: true }).sort()).toEqual(before) +}) + +it('rejects unknown arguments', () => { + const result = run(['--nope']) + expect(result.status).toBe(2) + expect(result.stderr).toContain('Usage: sp-welcome') +}) + +/** Capture a real terminal with redirected stdin, as on an SSH terminal. */ +function runPty(args: string[] = [], columns = 100) { + return spawnSync('python3', ['-c', ` +import errno, fcntl, os, pty, struct, subprocess, sys, termios +master, slave = pty.openpty() +fcntl.ioctl(slave, termios.TIOCSWINSZ, struct.pack("HHHH", 40, ${columns}, 0, 0)) +child = subprocess.Popen(["/bin/sh", *sys.argv[1:]], stdin=subprocess.DEVNULL, stdout=slave, stderr=slave) +os.close(slave) +while True: + try: + data = os.read(master, 65536) + if not data: break + sys.stdout.buffer.write(data) + except OSError as error: + if error.errno != errno.EIO: raise + break +os.close(master) +sys.exit(child.wait()) +`, script, ...args], { encoding: 'utf8', env: { ...env, TERM: 'xterm-256color', NO_COLOR: '' }, timeout: 20_000 }) +} + +it('adds one blank line above and below the screen', () => { + const output = run(['--demo']).stdout + expect(output.startsWith('\n')).toBe(true) + expect(output.endsWith('\n\n')).toBe(true) +}) + +it('aligns coloured terminal labels by visible width and restores the animated cursor', () => { + const result = runPty(['--demo', '--animate']) + expect(result.status, result.stderr).toBe(0) + expect(result.stdout).toContain('\x1b[?25l') + expect(result.stdout).toContain('\x1b[?25h') + // Strip terminal controls to compare the visible columns. + // eslint-disable-next-line no-control-regex + const plain = result.stdout.replace(/\x1b\[[0-9;?]*[A-Za-z]/g, '').replaceAll('\r', '') + expect(plain).toMatch(/host {6}demo-pod/) + expect(plain).toMatch(/service {3}active/) +}) + +it('colours low water red even while priming', () => { + env.MOCK_STATUS = STATUS.replace('"ok"', '"low"').replace('"isPriming":false', '"isPriming":true') + expect(runPty().stdout).toContain('\x1b[38;5;203mlow, priming') +}) + +it.each(['150', '-10'])('clamps a %s percent disk bar to its allotted width', (percent) => { + stub('df', `printf 'Filesystem blocks Used Available Capacity Mounted\\n/dev/disk 100 50 50 ${percent}%% /persistent\\n'`) + const result = run() + expect(result.stdout).toMatch(/disk\s+\[[#-]{10}\]/) + expect(widest(result.stdout)).toBeLessThanOrEqual(80) +}) + +it('bounds shell lookups whose descendants inherit the output pipe', () => { + stub('df', 'sleep 30 & wait') + const started = Date.now() + const result = run() + expect(result.status, result.stderr).toBe(0) + expect(Date.now() - started).toBeLessThan(6000) + expect(result.stdout).toMatch(/disk\s+-$/m) +}) + +it('bounds a blocked metadata read', () => { + rmSync(join(install, '.git-info')) + expect(spawnSync('mkfifo', [join(install, '.git-info')]).status).toBe(0) + const started = Date.now() + const result = run() + expect(result.status, result.stderr).toBe(0) + expect(Date.now() - started).toBeLessThan(6000) + expect(result.stdout).toMatch(/sleepypod\s+-$/m) +}) + +it('shows configured DNS blocks only when the local resolver is in use', () => { + const config = join(root, 'dnsmasq.conf') + writeFileSync(config, 'address=/8slp.net/\naddress=/example.org/\n') + writeFileSync(script, readFileSync(script, 'utf8').replaceAll('/etc/sleepypod/dnsmasq.conf', config)) + stub('readlink', 'echo /etc/sleepypod/resolv.conf') + expect(run().stdout).toMatch(/blocked\s+\*\.8slp.net, \*\.example.org/) + stub('readlink', 'echo /run/NetworkManager/resolv.conf') + expect(run().stdout).toMatch(/blocked\s+-$/m) +}) + +it('keeps the SSH login hook silent for noninteractive commands', () => { + const result = spawnSync('/bin/sh', ['scripts/profile.d/sleepypod-welcome.sh'], { + encoding: 'utf8', env: { ...env, SSH_CONNECTION: 'test' }, + }) + expect(result.status).toBe(0) + expect(result.stdout).toBe('') +}) + +it.each(['4321', '0', '65536', 'invalid'])('uses a valid running service port (%s) with a default fallback', (port) => { + const proc = join(root, 'proc', '123') + mkdirSync(proc, { recursive: true }) + writeFileSync(join(proc, 'environ'), `NODE_ENV=production\0PORT=${port}\0`) + writeFileSync(script, readFileSync(script, 'utf8').replace('Path("/proc", pid', `Path("${join(root, 'proc')}", pid`)) + stub('systemctl', 'if [ "$1" = show ]; then echo 123; else echo active; fi') + env.EXPECTED_PORT = port === '4321' ? port : '3000' + env.PORT = '9999' + expect(run().stdout).toMatch(/pod\s+Pod 5/) +}) + +it.each([80, 60, 37])('fits the pixel logo and facts into a %i-column colour terminal', (columns) => { + const result = runPty(['--demo'], columns) + expect(result.status, result.stderr).toBe(0) + // eslint-disable-next-line no-control-regex + const plain = result.stdout.replace(/\x1b\[[0-9;?]*[A-Za-z]/g, '').replaceAll('\r', '') + expect(widest(plain)).toBeLessThanOrEqual(columns) + expect(plain).toContain('demo-pod') + if (columns >= 38) expect(plain).toMatch(/[▀▄]/) + else expect(plain).not.toMatch(/[▀▄]/) + expect(result.stdout).not.toContain('\x1b[?25l') +}) + +it('keeps the pixel raster at two pixels per cell with a transparent silhouette', () => { + const source = readFileSync(resolve('scripts/bin/sp-welcome'), 'utf8') + const pixels = source.split('<<\'PIXELS\'\n')[1].split('\nPIXELS\n')[0].split('\n').map(row => row.split(' ')) + expect(pixels).toHaveLength(40) + for (const row of pixels) { + expect(row).toHaveLength(38) + for (const pixel of row) { + if (pixel !== '-') { + expect(Number(pixel)).toBeGreaterThanOrEqual(16) + expect(Number(pixel)).toBeLessThanOrEqual(255) + } + } + } + expect(pixels[0][0]).toBe('-') +}) + +it('uses solid gradient bars and colours temperature numbers independently', () => { + const output = runPty(['--demo']).stdout + expect(output).toContain('\x1b[38;5;29m█') + expect(output).toContain('\x1b[38;5;114m█') + expect(output).toContain('\x1b[38;5;117m74F\x1b[0m -> ') + expect(output).toContain('\x1b[38;5;240moff\x1b[0m') + env.MOCK_STATUS = STATUS.replace('74.4', '90') + expect(runPty().stdout).toContain('\x1b[38;5;209m90F') +}) + +it('uses the SSH destination for the web URL, including IPv6', () => { + env.SSH_CONNECTION = '192.168.1.1 1234 192.168.1.88 8822' + expect(run().stdout).toContain('http://192.168.1.88:3000') + env.SSH_CONNECTION = '::1 1234 fd00::88 8822' + expect(run().stdout).toContain('http://[fd00::88]:3000') +}) + +it('shows unavailable eMMC counters as a dash', () => { + writeFileSync(script, readFileSync(script, 'utf8').replace('Path("/sys/block", name', `Path("${root}/missing", name`)) + expect(run().stdout).toMatch(/writes\s+-$/m) +}) + +it('samples actual eMMC counter deltas without writing a cache', () => { + const block = join(root, 'block', 'mmcblk0') + mkdirSync(block, { recursive: true }) + writeFileSync(join(block, 'stat'), '0 0 0 0 0 0 100 0') + writeFileSync(script, readFileSync(script, 'utf8') + .replace('Path("/sys/block", name', `Path("${root}/block", name`)) + // A child changes the kernel-counter fixture during the sample interval. + stub('python3', `if [ "$1" = -c ]; then +case "$2" in *'time.sleep(1)'*) + (sleep 0.5; printf '0 0 0 0 0 0 2148 0' > '${block}/stat') & +;; esac +fi +exec '${spawnSync('which', ['python3'], { encoding: 'utf8' }).stdout.trim()}' "$@"`) + const output = run().stdout + expect(output).toMatch(/writes\s+10[0-2][0-9]\.[0-9] KiB\/s \(1s\)/) +}) diff --git a/src/biometrics/algorithms/tests/registry.test.ts b/src/biometrics/algorithms/tests/registry.test.ts index e26371b13..bd05230e8 100644 --- a/src/biometrics/algorithms/tests/registry.test.ts +++ b/src/biometrics/algorithms/tests/registry.test.ts @@ -27,7 +27,8 @@ const fixtures = [ ] describe('versioned biometric contract', () => { - it('pins the actual numerical source and locked dependency files', () => { + // Stryker hashes its instrumented sandbox copy, so pinned source hashes can't match there. + it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('pins the actual numerical source and locked dependency files', () => { for (const [path, hash] of Object.entries({ ...biometricManifest.sourceHashes, ...biometricManifest.dependencyHashes })) { expect(createHash('sha256').update(readFileSync(path)).digest('hex'), path).toBe(hash) } diff --git a/src/biometrics/backtest/tests/coordinator.test.ts b/src/biometrics/backtest/tests/coordinator.test.ts index 58c2c5c96..5045aa943 100644 --- a/src/biometrics/backtest/tests/coordinator.test.ts +++ b/src/biometrics/backtest/tests/coordinator.test.ts @@ -198,7 +198,8 @@ it('cooperatively interrupts a running lease before shutdown completes', async ( } }) -it('inspects actual archives through the isolated coordinator and persists only admitted evidence', async () => { +// Needs the locked piezo-processor venv, which Stryker's sandbox doesn't carry. +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('inspects actual archives through the isolated coordinator and persists only admitted evidence', async () => { const archiveDirectory = join(directory, 'archive') await mkdir(archiveDirectory) const pythonPath = resolve('modules/piezo-processor/.venv/bin/python') @@ -235,7 +236,8 @@ it('cancels archive inspection when ongoing resource admission is withdrawn', as expect(checks).toBe(2) }, 10000) -it('collects aged RAW orphans through the admitted coordinator without touching fresh files', async () => { +// Needs the locked piezo-processor venv, which Stryker's sandbox doesn't carry. +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('collects aged RAW orphans through the admitted coordinator without touching fresh files', async () => { const retained = join(directory, 'biometric-raw') await mkdir(retained, { recursive: true }) const old = join(retained, `${'a'.repeat(64)}.RAW.gz`), fresh = join(retained, `${'b'.repeat(64)}.RAW.gz`) diff --git a/src/biometrics/backtest/tests/waveform-build.test.ts b/src/biometrics/backtest/tests/waveform-build.test.ts index 87a780718..bc80e07ec 100644 --- a/src/biometrics/backtest/tests/waveform-build.test.ts +++ b/src/biometrics/backtest/tests/waveform-build.test.ts @@ -10,7 +10,8 @@ beforeEach(async () => { directory = await mkdtemp(join(tmpdir(), 'waveform-build-')) }) afterEach(() => rm(directory, { recursive: true, force: true })) -it('verifies a real Python identity and binds both shipped Node bundles', async () => { +// Needs the locked piezo-processor venv, which Stryker's sandbox doesn't carry. +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('verifies a real Python identity and binds both shipped Node bundles', async () => { const coordinator = join(directory, 'coordinator.cjs'), worker = join(directory, 'worker.cjs') await writeFile(coordinator, 'orchestration-v1') await writeFile(worker, 'scoring-v1') @@ -25,7 +26,7 @@ it('verifies a real Python identity and binds both shipped Node bundles', async await writeFile(worker, 'scoring-v2') expect((await waveformEvaluatorBuildIdentity(coordinator, worker, location)).hash).not.toBe(second.hash) }) -it('rejects missing interpreters, invalid output and forged build hashes', async () => { +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('rejects missing interpreters, invalid output and forged build hashes', async () => { await expect(probeWaveformBuild({ ...location, pythonPath: join(directory, 'missing') })).rejects.toThrow('unavailable') const fixture = join(directory, 'fixture') await writeFile(fixture, `#!${process.execPath}\nprocess.stdout.write('{}');`, { mode: 0o700 }) diff --git a/src/biometrics/backtest/tests/waveform-publication.integration.test.ts b/src/biometrics/backtest/tests/waveform-publication.integration.test.ts index f2f966676..1ee1ecb97 100644 --- a/src/biometrics/backtest/tests/waveform-publication.integration.test.ts +++ b/src/biometrics/backtest/tests/waveform-publication.integration.test.ts @@ -25,7 +25,8 @@ type Input = z.infer const python = resolve('modules/piezo-processor/.venv/bin/python') const environment: NodeJS.ProcessEnv = { PYTHONPATH: resolve('modules'), OPENBLAS_NUM_THREADS: '1', LANG: 'C.UTF-8', TZ: 'UTC', NODE_ENV: 'test' } -it('publishes, verifies, replays, releases and collects a retained waveform dataset without changing observations', async () => { +// Needs the locked piezo-processor venv, which Stryker's sandbox doesn't carry. +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('publishes, verifies, replays, releases and collects a retained waveform dataset without changing observations', async () => { const directory = mkdtempSync(join(tmpdir(), 'waveform-publication-integration-')) const database = join(directory, 'biometrics.db') const archive = join(directory, 'archive') diff --git a/src/biometrics/profiles/tests/runtime-integration.test.ts b/src/biometrics/profiles/tests/runtime-integration.test.ts index bcd6c92ec..1fcfdacd7 100644 --- a/src/biometrics/profiles/tests/runtime-integration.test.ts +++ b/src/biometrics/profiles/tests/runtime-integration.test.ts @@ -45,7 +45,8 @@ connection.close() return JSON.parse(output) as { enabled: boolean, problem: string | null, leftTolerance: number, rightTolerance: number } } -it('acknowledges exact API intent through Python and stage consumers, restart, and rollback', async () => { +// Needs the locked piezo-processor venv, which Stryker's sandbox doesn't carry. +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('acknowledges exact API intent through Python and stage consumers, restart, and rollback', async () => { const directory = mkdtempSync(join(tmpdir(), 'biometric-runtime-integration-')) const configRaw = new Database(join(directory, 'config.db')) const bioPath = join(directory, 'biometrics.db') diff --git a/src/biometrics/references/contracts.ts b/src/biometrics/references/contracts.ts index 8fbdd1e7b..9f1e91253 100644 --- a/src/biometrics/references/contracts.ts +++ b/src/biometrics/references/contracts.ts @@ -3,8 +3,53 @@ import { sideSchema } from '@/src/server/validation-schemas' export const REFERENCE_ADAPTER_VERSION = 'normalized-reference-v1' export const REFERENCE_LIMITS = { bytes: 2 * 1024 * 1024, rows: 2000, depth: 12, nodes: 100000, rejectionExamples: 25 } as const -export const referenceMetricSchema = z.enum(['heart_rate', 'breathing_rate', 'window_ibi_variability_v1', 'hrv_rmssd', 'hrv_sdnn', 'hrv_unknown', 'sleep_stages']) +export const referenceMetricSchema = z.enum(['heart_rate', 'breathing_rate', 'window_ibi_variability_v1', 'hrv_rmssd', 'hrv_sdnn', 'hrv_unknown', 'sleep_stages', + 'blood_oxygen', 'resting_heart_rate', 'skin_temperature', 'breathing_disturbances']) export type ReferenceMetric = z.infer + +const MILLISECONDS = { ms: 1, s: 1000 } +const PER_MINUTE = { 'beats/min': 1, 'Hz': 60 } +/** Each numeric metric's stored unit, and what a submitted unit multiplies by to reach it. */ +export const REFERENCE_UNITS = { + heart_rate: { unit: 'bpm', accepted: { bpm: 1, ...PER_MINUTE } }, + resting_heart_rate: { unit: 'bpm', accepted: { bpm: 1, ...PER_MINUTE } }, + breathing_rate: { unit: 'breaths/min', accepted: { 'breaths/min': 1, 'br/min': 1, 'Hz': 60 } }, + window_ibi_variability_v1: { unit: 'ms', accepted: MILLISECONDS }, + hrv_rmssd: { unit: 'ms', accepted: MILLISECONDS }, + hrv_sdnn: { unit: 'ms', accepted: MILLISECONDS }, + hrv_unknown: { unit: 'ms', accepted: MILLISECONDS }, + blood_oxygen: { unit: '%', accepted: { '%': 1 } }, + skin_temperature: { unit: 'degC', accepted: { degC: 1 } }, + breathing_disturbances: { unit: 'events/h', accepted: { 'events/h': 1 } }, +} as const satisfies Record, { unit: string, accepted: Record }> + +/** + * What a wearable may report through /biometrics/reference-samples, with the + * bounds a whole batch is refused outside of. Devices differ in which of these + * they have, so none is required. Clients read this list from + * getReferenceCapabilities instead of assuming it: a pod on older software + * rejects a metric or field it does not know. + */ +export const REFERENCE_SAMPLE_METRICS = { + breathing_rate: { range: [4, 60] }, + hrv_sdnn: { range: [1, 500] }, + hrv_rmssd: { range: [1, 500] }, + blood_oxygen: { range: [50, 100] }, + resting_heart_rate: { range: [20, 250] }, + skin_temperature: { range: [20, 45] }, + breathing_disturbances: { range: [0, 200] }, +} as const +export type ReferenceSampleMetric = keyof typeof REFERENCE_SAMPLE_METRICS +export const referenceSampleMetricSchema = z.enum(Object.keys(REFERENCE_SAMPLE_METRICS) as [ReferenceSampleMetric, ...ReferenceSampleMetric[]]) +export function referenceCapabilities() { + return { + sampleFields: ['endTimestamp', 'device', 'algorithm'], + metrics: referenceSampleMetricSchema.options.map(metric => ({ metric, unit: REFERENCE_UNITS[metric].unit, min: REFERENCE_SAMPLE_METRICS[metric].range[0], max: REFERENCE_SAMPLE_METRICS[metric].range[1] })), + } +} +/** Identifies the hardware and the vendor's algorithm: Watch6,1 and Watch8,2 report the same metric differently. */ +export const referenceDeviceSchema = z.string().min(1).max(64) +export const referenceAlgorithmSchema = z.string().min(1).max(32) export const referenceStageSchema = z.enum(['wake', 'light', 'deep', 'rem', 'asleep', 'in_bed', 'unknown']) export const timestampMsSchema = z.number().int().min(1_000_000_000_000).max(4_102_444_800_000) export const timePolicySchema = z.object({ @@ -30,6 +75,8 @@ export const referenceRowSchema = z.object({ windowMs: z.number().int().min(1).max(24 * 60 * 60 * 1000).optional(), quality: z.number().finite().min(0).max(1).optional(), annotation: z.string().max(1000).optional(), + device: referenceDeviceSchema.optional(), + algorithm: referenceAlgorithmSchema.optional(), }).strict() export type ReferenceRow = z.infer diff --git a/src/biometrics/references/legacy.ts b/src/biometrics/references/legacy.ts index 070996271..787868c3b 100644 --- a/src/biometrics/references/legacy.ts +++ b/src/biometrics/references/legacy.ts @@ -1,7 +1,7 @@ import { and, asc, count, eq, inArray, isNull } from 'drizzle-orm' import type { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3' import * as schema from '@/src/db/biometrics-schema' -import { REFERENCE_LIMITS, type ReferenceImportInput } from './contracts' +import { REFERENCE_LIMITS, REFERENCE_UNITS, type ReferenceImportInput } from './contracts' import { previewReferenceImport } from './normalize' import { ReferenceStore } from './store' @@ -22,7 +22,9 @@ export function recordLegacyReferenceImport(db: BetterSQLite3Database 'heartRate' in row ? { recordKey: `apple-watch-hr:${row.timestamp.getTime()}`, metric: 'heart_rate', value: row.heartRate, unit: 'bpm', timestampMs: row.timestamp.getTime(), annotation } : 'metric' in row - ? { recordKey: `apple-watch-${row.metric}:${row.timestamp.getTime()}`, metric: row.metric, value: row.value, unit: row.metric === 'breathing_rate' ? 'breaths/min' : 'ms', timestampMs: row.timestamp.getTime(), annotation } + ? { recordKey: `apple-watch-${row.metric}:${row.timestamp.getTime()}`, metric: row.metric, value: row.value, unit: REFERENCE_UNITS[row.metric].unit, + ...(row.endTimestamp ? { startMs: row.timestamp.getTime(), endMs: row.endTimestamp.getTime() } : { timestampMs: row.timestamp.getTime() }), + ...(row.device ? { device: row.device } : {}), ...(row.algorithm ? { algorithm: row.algorithm } : {}), annotation } : { recordKey: `apple-watch-stage:${row.start.getTime()}`, metric: 'sleep_stages', value: row.stage, unit: 'stage', startMs: row.start.getTime(), endMs: row.end.getTime(), annotation }), } const preview = previewReferenceImport(input) diff --git a/src/biometrics/references/normalize-core.ts b/src/biometrics/references/normalize-core.ts index 86cf8b17a..2397265f4 100644 --- a/src/biometrics/references/normalize-core.ts +++ b/src/biometrics/references/normalize-core.ts @@ -1,6 +1,6 @@ import { canonicalJson } from '../algorithms/canonical-json' const utf8 = new TextEncoder() -import { REFERENCE_ADAPTER_VERSION, REFERENCE_LIMITS, referenceImportSchema, referenceRowSchema, type NormalizedMeasurement, type PreviewSummary, type ReferenceImportInput } from './contracts' +import { REFERENCE_ADAPTER_VERSION, REFERENCE_LIMITS, REFERENCE_UNITS, referenceImportSchema, referenceRowSchema, type NormalizedMeasurement, type PreviewSummary, type ReferenceImportInput } from './contracts' import { ReferenceInputError, timestampResolver } from './time' /** Validate size/depth before copying, hashing or parsing untrusted exports. */ @@ -61,15 +61,12 @@ function normalizeRow(raw: unknown, subjectId: string, resolveTime: (value: stri } else { if (typeof row.value !== 'number') throw new ReferenceInputError('INCOMPATIBLE_METRIC', 'Vital measurements require numeric values') - const units: Record = row.metric === 'heart_rate' - ? { 'bpm': 1, 'beats/min': 1, 'Hz': 60 } - : row.metric === 'breathing_rate' - ? { 'breaths/min': 1, 'br/min': 1, 'Hz': 60 } - : { ms: 1, s: 1000 } + const { unit: storedUnit, accepted } = REFERENCE_UNITS[row.metric] + const units: Record = accepted if (!Object.hasOwn(units, row.unit)) throw new ReferenceInputError('UNSUPPORTED_UNIT', `Unsupported unit for ${row.metric}`) value = row.value * units[row.unit] if (!Number.isFinite(value) || value < 0 || value > Number.MAX_SAFE_INTEGER) throw new ReferenceInputError('INVALID_VALUE', 'Measurements must be finite, nonnegative and within the safe numeric range after conversion') - unit = row.metric === 'heart_rate' ? 'bpm' : row.metric === 'breathing_rate' ? 'breaths/min' : 'ms' + unit = storedUnit if (row.metric === 'hrv_unknown') exclusions.push('unknown_hrv_definition') if (row.metric === 'window_ibi_variability_v1' && (row.windowMs !== 300000 || aggregation !== 'window_index')) exclusions.push('incompatible_hrv_window') } diff --git a/src/biometrics/references/tests/watch-motion.test.ts b/src/biometrics/references/tests/watch-motion.test.ts new file mode 100644 index 000000000..0efe99c3c --- /dev/null +++ b/src/biometrics/references/tests/watch-motion.test.ts @@ -0,0 +1,64 @@ +// @vitest-environment node +import Database from 'better-sqlite3' +import { drizzle } from 'drizzle-orm/better-sqlite3' +import { migrate } from 'drizzle-orm/better-sqlite3/migrator' +import { afterEach, beforeEach, expect, it } from 'vitest' +import * as schema from '@/src/db/biometrics-schema' +import { canonicalJson, parseWatchMotion, saveWatchMotion, watchMotionMinutes, watchMotionSeries, type WatchMotionFile } from '../watch-motion' + +const M = 60_000 +const T = Date.UTC(2026, 10, 2, 6) // minute-aligned + +function file(starts: number[], moving: number[], from = starts[0], to = starts[starts.length - 1] + 2000): WatchMotionFile { + return { + version: 'watch-motion-v1', recordedFromMs: from, recordedToMs: to, timeZone: 'UTC', utcOffsetSeconds: 0, sampleRateHz: 50, + binSeconds: 2, jerkThresholdGPerSecond: 1, device: 'test', + bins: { startMs: starts, samples: starts.map(() => 100), meanMagnitude: starts.map(() => 1), + magnitudeVariance: starts.map((_, i) => (i + 1) * 0.001), maxJerk: starts.map((_, i) => i), movingSamples: moving }, + } +} + +let sqlite: Database.Database +let db: ReturnType> +beforeEach(() => { + sqlite = new Database(':memory:') + db = drizzle(sqlite, { schema }) + migrate(db, { migrationsFolder: 'src/db/biometrics-migrations' }) +}) +afterEach(() => sqlite.close()) + +it('sums bins per minute and leaves minutes without bins absent', () => { + const starts = [T, T + 2000, T + 58_000, T + 3 * M] + const rows = watchMotionMinutes([file(starts, [1, 2, 3, 4])], T, T + 10 * M) + expect(rows).toEqual([ + { timestamp: new Date(T), movingSamples: 6, maxJerk: 2, meanVariance: 0.002, samples: 300 }, + { timestamp: new Date(T + 3 * M), movingSamples: 4, maxJerk: 3, meanVariance: 0.004, samples: 100 }, + ]) +}) + +it('keeps only bins starting inside the window and counts overlapping captures once', () => { + const a = file([T, T + 2000, T + M], [1, 1, 1]) + const b = file([T + M, T + 2 * M], [5, 5]) + expect(watchMotionMinutes([b, a], T + 2000, T + 2 * M).map(r => [r.timestamp.getTime(), r.movingSamples])) + .toEqual([[T, 1], [T + M, 1], [T + 2 * M, 5]]) +}) + +it('canonicalizes with sorted keys and hashes the trimmed file', () => { + expect(canonicalJson({ b: 1, a: { d: [2, { z: 1, y: 2 }], c: 3 } })).toBe('{"a":{"c":3,"d":[2,{"y":2,"z":1}]},"b":1}') + const original = file([T - 24 * 3600_000, T, T + 2000], [9, 1, 2], T + 500, T + M) + const parsed = parseWatchMotion(JSON.stringify(original)) + expect(parsed.trimmedBins).toBe(1) + expect(parsed.file.bins.startMs).toEqual([T, T + 2000]) + expect(parsed.file.bins.movingSamples).toEqual([1, 2]) + expect(parseWatchMotion(parsed.canonical).sha256).toBe(parsed.sha256) +}) + +it('serves the series for one side from overlapping captures only', () => { + const night = file([T, T + M, T + 5 * M], [3, 4, 5], T, T + 6 * M) + saveWatchMotion(db, 'left', parseWatchMotion(JSON.stringify(night))) + saveWatchMotion(db, 'right', parseWatchMotion(JSON.stringify(file([T], [99], T, T + M)))) + expect(watchMotionSeries(db, 'left', new Date(T + M), new Date(T + 10 * M)).map(r => [r.timestamp.getTime(), r.movingSamples])) + .toEqual([[T + M, 4], [T + 5 * M, 5]]) + expect(watchMotionSeries(db, 'left', new Date(T + 7 * M), new Date(T + 10 * M))).toEqual([]) + expect(watchMotionSeries(db, 'right', new Date(T), new Date(T + M)).map(r => r.movingSamples)).toEqual([99]) +}) diff --git a/src/biometrics/references/watch-motion.ts b/src/biometrics/references/watch-motion.ts new file mode 100644 index 000000000..e2b301922 --- /dev/null +++ b/src/biometrics/references/watch-motion.ts @@ -0,0 +1,275 @@ +import { createHash } from 'node:crypto' +import { and, asc, eq, gt, lte } from 'drizzle-orm' +import type { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3' +import { z } from 'zod' +import type * as schema from '@/src/db/biometrics-schema' +import { watchMotionCaptures } from '@/src/db/biometrics-schema' + +/** + * Apple Watch wrist-movement recordings (sleepypod-ios docs/watch-motion-format.md). + * Stored as a movement label for comparison and off-pod training only; nothing + * here feeds sleep staging, movement scoring or hardware control. + */ + +export const WATCH_MOTION_VERSIONS = ['watch-motion-v1', 'watch-motion-v2'] as const +export const WATCH_MOTION_MAX_BYTES = 8 * 1024 * 1024 +/** Series reads parse every overlapping file, so keep the window to a month. */ +export const WATCH_MOTION_MAX_SERIES_DAYS = 31 + +const BIN_SECONDS = 2 +const BIN_MS = BIN_SECONDS * 1000 +const MINUTE_MS = 60_000 +// The iOS app records at most 12 h; anything far beyond a night is not a Watch recording. +const MAX_SPAN_MS = 24 * 60 * MINUTE_MS +// Unix ms between 2001 and 2100, as the reference import contract. +const unixMs = z.number().int().min(978_307_200_000).max(4_102_444_800_000) +// zod 4 numbers reject Infinity, which JSON.parse makes of overflowing literals like 1e999. +const finite = z.number() +const count = z.number().int().nonnegative() + +const binsSchema = z.object({ + startMs: z.array(z.number().int()), + samples: z.array(count), + meanMagnitude: z.array(finite), + magnitudeVariance: z.array(finite), + maxJerk: z.array(finite), + movingSamples: z.array(count), + meanX: z.array(finite).optional(), + meanY: z.array(finite).optional(), + meanZ: z.array(finite).optional(), +}).strict() + +const fileSchema = z.object({ + version: z.enum(WATCH_MOTION_VERSIONS), + recordedFromMs: unixMs, + recordedToMs: unixMs, + timeZone: z.string().min(1).max(64), + utcOffsetSeconds: z.number().int().min(-18 * 3600).max(18 * 3600), + sampleRateHz: z.number().positive().max(1000), + binSeconds: z.literal(BIN_SECONDS), + jerkThresholdGPerSecond: z.number().nonnegative(), + device: z.string().max(200), + bins: binsSchema, +}).strict() + +export type WatchMotionFile = z.infer +type Bins = WatchMotionFile['bins'] +type Column = Exclude + +const BASE_COLUMNS = ['samples', 'meanMagnitude', 'magnitudeVariance', 'maxJerk', 'movingSamples'] as const satisfies readonly Column[] +const AXIS_COLUMNS = ['meanX', 'meanY', 'meanZ'] as const satisfies readonly Column[] + +export class WatchMotionError extends Error { + constructor(message: string, readonly status: 400 | 413 = 400) { + super(message) + this.name = 'WatchMotionError' + } +} + +export interface ParsedWatchMotion { + file: WatchMotionFile + /** Sorted-key compact JSON of the trimmed file: what is stored and served. */ + canonical: string + sha256: string + trimmedBins: number +} + +function describeIssues(error: z.ZodError): string { + const issues = error.issues.slice(0, 5).map(issue => `${issue.path.join('.') || 'file'}: ${issue.message}`) + const more = error.issues.length > 5 ? `; and ${error.issues.length - 5} more` : '' + return `Invalid watch-motion file: ${issues.join('; ')}${more}` +} + +/** JSON with object keys sorted at every level, matching the iOS encoder's `.sortedKeys`. */ +export function canonicalJson(value: unknown): string { + return JSON.stringify(value, (_key, v: unknown) => v && typeof v === 'object' && !Array.isArray(v) + ? Object.fromEntries(Object.entries(v).sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))) + : v) +} + +/** + * Validates a watch-motion file and trims bins outside [recordedFromMs, + * recordedToMs). A bin overlapping the start edge stays: bins are Unix-aligned, + * so the first one can begin up to 2 s before the requested span. Bins wholly + * outside are leftovers the Watch recorder handed back from an earlier + * recording; files already on phones contain them, so they are dropped, not + * rejected. + */ +export function parseWatchMotion(text: string): ParsedWatchMotion { + let raw: unknown + try { + raw = JSON.parse(text) + } + catch { + throw new WatchMotionError('Body is not valid JSON') + } + if (raw && typeof raw === 'object' && !Array.isArray(raw) && Object.hasOwn(raw, 'raw')) { + throw new WatchMotionError('raw readings are not accepted') + } + const parsed = fileSchema.safeParse(raw) + if (!parsed.success) throw new WatchMotionError(describeIssues(parsed.error)) + const file = parsed.data + const { bins } = file + + if (file.recordedToMs <= file.recordedFromMs) throw new WatchMotionError('recordedToMs must be after recordedFromMs') + if (file.recordedToMs - file.recordedFromMs > MAX_SPAN_MS) throw new WatchMotionError('A recording may span at most 24 hours') + + const hasAxes = AXIS_COLUMNS.map(column => bins[column] !== undefined) + if (file.version === 'watch-motion-v2' && !hasAxes.every(Boolean)) { + throw new WatchMotionError('watch-motion-v2 requires bins.meanX, bins.meanY and bins.meanZ') + } + if (file.version === 'watch-motion-v1' && hasAxes.some(Boolean)) { + throw new WatchMotionError('watch-motion-v1 must not include bins.meanX, bins.meanY or bins.meanZ') + } + const columns: Column[] = file.version === 'watch-motion-v2' ? [...BASE_COLUMNS, ...AXIS_COLUMNS] : [...BASE_COLUMNS] + const n = bins.startMs.length + const mismatched = columns.filter(column => bins[column]?.length !== n) + if (mismatched.length) throw new WatchMotionError(`bins columns must all have ${n} entries like bins.startMs; ${mismatched.map(c => `bins.${c}`).join(', ')} differ`) + + for (let i = 0; i < n; i++) { + const start = bins.startMs[i] + if (start % BIN_MS !== 0) throw new WatchMotionError(`bins.startMs.${i}: must be a multiple of ${BIN_MS} ms`) + if (i > 0 && start <= bins.startMs[i - 1]) throw new WatchMotionError(`bins.startMs.${i}: must be strictly increasing`) + } + + const keep: number[] = [] + for (let i = 0; i < n; i++) { + const start = bins.startMs[i] + if (start + BIN_MS > file.recordedFromMs && start < file.recordedToMs) keep.push(i) + } + if (keep.length === 0) throw new WatchMotionError('No bins fall inside recordedFromMs..recordedToMs') + + const trimmed = { ...file, bins: Object.fromEntries((['startMs', ...columns] as const).map(column => [column, keep.map(i => (bins[column] as number[])[i])])) as Bins } + const canonical = canonicalJson(trimmed) + return { file: trimmed, canonical, sha256: createHash('sha256').update(canonical).digest('hex'), trimmedBins: n - keep.length } +} + +type BioDB = BetterSQLite3Database +export type WatchMotionSide = 'left' | 'right' +export type WatchMotionStatus = 'created' | 'unchanged' | 'replaced' + +export const watchMotionCaptureSchema = z.object({ + id: z.number().int(), + side: z.enum(['left', 'right']), + version: z.enum(WATCH_MOTION_VERSIONS), + recordedFromMs: z.number().int(), + recordedToMs: z.number().int(), + bins: z.number().int(), + trimmedBins: z.number().int(), + sha256: z.string(), + createdAt: z.date(), +}) +export type WatchMotionCapture = z.infer + +const metadataColumns = { + id: watchMotionCaptures.id, + side: watchMotionCaptures.side, + version: watchMotionCaptures.version, + recordedFrom: watchMotionCaptures.recordedFrom, + recordedTo: watchMotionCaptures.recordedTo, + bins: watchMotionCaptures.bins, + trimmedBins: watchMotionCaptures.trimmedBins, + sha256: watchMotionCaptures.sha256, + createdAt: watchMotionCaptures.createdAt, +} + +function toCapture({ recordedFrom, recordedTo, ...row }: { [K in keyof typeof metadataColumns]: (typeof watchMotionCaptures.$inferSelect)[K] }): WatchMotionCapture { + return { ...row, recordedFromMs: recordedFrom.getTime(), recordedToMs: recordedTo.getTime() } +} + +/** + * One capture per (side, recordedFromMs). Identical content is a no-op; new + * content for the same night (a fixed app resending) replaces the stored file + * and keeps the id. + */ +export function saveWatchMotion(db: BioDB, side: WatchMotionSide, parsed: ParsedWatchMotion): { capture: WatchMotionCapture, status: WatchMotionStatus } { + const { file } = parsed + const values = { + side, + version: file.version, + recordedFrom: new Date(file.recordedFromMs), + recordedTo: new Date(file.recordedToMs), + bins: file.bins.startMs.length, + trimmedBins: parsed.trimmedBins, + sha256: parsed.sha256, + file: parsed.canonical, + createdAt: new Date(), + } + return db.transaction((tx) => { + const existing = tx.select(metadataColumns).from(watchMotionCaptures) + .where(and(eq(watchMotionCaptures.side, side), eq(watchMotionCaptures.recordedFrom, values.recordedFrom))).get() + if (existing?.sha256 === parsed.sha256) return { capture: toCapture(existing), status: 'unchanged' as const } + const row = existing + ? tx.update(watchMotionCaptures).set(values).where(eq(watchMotionCaptures.id, existing.id)).returning(metadataColumns).get() + : tx.insert(watchMotionCaptures).values(values).returning(metadataColumns).get() + return { capture: toCapture(row), status: existing ? 'replaced' as const : 'created' as const } + }) +} + +/** Captures overlapping [start, end], oldest first. Both bounds optional. */ +export function listWatchMotion(db: BioDB, query: { side?: WatchMotionSide, start?: Date, end?: Date }): WatchMotionCapture[] { + const conditions = [] + if (query.side) conditions.push(eq(watchMotionCaptures.side, query.side)) + if (query.start) conditions.push(gt(watchMotionCaptures.recordedTo, query.start)) + if (query.end) conditions.push(lte(watchMotionCaptures.recordedFrom, query.end)) + return db.select(metadataColumns).from(watchMotionCaptures) + .where(conditions.length ? and(...conditions) : undefined) + .orderBy(asc(watchMotionCaptures.recordedFrom), asc(watchMotionCaptures.side)).all() + .map(toCapture) +} + +/** The stored canonical file, or null. */ +export function getWatchMotionFile(db: BioDB, id: number): string | null { + return db.select({ file: watchMotionCaptures.file }).from(watchMotionCaptures).where(eq(watchMotionCaptures.id, id)).get()?.file ?? null +} + +export interface WatchMotionMinute { + /** Minute start. */ + timestamp: Date + movingSamples: number + maxJerk: number + meanVariance: number + samples: number +} + +/** + * Per-minute summary of the bins starting in [startMs, endMs]. Minutes without + * bins are absent: no data is not stillness. Overlapping captures count each + * 2 s bin once (the earliest capture's copy). + */ +export function watchMotionMinutes(files: WatchMotionFile[], startMs: number, endMs: number): WatchMotionMinute[] { + const seen = new Set() + const minutes = new Map() + for (const file of [...files].sort((a, b) => a.recordedFromMs - b.recordedFromMs)) { + const { bins } = file + for (let i = 0; i < bins.startMs.length; i++) { + const start = bins.startMs[i] + if (start < startMs || start > endMs || seen.has(start)) continue + seen.add(start) + const key = Math.floor(start / MINUTE_MS) * MINUTE_MS + const minute = minutes.get(key) ?? { moving: 0, jerk: 0, variance: 0, bins: 0, samples: 0 } + minute.moving += bins.movingSamples[i] + minute.jerk = Math.max(minute.jerk, bins.maxJerk[i]) + minute.variance += bins.magnitudeVariance[i] + minute.samples += bins.samples[i] + minute.bins++ + minutes.set(key, minute) + } + } + return [...minutes.entries()].sort(([a], [b]) => a - b).map(([t, m]) => ({ + timestamp: new Date(t), + movingSamples: m.moving, + maxJerk: m.jerk, + meanVariance: m.variance / m.bins, + samples: m.samples, + })) +} + +/** Per-minute Watch movement for one side, read from every capture overlapping the window. */ +export function watchMotionSeries(db: BioDB, side: WatchMotionSide, start: Date, end: Date): WatchMotionMinute[] { + const files = db.select({ file: watchMotionCaptures.file }).from(watchMotionCaptures) + .where(and(eq(watchMotionCaptures.side, side), gt(watchMotionCaptures.recordedTo, new Date(start.getTime() - BIN_MS)), + lte(watchMotionCaptures.recordedFrom, end))).all() + .map(row => JSON.parse(row.file) as WatchMotionFile) + return watchMotionMinutes(files, start.getTime(), end.getTime()) +} diff --git a/src/biometrics/shadow/tests/build.test.ts b/src/biometrics/shadow/tests/build.test.ts index e90b3cac4..d7ce131cc 100644 --- a/src/biometrics/shadow/tests/build.test.ts +++ b/src/biometrics/shadow/tests/build.test.ts @@ -6,7 +6,8 @@ import { expect, it } from 'vitest' import { configHash } from '../../algorithms/canonical' import { probeShadowBuild } from '../build' const location = { pythonPath: resolve('modules/piezo-processor/.venv/bin/python'), modulesPath: resolve('modules') } -it('probes the exact locked interpreter and requires shadow sources and intact identity', async () => { +// Needs the locked piezo-processor venv, which Stryker's sandbox doesn't carry. +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('probes the exact locked interpreter and requires shadow sources and intact identity', async () => { const build = await probeShadowBuild(location) expect(build).toEqual(await probeShadowBuild(location)) expect(build.identity.version).toBe('shadow-python-build-v1') @@ -30,7 +31,7 @@ it('probes the exact locked interpreter and requires shadow sources and intact i } finally { await rm(directory, { recursive: true, force: true }) } }) -it('packages the host without live service imports and binds its exact bytes', async () => { +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('packages the host without live service imports and binds its exact bytes', async () => { const { execFile } = await import('node:child_process') const { promisify } = await import('node:util') const { loadInstalledShadowHost, inspectInstalledShadowHost } = await import('../installed-host') diff --git a/src/biometrics/shadow/tests/python-installation.test.ts b/src/biometrics/shadow/tests/python-installation.test.ts index 85c9b0200..09507e7b2 100644 --- a/src/biometrics/shadow/tests/python-installation.test.ts +++ b/src/biometrics/shadow/tests/python-installation.test.ts @@ -29,7 +29,8 @@ async function setup() { const location = { pythonPath, modulesPath: root } return { build, location, source: join(root, 'common/biometrics/shadow.py') } } -it('validates real source and wheel metadata against the probe, then detects source replacement', async () => { +// Needs the locked piezo-processor venv, which Stryker's sandbox doesn't carry. +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('validates real source and wheel metadata against the probe, then detects source replacement', async () => { const { build, location, source } = await setup() const guard = guardShadowPythonInstallation(location, build) guard() @@ -37,12 +38,12 @@ it('validates real source and wheel metadata against the probe, then detects sou copyFileSync(source + '.old', source) expect(guard).toThrow(/changed/) }) -it('refuses source content changed after probing', async () => { +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('refuses source content changed after probing', async () => { const { build, location, source } = await setup() writeFileSync(source, '# changed') expect(() => guardShadowPythonInstallation(location, build)).toThrow(/differs from probe/) }) -it('detects metadata mutation and executable link replacement', async () => { +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('detects metadata mutation and executable link replacement', async () => { const { build, location } = await setup() const guard = guardShadowPythonInstallation(location, build) writeFileSync(build.dependencyFiles.numpy.wheel, 'changed') @@ -53,7 +54,7 @@ it('detects metadata mutation and executable link replacement', async () => { symlinkSync(process.execPath, other.location.pythonPath) expect(executableGuard).toThrow(/changed/) }) -it('refuses malformed build hashes and non-absolute dependency paths', async () => { +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('refuses malformed build hashes and non-absolute dependency paths', async () => { const { build, location } = await setup() expect(() => guardShadowPythonInstallation(location, { ...build, hash: 'a'.repeat(64) })).toThrow(/integrity/) build.dependencyFiles.numpy.record = 'relative/RECORD' diff --git a/src/components/MovementChart/MovementChart.tsx b/src/components/MovementChart/MovementChart.tsx index a56ed8c1c..4a7168ca7 100644 --- a/src/components/MovementChart/MovementChart.tsx +++ b/src/components/MovementChart/MovementChart.tsx @@ -12,6 +12,8 @@ import { useMemo } from 'react' import { BarChart, Bar, + ComposedChart, + Line, XAxis, YAxis, CartesianGrid, @@ -19,6 +21,7 @@ import { Tooltip, } from 'recharts' import { pickMovementBucketSeconds } from '@/src/lib/movement' +import { WATCH_MAX_SCALE, WATCH_MOTION_MAX_SERIES_MS, watchBuckets, type WatchMinute } from '@/src/lib/watchMovement' interface BucketRecord { side: 'left' | 'right' @@ -37,7 +40,12 @@ interface SummaryRecord { interface ChartDataPoint { time: string timestamp: number - movement: number + /** Pod events/hr; null where only the Watch has a bucket, or at a line break. */ + movement: number | null + /** Watch movement as a fraction of its night's peak; null breaks the line. */ + watch?: number | null + /** Watch moving readings summed over the bucket. */ + watchMoving?: number } /** @@ -99,6 +107,37 @@ function toChartData(buckets: BucketRecord[], bucketSeconds: number): ChartDataP .sort((a, b) => a.timestamp - b.timestamp) } +/** + * Add Apple Watch movement to the pod's bucket points. Watch minutes count + * only inside a sleep record (the nights shown); each night is scaled to its + * own peak. Buckets only the Watch has are added without a bar, and a break + * point is inserted wherever consecutive Watch buckets are not adjacent, so the + * line never bridges a gap. Without Watch data the points come back unchanged. + */ +export function withWatchMovement(points: ChartDataPoint[], minutes: WatchMinute[], nights: Array<{ start: number, end: number }>, bucketSeconds: number): ChartDataPoint[] { + const bucketMs = bucketSeconds * 1000 + const watch = watchBuckets(minutes, nights, bucketMs) + if (watch.size === 0) return points + const byTime = new Map(points.map(p => [p.timestamp, { ...p, watch: null as number | null }])) + for (const [t, w] of watch) { + const point = byTime.get(t) ?? { time: new Date(t).toISOString(), timestamp: t, movement: null, watch: null } + byTime.set(t, { ...point, watch: w.scaled, watchMoving: w.moving }) + } + const merged: ChartDataPoint[] = [] + let lastWatch: number | null = null + for (const point of [...byTime.values()].sort((a, b) => a.timestamp - b.timestamp)) { + if (point.watch != null) { + if (lastWatch != null && point.timestamp - lastWatch > bucketMs) { + const t = lastWatch + bucketMs + if (merged.at(-1)?.watch != null) merged.push({ time: new Date(t).toISOString(), timestamp: t, movement: null, watch: null }) + } + lastWatch = point.timestamp + } + merged.push(point) + } + return merged +} + /** * For week view, return one tick key per calendar day (the first bucket * of that day) so the axis shows Mon/Tue/Wed/... cleanly. Day view @@ -141,6 +180,7 @@ function MovementTooltip({ active, payload, bucketSeconds }: MovementTooltipProp const timeFormat = useTimeFormat() if (!active || !payload?.[0]) return null const data = payload[0].payload as ChartDataPoint + if (data.movement == null && data.watchMoving == null) return null // Tooltip shows the full bucket timestamp regardless of whether the // axis hides labels for non-day-boundary buckets. const tooltipLabel = formatClock(new Date(data.timestamp), timeFormat, { @@ -152,9 +192,16 @@ function MovementTooltip({ active, payload, bucketSeconds }: MovementTooltipProp return (

{tooltipLabel}

-

- {`${data.movement} /hr`} -

+ {data.movement != null && ( +

+ {`${data.movement} /hr`} +

+ )} + {data.watchMoving != null && ( +

+ {`Watch ${data.watchMoving} moving`} +

+ )}
) } @@ -193,6 +240,11 @@ export function MovementChart() { { refetchOnWindowFocus: false }, ) + const watchQuery = trpc.biometrics.getWatchMotionSeries.useQuery( + { side, startDate: weekStart, endDate: weekEnd }, + { refetchOnWindowFocus: false, enabled: weekEnd.getTime() - weekStart.getTime() <= WATCH_MOTION_MAX_SERIES_MS }, + ) + const buckets = useMemo(() => (bucketsQuery.data ?? []) as BucketRecord[], [bucketsQuery.data]) const totalSleepSeconds = useMemo( @@ -207,7 +259,22 @@ export function MovementChart() { [summaryQuery.data, totalSleepSeconds, nights], ) - const chartData = useMemo(() => toChartData(buckets, bucketSeconds), [buckets, bucketSeconds]) + const nightWindows = useMemo( + () => Array.isArray(sleepData) + ? sleepData.map(r => ({ start: new Date(r.enteredBedAt).getTime(), end: r.leftBedAt ? new Date(r.leftBedAt).getTime() : weekEnd.getTime() })) + : [], + [sleepData, weekEnd], + ) + const watchMinutes = useMemo( + () => (watchQuery.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), moving: r.movingSamples })), + [watchQuery.data], + ) + const chartData = useMemo( + () => withWatchMovement(toChartData(buckets, bucketSeconds), watchMinutes, nightWindows, bucketSeconds), + [buckets, bucketSeconds, watchMinutes, nightWindows], + ) + const hasWatch = chartData.some(p => p.watch != null) + const Chart = hasWatch ? ComposedChart : BarChart const isMultiDay = bucketSeconds >= 30 * 60 const tickKeys = useMemo(() => pickTickKeys(chartData, isMultiDay), [chartData, isMultiDay]) @@ -244,7 +311,7 @@ export function MovementChart() { : (
- + - + {hasWatch && } + {hasWatch && } +
)} + {hasWatch && ( +
+ + + Pod + + + + Apple Watch · scaled per night + +
+ )} ) } diff --git a/src/components/MovementChart/tests/charts.test.tsx b/src/components/MovementChart/tests/charts.test.tsx index f8e8b23d3..1f706faf6 100644 --- a/src/components/MovementChart/tests/charts.test.tsx +++ b/src/components/MovementChart/tests/charts.test.tsx @@ -1,14 +1,15 @@ import { cloneElement, isValidElement, type ReactElement, type ReactNode } from 'react' import { render, screen } from '@testing-library/react' import { beforeEach, expect, it, vi } from 'vitest' -import { MovementChart } from '../MovementChart' +import { MovementChart, withWatchMovement } from '../MovementChart' import { HumidityChart } from '@/src/components/Environment/HumidityChart' -const mock = vi.hoisted(() => ({ buckets: [] as unknown[], summary: undefined as unknown, sleep: undefined as unknown, days: 1, loading: false, error: null as Error | null, chart: vi.fn() })) +const mock = vi.hoisted(() => ({ buckets: [] as unknown[], summary: undefined as unknown, sleep: undefined as unknown, watch: [] as unknown[], days: 1, loading: false, error: null as Error | null, chart: vi.fn() })) vi.mock('@/src/hooks/useBiometricsSide', () => ({ useBiometricsSide: () => ({ side: 'left' }) })) vi.mock('@/src/hooks/useWeekNavigator', () => ({ useWeekNavigator: () => ({ weekStart: new Date(0), weekEnd: new Date(mock.days * 86400000) }) })) vi.mock('@/src/utils/trpc', () => ({ trpc: { biometrics: { getMovementBuckets: { useQuery: () => ({ data: mock.buckets, isLoading: mock.loading, error: mock.error }) }, getMovementSummary: { useQuery: () => ({ data: mock.summary }) }, getSleepRecords: { useQuery: () => ({ data: mock.sleep }) }, + getWatchMotionSeries: { useQuery: () => ({ data: mock.watch }) }, } } })) vi.mock('recharts', () => { const container = ({ children }: { children: ReactNode }) =>
{children}
@@ -17,7 +18,7 @@ vi.mock('recharts', () => { return
{children}
} return { - ResponsiveContainer: container, BarChart: chart, AreaChart: chart, Bar: () => null, Area: () => null, CartesianGrid: () => null, YAxis: () => null, + ResponsiveContainer: container, BarChart: chart, ComposedChart: chart, AreaChart: chart, Bar: () => null, Area: () => null, Line: () => , CartesianGrid: () => null, YAxis: () => null, XAxis: ({ tickFormatter }: { tickFormatter?: (v: string) => string }) => {tickFormatter?.('2026-09-28T22:00:00Z')}, Tooltip: ({ content, formatter, labelFormatter }: { content?: ReactNode, formatter?: (v: number) => unknown, labelFormatter?: (v: number) => unknown }) => (
@@ -39,7 +40,7 @@ vi.mock('recharts', () => { } }) beforeEach(() => { - Object.assign(mock, { buckets: [], summary: undefined, sleep: undefined, days: 1, loading: false, error: null }) + Object.assign(mock, { buckets: [], summary: undefined, sleep: undefined, watch: [], days: 1, loading: false, error: null }) vi.clearAllMocks() }) it('renders movement loading, empty and error states', () => { @@ -65,6 +66,33 @@ it.each([1, 7])('normalizes movement buckets and summarizes %s days of sleep', ( expect(points[0].timestamp).toBeLessThan(points.at(-1).timestamp) expect(points[0].movement).toBeGreaterThan(0) }) +it('overlays Watch movement inside the nights only, with a legend', () => { + const M = 60_000 + mock.buckets = [{ side: 'left', bucketStart: new Date(10 * M), eventCount: 2, totalMovement: 10, sampleCount: 1 }] + mock.sleep = [{ sleepDurationSeconds: 3600, enteredBedAt: new Date(5 * M), leftBedAt: new Date(60 * M) }] + mock.watch = [{ timestamp: new Date(2 * M), movingSamples: 99 }, { timestamp: new Date(11 * M), movingSamples: 4 }] + render() + expect(screen.getByTestId('movement-watch-legend').textContent).toContain('Apple Watch · scaled per night') + expect(screen.getByTestId('watch-line')).toBeTruthy() + const points = mock.chart.mock.lastCall?.[0] + expect(points.map((p: { watchMoving?: number }) => p.watchMoving)).toEqual([4]) +}) +it('leaves the chart untouched without Watch data in a night', () => { + mock.buckets = [{ side: 'left', bucketStart: new Date(0), eventCount: 2, totalMovement: 10, sampleCount: 1 }] + mock.watch = [{ timestamp: new Date(0), movingSamples: 3 }] + render() + expect(screen.queryByTestId('movement-watch-legend')).toBeNull() + expect(screen.queryByTestId('watch-line')).toBeNull() + expect(mock.chart.mock.lastCall?.[0]).toEqual([{ time: new Date(0).toISOString(), timestamp: 0, movement: 24 }]) +}) +it('adds Watch-only buckets and breaks the line between non-adjacent buckets', () => { + const B = 300_000 + const pod = [0, 4 * B].map(t => ({ time: new Date(t).toISOString(), timestamp: t, movement: 5 })) + const minutes = [0, B, 4 * B].map(t => ({ t, moving: 10 })) + const merged = withWatchMovement(pod, minutes, [{ start: 0, end: 10 * B }], 300) + expect(merged.map(p => [p.timestamp / B, p.movement, p.watch])).toEqual([[0, 5, 1], [1, null, 1], [2, null, null], [4, 5, 1]]) + expect(withWatchMovement(pod, [], [{ start: 0, end: 10 * B }], 300)).toBe(pod) +}) it('derives humidity statistics, samples dense data and formats the tooltip', () => { const { rerender } = render() expect(screen.getByText('No humidity data available')).toBeTruthy() diff --git a/src/components/Settings/SensorSourceCard.tsx b/src/components/Settings/SensorSourceCard.tsx index 848492326..eadf3b6c4 100644 --- a/src/components/Settings/SensorSourceCard.tsx +++ b/src/components/Settings/SensorSourceCard.tsx @@ -1,22 +1,37 @@ 'use client' -import { Waves } from 'lucide-react' +import { useState } from 'react' +import { RotateCw, Waves } from 'lucide-react' import { trpc } from '@/src/utils/trpc' -import { Card, CardHeader, InlineError, SettingRow, Skeleton, StatusDot } from '@/src/components/ds' -import { fmtAgo } from '@/src/lib/dataPath' -import { sensorSourceVerdict, TRANSPORT_LABELS } from './sensorSourceLogic' +import { Button, Card, CardHeader, InlineError, SegmentedControl, SettingRow, Skeleton, StatusDot, TextField } from '@/src/components/ds' +import { fmtAgo, RESTARTABLE_UNITS } from '@/src/lib/dataPath' +import { isNatsSubjectPrefix } from '@/src/lib/natsSubjectPrefix' +import type { inferRouterOutputs } from '@trpc/server' +import type { AppRouter } from '@/src/server/routers/app' +import { + observedSummary, + PREFIX_CHOICES, + prefixChoice, + sensorSourceVerdict, + sourcesSummary, + TRANSPORT_LABELS, + type PrefixChoice, +} from './sensorSourceLogic' const POLL_MS = 10_000 +type NatsDiagnostics = NonNullable['system']['getSensorSource']['nats']> + /** - * Settings → Device → "Sensor data source". Read-only. + * Settings → Device → "Sensor data source". * * A fleet of sleepypods spans three firmware generations, and which one a pod * runs decides whether the core reads `.RAW` files or a local NATS stream. - * The pick is automatic and happens once per process, so there is nothing to - * toggle here — the card exists so the first support question ("which - * pipeline is this pod on, and is data flowing?") is answerable from the app - * instead of `sp-status` over SSH. + * The transport pick is automatic and happens once per process — the card + * exists so the first support question ("which pipeline is this pod on, and + * is data flowing?") is answerable from the app instead of `sp-status` over + * SSH. On NATS firmware it also sets the subject prefix the readers subscribe + * under, for firmware that publishes somewhere the auto mode doesn't read. */ export function SensorSourceCard() { const q = trpc.system.getSensorSource.useQuery({}, { refetchInterval: POLL_MS }) @@ -40,7 +55,9 @@ export function SensorSourceCard() { legacyNatsDisabled: stream.legacyNatsDisabled, lastFrameAgeMs: stream.lastFrameAgeMs, uptimeSeconds: stream.uptimeSeconds, + observedPrefixes: q.data.nats?.observedPrefixes, }) + const natsRelevant = stream.source === 'nats' || firmware.expectedTransport === 'nats' return ( @@ -69,9 +86,114 @@ export function SensorSourceCard() { + {q.data.nats && } + + {natsRelevant && } + {verdict.note && (

{verdict.note}

)}
) } + +/** Which prefix feeds each subject, and every prefix the firmware publishes under. */ +function NatsTraffic({ nats }: { nats: NatsDiagnostics }) { + return ( + <> + + {nats.mode} + + + + ) +} + +/** + * `settings.natsSubjectPrefix`. The core's stream re-subscribes on save; the + * Python biometrics modules read it at startup, so a change offers to restart + * them through the same `health.restartService` path System → Health uses. + */ +function SubjectPrefixSetting() { + const utils = trpc.useUtils() + const settings = trpc.settings.getAll.useQuery({}) + const saved = settings.data?.device.natsSubjectPrefix ?? null + const [customOpen, setCustomOpen] = useState(false) + const [draft, setDraft] = useState('') + const [changed, setChanged] = useState(false) + const update = trpc.settings.updateDevice.useMutation({ + onSuccess: () => { + setChanged(true) + setCustomOpen(false) + void utils.settings.getAll.invalidate() + void utils.system.getSensorSource.invalidate() + }, + }) + const restart = trpc.health.restartService.useMutation() + const [restarting, setRestarting] = useState(false) + const [restartResult, setRestartResult] = useState(null) + + if (!settings.data) return null + + const choice: PrefixChoice = customOpen ? 'custom' : prefixChoice(saved) + const save = (prefix: string | null) => { + if (prefix !== saved) update.mutate({ natsSubjectPrefix: prefix }) + } + const choose = (next: PrefixChoice) => { + if (next === 'custom') { + setCustomOpen(true) + setDraft(prefixChoice(saved) === 'custom' ? saved ?? '' : '') + return + } + setCustomOpen(false) + save(next === 'auto' ? null : next) + } + const draftValid = isNatsSubjectPrefix(draft) + const restartModules = async () => { + setRestarting(true) + setRestartResult(null) + const results = await Promise.all(RESTARTABLE_UNITS.map(unit => restart.mutateAsync({ unit }).catch((e: Error) => ({ ok: false, message: e.message })))) + const failed = results.filter(r => !r.ok) + setRestarting(false) + setRestartResult(failed.length === 0 ? `Restarted ${results.length} biometrics modules.` : failed.map(r => r.message).join(' ')) + } + + return ( + <> + + + + {choice === 'custom' && ( +
+ + +
+ )} + {update.error && {update.error.message}} + {changed && ( +
+

+ The live stream switched already. Biometrics modules pick this up on their next restart. +

+ + {restartResult &&

{restartResult}

} +
+ )} + + ) +} diff --git a/src/components/Settings/sensorSourceLogic.ts b/src/components/Settings/sensorSourceLogic.ts index fbe46ba8d..89b93f913 100644 --- a/src/components/Settings/sensorSourceLogic.ts +++ b/src/components/Settings/sensorSourceLogic.ts @@ -17,6 +17,15 @@ export interface SensorSourceVerdictInput { /** Server-computed age of the newest live frame; null before the first one. */ lastFrameAgeMs: number | null uptimeSeconds: number + /** Prefixes seen publishing sensor subjects (NATS only). */ + observedPrefixes?: ReadonlyArray +} + +export interface ObservedPrefix { + prefix: string + subscribed: boolean + messages: number + lastSeenAgeMs: number } export interface SensorSourceVerdict { @@ -84,6 +93,11 @@ export function sensorSourceVerdict(i: SensorSourceVerdictInput): SensorSourceVe } function overrideNote(i: SensorSourceVerdictInput): string | null { + const unread = unreadPrefixes(i.observedPrefixes) + const starved = i.lastFrameAgeMs === null || i.lastFrameAgeMs > FRAME_STALE_MS + if (i.source === 'nats' && starved && unread.length > 0) { + return `Firmware publishes under ${unread.join(', ')}, which this pod doesn't read. Set the subject prefix to ${unread[0]}.` + } if (i.override) { return `PIEZO_SENSOR_SOURCE=${i.override} forces this source regardless of firmware.` } @@ -95,3 +109,42 @@ function overrideNote(i: SensorSourceVerdictInput): string | null { } return null } + +export type PrefixChoice = 'auto' | 'raw' | 'rawmem' | 'custom' + +export const PREFIX_CHOICES: ReadonlyArray<{ value: PrefixChoice, label: string }> = [ + { value: 'auto', label: 'Auto' }, + { value: 'raw', label: 'raw' }, + { value: 'rawmem', label: 'rawmem' }, + { value: 'custom', label: 'Custom…' }, +] + +/** Which segment a stored `natsSubjectPrefix` shows as; null is auto. */ +export function prefixChoice(prefix: string | null): PrefixChoice { + if (prefix === null) return 'auto' + return prefix === 'raw' || prefix === 'rawmem' ? prefix : 'custom' +} + +/** Prefixes publishing sensor subjects that the readers don't subscribe to. */ +export function unreadPrefixes(observed: ReadonlyArray | undefined): string[] { + return (observed ?? []).filter(p => !p.subscribed).map(p => p.prefix) +} + +/** "raw: sens.piezo, frz.temp · rawmem: sens.capsense2", or null before any subject has a source. */ +export function sourcesSummary(sources: Record): string | null { + const byPrefix = new Map() + const entries = Object.entries(sources).sort(([sa, pa], [sb, pb]) => pa.localeCompare(pb) || sa.localeCompare(sb)) + for (const [subject, prefix] of entries) { + byPrefix.set(prefix, [...(byPrefix.get(prefix) ?? []), subject]) + } + if (byPrefix.size === 0) return null + return [...byPrefix].map(([prefix, subjects]) => `${prefix}: ${subjects.join(', ')}`).join(' · ') +} + +/** "raw 2s ago · rawv2 (not read) 1s ago", or null before discovery has seen anything. */ +export function observedSummary(observed: ReadonlyArray): string | null { + if (observed.length === 0) return null + return observed + .map(p => `${p.prefix}${p.subscribed ? '' : ' (not read)'} ${fmtAgo(p.lastSeenAgeMs)}`) + .join(' · ') +} diff --git a/src/components/Settings/tests/SensorSourceCard.test.tsx b/src/components/Settings/tests/SensorSourceCard.test.tsx index 6cc52a856..2393cc814 100644 --- a/src/components/Settings/tests/SensorSourceCard.test.tsx +++ b/src/components/Settings/tests/SensorSourceCard.test.tsx @@ -1,10 +1,29 @@ -import { render, screen } from '@testing-library/react' +import { act, fireEvent, render, screen, waitFor } from '@testing-library/react' import { beforeEach, expect, it, vi } from 'vitest' import { SensorSourceCard } from '../SensorSourceCard' -const mock = vi.hoisted(() => ({ data: undefined as unknown, loading: false, error: null as Error | null })) +const mock = vi.hoisted(() => ({ + data: undefined as unknown, + loading: false, + error: null as Error | null, + prefix: null as string | null, + update: vi.fn(), + updateOptions: null as { onSuccess?: () => void } | null, + restart: vi.fn(async ({ unit }: { unit: string }) => ({ ok: true, message: `Restarted ${unit}` })), +})) vi.mock('@/src/utils/trpc', () => ({ trpc: { + useUtils: () => ({ settings: { getAll: { invalidate: vi.fn() } }, system: { getSensorSource: { invalidate: vi.fn() } } }), system: { getSensorSource: { useQuery: () => ({ data: mock.data, isLoading: mock.loading, error: mock.error }) } }, + settings: { + getAll: { useQuery: () => ({ data: { device: { natsSubjectPrefix: mock.prefix } } }) }, + updateDevice: { + useMutation: (options: { onSuccess?: () => void }) => { + mock.updateOptions = options + return { mutate: mock.update, isPending: false, error: null } + }, + }, + }, + health: { restartService: { useMutation: () => ({ mutateAsync: mock.restart }) } }, } })) const natsPod = { @@ -17,12 +36,25 @@ const natsPod = { signals: { natsUnitInstalled: true, natsServerActive: true, jetstreamDirPresent: true, biometricsTmpfsMounted: false, frankShimRoutesTmpfs: false, frankServiceRoutesTmpfs: false }, }, stream: { source: 'nats', override: null, legacyNatsDisabled: false, lastFrameAtMs: 1_000, lastFrameAgeMs: 3_000, lastFrameType: 'capSense', firstFrameMs: 1200, uptimeSeconds: 900 }, + nats: { + mode: 'auto', + configuredPrefix: null, + subscribedSubjects: ['raw.sens.>', 'raw.frz.>', 'rawmem.sens.>', 'rawmem.frz.>'], + sources: { 'sens.piezo': 'raw', 'frz.temp': 'rawmem', 'sens.capsense': 'raw' }, + messages: 40, + decodeFailures: 0, + ignoredMessages: 3, + observedPrefixes: [{ prefix: 'raw', subscribed: true, messages: 30, lastSeenAtMs: 1_000, lastSeenAgeMs: 2_000 }], + }, } beforeEach(() => { mock.data = natsPod mock.loading = false mock.error = null + mock.prefix = null + mock.update.mockReset() + mock.restart.mockClear() }) it('shows the firmware generation, the selected source and frame freshness', () => { @@ -84,3 +116,91 @@ it('renders a skeleton while loading, nothing without data, and the error inline rerender() expect(screen.getByText('offline')).toBeTruthy() }) + +it('shows which prefix feeds each subject and every prefix seen publishing', () => { + render() + expect(screen.getByTestId('nats-mode').textContent).toBe('auto') + expect(screen.getByText('raw: sens.capsense, sens.piezo · rawmem: frz.temp')).toBeTruthy() + expect(screen.getByText('raw 2s ago')).toBeTruthy() +}) + +it('points at a publishing prefix the pod does not read when no frames arrive', () => { + mock.data = { + ...natsPod, + stream: { ...natsPod.stream, lastFrameAtMs: null, lastFrameAgeMs: null, lastFrameType: null }, + nats: { ...natsPod.nats, sources: {}, observedPrefixes: [{ prefix: 'rawv2', subscribed: false, messages: 9, lastSeenAtMs: 1_000, lastSeenAgeMs: 1_000 }] }, + } + render() + expect(screen.getByText('No subject has delivered a frame yet.')).toBeTruthy() + expect(screen.getByText('rawv2 (not read) 1s ago')).toBeTruthy() + expect(screen.getByTestId('source-note').textContent).toBe('Firmware publishes under rawv2, which this pod doesn\'t read. Set the subject prefix to rawv2.') +}) + +it('hides the prefix control and NATS readout on a RAW pod', () => { + mock.data = { + firmware: { ...natsPod.firmware, generation: 'raw-filesystem', label: '.RAW on /persistent', expectedTransport: 'raw' }, + stream: { ...natsPod.stream, source: 'raw' }, + nats: null, + } + render() + expect(screen.queryByText('Subject prefix')).toBeNull() + expect(screen.queryByText('Publishing prefixes')).toBeNull() +}) + +it('pins a listed prefix, returns to auto, and offers to restart the biometrics modules', async () => { + render() + expect(screen.getByRole('tab', { name: 'Auto' }).getAttribute('aria-selected')).toBe('true') + fireEvent.click(screen.getByRole('tab', { name: 'rawmem' })) + expect(mock.update).toHaveBeenCalledWith({ natsSubjectPrefix: 'rawmem' }) + expect(screen.queryByTestId('prefix-restart')).toBeNull() + + act(() => mock.updateOptions?.onSuccess?.()) + expect(screen.getByText('The live stream switched already. Biometrics modules pick this up on their next restart.')).toBeTruthy() + fireEvent.click(screen.getByRole('button', { name: 'Restart biometrics modules' })) + await waitFor(() => expect(screen.getByTestId('prefix-restart-result').textContent).toBe('Restarted 3 biometrics modules.')) + expect(mock.restart.mock.calls.map(([input]) => input.unit)).toEqual([ + 'sleepypod-piezo-processor.service', + 'sleepypod-sleep-detector.service', + 'sleepypod-environment-monitor.service', + ]) +}) + +it('reports a module that could not be restarted from the app', async () => { + mock.restart.mockResolvedValueOnce({ ok: false, message: 'Run on the pod: sudo systemctl restart sleepypod-piezo-processor.service' }) + render() + fireEvent.click(screen.getByRole('tab', { name: 'raw' })) + act(() => mock.updateOptions?.onSuccess?.()) + fireEvent.click(screen.getByRole('button', { name: 'Restart biometrics modules' })) + await waitFor(() => expect(screen.getByTestId('prefix-restart-result').textContent).toContain('sudo systemctl restart')) +}) + +it('does not save the prefix it already has', () => { + mock.prefix = 'rawmem' + render() + expect(screen.getByRole('tab', { name: 'rawmem' }).getAttribute('aria-selected')).toBe('true') + fireEvent.click(screen.getByRole('tab', { name: 'rawmem' })) + fireEvent.click(screen.getByRole('tab', { name: 'Auto' })) + expect(mock.update.mock.calls).toEqual([[{ natsSubjectPrefix: null }]]) +}) + +it('saves a valid custom prefix and holds back an invalid one', () => { + render() + fireEvent.click(screen.getByRole('tab', { name: 'Custom…' })) + const input = screen.getByLabelText('Custom prefix') + const save = screen.getByRole('button', { name: 'Save' }) as HTMLButtonElement + + fireEvent.change(input, { target: { value: 'raw.sens' } }) + expect(save.disabled).toBe(true) + expect(screen.getByText('Letters, digits, _ or -, up to 32 characters. No dots or wildcards.')).toBeTruthy() + + fireEvent.change(input, { target: { value: 'rawv2' } }) + expect(save.disabled).toBe(false) + fireEvent.click(save) + expect(mock.update).toHaveBeenCalledWith({ natsSubjectPrefix: 'rawv2' }) +}) + +it('shows a stored custom prefix under Custom', () => { + mock.prefix = 'rawv2' + render() + expect(screen.getByRole('tab', { name: 'Custom…' }).getAttribute('aria-selected')).toBe('true') +}) diff --git a/src/components/Settings/tests/sensorSourceLogic.test.ts b/src/components/Settings/tests/sensorSourceLogic.test.ts index 1e4d4e849..898e0d481 100644 --- a/src/components/Settings/tests/sensorSourceLogic.test.ts +++ b/src/components/Settings/tests/sensorSourceLogic.test.ts @@ -2,7 +2,11 @@ import { describe, expect, it } from 'vitest' import { FIRST_FRAME_GRACE_MS, FRAME_STALE_MS, + observedSummary, + prefixChoice, sensorSourceVerdict, + sourcesSummary, + unreadPrefixes, type SensorSourceVerdictInput, } from '../sensorSourceLogic' @@ -61,3 +65,36 @@ describe('sensorSourceVerdict', () => { expect(sensorSourceVerdict({ ...base, override: 'nats' }).note).toContain('PIEZO_SENSOR_SOURCE=nats') }) }) + +describe('NATS subject prefix helpers', () => { + const unread = { prefix: 'rawv2', subscribed: false, messages: 4, lastSeenAgeMs: 1_000 } + const read = { prefix: 'raw', subscribed: true, messages: 9, lastSeenAgeMs: 2_000 } + + it('maps the stored prefix to a segment', () => { + expect(prefixChoice(null)).toBe('auto') + expect(prefixChoice('raw')).toBe('raw') + expect(prefixChoice('rawmem')).toBe('rawmem') + expect(prefixChoice('rawv2')).toBe('custom') + }) + + it('groups subjects by the prefix feeding them', () => { + expect(sourcesSummary({})).toBeNull() + expect(sourcesSummary({ 'sens.piezo': 'rawmem', 'frz.temp': 'raw', 'sens.bedtemp': 'raw' })) + .toBe('raw: frz.temp, sens.bedtemp · rawmem: sens.piezo') + }) + + it('marks publishing prefixes the readers do not subscribe to', () => { + expect(observedSummary([])).toBeNull() + expect(observedSummary([read, unread])).toBe('raw 2s ago · rawv2 (not read) 1s ago') + expect(unreadPrefixes([read, unread])).toEqual(['rawv2']) + expect(unreadPrefixes(undefined)).toEqual([]) + }) + + it('names an unread prefix only while NATS frames are missing or stale', () => { + const starved = sensorSourceVerdict({ ...base, lastFrameAgeMs: null, observedPrefixes: [read, unread] }) + expect(starved.note).toBe('Firmware publishes under rawv2, which this pod doesn\'t read. Set the subject prefix to rawv2.') + expect(sensorSourceVerdict({ ...base, lastFrameAgeMs: FRAME_STALE_MS + 1, observedPrefixes: [unread] }).note).toContain('rawv2') + expect(sensorSourceVerdict({ ...base, observedPrefixes: [unread] }).note).toBeNull() + expect(sensorSourceVerdict({ ...base, lastFrameAgeMs: null, observedPrefixes: [read] }).note).toBeNull() + }) +}) diff --git a/src/components/Sleep/NightVitals.tsx b/src/components/Sleep/NightVitals.tsx index 1912af06c..da7c50dc1 100644 --- a/src/components/Sleep/NightVitals.tsx +++ b/src/components/Sleep/NightVitals.tsx @@ -4,7 +4,8 @@ import { trpc } from '@/src/utils/trpc' import { Card, InlineError, SectionLabel, Skeleton } from '@/src/components/ds' import { VitalsExplorer } from '@/src/components/biometrics/VitalsExplorer' import { VitalsLegend } from '@/src/components/biometrics/VitalsChart' -import { baselineBand, splitSessions } from '@/src/components/biometrics/biometricsLogic' +import { baselineBand, readingsInSessions, splitSessions } from '@/src/components/biometrics/biometricsLogic' +import { WATCH_MOTION_MAX_SERIES_MS, watchInWindows } from '@/src/lib/watchMovement' /** Nights and Biometrics use the same recorded data, chart, colors and navigation. */ export function NightVitals({ side, start, end }: { side: 'left' | 'right', start: number, end: number }) { @@ -12,29 +13,36 @@ export function NightVitals({ side, start, end }: { side: 'left' | 'right', star const vitals = trpc.biometrics.getVitals.useQuery({ ...range, limit: 100000 }) const hr = trpc.biometrics.getReferenceVitals.useQuery({ ...range, limit: 20000 }) const hrv = trpc.biometrics.getReferenceSamples.useQuery({ ...range, metric: 'hrv_sdnn', limit: 20000 }) + const rmssd = trpc.biometrics.getReferenceSamples.useQuery({ ...range, metric: 'hrv_rmssd', limit: 20000 }) const br = trpc.biometrics.getReferenceSamples.useQuery({ ...range, metric: 'breathing_rate', limit: 20000 }) + const oxygen = trpc.biometrics.getReferenceSamples.useQuery({ ...range, metric: 'blood_oxygen', limit: 20000 }) const movement = trpc.biometrics.getMovementBuckets.useQuery({ ...range, bucketSeconds: 300, limit: 10000 }) + const watch = trpc.biometrics.getWatchMotionSeries.useQuery(range, { enabled: end - start <= WATCH_MOTION_MAX_SERIES_MS }) const points = (vitals.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), hr: r.heartRate, hrv: r.hrv, br: r.breathingRate, provenanceKey: r.provenance?.processingRunId ?? r.processingRunId ?? 'legacy_unknown', hrvMetricId: r.provenance?.hrvMetricId ?? null })) const reference = (hr.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), hr: r.heartRate })).sort((a, b) => a.t - b.t) const referenceHrv = (hrv.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), value: r.value })) + const referenceRmssd = (rmssd.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), value: r.value })) const referenceBr = (br.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), value: r.value })) + const referenceOxygen = (oxygen.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), value: r.value })) + const watchMovement = (watch.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), moving: r.movingSamples })) const sessionPoints = points.length ? points - : [...new Set([...reference, ...referenceHrv, ...referenceBr].map(r => r.t))] + : [...new Set([...reference, ...referenceHrv, ...referenceRmssd, ...referenceBr, ...referenceOxygen].map(r => r.t))] .sort((a, b) => a - b).map(t => ({ t, hr: null, hrv: null, br: null })) + const sessions = splitSessions(sessionPoints) return ( Vitals through the night {vitals.error && Could not load this night’s recorded vitals.} - {(hr.error || hrv.error || br.error) && Some Apple Watch readings could not be loaded.} - {vitals.isLoading || hr.isLoading || hrv.isLoading || br.isLoading + {(hr.error || hrv.error || rmssd.error || br.error || oxygen.error) && Some Apple Watch readings could not be loaded.} + {vitals.isLoading || hr.isLoading || hrv.isLoading || rmssd.isLoading || br.isLoading || oxygen.isLoading ? : sessionPoints.length > 0 - ? + ? :

No recorded vitals for this night.

} - 0} referenceHrv={referenceHrv.length > 0} referenceBr={referenceBr.length > 0} /> - {referenceHrv.length > 0 &&

Watch SDNN and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values.

} + 0} referenceRmssd={referenceRmssd.length > 0} referenceHrv={referenceHrv.length > 0} referenceBr={referenceBr.length > 0} referenceOxygen={readingsInSessions(referenceOxygen, sessions).length > 0} watchMovement={watchInWindows(watchMovement, sessions).length > 0} /> + {(referenceHrv.length > 0 || referenceRmssd.length > 0) &&

Watch SDNN, Watch RMSSD and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values.

}
) } diff --git a/src/components/Sleep/tests/NightVitals.test.tsx b/src/components/Sleep/tests/NightVitals.test.tsx index b3f6b5a51..9fda88123 100644 --- a/src/components/Sleep/tests/NightVitals.test.tsx +++ b/src/components/Sleep/tests/NightVitals.test.tsx @@ -3,10 +3,11 @@ import { afterEach, expect, it, vi } from 'vitest' import { NightVitals } from '../NightVitals' import { Hypnogram } from '@/src/components/ds' -const mock = vi.hoisted(() => ({ query: vi.fn(), chart: vi.fn() })) +const mock = vi.hoisted(() => ({ query: vi.fn(), watch: vi.fn(() => ({ data: [] as unknown[] })), chart: vi.fn() })) vi.mock('@/src/utils/trpc', () => ({ trpc: { biometrics: { getVitals: { useQuery: mock.query }, getReferenceVitals: { useQuery: mock.query }, getReferenceSamples: { useQuery: mock.query }, getMovementBuckets: { useQuery: mock.query }, + getWatchMotionSeries: { useQuery: mock.watch }, } } })) vi.mock('@/src/components/biometrics/VitalsExplorer', () => ({ VitalsExplorer: (props: unknown) => { mock.chart(props) @@ -24,6 +25,50 @@ it('uses the same chart and scopes all three Watch metrics to the selected side expect(mock.query).toHaveBeenCalledWith(expect.objectContaining({ side: 'right', metric: 'breathing_rate', startDate: new Date(0), endDate: new Date(10000) })) expect(mock.chart).toHaveBeenCalledWith(expect.objectContaining({ reference: [{ t: 2000, hr: 62 }], referenceHrv: [{ t: 2000, value: 35 }], referenceBr: [{ t: 2000, value: 14 }] })) }) +it('passes blood oxygen to the chart and names it only inside a session', () => { + mock.chart.mockClear() + mock.query.mockImplementation(input => ({ data: input.metric === 'blood_oxygen' + ? [{ timestamp: new Date(1000), value: 96 }, { timestamp: new Date(9000), value: 94 }] + : input.limit === 100000 ? [{ timestamp: new Date(1000), heartRate: 60, hrv: 40, breathingRate: 15 }] : [] })) + render() + expect(mock.chart).toHaveBeenCalledWith(expect.objectContaining({ referenceOxygen: [{ t: 1000, value: 96 }, { t: 9000, value: 94 }] })) + expect(screen.getByText('blood oxygen')).toBeTruthy() + cleanup() + mock.query.mockImplementation(input => ({ data: input.metric === 'blood_oxygen' + ? [{ timestamp: new Date(9000), value: 94 }] + : input.limit === 100000 ? [{ timestamp: new Date(1000), heartRate: 60, hrv: 40, breathingRate: 15 }] : [] })) + render() + expect(screen.queryByText('blood oxygen')).toBeNull() +}) +it('reports a failed blood-oxygen request without hiding the chart', () => { + mock.query.mockImplementation(input => input.metric === 'blood_oxygen' + ? { error: new Error('offline') } + : { data: input.limit === 100000 ? [{ timestamp: new Date(1000), heartRate: 60, hrv: 40, breathingRate: 15 }] : [] }) + render() + expect(screen.getByText('Some Apple Watch readings could not be loaded.')).toBeTruthy() + expect(screen.getByText('Shared Biometrics chart')).toBeTruthy() +}) +it('waits for blood oxygen before drawing the night', () => { + mock.chart.mockClear() + mock.query.mockImplementation(input => input.metric === 'blood_oxygen' ? { isLoading: true } : { data: [] }) + render() + expect(mock.chart).not.toHaveBeenCalled() + expect(screen.queryByText('No recorded vitals for this night.')).toBeNull() +}) +it('passes the night’s Watch movement to the chart and legend, and draws nothing extra without it', () => { + mock.query.mockImplementation(input => ({ data: input.limit === 100000 + ? [{ timestamp: new Date(60_000), heartRate: 60, hrv: 40, breathingRate: 15 }, { timestamp: new Date(120_000), heartRate: 61, hrv: 40, breathingRate: 15 }] + : [] })) + render() + expect(mock.watch).toHaveBeenCalledWith({ side: 'left', startDate: new Date(0), endDate: new Date(600_000) }, expect.objectContaining({ enabled: true })) + expect(mock.chart).toHaveBeenLastCalledWith(expect.objectContaining({ watchMovement: [] })) + expect(screen.queryByTestId('legend-watch-movement')).toBeNull() + cleanup() + mock.watch.mockReturnValue({ data: [{ timestamp: new Date(60_000), movingSamples: 7 }] }) + render() + expect(mock.chart).toHaveBeenLastCalledWith(expect.objectContaining({ watchMovement: [{ t: 60_000, moving: 7 }] })) + expect(screen.getByTestId('legend-watch-movement')).toBeTruthy() +}) it('reports a failed recorded-vitals request', () => { mock.query.mockReturnValue({ error: new Error('offline') }) render() @@ -45,7 +90,7 @@ it('connects adjacent stage transitions but never bridges missing Watch interval expect(paths[2].getAttribute('d')).toBe('M 40 39 V 39 H 50') }) -it.each(['hr', 'hrv_sdnn', 'breathing_rate'])('draws reference-only %s sessions with null pod metrics', (metric) => { +it.each(['hr', 'hrv_sdnn', 'hrv_rmssd', 'breathing_rate', 'blood_oxygen'])('draws reference-only %s sessions with null pod metrics', (metric) => { mock.chart.mockClear() mock.query.mockImplementation(input => ({ data: input.metric === metric ? [{ timestamp: new Date(2000), value: 35 }] @@ -56,3 +101,28 @@ it.each(['hr', 'hrv_sdnn', 'breathing_rate'])('draws reference-only %s sessions expect(screen.queryByText('No recorded vitals for this night.')).toBeNull() expect(mock.chart.mock.calls[0][0].sessions[0].points).toEqual([{ t: 2000, hr: null, hrv: null, br: null }]) }) + +it('names RMSSD and explains comparability when the Watch reported it', () => { + mock.query.mockImplementation(input => ({ data: input.metric === 'hrv_rmssd' ? [{ timestamp: new Date(2000), value: 32 }] : [] })) + render() + expect(screen.getByText('HRV · RMSSD')).toBeTruthy() + expect(screen.getByText(/Watch SDNN, Watch RMSSD and sleepypod/)).toBeTruthy() +}) + +it.each(['hrv_sdnn', 'hrv_rmssd', 'breathing_rate'])('reports a failed %s request', (metric) => { + mock.query.mockImplementation(input => (input.metric === metric ? { error: new Error('offline') } : { data: [] })) + render() + expect(screen.getByText('Some Apple Watch readings could not be loaded.')).toBeTruthy() +}) + +it.each(['hrv_sdnn', 'hrv_rmssd', 'breathing_rate'])('waits for %s before drawing the night', (metric) => { + mock.query.mockImplementation(input => (input.metric === metric ? { isLoading: true } : { data: [] })) + render() + expect(screen.queryByText('No recorded vitals for this night.')).toBeNull() +}) + +it('omits the optional RMSSD legend when no Watch data exists', () => { + mock.query.mockReturnValue({ data: [] }) + render() + expect(screen.queryByText('HRV · RMSSD')).toBeNull() +}) diff --git a/src/components/Sleep/tests/SleepScreen.test.tsx b/src/components/Sleep/tests/SleepScreen.test.tsx index 46206fb02..cdb3a5305 100644 --- a/src/components/Sleep/tests/SleepScreen.test.tsx +++ b/src/components/Sleep/tests/SleepScreen.test.tsx @@ -36,6 +36,7 @@ vi.mock('@/src/utils/trpc', () => ({ getReferenceStages: { useQuery: state.reference }, getReferenceVitals: { useQuery: () => ({ data: [] }) }, getReferenceSamples: { useQuery: () => ({ data: [] }) }, + getWatchMotionSeries: { useQuery: () => ({ data: [] }) }, getSleepRecords: { useQuery: state.sleep }, getSleepStages: { useQuery: state.stages }, getVitals: { useQuery: state.vitals }, diff --git a/src/components/biometrics/BiometricsPage.tsx b/src/components/biometrics/BiometricsPage.tsx index 1718149d6..91020fbd6 100644 --- a/src/components/biometrics/BiometricsPage.tsx +++ b/src/components/biometrics/BiometricsPage.tsx @@ -28,10 +28,11 @@ import { useSideNames } from '@/src/hooks/useSideNames' import { OccupancyCheck } from '@/src/components/diagnostics/OccupancyCheck' import { RawDataButton } from './RawDataButton' import { referenceInSession, type ReferencePoint, VitalsLegend } from './VitalsChart' +import { WATCH_MOTION_MAX_SERIES_MS, watchInWindows } from '@/src/lib/watchMovement' import { WatchUpload } from './WatchUpload' import { VitalsExplorer } from './VitalsExplorer' import { - baselineBand, clock, dateInputValue, fmtDuration, formatRangeLabel, METRICS, metricStats, nightWindow, rangeWindow, SESSION_GAP_MS, splitSessions, STALE_MS, + baselineBand, clock, dateInputValue, fmtDuration, formatRangeLabel, METRICS, readingsInSessions, metricStats, nightWindow, rangeWindow, SESSION_GAP_MS, splitSessions, STALE_MS, type BiometricsRange, type MetricDef, type MetricKey, type RangeWindow, type Session, type VitalPoint, } from './biometricsLogic' @@ -82,17 +83,27 @@ function BiometricsBody({ sectionSwitch, now }: { sectionSwitch?: ReactNode, now const referenceQ = trpc.biometrics.getReferenceVitals.useQuery({ side, startDate, endDate, limit: 20000 }, { refetchInterval: 5 * 60_000 }) const watchHrvQ = trpc.biometrics.getReferenceSamples.useQuery({ side, startDate, endDate, metric: 'hrv_sdnn', limit: 20000 }, { refetchInterval: 5 * 60_000 }) + const watchRmssdQ = trpc.biometrics.getReferenceSamples.useQuery({ side, startDate, endDate, metric: 'hrv_rmssd', limit: 20000 }, { refetchInterval: 5 * 60_000 }) const watchBrQ = trpc.biometrics.getReferenceSamples.useQuery({ side, startDate, endDate, metric: 'breathing_rate', limit: 20000 }, { refetchInterval: 5 * 60_000 }) + const watchOxygenQ = trpc.biometrics.getReferenceSamples.useQuery({ side, startDate, endDate, metric: 'blood_oxygen', limit: 20000 }, { refetchInterval: 5 * 60_000 }) const referenceBr = (watchBrQ.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), value: r.value })) const referenceHrv = (watchHrvQ.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), value: r.value })) + const referenceRmssd = (watchRmssdQ.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), value: r.value })) + const referenceOxygen = (watchOxygenQ.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), value: r.value })) + const watchMovementQ = trpc.biometrics.getWatchMotionSeries.useQuery({ side, startDate, endDate }, + { enabled: win.end - win.start <= WATCH_MOTION_MAX_SERIES_MS, refetchInterval: 5 * 60_000 }) + const watchMovement = (watchMovementQ.data ?? []).map(r => ({ t: new Date(r.timestamp).getTime(), moving: r.movingSamples })) const rows = (vitalsQ.data ?? []) as VitalRow[] const points: VitalPoint[] = rows.map(r => ({ t: new Date(r.timestamp).getTime(), hr: r.heartRate, hrv: r.hrv, br: r.breathingRate, provenanceKey: r.provenance?.processingRunId ?? r.processingRunId ?? 'legacy_unknown', hrvMetricId: r.provenance?.hrvMetricId ?? null })) - const sessions = splitSessions(points) const bands = { hr: baselineBand(points, 'hr'), hrv: baselineBand(points, 'hrv'), br: baselineBand(points, 'br') } const reference = ((referenceQ.data ?? []) as Array<{ timestamp: Date | string, heartRate: number }>) .map(r => ({ t: new Date(r.timestamp).getTime(), hr: r.heartRate })).sort((a, b) => a.t - b.t) + const sessions = splitSessions(points.length + ? points + : [...new Set([...reference, ...referenceHrv, ...referenceRmssd, ...referenceBr, ...referenceOxygen].map(r => r.t))] + .sort((a, b) => a - b).map(t => ({ t, hr: null, hrv: null, br: null }))) const lastVitalAt = latestQ.data?.[0] ? new Date(latestQ.data[0].timestamp).getTime() : null const occupied = occupancyQ.data?.[side].occupied ?? false @@ -275,10 +286,10 @@ function BiometricsBody({ sectionSwitch, now }: { sectionSwitch?: ReactNode, now : sessions.length === 0 && !stall ?
No vitals in this range
: ( - + )} - {referenceHrv.length > 0 &&

Watch SDNN and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values.

} - 0} referenceHrv={referenceHrv.length > 0} bandLabel={bandLabel} stalled={!!stall} reference={reference.length > 0} /> + {(referenceHrv.length > 0 || referenceRmssd.length > 0) &&

Watch SDNN, Watch RMSSD and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values.

} + 0} referenceBr={referenceBr.length > 0} referenceRmssd={referenceRmssd.length > 0} referenceHrv={referenceHrv.length > 0} bandLabel={bandLabel} stalled={!!stall} reference={reference.length > 0} watchMovement={watchInWindows(watchMovement, sessions).length > 0} />
diff --git a/src/components/biometrics/VitalsChart.tsx b/src/components/biometrics/VitalsChart.tsx index 169270ffc..a8ddddd27 100644 --- a/src/components/biometrics/VitalsChart.tsx +++ b/src/components/biometrics/VitalsChart.tsx @@ -9,16 +9,22 @@ * shows one crosshair through all rows, snapped to the nearest reading. * Imported Apple Watch heart rate (`reference`) is drawn as a dashed line over * the heart-rate row so the two sensors can be compared night by night. + * Watch blood oxygen has no pod counterpart, so it gets a fourth row of its own, + * drawn only when a reading falls inside a session. + * Apple Watch wrist movement (`watchMovement`) is drawn as a line over the + * movement bars in the same 5-minute buckets, scaled to each night's own peak + * and broken at gaps. */ 'use client' import { useTimeFormat } from '@/src/providers/TimeFormatProvider' -import { useEffect, useId, useMemo, useRef, useState, type PointerEvent } from 'react' +import { useEffect, useId, useMemo, useRef, useState, type PointerEvent, type ReactNode } from 'react' import { - axisTicks, timeAtX, clampTo, clock, fmtDuration, fmtGap, layoutAxis, METRICS, nearestIndex, rollingMean, sessionHeader, + axisTicks, timeAtX, clampTo, clock, fmtDuration, fmtGap, layoutAxis, METRICS, nearestIndex, OXYGEN_ROW, readingsInSessions, rollingMean, sessionHeader, type MetricKey, type RangeWindow, type Session, } from './biometricsLogic' +import { splitRuns, WATCH_MAX_SCALE, watchBuckets, type WatchMinute } from '@/src/lib/watchMovement' const LABEL_W = 130 const GUTTER = 34 @@ -26,7 +32,8 @@ const ROW_H = 78 const ROW_GAP = 18 const HEAD_H = 24 const AXIS_H = 26 -const VITALS_H = METRICS.length * ROW_H + (METRICS.length - 1) * ROW_GAP +const ROWS = [...METRICS, OXYGEN_ROW] +const OXYGEN_INDEX = METRICS.length type Band = { lo: number, hi: number } | null @@ -61,8 +68,8 @@ function pathOf(xs: number[], ys: Array): string { const rowTop = (i: number) => HEAD_H + i * (ROW_H + ROW_GAP) const yOf = (i: number, v: number) => { - const [lo, hi] = METRICS[i].domain - return rowTop(i) + ROW_H - ((clampTo(v, METRICS[i].domain) - lo) / (hi - lo)) * ROW_H + const [lo, hi] = ROWS[i].domain + return rowTop(i) + ROW_H - ((clampTo(v, ROWS[i].domain) - lo) / (hi - lo)) * ROW_H } export interface ReferencePoint { t: number, hr: number } @@ -97,8 +104,12 @@ export function referenceRuns(points: T[], gapMs = REFE const REFERENCE_TOL_MS = 5 * 60_000 const REFERENCE_STROKE = 'var(--text-1)' +const WATCH_MOVEMENT_STROKE = 'var(--accent-cool)' +const MOVEMENT_H = 48 +/** The pod's movement bars span this long; the Watch line uses the same buckets so the two compare like for like. */ +const MOVEMENT_BUCKET_MS = 300_000 -export function VitalsChart({ sessions, stall, bands, reference = [], referenceHrv = [], referenceBr = [], movement = [], onSelectWindow }: { +export function VitalsChart({ sessions, stall, bands, reference = [], referenceHrv = [], referenceRmssd = [], referenceBr = [], referenceOxygen = [], movement = [], watchMovement = [], onSelectWindow }: { sessions: Session[] /** In bed with no vitals: from the last reading to now. */ stall: { start: number, end: number } | null @@ -106,11 +117,17 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH /** Imported Apple Watch heart rate, time-sorted. */ reference?: ReferencePoint[] referenceHrv?: Array<{ t: number, value: number }> + referenceRmssd?: Array<{ t: number, value: number }> referenceBr?: Array<{ t: number, value: number }> + referenceOxygen?: Array<{ t: number, value: number }> movement?: Array<{ bucketStart: Date, eventCount: number }> + /** Apple Watch moving readings per minute, by minute start. */ + watchMovement?: WatchMinute[] onSelectWindow?: (window: RangeWindow) => void }) { - const PLOT_H = VITALS_H + 76 + const rows = readingsInSessions(referenceOxygen, sessions).length > 0 ? ROWS : METRICS + const vitalsH = rows.length * ROW_H + (rows.length - 1) * ROW_GAP + const PLOT_H = vitalsH + 76 const timeFormat = useTimeFormat() const [wrapRef, wrapW] = useWidth() const hatchId = useId() @@ -129,6 +146,8 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH const ticks = axisTicks(axis, timeFormat) const multiNight = sessions.length > 1 && (sessions.at(-1)?.end ?? 0) - sessions[0].start > 24 * 60 * 60_000 const maxMovement = Math.max(1, ...movement.map(b => b.eventCount)) + // Only minutes inside a session shown are drawn or count toward a night's peak. + const watchScaled = useMemo(() => [...watchBuckets(watchMovement, sessions, MOVEMENT_BUCKET_MS)].map(([t, bucket]) => ({ t, ...bucket })).sort((a, b) => a.t - b.t), [watchMovement, sessions]) const onMove = (e: PointerEvent) => { const box = e.currentTarget.getBoundingClientRect() @@ -167,17 +186,19 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH ) })} {[ + { key: 'rmssd', points: referenceRmssd, row: 1, title: (value: number) => `Apple Watch RMSSD · ${Math.round(value)} ms` }, { key: 'hrv', points: referenceHrv, row: 1, title: (value: number) => `Apple Watch SDNN · ${Math.round(value)} ms` }, { key: 'br', points: referenceBr, row: 2, title: (value: number) => `Apple Watch breathing · ${value.toFixed(1)} br/min` }, + { key: 'oxygen', points: referenceOxygen, row: OXYGEN_INDEX, title: (value: number) => `Apple Watch blood oxygen · ${Math.round(value)}%` }, ].map(({ key, points, row, title }) => ( {referenceRuns(points.filter(p => p.t >= session.start && p.t <= session.end)).map((run, r) => ( {run.length > 1 && ( - axis.xOf(seg, p.t)), run.map(p => yOf(row, p.value)))} fill="none" stroke={REFERENCE_STROKE} strokeWidth={1} strokeDasharray="3 3" strokeOpacity={0.8} /> + axis.xOf(seg, p.t)), run.map(p => yOf(row, p.value)))} fill="none" stroke={key === 'rmssd' ? 'var(--status-warn)' : REFERENCE_STROKE} strokeWidth={1} strokeDasharray={key === 'rmssd' ? '6 3' : '3 3'} strokeOpacity={0.8} /> )} {run.map((p, i) => ( - + {title(p.value)} ))} @@ -220,19 +241,19 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH })()} ) - }), [axis, sessions, bands, smooth, referenceBySession, referenceHrv, referenceBr]) + }), [axis, sessions, bands, smooth, referenceBySession, referenceHrv, referenceRmssd, referenceBr, referenceOxygen]) return (
{/* Keep units and scales visible while the time axis pans underneath. */}
- {METRICS.flatMap((m, i) => m.ticks.map(v => ( + {rows.flatMap((m, i) => m.ticks.map(v => ( {v} )))} 0 - {maxMovement} + {maxMovement} {/* Row labels */} - {METRICS.map((m, i) => ( + {rows.map((m, i) => (
@@ -242,13 +263,13 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH
))} -
+
Movement changes / 5 min
{plotW > 0 && ( - + @@ -256,7 +277,7 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH {/* Gridlines + tick labels */} - {METRICS.map((m, i) => m.ticks.map(v => ( + {rows.map((m, i) => m.ticks.map(v => ( @@ -302,6 +323,14 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH const h = b.eventCount / maxMovement * 48 return {`${clock(t, timeFormat)} · ${b.eventCount} position changes`} }))} + {axis.segments.filter(s => s.kind === 'session').flatMap(seg => splitRuns(watchScaled.filter(m => m.t + MOVEMENT_BUCKET_MS > seg.start && m.t <= seg.end), MOVEMENT_BUCKET_MS).map((run) => { + const xs = run.map(m => axis.xOf(seg, clampTo(m.t + MOVEMENT_BUCKET_MS / 2, [seg.start, seg.end]))) + const ys = run.map(m => HEAD_H + PLOT_H - m.scaled / WATCH_MAX_SCALE * MOVEMENT_H) + const label = `Apple Watch movement · ${clock(run[0].t, timeFormat)}–${clock(run[run.length - 1].t + MOVEMENT_BUCKET_MS, timeFormat)}` + return run.length > 1 + ? {label} + : {`${label} · ${run[0].moving} moving`} + }))} {/* Globally spaced date labels for multiple nights, clock labels for one night. */} {ticks.map(tick => ( @@ -346,15 +375,17 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH )} {hoverSeg && [ + { key: 'rmssd', points: referenceRmssd, row: 1, label: (v: number) => `Watch RMSSD ${Math.round(v)} ms` }, { key: 'hrv', points: referenceHrv, row: 1, label: (v: number) => `Watch SDNN ${Math.round(v)} ms` }, { key: 'br', points: referenceBr, row: 2, label: (v: number) => `Watch breathing ${v.toFixed(1)} br/min` }, + { key: 'oxygen', points: referenceOxygen, row: OXYGEN_INDEX, label: (v: number) => `Watch blood oxygen ${Math.round(v)}%` }, ].map(({ key, points, row, label }) => { const sample = nearestReference(points.filter(p => p.t >= hoverSeg.start && p.t <= hoverSeg.end), hovered.t) if (!sample) return null const x = axis.xOf(hoverSeg, sample.t) const flip = x + 180 > plotW return ( - + {label(sample.value)} ) @@ -405,45 +436,79 @@ export function VitalsChart({ sessions, stall, bands, reference = [], referenceH ) } -export function VitalsLegend({ bandLabel, stalled, reference = false, referenceHrv = false, referenceBr = false }: { bandLabel: string, stalled: boolean, reference?: boolean, referenceHrv?: boolean, referenceBr?: boolean }) { +/** One device's marks: a legend row per device, so a line always reads as whose it is. */ +function LegendGroup({ device, children }: { device: string, children: ReactNode }) { return ( -
- - - 9-min average - - {referenceHrv && ( - - - Apple Watch HRV · SDNN - - )} - {referenceBr && ( - - - Apple Watch breathing + <> +
{device}
+
{children}
+ + ) +} + +export function VitalsLegend({ bandLabel, stalled, reference = false, referenceHrv = false, referenceRmssd = false, referenceBr = false, referenceOxygen = false, watchMovement = false }: { bandLabel: string, stalled: boolean, reference?: boolean, referenceHrv?: boolean, referenceRmssd?: boolean, referenceBr?: boolean, referenceOxygen?: boolean, watchMovement?: boolean }) { + return ( +
+ + + + 9-min average - )} - {reference && ( - - Apple Watch heart rate + + per minute - )} - - - per minute - - - - {bandLabel} - - {stalled && ( - - in bed, no vitals + + {bandLabel} + {stalled && ( + + + in bed, no vitals + + )} + + {(reference || referenceHrv || referenceRmssd || referenceBr || referenceOxygen || watchMovement) && ( + + {reference && ( + + + heart rate + + )} + {referenceHrv && ( + + + HRV · SDNN + + )} + {referenceRmssd && ( + + + HRV · RMSSD + + )} + {referenceBr && ( + + + breathing + + )} + {referenceOxygen && ( + + + blood oxygen + + )} + {watchMovement && ( + + + movement · scaled per night + + )} + )} -
+ ) } diff --git a/src/components/biometrics/WatchUpload.tsx b/src/components/biometrics/WatchUpload.tsx index 02e020b24..684893e64 100644 --- a/src/components/biometrics/WatchUpload.tsx +++ b/src/components/biometrics/WatchUpload.tsx @@ -6,7 +6,7 @@ import { Button, Modal } from '@/src/components/ds' import { trpc } from '@/src/utils/trpc' import { WATCH_REQUEST_TIMEOUT_MS } from '@/src/utils/watchUploadLimits' -interface ImportResult { stages: number, vitals: number, breathing: number, hrv: number, rejectedStageBatches: number, matchedStages: number, matchedVitals: number, matchedBreathing: number, matchedHrv: number } +interface ImportResult { stages: number, vitals: number, breathing: number, hrv: number, rmssd?: number, oxygen?: number, rejectedStageBatches: number, matchedStages: number, matchedVitals: number, matchedBreathing: number, matchedHrv: number, matchedRmssd?: number, matchedOxygen?: number } export function WatchUpload({ side, name }: { side: 'left' | 'right', name: string }) { const [open, setOpen] = useState(false) @@ -75,7 +75,7 @@ export function WatchUpload({ side, name }: { side: 'left' | 'right', name: stri

What this does

-

Imports Apple Watch heart rate, breathing rate, HRV and sleep stages for the selected period. Watch heart rate appears alongside the pod’s readings in Vitals so you can compare them; breathing rate, HRV and sleep stages are saved as reference data.

+

Imports Apple Watch heart rate, breathing rate, HRV, blood oxygen and sleep stages for the selected period. Watch heart rate, breathing rate and HRV appear alongside the pod’s readings in Vitals, and blood oxygen gets its own row. SDNN and RMSSD are separate overlays, shown only when available; sleep stages are saved as reference data.

This is a one-time import. Upload a fresh export whenever you want to add recent data. Previously imported records are skipped, and the pod’s own readings are preserved.

@@ -88,7 +88,7 @@ export function WatchUpload({ side, name }: { side: 'left' | 'right', name: stri Apple’s export guide
-

The full export is sent to your pod, which imports only Watch heart rate, breathing rate, HRV and sleep stages and removes the uploaded file after processing. ZIP or extracted export.xml, up to 512 MiB.

+

The full export is sent to your pod, which imports only Watch heart rate, breathing rate, HRV, blood oxygen and sleep stages and removes the uploaded file after processing. ZIP or extracted export.xml, up to 512 MiB.

Health export {/* Hidden native picker; the Choose file button opens it and is the keyboard and screen-reader target. */} @@ -122,9 +122,9 @@ export function WatchUpload({ side, name }: { side: 'left' | 'right', name: stri {progress !== null &&

{progress < 100 ? `Uploading… ${progress}%` : 'Importing on the pod… Keep this window open.'}

} {result && (
-

{`Imported ${result.vitals} new heart-rate, ${result.breathing} new breathing-rate and ${result.hrv} new HRV samples, and ${result.stages} new sleep-stage segments.`}

-

{`Found ${result.matchedVitals} heart-rate, ${result.matchedBreathing} breathing-rate and ${result.matchedHrv} HRV samples and ${result.matchedStages} stages in this period. Previously imported records are skipped.`}

- {result.rejectedStageBatches > 0 &&

{`${result.rejectedStageBatches} stage batches conflicted with stored stages and were skipped. Heart-rate, breathing-rate and HRV import completed.`}

} +

{`Imported ${result.vitals} new heart-rate, ${result.breathing} new breathing-rate, ${result.hrv} new SDNN, ${result.rmssd ?? 0} new RMSSD and ${result.oxygen ?? 0} new blood-oxygen samples, and ${result.stages} new sleep-stage segments.`}

+

{`Found ${result.matchedVitals} heart-rate, ${result.matchedBreathing} breathing-rate, ${result.matchedHrv} SDNN, ${result.matchedRmssd ?? 0} RMSSD and ${result.matchedOxygen ?? 0} blood-oxygen samples and ${result.matchedStages} stages in this period. Previously imported records are skipped.`}

+ {result.rejectedStageBatches > 0 &&

{`${result.rejectedStageBatches} stage batches conflicted with stored stages and were skipped. Heart-rate, breathing-rate, HRV and blood-oxygen import completed.`}

}
)} {error &&

{error}

} diff --git a/src/components/biometrics/biometricsLogic.ts b/src/components/biometrics/biometricsLogic.ts index 2312fb0ec..2bf4a9059 100644 --- a/src/components/biometrics/biometricsLogic.ts +++ b/src/components/biometrics/biometricsLogic.ts @@ -31,6 +31,9 @@ export const METRICS: readonly MetricDef[] = [ { key: 'br', label: 'Breathing', unit: 'br/min', domain: [10, 26], ticks: [12, 18, 24], color: 'var(--chart-vital-br)', digits: 1 }, ] +/** Watch-only: the pod has no oxygen sensor, so this row has no pod line and is drawn only when readings exist. */ +export const OXYGEN_ROW: Omit & { key: 'oxygen' } = { key: 'oxygen', label: 'Blood oxygen', unit: '%', domain: [80, 100], ticks: [80, 90, 100], color: 'var(--text-1)', digits: 0 } + export interface VitalPoint { t: number, hr: number | null, hrv: number | null, br: number | null, provenanceKey?: string, hrvMetricId?: string | null } export interface Session { @@ -106,6 +109,11 @@ export function splitSessions(points: VitalPoint[], gapMs = SESSION_GAP_MS): Ses return out } +/** Readings the chart can draw: only sessions are on the axis, so anything between them has no place. */ +export function readingsInSessions(readings: T[], sessions: Array<{ start: number, end: number }>): T[] { + return readings.filter(r => sessions.some(s => r.t >= s.start && r.t <= s.end)) +} + /** * Centred rolling mean over ±(window/2) minutes by timestamp, ignoring nulls. * A point whose own value is null stays null so gaps aren't painted over. diff --git a/src/components/biometrics/tests/BiometricsPage.test.tsx b/src/components/biometrics/tests/BiometricsPage.test.tsx index a72cac26d..5220ae906 100644 --- a/src/components/biometrics/tests/BiometricsPage.test.tsx +++ b/src/components/biometrics/tests/BiometricsPage.test.tsx @@ -21,6 +21,8 @@ const state = vi.hoisted(() => ({ shown: ['left', 'right'] as Array<'left' | 'right'>, reference: [] as Array<{ timestamp: Date, heartRate: number }>, referenceHrv: [] as Array<{ timestamp: Date, value: number }>, + referenceRmssd: [] as Array<{ timestamp: Date, value: number }> | undefined, + referenceOxygen: [] as Array<{ timestamp: Date, value: number }> | undefined, referenceOpts: undefined as Record | undefined, })) @@ -56,7 +58,8 @@ vi.mock('@/src/utils/trpc', () => ({ }, getFileCount: { useQuery: () => ({ data: { rawFiles: { left: 4, right: 4 }, totalSizeMB: 8.45 } }) }, getMovementBuckets: { useQuery: () => ({ data: [{ bucketStart: new Date(2026, 8, 27, 5), eventCount: 3 }] }) }, - getReferenceSamples: { useQuery: (input: { metric: string }) => ({ data: input.metric === 'hrv_sdnn' ? state.referenceHrv : [] }) }, + getReferenceSamples: { useQuery: (input: { metric: string }) => ({ data: input.metric === 'hrv_sdnn' ? state.referenceHrv : input.metric === 'hrv_rmssd' ? state.referenceRmssd : input.metric === 'blood_oxygen' ? state.referenceOxygen : [] }) }, + getWatchMotionSeries: { useQuery: () => ({ data: [] }) }, getReferenceVitals: { useQuery: (_input: unknown, opts: Record) => { state.referenceOpts = opts @@ -85,6 +88,8 @@ beforeAll(() => { beforeEach(() => { vi.useFakeTimers({ now: NOW, toFake: ['Date'] }) state.referenceHrv = [] + state.referenceRmssd = [] + state.referenceOxygen = [] state.occupied = true state.timeFormat = '12h' state.dataPath = { occupancy: { left: 'occupied', right: 'empty' } } @@ -185,7 +190,7 @@ describe('BiometricsPage', () => { vi.spyOn(HTMLElement.prototype, 'getBoundingClientRect').mockReturnValue({ x: 0, y: 0, left: 0, top: 0, width: 900, height: 300, right: 900, bottom: 300, toJSON: () => ({}) }) render() expect(screen.getAllByTestId('vitals-reference')).toHaveLength(1) - expect(screen.getByText('Apple Watch heart rate')).toBeTruthy() + expect(screen.getByText('Apple Watch').nextElementSibling?.textContent).toContain('heart rate') } finally { state.reference = [] @@ -307,8 +312,48 @@ it('clears session focus when switching people and ignores clearing the date fie it('explains SDNN comparability only when Watch HRV is overlaid', () => { const view = render() - expect(screen.queryByText(/Watch SDNN and sleepypod/)).toBeNull() + expect(screen.queryByText(/Watch SDNN, Watch RMSSD and sleepypod/)).toBeNull() state.referenceHrv = [{ timestamp: new Date(LAST_VITAL), value: 30 }] view.rerender() - expect(screen.getByText(/Watch SDNN and sleepypod/)).toBeTruthy() + expect(screen.getByText(/Watch SDNN, Watch RMSSD and sleepypod/)).toBeTruthy() +}) + +it('draws a Watch-only night and names RMSSD when the pod recorded nothing', () => { + state.vitals.mockReturnValue({ data: [], isLoading: false }) + state.referenceRmssd = [{ timestamp: new Date(LAST_VITAL), value: 32 }] + render() + expect(screen.queryByText('No vitals in this range')).toBeNull() + expect(screen.getByText('HRV · RMSSD')).toBeTruthy() + expect(screen.getByText(/Watch SDNN, Watch RMSSD and sleepypod/)).toBeTruthy() +}) + +it('draws a Watch-only night from blood oxygen alone', () => { + state.vitals.mockReturnValue({ data: [], isLoading: false }) + state.referenceOxygen = [{ timestamp: new Date(LAST_VITAL), value: 96 }] + render() + expect(screen.queryByText('No vitals in this range')).toBeNull() + expect(screen.getByText('blood oxygen')).toBeTruthy() +}) + +it('names blood oxygen only when a reading falls inside a session', () => { + state.referenceOxygen = [{ timestamp: new Date(LAST_VITAL + 3 * 60 * 60_000), value: 96 }] + const view = render() + expect(screen.queryByText('blood oxygen')).toBeNull() + state.referenceOxygen = [{ timestamp: new Date(LAST_VITAL), value: 96 }] + view.rerender() + expect(screen.getByText('blood oxygen')).toBeTruthy() +}) + +it('keeps the pod chart while Watch blood oxygen has not loaded', () => { + state.referenceOxygen = undefined + render() + expect(screen.queryByText('No vitals in this range')).toBeNull() + expect(screen.queryByText('blood oxygen')).toBeNull() +}) + +it('keeps the pod chart while Watch RMSSD has not loaded', () => { + state.referenceRmssd = undefined + render() + expect(screen.queryByText('No vitals in this range')).toBeNull() + expect(screen.queryByText('HRV · RMSSD')).toBeNull() }) diff --git a/src/components/biometrics/tests/DataPage.test.tsx b/src/components/biometrics/tests/DataPage.test.tsx index 9fcd12692..aa6ac40f1 100644 --- a/src/components/biometrics/tests/DataPage.test.tsx +++ b/src/components/biometrics/tests/DataPage.test.tsx @@ -31,6 +31,7 @@ vi.mock('@/src/utils/trpc', () => ({ getReferenceVitals: { useQuery: () => ({ data: [] }) }, getMovementBuckets: { useQuery: () => ({ data: [] }) }, getReferenceSamples: { useQuery: () => ({ data: [] }) }, + getWatchMotionSeries: { useQuery: () => ({ data: [] }) }, getSleepRecords: { useQuery: state.sleep }, getSleepStages: { useQuery: state.stages }, getVitals: { useQuery: state.vitals }, diff --git a/src/components/biometrics/tests/VitalsChart.test.tsx b/src/components/biometrics/tests/VitalsChart.test.tsx index ef59d62fb..80b7a006d 100644 --- a/src/components/biometrics/tests/VitalsChart.test.tsx +++ b/src/components/biometrics/tests/VitalsChart.test.tsx @@ -109,9 +109,30 @@ describe('reference helpers', () => { describe('VitalsLegend', () => { it('lists the Watch series only when present', () => { const { rerender } = render() - expect(screen.queryByText('Apple Watch heart rate')).toBeNull() + expect(screen.queryByText('Apple Watch')).toBeNull() rerender() - expect(screen.getByText('Apple Watch heart rate')).toBeTruthy() + expect(screen.getByText('Apple Watch')).toBeTruthy() + }) + + it('keeps each series under the device that measured it', () => { + render() + const pod = screen.getByText('Pod').nextElementSibling?.textContent + const watch = screen.getByText('Apple Watch').nextElementSibling?.textContent + for (const series of ['9-min average', 'per minute', 'middle 50%', 'in bed, no vitals']) { + expect(pod).toContain(series) + expect(watch).not.toContain(series) + } + for (const series of ['heart rate', 'HRV · SDNN', 'HRV · RMSSD', 'breathing']) { + expect(watch).toContain(series) + expect(pod).not.toContain(series) + } + }) + + it('names RMSSD only when it is overlaid', () => { + const { rerender } = render() + expect(screen.queryByText('HRV · RMSSD')).toBeNull() + rerender() + expect(screen.getByText('HRV · RMSSD')).toBeTruthy() }) }) @@ -261,6 +282,17 @@ it.each(['referenceHrv', 'referenceBr'] as const)('joins nearby %s samples but l expect(screen.getAllByTestId(`vitals-watch-${key}`)).toHaveLength(4) }) +it('labels Watch RMSSD on the dot and on hover, apart from SDNN', () => { + withWidth() + const { container } = render() + expect(screen.getByTestId('vitals-watch-rmssd').textContent).toBe('Apple Watch RMSSD · 32 ms') + const overlay = container.querySelector('rect[style*="touch-action"]') as SVGRectElement + vi.spyOn(overlay, 'getBoundingClientRect').mockReturnValue({ left: 0 } as DOMRect) + fireEvent.pointerMove(overlay, { clientX: 2, clientY: 50 }) + expect(screen.getByTestId('vitals-watch-rmssd-hover').textContent).toBe('Watch RMSSD 32 ms') + expect(screen.getByTestId('vitals-watch-hrv-hover').textContent).toBe('Watch SDNN 48 ms') +}) + it('exposes Watch SDNN and breathing through the interaction overlay, without bridging gaps', () => { withWidth() const { container, rerender } = render( @@ -289,3 +321,110 @@ it('exposes Watch SDNN and breathing through the interaction overlay, without br expect(screen.queryByTestId('vitals-watch-hrv-hover')).toBeNull() expect(screen.queryByTestId('vitals-watch-br-hover')).toBeNull() }) + +it('overlays RMSSD separately while retaining SDNN and breathing and breaking gaps', () => { + withWidth() + const referenceRmssd = [{ t: START, value: 32 }, { t: START + MIN, value: 34 }, { t: START + 60 * MIN, value: 30 }] + render() + expect(screen.getAllByTestId('vitals-watch-rmssd')).toHaveLength(3) + expect(screen.getAllByTestId('vitals-watch-rmssd-line')).toHaveLength(1) + expect(screen.getByTestId('vitals-watch-rmssd-line').getAttribute('stroke-dasharray')).toBe('6 3') + expect(screen.getByTestId('vitals-watch-hrv')).toBeTruthy() + expect(screen.getByTestId('vitals-watch-br')).toBeTruthy() +}) + +describe('blood oxygen row', () => { + const inSession = [{ t: START, value: 96 }, { t: START + MIN, value: 94 }, { t: START + 60 * MIN, value: 91 }] + const between = [{ t: START + 4 * 60 * MIN, value: 97 }] + const height = () => Number.parseInt(screen.getByTestId('vitals-chart').style.height) + + it('adds a row of its own, breaking the line across sampling gaps', () => { + withWidth() + render() + expect(screen.getByText('Blood oxygen')).toBeTruthy() + expect(screen.getAllByTestId('vitals-watch-oxygen')).toHaveLength(3) + expect(screen.getAllByTestId('vitals-watch-oxygen-line')).toHaveLength(1) + expect(screen.getByRole('img').getAttribute('aria-label')).toContain('blood oxygen') + expect(screen.getAllByTestId('vitals-watch-oxygen')[0].textContent).toBe('Apple Watch blood oxygen · 96%') + }) + + it('leaves the chart as it was with no readings, or only readings between sessions', () => { + withWidth() + const { rerender } = render() + const without = height() + expect(screen.queryByText('Blood oxygen')).toBeNull() + rerender() + expect(screen.queryByText('Blood oxygen')).toBeNull() + expect(screen.queryByTestId('vitals-watch-oxygen')).toBeNull() + expect(height()).toBe(without) + rerender() + expect(height()).toBe(without + 96) + }) + + it('moves the movement row below it instead of drawing over it', () => { + withWidth() + const { rerender } = render() + const top = () => Number.parseInt(screen.getByText('Movement').parentElement?.style.top ?? '') + const before = top() + rerender() + expect(top()).toBe(before + 96) + }) + + it('pins a reading below the row to its bottom edge and keeps the real value on hover', () => { + withWidth() + render() + const [low, floor] = screen.getAllByTestId('vitals-watch-oxygen') + expect(low.getAttribute('cy')).toBe(floor.getAttribute('cy')) + fireEvent.pointerMove(screen.getByTestId('vitals-chart').querySelector('rect[fill="transparent"]') as Element, { clientX: 8 }) + expect(screen.getByTestId('vitals-watch-oxygen-hover').textContent).toBe('Watch blood oxygen 72%') + }) + + it('names blood oxygen under the Watch only when the row is drawn', () => { + const { rerender } = render() + expect(screen.queryByText('blood oxygen')).toBeNull() + rerender() + expect(screen.getByText('Apple Watch').nextElementSibling?.textContent).toContain('blood oxygen') + }) +}) + +describe('VitalsChart Apple Watch movement overlay', () => { + it('draws nothing extra without Watch movement', () => { + withWidth() + const { container: plain } = render() + const { container: empty } = render() + // Same markup apart from the per-instance hatch pattern id. + const strip = (html: string) => html.replace(/_r_\w+_|«\w+»|:r\w+:/g, '') + expect(strip(empty.innerHTML)).toBe(strip(plain.innerHTML)) + expect(screen.queryAllByTestId('watch-movement-line')).toHaveLength(0) + }) + + it('sums into the pod\'s 5-minute buckets, breaks the line at missing buckets, dots isolated ones and ignores minutes outside sessions', () => { + withWidth() + const watchMovement = [ + // Before the first session: outside the night, never drawn or counted. + { t: START - 30 * MIN, moving: 500 }, + { t: START, moving: 2 }, { t: START + MIN, moving: 4 }, { t: START + 6 * MIN, moving: 1 }, { t: START + 11 * MIN, moving: 20 }, + // A bucket without bins: a new run, and this one stands alone. + { t: START + 20 * MIN, moving: 5 }, + { t: START + 30 * MIN, moving: 3 }, { t: START + 35 * MIN, moving: 2 }, + // Between sessions. + { t: START + 4 * 60 * MIN, moving: 50 }, + ] + render() + const lines = screen.getAllByTestId('watch-movement-line') + expect(lines).toHaveLength(2) + expect(lines[0].getAttribute('d')?.match(/[ML]/g)).toEqual(['M', 'L', 'L']) + expect(lines[0].getAttribute('stroke')).toBe('var(--accent-cool)') + expect(screen.getAllByTestId('watch-movement-dot')).toHaveLength(1) + // Scaled to the in-session peak, so the out-of-session 500 does not flatten the night. + const ys = (lines[0].getAttribute('d') ?? '').split(/[ML]/).filter(Boolean).map(p => Number(p.split(' ')[1])) + expect(Math.max(...ys) - Math.min(...ys)).toBeGreaterThan(20) + }) + + it('lists Watch movement in the legend only when shown', () => { + const { rerender } = render() + expect(screen.queryByTestId('legend-watch-movement')).toBeNull() + rerender() + expect(screen.getByTestId('legend-watch-movement').textContent).toBe('movement · scaled per night') + }) +}) diff --git a/src/components/biometrics/tests/WatchUpload.test.tsx b/src/components/biometrics/tests/WatchUpload.test.tsx index 71ed84ad4..20d13b89a 100644 --- a/src/components/biometrics/tests/WatchUpload.test.tsx +++ b/src/components/biometrics/tests/WatchUpload.test.tsx @@ -32,8 +32,8 @@ it('uploads for the named sleeper, reports partial conflicts, and refreshes char xhr.onload?.() }) await waitFor(() => expect(invalidate).toHaveBeenCalled()) - expect(screen.getByText(/Imported 12 new heart-rate, 5 new breathing-rate and 2 new HRV samples/)).toBeTruthy() - expect(screen.getByText(/Found 14 heart-rate, 6 breathing-rate and 2 HRV samples/)).toBeTruthy() + expect(screen.getByText(/Imported 12 new heart-rate, 5 new breathing-rate, 2 new SDNN, 0 new RMSSD and 0 new blood-oxygen samples/)).toBeTruthy() + expect(screen.getByText(/Found 14 heart-rate, 6 breathing-rate, 2 SDNN, 0 RMSSD and 0 blood-oxygen samples/)).toBeTruthy() expect(screen.getByText(/stage batches conflicted/)).toBeTruthy() }) diff --git a/src/components/biometrics/tests/biometricsLogic.test.ts b/src/components/biometrics/tests/biometricsLogic.test.ts index bf3af2cab..6e98273e4 100644 --- a/src/components/biometrics/tests/biometricsLogic.test.ts +++ b/src/components/biometrics/tests/biometricsLogic.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest' import { axisTicks, BREAK_PX, baselineBand, clampTo, fmtDuration, fmtGap, formatRangeLabel, layoutAxis, metricStats, nearestIndex, - nightWindow, percentile, rangeWindow, rollingMean, segmentTicks, sessionHeader, splitSessions, STALL_PX, + nightWindow, percentile, rangeWindow, readingsInSessions, rollingMean, segmentTicks, sessionHeader, splitSessions, STALL_PX, type VitalPoint, } from '../biometricsLogic' @@ -67,6 +67,15 @@ describe('sessions', () => { }) }) +describe('readings on the axis', () => { + it('keeps readings inside a session, edges included, and drops those between sessions', () => { + const sessions = [{ start: 100, end: 200 }, { start: 400, end: 500 }] + const readings = [99, 100, 200, 201, 300, 400, 501].map(t => ({ t })) + expect(readingsInSessions(readings, sessions).map(r => r.t)).toEqual([100, 200, 400]) + expect(readingsInSessions(readings, [])).toEqual([]) + }) +}) + describe('formatting', () => { it('formats durations and gaps', () => { expect(fmtDuration(236 * MIN)).toBe('3h 56m') diff --git a/src/db/biometrics-migrations/0034_reference_sample_device.sql b/src/db/biometrics-migrations/0034_reference_sample_device.sql new file mode 100644 index 000000000..f6b7e73fa --- /dev/null +++ b/src/db/biometrics-migrations/0034_reference_sample_device.sql @@ -0,0 +1,3 @@ +ALTER TABLE `reference_samples` ADD `end_timestamp` integer;--> statement-breakpoint +ALTER TABLE `reference_samples` ADD `device` text;--> statement-breakpoint +ALTER TABLE `reference_samples` ADD `algorithm` text; \ No newline at end of file diff --git a/src/db/biometrics-migrations/0035_watch_motion_captures.sql b/src/db/biometrics-migrations/0035_watch_motion_captures.sql new file mode 100644 index 000000000..78f5c8ed9 --- /dev/null +++ b/src/db/biometrics-migrations/0035_watch_motion_captures.sql @@ -0,0 +1,14 @@ +CREATE TABLE `watch_motion_captures` ( + `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, + `side` text NOT NULL, + `version` text NOT NULL, + `recorded_from` integer NOT NULL, + `recorded_to` integer NOT NULL, + `bins` integer NOT NULL, + `trimmed_bins` integer NOT NULL, + `sha256` text NOT NULL, + `file` text NOT NULL, + `created_at` integer NOT NULL +); +--> statement-breakpoint +CREATE UNIQUE INDEX `uq_watch_motion_captures_side_recorded_from` ON `watch_motion_captures` (`side`,`recorded_from`); \ No newline at end of file diff --git a/src/db/biometrics-migrations/meta/0034_snapshot.json b/src/db/biometrics-migrations/meta/0034_snapshot.json new file mode 100644 index 000000000..502c2924c --- /dev/null +++ b/src/db/biometrics-migrations/meta/0034_snapshot.json @@ -0,0 +1,3165 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "59d256c2-02fe-4f8c-9e57-85b2c3e148dc", + "prevId": "b4b77feb-8340-42a9-a712-2f84b7960aaa", + "tables": { + "ambient_light": { + "name": "ambient_light", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "lux": { + "name": "lux", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_ambient_light_timestamp": { + "name": "idx_ambient_light_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "bed_temp": { + "name": "bed_temp", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "ambient_temp": { + "name": "ambient_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mcu_temp": { + "name": "mcu_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "humidity": { + "name": "humidity", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_outer_temp": { + "name": "left_outer_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_center_temp": { + "name": "left_center_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_inner_temp": { + "name": "left_inner_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_outer_temp": { + "name": "right_outer_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_center_temp": { + "name": "right_center_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_inner_temp": { + "name": "right_inner_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_bed_temp_timestamp": { + "name": "idx_bed_temp_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_backtest_jobs": { + "name": "biometric_backtest_jobs", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "experiment_id": { + "name": "experiment_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "request_hash": { + "name": "request_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "input": { + "name": "input", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "state": { + "name": "state", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "lease_owner": { + "name": "lease_owner", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "lease_expires_at_ms": { + "name": "lease_expires_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "fencing_token": { + "name": "fencing_token", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "attempt": { + "name": "attempt", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "heartbeat_at_ms": { + "name": "heartbeat_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "progress": { + "name": "progress", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "cancellation_requested_at_ms": { + "name": "cancellation_requested_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error": { + "name": "error", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "updated_at_ms": { + "name": "updated_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "biometric_backtest_jobs_idempotency_key_unique": { + "name": "biometric_backtest_jobs_idempotency_key_unique", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_job_state_created": { + "name": "idx_biometric_job_state_created", + "columns": [ + "state", + "created_at_ms" + ], + "isUnique": false + }, + "idx_biometric_job_experiment": { + "name": "idx_biometric_job_experiment", + "columns": [ + "experiment_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_backtest_jobs_experiment_id_biometric_experiments_id_fk": { + "name": "biometric_backtest_jobs_experiment_id_biometric_experiments_id_fk", + "tableFrom": "biometric_backtest_jobs", + "tableTo": "biometric_experiments", + "columnsFrom": [ + "experiment_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_backtest_results": { + "name": "biometric_backtest_results", + "columns": { + "job_id": { + "name": "job_id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "fencing_token": { + "name": "fencing_token", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "report": { + "name": "report", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "completed_at_ms": { + "name": "completed_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "released_at_ms": { + "name": "released_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": { + "biometric_backtest_results_job_id_biometric_backtest_jobs_id_fk": { + "name": "biometric_backtest_results_job_id_biometric_backtest_jobs_id_fk", + "tableFrom": "biometric_backtest_results", + "tableTo": "biometric_backtest_jobs", + "columnsFrom": [ + "job_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_dataset_raw_artifacts": { + "name": "biometric_dataset_raw_artifacts", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "dataset_id": { + "name": "dataset_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "artifact_hash": { + "name": "artifact_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "position": { + "name": "position", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "released_at_ms": { + "name": "released_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_biometric_dataset_raw_identity": { + "name": "idx_biometric_dataset_raw_identity", + "columns": [ + "dataset_id", + "artifact_hash" + ], + "isUnique": true + }, + "idx_biometric_dataset_raw_position": { + "name": "idx_biometric_dataset_raw_position", + "columns": [ + "dataset_id", + "position" + ], + "isUnique": true + }, + "idx_biometric_raw_artifact_references": { + "name": "idx_biometric_raw_artifact_references", + "columns": [ + "artifact_hash", + "released_at_ms" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_dataset_raw_artifacts_dataset_id_biometric_datasets_id_fk": { + "name": "biometric_dataset_raw_artifacts_dataset_id_biometric_datasets_id_fk", + "tableFrom": "biometric_dataset_raw_artifacts", + "tableTo": "biometric_datasets", + "columnsFrom": [ + "dataset_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "biometric_dataset_raw_artifacts_artifact_hash_biometric_raw_artifacts_content_hash_fk": { + "name": "biometric_dataset_raw_artifacts_artifact_hash_biometric_raw_artifacts_content_hash_fk", + "tableFrom": "biometric_dataset_raw_artifacts", + "tableTo": "biometric_raw_artifacts", + "columnsFrom": [ + "artifact_hash" + ], + "columnsTo": [ + "content_hash" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_datasets": { + "name": "biometric_datasets", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subject_id": { + "name": "subject_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "request_hash": { + "name": "request_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "manifest": { + "name": "manifest", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "snapshot": { + "name": "snapshot", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "byte_length": { + "name": "byte_length", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "released_at_ms": { + "name": "released_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "biometric_datasets_idempotency_key_unique": { + "name": "biometric_datasets_idempotency_key_unique", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_dataset_side_created": { + "name": "idx_biometric_dataset_side_created", + "columns": [ + "side", + "created_at_ms", + "id" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_experiments": { + "name": "biometric_experiments", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "request_hash": { + "name": "request_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "dataset_id": { + "name": "dataset_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "protocol": { + "name": "protocol", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "protocol_hash": { + "name": "protocol_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "holdout_accesses": { + "name": "holdout_accesses", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "biometric_experiments_idempotency_key_unique": { + "name": "biometric_experiments_idempotency_key_unique", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_experiment_dataset": { + "name": "idx_biometric_experiment_dataset", + "columns": [ + "dataset_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_experiments_dataset_id_biometric_datasets_id_fk": { + "name": "biometric_experiments_dataset_id_biometric_datasets_id_fk", + "tableFrom": "biometric_experiments", + "tableTo": "biometric_datasets", + "columnsFrom": [ + "dataset_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_holdout_accesses": { + "name": "biometric_holdout_accesses", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "job_id": { + "name": "job_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start_ms": { + "name": "start_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end_ms": { + "name": "end_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "accessed_at_ms": { + "name": "accessed_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_biometric_holdout_side_start": { + "name": "idx_biometric_holdout_side_start", + "columns": [ + "side", + "start_ms" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_holdout_accesses_job_id_biometric_backtest_jobs_id_fk": { + "name": "biometric_holdout_accesses_job_id_biometric_backtest_jobs_id_fk", + "tableFrom": "biometric_holdout_accesses", + "tableTo": "biometric_backtest_jobs", + "columnsFrom": [ + "job_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_processing_runs": { + "name": "biometric_processing_runs", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "kind": { + "name": "kind", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "bundle": { + "name": "bundle", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "config_hash": { + "name": "config_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "calibration_hash": { + "name": "calibration_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "input_identity": { + "name": "input_identity", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "started_at_ms": { + "name": "started_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "ended_at_ms": { + "name": "ended_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_biometric_processing_side_start": { + "name": "idx_biometric_processing_side_start", + "columns": [ + "side", + "started_at_ms" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_raw_artifacts": { + "name": "biometric_raw_artifacts", + "columns": { + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "compressed_bytes": { + "name": "compressed_bytes", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "expanded_bytes": { + "name": "expanded_bytes", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "released_at_ms": { + "name": "released_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "biometric_raw_artifacts_name_unique": { + "name": "biometric_raw_artifacts_name_unique", + "columns": [ + "name" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_raw_sources": { + "name": "biometric_raw_sources", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "source_name": { + "name": "source_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "artifact_hash": { + "name": "artifact_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "descriptor": { + "name": "descriptor", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "inventory_version": { + "name": "inventory_version", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "inventory": { + "name": "inventory", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "first_event_ms": { + "name": "first_event_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "last_event_ms": { + "name": "last_event_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "inspected_at_ms": { + "name": "inspected_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "unavailable_at_ms": { + "name": "unavailable_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_biometric_raw_source_identity": { + "name": "idx_biometric_raw_source_identity", + "columns": [ + "source_name", + "artifact_hash", + "inventory_version" + ], + "isUnique": true + }, + "idx_biometric_raw_source_window": { + "name": "idx_biometric_raw_source_window", + "columns": [ + "first_event_ms", + "last_event_ms" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_runtime_configs": { + "name": "biometric_runtime_configs", + "columns": { + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "generation": { + "name": "generation", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "resolved_hash": { + "name": "resolved_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "payload": { + "name": "payload", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "boundary": { + "name": "boundary", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_runtime_config": { + "name": "uq_biometric_runtime_config", + "columns": [ + "side", + "generation" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_runtime_receipts": { + "name": "biometric_runtime_receipts", + "columns": { + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "component": { + "name": "component", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "generation": { + "name": "generation", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "applied_hash": { + "name": "applied_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "effective_sample_time_ms": { + "name": "effective_sample_time_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "state": { + "name": "state", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "error": { + "name": "error", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heartbeat_at_ms": { + "name": "heartbeat_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_runtime_receipt": { + "name": "uq_biometric_runtime_receipt", + "columns": [ + "side", + "component", + "generation" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_shadow_runs": { + "name": "biometric_shadow_runs", + "columns": { + "worker_receipt": { + "name": "worker_receipt", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "worker_receipt_hash": { + "name": "worker_receipt_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "plan_hash": { + "name": "plan_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "plan": { + "name": "plan", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "state": { + "name": "state", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "attempt_id": { + "name": "attempt_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "lease_until_ms": { + "name": "lease_until_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heartbeat_at_ms": { + "name": "heartbeat_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "ended_at_ms": { + "name": "ended_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "reason": { + "name": "reason", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "point_count": { + "name": "point_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "byte_count": { + "name": "byte_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + } + }, + "indexes": { + "biometric_shadow_runs_idempotency_key_unique": { + "name": "biometric_shadow_runs_idempotency_key_unique", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_shadow_side_state": { + "name": "idx_biometric_shadow_side_state", + "columns": [ + "side", + "state" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_shadow_samples": { + "name": "biometric_shadow_samples", + "columns": { + "run_id": { + "name": "run_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sequence": { + "name": "sequence", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp_ms": { + "name": "timestamp_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "payload": { + "name": "payload", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "byte_length": { + "name": "byte_length", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_shadow_sample": { + "name": "uq_biometric_shadow_sample", + "columns": [ + "run_id", + "sequence" + ], + "isUnique": true + }, + "idx_biometric_shadow_sample_time": { + "name": "idx_biometric_shadow_sample_time", + "columns": [ + "run_id", + "timestamp_ms" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_shadow_samples_run_id_biometric_shadow_runs_id_fk": { + "name": "biometric_shadow_samples_run_id_biometric_shadow_runs_id_fk", + "tableFrom": "biometric_shadow_samples", + "tableTo": "biometric_shadow_runs", + "columnsFrom": [ + "run_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "calibration_profiles": { + "name": "calibration_profiles", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sensor_type": { + "name": "sensor_type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'pending'" + }, + "parameters": { + "name": "parameters", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "quality_score": { + "name": "quality_score", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "source_window_start": { + "name": "source_window_start", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "source_window_end": { + "name": "source_window_end", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "samples_used": { + "name": "samples_used", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error_message": { + "name": "error_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "expires_at": { + "name": "expires_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_cal_type_status": { + "name": "idx_cal_type_status", + "columns": [ + "sensor_type", + "status" + ], + "isUnique": false + }, + "uq_cal_side_type_active": { + "name": "uq_cal_side_type_active", + "columns": [ + "side", + "sensor_type" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "calibration_runs": { + "name": "calibration_runs", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sensor_type": { + "name": "sensor_type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "parameters": { + "name": "parameters", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "quality_score": { + "name": "quality_score", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "source_window_start": { + "name": "source_window_start", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "source_window_end": { + "name": "source_window_end", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "samples_used": { + "name": "samples_used", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error_message": { + "name": "error_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "duration_ms": { + "name": "duration_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "triggered_by": { + "name": "triggered_by", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_cal_runs_side_type": { + "name": "idx_cal_runs_side_type", + "columns": [ + "side", + "sensor_type", + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "cap_sense_frames": { + "name": "cap_sense_frames", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "zones": { + "name": "zones", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max": { + "name": "max", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "mean": { + "name": "mean", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "spread": { + "name": "spread", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "peak_zone": { + "name": "peak_zone", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "frame_count": { + "name": "frame_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status_counts": { + "name": "status_counts", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_cap_sense_frames_side_ts": { + "name": "uq_cap_sense_frames_side_ts", + "columns": [ + "side", + "timestamp" + ], + "isUnique": true + }, + "idx_cap_sense_frames_timestamp": { + "name": "idx_cap_sense_frames_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "flash_write_samples": { + "name": "flash_write_samples", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "boot_id": { + "name": "boot_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sectors_written": { + "name": "sectors_written", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_flash_write_samples_timestamp": { + "name": "idx_flash_write_samples_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "flow_readings": { + "name": "flow_readings", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "left_flowrate_cd": { + "name": "left_flowrate_cd", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_flowrate_cd": { + "name": "right_flowrate_cd", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_pump_rpm": { + "name": "left_pump_rpm", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_pump_rpm": { + "name": "right_pump_rpm", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_flow_readings_timestamp": { + "name": "idx_flow_readings_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "freezer_temp": { + "name": "freezer_temp", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "ambient_temp": { + "name": "ambient_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heatsink_temp": { + "name": "heatsink_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_water_temp": { + "name": "left_water_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_water_temp": { + "name": "right_water_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_freezer_temp_timestamp": { + "name": "idx_freezer_temp_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "health_runs": { + "name": "health_runs", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "check_id": { + "name": "check_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "detail": { + "name": "detail", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "started_at": { + "name": "started_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "last_seen_at": { + "name": "last_seen_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_health_runs_check_started": { + "name": "idx_health_runs_check_started", + "columns": [ + "check_id", + "started_at" + ], + "isUnique": false + }, + "idx_health_runs_last_seen": { + "name": "idx_health_runs_last_seen", + "columns": [ + "last_seen_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "heartbeats": { + "name": "heartbeats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "beats": { + "name": "beats", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "quality": { + "name": "quality", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_heartbeats_side_timestamp": { + "name": "uq_heartbeats_side_timestamp", + "columns": [ + "side", + "timestamp" + ], + "isUnique": true + }, + "idx_heartbeats_timestamp": { + "name": "idx_heartbeats_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "movement": { + "name": "movement", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "total_movement": { + "name": "total_movement", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_movement_side_timestamp": { + "name": "idx_movement_side_timestamp", + "columns": [ + "side", + "timestamp" + ], + "isUnique": false + }, + "idx_movement_timestamp": { + "name": "idx_movement_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "prime_events": { + "name": "prime_events", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_prime_events_timestamp": { + "name": "idx_prime_events_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pump_alerts": { + "name": "pump_alerts", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rpm": { + "name": "rpm", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "flowrate_cd": { + "name": "flowrate_cd", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "duration_seconds": { + "name": "duration_seconds", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "action": { + "name": "action", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'none'" + }, + "restore_target_temperature": { + "name": "restore_target_temperature", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "restore_duration_seconds": { + "name": "restore_duration_seconds", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "acknowledged_at": { + "name": "acknowledged_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "dismissed_at": { + "name": "dismissed_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_pump_alerts_timestamp": { + "name": "idx_pump_alerts_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + }, + "idx_pump_alerts_acknowledged": { + "name": "idx_pump_alerts_acknowledged", + "columns": [ + "acknowledged_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_imports": { + "name": "reference_imports", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "family_id": { + "name": "family_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "revision": { + "name": "revision", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "supersedes_import_id": { + "name": "supersedes_import_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "source": { + "name": "source", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "adapter_version": { + "name": "adapter_version", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subject_id": { + "name": "subject_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "time_policy": { + "name": "time_policy", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "summary": { + "name": "summary", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "overlap_policy": { + "name": "overlap_policy", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'exclude_conflicts'" + }, + "accepted_count": { + "name": "accepted_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "rejected_count": { + "name": "rejected_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "deleted_at_ms": { + "name": "deleted_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_import_active_root": { + "name": "uq_reference_import_active_root", + "columns": [ + "content_hash" + ], + "isUnique": true, + "where": "\"reference_imports\".\"deleted_at_ms\" IS NULL AND \"reference_imports\".\"supersedes_import_id\" IS NULL" + }, + "uq_reference_import_active_correction": { + "name": "uq_reference_import_active_correction", + "columns": [ + "content_hash", + "supersedes_import_id" + ], + "isUnique": true, + "where": "\"reference_imports\".\"deleted_at_ms\" IS NULL" + }, + "uq_reference_import_revision": { + "name": "uq_reference_import_revision", + "columns": [ + "family_id", + "revision" + ], + "isUnique": true + }, + "idx_reference_import_side_created": { + "name": "idx_reference_import_side_created", + "columns": [ + "side", + "created_at_ms", + "id" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_measurements": { + "name": "reference_measurements", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "import_id": { + "name": "import_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "record_key": { + "name": "record_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "metric": { + "name": "metric", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "stage": { + "name": "stage", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "unit": { + "name": "unit", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start_ms": { + "name": "start_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end_ms": { + "name": "end_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "temporal_kind": { + "name": "temporal_kind", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "aggregation": { + "name": "aggregation", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "window_ms": { + "name": "window_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "quality": { + "name": "quality", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "scorable": { + "name": "scorable", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "exclusions": { + "name": "exclusions", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "original": { + "name": "original", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_measurement_key": { + "name": "uq_reference_measurement_key", + "columns": [ + "import_id", + "record_key" + ], + "isUnique": true + }, + "idx_reference_measurement_side_metric_start": { + "name": "idx_reference_measurement_side_metric_start", + "columns": [ + "side", + "metric", + "start_ms" + ], + "isUnique": false + }, + "idx_reference_measurement_import_id": { + "name": "idx_reference_measurement_import_id", + "columns": [ + "import_id", + "id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "reference_measurements_import_id_reference_imports_id_fk": { + "name": "reference_measurements_import_id_reference_imports_id_fk", + "tableFrom": "reference_measurements", + "tableTo": "reference_imports", + "columnsFrom": [ + "import_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_samples": { + "name": "reference_samples", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "source": { + "name": "source", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "metric": { + "name": "metric", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end_timestamp": { + "name": "end_timestamp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "device": { + "name": "device", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "algorithm": { + "name": "algorithm", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "import_id": { + "name": "import_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_samples_side_metric_timestamp_source": { + "name": "uq_reference_samples_side_metric_timestamp_source", + "columns": [ + "side", + "metric", + "timestamp", + "source" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_stages": { + "name": "reference_stages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "source": { + "name": "source", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start": { + "name": "start", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end": { + "name": "end", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "stage": { + "name": "stage", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "import_id": { + "name": "import_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_stages_side_start_source": { + "name": "uq_reference_stages_side_start_source", + "columns": [ + "side", + "start", + "source" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_vitals": { + "name": "reference_vitals", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "source": { + "name": "source", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "heart_rate": { + "name": "heart_rate", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "import_id": { + "name": "import_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_vitals_side_timestamp_source": { + "name": "uq_reference_vitals_side_timestamp_source", + "columns": [ + "side", + "timestamp", + "source" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "sleep_records": { + "name": "sleep_records", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "entered_bed_at": { + "name": "entered_bed_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "left_bed_at": { + "name": "left_bed_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sleep_duration_seconds": { + "name": "sleep_duration_seconds", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "times_exited_bed": { + "name": "times_exited_bed", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "present_intervals": { + "name": "present_intervals", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "not_present_intervals": { + "name": "not_present_intervals", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_sleep_records_side_entered": { + "name": "idx_sleep_records_side_entered", + "columns": [ + "side", + "entered_bed_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "thermal_state": { + "name": "thermal_state", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "is_powered": { + "name": "is_powered", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "target_temp_f": { + "name": "target_temp_f", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "current_temp_f": { + "name": "current_temp_f", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_thermal_state_timestamp": { + "name": "idx_thermal_state_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "vitals": { + "name": "vitals", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "heart_rate": { + "name": "heart_rate", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "hrv": { + "name": "hrv", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "breathing_rate": { + "name": "breathing_rate", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "processing_run_id": { + "name": "processing_run_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_vitals_side_timestamp": { + "name": "uq_vitals_side_timestamp", + "columns": [ + "side", + "timestamp" + ], + "isUnique": true + }, + "idx_vitals_timestamp": { + "name": "idx_vitals_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "vitals_quality": { + "name": "vitals_quality", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "vitals_id": { + "name": "vitals_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "quality_score": { + "name": "quality_score", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "flags": { + "name": "flags", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "hr_raw": { + "name": "hr_raw", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_vq_vitals_id": { + "name": "idx_vq_vitals_id", + "columns": [ + "vitals_id" + ], + "isUnique": false + }, + "idx_vq_side_ts": { + "name": "idx_vq_side_ts", + "columns": [ + "side", + "timestamp" + ], + "isUnique": false + }, + "idx_vq_timestamp": { + "name": "idx_vq_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "water_level_alerts": { + "name": "water_level_alerts", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "started_at": { + "name": "started_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "dismissed_at": { + "name": "dismissed_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_water_level_alerts_dismissed": { + "name": "idx_water_level_alerts_dismissed", + "columns": [ + "dismissed_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "water_level_readings": { + "name": "water_level_readings", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "level": { + "name": "level", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "raw": { + "name": "raw", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "calibrated_empty": { + "name": "calibrated_empty", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "calibrated_full": { + "name": "calibrated_full", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_water_level_timestamp": { + "name": "idx_water_level_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/src/db/biometrics-migrations/meta/0035_snapshot.json b/src/db/biometrics-migrations/meta/0035_snapshot.json new file mode 100644 index 000000000..56eade6b7 --- /dev/null +++ b/src/db/biometrics-migrations/meta/0035_snapshot.json @@ -0,0 +1,3254 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "3bf7f651-7787-4c90-983c-0e5f9a1eca96", + "prevId": "59d256c2-02fe-4f8c-9e57-85b2c3e148dc", + "tables": { + "ambient_light": { + "name": "ambient_light", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "lux": { + "name": "lux", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_ambient_light_timestamp": { + "name": "idx_ambient_light_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "bed_temp": { + "name": "bed_temp", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "ambient_temp": { + "name": "ambient_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mcu_temp": { + "name": "mcu_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "humidity": { + "name": "humidity", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_outer_temp": { + "name": "left_outer_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_center_temp": { + "name": "left_center_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_inner_temp": { + "name": "left_inner_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_outer_temp": { + "name": "right_outer_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_center_temp": { + "name": "right_center_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_inner_temp": { + "name": "right_inner_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_bed_temp_timestamp": { + "name": "idx_bed_temp_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_backtest_jobs": { + "name": "biometric_backtest_jobs", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "experiment_id": { + "name": "experiment_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "request_hash": { + "name": "request_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "input": { + "name": "input", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "state": { + "name": "state", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "lease_owner": { + "name": "lease_owner", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "lease_expires_at_ms": { + "name": "lease_expires_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "fencing_token": { + "name": "fencing_token", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "attempt": { + "name": "attempt", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "heartbeat_at_ms": { + "name": "heartbeat_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "progress": { + "name": "progress", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "cancellation_requested_at_ms": { + "name": "cancellation_requested_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error": { + "name": "error", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "updated_at_ms": { + "name": "updated_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "biometric_backtest_jobs_idempotency_key_unique": { + "name": "biometric_backtest_jobs_idempotency_key_unique", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_job_state_created": { + "name": "idx_biometric_job_state_created", + "columns": [ + "state", + "created_at_ms" + ], + "isUnique": false + }, + "idx_biometric_job_experiment": { + "name": "idx_biometric_job_experiment", + "columns": [ + "experiment_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_backtest_jobs_experiment_id_biometric_experiments_id_fk": { + "name": "biometric_backtest_jobs_experiment_id_biometric_experiments_id_fk", + "tableFrom": "biometric_backtest_jobs", + "tableTo": "biometric_experiments", + "columnsFrom": [ + "experiment_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_backtest_results": { + "name": "biometric_backtest_results", + "columns": { + "job_id": { + "name": "job_id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "fencing_token": { + "name": "fencing_token", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "report": { + "name": "report", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "completed_at_ms": { + "name": "completed_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "released_at_ms": { + "name": "released_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": { + "biometric_backtest_results_job_id_biometric_backtest_jobs_id_fk": { + "name": "biometric_backtest_results_job_id_biometric_backtest_jobs_id_fk", + "tableFrom": "biometric_backtest_results", + "tableTo": "biometric_backtest_jobs", + "columnsFrom": [ + "job_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_dataset_raw_artifacts": { + "name": "biometric_dataset_raw_artifacts", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "dataset_id": { + "name": "dataset_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "artifact_hash": { + "name": "artifact_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "position": { + "name": "position", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "released_at_ms": { + "name": "released_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_biometric_dataset_raw_identity": { + "name": "idx_biometric_dataset_raw_identity", + "columns": [ + "dataset_id", + "artifact_hash" + ], + "isUnique": true + }, + "idx_biometric_dataset_raw_position": { + "name": "idx_biometric_dataset_raw_position", + "columns": [ + "dataset_id", + "position" + ], + "isUnique": true + }, + "idx_biometric_raw_artifact_references": { + "name": "idx_biometric_raw_artifact_references", + "columns": [ + "artifact_hash", + "released_at_ms" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_dataset_raw_artifacts_dataset_id_biometric_datasets_id_fk": { + "name": "biometric_dataset_raw_artifacts_dataset_id_biometric_datasets_id_fk", + "tableFrom": "biometric_dataset_raw_artifacts", + "tableTo": "biometric_datasets", + "columnsFrom": [ + "dataset_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "biometric_dataset_raw_artifacts_artifact_hash_biometric_raw_artifacts_content_hash_fk": { + "name": "biometric_dataset_raw_artifacts_artifact_hash_biometric_raw_artifacts_content_hash_fk", + "tableFrom": "biometric_dataset_raw_artifacts", + "tableTo": "biometric_raw_artifacts", + "columnsFrom": [ + "artifact_hash" + ], + "columnsTo": [ + "content_hash" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_datasets": { + "name": "biometric_datasets", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subject_id": { + "name": "subject_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "request_hash": { + "name": "request_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "manifest": { + "name": "manifest", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "snapshot": { + "name": "snapshot", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "byte_length": { + "name": "byte_length", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "released_at_ms": { + "name": "released_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "biometric_datasets_idempotency_key_unique": { + "name": "biometric_datasets_idempotency_key_unique", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_dataset_side_created": { + "name": "idx_biometric_dataset_side_created", + "columns": [ + "side", + "created_at_ms", + "id" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_experiments": { + "name": "biometric_experiments", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "request_hash": { + "name": "request_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "dataset_id": { + "name": "dataset_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "protocol": { + "name": "protocol", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "protocol_hash": { + "name": "protocol_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "holdout_accesses": { + "name": "holdout_accesses", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "biometric_experiments_idempotency_key_unique": { + "name": "biometric_experiments_idempotency_key_unique", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_experiment_dataset": { + "name": "idx_biometric_experiment_dataset", + "columns": [ + "dataset_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_experiments_dataset_id_biometric_datasets_id_fk": { + "name": "biometric_experiments_dataset_id_biometric_datasets_id_fk", + "tableFrom": "biometric_experiments", + "tableTo": "biometric_datasets", + "columnsFrom": [ + "dataset_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_holdout_accesses": { + "name": "biometric_holdout_accesses", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "job_id": { + "name": "job_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start_ms": { + "name": "start_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end_ms": { + "name": "end_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "accessed_at_ms": { + "name": "accessed_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_biometric_holdout_side_start": { + "name": "idx_biometric_holdout_side_start", + "columns": [ + "side", + "start_ms" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_holdout_accesses_job_id_biometric_backtest_jobs_id_fk": { + "name": "biometric_holdout_accesses_job_id_biometric_backtest_jobs_id_fk", + "tableFrom": "biometric_holdout_accesses", + "tableTo": "biometric_backtest_jobs", + "columnsFrom": [ + "job_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_processing_runs": { + "name": "biometric_processing_runs", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "kind": { + "name": "kind", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "bundle": { + "name": "bundle", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "config_hash": { + "name": "config_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "calibration_hash": { + "name": "calibration_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "input_identity": { + "name": "input_identity", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "started_at_ms": { + "name": "started_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "ended_at_ms": { + "name": "ended_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_biometric_processing_side_start": { + "name": "idx_biometric_processing_side_start", + "columns": [ + "side", + "started_at_ms" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_raw_artifacts": { + "name": "biometric_raw_artifacts", + "columns": { + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "compressed_bytes": { + "name": "compressed_bytes", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "expanded_bytes": { + "name": "expanded_bytes", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "released_at_ms": { + "name": "released_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "biometric_raw_artifacts_name_unique": { + "name": "biometric_raw_artifacts_name_unique", + "columns": [ + "name" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_raw_sources": { + "name": "biometric_raw_sources", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "source_name": { + "name": "source_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "artifact_hash": { + "name": "artifact_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "descriptor": { + "name": "descriptor", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "inventory_version": { + "name": "inventory_version", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "inventory": { + "name": "inventory", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "first_event_ms": { + "name": "first_event_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "last_event_ms": { + "name": "last_event_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "inspected_at_ms": { + "name": "inspected_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "unavailable_at_ms": { + "name": "unavailable_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_biometric_raw_source_identity": { + "name": "idx_biometric_raw_source_identity", + "columns": [ + "source_name", + "artifact_hash", + "inventory_version" + ], + "isUnique": true + }, + "idx_biometric_raw_source_window": { + "name": "idx_biometric_raw_source_window", + "columns": [ + "first_event_ms", + "last_event_ms" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_runtime_configs": { + "name": "biometric_runtime_configs", + "columns": { + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "generation": { + "name": "generation", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "resolved_hash": { + "name": "resolved_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "payload": { + "name": "payload", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "boundary": { + "name": "boundary", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_runtime_config": { + "name": "uq_biometric_runtime_config", + "columns": [ + "side", + "generation" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_runtime_receipts": { + "name": "biometric_runtime_receipts", + "columns": { + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "component": { + "name": "component", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "generation": { + "name": "generation", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "applied_hash": { + "name": "applied_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "effective_sample_time_ms": { + "name": "effective_sample_time_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "state": { + "name": "state", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "error": { + "name": "error", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heartbeat_at_ms": { + "name": "heartbeat_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_runtime_receipt": { + "name": "uq_biometric_runtime_receipt", + "columns": [ + "side", + "component", + "generation" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_shadow_runs": { + "name": "biometric_shadow_runs", + "columns": { + "worker_receipt": { + "name": "worker_receipt", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "worker_receipt_hash": { + "name": "worker_receipt_hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "plan_hash": { + "name": "plan_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "plan": { + "name": "plan", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "state": { + "name": "state", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "attempt_id": { + "name": "attempt_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "lease_until_ms": { + "name": "lease_until_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heartbeat_at_ms": { + "name": "heartbeat_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "ended_at_ms": { + "name": "ended_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "reason": { + "name": "reason", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "point_count": { + "name": "point_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "byte_count": { + "name": "byte_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + } + }, + "indexes": { + "biometric_shadow_runs_idempotency_key_unique": { + "name": "biometric_shadow_runs_idempotency_key_unique", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_shadow_side_state": { + "name": "idx_biometric_shadow_side_state", + "columns": [ + "side", + "state" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_shadow_samples": { + "name": "biometric_shadow_samples", + "columns": { + "run_id": { + "name": "run_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sequence": { + "name": "sequence", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp_ms": { + "name": "timestamp_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "payload": { + "name": "payload", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "byte_length": { + "name": "byte_length", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_shadow_sample": { + "name": "uq_biometric_shadow_sample", + "columns": [ + "run_id", + "sequence" + ], + "isUnique": true + }, + "idx_biometric_shadow_sample_time": { + "name": "idx_biometric_shadow_sample_time", + "columns": [ + "run_id", + "timestamp_ms" + ], + "isUnique": false + } + }, + "foreignKeys": { + "biometric_shadow_samples_run_id_biometric_shadow_runs_id_fk": { + "name": "biometric_shadow_samples_run_id_biometric_shadow_runs_id_fk", + "tableFrom": "biometric_shadow_samples", + "tableTo": "biometric_shadow_runs", + "columnsFrom": [ + "run_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "calibration_profiles": { + "name": "calibration_profiles", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sensor_type": { + "name": "sensor_type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'pending'" + }, + "parameters": { + "name": "parameters", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "quality_score": { + "name": "quality_score", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "source_window_start": { + "name": "source_window_start", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "source_window_end": { + "name": "source_window_end", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "samples_used": { + "name": "samples_used", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error_message": { + "name": "error_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "expires_at": { + "name": "expires_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_cal_type_status": { + "name": "idx_cal_type_status", + "columns": [ + "sensor_type", + "status" + ], + "isUnique": false + }, + "uq_cal_side_type_active": { + "name": "uq_cal_side_type_active", + "columns": [ + "side", + "sensor_type" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "calibration_runs": { + "name": "calibration_runs", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sensor_type": { + "name": "sensor_type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "parameters": { + "name": "parameters", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "quality_score": { + "name": "quality_score", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "source_window_start": { + "name": "source_window_start", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "source_window_end": { + "name": "source_window_end", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "samples_used": { + "name": "samples_used", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error_message": { + "name": "error_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "duration_ms": { + "name": "duration_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "triggered_by": { + "name": "triggered_by", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_cal_runs_side_type": { + "name": "idx_cal_runs_side_type", + "columns": [ + "side", + "sensor_type", + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "cap_sense_frames": { + "name": "cap_sense_frames", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "zones": { + "name": "zones", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "max": { + "name": "max", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "mean": { + "name": "mean", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "spread": { + "name": "spread", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "peak_zone": { + "name": "peak_zone", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "frame_count": { + "name": "frame_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status_counts": { + "name": "status_counts", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_cap_sense_frames_side_ts": { + "name": "uq_cap_sense_frames_side_ts", + "columns": [ + "side", + "timestamp" + ], + "isUnique": true + }, + "idx_cap_sense_frames_timestamp": { + "name": "idx_cap_sense_frames_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "flash_write_samples": { + "name": "flash_write_samples", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "boot_id": { + "name": "boot_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sectors_written": { + "name": "sectors_written", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_flash_write_samples_timestamp": { + "name": "idx_flash_write_samples_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "flow_readings": { + "name": "flow_readings", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "left_flowrate_cd": { + "name": "left_flowrate_cd", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_flowrate_cd": { + "name": "right_flowrate_cd", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_pump_rpm": { + "name": "left_pump_rpm", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_pump_rpm": { + "name": "right_pump_rpm", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_flow_readings_timestamp": { + "name": "idx_flow_readings_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "freezer_temp": { + "name": "freezer_temp", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "ambient_temp": { + "name": "ambient_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heatsink_temp": { + "name": "heatsink_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "left_water_temp": { + "name": "left_water_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "right_water_temp": { + "name": "right_water_temp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_freezer_temp_timestamp": { + "name": "idx_freezer_temp_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "health_runs": { + "name": "health_runs", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "check_id": { + "name": "check_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "detail": { + "name": "detail", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "started_at": { + "name": "started_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "last_seen_at": { + "name": "last_seen_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_health_runs_check_started": { + "name": "idx_health_runs_check_started", + "columns": [ + "check_id", + "started_at" + ], + "isUnique": false + }, + "idx_health_runs_last_seen": { + "name": "idx_health_runs_last_seen", + "columns": [ + "last_seen_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "heartbeats": { + "name": "heartbeats", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "beats": { + "name": "beats", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "quality": { + "name": "quality", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_heartbeats_side_timestamp": { + "name": "uq_heartbeats_side_timestamp", + "columns": [ + "side", + "timestamp" + ], + "isUnique": true + }, + "idx_heartbeats_timestamp": { + "name": "idx_heartbeats_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "movement": { + "name": "movement", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "total_movement": { + "name": "total_movement", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_movement_side_timestamp": { + "name": "idx_movement_side_timestamp", + "columns": [ + "side", + "timestamp" + ], + "isUnique": false + }, + "idx_movement_timestamp": { + "name": "idx_movement_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "prime_events": { + "name": "prime_events", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_prime_events_timestamp": { + "name": "idx_prime_events_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pump_alerts": { + "name": "pump_alerts", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rpm": { + "name": "rpm", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "flowrate_cd": { + "name": "flowrate_cd", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "duration_seconds": { + "name": "duration_seconds", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "action": { + "name": "action", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'none'" + }, + "restore_target_temperature": { + "name": "restore_target_temperature", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "restore_duration_seconds": { + "name": "restore_duration_seconds", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "acknowledged_at": { + "name": "acknowledged_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "dismissed_at": { + "name": "dismissed_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_pump_alerts_timestamp": { + "name": "idx_pump_alerts_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + }, + "idx_pump_alerts_acknowledged": { + "name": "idx_pump_alerts_acknowledged", + "columns": [ + "acknowledged_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_imports": { + "name": "reference_imports", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "family_id": { + "name": "family_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "revision": { + "name": "revision", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "supersedes_import_id": { + "name": "supersedes_import_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "content_hash": { + "name": "content_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "source": { + "name": "source", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "adapter_version": { + "name": "adapter_version", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subject_id": { + "name": "subject_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "time_policy": { + "name": "time_policy", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "summary": { + "name": "summary", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "overlap_policy": { + "name": "overlap_policy", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'exclude_conflicts'" + }, + "accepted_count": { + "name": "accepted_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "rejected_count": { + "name": "rejected_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "deleted_at_ms": { + "name": "deleted_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_import_active_root": { + "name": "uq_reference_import_active_root", + "columns": [ + "content_hash" + ], + "isUnique": true, + "where": "\"reference_imports\".\"deleted_at_ms\" IS NULL AND \"reference_imports\".\"supersedes_import_id\" IS NULL" + }, + "uq_reference_import_active_correction": { + "name": "uq_reference_import_active_correction", + "columns": [ + "content_hash", + "supersedes_import_id" + ], + "isUnique": true, + "where": "\"reference_imports\".\"deleted_at_ms\" IS NULL" + }, + "uq_reference_import_revision": { + "name": "uq_reference_import_revision", + "columns": [ + "family_id", + "revision" + ], + "isUnique": true + }, + "idx_reference_import_side_created": { + "name": "idx_reference_import_side_created", + "columns": [ + "side", + "created_at_ms", + "id" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_measurements": { + "name": "reference_measurements", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "import_id": { + "name": "import_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "record_key": { + "name": "record_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "metric": { + "name": "metric", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "stage": { + "name": "stage", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "unit": { + "name": "unit", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start_ms": { + "name": "start_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end_ms": { + "name": "end_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "temporal_kind": { + "name": "temporal_kind", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "aggregation": { + "name": "aggregation", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "window_ms": { + "name": "window_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "quality": { + "name": "quality", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "scorable": { + "name": "scorable", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "exclusions": { + "name": "exclusions", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "original": { + "name": "original", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_measurement_key": { + "name": "uq_reference_measurement_key", + "columns": [ + "import_id", + "record_key" + ], + "isUnique": true + }, + "idx_reference_measurement_side_metric_start": { + "name": "idx_reference_measurement_side_metric_start", + "columns": [ + "side", + "metric", + "start_ms" + ], + "isUnique": false + }, + "idx_reference_measurement_import_id": { + "name": "idx_reference_measurement_import_id", + "columns": [ + "import_id", + "id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "reference_measurements_import_id_reference_imports_id_fk": { + "name": "reference_measurements_import_id_reference_imports_id_fk", + "tableFrom": "reference_measurements", + "tableTo": "reference_imports", + "columnsFrom": [ + "import_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_samples": { + "name": "reference_samples", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "source": { + "name": "source", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "metric": { + "name": "metric", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end_timestamp": { + "name": "end_timestamp", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "device": { + "name": "device", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "algorithm": { + "name": "algorithm", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "import_id": { + "name": "import_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_samples_side_metric_timestamp_source": { + "name": "uq_reference_samples_side_metric_timestamp_source", + "columns": [ + "side", + "metric", + "timestamp", + "source" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_stages": { + "name": "reference_stages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "source": { + "name": "source", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start": { + "name": "start", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end": { + "name": "end", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "stage": { + "name": "stage", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "import_id": { + "name": "import_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_stages_side_start_source": { + "name": "uq_reference_stages_side_start_source", + "columns": [ + "side", + "start", + "source" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "reference_vitals": { + "name": "reference_vitals", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "source": { + "name": "source", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "heart_rate": { + "name": "heart_rate", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "import_id": { + "name": "import_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_reference_vitals_side_timestamp_source": { + "name": "uq_reference_vitals_side_timestamp_source", + "columns": [ + "side", + "timestamp", + "source" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "sleep_records": { + "name": "sleep_records", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "entered_bed_at": { + "name": "entered_bed_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "left_bed_at": { + "name": "left_bed_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sleep_duration_seconds": { + "name": "sleep_duration_seconds", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "times_exited_bed": { + "name": "times_exited_bed", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "present_intervals": { + "name": "present_intervals", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "not_present_intervals": { + "name": "not_present_intervals", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_sleep_records_side_entered": { + "name": "idx_sleep_records_side_entered", + "columns": [ + "side", + "entered_bed_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "thermal_state": { + "name": "thermal_state", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "is_powered": { + "name": "is_powered", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "target_temp_f": { + "name": "target_temp_f", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "current_temp_f": { + "name": "current_temp_f", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_thermal_state_timestamp": { + "name": "idx_thermal_state_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "vitals": { + "name": "vitals", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "heart_rate": { + "name": "heart_rate", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "hrv": { + "name": "hrv", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "breathing_rate": { + "name": "breathing_rate", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "processing_run_id": { + "name": "processing_run_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_vitals_side_timestamp": { + "name": "uq_vitals_side_timestamp", + "columns": [ + "side", + "timestamp" + ], + "isUnique": true + }, + "idx_vitals_timestamp": { + "name": "idx_vitals_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "vitals_quality": { + "name": "vitals_quality", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "vitals_id": { + "name": "vitals_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "quality_score": { + "name": "quality_score", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "flags": { + "name": "flags", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "hr_raw": { + "name": "hr_raw", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_vq_vitals_id": { + "name": "idx_vq_vitals_id", + "columns": [ + "vitals_id" + ], + "isUnique": false + }, + "idx_vq_side_ts": { + "name": "idx_vq_side_ts", + "columns": [ + "side", + "timestamp" + ], + "isUnique": false + }, + "idx_vq_timestamp": { + "name": "idx_vq_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "watch_motion_captures": { + "name": "watch_motion_captures", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "version": { + "name": "version", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "recorded_from": { + "name": "recorded_from", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "recorded_to": { + "name": "recorded_to", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "bins": { + "name": "bins", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "trimmed_bins": { + "name": "trimmed_bins", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "sha256": { + "name": "sha256", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "file": { + "name": "file", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_watch_motion_captures_side_recorded_from": { + "name": "uq_watch_motion_captures_side_recorded_from", + "columns": [ + "side", + "recorded_from" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "water_level_alerts": { + "name": "water_level_alerts", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "started_at": { + "name": "started_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "dismissed_at": { + "name": "dismissed_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "idx_water_level_alerts_dismissed": { + "name": "idx_water_level_alerts_dismissed", + "columns": [ + "dismissed_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "water_level_readings": { + "name": "water_level_readings", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "timestamp": { + "name": "timestamp", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "level": { + "name": "level", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "raw": { + "name": "raw", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "calibrated_empty": { + "name": "calibrated_empty", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "calibrated_full": { + "name": "calibrated_full", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_water_level_timestamp": { + "name": "idx_water_level_timestamp", + "columns": [ + "timestamp" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/src/db/biometrics-migrations/meta/_journal.json b/src/db/biometrics-migrations/meta/_journal.json index 84e43f0c1..7de19298b 100644 --- a/src/db/biometrics-migrations/meta/_journal.json +++ b/src/db/biometrics-migrations/meta/_journal.json @@ -239,6 +239,20 @@ "when": 1792364530317, "tag": "0033_heartbeats", "breakpoints": true + }, + { + "idx": 34, + "version": "6", + "when": 1793841463347, + "tag": "0034_reference_sample_device", + "breakpoints": true + }, + { + "idx": 35, + "version": "6", + "when": 1793998512298, + "tag": "0035_watch_motion_captures", + "breakpoints": true } ] } \ No newline at end of file diff --git a/src/db/biometrics-schema.ts b/src/db/biometrics-schema.ts index 53f69f4c1..fa80dea02 100644 --- a/src/db/biometrics-schema.ts +++ b/src/db/biometrics-schema.ts @@ -322,15 +322,41 @@ export const referenceSamples = sqliteTable('reference_samples', { id: integer('id').primaryKey({ autoIncrement: true }), side: text('side', { enum: ['left', 'right'] }).notNull(), source: text('source', { enum: ['apple_watch'] }).notNull(), - metric: text('metric', { enum: ['breathing_rate', 'hrv_sdnn'] }).notNull(), + metric: text('metric', { enum: ['breathing_rate', 'hrv_sdnn', 'hrv_rmssd', 'blood_oxygen', 'resting_heart_rate', 'skin_temperature', 'breathing_disturbances'] }).notNull(), timestamp: integer('timestamp', { mode: 'timestamp' }).notNull(), + // Set when the reading covers a window; a spot reading has none. + endTimestamp: integer('end_timestamp', { mode: 'timestamp' }), value: real('value').notNull(), + device: text('device'), // hardware that measured it, e.g. Watch8,2; null for rows from older clients + algorithm: text('algorithm'), // the vendor's algorithm version, when it reports one createdAt: integer('created_at', { mode: 'timestamp' }).notNull().$defaultFn(() => new Date()), importId: text('import_id'), // set in the inserting transaction, like reference_vitals }, t => [ uniqueIndex('uq_reference_samples_side_metric_timestamp_source').on(t.side, t.metric, t.timestamp, t.source), ]) +/** + * Apple Watch wrist-movement recordings (watch-motion-v1/v2 files sent by the + * iOS app), one row per night holding the trimmed canonical file. A movement + * label for comparison and off-pod training only: never read by the stage + * classifier, movement scoring or any hardware control. A resend of the same + * night (side, recorded_from) replaces the stored file in place. + */ +export const watchMotionCaptures = sqliteTable('watch_motion_captures', { + id: integer('id').primaryKey({ autoIncrement: true }), + side: text('side', { enum: ['left', 'right'] }).notNull(), + version: text('version', { enum: ['watch-motion-v1', 'watch-motion-v2'] }).notNull(), + recordedFrom: integer('recorded_from', { mode: 'timestamp_ms' }).notNull(), + recordedTo: integer('recorded_to', { mode: 'timestamp_ms' }).notNull(), + bins: integer('bins').notNull(), + trimmedBins: integer('trimmed_bins').notNull(), + sha256: text('sha256').notNull(), + file: text('file').notNull(), // canonical JSON (sorted keys), served byte-for-byte + createdAt: integer('created_at', { mode: 'timestamp' }).notNull().$defaultFn(() => new Date()), +}, t => [ + uniqueIndex('uq_watch_motion_captures_side_recorded_from').on(t.side, t.recordedFrom), +]) + // ── Calibration tables ── export const calibrationProfiles = sqliteTable('calibration_profiles', { diff --git a/src/db/migrations/0035_nats_subject_prefix.sql b/src/db/migrations/0035_nats_subject_prefix.sql new file mode 100644 index 000000000..3ce7033ac --- /dev/null +++ b/src/db/migrations/0035_nats_subject_prefix.sql @@ -0,0 +1 @@ +ALTER TABLE `device_settings` ADD `nats_subject_prefix` text; \ No newline at end of file diff --git a/src/db/migrations/meta/0035_snapshot.json b/src/db/migrations/meta/0035_snapshot.json new file mode 100644 index 000000000..db8b72c1e --- /dev/null +++ b/src/db/migrations/meta/0035_snapshot.json @@ -0,0 +1,2115 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "71f0cfc6-3bcd-4787-9604-0e72e65a567f", + "prevId": "f486e492-6c28-42ba-b5f9-aa74624eb220", + "tables": { + "alarm_schedules": { + "name": "alarm_schedules", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "day_of_week": { + "name": "day_of_week", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "time": { + "name": "time", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "vibration_intensity": { + "name": "vibration_intensity", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "vibration_pattern": { + "name": "vibration_pattern", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'rise'" + }, + "duration": { + "name": "duration", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "alarm_temperature": { + "name": "alarm_temperature", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "wake_window": { + "name": "wake_window", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "snooze_duration": { + "name": "snooze_duration", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 300 + }, + "snooze_taper": { + "name": "snooze_taper", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "enabled": { + "name": "enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "idx_alarm_schedules_side_day": { + "name": "idx_alarm_schedules_side_day", + "columns": [ + "side", + "day_of_week" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "automation_runs": { + "name": "automation_runs", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "automation_id": { + "name": "automation_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "fired_at": { + "name": "fired_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "outcome": { + "name": "outcome", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "detail": { + "name": "detail", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_automation_runs_automation_fired": { + "name": "idx_automation_runs_automation_fired", + "columns": [ + "automation_id", + "fired_at" + ], + "isUnique": false + } + }, + "foreignKeys": { + "automation_runs_automation_id_automations_id_fk": { + "name": "automation_runs_automation_id_automations_id_fk", + "tableFrom": "automation_runs", + "tableTo": "automations", + "columnsFrom": [ + "automation_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "automations": { + "name": "automations", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "enabled": { + "name": "enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "priority": { + "name": "priority", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "dry_run": { + "name": "dry_run", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + }, + "cooldown_min": { + "name": "cooldown_min", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "trigger": { + "name": "trigger", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "conditions": { + "name": "conditions", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "actions": { + "name": "actions", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "idx_automations_enabled": { + "name": "idx_automations_enabled", + "columns": [ + "enabled" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "base_schedules": { + "name": "base_schedules", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "day_of_week": { + "name": "day_of_week", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'both'" + }, + "preset_name": { + "name": "preset_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'Custom'" + }, + "time": { + "name": "time", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "head": { + "name": "head", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "feet": { + "name": "feet", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "feed_rate": { + "name": "feed_rate", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 50 + }, + "enabled": { + "name": "enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + } + }, + "indexes": { + "base_schedules_day_time_side": { + "name": "base_schedules_day_time_side", + "columns": [ + "day_of_week", + "time", + "side" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_activation_events": { + "name": "biometric_activation_events", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "generation": { + "name": "generation", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "action": { + "name": "action", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "previous_revision_id": { + "name": "previous_revision_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "next_revision_id": { + "name": "next_revision_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "previous_hash": { + "name": "previous_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "next_hash": { + "name": "next_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "evaluation_id": { + "name": "evaluation_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "evidence": { + "name": "evidence", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "requester": { + "name": "requester", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "state": { + "name": "state", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "reason": { + "name": "reason", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "request_hash": { + "name": "request_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "updated_at_ms": { + "name": "updated_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_activation_generation": { + "name": "uq_biometric_activation_generation", + "columns": [ + "side", + "generation" + ], + "isUnique": true + }, + "uq_biometric_activation_idempotency": { + "name": "uq_biometric_activation_idempotency", + "columns": [ + "idempotency_key" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_config_outbox": { + "name": "biometric_config_outbox", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "generation": { + "name": "generation", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "payload": { + "name": "payload", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "resolved_hash": { + "name": "resolved_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "state": { + "name": "state", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "attempts": { + "name": "attempts", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "next_attempt_at_ms": { + "name": "next_attempt_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "last_error": { + "name": "last_error", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "delivered_at_ms": { + "name": "delivered_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_outbox_generation": { + "name": "uq_biometric_outbox_generation", + "columns": [ + "side", + "generation" + ], + "isUnique": true + }, + "idx_biometric_outbox_pending": { + "name": "idx_biometric_outbox_pending", + "columns": [ + "state", + "next_attempt_at_ms" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_profile_bindings": { + "name": "biometric_profile_bindings", + "columns": { + "side": { + "name": "side", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "desired_revision_id": { + "name": "desired_revision_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "generation": { + "name": "generation", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "previous_revision_id": { + "name": "previous_revision_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "updated_at_ms": { + "name": "updated_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "biometric_profile_revisions": { + "name": "biometric_profile_revisions", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "family_id": { + "name": "family_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "revision": { + "name": "revision", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "base_manifest_hash": { + "name": "base_manifest_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "base_manifest": { + "name": "base_manifest", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "overrides": { + "name": "overrides", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "resolved": { + "name": "resolved", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "resolved_hash": { + "name": "resolved_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "dependency_hashes": { + "name": "dependency_hashes", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "parent_revision_id": { + "name": "parent_revision_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "origin": { + "name": "origin", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "requester": { + "name": "requester", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "idempotency_key": { + "name": "idempotency_key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "request_hash": { + "name": "request_hash", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "created_at_ms": { + "name": "created_at_ms", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "uq_biometric_profile_family_revision": { + "name": "uq_biometric_profile_family_revision", + "columns": [ + "family_id", + "revision" + ], + "isUnique": true + }, + "uq_biometric_profile_idempotency": { + "name": "uq_biometric_profile_idempotency", + "columns": [ + "idempotency_key" + ], + "isUnique": true + }, + "idx_biometric_profile_side_created": { + "name": "idx_biometric_profile_side_created", + "columns": [ + "side", + "created_at_ms" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "curve_templates": { + "name": "curve_templates", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "bedtime": { + "name": "bedtime", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "wake": { + "name": "wake", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "points": { + "name": "points", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "reasoning": { + "name": "reasoning", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "''" + }, + "end_action": { + "name": "end_action", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'turn_off'" + }, + "left_days": { + "name": "left_days", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'[]'" + }, + "right_days": { + "name": "right_days", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'[]'" + }, + "active": { + "name": "active", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "idx_curve_templates_name": { + "name": "idx_curve_templates_name", + "columns": [ + "name" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "device_settings": { + "name": "device_settings", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "bed_mode": { + "name": "bed_mode", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'two'" + }, + "unused_zone_mode": { + "name": "unused_zone_mode", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'off'" + }, + "default_schedule_end_action": { + "name": "default_schedule_end_action", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'turn_off'" + }, + "timezone": { + "name": "timezone", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'America/Los_Angeles'" + }, + "temperature_unit": { + "name": "temperature_unit", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'F'" + }, + "time_format": { + "name": "time_format", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'12h'" + }, + "reboot_daily": { + "name": "reboot_daily", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "reboot_time": { + "name": "reboot_time", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'03:00'" + }, + "prime_pod_daily": { + "name": "prime_pod_daily", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "prime_pod_time": { + "name": "prime_pod_time", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'14:00'" + }, + "led_night_mode_enabled": { + "name": "led_night_mode_enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "led_day_brightness": { + "name": "led_day_brightness", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 100 + }, + "led_night_brightness": { + "name": "led_night_brightness", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "led_night_start_time": { + "name": "led_night_start_time", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'22:00'" + }, + "led_night_end_time": { + "name": "led_night_end_time", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'07:00'" + }, + "global_max_on_hours": { + "name": "global_max_on_hours", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mqtt_enabled": { + "name": "mqtt_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mqtt_url": { + "name": "mqtt_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mqtt_username": { + "name": "mqtt_username", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mqtt_password": { + "name": "mqtt_password", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mqtt_topic_prefix": { + "name": "mqtt_topic_prefix", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mqtt_ha_discovery": { + "name": "mqtt_ha_discovery", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mqtt_tls_enabled": { + "name": "mqtt_tls_enabled", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mqtt_tls_insecure": { + "name": "mqtt_tls_insecure", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "homekit_enabled": { + "name": "homekit_enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "pump_stall_protection_enabled": { + "name": "pump_stall_protection_enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "pump_stall_rpm_threshold": { + "name": "pump_stall_rpm_threshold", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 500 + }, + "pump_stall_dwell_samples": { + "name": "pump_stall_dwell_samples", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 2 + }, + "pump_stall_auto_recovery_enabled": { + "name": "pump_stall_auto_recovery_enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "pump_stall_recovery_rpm": { + "name": "pump_stall_recovery_rpm", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 1500 + }, + "pump_stall_recovery_samples": { + "name": "pump_stall_recovery_samples", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 3 + }, + "autopilot_enabled": { + "name": "autopilot_enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + }, + "nats_subject_prefix": { + "name": "nats_subject_prefix", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "device_state": { + "name": "device_state", + "columns": { + "hardware_deadline": { + "name": "hardware_deadline", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "current_temperature": { + "name": "current_temperature", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "target_temperature": { + "name": "target_temperature", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "is_powered": { + "name": "is_powered", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "is_alarm_vibrating": { + "name": "is_alarm_vibrating", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "water_level": { + "name": "water_level", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'unknown'" + }, + "powered_on_at": { + "name": "powered_on_at", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "last_updated": { + "name": "last_updated", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "power_schedules": { + "name": "power_schedules", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "day_of_week": { + "name": "day_of_week", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "on_time": { + "name": "on_time", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "off_time": { + "name": "off_time", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "end_action": { + "name": "end_action", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'turn_off'" + }, + "on_temperature": { + "name": "on_temperature", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "enabled": { + "name": "enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "idx_power_schedules_side_day": { + "name": "idx_power_schedules_side_day", + "columns": [ + "side", + "day_of_week" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "run_once_sessions": { + "name": "run_once_sessions", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "set_points": { + "name": "set_points", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "wake_time": { + "name": "wake_time", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "started_at": { + "name": "started_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "expires_at": { + "name": "expires_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'active'" + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "idx_run_once_side_status": { + "name": "idx_run_once_side_status", + "columns": [ + "side", + "status" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "schedule_notes": { + "name": "schedule_notes", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "day_of_week": { + "name": "day_of_week", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "notes": { + "name": "notes", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "idx_schedule_notes_side_day": { + "name": "idx_schedule_notes_side_day", + "columns": [ + "side", + "day_of_week" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "side_settings": { + "name": "side_settings", + "columns": { + "side": { + "name": "side", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "away_mode": { + "name": "away_mode", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "always_on": { + "name": "always_on", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "auto_off_enabled": { + "name": "auto_off_enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "auto_off_minutes": { + "name": "auto_off_minutes", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 30 + }, + "auto_on_enabled": { + "name": "auto_on_enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "auto_on_minutes": { + "name": "auto_on_minutes", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 5 + }, + "auto_on_start": { + "name": "auto_on_start", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'20:00'" + }, + "auto_on_end": { + "name": "auto_on_end", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'08:00'" + }, + "away_start": { + "name": "away_start", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "away_return": { + "name": "away_return", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "stage_classifier": { + "name": "stage_classifier", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "side_stage_models": { + "name": "side_stage_models", + "columns": { + "side": { + "name": "side", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "model": { + "name": "model", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "version": { + "name": "version", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "uploaded_at": { + "name": "uploaded_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "active": { + "name": "active", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "stage_classifier_changes": { + "name": "stage_classifier_changes", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "changed_at": { + "name": "changed_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "before": { + "name": "before", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "after": { + "name": "after", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "summary": { + "name": "summary", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "agreement_before": { + "name": "agreement_before", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "agreement_after": { + "name": "agreement_after", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "idx_stage_classifier_changes_side_changed_at": { + "name": "idx_stage_classifier_changes_side_changed_at", + "columns": [ + "side", + "changed_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "stage_model_library": { + "name": "stage_model_library", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "model": { + "name": "model", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "version": { + "name": "version", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "uploaded_at": { + "name": "uploaded_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "stage_model_library_side_idx": { + "name": "stage_model_library_side_idx", + "columns": [ + "side" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "system_health": { + "name": "system_health", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "component": { + "name": "component", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'unknown'" + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "last_checked": { + "name": "last_checked", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "system_health_component_unique": { + "name": "system_health_component_unique", + "columns": [ + "component" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "tap_gestures": { + "name": "tap_gestures", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "tap_type": { + "name": "tap_type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "action_type": { + "name": "action_type", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "temperature_change": { + "name": "temperature_change", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "temperature_amount": { + "name": "temperature_amount", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "alarm_behavior": { + "name": "alarm_behavior", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "alarm_snooze_duration": { + "name": "alarm_snooze_duration", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "alarm_inactive_behavior": { + "name": "alarm_inactive_behavior", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "uq_tap_side_type": { + "name": "uq_tap_side_type", + "columns": [ + "side", + "tap_type" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "temperature_holds": { + "name": "temperature_holds", + "columns": { + "side": { + "name": "side", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "temperature": { + "name": "temperature", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "started_at": { + "name": "started_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "expires_at": { + "name": "expires_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "temperature_schedules": { + "name": "temperature_schedules", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "side": { + "name": "side", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "day_of_week": { + "name": "day_of_week", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "time": { + "name": "time", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "temperature": { + "name": "temperature", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "enabled": { + "name": "enabled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + }, + "created_at": { + "name": "created_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + }, + "updated_at": { + "name": "updated_at", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(unixepoch())" + } + }, + "indexes": { + "idx_temp_schedules_side_day_time": { + "name": "idx_temp_schedules_side_day_time", + "columns": [ + "side", + "day_of_week", + "time" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/src/db/migrations/meta/_journal.json b/src/db/migrations/meta/_journal.json index f4e4c7c2d..37aaba441 100644 --- a/src/db/migrations/meta/_journal.json +++ b/src/db/migrations/meta/_journal.json @@ -246,6 +246,13 @@ "when": 1792676513633, "tag": "0034_alarm_snooze_from_gestures", "breakpoints": true + }, + { + "idx": 35, + "version": "6", + "when": 1794176605272, + "tag": "0035_nats_subject_prefix", + "breakpoints": true } ] } \ No newline at end of file diff --git a/src/db/retention.ts b/src/db/retention.ts index a37fdb01d..8f33e8933 100644 --- a/src/db/retention.ts +++ b/src/db/retention.ts @@ -15,6 +15,7 @@ import { vitals, vitalsQuality, waterLevelReadings, + watchMotionCaptures, } from './biometrics-schema' /** @@ -30,6 +31,9 @@ import { * ambient_light, water_level_readings, pump_alerts, vitals_quality, * thermal_state, health_runs, flash_write_samples, * heartbeats (~150 KB per side per night of beat times) + * watch_motion_captures (Apple Watch movement labels, ~0.5 MB per night + * as canonical JSON — far heavier than the other reference tables, so + * pruned by recorded_to; the iPhone keeps the original files) * * vitals_quality shares vitals' timestamp cutoff so each quality row dies * with its paired vitals row (vitals_id is a logical, unenforced reference — @@ -58,6 +62,7 @@ const RETENTION_TABLES = [ { table: thermalState, column: thermalState.timestamp, name: 'thermal_state' }, { table: healthRuns, column: healthRuns.lastSeenAt, name: 'health_runs' }, { table: flashWriteSamples, column: flashWriteSamples.timestamp, name: 'flash_write_samples' }, + { table: watchMotionCaptures, column: watchMotionCaptures.recordedTo, name: 'watch_motion_captures' }, ] as const /** Tables the daily retention pass prunes, for System → Databases. */ diff --git a/src/db/schema.ts b/src/db/schema.ts index 1074fe9b0..dbd49a24e 100644 --- a/src/db/schema.ts +++ b/src/db/schema.ts @@ -79,6 +79,10 @@ export const deviceSettings = sqliteTable('device_settings', { autopilotEnabled: integer('autopilot_enabled', { mode: 'boolean' }) .notNull() .default(true), + // NATS subject prefix the sensor readers subscribe under (`.sens.>`, + // `.frz.>`). NULL = auto: read `raw` and `rawmem` with `raw` winning + // per subject. Set it to pin firmware that publishes under another prefix. + natsSubjectPrefix: text('nats_subject_prefix'), createdAt: integer('created_at', { mode: 'timestamp' }) .notNull() .default(sql`(unixepoch())`), diff --git a/src/db/tests/__snapshots__/schema.test.ts.snap b/src/db/tests/__snapshots__/schema.test.ts.snap index 4f1eaf57f..729963335 100644 --- a/src/db/tests/__snapshots__/schema.test.ts.snap +++ b/src/db/tests/__snapshots__/schema.test.ts.snap @@ -640,9 +640,12 @@ exports[`complete Drizzle schema contracts > pins every biometrics table, column "id | sql:integer | logical:number/SQLiteInteger | not-null | default:auto | primary-key | not-unique | autoincrement | enum:none", "side | sql:text | logical:string/SQLiteText | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:left,right", "source | sql:text | logical:string/SQLiteText | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:apple_watch", - "metric | sql:text | logical:string/SQLiteText | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:breathing_rate,hrv_sdnn", + "metric | sql:text | logical:string/SQLiteText | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:breathing_rate,hrv_sdnn,hrv_rmssd,blood_oxygen,resting_heart_rate,skin_temperature,breathing_disturbances", "timestamp | sql:integer | logical:date/SQLiteTimestamp | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "end_timestamp | sql:integer | logical:date/SQLiteTimestamp | nullable | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", "value | sql:real | logical:number/SQLiteReal | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "device | sql:text | logical:string/SQLiteText | nullable | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "algorithm | sql:text | logical:string/SQLiteText | nullable | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", "created_at | sql:integer | logical:date/SQLiteTimestamp | not-null | default:fn:Date | not-primary-key | not-unique | not-autoincrement | enum:none", "import_id | sql:text | logical:string/SQLiteText | nullable | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", ], @@ -781,6 +784,29 @@ exports[`complete Drizzle schema contracts > pins every biometrics table, column "primaryKeys": [], "uniqueConstraints": [], }, + { + "checks": 0, + "columns": [ + "id | sql:integer | logical:number/SQLiteInteger | not-null | default:auto | primary-key | not-unique | autoincrement | enum:none", + "side | sql:text | logical:string/SQLiteText | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:left,right", + "version | sql:text | logical:string/SQLiteText | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:watch-motion-v1,watch-motion-v2", + "recorded_from | sql:integer | logical:date/SQLiteTimestamp | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "recorded_to | sql:integer | logical:date/SQLiteTimestamp | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "bins | sql:integer | logical:number/SQLiteInteger | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "trimmed_bins | sql:integer | logical:number/SQLiteInteger | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "sha256 | sql:text | logical:string/SQLiteText | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "file | sql:text | logical:string/SQLiteText | not-null | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", + "created_at | sql:integer | logical:date/SQLiteTimestamp | not-null | default:fn:Date | not-primary-key | not-unique | not-autoincrement | enum:none", + ], + "exportName": "watchMotionCaptures", + "foreignKeys": [], + "indexes": [ + "uq_watch_motion_captures_side_recorded_from | unique | columns:side,recorded_from | where:none", + ], + "name": "watch_motion_captures", + "primaryKeys": [], + "uniqueConstraints": [], + }, { "checks": 0, "columns": [ @@ -1082,6 +1108,7 @@ exports[`complete Drizzle schema contracts > pins every main-database table, col "pump_stall_recovery_rpm | sql:integer | logical:number/SQLiteInteger | not-null | default:1500 | not-primary-key | not-unique | not-autoincrement | enum:none", "pump_stall_recovery_samples | sql:integer | logical:number/SQLiteInteger | not-null | default:3 | not-primary-key | not-unique | not-autoincrement | enum:none", "autopilot_enabled | sql:integer | logical:boolean/SQLiteBoolean | not-null | default:true | not-primary-key | not-unique | not-autoincrement | enum:none", + "nats_subject_prefix | sql:text | logical:string/SQLiteText | nullable | default:none | not-primary-key | not-unique | not-autoincrement | enum:none", "created_at | sql:integer | logical:date/SQLiteTimestamp | not-null | default:sql:(unixepoch()) | not-primary-key | not-unique | not-autoincrement | enum:none", "updated_at | sql:integer | logical:date/SQLiteTimestamp | not-null | default:sql:(unixepoch()) | not-primary-key | not-unique | not-autoincrement | enum:none", ], diff --git a/src/db/tests/retention.test.ts b/src/db/tests/retention.test.ts index 16a11cbae..36fc76001 100644 --- a/src/db/tests/retention.test.ts +++ b/src/db/tests/retention.test.ts @@ -151,9 +151,16 @@ describe('pruneOldBiometrics', () => { { timestamp: fresh, bootId: 'a', sectorsWritten: 2 }, ]).run() + // Pruned by when the recording ended. + const capture = { version: 'watch-motion-v1' as const, bins: 1, trimmedBins: 0, sha256: 'x', file: '{}' } + db.insert(schema.watchMotionCaptures).values([ + { ...capture, side: 'left', recordedFrom: new Date(old.getTime() - 3_600_000), recordedTo: old }, + { ...capture, side: 'left', recordedFrom: old, recordedTo: fresh }, + ]).run() + const result = pruneOldBiometrics(cutoff, db) - expect(result.rowsDeleted).toBe(13) + expect(result.rowsDeleted).toBe(14) expect(result.perTable).toEqual({ vitals: 1, vitals_quality: 1, @@ -168,7 +175,9 @@ describe('pruneOldBiometrics', () => { thermal_state: 1, health_runs: 1, flash_write_samples: 1, + watch_motion_captures: 1, }) + expect(db.select().from(schema.watchMotionCaptures).all().map(r => r.recordedTo)).toEqual([fresh]) // Verify fresh rows remain expect(db.select().from(vitals).all()).toHaveLength(1) @@ -278,6 +287,7 @@ describe('pruneOldBiometrics', () => { thermal_state: 0, health_runs: 0, flash_write_samples: 0, + watch_motion_captures: 0, }) }) diff --git a/src/db/tests/schema.test.ts b/src/db/tests/schema.test.ts index de5bdce75..0e52ad377 100644 --- a/src/db/tests/schema.test.ts +++ b/src/db/tests/schema.test.ts @@ -221,6 +221,7 @@ const expectedTables: Record = { { name: 'pump_stall_recovery_rpm', notNull: true, default: 1500 }, { name: 'pump_stall_recovery_samples', notNull: true, default: 3 }, { name: 'autopilot_enabled', notNull: true, default: true }, + { name: 'nats_subject_prefix', notNull: false, default: undefined }, { name: 'created_at', notNull: true, default: 'sql' }, { name: 'updated_at', notNull: true, default: 'sql' }, ], diff --git a/src/demo/biometrics/worker-build.json b/src/demo/biometrics/worker-build.json index 0f0f0b569..24c890c0b 100644 --- a/src/demo/biometrics/worker-build.json +++ b/src/demo/biometrics/worker-build.json @@ -1,5 +1,5 @@ { - "buildHash": "c831ffa353485fc9c7f70bdaeffcbab5a945e102b60ce33a4d173feb809ed4c3", + "buildHash": "2885bc2f7d832552a13881b49975a07f13c5448c46bea8485b27a2382cebae51", "identity": "esbuild-browser-evaluator-bundle", "simulated": true } diff --git a/src/demo/handlers/biometrics.ts b/src/demo/handlers/biometrics.ts index dd8f7e8f7..87e86a284 100644 --- a/src/demo/handlers/biometrics.ts +++ b/src/demo/handlers/biometrics.ts @@ -1,4 +1,5 @@ import { TRPCError } from '@trpc/server' +import { referenceCapabilities } from '@/src/biometrics/references/contracts' import { POSITION_CHANGE_SCORE_MIN, RESTLESS_SCORE_MIN, pickMinBucketNonStillEpochs } from '@/src/lib/movement' import { activeDemoNight, @@ -217,16 +218,37 @@ export const biometrics: DemoHandlers<'biometrics'> = { .slice(-(input.limit ?? 5000)) }, + getReferenceCapabilities: () => referenceCapabilities(), + getReferenceSamples: (input) => { const start = input.startDate.getTime() const end = input.endDate.getTime() if (start > end) throw new TRPCError({ code: 'BAD_REQUEST', message: 'startDate must be before or equal to endDate' }) + if (input.metric !== 'hrv_sdnn' && input.metric !== 'breathing_rate' && input.metric !== 'blood_oxygen') return [] + const reading = (v: ReturnType[number]) => input.metric === 'blood_oxygen' + ? 94 + v.breathingRate % 5 + : input.metric === 'hrv_sdnn' ? v.hrv * 0.7 : v.breathingRate - 0.8 return referenceGrid(input.side, start, end) - .map(v => ({ timestamp: new Date(v.t), value: Math.round((input.metric === 'hrv_sdnn' ? v.hrv * 0.7 : v.breathingRate - 0.8) * 10) / 10 })) + .map(v => ({ timestamp: new Date(v.t), endTimestamp: null, device: null, algorithm: null, value: Math.round(reading(v) * 10) / 10 })) .sort((a, b) => a.timestamp.getTime() - b.timestamp.getTime()) .slice(-(input.limit ?? 5000)) }, + // Apple Watch wrist movement per minute, loosely following the pod's own + // movement score, so the night chart shows the Watch overlay. + getWatchMotionSeries: (input) => { + const start = input.startDate.getTime() + const end = input.endDate.getTime() + if (start > end) throw new TRPCError({ code: 'BAD_REQUEST', message: 'startDate must be before or equal to endDate' }) + return demoMovement(input.side, start, end).map(m => ({ + timestamp: new Date(Math.floor(m.t / MINUTE) * MINUTE), + movingSamples: Math.round(m.score / 12), + maxJerk: Math.round(m.score / 40 * 100) / 100, + meanVariance: m.score * 1e-6, + samples: 3000, + })) + }, + getReferenceStages: (input) => { const start = input.startDate.getTime() const end = input.endDate.getTime() diff --git a/src/demo/handlers/settings.ts b/src/demo/handlers/settings.ts index fa2d06399..8dc44e897 100644 --- a/src/demo/handlers/settings.ts +++ b/src/demo/handlers/settings.ts @@ -35,6 +35,7 @@ const deviceSettings: DeviceSettings = { pumpStallAutoRecoveryEnabled: true, pumpStallRecoveryRpm: 1500, pumpStallRecoverySamples: 3, + natsSubjectPrefix: null, createdAt, updatedAt: createdAt, } diff --git a/src/demo/handlers/system.ts b/src/demo/handlers/system.ts index cc308cff4..dc6ac9245 100644 --- a/src/demo/handlers/system.ts +++ b/src/demo/handlers/system.ts @@ -2,6 +2,7 @@ import { changeRecordingPolicy, DEFAULT_RECORDING_POLICY } from '@/src/lib/recor import { flashInsights } from '@/src/lib/flashInsights' import type { DemoHandlers, RouterOutputs } from '../types' import { DAY, HOUR, MINUTE, hashSeed, seededRandom } from '../util' +import { settings } from './settings' type Storage = RouterOutputs['system']['getStorage'] type ReclaimItem = Storage['reclaimable']['items'][number] @@ -186,8 +187,12 @@ export const system: DemoHandlers<'system'> = { return { freedBytes: removed.reduce((s, i) => s + i.bytes, 0), removed: removed.length } }, - getSensorSource: () => { + getSensorSource: async () => { const lastFrameAgeMs = 400 + (Date.now() % 1_200) + if (!settings.getAll) throw new Error('Missing demo settings') + const configuredPrefix = (await settings.getAll({})).device.natsSubjectPrefix + const prefixes = configuredPrefix === null ? ['raw', 'rawmem'] : [configuredPrefix] + const feeding = configuredPrefix ?? 'raw' return { firmware: { generation: 'nats', @@ -214,6 +219,22 @@ export const system: DemoHandlers<'system'> = { firstFrameMs: 3124, uptimeSeconds: Math.floor((Date.now() - DEMO_UPTIME_START) / 1000), }, + nats: { + mode: configuredPrefix === null ? 'auto' : 'pinned', + configuredPrefix, + subscribedSubjects: prefixes.flatMap(prefix => [`${prefix}.sens.>`, `${prefix}.frz.>`]), + sources: Object.fromEntries(['sens.piezo', 'sens.capsense2', 'sens.bedtemp', 'frz.temp', 'frz.health'].map(subject => [subject, feeding])), + messages: Math.floor((Date.now() - DEMO_UPTIME_START) / 1000) * 4, + decodeFailures: 0, + ignoredMessages: 0, + observedPrefixes: [{ + prefix: 'raw', + subscribed: prefixes.includes('raw'), + messages: Math.floor((Date.now() - DEMO_UPTIME_START) / 1000) * 3, + lastSeenAtMs: Date.now() - lastFrameAgeMs, + lastSeenAgeMs: lastFrameAgeMs, + }], + }, } }, diff --git a/src/demo/tests/biometric-evaluator.test.ts b/src/demo/tests/biometric-evaluator.test.ts index 5dc73cd7e..c22019a29 100644 --- a/src/demo/tests/biometric-evaluator.test.ts +++ b/src/demo/tests/biometric-evaluator.test.ts @@ -26,7 +26,8 @@ it('preserves the seeded whole-night uncertainty stream across browser and nativ expect(browser(nights, policy)).toEqual(nightUncertainty(nights, policy)) expect(browser(nights, policy).interval?.lower).toBeCloseTo(-0.22520833333333334, 14) }) -it('bundles a self-contained browser worker without database or hardware dependencies', async () => { +// Stryker bundles its instrumented sandbox copy, so the pinned build hash can't match there. +it.skipIf(process.env.STRYKER_MUTATOR_WORKER !== undefined)('bundles a self-contained browser worker without database or hardware dependencies', async () => { const bundle = await build({ entryPoints: ['src/demo/biometrics/worker.ts'], bundle: true, write: false, platform: 'browser', format: 'esm', metafile: true }) expect(Object.keys(bundle.metafile.inputs).filter(path => /src\/(hardware|db|automation|scheduler|homekit|streaming)\/|better-sqlite3|drizzle-orm/.test(path))).toEqual([]) expect(createHash('sha256').update(bundle.outputFiles[0].contents).digest('hex')).toBe(workerBuild.buildHash) diff --git a/src/demo/tests/biometrics.referenceVitals.test.ts b/src/demo/tests/biometrics.referenceVitals.test.ts index 1932f3bd7..d843ea5d4 100644 --- a/src/demo/tests/biometrics.referenceVitals.test.ts +++ b/src/demo/tests/biometrics.referenceVitals.test.ts @@ -57,7 +57,7 @@ describe('demo biometrics.getReferenceVitals', () => { }) describe('demo reference samples and stages', () => { - it.each(['hrv_sdnn', 'breathing_rate'] as const)('returns chronological %s samples and keeps the newest when limited', async (metric) => { + it.each(['hrv_sdnn', 'breathing_rate', 'blood_oxygen'] as const)('returns chronological %s samples and keeps the newest when limited', async (metric) => { const night = demoNights('left')[0] const input = { side: 'left' as const, startDate: night.enteredBedAt, endDate: (night.leftBedAt ?? new Date()), metric } const all = await required(biometrics.getReferenceSamples)(input) @@ -66,6 +66,15 @@ describe('demo reference samples and stages', () => { expect(await required(biometrics.getReferenceSamples)({ ...input, limit: 3 })).toEqual(all.slice(-3)) await expect(async () => required(biometrics.getReferenceSamples)({ ...input, startDate: input.endDate, endDate: new Date(0) })).rejects.toThrow(/startDate/) }) + it('keeps demo blood oxygen inside the row', async () => { + const night = demoNights('left')[0] + const rows = await required(biometrics.getReferenceSamples)({ side: 'left', startDate: night.enteredBedAt, endDate: (night.leftBedAt ?? new Date()), metric: 'blood_oxygen' }) + expect(rows.length).toBeGreaterThan(0) + for (const row of rows) { + expect(row.value).toBeGreaterThanOrEqual(90) + expect(row.value).toBeLessThanOrEqual(100) + } + }) it('returns overlapping Watch stage blocks for the chosen side and honors the limit', async () => { const night = demoNights('right')[0] const input = { side: 'right' as const, startDate: night.enteredBedAt, endDate: (night.leftBedAt ?? new Date()) } diff --git a/src/demo/tests/contract.test.ts b/src/demo/tests/contract.test.ts index 49b1f03f6..c215dec96 100644 --- a/src/demo/tests/contract.test.ts +++ b/src/demo/tests/contract.test.ts @@ -79,6 +79,7 @@ describe('demo handlers honour the real router contracts', () => { await call('biometrics.getVitalsSummary', { side }) await call('biometrics.getMovementBuckets', { side, bucketSeconds: 300 }) await call('biometrics.getMovementSummary', { side }) + await call('biometrics.getWatchMotionSeries', { side, startDate: new Date(now - day), endDate: new Date(now) }) await call('biometrics.getSleepStages', { side }) await call('calibration.getStatus', { side }) await call('calibration.getHistory', { side }) diff --git a/src/hardware/tests/pumpStallGuard.test.ts b/src/hardware/tests/pumpStallGuard.test.ts index f6214fd37..92b202e4a 100644 --- a/src/hardware/tests/pumpStallGuard.test.ts +++ b/src/hardware/tests/pumpStallGuard.test.ts @@ -97,6 +97,7 @@ function resetSchema(): void { pump_stall_recovery_rpm INTEGER NOT NULL DEFAULT 1500, pump_stall_recovery_samples INTEGER NOT NULL DEFAULT 3, autopilot_enabled INTEGER NOT NULL DEFAULT 1, + nats_subject_prefix TEXT, created_at INTEGER NOT NULL DEFAULT (unixepoch()), updated_at INTEGER NOT NULL DEFAULT (unixepoch()) ); diff --git a/src/homekit/tests/bridge.test.ts b/src/homekit/tests/bridge.test.ts index 2a962a64a..74bf92e12 100644 --- a/src/homekit/tests/bridge.test.ts +++ b/src/homekit/tests/bridge.test.ts @@ -124,6 +124,7 @@ describe('homekit bridge', () => { delete g.__sp_homekit_identity__ delete g.__sp_homekit_setupURI__ delete g.__sp_homekit_transitioning__ + delete g.__sp_homekit_retiredAdvertisers__ m.bridgeInstance = null m.BridgeCtor.mockClear() @@ -188,6 +189,44 @@ describe('homekit bridge', () => { expect(m.bindPumpHealth).toHaveBeenCalledWith(fakeService, 'right') }) + it('initializes HAP storage before loading the identity', async () => { + const { startBridge } = await import('../bridge') + await startBridge(fakeMonitor) + expect(m.initHapStorage).toHaveBeenCalledOnce() + expect(m.initHapStorage.mock.invocationCallOrder[0]) + .toBeLessThan(m.loadOrCreateIdentity.mock.invocationCallOrder[0]) + }) + + it('adds each builder service to its own wrapped accessory', async () => { + const services = { + thermostat: { left: { name: 'thermostat-left' }, right: { name: 'thermostat-right' } }, + occupancy: { left: { name: 'occupancy-left' }, right: { name: 'occupancy-right' } }, + snooze: { left: { name: 'snooze-left' }, right: { name: 'snooze-right' } }, + } + const primeService = { name: 'prime' } + const ambientService = { name: 'ambient' } + m.buildThermostatService.mockImplementation((side: 'left' | 'right') => ({ service: services.thermostat[side], stop: m.thermostatStop })) + m.buildOccupancySensor.mockImplementation((side: 'left' | 'right') => ({ service: services.occupancy[side], stop: m.occupancyStop })) + m.buildSnoozeSwitch.mockImplementation((side: 'left' | 'right') => ({ service: services.snooze[side], stop: m.snoozeStop })) + m.buildPrimeSwitch.mockImplementation(() => ({ service: primeService, stop: m.primeStop })) + m.buildAmbientSensor.mockImplementation(() => ({ service: ambientService, stop: m.ambientStop })) + + const { startBridge } = await import('../bridge') + await startBridge(fakeMonitor) + + const wrapped = m.AccessoryCtor.mock.results.map(r => r.value as { addService: ReturnType }) + expect(wrapped.map(acc => acc.addService.mock.calls)).toEqual([ + [[services.thermostat.left]], + [[services.occupancy.left]], + [[services.snooze.left]], + [[services.thermostat.right]], + [[services.occupancy.right]], + [[services.snooze.right]], + [[primeService]], + [[ambientService]], + ]) + }) + it('startBridge constructs the bridge with lowercase "sleepypod" name', async () => { const { startBridge } = await import('../bridge') await startBridge(fakeMonitor) @@ -338,6 +377,7 @@ describe('homekit bridge', () => { expect(m.ambientStop).toHaveBeenCalledTimes(1) expect(m.pumpStop).toHaveBeenCalledTimes(2) expect(getStatus().running).toBe(false) + expect(getStatus().setupURI).toBeNull() }) it('stopBridge keeps the singleton live when unpublish() throws', async () => { @@ -447,6 +487,32 @@ describe('homekit bridge', () => { await startBridge(fakeMonitor) expect(advertiser.destroy).toHaveBeenCalledOnce() expect(getStatus().running).toBe(true) + + // A successful retry retires the advertiser for good. + await stopBridge() + expect(advertiser.destroy).toHaveBeenCalledOnce() + }) + + it('warns and keeps a retired advertiser queued when its cleanup retry fails', async () => { + const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) + const { startBridge, stopBridge, getStatus } = await import('../bridge') + await startBridge(fakeMonitor) + if (!m.bridgeInstance) throw new Error('bridge instance missing') + const advertiser = { + destroy: vi.fn() + .mockRejectedValueOnce(new Error('mdns socket busy')) + .mockResolvedValue(undefined), + } + Object.assign(m.bridgeInstance, { _server: undefined, _advertiser: advertiser }) + m.bridgeInstance.unpublish.mockRejectedValueOnce(new Error('cleanup interrupted')) + await expect(stopBridge()).rejects.toThrow('cleanup interrupted') + + await startBridge(fakeMonitor) + expect(getStatus().running).toBe(true) + expect(warn).toHaveBeenCalledWith('[homekit] retired advertiser cleanup failed:', 'mdns socket busy') + + await stopBridge() + expect(advertiser.destroy).toHaveBeenCalledTimes(2) }) it('stopBridge never destroys persisted accessory data', async () => { @@ -703,6 +769,8 @@ describe('homekit bridge', () => { expect((globalThis as Record).__sp_homekit_identity__).toMatchObject({ wasPaired: true, }) + // Cleared on the marking tick itself, not deferred to the next one. + expect(vi.getTimerCount()).toBe(0) // Third tick: interval has self-cancelled — no further calls. m.markIdentityPaired.mockClear() @@ -724,11 +792,13 @@ describe('homekit bridge', () => { await startBridge(fakeMonitor) expect(m.markIdentityPaired).toHaveBeenCalledTimes(1) m.markIdentityPaired.mockClear() + expect(vi.getTimerCount()).toBe(1) // Tick: interval sees wasPaired=true on the current identity, // takes the early-return self-cancel branch. vi.advanceTimersByTime(30_000) expect(m.markIdentityPaired).not.toHaveBeenCalled() + expect(vi.getTimerCount()).toBe(0) // And stays cancelled. vi.advanceTimersByTime(60_000) diff --git a/src/hooks/tests/useSensorStream.test.ts b/src/hooks/tests/useSensorStream.test.ts index 3e27b648f..052c79d3d 100644 --- a/src/hooks/tests/useSensorStream.test.ts +++ b/src/hooks/tests/useSensorStream.test.ts @@ -606,6 +606,7 @@ describe('useSensorStream — reconnect + error paths', () => { }) await promise expect(resolved).toBeNull() + expect(sensorSingleton.timeRangeResolvers).toHaveLength(0) unmount() } finally { @@ -695,6 +696,71 @@ describe('useSensorStream — reconnect + error paths', () => { } }) + it('stops the FPS timer on unmount', async () => { + vi.useFakeTimers() + try { + const { unmount } = renderHook(() => useSensorStream()) + await vi.advanceTimersByTimeAsync(0) + act(() => (wsMock.sockets[0] as FakeWS).triggerOpen()) + expect(vi.getTimerCount()).toBe(1) + unmount() + expect(vi.getTimerCount()).toBe(0) + } + finally { + vi.useRealTimers() + } + }) + + it('restarts the FPS timer on reconnect without leaking the old interval or old samples', async () => { + vi.useFakeTimers() + try { + vi.setSystemTime(0) + const { unmount } = renderHook(() => useSensorStream()) + await vi.advanceTimersByTimeAsync(0) + const first = wsMock.sockets[0] as FakeWS + act(() => first.triggerOpen()) + act(() => first.triggerMessage({ type: 'capSense', ts: 1, left: 1, right: 2 })) + expect(sensorSingleton.fpsTimestamps).toHaveLength(1) + + act(() => first.triggerClose()) + await act(async () => vi.advanceTimersByTimeAsync(1_000)) + const second = wsMock.sockets[1] as FakeWS + act(() => second.triggerOpen()) + expect(sensorSingleton.fpsTimestamps).toEqual([]) + expect(vi.getTimerCount()).toBe(1) + + unmount() + expect(vi.getTimerCount()).toBe(0) + } + finally { + vi.useRealTimers() + } + }) + + it('drops replay state when the socket reopens after an unexpected close', async () => { + vi.useFakeTimers() + try { + const { result, unmount } = renderHook(() => useSensorStream()) + await vi.advanceTimersByTimeAsync(0) + const first = wsMock.sockets[0] as FakeWS + act(() => first.triggerOpen()) + act(() => result.current.seekWaveform(50)) + expect(result.current.isSeeking).toBe(true) + expect(result.current.replayWaveform).toEqual([]) + + act(() => first.triggerClose()) + await act(async () => vi.advanceTimersByTimeAsync(1_000)) + act(() => (wsMock.sockets[1] as FakeWS).triggerOpen()) + + expect(result.current.isSeeking).toBe(false) + expect(result.current.replayWaveform).toBeNull() + unmount() + } + finally { + vi.useRealTimers() + } + }) + it('useSensorFrame returns undefined initially (server snapshot)', () => { const { result, unmount } = renderHook(() => useSensorFrame('capSense')) expect(result.current).toBeUndefined() diff --git a/src/lib/i18n/locales/en.js b/src/lib/i18n/locales/en.js index 6c51c793a..af7a49809 100644 --- a/src/lib/i18n/locales/en.js +++ b/src/lib/i18n/locales/en.js @@ -1 +1 @@ -/*eslint-disable*/module.exports={messages:JSON.parse("{\"-7ESf_\":[\"No saved candidate revisions.\"],\"-8VQNP\":[\"Archive scan complete.\"],\"-A51pP\":[\"not run\"],\"-BcCfq\":[\"The full-screen bed on the Temp screen\"],\"-C2YDb\":[\"Queue backtest\"],\"-HG8IU\":[\"Every night is re-scored with the current stage rules; higher is better.\"],\"-LXyQ4\":[\"Pod − Watch per night, by bed-entry date. The goal is zero; dashed lines mark profile changes.\"],\"-USBLd\":[\"Evaluation mode\"],\"-VKOiQ\":[\"This comparison captures a fresh snapshot. An ongoing run may have more observations than the earlier health report.\"],\"-Yo_SK\":[\"This report predates replay process measurements.\"],\"-avT-V\":[\"Circulates water to clear air from the lines\"],\"-gLagq\":[\"released\"],\"-mOi3A\":[\"Preview import\"],\"-pG9wc\":[\"Next reference page\"],\"-tMOt1\":[\"Restored the previous profile and requested it\"],\"-yvkzR\":[\"This request has been superseded by another profile change.\"],\"00b9Bg\":[\"Show recent\"],\"03_grA\":[\"No backtest yet. Import a reference for this side, then freeze nights that have it; the replay scores the previous and saved profiles against it. Nothing here changes the pod.\"],\"0ArZBq\":[\"Resamples (200–5000)\"],\"0Ke-zM\":[\"No prospective observation templates are configured on this pod.\"],\"0RiDQs\":[\"Report hash\"],\"0SoeWE\":[\"Waiting for a worker and resource admission. No execution is implied by a queued request.\"],\"0TTMQ2\":[\"frozen \",[\"0\"],\" · \",[\"1\"]],\"0UEomc\":[\"Reference content hash\"],\"0eWybM\":[\"Common-support macro F1 difference: \",[\"0\"]],\"0fgSB_\":[\"Requesting…\"],\"0g8Hrj\":[\"Source measurements deleted\"],\"18DKey\":[\"Home Assistant discovery\"],\"1E_-sY\":[\"This reporting threshold is not a validated sample-size requirement. Too few or degenerate nights yield no interval.\"],\"1I5fPJ\":[\"Ambiguous timestamps (baseline / comparison)\"],\"1SxkbH\":[\"Revision \",[\"0\"],\"; accepted \",[\"1\"],\"; unscorable \",[\"2\"]],\"1bs1Oi\":[\"Storage used on the pod\"],\"1gZYbz\":[\"Sleep stages\"],\"1gkwth\":[\"covered\"],\"1gq8Fu\":[\"Changed values are white; the previous profile sits underneath. Moving a control edits the saved profile; saving again re-requests it. The processor adopts a profile only after it acknowledges a request.\"],\"1m2ZjF\":[\"Waiting for a processing boundary\"],\"1njn7W\":[\"Light\"],\"1sMQW6\":[\"Unmatched observations\"],\"1zMPXx\":[\"The server captures default, current stage-view, and candidate configurations at submission. Stored readings cannot validate numerical parameter changes.\"],\"22M8hi\":[\"Upload Apple Watch data to see how far this side's readings sit from the Watch, night by night.\"],\"2Ek6a3\":[\"New observation plan\"],\"2FSnGH\":[\"Reference agreement calculated.\"],\"2JsUDv\":[\"Restore and request\"],\"2KVdfN\":[\"Stop recorded\"],\"2LVKeT\":[\"Second half of each window\"],\"2UtXoO\":[\"The window IBI variability index is not clinical beat-to-beat RMSSD. Only compatible metric definitions and aggregation windows are scored.\"],\"2X2m4_\":[\"hide\"],\"2_xXFZ\":[\"Observation request saved: \",[\"saved\"],\". Review its status in the run list; execution is not implied.\"],\"2hjLDv\":[\"Profile revisions here are candidates. Applying one requests it like Save and request does; the overview shows when the processor acknowledges it.\"],\"2kV8bg\":[\"Largest Python process peak memory (MiB)\"],\"2q_goE\":[\"Release retained inputs\"],\"33IC49\":[\"Fahrenheit or Celsius across the app\"],\"33aIUI\":[\"Largest observation gap: \",[\"0\"],\" seconds\"],\"33v1rN\":[\"Compatible\"],\"39Atsr\":[\"Stage replay unavailable\"],\"3GkuKU\":[\"Observation clocks are inconsistent.\"],\"3PRxO3\":[\"Stage\"],\"3SR-aZ\":[\"Inherited default\"],\"3burf-\":[\"Replay saved nights against a profile\"],\"3cOQwy\":[\"Largest observation gap: \",[\"0\"],\" seconds.\"],\"3d05JT\":[\"Comparison shared MAE\"],\"3kR70m\":[\"Shared reference pairs: active \",[\"0\"],\", candidate \",[\"1\"],\".\"],\"3l8RWF\":[\"Deep\"],\"3uHzkK\":[\"Pinned configuration and overrides\"],\"3zXtla\":[\"Temporarily pause a sleeper’s tracking and alarms\"],\"4-hUpd\":[\"Next report nights\"],\"40Gx0U\":[\"Timezone\"],\"40OXuf\":[\"Reference source\"],\"446E9e\":[\"Exploratory interval estimated\"],\"4BjOe9\":[\"click a night\"],\"4QTTLk\":[\"Memory samples: \",[\"0\"],\" of \",[\"1\"],\"; largest gap: \",[\"2\"],\" seconds\"],\"4Xq3Qs\":[\"Replay stage traces\"],\"4ZsrjP\":[\"Revision \",[\"0\"],\" · \",[\"1\"],\" · \",[\"2\"]],\"4_5Byh\":[\"Report the index only after\"],\"4ajvlE\":[[\"0\"],\" records\"],\"4ba0NE\":[\"Scheduled\"],\"4cbaBq\":[\"Circles are recomputed readings; squares are reference points; horizontal bars are reference intervals. Only the two displayed pages are shown. This visual overlay does not create new matched pairs or scores.\"],\"4d-mVQ\":[\"Stored vitals: \",[\"0\"],\"; movement records: \",[\"1\"]],\"4mi85N\":[\"Wake\"],\"4szmRA\":[\"Equal-night differences and pooled duration scores use different weighting. Coverage loss must be considered alongside score changes.\"],\"4wjzfS\":[\"Macro F1\"],\"4ylXAL\":[\"Prospective observation report\"],\"5-4l5i\":[\"Update channel\"],\"51-xfW\":[\"Times shown in \",[\"timezone\"]],\"51WyWB\":[\". Separate from the profile.\"],\"563t94\":[\"Next archive page\"],\"5716sl\":[\"Trace configuration\"],\"5BvHkO\":[\"Previous numeric page\"],\"5Mc__K\":[\"Prepare a new request with the current baseline\"],\"5ZoFxn\":[\"Thresholds are part of this experiment. Supplying thresholds does not qualify a promotion policy.\"],\"5_rcZN\":[\"Candidate saved: \",[\"saved\"]],\"5doABu\":[\"Auto-on\"],\"5jKV9V\":[\"Job details\"],\"5pWEdW\":[\"These scores compare readings recomputed from retained waveforms. Shared-timestamp scores use observations available in every configuration. Differences describe agreement with the reference and do not establish validated improvement.\"],\"5uuxPO\":[\"Some health evidence is unavailable or changed qualification during execution.\"],\"60ebf_\":[\"SSH identity\"],\"6C5LWh\":[\"Pod health and diagnostics\"],\"6KrHKt\":[\"Identical to the saved profile; restoring only re-requests it.\"],\"6Njx8W\":[\"Reading RAW archives · \",[\"0\"],\" / \",[\"1\"]],\"6Pvtlo\":[\"HR error · holdout\"],\"6RQpjn\":[\"Cancellation requested\"],\"6_cgQY\":[\"Reproducible sampling seed\"],\"6_dCYd\":[\"Overview\"],\"6o-CER\":[\"freshness unknown\"],\"6qR6Df\":[\"Source / revision\"],\"6tj-Z0\":[\"Newest profiles\"],\"6uwzJJ\":[\"Backtests\"],\"71Z__Z\":[\"Validated activation\"],\"7BI5x7\":[\"Override intent can change even when the resolved value stays the same.\"],\"7Bj3x9\":[\"Failed\"],\"7Hnopa\":[\", with 1 override\"],\"7L3hkB\":[\"Exact normalized timestamps are shown in UTC. Values are not interpolated.\"],\"7Moz13\":[\"Saved profile against previous\"],\"7T4D_c\":[\"Readings outside these limits are ignored\"],\"7hw71T\":[\"Raw sensor streams\"],\"7l15X4\":[\"failed\"],\"7l_Tjk\":[[\"stages\"],\" sleep-stage values\"],\"7m2vSb\":[\"While an alarm is ringing\"],\"7oRNr7\":[\"What a tap does to a ringing alarm\"],\"7qeI1z\":[\"Pinned evaluation protocol\"],\"7qftNU\":[\"Release detailed report\"],\"7vEC4B\":[\"current\"],\"8-x9lY\":[\"Migrated sleep-stage settings into the profile\"],\"8CnPMu\":[\"HRV MAE / bias (\",[\"0\"],\")\"],\"8TIz1S\":[\"No recorded nights for this side.\"],\"8Whu0n\":[\"Too few independent nights for a validation split; descriptive evaluation only.\"],\"8ZSsNo\":[\"Adds the pod to Apple Home. Local-only — no Apple servers.\"],\"8f8vg9\":[\"The server groups connected sessions into whole nights in the device timezone before assigning tuning, validation, and holdout sets. A split is not evidence of improvement.\"],\"8f9lK-\":[\"Next session boundary\"],\"8hxWfI\":[\"No matching observations.\"],\"8kkt--\":[\"Compare reference\"],\"8lcee1\":[\"Overridden\"],\"8m8FBC\":[\"Start from current profile\"],\"8nOcxV\":[\"Execution completed\"],\"8pq43b\":[\"HRV index error\"],\"8vYOP0\":[\"Immediate processing boundary\"],\"8wngZM\":[\"Fallback\"],\"8wu9lr\":[\"Queued\"],\"8xEouR\":[\"Holdout is the number to trust; tuning nights were used to pick these values.\"],\"92LEHj\":[\"Used on the Temp screen of this device\"],\"9HGU1A\":[\"Output minutes\"],\"9KnPbi\":[\"Comparison report hash\"],\"9RckBe\":[\"Hello, tRPC test page!\"],\"9S8_IK\":[\"Retained input integrity checked by the server.\"],\"9Xwfwj\":[\"No references selected. This dataset cannot establish agreement with reference measurements.\"],\"9aloPG\":[\"References\"],\"9dnk8H\":[\"This is the retained evaluation result, not current activation approval or clinical accuracy. Application checks current evidence and settings again.\"],\"9fUe-g\":[\"No evaluated configuration is available.\"],\"A1Aqyj\":[\"Breathing rate\"],\"A1taO8\":[\"Search\"],\"A8uc8S\":[\"Frozen stage objective thresholds\"],\"ABXRh6\":[\"Disk usage and recording\"],\"ALIxuu\":[\"Selected reference revisions: \",[\"0\"],\" / 20\"],\"ASwFip\":[\"Stage calibration quality is an explicit replay assumption, not a recovered sensor measurement. Stored-reading comparison does not test numerical parameter changes.\"],\"AZtrRp\":[\"Backtest jobs\"],\"AeJ9jx\":[\"Brightness of the pod’s light\"],\"AlrzpB\":[\"The observation gap exceeded the planned limit.\"],\"Apj80l\":[\"Observed issues need review.\"],\"Aws57Q\":[\"Older imports\"],\"AxM6wv\":[\"Report evidence\"],\"B2rx0Y\":[\"Keep saved profile\"],\"B5W0zb\":[\"These scores compare original stored readings. Identical numerical results across profiles do not validate numerical parameter changes.\"],\"BGoUTB\":[\"Reference extent: \",[\"start\"],\" to \",[\"end\"],\" (\",[\"timezone\"],\")\"],\"BHqq1y\":[\"Retry same scheduling request\"],\"BMx22g\":[\"Reference records \",[\"0\"],\"–\",[\"1\"],\" of \",[\"2\"]],\"BXW6e-\":[\"Unavailable or belongs to a different sleeper.\"],\"Bb1uwv\":[\"No Watch pairs in these nights\"],\"BuBE8H\":[\"Signal replay unavailable: raw waveforms and processing context have not been retained by this service.\"],\"BvyPVP\":[\"Temperature curves, power and alarms\"],\"BxeSfv\":[\"Previous reference page\"],\"C0vtfT\":[\"No accepted time range.\"],\"CLYcpa\":[\"Validation exclusions\"],\"CLfuqo\":[\"Newest experiments\"],\"CWrY1e\":[\"Selected archives for this night: \",[\"0\"],\" / 64\"],\"Cc0BhR\":[\"Accept an estimate when it is within\"],\"CdAsLU\":[\"Low-signal calibration quality threshold\"],\"CdAt7D\":[\"Light or dark appearance\"],\"Ci9D6l\":[\"Import reference\"],\"Cie-li\":[\"Prospective observations\"],\"CjIZ1O\":[\"Worker health observations are stale.\"],\"CvehYe\":[\"Unmatched references\"],\"Cy6Gb9\":[\"Shared observations\"],\"CyzcAv\":[\"Preview normalized records before saving them on the pod.\"],\"D32Y23\":[\"SLEEP STAGES\"],\"DDb_NZ\":[\"Dataset nights\"],\"DFyeaF\":[\"Window IBI variability index\"],\"DHhJ7s\":[\"Previous\"],\"DIrJXu\":[\"Signal limits\"],\"DPHzQ9\":[\"Saved profile revisions\"],\"DPb-qk\":[\"Editing from the currently saved profile.\"],\"DSphLX\":[\"Observed process-group peak RSS: \",[\"0\"],\" MiB\"],\"DWGgAw\":[\"Linking Watch data already on the pod…\"],\"DXPGRI\":[\"Setting up the replay…\"],\"DnDpLH\":[\"Inspect candidate changes\"],\"Dr_Xtk\":[[\"title\"],\": MAE and bias per night, pod minus Watch, in \",[\"unit\"],\".\",[\"0\"]],\"Dt8YN3\":[\"Equal-night mean agreement difference: \",[\"0\"]],\"DtefQU\":[[\"0\"],\" \",[\"1\"],\": previous \",[\"2\"],\", saved \",[\"3\"],\" bpm\"],\"E1wNkc\":[\"Breathing rate (breaths/min)\"],\"E3rH0L\":[\"Nights as a table\"],\"E8ws29\":[\"Each night's heart rate against the reference appears here once a backtest has run.\"],\"EF4ZiR\":[\"Output coverage\"],\"EI1f8X\":[\"The saved profile or parameter definitions are incompatible with this editor.\"],\"EN1f1Y\":[\"Execution state is separate from the strength of biometric evidence.\"],\"E_GXXi\":[\"latest \",[\"0\"]],\"EdQY6l\":[\"None\"],\"Ef7StM\":[\"Unknown\"],\"EfcF_P\":[\"This is the first-to-last record span, not continuous coverage or overlap with pod readings.\"],\"Eine1d\":[\"Clocks across the app; scheduled times are unchanged\"],\"EjJl4z\":[\"Recall\"],\"EkEvjV\":[\"Import accepted records and omit rejected records\"],\"El6Jsd\":[\"Evaluation protocol\"],\"EmSrGB\":[\"Before\"],\"Emmy17\":[\"Maximum window: \",[\"0\"],\" minutes.\"],\"EoaBI7\":[\"Processor rejected generation \",[\"0\"]],\"EwH7gh\":[\"Per-stage scores on common paired intervals\"],\"F6pfE9\":[\"Active\"],\"FB0rkn\":[\"Report no heart rate when the beat signal scores below\"],\"FEr96N\":[\"Theme\"],\"FFdrAM\":[\"Editing from revision \",[\"revisionId\"]],\"FOSd8f\":[\"Turns a side on once you’ve settled into bed\"],\"FVmZD9\":[\"Biometric calibration side\"],\"FYh4VX\":[\"The request could not be saved for recovery. This attempt was not sent. Keep this tab open and retry the same request.\"],\"FhWkbT\":[\"Permanently delete import\"],\"FlMg9W\":[\"Precision\"],\"FsHaTL\":[\"Median absolute error\"],\"G6a5fj\":[\"Another revision from this reference family is selected.\"],\"GJlW-e\":[\"Reference coverage using each output: active \",[\"0\"],\", candidate \",[\"1\"],\".\"],\"GKXsLn\":[\"Compare a candidate alongside active processing. Observations do not change your active profile.\"],\"Gi3Y4k\":[\"bpm\"],\"GnvYuO\":[\"Remove session \",[\"id\"]],\"GqVSI2\":[\"Choose a start time in the future.\"],\"GrimP8\":[\"range\"],\"GuCB02\":[\"Trace identity does not match the selected report.\"],\"H07LNp\":[\"Dataset saved: \",[\"0\"]],\"H5aped\":[\"This backtest compared stored readings, so there is no recomputed heart-rate trace to draw.\"],\"HF2Z8Y\":[\"tested on save\"],\"HKbCf-\":[\"Night-by-night sleep, stages and score\"],\"HTxS9y\":[\"Fell back to a compatible profile\"],\"HYPLOV\":[\"Fixed offset added to pod timestamps (ms, ±3600000)\"],\"H_LZii\":[\"Local only keeps the pod from reaching external servers\"],\"HaVLYE\":[\"HR error · validation\"],\"Hd_IYa\":[\"Sleep stages: Cohen's kappa against the Watch per night, 1 is full agreement.\",[\"0\"]],\"Hdrvsg\":[\"Reference comparison is limited to a 64 KiB request.\"],\"HfaYRx\":[\"This tab retains the exact scheduling request across reloads until its outcome is confirmed. Retry does not prepare a new plan.\"],\"Hhh7ZU\":[\"New archive work is currently deferred.\"],\"Hk1yRc\":[\"Higher agreement: \",[\"0\"],\"; lower: \",[\"1\"],\"; unchanged: \",[\"2\"]],\"Hk3J5p\":[\"No Watch stages in these nights\"],\"HkvZuh\":[\"How heart-rate estimates are accepted and tracked\"],\"HlUTnv\":[\"Frozen source records in UTC; incompatible records are listed but not plotted\"],\"HqdcAB\":[\"Paste JSON records or CSV with recordKey, metric, value, unit, and timestamp (or start and end). Use offset-bearing ISO times or Unix milliseconds. This comparison does not save a reference import.\"],\"HrBFhl\":[\"Compared\"],\"HwYvvX\":[\"The stop request is recorded. Saved observations are preserved.\"],\"IABgNx\":[\"MQTT bridge\"],\"IH1KJg\":[\"Common-support agreement difference: \",[\"0\"]],\"IJi09X\":[\"Where schedules and nights are anchored\"],\"ITWmk6\":[\"Errors use the metric unit. Reference pairs are weighted equally within each night; nights are weighted equally in the mean difference. Pooled scores weight all reference pairs equally.\"],\"IZ_SI-\":[\"Pooled shared MAE — baseline: \",[\"0\"],\"; comparison: \",[\"1\"]],\"I_qUhg\":[\"Deviation window\"],\"Iec0GZ\":[\"Reference intervals\"],\"IftrVb\":[\"Frozen reference overlay\"],\"Ih-_r5\":[\"Previous report nights\"],\"Ii14KX\":[\"Execution completed. Review the report before drawing conclusions about agreement or improvement.\"],\"Im5Crw\":[\"Protocol hash\"],\"J3ozEn\":[\"Processing run\"],\"J8ILQE\":[\"Start (UTC)\"],\"JDyznv\":[\"Retained waveform replay\"],\"JKzmi4\":[\"The retained inputs are unavailable for new evaluations.\"],\"JQ7IOd\":[\"Inputs released; metadata retained\"],\"JQU3qt\":[\"Inspect numeric traces\"],\"JRpbpv\":[\"Comparison requests are limited to 64 KiB and 2000 records.\"],\"JaKl6i\":[\"H holdout\"],\"JfPdso\":[\"Report identity\"],\"Jh5xi1\":[\"Pump, water and firmware state\"],\"Jk2iNN\":[\"Evaluation split\"],\"JoL8Rk\":[\"The plan could not be prepared. Check the selected profile, window and installed qualification.\"],\"JqNzWV\":[\"Froze a dataset of \",[\"0\"],\" nights\"],\"Jq_0cU\":[\"Side name\"],\"Jsh4sU\":[\"Predicted minutes\"],\"JtkCxN\":[\"Stage details are unavailable or incompatible.\"],\"JvflkO\":[\"Older nights\"],\"JyC-qp\":[\"Source channel\"],\"JzH2wX\":[\"HRV\"],\"K2uv7O\":[\"Service health and the live sensor pipeline\"],\"K6QhkO\":[\"No worker memory observation is available.\"],\"KB9NWO\":[\"Scheduling recovery is unavailable or invalid. Review existing runs before clearing this tab’s session data; an earlier request may have been saved on the pod.\"],\"KFB8Et\":[[\"w\"],\" d\"],\"KFwvG_\":[\"Coverage estimates use nominal recording cadence; they do not prove continuous signal support.\"],\"KOq34a\":[\"when\"],\"KUj43p\":[\"Common paired minutes: \",[\"0\"]],\"KUjOb9\":[\"running\"],\"KWfkdX\":[\"Candidate revision \",[\"0\"],\": \",[\"1\"]],\"K_F6pa\":[\"Saving…\"],\"Ksal0J\":[\"Next numeric page\"],\"Kvt2s_\":[\"Delete import\"],\"Kwp5NK\":[\"Delete these source measurements permanently? Retained dataset copies must be released separately.\"],\"KwxEI4\":[\"Candidate coverage fell below the planned limits.\"],\"L1LSAe\":[\"MAE\"],\"L1baKz\":[\"Agreement\"],\"L445Bk\":[\"Waiting for the observation window.\"],\"L8V7Dz\":[\"Daily prime\"],\"LDHXy9\":[\"Deviation from Apple Watch\"],\"LF9GJc\":[\"Retaining the archives…\"],\"LLEze7\":[\"Newest nights\"],\"LOv901\":[\"Groups use native reference timestamps and record types, independently of candidate output. Half-window groups exclude intervals crossing the midpoint. Groups overlap and are not independent experiments. These are not motion or artifact subgroups.\"],\"LhMjLm\":[\"Time\"],\"LiR3l8\":[\"REM\"],\"LnsCL8\":[\"Include this session\"],\"Lt78-z\":[\"Not requested\"],\"LtUd0r\":[\"These are descriptive agreement results, not clinical accuracy, independent holdout evidence, or authorization to activate a profile.\"],\"M0faGQ\":[[\"0\"],\" · \",[\"1\"],\" · revision \",[\"2\"]],\"M4ek4i\":[\"No inspected archives overlap this night. Inspect archives first.\"],\"M5TcIX\":[\"Replay retained waveforms\"],\"M5zFwb\":[\"Manual application is unvalidated. It can change heart rate, breathing rate, the HRV index, and dependent sleep stages.\"],\"MEC08x\":[\"Use offset-bearing ISO timestamps or Unix milliseconds. Each record needs recordKey, metric, value, unit, and timestamp (or start and end). JSON uses an array; CSV uses these field names as headers. Imports are limited to 2 MiB and 2000 records.\"],\"MK62TH\":[\"End (UTC)\"],\"MOqNC_\":[\"Frozen night\"],\"MRXPwy\":[\"reference\"],\"MTn9vw\":[\"kappa\"],\"MW8x7A\":[\"This is sampled summed RSS for the replay coordinator and its workers. Shared pages may be counted more than once; short peaks between observations may be missed.\"],\"Mb-EVa\":[\"This report was released. Its audit hash remains, but detailed results are unavailable.\"],\"MeoKQ0\":[\"Rules that change the bed for you\"],\"Mf9gx7\":[\"Reference import failed.\"],\"MibmVu\":[\"holdout\"],\"MkUjVh\":[\"Use the same sleeper identity as the reference records you intend to compare.\"],\"MmNR0n\":[\"Publishes status and biometrics, accepts commands\"],\"Mu1HF2\":[\"Remove reference \",[\"0\"]],\"Mu7RUc\":[\"Inspect dataset\"],\"MuDrlT\":[\"no reference device · excluded from error\"],\"Mv-Tbq\":[\"accepted estimates in the tracker\"],\"NGoTyQ\":[\"Stage rules on original readings\"],\"NHlrjI\":[\"Point\"],\"NJYR0F\":[\"Data format\"],\"NMh7kF\":[\"Stored-reading comparison available\"],\"NRBL74\":[\"expired\"],\"NVswTS\":[\"Keep the last\"],\"Na6zmY\":[\"Compatibility\"],\"NawEr2\":[\"After\"],\"NcAXpM\":[\"Daily reboot\"],\"NdXF7z\":[\"Work was deferred; your selection and retry key are preserved.\"],\"NhvfPs\":[\"No material improvement under the evaluation policy\"],\"Nik1q1\":[\"Window IBI variability index (ms)\"],\"Nln0z9\":[\"Schedule reviewed observation\"],\"NpbAio\":[\"Restart archive scan\"],\"NxAavP\":[\"Confirm import deletion\"],\"NxjPUC\":[\"Candidate hash: \",[\"0\"]],\"OHHPcb\":[\"The archive directory is unavailable.\"],\"OLWhkH\":[\"Ingestion samples: \",[\"0\"],\" of \",[\"1\"],\" admission checks\"],\"OVSP4J\":[\"Retain a copy of the selected nights and reference revisions. Future edits or source deletion do not alter this dataset.\"],\"OahhRr\":[\"show\"],\"OqNNR4\":[\"Shared MAE difference\"],\"Ox14On\":[\"Nightly archive push\"],\"OzklQP\":[\"Heart rate (bpm)\"],\"PDDE5l\":[\"Reference clock offset: \",[\"0\"],\" seconds; point tolerance: \",[\"1\"],\" seconds.\"],\"PEdBDO\":[\"Sleeper identity: \",[\"subjectId\"]],\"PGC40a\":[\"Previous trace page\"],\"PHHETW\":[\"Reference intervals excluded at window midpoints: \",[\"0\"]],\"PKKYKp\":[\"Restore previous profile\"],\"PbhekP\":[\"not tested\"],\"PbpWGe\":[\"Profile resolution failed.\"],\"PdTcHl\":[\"No coverage reduction detected\"],\"PvFcah\":[\"Inputs retained\"],\"PxBet3\":[\"Evaluation dataset\"],\"PygeGm\":[\"Engine manifest hash\"],\"PzWjOZ\":[\"Insufficient paired nights\"],\"Q0FsEw\":[\"Choose who normally sleeps here\"],\"Q6Fvyb\":[\"Import preview\"],\"Q73cLK\":[\"Select recorded waveforms\"],\"QCJQvN\":[\"Before configuration hash\"],\"QG2GiO\":[\"queued\"],\"QGPgrh\":[\"Original stored readings were compared; numerical parameter changes were not replayed.\"],\"QIgpE4\":[\"HEART RATE\"],\"QIqJcS\":[\"Some reference records have incompatible units or metric definitions and were excluded.\"],\"QTD6X8\":[\"Job time through publication preparation: \",[\"0\"],\" seconds\"],\"QVD7Dt\":[\"Night \",[\"0\"]],\"Q_YNRG\":[\"Overwrites the saved profile and requests it; the current one becomes previous.\"],\"QkqTjY\":[\"Observation report\"],\"QrhaVg\":[\"Units\"],\"QsLiI0\":[\"Edit a new candidate from this revision\"],\"Qy1CFj\":[\"Active profile hash\"],\"R-9uNr\":[\"Candidate low-signal threshold\"],\"R-sAH4\":[\"Only the current page is plotted. Dots represent individual readings; gaps and missing values are not interpolated. Original stored readings remain unchanged.\"],\"R1u0BV\":[\"Reference definitions are incompatible.\"],\"R4QNtj\":[\"Coverage of planned observation intervals\"],\"RC3Rei\":[\"Partition timezone: \",[\"0\"]],\"RIVQIl\":[\"Schema checks passed. Agreement with reference measurements has not been evaluated.\"],\"RMSkhT\":[\"These edits belong only to the candidate. Rule order matters: the first matching rule wins.\"],\"RWhQ_V\":[\"Complete the required fields within their stated bounds.\"],\"RZ1K0m\":[\"Value / unit\"],\"Raeq5C\":[\"Breathing error\"],\"Rb1qTE\":[\"Observing\"],\"RbVCQP\":[\"Night covered\"],\"RiQMUh\":[\"Running\"],\"S1gPr0\":[\"I intend to restore system defaults without validation evidence.\"],\"S2Jom8\":[\"After configuration hash\"],\"S8EfUf\":[\"Original replay timestamps, without reference clock adjustment\"],\"SBZ1sk\":[\"Bed and water temperature history\"],\"SCGU2U\":[\"Newest jobs\"],\"SCc4qv\":[\"Frozen input details\"],\"SGRCD8\":[\"Pooled stage confusion\"],\"SMGWlJ\":[\"Show all \",[\"0\"]],\"SRE0Dv\":[\"Processor acknowledged generation \",[\"0\"]],\"SV_0fn\":[\"The current pod algorithm reports a window IBI variability index, not clinical RMSSD. Older readings may have an unknown definition.\"],\"ScQkbv\":[\"Whole-night partitions assigned; biometric performance is not yet validated.\"],\"Sfd0oa\":[\"Publishes climate, switch and sensor entities\"],\"SgRypX\":[\"No reference imports for this side.\"],\"SnDUEP\":[\"Frozen dataset\"],\"T0Izom\":[\"Frozen and queued. The backtest replays every split; results appear as each finishes.\"],\"T4wPfY\":[\"Equal-night mean MAE difference: \",[\"0\"]],\"TLDDXM\":[\"Numeric trace night\"],\"TQwzCx\":[\"Keep retained inputs\"],\"T_87By\":[\"Parameter\"],\"Th6Noy\":[\"Reference-defined subgroup comparisons\"],\"TpHstq\":[\"ms\"],\"Tru_Os\":[\"Next trace page\"],\"TwpMH6\":[\"Remove stage override\"],\"TyB_3E\":[\"Biometric calibration\"],\"U5N8X7\":[\"saved\"],\"U8n1HU\":[\"BREATHING\"],\"UFlEgN\":[\"No override intent changes.\"],\"UFxPjw\":[\"Improved agreement under the qualified evaluation policy\"],\"UL2mer\":[\"Which firmware pipeline the pod reads\"],\"UL6Xbb\":[\"Numerical errors by night\"],\"UMJp3J\":[\"Evaluated minutes: \",[\"0\"]],\"UOHqa2\":[\"Missing evidence: \",[\"reason\"]],\"UOnFf4\":[\"the median\"],\"UWna3M\":[\"Inspect observation\"],\"UZuUP4\":[\"No reference\"],\"UeGR-V\":[\"Inspect session \",[\"0\"]],\"Ufin3V\":[\"Largest observed ingestion age: \",[\"0\"],\" seconds\"],\"UhCJxj\":[\"Processor\"],\"UlKSMd\":[\"Left\"],\"UqSpzV\":[\"Minimum paired nights (3–60)\"],\"Uu5a6k\":[\"Tracking tolerance (bpm)\"],\"UyIxiT\":[\"Nothing changes until you move a control or restore.\"],\"UyxS7G\":[\"Pod minus Watch per night: MAE and bias per metric, and stage kappa\"],\"V7oslX\":[\"Processing failed.\"],\"VFXF98\":[\"Measured sensor calibration for this side:\"],\"VIPxtx\":[\"Dataset sleeper identifier\"],\"VJBi8Y\":[\"Restored system defaults and requested them\"],\"VKjxHP\":[\"Recomputed numeric traces\"],\"VMO9HG\":[\"Exact import identity\"],\"VN4iqH\":[\"Saved sample times: \",[\"0\"],\". Planned observation intervals: \",[\"1\"],\".\"],\"VQewk6\":[\"Smoothing applied after the rules\"],\"VRFZcm\":[\"Temperature unit\"],\"VU3Nrn\":[\"Missing\"],\"VUtcHF\":[\"Compare with reference measurements\"],\"VVWxFk\":[\"Frozen copy of \",[\"0\"],\" nights. Later edits or deletions do not touch it. Whole nights are split before scoring; a split is not evidence on its own.\"],\"VcTMlI\":[\"Exploratory 95% interval: \",[\"0\"],\" to \",[\"1\"]],\"VmTUh8\":[\"Total Python CPU time (seconds)\"],\"VnAP4G\":[\"Current baseline\"],\"VqKzd6\":[\"No retained measurements.\"],\"Vspsiu\":[\"Accepted: \",[\"0\"],\"; rejected: \",[\"1\"],\"; duplicates: \",[\"2\"],\"; unscorable: \",[\"3\"],\"; conflicts: \",[\"4\"]],\"W-i7wJ\":[\"No estimable variation\"],\"W1BnRm\":[\"Vitals with unknown original processing provenance: \",[\"0\"]],\"WCKDwf\":[\"Frozen copy of \",[\"0\"],\" nights and \",[\"1\"],\" reference. Later edits or deletions do not touch it. Whole nights are split before scoring; a split is not evidence on its own.\"],\"WQJ43e\":[\"Retry report\"],\"W_PbSn\":[\"Candidate spike threshold\"],\"WcWtE4\":[\"done · \",[\"0\"]],\"WjCZjy\":[\"Holdout accesses recorded for this experiment: \",[\"0\"]],\"Wk_WYb\":[\"The storage quota was reached.\"],\"Wl_oB_\":[\"Breathing-rate interval limits\"],\"WqUEbt\":[\"Inspect next archive\"],\"WrG-oR\":[\"Explicit stage overrides\"],\"Wucp9l\":[\"↑ ↓ to move · Enter to open · Esc to close\"],\"Wz9mHY\":[\"Common support is the intersection of all evaluated configurations and eligible reference intervals. Own-support scores use each configuration’s available intervals and may describe different portions of the night.\"],\"X5G5TL\":[\"An additional report issue needs review.\"],\"X8JREh\":[\"I intend to expose this holdout. Repeated use, including overlapping datasets, weakens held-out evidence.\"],\"X9Fn3w\":[\"Replay sleep stages\"],\"XDDjJH\":[\"Sessions: \",[\"0\"]],\"XExZoo\":[\"Sampled worker memory peak: \",[\"0\"],\" MiB. Short peaks between samples may be missed.\"],\"XHuCnL\":[\"Baseline shared MAE\"],\"XJOV1Y\":[\"Activity\"],\"XMmhvP\":[\"HRV definitions differ or are partly unknown. A combined HRV average is unavailable.\"],\"XT73o-\":[\"Next session waits for a known empty-bed boundary. Immediate application still waits for a safe processing boundary.\"],\"XXnr5H\":[\"Restart the pod once a day\"],\"X_d3vj\":[\"Tap gestures\"],\"XbkqDp\":[\"Correcting import \",[\"0\"],\". Supply the complete replacement export; the original revision and frozen datasets remain unchanged.\"],\"Xgkhyj\":[\"Flags\"],\"Xl0aFS\":[\"Sleeper identity\"],\"XvImpZ\":[\"br/min\"],\"XyrrCD\":[\"This chart shows only the current page of replay intervals. Gaps are left empty; no stages are inferred between intervals.\"],\"Xzy9KC\":[\"Candidate changes\"],\"Y3vbII\":[\"Resource observations are partial. Worker health reflects the last valid reply, not the complete attempt.\"],\"Y5pne1\":[\"Times shown in \",[\"0\"]],\"YAAuC3\":[\"No stored vitals for comparison\"],\"YAN6qJ\":[\"No nights in this report.\"],\"YFgzea\":[\"Reference comparison snapshot\"],\"YafUsS\":[\"Stage replay available\"],\"Ye-mWr\":[\"Broker connection\"],\"YeXYTR\":[\"Job health observations\"],\"YgOSaJ\":[\"Prepared window (UTC)\"],\"Yhk2w6\":[\"These are original recorded readings. Charts separate known processing runs and HRV definitions. Legacy readings with unknown provenance remain unverified.\"],\"YkeGcg\":[\"No night in the last \",[\"days\"],\" days pairs with Watch data. Pick a longer window.\"],\"YoyYks\":[\"Breathing MAE / bias (\",[\"0\"],\")\"],\"YtMAd9\":[\"config id\"],\"YtwU3b\":[\"Auto-off\"],\"Yx0Ud8\":[\"Requested\"],\"Yy9-qs\":[\"Keep import\"],\"Z325Gl\":[\"Regression under the evaluation policy\"],\"Z6_avU\":[\"Not reported\"],\"Z8Z57S\":[\"The rejected request could not be cleared from browser recovery. Keep this tab open and retry.\"],\"ZB-yZg\":[\"Search pages and settings\"],\"ZCID7r\":[\"Raise or lower the adjustable base\"],\"ZEVjLJ\":[\"Recomputed \",[\"0\"],\"; exact readings follow in the table.\"],\"ZGxvoR\":[\"Resolved configuration hash\"],\"ZIHKzK\":[\"Restore the previous profile\"],\"ZOxlYi\":[\"Repeated holdout exposure weakens independent evidence. Treat reused holdout results as validation, not untouched holdout evidence.\"],\"ZQlAPX\":[\"Frozen coverage and capabilities\"],\"ZYM-e5\":[\"Assumed stage calibration quality: \",[\"0\"]],\"_2a_oX\":[\"After schedule ends\"],\"_3iO4p\":[\"Frozen objective thresholds\"],\"_8-q-t\":[\"Sleeper: \",[\"0\"]],\"_8Othx\":[\"This is descriptive evidence, not validated improvement or permission to activate a profile.\"],\"_CNpb9\":[\"Tables, sizes and maintenance for the pod databases\"],\"_F1gL-\":[\"The observation window was missed.\"],\"_N3nfY\":[\"Snapshot hash\"],\"_RdTy6\":[\"Numerical details are unavailable or incompatible.\"],\"_UU1GQ\":[\"Scored nights: \",[\"0\"],\"; unscored: \",[\"1\"]],\"_WJL1l\":[\"Evaluator build hash\"],\"_YJvA2\":[\"Deleting an import removes its source measurements. Previously frozen datasets are separate retained copies.\"],\"_dmdq7\":[\"Heart rate · \",[\"0\"],\" \",[\"1\"]],\"_dqduX\":[\"Next page\"],\"_fhKhX\":[\"WORKBENCH\"],\"_iu_fT\":[\"Candidate profile\"],\"_m_cqq\":[\"Scheduling was not confirmed. Retry this same request to learn its outcome; do not assume a run was created or stopped.\"],\"_vMmHs\":[\"No resolved value changes.\"],\"_zRJNg\":[\"Recomputed observations: \",[\"0\"]],\"a0hR2f\":[\"Retain waveforms\"],\"a4jIpF\":[\"Shared-timestamp comparisons. Differences are comparison minus baseline; negative error differences mean lower error on shared observations.\"],\"aAzeS3\":[\"Current holdout exposure count: \",[\"0\"]],\"aBSvZr\":[\"Inherits the \",[\"0\"],\" rules and fallback from\"],\"aEj05o\":[\"Incompatible reference\"],\"aEm2DD\":[\"Backtest submission\"],\"aWcLHy\":[\"Holdout\"],\"a_tOrB\":[\"Compare the pod against Apple Watch or other references\"],\"ahCPOh\":[\"No prospective runs for this side.\"],\"akShFD\":[\"Cleanup\"],\"al36z5\":[\"Shared-timestamp comparisons are unavailable in this report.\"],\"aoOfN1\":[\"Descriptive evaluation only\"],\"apfCJ8\":[\"Freeze evaluation inputs\"],\"aqRjDk\":[\"Total Python wall time (seconds)\"],\"azXwgh\":[\"No stage intervals were produced for this selection.\"],\"bAG4xT\":[\"First page\"],\"bAqx-m\":[\"HRV definition\"],\"bIdc7i\":[\"Auto power-off cap\"],\"bKNo3f\":[\"Fahrenheit or Celsius\"],\"bMnAf3\":[\"Recomputed readings and compatible frozen references in the selected metric unit\"],\"bRN5nm\":[\"Software\"],\"bRYfMr\":[\"Newest datasets\"],\"bUIsv2\":[\"Metric window: \",[\"0\"],\" seconds.\"],\"bW1Vv-\":[\"Lost readings\"],\"bZGH6_\":[\"Newest imports\"],\"bcsF7s\":[\"Heart rate\"],\"bjnxtG\":[\"Apply unvalidated revision\"],\"c3Qpen\":[\"Pod status at a glance\"],\"c8Kx_b\":[\"Remove override\"],\"cCEjPJ\":[\"F1\"],\"cESAVR\":[\"No values for this metric on the current page.\"],\"c_Dls2\":[\"No backtest jobs for this side.\"],\"cmG-2L\":[\"Heart rate, HRV and breathing trends\"],\"cnqM2L\":[\"Permanently release report\"],\"coprQn\":[\"I intend to apply this exact revision without validation evidence.\"],\"cueivf\":[\"Exclusions: \",[\"0\"]],\"cwpx1M\":[\"HR error · tuning\"],\"d-PALc\":[\"Resolved parameter changes\"],\"d3IqDh\":[\"Quality\"],\"d3emgn\":[\"Candidate save failed.\"],\"d6dDT8\":[\"Observation window (UTC)\"],\"dEgA5A\":[\"Cancel\"],\"dHvZyR\":[\"quality\"],\"dKKiUb\":[\"Numerical readings were recomputed from retained waveforms. Original stored readings remain unchanged.\"],\"dVSC5E\":[\"Inspect available data before selecting nights for a retained dataset.\"],\"deIqfe\":[\"When the HRV index is reported\"],\"dgvPBj\":[\"bpm of the tracker\"],\"dnpx0n\":[\"Original trace timestamps are shown. Reference scoring adds the frozen offset of \",[\"0\"],\" ms to these timestamps.\"],\"dp1xoT\":[\"validation\"],\"drFd3d\":[\"Freezing the nights…\"],\"dsg4nV\":[\"Dropping readings can lower own-support error. Duplicate timestamps are excluded from shared support. These counts do not measure continuous time coverage.\"],\"dvrg2y\":[\"Paired records\"],\"dw3RHG\":[\"not reported\"],\"dxyEjQ\":[\"Interrupted\"],\"e53Atr\":[\"Attempt \",[\"0\"]],\"e8GyQg\":[\"Metric\"],\"eIz4fP\":[\"Comparison evidence\"],\"eLJnth\":[\"The server pins default, current baseline, and candidate configurations, plus the other side’s configuration. Replay uses retained signals and never replaces original observations.\"],\"eLzX0W\":[\"HomeKit bridge\"],\"eMS-Kh\":[\"Scheduled runs wait for their window and fresh resource admission. No observations are implied yet.\"],\"ea_tpx\":[\"Restore… ▾\"],\"eiQsF1\":[\"No dataset is frozen for this side yet. Freezing takes the newest nights a reference covers, with their RAW archives, so a backtest can replay them.\"],\"erZkEJ\":[\"Next records\"],\"ewu5hx\":[\"Stop observation\"],\"f1PMkf\":[\"Inspect stage traces\"],\"f2Vka4\":[\"Observation details\"],\"f9XWfS\":[\"Original timestamps are shown in \",[\"timezone\"],\". Reference scoring adds the frozen offset of \",[\"0\"],\" ms.\"],\"fDm1vz\":[\"Away mode\"],\"fFKwiD\":[\"Queueing the backtest…\"],\"fMY8OF\":[\"This report version or structure is not supported by this view.\"],\"fduV6w\":[\"Insufficient evidence for validated improvement\"],\"fisQjo\":[\"stage kappa\"],\"fjyJzV\":[\"Recorded configurations: \",[\"0\"],\"; readings with unknown configuration: \",[\"1\"],\".\"],\"fpMxrt\":[\"accepted 10-second IBI windows\"],\"frH3v_\":[\"latest MAE \",[\"0\"],\", bias \",[\"1\"],\" \",[\"unit\"]],\"fsEiED\":[\"Save evaluation protocol\"],\"fsIyEL\":[\"Reference import saved: \",[\"saved\"]],\"fx36Vz\":[\"Nights, sleep stages and vitals\"],\"fxeXBO\":[\"Saved experiments\"],\"g38APT\":[\"Fallback stage\"],\"g8_K4H\":[\"Older jobs\"],\"g9GNn8\":[\"Pooled common-support stage scores\"],\"g9QO1Q\":[\"Calibration views\"],\"gEcnen\":[\"Exact processed-data coverage\"],\"gHMTXI\":[\"Accepted records are not necessarily usable for validation. Incompatible HRV definitions remain unscorable.\"],\"gIsCcS\":[\"Completed nights\"],\"gQp61o\":[\"Reference records outside the captured window: \",[\"0\"]],\"gWywdR\":[\"Available reference records by metric (across revisions)\"],\"gY4IEV\":[\"Review observation report\"],\"gYLm31\":[\"Apply evaluated revision\"],\"gqM0fU\":[\"Retained datasets\"],\"gqtr8Z\":[\"Save failed.\"],\"gsdE1-\":[\"Candidate observation timestamps lost: \",[\"0\"],\"; added: \",[\"1\"],\".\"],\"gsxO3G\":[\"Powers a side off when the pump stalls\"],\"h-_RA9\":[\"Metrics: \",[\"0\"]],\"h8USYG\":[\"Presence and pump context reflect host observations, not proof of the live processor’s cached state.\"],\"hCQg3t\":[\"Select archives for every frozen night, including five minutes of pre-roll. Archive bounds do not prove continuous signal coverage. The server verifies and copies the selected bytes before publishing a new dataset.\"],\"hD-y_c\":[\"Inspect job\"],\"hQDrYd\":[\"Choose a template\"],\"hV5uRE\":[\"Reference points\"],\"hY_84S\":[\"No overlap\"],\"hYpaGJ\":[\"Set each side’s temperature\"],\"hZVN7j\":[\"No overlapping reference records.\"],\"hew6O1\":[\"No observations were saved.\"],\"i4lAMH\":[\"Start from the saved profile. Existing sleep-stage overrides are preserved. Removing a numerical override follows the shipped default.\"],\"iBoQ7e\":[\"Agreement with a named reference does not establish clinical accuracy.\"],\"iLPjcf\":[\"Copies the biometrics archive to a host you control over SSH, once per night\"],\"iNXP29\":[\"Internet access\"],\"iOcCtM\":[\"Row \",[\"0\"],\": \",[\"1\"]],\"iRuL-K\":[\"Kappa\"],\"iSlb8i\":[\"Backtest on \",[\"0\"],\" nights failed\"],\"iTFRRA\":[\"Longest breathing interval (× median)\"],\"iZdGUJ\":[\"The saved profile changed. Compare again before reviewing these changes.\"],\"ickSQa\":[\"Activation request saved. Processor acknowledgement is reported separately below.\"],\"idD8Ev\":[\"Saved\"],\"idUHAF\":[\"Trace night\"],\"ienenm\":[\"Schedule an observation\"],\"iiIc1S\":[\"Added readings\"],\"iyttMX\":[\"Exact recomputed readings, without reference clock adjustment\"],\"izHeGP\":[\"Stage rules\"],\"izUm62\":[\"Compare with saved profile\"],\"j5lpmE\":[\"Reject intervals shorter than\"],\"j87ALW\":[\"Estimate exploratory whole-night uncertainty\"],\"j8f0f7\":[\"Inspect measurements\"],\"jFnLa4\":[\"Turn sides off after a set number of hours\"],\"jGGU20\":[\"Default power state when a curve finishes\"],\"jHJqeF\":[\"No saved experiments for this side.\"],\"jM5CSI\":[\"Saved evidence identity\"],\"j_WgSe\":[\"Tap the top of the cover on your side\"],\"ja10bn\":[\"Temperature control\"],\"jnHbBF\":[\"Reference library\"],\"jnTV6s\":[\"Backtest \",[\"0\"],\". Frozen dataset replayed through the previous and saved profiles; nothing here changes the pod.\"],\"jnd7HN\":[\"Night\"],\"jqzUyM\":[\"Unavailable\"],\"jtiXJv\":[\"What the rules evaluated and why\"],\"k9QdNt\":[\"Aggregation\"],\"kBDFtj\":[\"Bed setup\"],\"kEoNsC\":[\"Inspect frozen inputs and whole-night partitions, or release their retained storage.\"],\"kRbwZR\":[\"The rule list itself differs from the shipped rules.\"],\"kSn7J6\":[\"Scheduled jobs and drift\"],\"kXxqsJ\":[\"Release detailed results permanently? The report hash, job history, and holdout exposure audit remain.\"],\"k_Kc3O\":[\"Candidate rule\"],\"k_tlKH\":[\"Stage agreement is measured against the named reference. It does not establish clinical stage accuracy.\"],\"kg9QHL\":[\"Minimum beat signal score\"],\"klYSYX\":[\"No reference records in the observation window.\"],\"kmVlv0\":[\"Save and request\"],\"knhXFm\":[\"Coverage reduced in at least one evaluated window\"],\"koFCAF\":[\"System defaults\"],\"krN8T4\":[\"First archive page\"],\"krfedI\":[\"Watch SDNN and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values.\"],\"kvoj0l\":[\"Waiting for delivery\"],\"kx0s-n\":[\"Results\"],\"l-ka0P\":[\"Point matching tolerance (ms, 0–300000)\"],\"l-rdOQ\":[\"Health was sampled at admission checks, normally five seconds apart. Unobserved intervals are not continuous health measurements.\"],\"l8XODJ\":[\"Older profiles\"],\"lCtEWn\":[\"Backtest request saved: \",[\"0\"]],\"lGWE4b\":[\"Validation\"],\"lIwsCR\":[\"Save a candidate for evaluation. This does not change live processing.\"],\"lLKx4j\":[\"Turns a side off after you leave the bed\"],\"lPhE6w\":[\"Prepared, not admitted. The pod checks current qualification and health again when scheduling and when execution starts.\"],\"lYQlqL\":[\"Pick a scored night to see its heart-rate trace.\"],\"lZQljm\":[\"Prepare observation plan\"],\"lfcZyG\":[\"Installed version and updates\"],\"lgjajK\":[\"Checking validation evidence…\"],\"lmuVtM\":[\"Each configuration on its own available intervals\"],\"m0Nxk3\":[\"Save candidate without applying\"],\"m3idi0\":[\"Own-support MAE difference\"],\"mCRJge\":[\"bias (+ = pod reads high)\"],\"mEGaVF\":[\"Requested activation · generation \",[\"0\"]],\"mJLKhS\":[\"Trace intervals \",[\"first\"],\"–\",[\"last\"],\" of \",[\"0\"]],\"mPyzNL\":[\"Compare prospective observations with a reference\"],\"mZsnWl\":[\"Minimum IBI windows\"],\"mZzxmI\":[\"The last archive was unavailable. Continue to inspect the next archive.\"],\"mcrx-J\":[\"3D stage\"],\"mizif2\":[\"No retained datasets for this side.\"],\"mjOerZ\":[\"Stage trace for the displayed intervals; exact times and stages follow in the table.\"],\"mkhMIi\":[\"Within the observed limits.\"],\"mmYtG3\":[\"Retry exact activation request\"],\"mpfEb2\":[\"Paired minutes\"],\"mxcjJ3\":[\"First records\"],\"n9nSNJ\":[\"Time format\"],\"nDsRnU\":[\"Numeric trace metric\"],\"nGd0J1\":[\"No matches for “\",[\"q\"],\"”\"],\"nOPbWJ\":[\"Right\"],\"nR_Xo2\":[\"No committed report is available yet.\"],\"nRm1_n\":[\"Candidate hash\"],\"nZvP5d\":[\"Reports describe observed coverage and reference agreement; they do not authorize activation.\"],\"neY-I0\":[\"Heart-rate trace\"],\"nfv2Gn\":[\"Review prepared plan\"],\"njHfRY\":[\"Saved the profile\"],\"nkTSf7\":[\"Tracking history length\"],\"nsVNnB\":[\"URL, TLS, credentials and topic prefix\"],\"nvXKMs\":[\"No backtest yet. Freeze a new dataset below; it replays the newest referenced nights through the previous and saved profiles. Nothing here changes the pod.\"],\"nzhJlu\":[\"Evaluation report\"],\"o0m-W5\":[\"The saved profile changed. Select a recovery action again to make a new request.\"],\"o2CMR_\":[\"Unit: \",[\"0\"],\"; range: \",[\"1\"],\"–\",[\"2\"],\"; default: \",[\"3\"],\"; original: \",[\"4\"]],\"o7BAcK\":[\"LED night mode\"],\"oFAivV\":[\"Night progress is not available yet.\"],\"oQ7Z7k\":[\"Mean absolute error on shared timestamps: active \",[\"0\"],\", candidate \",[\"1\"],\".\"],\"oRepAd\":[\"Save previewed import\"],\"oSES6x\":[\"Errors use the metric unit; signed bias is pod minus reference.\"],\"oSm2At\":[\"Numeric trace identity does not match the selected report.\"],\"oTZWAU\":[\"Release these retained inputs permanently? Existing reports and audit metadata remain. Active jobs must finish or be cancelled first.\"],\"on-veT\":[[\"0\"],\" HR error \",[\"1\"],\" → \",[\"2\"],\" bpm · \",[\"3\"]],\"osmcFY\":[\"tuning\"],\"otbH9Y\":[\"Output coverage uses evaluated time as its denominator. Reference coverage uses eligible reference time. A higher score with reduced coverage is not sufficient evidence of improvement.\"],\"otqFKT\":[\"Archive event bounds (UTC): \",[\"0\"],\" to \",[\"1\"]],\"ouWIPE\":[\"Pinned job inputs\"],\"ovUYdL\":[\"Preferences for the pod and this device\"],\"oxuApB\":[\"Numeric trace configuration\"],\"oz6J2T\":[\"95th percentile absolute error\"],\"p5Tvds\":[\"Refresh report\"],\"p8gpyN\":[\"Prepare backtest\"],\"pAfIv7\":[\"Candidate parameters\"],\"pD9nPP\":[\"Dims the LED overnight\"],\"pWhtyD\":[\"Calibration\"],\"pdCJud\":[\"or longer than\"],\"pdmaPz\":[\"HRV index\"],\"peLE5v\":[\"Lower error: \",[\"0\"],\"; higher: \",[\"1\"],\"; unchanged: \",[\"2\"]],\"piBZoW\":[\"Simulated demo: generated readings, no hardware execution or qualification.\"],\"plwcxa\":[\"The frozen offset of \",[\"clockOffsetMs\"],\" ms is added to recomputed timestamps in this overlay. Reference times stay unchanged. Point matching tolerance: \",[\"0\"],\" ms.\"],\"pn1wGH\":[\"Older datasets\"],\"pzU3_f\":[\"No completed worker resource receipt is available.\"],\"q-GSeQ\":[\"Exploratory 95% interval for MAE difference: \",[\"0\"],\" to \",[\"1\"]],\"q268Hy\":[\"Choose a future window within the template limit. Preparing a plan does not schedule it.\"],\"q35hV5\":[\"Reference coverage\"],\"q8lqrb\":[\"Compare stored readings\"],\"qKKmRI\":[\"Ctrl K\"],\"qQyQVC\":[\"Cancel backtest\"],\"qbMXVo\":[\"Progress: \",[\"0\"],\" / \",[\"1\"],\" nights\"],\"qc-DVG\":[\"Assumed calibration quality (0–1)\"],\"qdIvCQ\":[\"Activation timing\"],\"qjP3h7\":[\"Scored nights: \",[\"0\"],\"; unscored: \",[\"1\"],\"; coverage reduced: \",[\"2\"]],\"qlh_FJ\":[\"Plan hash: \",[\"0\"]],\"qo0fEa\":[\"Check Overview for current processor health; a past acknowledgement does not prove current health.\"],\"qqZDsc\":[\"Observations\"],\"qw2orZ\":[\"Original stored-reading comparison\"],\"qwp7QZ\":[\"Permanently release inputs\"],\"qzhWuP\":[\"Parent revision\"],\"qzhiSq\":[\"I intend to restore the exact previous profile without validation evidence.\"],\"r3sa6W\":[\"Experiment saved: \",[\"0\"]],\"rJRd6m\":[\"The key the pod uses to reach your host\"],\"rLBjVo\":[\"Active generations: left \",[\"0\"],\", right \",[\"1\"],\".\"],\"rMag_1\":[\"Freezing failed.\"],\"rPk-pR\":[\"unchanged\"],\"rSRVPh\":[\"A saved request does not mean execution has started or succeeded. Inspect the job for its current state.\"],\"rT2tqA\":[\"Reference format\"],\"rZSSdB\":[\"Profile lifecycle\"],\"rnN7wn\":[\"No backtest yet. This dataset has no waveform replay; freeze a new dataset below to set one up. Nothing here changes the pod.\"],\"rruaq8\":[\"Reference identity does not match the selected report.\"],\"ruHgkn\":[\"Each 5-minute epoch takes the first rule that matches\"],\"sN516V\":[\"Pump stall protection\"],\"sPFHpI\":[\"Disk\"],\"sbMCzq\":[\"No compatible values on these pages.\"],\"scVcMn\":[\"HR MAE / bias (\",[\"0\"],\")\"],\"sdPN1F\":[\"Dataset\"],\"sdgA-V\":[\"Reference comparison failed.\"],\"sgOAS_\":[\"Saved observations: \",[\"0\"]],\"srnBNJ\":[\"no reference\"],\"svAg_h\":[\"Freeze a new dataset\"],\"t-Vlce\":[\"Nothing has happened on this side yet.\"],\"t072kc\":[\"Choosing nights the reference covers…\"],\"t85xzT\":[\"HR error per night · bpm vs reference\"],\"t9S3g1\":[\"Compare against the saved profile. This is a configuration comparison, not validation evidence.\"],\"tBe0Mi\":[\"What the saved profile did\"],\"tEXMPn\":[\"Restore previous\"],\"tQU1G2\":[\"Limitations\"],\"tRmb9r\":[\"Recent service logs\"],\"tToCKC\":[\"Retained bytes: \",[\"0\"]],\"tXkhj_\":[\"Start\"],\"ta6ak8\":[\"Freeze selected inputs\"],\"tf6U9f\":[\"Compressed bytes: \",[\"0\"]],\"ti4sFo\":[\"Stored a \",[\"0\"],\" reference import\"],\"ts0Iq9\":[\"Heart-rate spike threshold (standard deviations)\"],\"ttIsX4\":[\"Which releases the pod installs\"],\"ttc02l\":[\"Reference minutes\"],\"u41hN6\":[\"Coverage reduced\"],\"u5a5NC\":[\"Requires re-verification\"],\"u8PbT5\":[\"Also replay sleep stages\"],\"uAQUqI\":[\"Status\"],\"uMzbru\":[\"Retain selected waveforms\"],\"uPiT3Y\":[\"Changed values are white; the previous profile (System defaults) sits underneath. Moving a control edits the saved profile; saving again re-requests it. The processor adopts a profile only after it acknowledges a request.\"],\"uQh6hr\":[\"Comparison / baseline\"],\"uVvWY-\":[\"Recorded nights\"],\"uX0V3h\":[\"Comparison reference records\"],\"uZsFeN\":[\"Apply this exact candidate using the selected evaluation. Evidence and current settings are checked again when applying.\"],\"ubgn_Q\":[\"Candidate sleep-stage rules\"],\"uihHRS\":[\"The pod rejected this plan. Adjust it and prepare again.\"],\"uj0QeQ\":[\"Threshold failed: \",[\"reason\"]],\"uj9vMS\":[\"Shortest breathing interval (× median)\"],\"uk6Pmi\":[\"Import reference measurements\"],\"ukOhBN\":[\"Choose the protocol before looking at results. Creating an experiment does not run a job or apply a profile.\"],\"uv3Ezk\":[\"Candidate low-signal rule\"],\"v0YxJ6\":[\"Common-support details: \",[\"0\"]],\"vAFAci\":[\"Review candidate\"],\"vKQ3HQ\":[\"Heart rate tuning\"],\"vVE3Ho\":[\"Compare frozen references\"],\"vX6LBe\":[\"Incompatible evaluation evidence\"],\"vX8Jre\":[\"HRV INDEX\"],\"vZ6rJ5\":[\"Correct import\"],\"vZdyzL\":[\"Reference coverage is the fraction of eligible reference records paired. Output coverage is the fraction of observations with a value, not continuous time coverage. Sparse samples cannot establish whole-night accuracy.\"],\"vhqhMs\":[\"Worker cleanup has not been confirmed.\"],\"vkIIv_\":[\"Selected sessions: \",[\"0\"],\" / 60\"],\"vl7cYu\":[\"Sensor data source\"],\"vq24aI\":[\"Measured Python processes: \",[\"0\"],\" of \",[\"1\"]],\"vq2FYw\":[\"Rule \",[\"0\"]],\"vrQQgz\":[\"Profiles\"],\"vuyIUW\":[\"Candidate and active readings could not be paired reliably.\"],\"vv7kpg\":[\"Cancelled\"],\"w6ZzbW\":[\"previous\"],\"wHpeCu\":[\"Tuning\"],\"wKbWyv\":[\"Saves it as the profile and requests it; the current saved profile becomes previous. The processor keeps running what it has until it acknowledges the request.\"],\"wMHvYH\":[\"Value\"],\"wOA2YL\":[\"A saved revision is not evidence of validation or processor adoption.\"],\"wOuuTa\":[\"Reference / predicted\"],\"wPpM6Q\":[\"Plan hash\"],\"wQBmjJ\":[\"Breathing tuning\"],\"wRR604\":[\"Pages\"],\"wTOwz-\":[\"Applied\"],\"we3ttu\":[\"Dataset hash\"],\"wn_sE_\":[\"Signed bias\"],\"wu6Pa1\":[\"LED brightness\"],\"ww-u9k\":[\"Accepted: \",[\"0\"],\"; rejected: \",[\"1\"],\"; duplicates: \",[\"2\"],\"; unscorable: \",[\"3\"]],\"x0EO-w\":[\"window IBI variability, not clinical RMSSD\"],\"x9pT2j\":[\", with \",[\"count\"],\" overrides\"],\"x9u6nv\":[\", with no overrides\"],\"xCyL2U\":[\"Reference preview failed.\"],\"xDr_ct\":[\"End\"],\"xHMZQc\":[\"Replay processing costs\"],\"xHs5dk\":[\"┆ gen N profile change\"],\"xS38A7\":[\"This older run has no saved candidate revision identity.\"],\"xUBoEO\":[\"Confusion matrix in minutes: reference rows, predicted columns\"],\"xWY4U3\":[\"Automations that adjust the bed for you\"],\"xaHJrr\":[\"No backtest has replayed the saved profile yet. Saving a change replays the frozen dataset on its tuning, validation and holdout nights; nothing here changes the pod.\"],\"xahtIL\":[\"Manual activation\"],\"xem4Yw\":[\"Keep report\"],\"xh-6Jm\":[\"What each side is called\"],\"xh4HSZ\":[\"Eligible reference minutes\"],\"xmGHa-\":[\"Older experiments\"],\"y-5ho7\":[\"Recomputed readings \",[\"first\"],\"–\",[\"0\"],\" of \",[\"1\"]],\"y1-Ttq\":[\"Edit overrides\"],\"y1L8fR\":[\"Stored observations: \",[\"0\"]],\"y7CEna\":[\"Clear this night’s selection\"],\"yD0Ka7\":[\"First half of each window\"],\"yHNO9L\":[\"Reference records\"],\"yJgBTR\":[\"first 500 readings\"],\"yQwtrO\":[\"Normalized reference measurements\"],\"yTWKne\":[\"Finished a backtest on \",[\"0\"],\" nights\"],\"yUns4e\":[\"Exact trace intervals\"],\"yZcT27\":[\"Restore system defaults\"],\"ykpqy2\":[\"Current stage view\"],\"ysAeQM\":[\"Candidate coverage was reduced; lower error alone does not show improvement.\"],\"ywFj2D\":[\"Configuration\"],\"yyCcHp\":[\"Stage coverage and confusion by night\"],\"yydYOL\":[\"Review report\"],\"z1a7gg\":[\"This request refers to a released dataset. Its waveform bytes are unavailable.\"],\"z35-JD\":[\"Sensor baselines for piezo, capacitance and temperature\"],\"z5mSEw\":[\"Waveform dataset retained: \",[\"published\"]],\"zD4VqY\":[\"Not scored\"],\"zHYvnZ\":[\"Smooth isolated epochs\"],\"zPlfe_\":[\"Observation template\"],\"zQ1eT8\":[\"Candidate\"],\"zTAN4I\":[\"Sleeper identifier\"],\"zXaTA9\":[\"Missing observations remain missing. The IBI variability index is not clinical RMSSD.\"],\"zg_dr-\":[\"Durations cover sequential Python work through result generation. Memory is the largest process lifetime peak. These measurements exclude coordinator and scoring costs and do not establish live ingestion health.\"]}")}; \ No newline at end of file +/*eslint-disable*/module.exports={messages:JSON.parse("{\"-7ESf_\":[\"No saved candidate revisions.\"],\"-8VQNP\":[\"Archive scan complete.\"],\"-A51pP\":[\"not run\"],\"-BcCfq\":[\"The full-screen bed on the Temp screen\"],\"-C2YDb\":[\"Queue backtest\"],\"-HG8IU\":[\"Every night is re-scored with the current stage rules; higher is better.\"],\"-LXyQ4\":[\"Pod − Watch per night, by bed-entry date. The goal is zero; dashed lines mark profile changes.\"],\"-USBLd\":[\"Evaluation mode\"],\"-VKOiQ\":[\"This comparison captures a fresh snapshot. An ongoing run may have more observations than the earlier health report.\"],\"-Yo_SK\":[\"This report predates replay process measurements.\"],\"-avT-V\":[\"Circulates water to clear air from the lines\"],\"-gLagq\":[\"released\"],\"-mOi3A\":[\"Preview import\"],\"-pG9wc\":[\"Next reference page\"],\"-tMOt1\":[\"Restored the previous profile and requested it\"],\"-yvkzR\":[\"This request has been superseded by another profile change.\"],\"00b9Bg\":[\"Show recent\"],\"03_grA\":[\"No backtest yet. Import a reference for this side, then freeze nights that have it; the replay scores the previous and saved profiles against it. Nothing here changes the pod.\"],\"0ArZBq\":[\"Resamples (200–5000)\"],\"0Ke-zM\":[\"No prospective observation templates are configured on this pod.\"],\"0RiDQs\":[\"Report hash\"],\"0SoeWE\":[\"Waiting for a worker and resource admission. No execution is implied by a queued request.\"],\"0TTMQ2\":[\"frozen \",[\"0\"],\" · \",[\"1\"]],\"0UEomc\":[\"Reference content hash\"],\"0eWybM\":[\"Common-support macro F1 difference: \",[\"0\"]],\"0fgSB_\":[\"Requesting…\"],\"0g8Hrj\":[\"Source measurements deleted\"],\"18DKey\":[\"Home Assistant discovery\"],\"1E_-sY\":[\"This reporting threshold is not a validated sample-size requirement. Too few or degenerate nights yield no interval.\"],\"1I5fPJ\":[\"Ambiguous timestamps (baseline / comparison)\"],\"1SxkbH\":[\"Revision \",[\"0\"],\"; accepted \",[\"1\"],\"; unscorable \",[\"2\"]],\"1bs1Oi\":[\"Storage used on the pod\"],\"1gZYbz\":[\"Sleep stages\"],\"1gkwth\":[\"covered\"],\"1gq8Fu\":[\"Changed values are white; the previous profile sits underneath. Moving a control edits the saved profile; saving again re-requests it. The processor adopts a profile only after it acknowledges a request.\"],\"1m2ZjF\":[\"Waiting for a processing boundary\"],\"1njn7W\":[\"Light\"],\"1sMQW6\":[\"Unmatched observations\"],\"1zMPXx\":[\"The server captures default, current stage-view, and candidate configurations at submission. Stored readings cannot validate numerical parameter changes.\"],\"22M8hi\":[\"Upload Apple Watch data to see how far this side's readings sit from the Watch, night by night.\"],\"2Ek6a3\":[\"New observation plan\"],\"2FSnGH\":[\"Reference agreement calculated.\"],\"2JsUDv\":[\"Restore and request\"],\"2KVdfN\":[\"Stop recorded\"],\"2LVKeT\":[\"Second half of each window\"],\"2UtXoO\":[\"The window IBI variability index is not clinical beat-to-beat RMSSD. Only compatible metric definitions and aggregation windows are scored.\"],\"2X2m4_\":[\"hide\"],\"2_xXFZ\":[\"Observation request saved: \",[\"saved\"],\". Review its status in the run list; execution is not implied.\"],\"2hjLDv\":[\"Profile revisions here are candidates. Applying one requests it like Save and request does; the overview shows when the processor acknowledges it.\"],\"2kV8bg\":[\"Largest Python process peak memory (MiB)\"],\"2q_goE\":[\"Release retained inputs\"],\"33IC49\":[\"Fahrenheit or Celsius across the app\"],\"33aIUI\":[\"Largest observation gap: \",[\"0\"],\" seconds\"],\"33v1rN\":[\"Compatible\"],\"39Atsr\":[\"Stage replay unavailable\"],\"3GkuKU\":[\"Observation clocks are inconsistent.\"],\"3PRxO3\":[\"Stage\"],\"3SR-aZ\":[\"Inherited default\"],\"3burf-\":[\"Replay saved nights against a profile\"],\"3cOQwy\":[\"Largest observation gap: \",[\"0\"],\" seconds.\"],\"3d05JT\":[\"Comparison shared MAE\"],\"3kR70m\":[\"Shared reference pairs: active \",[\"0\"],\", candidate \",[\"1\"],\".\"],\"3l8RWF\":[\"Deep\"],\"3uHzkK\":[\"Pinned configuration and overrides\"],\"3zXtla\":[\"Temporarily pause a sleeper’s tracking and alarms\"],\"4-hUpd\":[\"Next report nights\"],\"40Gx0U\":[\"Timezone\"],\"40OXuf\":[\"Reference source\"],\"446E9e\":[\"Exploratory interval estimated\"],\"4BjOe9\":[\"click a night\"],\"4QTTLk\":[\"Memory samples: \",[\"0\"],\" of \",[\"1\"],\"; largest gap: \",[\"2\"],\" seconds\"],\"4Xq3Qs\":[\"Replay stage traces\"],\"4ZsrjP\":[\"Revision \",[\"0\"],\" · \",[\"1\"],\" · \",[\"2\"]],\"4_5Byh\":[\"Report the index only after\"],\"4ajvlE\":[[\"0\"],\" records\"],\"4ba0NE\":[\"Scheduled\"],\"4cbaBq\":[\"Circles are recomputed readings; squares are reference points; horizontal bars are reference intervals. Only the two displayed pages are shown. This visual overlay does not create new matched pairs or scores.\"],\"4d-mVQ\":[\"Stored vitals: \",[\"0\"],\"; movement records: \",[\"1\"]],\"4mi85N\":[\"Wake\"],\"4szmRA\":[\"Equal-night differences and pooled duration scores use different weighting. Coverage loss must be considered alongside score changes.\"],\"4wjzfS\":[\"Macro F1\"],\"4ylXAL\":[\"Prospective observation report\"],\"5-4l5i\":[\"Update channel\"],\"51-xfW\":[\"Times shown in \",[\"timezone\"]],\"51WyWB\":[\". Separate from the profile.\"],\"563t94\":[\"Next archive page\"],\"5716sl\":[\"Trace configuration\"],\"5BvHkO\":[\"Previous numeric page\"],\"5Mc__K\":[\"Prepare a new request with the current baseline\"],\"5ZoFxn\":[\"Thresholds are part of this experiment. Supplying thresholds does not qualify a promotion policy.\"],\"5_rcZN\":[\"Candidate saved: \",[\"saved\"]],\"5doABu\":[\"Auto-on\"],\"5jKV9V\":[\"Job details\"],\"5pWEdW\":[\"These scores compare readings recomputed from retained waveforms. Shared-timestamp scores use observations available in every configuration. Differences describe agreement with the reference and do not establish validated improvement.\"],\"5uuxPO\":[\"Some health evidence is unavailable or changed qualification during execution.\"],\"60ebf_\":[\"SSH identity\"],\"6C5LWh\":[\"Pod health and diagnostics\"],\"6KrHKt\":[\"Identical to the saved profile; restoring only re-requests it.\"],\"6Njx8W\":[\"Reading RAW archives · \",[\"0\"],\" / \",[\"1\"]],\"6Pvtlo\":[\"HR error · holdout\"],\"6RQpjn\":[\"Cancellation requested\"],\"6_cgQY\":[\"Reproducible sampling seed\"],\"6_dCYd\":[\"Overview\"],\"6o-CER\":[\"freshness unknown\"],\"6qR6Df\":[\"Source / revision\"],\"6tj-Z0\":[\"Newest profiles\"],\"6uwzJJ\":[\"Backtests\"],\"71Z__Z\":[\"Validated activation\"],\"7BI5x7\":[\"Override intent can change even when the resolved value stays the same.\"],\"7Bj3x9\":[\"Failed\"],\"7Hnopa\":[\", with 1 override\"],\"7L3hkB\":[\"Exact normalized timestamps are shown in UTC. Values are not interpolated.\"],\"7Moz13\":[\"Saved profile against previous\"],\"7T4D_c\":[\"Readings outside these limits are ignored\"],\"7hw71T\":[\"Raw sensor streams\"],\"7l15X4\":[\"failed\"],\"7l_Tjk\":[[\"stages\"],\" sleep-stage values\"],\"7m2vSb\":[\"While an alarm is ringing\"],\"7oRNr7\":[\"What a tap does to a ringing alarm\"],\"7qeI1z\":[\"Pinned evaluation protocol\"],\"7qftNU\":[\"Release detailed report\"],\"7vEC4B\":[\"current\"],\"8-x9lY\":[\"Migrated sleep-stage settings into the profile\"],\"8CnPMu\":[\"HRV MAE / bias (\",[\"0\"],\")\"],\"8TIz1S\":[\"No recorded nights for this side.\"],\"8Whu0n\":[\"Too few independent nights for a validation split; descriptive evaluation only.\"],\"8ZSsNo\":[\"Adds the pod to Apple Home. Local-only — no Apple servers.\"],\"8f8vg9\":[\"The server groups connected sessions into whole nights in the device timezone before assigning tuning, validation, and holdout sets. A split is not evidence of improvement.\"],\"8f9lK-\":[\"Next session boundary\"],\"8hxWfI\":[\"No matching observations.\"],\"8kkt--\":[\"Compare reference\"],\"8lcee1\":[\"Overridden\"],\"8m8FBC\":[\"Start from current profile\"],\"8nOcxV\":[\"Execution completed\"],\"8pq43b\":[\"HRV index error\"],\"8vYOP0\":[\"Immediate processing boundary\"],\"8wngZM\":[\"Fallback\"],\"8wu9lr\":[\"Queued\"],\"8xEouR\":[\"Holdout is the number to trust; tuning nights were used to pick these values.\"],\"92LEHj\":[\"Used on the Temp screen of this device\"],\"9HGU1A\":[\"Output minutes\"],\"9KnPbi\":[\"Comparison report hash\"],\"9RckBe\":[\"Hello, tRPC test page!\"],\"9S8_IK\":[\"Retained input integrity checked by the server.\"],\"9Xwfwj\":[\"No references selected. This dataset cannot establish agreement with reference measurements.\"],\"9aloPG\":[\"References\"],\"9dnk8H\":[\"This is the retained evaluation result, not current activation approval or clinical accuracy. Application checks current evidence and settings again.\"],\"9fUe-g\":[\"No evaluated configuration is available.\"],\"A1Aqyj\":[\"Breathing rate\"],\"A1taO8\":[\"Search\"],\"A6mP7J\":[\"Opens the docs in a new tab\"],\"A8uc8S\":[\"Frozen stage objective thresholds\"],\"ABXRh6\":[\"Disk usage and recording\"],\"ALIxuu\":[\"Selected reference revisions: \",[\"0\"],\" / 20\"],\"ASwFip\":[\"Stage calibration quality is an explicit replay assumption, not a recovered sensor measurement. Stored-reading comparison does not test numerical parameter changes.\"],\"AZtrRp\":[\"Backtest jobs\"],\"AeJ9jx\":[\"Brightness of the pod’s light\"],\"AlrzpB\":[\"The observation gap exceeded the planned limit.\"],\"Apj80l\":[\"Observed issues need review.\"],\"Aws57Q\":[\"Older imports\"],\"AxM6wv\":[\"Report evidence\"],\"B2rx0Y\":[\"Keep saved profile\"],\"B5W0zb\":[\"These scores compare original stored readings. Identical numerical results across profiles do not validate numerical parameter changes.\"],\"BGoUTB\":[\"Reference extent: \",[\"start\"],\" to \",[\"end\"],\" (\",[\"timezone\"],\")\"],\"BHqq1y\":[\"Retry same scheduling request\"],\"BMx22g\":[\"Reference records \",[\"0\"],\"–\",[\"1\"],\" of \",[\"2\"]],\"BXW6e-\":[\"Unavailable or belongs to a different sleeper.\"],\"Bb1uwv\":[\"No Watch pairs in these nights\"],\"BuBE8H\":[\"Signal replay unavailable: raw waveforms and processing context have not been retained by this service.\"],\"BvyPVP\":[\"Temperature curves, power and alarms\"],\"BxeSfv\":[\"Previous reference page\"],\"C0vtfT\":[\"No accepted time range.\"],\"CLYcpa\":[\"Validation exclusions\"],\"CLfuqo\":[\"Newest experiments\"],\"CWrY1e\":[\"Selected archives for this night: \",[\"0\"],\" / 64\"],\"Cc0BhR\":[\"Accept an estimate when it is within\"],\"CdAsLU\":[\"Low-signal calibration quality threshold\"],\"CdAt7D\":[\"Light or dark appearance\"],\"Ci9D6l\":[\"Import reference\"],\"Cie-li\":[\"Prospective observations\"],\"CjIZ1O\":[\"Worker health observations are stale.\"],\"CvehYe\":[\"Unmatched references\"],\"Cy6Gb9\":[\"Shared observations\"],\"CyzcAv\":[\"Preview normalized records before saving them on the pod.\"],\"D32Y23\":[\"SLEEP STAGES\"],\"DDb_NZ\":[\"Dataset nights\"],\"DFyeaF\":[\"Window IBI variability index\"],\"DHhJ7s\":[\"Previous\"],\"DIrJXu\":[\"Signal limits\"],\"DPHzQ9\":[\"Saved profile revisions\"],\"DPb-qk\":[\"Editing from the currently saved profile.\"],\"DSphLX\":[\"Observed process-group peak RSS: \",[\"0\"],\" MiB\"],\"DWGgAw\":[\"Linking Watch data already on the pod…\"],\"DXPGRI\":[\"Setting up the replay…\"],\"DnDpLH\":[\"Inspect candidate changes\"],\"Dr_Xtk\":[[\"title\"],\": MAE and bias per night, pod minus Watch, in \",[\"unit\"],\".\",[\"0\"]],\"Dt8YN3\":[\"Equal-night mean agreement difference: \",[\"0\"]],\"DtefQU\":[[\"0\"],\" \",[\"1\"],\": previous \",[\"2\"],\", saved \",[\"3\"],\" bpm\"],\"E1wNkc\":[\"Breathing rate (breaths/min)\"],\"E3rH0L\":[\"Nights as a table\"],\"E8ws29\":[\"Each night's heart rate against the reference appears here once a backtest has run.\"],\"EF4ZiR\":[\"Output coverage\"],\"EI1f8X\":[\"The saved profile or parameter definitions are incompatible with this editor.\"],\"EN1f1Y\":[\"Execution state is separate from the strength of biometric evidence.\"],\"E_GXXi\":[\"latest \",[\"0\"]],\"EdQY6l\":[\"None\"],\"Ef7StM\":[\"Unknown\"],\"EfcF_P\":[\"This is the first-to-last record span, not continuous coverage or overlap with pod readings.\"],\"Eine1d\":[\"Clocks across the app; scheduled times are unchanged\"],\"EjJl4z\":[\"Recall\"],\"EkEvjV\":[\"Import accepted records and omit rejected records\"],\"El6Jsd\":[\"Evaluation protocol\"],\"EmSrGB\":[\"Before\"],\"Emmy17\":[\"Maximum window: \",[\"0\"],\" minutes.\"],\"EoaBI7\":[\"Processor rejected generation \",[\"0\"]],\"EwH7gh\":[\"Per-stage scores on common paired intervals\"],\"F6pfE9\":[\"Active\"],\"FB0rkn\":[\"Report no heart rate when the beat signal scores below\"],\"FEr96N\":[\"Theme\"],\"FFdrAM\":[\"Editing from revision \",[\"revisionId\"]],\"FOSd8f\":[\"Turns a side on once you’ve settled into bed\"],\"FVmZD9\":[\"Biometric calibration side\"],\"FYh4VX\":[\"The request could not be saved for recovery. This attempt was not sent. Keep this tab open and retry the same request.\"],\"FhWkbT\":[\"Permanently delete import\"],\"FlMg9W\":[\"Precision\"],\"FsHaTL\":[\"Median absolute error\"],\"G6a5fj\":[\"Another revision from this reference family is selected.\"],\"GJlW-e\":[\"Reference coverage using each output: active \",[\"0\"],\", candidate \",[\"1\"],\".\"],\"GKXsLn\":[\"Compare a candidate alongside active processing. Observations do not change your active profile.\"],\"Gi3Y4k\":[\"bpm\"],\"GnvYuO\":[\"Remove session \",[\"id\"]],\"GqVSI2\":[\"Choose a start time in the future.\"],\"GrimP8\":[\"range\"],\"GuCB02\":[\"Trace identity does not match the selected report.\"],\"H07LNp\":[\"Dataset saved: \",[\"0\"]],\"H5aped\":[\"This backtest compared stored readings, so there is no recomputed heart-rate trace to draw.\"],\"HF2Z8Y\":[\"tested on save\"],\"HKbCf-\":[\"Night-by-night sleep, stages and score\"],\"HTxS9y\":[\"Fell back to a compatible profile\"],\"HYPLOV\":[\"Fixed offset added to pod timestamps (ms, ±3600000)\"],\"H_LZii\":[\"Local only keeps the pod from reaching external servers\"],\"HaVLYE\":[\"HR error · validation\"],\"Hd_IYa\":[\"Sleep stages: Cohen's kappa against the Watch per night, 1 is full agreement.\",[\"0\"]],\"Hdrvsg\":[\"Reference comparison is limited to a 64 KiB request.\"],\"HfaYRx\":[\"This tab retains the exact scheduling request across reloads until its outcome is confirmed. Retry does not prepare a new plan.\"],\"Hhh7ZU\":[\"New archive work is currently deferred.\"],\"Hk1yRc\":[\"Higher agreement: \",[\"0\"],\"; lower: \",[\"1\"],\"; unchanged: \",[\"2\"]],\"Hk3J5p\":[\"No Watch stages in these nights\"],\"HkvZuh\":[\"How heart-rate estimates are accepted and tracked\"],\"HlUTnv\":[\"Frozen source records in UTC; incompatible records are listed but not plotted\"],\"HqdcAB\":[\"Paste JSON records or CSV with recordKey, metric, value, unit, and timestamp (or start and end). Use offset-bearing ISO times or Unix milliseconds. This comparison does not save a reference import.\"],\"HrBFhl\":[\"Compared\"],\"HwYvvX\":[\"The stop request is recorded. Saved observations are preserved.\"],\"IABgNx\":[\"MQTT bridge\"],\"IH1KJg\":[\"Common-support agreement difference: \",[\"0\"]],\"IJi09X\":[\"Where schedules and nights are anchored\"],\"ITWmk6\":[\"Errors use the metric unit. Reference pairs are weighted equally within each night; nights are weighted equally in the mean difference. Pooled scores weight all reference pairs equally.\"],\"IZ_SI-\":[\"Pooled shared MAE — baseline: \",[\"0\"],\"; comparison: \",[\"1\"]],\"I_qUhg\":[\"Deviation window\"],\"Iec0GZ\":[\"Reference intervals\"],\"IftrVb\":[\"Frozen reference overlay\"],\"Ih-_r5\":[\"Previous report nights\"],\"Ii14KX\":[\"Execution completed. Review the report before drawing conclusions about agreement or improvement.\"],\"Im5Crw\":[\"Protocol hash\"],\"J3ozEn\":[\"Processing run\"],\"J8ILQE\":[\"Start (UTC)\"],\"JDyznv\":[\"Retained waveform replay\"],\"JKzmi4\":[\"The retained inputs are unavailable for new evaluations.\"],\"JQ7IOd\":[\"Inputs released; metadata retained\"],\"JQU3qt\":[\"Inspect numeric traces\"],\"JRpbpv\":[\"Comparison requests are limited to 64 KiB and 2000 records.\"],\"JaKl6i\":[\"H holdout\"],\"JfPdso\":[\"Report identity\"],\"Jh5xi1\":[\"Pump, water and firmware state\"],\"Jk2iNN\":[\"Evaluation split\"],\"JoL8Rk\":[\"The plan could not be prepared. Check the selected profile, window and installed qualification.\"],\"JqNzWV\":[\"Froze a dataset of \",[\"0\"],\" nights\"],\"Jq_0cU\":[\"Side name\"],\"Jsh4sU\":[\"Predicted minutes\"],\"JtkCxN\":[\"Stage details are unavailable or incompatible.\"],\"JvflkO\":[\"Older nights\"],\"JyC-qp\":[\"Source channel\"],\"JzH2wX\":[\"HRV\"],\"K2uv7O\":[\"Service health and the live sensor pipeline\"],\"K6QhkO\":[\"No worker memory observation is available.\"],\"KB9NWO\":[\"Scheduling recovery is unavailable or invalid. Review existing runs before clearing this tab’s session data; an earlier request may have been saved on the pod.\"],\"KFB8Et\":[[\"w\"],\" d\"],\"KFwvG_\":[\"Coverage estimates use nominal recording cadence; they do not prove continuous signal support.\"],\"KOq34a\":[\"when\"],\"KUj43p\":[\"Common paired minutes: \",[\"0\"]],\"KUjOb9\":[\"running\"],\"KWfkdX\":[\"Candidate revision \",[\"0\"],\": \",[\"1\"]],\"K_F6pa\":[\"Saving…\"],\"KmaXMK\":[\"Watch SDNN, Watch RMSSD and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values.\"],\"Ksal0J\":[\"Next numeric page\"],\"Kvt2s_\":[\"Delete import\"],\"Kwp5NK\":[\"Delete these source measurements permanently? Retained dataset copies must be released separately.\"],\"KwxEI4\":[\"Candidate coverage fell below the planned limits.\"],\"L1LSAe\":[\"MAE\"],\"L1baKz\":[\"Agreement\"],\"L445Bk\":[\"Waiting for the observation window.\"],\"L8V7Dz\":[\"Daily prime\"],\"LDHXy9\":[\"Deviation from Apple Watch\"],\"LF9GJc\":[\"Retaining the archives…\"],\"LLEze7\":[\"Newest nights\"],\"LOv901\":[\"Groups use native reference timestamps and record types, independently of candidate output. Half-window groups exclude intervals crossing the midpoint. Groups overlap and are not independent experiments. These are not motion or artifact subgroups.\"],\"LhMjLm\":[\"Time\"],\"LiR3l8\":[\"REM\"],\"LnsCL8\":[\"Include this session\"],\"Lt78-z\":[\"Not requested\"],\"LtUd0r\":[\"These are descriptive agreement results, not clinical accuracy, independent holdout evidence, or authorization to activate a profile.\"],\"M0faGQ\":[[\"0\"],\" · \",[\"1\"],\" · revision \",[\"2\"]],\"M4ek4i\":[\"No inspected archives overlap this night. Inspect archives first.\"],\"M5TcIX\":[\"Replay retained waveforms\"],\"M5zFwb\":[\"Manual application is unvalidated. It can change heart rate, breathing rate, the HRV index, and dependent sleep stages.\"],\"MEC08x\":[\"Use offset-bearing ISO timestamps or Unix milliseconds. Each record needs recordKey, metric, value, unit, and timestamp (or start and end). JSON uses an array; CSV uses these field names as headers. Imports are limited to 2 MiB and 2000 records.\"],\"MK62TH\":[\"End (UTC)\"],\"MOqNC_\":[\"Frozen night\"],\"MRXPwy\":[\"reference\"],\"MTn9vw\":[\"kappa\"],\"MW8x7A\":[\"This is sampled summed RSS for the replay coordinator and its workers. Shared pages may be counted more than once; short peaks between observations may be missed.\"],\"Mb-EVa\":[\"This report was released. Its audit hash remains, but detailed results are unavailable.\"],\"MeoKQ0\":[\"Rules that change the bed for you\"],\"Mf9gx7\":[\"Reference import failed.\"],\"MibmVu\":[\"holdout\"],\"MkUjVh\":[\"Use the same sleeper identity as the reference records you intend to compare.\"],\"MmNR0n\":[\"Publishes status and biometrics, accepts commands\"],\"Mu1HF2\":[\"Remove reference \",[\"0\"]],\"Mu7RUc\":[\"Inspect dataset\"],\"MuDrlT\":[\"no reference device · excluded from error\"],\"Mv-Tbq\":[\"accepted estimates in the tracker\"],\"NGoTyQ\":[\"Stage rules on original readings\"],\"NHlrjI\":[\"Point\"],\"NJYR0F\":[\"Data format\"],\"NMh7kF\":[\"Stored-reading comparison available\"],\"NRBL74\":[\"expired\"],\"NVswTS\":[\"Keep the last\"],\"Na6zmY\":[\"Compatibility\"],\"NawEr2\":[\"After\"],\"NcAXpM\":[\"Daily reboot\"],\"NdXF7z\":[\"Work was deferred; your selection and retry key are preserved.\"],\"NhvfPs\":[\"No material improvement under the evaluation policy\"],\"Nik1q1\":[\"Window IBI variability index (ms)\"],\"Nln0z9\":[\"Schedule reviewed observation\"],\"NpbAio\":[\"Restart archive scan\"],\"NxAavP\":[\"Confirm import deletion\"],\"NxjPUC\":[\"Candidate hash: \",[\"0\"]],\"OHHPcb\":[\"The archive directory is unavailable.\"],\"OLWhkH\":[\"Ingestion samples: \",[\"0\"],\" of \",[\"1\"],\" admission checks\"],\"OVSP4J\":[\"Retain a copy of the selected nights and reference revisions. Future edits or source deletion do not alter this dataset.\"],\"OahhRr\":[\"show\"],\"OqNNR4\":[\"Shared MAE difference\"],\"Ox14On\":[\"Nightly archive push\"],\"OzklQP\":[\"Heart rate (bpm)\"],\"PDDE5l\":[\"Reference clock offset: \",[\"0\"],\" seconds; point tolerance: \",[\"1\"],\" seconds.\"],\"PEdBDO\":[\"Sleeper identity: \",[\"subjectId\"]],\"PGC40a\":[\"Previous trace page\"],\"PHHETW\":[\"Reference intervals excluded at window midpoints: \",[\"0\"]],\"PKKYKp\":[\"Restore previous profile\"],\"PbhekP\":[\"not tested\"],\"PbpWGe\":[\"Profile resolution failed.\"],\"PdTcHl\":[\"No coverage reduction detected\"],\"PvFcah\":[\"Inputs retained\"],\"PxBet3\":[\"Evaluation dataset\"],\"PygeGm\":[\"Engine manifest hash\"],\"PzWjOZ\":[\"Insufficient paired nights\"],\"Q0FsEw\":[\"Choose who normally sleeps here\"],\"Q6Fvyb\":[\"Import preview\"],\"Q73cLK\":[\"Select recorded waveforms\"],\"QCJQvN\":[\"Before configuration hash\"],\"QG2GiO\":[\"queued\"],\"QGPgrh\":[\"Original stored readings were compared; numerical parameter changes were not replayed.\"],\"QIgpE4\":[\"HEART RATE\"],\"QIqJcS\":[\"Some reference records have incompatible units or metric definitions and were excluded.\"],\"QTD6X8\":[\"Job time through publication preparation: \",[\"0\"],\" seconds\"],\"QVD7Dt\":[\"Night \",[\"0\"]],\"Q_YNRG\":[\"Overwrites the saved profile and requests it; the current one becomes previous.\"],\"QkqTjY\":[\"Observation report\"],\"QrhaVg\":[\"Units\"],\"QsLiI0\":[\"Edit a new candidate from this revision\"],\"Qy1CFj\":[\"Active profile hash\"],\"R-9uNr\":[\"Candidate low-signal threshold\"],\"R-sAH4\":[\"Only the current page is plotted. Dots represent individual readings; gaps and missing values are not interpolated. Original stored readings remain unchanged.\"],\"R1u0BV\":[\"Reference definitions are incompatible.\"],\"R4QNtj\":[\"Coverage of planned observation intervals\"],\"RC3Rei\":[\"Partition timezone: \",[\"0\"]],\"RIVQIl\":[\"Schema checks passed. Agreement with reference measurements has not been evaluated.\"],\"RMSkhT\":[\"These edits belong only to the candidate. Rule order matters: the first matching rule wins.\"],\"RWhQ_V\":[\"Complete the required fields within their stated bounds.\"],\"RZ1K0m\":[\"Value / unit\"],\"Raeq5C\":[\"Breathing error\"],\"Rb1qTE\":[\"Observing\"],\"RbVCQP\":[\"Night covered\"],\"RiQMUh\":[\"Running\"],\"S1gPr0\":[\"I intend to restore system defaults without validation evidence.\"],\"S2Jom8\":[\"After configuration hash\"],\"S8EfUf\":[\"Original replay timestamps, without reference clock adjustment\"],\"SBZ1sk\":[\"Bed and water temperature history\"],\"SCGU2U\":[\"Newest jobs\"],\"SCc4qv\":[\"Frozen input details\"],\"SGRCD8\":[\"Pooled stage confusion\"],\"SMGWlJ\":[\"Show all \",[\"0\"]],\"SRE0Dv\":[\"Processor acknowledged generation \",[\"0\"]],\"SV_0fn\":[\"The current pod algorithm reports a window IBI variability index, not clinical RMSSD. Older readings may have an unknown definition.\"],\"ScQkbv\":[\"Whole-night partitions assigned; biometric performance is not yet validated.\"],\"Sfd0oa\":[\"Publishes climate, switch and sensor entities\"],\"SgRypX\":[\"No reference imports for this side.\"],\"SnDUEP\":[\"Frozen dataset\"],\"T0Izom\":[\"Frozen and queued. The backtest replays every split; results appear as each finishes.\"],\"T4wPfY\":[\"Equal-night mean MAE difference: \",[\"0\"]],\"TLDDXM\":[\"Numeric trace night\"],\"TQwzCx\":[\"Keep retained inputs\"],\"T_87By\":[\"Parameter\"],\"TbjyhA\":[\"Docs\"],\"Th6Noy\":[\"Reference-defined subgroup comparisons\"],\"TpHstq\":[\"ms\"],\"Tru_Os\":[\"Next trace page\"],\"TwpMH6\":[\"Remove stage override\"],\"TyB_3E\":[\"Biometric calibration\"],\"U5N8X7\":[\"saved\"],\"U8n1HU\":[\"BREATHING\"],\"UFlEgN\":[\"No override intent changes.\"],\"UFxPjw\":[\"Improved agreement under the qualified evaluation policy\"],\"UL2mer\":[\"Which firmware pipeline the pod reads\"],\"UL6Xbb\":[\"Numerical errors by night\"],\"UMJp3J\":[\"Evaluated minutes: \",[\"0\"]],\"UOHqa2\":[\"Missing evidence: \",[\"reason\"]],\"UOnFf4\":[\"the median\"],\"UWna3M\":[\"Inspect observation\"],\"UZuUP4\":[\"No reference\"],\"UeGR-V\":[\"Inspect session \",[\"0\"]],\"Ufin3V\":[\"Largest observed ingestion age: \",[\"0\"],\" seconds\"],\"UhCJxj\":[\"Processor\"],\"UlKSMd\":[\"Left\"],\"UqSpzV\":[\"Minimum paired nights (3–60)\"],\"Uu5a6k\":[\"Tracking tolerance (bpm)\"],\"UyIxiT\":[\"Nothing changes until you move a control or restore.\"],\"UyxS7G\":[\"Pod minus Watch per night: MAE and bias per metric, and stage kappa\"],\"V7oslX\":[\"Processing failed.\"],\"VFXF98\":[\"Measured sensor calibration for this side:\"],\"VIPxtx\":[\"Dataset sleeper identifier\"],\"VJBi8Y\":[\"Restored system defaults and requested them\"],\"VKjxHP\":[\"Recomputed numeric traces\"],\"VMO9HG\":[\"Exact import identity\"],\"VN4iqH\":[\"Saved sample times: \",[\"0\"],\". Planned observation intervals: \",[\"1\"],\".\"],\"VQewk6\":[\"Smoothing applied after the rules\"],\"VRFZcm\":[\"Temperature unit\"],\"VU3Nrn\":[\"Missing\"],\"VUtcHF\":[\"Compare with reference measurements\"],\"VVWxFk\":[\"Frozen copy of \",[\"0\"],\" nights. Later edits or deletions do not touch it. Whole nights are split before scoring; a split is not evidence on its own.\"],\"VcTMlI\":[\"Exploratory 95% interval: \",[\"0\"],\" to \",[\"1\"]],\"VmTUh8\":[\"Total Python CPU time (seconds)\"],\"VnAP4G\":[\"Current baseline\"],\"VqKzd6\":[\"No retained measurements.\"],\"Vspsiu\":[\"Accepted: \",[\"0\"],\"; rejected: \",[\"1\"],\"; duplicates: \",[\"2\"],\"; unscorable: \",[\"3\"],\"; conflicts: \",[\"4\"]],\"W-i7wJ\":[\"No estimable variation\"],\"W1BnRm\":[\"Vitals with unknown original processing provenance: \",[\"0\"]],\"WCKDwf\":[\"Frozen copy of \",[\"0\"],\" nights and \",[\"1\"],\" reference. Later edits or deletions do not touch it. Whole nights are split before scoring; a split is not evidence on its own.\"],\"WQJ43e\":[\"Retry report\"],\"W_PbSn\":[\"Candidate spike threshold\"],\"WcWtE4\":[\"done · \",[\"0\"]],\"WjCZjy\":[\"Holdout accesses recorded for this experiment: \",[\"0\"]],\"Wk_WYb\":[\"The storage quota was reached.\"],\"Wl_oB_\":[\"Breathing-rate interval limits\"],\"WqUEbt\":[\"Inspect next archive\"],\"WrG-oR\":[\"Explicit stage overrides\"],\"Wucp9l\":[\"↑ ↓ to move · Enter to open · Esc to close\"],\"Wz9mHY\":[\"Common support is the intersection of all evaluated configurations and eligible reference intervals. Own-support scores use each configuration’s available intervals and may describe different portions of the night.\"],\"X5G5TL\":[\"An additional report issue needs review.\"],\"X8JREh\":[\"I intend to expose this holdout. Repeated use, including overlapping datasets, weakens held-out evidence.\"],\"X9Fn3w\":[\"Replay sleep stages\"],\"XDDjJH\":[\"Sessions: \",[\"0\"]],\"XExZoo\":[\"Sampled worker memory peak: \",[\"0\"],\" MiB. Short peaks between samples may be missed.\"],\"XHuCnL\":[\"Baseline shared MAE\"],\"XJOV1Y\":[\"Activity\"],\"XMmhvP\":[\"HRV definitions differ or are partly unknown. A combined HRV average is unavailable.\"],\"XT73o-\":[\"Next session waits for a known empty-bed boundary. Immediate application still waits for a safe processing boundary.\"],\"XXnr5H\":[\"Restart the pod once a day\"],\"X_d3vj\":[\"Tap gestures\"],\"XbkqDp\":[\"Correcting import \",[\"0\"],\". Supply the complete replacement export; the original revision and frozen datasets remain unchanged.\"],\"Xgkhyj\":[\"Flags\"],\"Xl0aFS\":[\"Sleeper identity\"],\"XvImpZ\":[\"br/min\"],\"XyrrCD\":[\"This chart shows only the current page of replay intervals. Gaps are left empty; no stages are inferred between intervals.\"],\"Xzy9KC\":[\"Candidate changes\"],\"Y3vbII\":[\"Resource observations are partial. Worker health reflects the last valid reply, not the complete attempt.\"],\"Y5pne1\":[\"Times shown in \",[\"0\"]],\"YAAuC3\":[\"No stored vitals for comparison\"],\"YAN6qJ\":[\"No nights in this report.\"],\"YFgzea\":[\"Reference comparison snapshot\"],\"YafUsS\":[\"Stage replay available\"],\"Ye-mWr\":[\"Broker connection\"],\"YeXYTR\":[\"Job health observations\"],\"YgOSaJ\":[\"Prepared window (UTC)\"],\"Yhk2w6\":[\"These are original recorded readings. Charts separate known processing runs and HRV definitions. Legacy readings with unknown provenance remain unverified.\"],\"YkeGcg\":[\"No night in the last \",[\"days\"],\" days pairs with Watch data. Pick a longer window.\"],\"YoyYks\":[\"Breathing MAE / bias (\",[\"0\"],\")\"],\"YtMAd9\":[\"config id\"],\"YtwU3b\":[\"Auto-off\"],\"Yx0Ud8\":[\"Requested\"],\"Yy9-qs\":[\"Keep import\"],\"Z325Gl\":[\"Regression under the evaluation policy\"],\"Z6_avU\":[\"Not reported\"],\"Z8Z57S\":[\"The rejected request could not be cleared from browser recovery. Keep this tab open and retry.\"],\"ZB-yZg\":[\"Search pages and settings\"],\"ZCID7r\":[\"Raise or lower the adjustable base\"],\"ZEVjLJ\":[\"Recomputed \",[\"0\"],\"; exact readings follow in the table.\"],\"ZGxvoR\":[\"Resolved configuration hash\"],\"ZIHKzK\":[\"Restore the previous profile\"],\"ZOxlYi\":[\"Repeated holdout exposure weakens independent evidence. Treat reused holdout results as validation, not untouched holdout evidence.\"],\"ZQlAPX\":[\"Frozen coverage and capabilities\"],\"ZYM-e5\":[\"Assumed stage calibration quality: \",[\"0\"]],\"_2a_oX\":[\"After schedule ends\"],\"_3iO4p\":[\"Frozen objective thresholds\"],\"_8-q-t\":[\"Sleeper: \",[\"0\"]],\"_8Othx\":[\"This is descriptive evidence, not validated improvement or permission to activate a profile.\"],\"_CNpb9\":[\"Tables, sizes and maintenance for the pod databases\"],\"_F1gL-\":[\"The observation window was missed.\"],\"_N3nfY\":[\"Snapshot hash\"],\"_RdTy6\":[\"Numerical details are unavailable or incompatible.\"],\"_UU1GQ\":[\"Scored nights: \",[\"0\"],\"; unscored: \",[\"1\"]],\"_WJL1l\":[\"Evaluator build hash\"],\"_YJvA2\":[\"Deleting an import removes its source measurements. Previously frozen datasets are separate retained copies.\"],\"_dmdq7\":[\"Heart rate · \",[\"0\"],\" \",[\"1\"]],\"_dqduX\":[\"Next page\"],\"_fhKhX\":[\"WORKBENCH\"],\"_iu_fT\":[\"Candidate profile\"],\"_m_cqq\":[\"Scheduling was not confirmed. Retry this same request to learn its outcome; do not assume a run was created or stopped.\"],\"_vMmHs\":[\"No resolved value changes.\"],\"_zRJNg\":[\"Recomputed observations: \",[\"0\"]],\"a0hR2f\":[\"Retain waveforms\"],\"a4jIpF\":[\"Shared-timestamp comparisons. Differences are comparison minus baseline; negative error differences mean lower error on shared observations.\"],\"aAzeS3\":[\"Current holdout exposure count: \",[\"0\"]],\"aBSvZr\":[\"Inherits the \",[\"0\"],\" rules and fallback from\"],\"aEj05o\":[\"Incompatible reference\"],\"aEm2DD\":[\"Backtest submission\"],\"aWcLHy\":[\"Holdout\"],\"a_tOrB\":[\"Compare the pod against Apple Watch or other references\"],\"ahCPOh\":[\"No prospective runs for this side.\"],\"akShFD\":[\"Cleanup\"],\"al36z5\":[\"Shared-timestamp comparisons are unavailable in this report.\"],\"aoOfN1\":[\"Descriptive evaluation only\"],\"apfCJ8\":[\"Freeze evaluation inputs\"],\"aqRjDk\":[\"Total Python wall time (seconds)\"],\"azXwgh\":[\"No stage intervals were produced for this selection.\"],\"bAG4xT\":[\"First page\"],\"bAqx-m\":[\"HRV definition\"],\"bIdc7i\":[\"Auto power-off cap\"],\"bKNo3f\":[\"Fahrenheit or Celsius\"],\"bMnAf3\":[\"Recomputed readings and compatible frozen references in the selected metric unit\"],\"bRN5nm\":[\"Software\"],\"bRYfMr\":[\"Newest datasets\"],\"bUIsv2\":[\"Metric window: \",[\"0\"],\" seconds.\"],\"bW1Vv-\":[\"Lost readings\"],\"bZGH6_\":[\"Newest imports\"],\"bcsF7s\":[\"Heart rate\"],\"bjnxtG\":[\"Apply unvalidated revision\"],\"c3Qpen\":[\"Pod status at a glance\"],\"c8Kx_b\":[\"Remove override\"],\"cCEjPJ\":[\"F1\"],\"cESAVR\":[\"No values for this metric on the current page.\"],\"c_Dls2\":[\"No backtest jobs for this side.\"],\"cmG-2L\":[\"Heart rate, HRV and breathing trends\"],\"cnqM2L\":[\"Permanently release report\"],\"coprQn\":[\"I intend to apply this exact revision without validation evidence.\"],\"cueivf\":[\"Exclusions: \",[\"0\"]],\"cwpx1M\":[\"HR error · tuning\"],\"d-PALc\":[\"Resolved parameter changes\"],\"d3IqDh\":[\"Quality\"],\"d3emgn\":[\"Candidate save failed.\"],\"d6dDT8\":[\"Observation window (UTC)\"],\"dEgA5A\":[\"Cancel\"],\"dHvZyR\":[\"quality\"],\"dKKiUb\":[\"Numerical readings were recomputed from retained waveforms. Original stored readings remain unchanged.\"],\"dVSC5E\":[\"Inspect available data before selecting nights for a retained dataset.\"],\"deIqfe\":[\"When the HRV index is reported\"],\"dgvPBj\":[\"bpm of the tracker\"],\"dnpx0n\":[\"Original trace timestamps are shown. Reference scoring adds the frozen offset of \",[\"0\"],\" ms to these timestamps.\"],\"dp1xoT\":[\"validation\"],\"drFd3d\":[\"Freezing the nights…\"],\"dsg4nV\":[\"Dropping readings can lower own-support error. Duplicate timestamps are excluded from shared support. These counts do not measure continuous time coverage.\"],\"dvrg2y\":[\"Paired records\"],\"dw3RHG\":[\"not reported\"],\"dxyEjQ\":[\"Interrupted\"],\"e53Atr\":[\"Attempt \",[\"0\"]],\"e8GyQg\":[\"Metric\"],\"eIz4fP\":[\"Comparison evidence\"],\"eLJnth\":[\"The server pins default, current baseline, and candidate configurations, plus the other side’s configuration. Replay uses retained signals and never replaces original observations.\"],\"eLzX0W\":[\"HomeKit bridge\"],\"eMS-Kh\":[\"Scheduled runs wait for their window and fresh resource admission. No observations are implied yet.\"],\"ea_tpx\":[\"Restore… ▾\"],\"eiQsF1\":[\"No dataset is frozen for this side yet. Freezing takes the newest nights a reference covers, with their RAW archives, so a backtest can replay them.\"],\"erZkEJ\":[\"Next records\"],\"ewu5hx\":[\"Stop observation\"],\"f1PMkf\":[\"Inspect stage traces\"],\"f2Vka4\":[\"Observation details\"],\"f9XWfS\":[\"Original timestamps are shown in \",[\"timezone\"],\". Reference scoring adds the frozen offset of \",[\"0\"],\" ms.\"],\"fDm1vz\":[\"Away mode\"],\"fFKwiD\":[\"Queueing the backtest…\"],\"fMY8OF\":[\"This report version or structure is not supported by this view.\"],\"fduV6w\":[\"Insufficient evidence for validated improvement\"],\"fisQjo\":[\"stage kappa\"],\"fjyJzV\":[\"Recorded configurations: \",[\"0\"],\"; readings with unknown configuration: \",[\"1\"],\".\"],\"fpMxrt\":[\"accepted 10-second IBI windows\"],\"frH3v_\":[\"latest MAE \",[\"0\"],\", bias \",[\"1\"],\" \",[\"unit\"]],\"fsEiED\":[\"Save evaluation protocol\"],\"fsIyEL\":[\"Reference import saved: \",[\"saved\"]],\"fx36Vz\":[\"Nights, sleep stages and vitals\"],\"fxeXBO\":[\"Saved experiments\"],\"g38APT\":[\"Fallback stage\"],\"g8_K4H\":[\"Older jobs\"],\"g9GNn8\":[\"Pooled common-support stage scores\"],\"g9QO1Q\":[\"Calibration views\"],\"gEcnen\":[\"Exact processed-data coverage\"],\"gHMTXI\":[\"Accepted records are not necessarily usable for validation. Incompatible HRV definitions remain unscorable.\"],\"gIsCcS\":[\"Completed nights\"],\"gQp61o\":[\"Reference records outside the captured window: \",[\"0\"]],\"gWywdR\":[\"Available reference records by metric (across revisions)\"],\"gY4IEV\":[\"Review observation report\"],\"gYLm31\":[\"Apply evaluated revision\"],\"gqM0fU\":[\"Retained datasets\"],\"gqtr8Z\":[\"Save failed.\"],\"gsdE1-\":[\"Candidate observation timestamps lost: \",[\"0\"],\"; added: \",[\"1\"],\".\"],\"gsxO3G\":[\"Powers a side off when the pump stalls\"],\"h-_RA9\":[\"Metrics: \",[\"0\"]],\"h8USYG\":[\"Presence and pump context reflect host observations, not proof of the live processor’s cached state.\"],\"hCQg3t\":[\"Select archives for every frozen night, including five minutes of pre-roll. Archive bounds do not prove continuous signal coverage. The server verifies and copies the selected bytes before publishing a new dataset.\"],\"hD-y_c\":[\"Inspect job\"],\"hQDrYd\":[\"Choose a template\"],\"hV5uRE\":[\"Reference points\"],\"hY_84S\":[\"No overlap\"],\"hYpaGJ\":[\"Set each side’s temperature\"],\"hZVN7j\":[\"No overlapping reference records.\"],\"hew6O1\":[\"No observations were saved.\"],\"i4lAMH\":[\"Start from the saved profile. Existing sleep-stage overrides are preserved. Removing a numerical override follows the shipped default.\"],\"iBoQ7e\":[\"Agreement with a named reference does not establish clinical accuracy.\"],\"iLPjcf\":[\"Copies the biometrics archive to a host you control over SSH, once per night\"],\"iNXP29\":[\"Internet access\"],\"iOcCtM\":[\"Row \",[\"0\"],\": \",[\"1\"]],\"iRuL-K\":[\"Kappa\"],\"iSlb8i\":[\"Backtest on \",[\"0\"],\" nights failed\"],\"iTFRRA\":[\"Longest breathing interval (× median)\"],\"iZdGUJ\":[\"The saved profile changed. Compare again before reviewing these changes.\"],\"ickSQa\":[\"Activation request saved. Processor acknowledgement is reported separately below.\"],\"idD8Ev\":[\"Saved\"],\"idUHAF\":[\"Trace night\"],\"ienenm\":[\"Schedule an observation\"],\"iiIc1S\":[\"Added readings\"],\"iyttMX\":[\"Exact recomputed readings, without reference clock adjustment\"],\"izHeGP\":[\"Stage rules\"],\"izUm62\":[\"Compare with saved profile\"],\"j5lpmE\":[\"Reject intervals shorter than\"],\"j87ALW\":[\"Estimate exploratory whole-night uncertainty\"],\"j8f0f7\":[\"Inspect measurements\"],\"jFnLa4\":[\"Turn sides off after a set number of hours\"],\"jGGU20\":[\"Default power state when a curve finishes\"],\"jHJqeF\":[\"No saved experiments for this side.\"],\"jM5CSI\":[\"Saved evidence identity\"],\"j_WgSe\":[\"Tap the top of the cover on your side\"],\"ja10bn\":[\"Temperature control\"],\"jnHbBF\":[\"Reference library\"],\"jnTV6s\":[\"Backtest \",[\"0\"],\". Frozen dataset replayed through the previous and saved profiles; nothing here changes the pod.\"],\"jnd7HN\":[\"Night\"],\"jqzUyM\":[\"Unavailable\"],\"jtiXJv\":[\"What the rules evaluated and why\"],\"k9QdNt\":[\"Aggregation\"],\"kBDFtj\":[\"Bed setup\"],\"kEoNsC\":[\"Inspect frozen inputs and whole-night partitions, or release their retained storage.\"],\"kRbwZR\":[\"The rule list itself differs from the shipped rules.\"],\"kSn7J6\":[\"Scheduled jobs and drift\"],\"kXxqsJ\":[\"Release detailed results permanently? The report hash, job history, and holdout exposure audit remain.\"],\"k_Kc3O\":[\"Candidate rule\"],\"k_tlKH\":[\"Stage agreement is measured against the named reference. It does not establish clinical stage accuracy.\"],\"kg9QHL\":[\"Minimum beat signal score\"],\"klYSYX\":[\"No reference records in the observation window.\"],\"kmVlv0\":[\"Save and request\"],\"knhXFm\":[\"Coverage reduced in at least one evaluated window\"],\"koFCAF\":[\"System defaults\"],\"krN8T4\":[\"First archive page\"],\"kvoj0l\":[\"Waiting for delivery\"],\"kx0s-n\":[\"Results\"],\"l-ka0P\":[\"Point matching tolerance (ms, 0–300000)\"],\"l-rdOQ\":[\"Health was sampled at admission checks, normally five seconds apart. Unobserved intervals are not continuous health measurements.\"],\"l8XODJ\":[\"Older profiles\"],\"lCtEWn\":[\"Backtest request saved: \",[\"0\"]],\"lGWE4b\":[\"Validation\"],\"lIwsCR\":[\"Save a candidate for evaluation. This does not change live processing.\"],\"lLKx4j\":[\"Turns a side off after you leave the bed\"],\"lPhE6w\":[\"Prepared, not admitted. The pod checks current qualification and health again when scheduling and when execution starts.\"],\"lYQlqL\":[\"Pick a scored night to see its heart-rate trace.\"],\"lZQljm\":[\"Prepare observation plan\"],\"lfcZyG\":[\"Installed version and updates\"],\"lgjajK\":[\"Checking validation evidence…\"],\"lmuVtM\":[\"Each configuration on its own available intervals\"],\"m0Nxk3\":[\"Save candidate without applying\"],\"m3idi0\":[\"Own-support MAE difference\"],\"mCRJge\":[\"bias (+ = pod reads high)\"],\"mEGaVF\":[\"Requested activation · generation \",[\"0\"]],\"mJLKhS\":[\"Trace intervals \",[\"first\"],\"–\",[\"last\"],\" of \",[\"0\"]],\"mPyzNL\":[\"Compare prospective observations with a reference\"],\"mZsnWl\":[\"Minimum IBI windows\"],\"mZzxmI\":[\"The last archive was unavailable. Continue to inspect the next archive.\"],\"mcrx-J\":[\"3D stage\"],\"mizif2\":[\"No retained datasets for this side.\"],\"mjOerZ\":[\"Stage trace for the displayed intervals; exact times and stages follow in the table.\"],\"mkhMIi\":[\"Within the observed limits.\"],\"mmYtG3\":[\"Retry exact activation request\"],\"mpfEb2\":[\"Paired minutes\"],\"mxcjJ3\":[\"First records\"],\"n9nSNJ\":[\"Time format\"],\"nDsRnU\":[\"Numeric trace metric\"],\"nGd0J1\":[\"No matches for “\",[\"q\"],\"”\"],\"nOPbWJ\":[\"Right\"],\"nR_Xo2\":[\"No committed report is available yet.\"],\"nRm1_n\":[\"Candidate hash\"],\"nZvP5d\":[\"Reports describe observed coverage and reference agreement; they do not authorize activation.\"],\"neY-I0\":[\"Heart-rate trace\"],\"nfv2Gn\":[\"Review prepared plan\"],\"njHfRY\":[\"Saved the profile\"],\"nkTSf7\":[\"Tracking history length\"],\"nsVNnB\":[\"URL, TLS, credentials and topic prefix\"],\"nvXKMs\":[\"No backtest yet. Freeze a new dataset below; it replays the newest referenced nights through the previous and saved profiles. Nothing here changes the pod.\"],\"nzhJlu\":[\"Evaluation report\"],\"o0m-W5\":[\"The saved profile changed. Select a recovery action again to make a new request.\"],\"o2CMR_\":[\"Unit: \",[\"0\"],\"; range: \",[\"1\"],\"–\",[\"2\"],\"; default: \",[\"3\"],\"; original: \",[\"4\"]],\"o7BAcK\":[\"LED night mode\"],\"oFAivV\":[\"Night progress is not available yet.\"],\"oQ7Z7k\":[\"Mean absolute error on shared timestamps: active \",[\"0\"],\", candidate \",[\"1\"],\".\"],\"oRepAd\":[\"Save previewed import\"],\"oSES6x\":[\"Errors use the metric unit; signed bias is pod minus reference.\"],\"oSm2At\":[\"Numeric trace identity does not match the selected report.\"],\"oTZWAU\":[\"Release these retained inputs permanently? Existing reports and audit metadata remain. Active jobs must finish or be cancelled first.\"],\"on-veT\":[[\"0\"],\" HR error \",[\"1\"],\" → \",[\"2\"],\" bpm · \",[\"3\"]],\"osmcFY\":[\"tuning\"],\"otbH9Y\":[\"Output coverage uses evaluated time as its denominator. Reference coverage uses eligible reference time. A higher score with reduced coverage is not sufficient evidence of improvement.\"],\"otqFKT\":[\"Archive event bounds (UTC): \",[\"0\"],\" to \",[\"1\"]],\"ouWIPE\":[\"Pinned job inputs\"],\"ovUYdL\":[\"Preferences for the pod and this device\"],\"oxuApB\":[\"Numeric trace configuration\"],\"oz6J2T\":[\"95th percentile absolute error\"],\"p5Tvds\":[\"Refresh report\"],\"p8gpyN\":[\"Prepare backtest\"],\"pAfIv7\":[\"Candidate parameters\"],\"pD9nPP\":[\"Dims the LED overnight\"],\"pWhtyD\":[\"Calibration\"],\"pdCJud\":[\"or longer than\"],\"pdmaPz\":[\"HRV index\"],\"peLE5v\":[\"Lower error: \",[\"0\"],\"; higher: \",[\"1\"],\"; unchanged: \",[\"2\"]],\"piBZoW\":[\"Simulated demo: generated readings, no hardware execution or qualification.\"],\"plwcxa\":[\"The frozen offset of \",[\"clockOffsetMs\"],\" ms is added to recomputed timestamps in this overlay. Reference times stay unchanged. Point matching tolerance: \",[\"0\"],\" ms.\"],\"pn1wGH\":[\"Older datasets\"],\"pzU3_f\":[\"No completed worker resource receipt is available.\"],\"q-GSeQ\":[\"Exploratory 95% interval for MAE difference: \",[\"0\"],\" to \",[\"1\"]],\"q268Hy\":[\"Choose a future window within the template limit. Preparing a plan does not schedule it.\"],\"q35hV5\":[\"Reference coverage\"],\"q8lqrb\":[\"Compare stored readings\"],\"qKKmRI\":[\"Ctrl K\"],\"qQyQVC\":[\"Cancel backtest\"],\"qbMXVo\":[\"Progress: \",[\"0\"],\" / \",[\"1\"],\" nights\"],\"qc-DVG\":[\"Assumed calibration quality (0–1)\"],\"qdIvCQ\":[\"Activation timing\"],\"qjP3h7\":[\"Scored nights: \",[\"0\"],\"; unscored: \",[\"1\"],\"; coverage reduced: \",[\"2\"]],\"qlh_FJ\":[\"Plan hash: \",[\"0\"]],\"qo0fEa\":[\"Check Overview for current processor health; a past acknowledgement does not prove current health.\"],\"qqZDsc\":[\"Observations\"],\"qw2orZ\":[\"Original stored-reading comparison\"],\"qwp7QZ\":[\"Permanently release inputs\"],\"qzhWuP\":[\"Parent revision\"],\"qzhiSq\":[\"I intend to restore the exact previous profile without validation evidence.\"],\"r3sa6W\":[\"Experiment saved: \",[\"0\"]],\"rJRd6m\":[\"The key the pod uses to reach your host\"],\"rLBjVo\":[\"Active generations: left \",[\"0\"],\", right \",[\"1\"],\".\"],\"rMag_1\":[\"Freezing failed.\"],\"rPk-pR\":[\"unchanged\"],\"rSRVPh\":[\"A saved request does not mean execution has started or succeeded. Inspect the job for its current state.\"],\"rT2tqA\":[\"Reference format\"],\"rZSSdB\":[\"Profile lifecycle\"],\"rnN7wn\":[\"No backtest yet. This dataset has no waveform replay; freeze a new dataset below to set one up. Nothing here changes the pod.\"],\"rruaq8\":[\"Reference identity does not match the selected report.\"],\"ruHgkn\":[\"Each 5-minute epoch takes the first rule that matches\"],\"sN516V\":[\"Pump stall protection\"],\"sPFHpI\":[\"Disk\"],\"sbMCzq\":[\"No compatible values on these pages.\"],\"scVcMn\":[\"HR MAE / bias (\",[\"0\"],\")\"],\"sdPN1F\":[\"Dataset\"],\"sdgA-V\":[\"Reference comparison failed.\"],\"sgOAS_\":[\"Saved observations: \",[\"0\"]],\"srnBNJ\":[\"no reference\"],\"svAg_h\":[\"Freeze a new dataset\"],\"t-Vlce\":[\"Nothing has happened on this side yet.\"],\"t072kc\":[\"Choosing nights the reference covers…\"],\"t85xzT\":[\"HR error per night · bpm vs reference\"],\"t9S3g1\":[\"Compare against the saved profile. This is a configuration comparison, not validation evidence.\"],\"tBe0Mi\":[\"What the saved profile did\"],\"tEXMPn\":[\"Restore previous\"],\"tQU1G2\":[\"Limitations\"],\"tRmb9r\":[\"Recent service logs\"],\"tToCKC\":[\"Retained bytes: \",[\"0\"]],\"tXkhj_\":[\"Start\"],\"ta6ak8\":[\"Freeze selected inputs\"],\"tf6U9f\":[\"Compressed bytes: \",[\"0\"]],\"ti4sFo\":[\"Stored a \",[\"0\"],\" reference import\"],\"ts0Iq9\":[\"Heart-rate spike threshold (standard deviations)\"],\"ttIsX4\":[\"Which releases the pod installs\"],\"ttc02l\":[\"Reference minutes\"],\"u41hN6\":[\"Coverage reduced\"],\"u5a5NC\":[\"Requires re-verification\"],\"u8PbT5\":[\"Also replay sleep stages\"],\"uAQUqI\":[\"Status\"],\"uMzbru\":[\"Retain selected waveforms\"],\"uPiT3Y\":[\"Changed values are white; the previous profile (System defaults) sits underneath. Moving a control edits the saved profile; saving again re-requests it. The processor adopts a profile only after it acknowledges a request.\"],\"uQh6hr\":[\"Comparison / baseline\"],\"uVvWY-\":[\"Recorded nights\"],\"uX0V3h\":[\"Comparison reference records\"],\"uZsFeN\":[\"Apply this exact candidate using the selected evaluation. Evidence and current settings are checked again when applying.\"],\"ubgn_Q\":[\"Candidate sleep-stage rules\"],\"uihHRS\":[\"The pod rejected this plan. Adjust it and prepare again.\"],\"uj0QeQ\":[\"Threshold failed: \",[\"reason\"]],\"uj9vMS\":[\"Shortest breathing interval (× median)\"],\"uk6Pmi\":[\"Import reference measurements\"],\"ukOhBN\":[\"Choose the protocol before looking at results. Creating an experiment does not run a job or apply a profile.\"],\"uv3Ezk\":[\"Candidate low-signal rule\"],\"v0YxJ6\":[\"Common-support details: \",[\"0\"]],\"vAFAci\":[\"Review candidate\"],\"vKQ3HQ\":[\"Heart rate tuning\"],\"vVE3Ho\":[\"Compare frozen references\"],\"vX6LBe\":[\"Incompatible evaluation evidence\"],\"vX8Jre\":[\"HRV INDEX\"],\"vZ6rJ5\":[\"Correct import\"],\"vZdyzL\":[\"Reference coverage is the fraction of eligible reference records paired. Output coverage is the fraction of observations with a value, not continuous time coverage. Sparse samples cannot establish whole-night accuracy.\"],\"vhqhMs\":[\"Worker cleanup has not been confirmed.\"],\"vkIIv_\":[\"Selected sessions: \",[\"0\"],\" / 60\"],\"vl7cYu\":[\"Sensor data source\"],\"vq24aI\":[\"Measured Python processes: \",[\"0\"],\" of \",[\"1\"]],\"vq2FYw\":[\"Rule \",[\"0\"]],\"vrQQgz\":[\"Profiles\"],\"vuyIUW\":[\"Candidate and active readings could not be paired reliably.\"],\"vv7kpg\":[\"Cancelled\"],\"w6ZzbW\":[\"previous\"],\"wHpeCu\":[\"Tuning\"],\"wKbWyv\":[\"Saves it as the profile and requests it; the current saved profile becomes previous. The processor keeps running what it has until it acknowledges the request.\"],\"wMHvYH\":[\"Value\"],\"wOA2YL\":[\"A saved revision is not evidence of validation or processor adoption.\"],\"wOuuTa\":[\"Reference / predicted\"],\"wPpM6Q\":[\"Plan hash\"],\"wQBmjJ\":[\"Breathing tuning\"],\"wRR604\":[\"Pages\"],\"wTOwz-\":[\"Applied\"],\"we3ttu\":[\"Dataset hash\"],\"wn_sE_\":[\"Signed bias\"],\"wu6Pa1\":[\"LED brightness\"],\"ww-u9k\":[\"Accepted: \",[\"0\"],\"; rejected: \",[\"1\"],\"; duplicates: \",[\"2\"],\"; unscorable: \",[\"3\"]],\"x0EO-w\":[\"window IBI variability, not clinical RMSSD\"],\"x9pT2j\":[\", with \",[\"count\"],\" overrides\"],\"x9u6nv\":[\", with no overrides\"],\"xCyL2U\":[\"Reference preview failed.\"],\"xDr_ct\":[\"End\"],\"xHMZQc\":[\"Replay processing costs\"],\"xHs5dk\":[\"┆ gen N profile change\"],\"xS38A7\":[\"This older run has no saved candidate revision identity.\"],\"xUBoEO\":[\"Confusion matrix in minutes: reference rows, predicted columns\"],\"xWY4U3\":[\"Automations that adjust the bed for you\"],\"xaHJrr\":[\"No backtest has replayed the saved profile yet. Saving a change replays the frozen dataset on its tuning, validation and holdout nights; nothing here changes the pod.\"],\"xahtIL\":[\"Manual activation\"],\"xem4Yw\":[\"Keep report\"],\"xh-6Jm\":[\"What each side is called\"],\"xh4HSZ\":[\"Eligible reference minutes\"],\"xmGHa-\":[\"Older experiments\"],\"y-5ho7\":[\"Recomputed readings \",[\"first\"],\"–\",[\"0\"],\" of \",[\"1\"]],\"y1-Ttq\":[\"Edit overrides\"],\"y1L8fR\":[\"Stored observations: \",[\"0\"]],\"y7CEna\":[\"Clear this night’s selection\"],\"yD0Ka7\":[\"First half of each window\"],\"yHNO9L\":[\"Reference records\"],\"yJgBTR\":[\"first 500 readings\"],\"yQwtrO\":[\"Normalized reference measurements\"],\"yTWKne\":[\"Finished a backtest on \",[\"0\"],\" nights\"],\"yUns4e\":[\"Exact trace intervals\"],\"yZcT27\":[\"Restore system defaults\"],\"ykpqy2\":[\"Current stage view\"],\"ysAeQM\":[\"Candidate coverage was reduced; lower error alone does not show improvement.\"],\"ywFj2D\":[\"Configuration\"],\"yyCcHp\":[\"Stage coverage and confusion by night\"],\"yydYOL\":[\"Review report\"],\"z1a7gg\":[\"This request refers to a released dataset. Its waveform bytes are unavailable.\"],\"z35-JD\":[\"Sensor baselines for piezo, capacitance and temperature\"],\"z5mSEw\":[\"Waveform dataset retained: \",[\"published\"]],\"zD4VqY\":[\"Not scored\"],\"zHYvnZ\":[\"Smooth isolated epochs\"],\"zPlfe_\":[\"Observation template\"],\"zQ1eT8\":[\"Candidate\"],\"zTAN4I\":[\"Sleeper identifier\"],\"zXaTA9\":[\"Missing observations remain missing. The IBI variability index is not clinical RMSSD.\"],\"zg_dr-\":[\"Durations cover sequential Python work through result generation. Memory is the largest process lifetime peak. These measurements exclude coordinator and scoring costs and do not establish live ingestion health.\"]}")}; \ No newline at end of file diff --git a/src/lib/i18n/locales/en.po b/src/lib/i18n/locales/en.po index dcc9b984e..a56882738 100644 --- a/src/lib/i18n/locales/en.po +++ b/src/lib/i18n/locales/en.po @@ -3804,8 +3804,8 @@ msgid "Wake" msgstr "Wake" #: src/components/biometrics/BiometricsPage.tsx:280 -msgid "Watch SDNN and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values." -msgstr "Watch SDNN and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values." +msgid "Watch SDNN, Watch RMSSD and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values." +msgstr "Watch SDNN, Watch RMSSD and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values." #: src/components/biometrics/Calibration/WaveformDatasetBuilder.tsx:133 msgid "Waveform dataset retained: {published}" diff --git a/src/lib/i18n/locales/es.js b/src/lib/i18n/locales/es.js index 6350ebb96..504ec91c0 100644 --- a/src/lib/i18n/locales/es.js +++ b/src/lib/i18n/locales/es.js @@ -1 +1 @@ -/*eslint-disable*/module.exports={messages:JSON.parse("{\"-7ESf_\":[\"No hay revisiones de candidatos guardadas.\"],\"-8VQNP\":[\"Exploración de archivos completada.\"],\"-A51pP\":[\"not run\"],\"-BcCfq\":[\"The full-screen bed on the Temp screen\"],\"-C2YDb\":[\"Poner evaluación retrospectiva en cola\"],\"-HG8IU\":[\"Every night is re-scored with the current stage rules; higher is better.\"],\"-LXyQ4\":[\"Pod − Watch per night, by bed-entry date. The goal is zero; dashed lines mark profile changes.\"],\"-USBLd\":[\"Modo de evaluación\"],\"-VKOiQ\":[\"Esta comparación captura una nueva instantánea. Una ejecución en curso puede tener más observaciones que el informe de estado anterior.\"],\"-Yo_SK\":[\"Este informe es anterior a las mediciones de los procesos de reprocesamiento.\"],\"-avT-V\":[\"Circulates water to clear air from the lines\"],\"-gLagq\":[\"liberado\"],\"-mOi3A\":[\"Vista previa de la importación\"],\"-pG9wc\":[\"Siguiente página de referencias\"],\"-tMOt1\":[\"Restauró el perfil anterior y lo solicitó\"],\"-yvkzR\":[\"Otro cambio de perfil ha sustituido esta solicitud.\"],\"00b9Bg\":[\"Mostrar recientes\"],\"03_grA\":[\"No backtest yet. Import a reference for this side, then freeze nights that have it; the replay scores the previous and saved profiles against it. Nothing here changes the pod.\"],\"0ArZBq\":[\"Remuestreos (200–5000)\"],\"0Ke-zM\":[\"No hay plantillas de observación prospectiva configuradas en este pod.\"],\"0RiDQs\":[\"Hash del informe\"],\"0SoeWE\":[\"Esperando un ejecutor y recursos disponibles. Una solicitud en cola no implica que se esté ejecutando.\"],\"0TTMQ2\":[\"congelado \",[\"0\"],\" · \",[\"1\"]],\"0UEomc\":[\"Hash del contenido de referencia\"],\"0eWybM\":[\"Diferencia de F1 macro en intervalos compartidos: \",[\"0\"]],\"0fgSB_\":[\"Solicitando…\"],\"0g8Hrj\":[\"Mediciones de origen eliminadas\"],\"18DKey\":[\"Home Assistant discovery\"],\"1E_-sY\":[\"Este umbral de informe no es un requisito validado de tamaño de muestra. Si hay pocas noches o no permiten estimar variación, no se genera un intervalo.\"],\"1I5fPJ\":[\"Marcas de tiempo ambiguas (base / comparación)\"],\"1SxkbH\":[\"Revisión \",[\"0\"],\"; aceptados \",[\"1\"],\"; no evaluables \",[\"2\"]],\"1bs1Oi\":[\"Storage used on the pod\"],\"1gZYbz\":[\"Fases del sueño\"],\"1gkwth\":[\"cubierto\"],\"1gq8Fu\":[\"Los valores cambiados aparecen en blanco; el perfil anterior queda debajo. Mover un control edita el perfil guardado; guardarlo de nuevo lo vuelve a solicitar. El procesador adopta un perfil solo después de confirmar una solicitud.\"],\"1m2ZjF\":[\"Esperando un límite de procesamiento\"],\"1njn7W\":[\"Ligero\"],\"1sMQW6\":[\"Observaciones sin emparejar\"],\"1zMPXx\":[\"El servidor captura las configuraciones predeterminada, de la vista de fases actual y candidata al enviar la solicitud. Las lecturas almacenadas no pueden validar cambios en parámetros numéricos.\"],\"22M8hi\":[\"Upload Apple Watch data to see how far this side's readings sit from the Watch, night by night.\"],\"2Ek6a3\":[\"Nuevo plan de observación\"],\"2FSnGH\":[\"Concordancia con la referencia calculada.\"],\"2JsUDv\":[\"Restaurar y solicitar\"],\"2KVdfN\":[\"Parada registrada\"],\"2LVKeT\":[\"Segunda mitad de cada período\"],\"2UtXoO\":[\"El índice de variabilidad IBI por ventanas no es el RMSSD clínico entre latidos. Solo se puntúan definiciones de métricas y ventanas de agregación compatibles.\"],\"2X2m4_\":[\"ocultar\"],\"2_xXFZ\":[\"Solicitud de observación guardada: \",[\"saved\"],\". Revisa su estado en la lista de ejecuciones; esto no implica que se haya ejecutado.\"],\"2hjLDv\":[\"Las revisiones de perfil aquí son candidatas. Aplicar una la solicita igual que Guardar y solicitar; la vista general muestra cuándo la confirma el procesador.\"],\"2kV8bg\":[\"Mayor pico de memoria de un proceso Python (MiB)\"],\"2q_goE\":[\"Liberar datos conservados\"],\"33IC49\":[\"Fahrenheit or Celsius across the app\"],\"33aIUI\":[\"Mayor intervalo sin observaciones: \",[\"0\"],\" segundos\"],\"33v1rN\":[\"Compatible\"],\"39Atsr\":[\"Reprocesamiento de fases no disponible\"],\"3GkuKU\":[\"Los relojes de observación son incoherentes.\"],\"3PRxO3\":[\"Fase\"],\"3SR-aZ\":[\"Valor predeterminado heredado\"],\"3burf-\":[\"Replay saved nights against a profile\"],\"3cOQwy\":[\"Mayor intervalo sin observaciones: \",[\"0\"],\" segundos.\"],\"3d05JT\":[\"MAE de la comparación con observaciones comunes\"],\"3kR70m\":[\"Pares de referencia comunes: activo \",[\"0\"],\", candidato \",[\"1\"],\".\"],\"3l8RWF\":[\"Profundo\"],\"3uHzkK\":[\"Configuración fijada y personalizaciones\"],\"3zXtla\":[\"Temporarily pause a sleeper’s tracking and alarms\"],\"4-hUpd\":[\"Siguientes noches del informe\"],\"40Gx0U\":[\"Timezone\"],\"40OXuf\":[\"Fuente de referencia\"],\"446E9e\":[\"Intervalo exploratorio estimado\"],\"4BjOe9\":[\"elige una noche\"],\"4QTTLk\":[\"Muestras de memoria: \",[\"0\"],\" de \",[\"1\"],\"; mayor intervalo sin muestras: \",[\"2\"],\" segundos\"],\"4Xq3Qs\":[\"Trazas de fases reprocesadas\"],\"4ZsrjP\":[\"Revisión \",[\"0\"],\" · \",[\"1\"],\" · \",[\"2\"]],\"4_5Byh\":[\"Informar el índice solo después de\"],\"4ajvlE\":[[\"0\"],\" registros\"],\"4ba0NE\":[\"Programada\"],\"4cbaBq\":[\"Los círculos son lecturas recalculadas; los cuadrados son puntos de referencia; las barras horizontales son intervalos de referencia. Solo se muestran las dos páginas seleccionadas. Esta superposición visual no crea nuevos pares emparejados ni puntuaciones.\"],\"4d-mVQ\":[\"Signos vitales almacenados: \",[\"0\"],\"; registros de movimiento: \",[\"1\"]],\"4mi85N\":[\"Vigilia\"],\"4szmRA\":[\"Las diferencias con igual peso por noche y las puntuaciones agrupadas por duración usan ponderaciones diferentes. La pérdida de cobertura debe considerarse junto con los cambios de puntuación.\"],\"4wjzfS\":[\"F1 macro\"],\"4ylXAL\":[\"Informe de observación prospectiva\"],\"5-4l5i\":[\"Update channel\"],\"51-xfW\":[\"Horas mostradas en \",[\"timezone\"]],\"51WyWB\":[\". Independiente del perfil.\"],\"563t94\":[\"Siguiente página de archivos\"],\"5716sl\":[\"Configuración de la traza\"],\"5BvHkO\":[\"Página numérica anterior\"],\"5Mc__K\":[\"Preparar una nueva solicitud con la referencia actual\"],\"5ZoFxn\":[\"Los umbrales forman parte de este experimento. Proporcionar umbrales no cualifica una política de promoción.\"],\"5_rcZN\":[\"Candidato guardado: \",[\"saved\"]],\"5doABu\":[\"Auto-on\"],\"5jKV9V\":[\"Detalles del trabajo\"],\"5pWEdW\":[\"Estas puntuaciones comparan lecturas recalculadas a partir de formas de onda conservadas. Las puntuaciones en marcas de tiempo comunes usan observaciones disponibles en todas las configuraciones. Las diferencias describen la concordancia con la referencia y no demuestran una mejora validada.\"],\"5uuxPO\":[\"Parte de la evidencia del estado no está disponible o cambió de cualificación durante la ejecución.\"],\"60ebf_\":[\"SSH identity\"],\"6C5LWh\":[\"Pod health and diagnostics\"],\"6KrHKt\":[\"Idéntico al perfil guardado; restaurar solo lo vuelve a solicitar.\"],\"6Njx8W\":[\"Reading RAW archives · \",[\"0\"],\" / \",[\"1\"]],\"6Pvtlo\":[\"Error de FC · reserva\"],\"6RQpjn\":[\"Cancelación solicitada\"],\"6_cgQY\":[\"Semilla de muestreo reproducible\"],\"6_dCYd\":[\"Resumen\"],\"6o-CER\":[\"vigencia desconocida\"],\"6qR6Df\":[\"Origen / revisión\"],\"6tj-Z0\":[\"Perfiles recientes\"],\"6uwzJJ\":[\"Evaluaciones retrospectivas\"],\"71Z__Z\":[\"Activación validada\"],\"7BI5x7\":[\"La intención de personalización puede cambiar aunque el valor resuelto sea el mismo.\"],\"7Bj3x9\":[\"Fallido\"],\"7Hnopa\":[\", con 1 ajuste propio\"],\"7L3hkB\":[\"Las fechas normalizadas exactas se muestran en UTC. Los valores no se interpolan.\"],\"7Moz13\":[\"Perfil guardado frente al anterior\"],\"7T4D_c\":[\"Readings outside these limits are ignored\"],\"7hw71T\":[\"Raw sensor streams\"],\"7l15X4\":[\"falló\"],\"7l_Tjk\":[[\"stages\"],\" valores de fases del sueño\"],\"7m2vSb\":[\"While an alarm is ringing\"],\"7oRNr7\":[\"What a tap does to a ringing alarm\"],\"7qeI1z\":[\"Protocolo de evaluación fijado\"],\"7qftNU\":[\"Liberar informe detallado\"],\"7vEC4B\":[\"vigente\"],\"8-x9lY\":[\"Migró los ajustes de fases del sueño al perfil\"],\"8CnPMu\":[\"HRV MAE / bias (\",[\"0\"],\")\"],\"8TIz1S\":[\"No hay noches registradas para este lado.\"],\"8Whu0n\":[\"No hay suficientes noches independientes para una división de validación; solo se permite una evaluación descriptiva.\"],\"8ZSsNo\":[\"Adds the pod to Apple Home. Local-only — no Apple servers.\"],\"8f8vg9\":[\"El servidor agrupa las sesiones conectadas en noches completas según la zona horaria del dispositivo antes de asignar conjuntos de ajuste, validación y reserva. La división no demuestra una mejora.\"],\"8f9lK-\":[\"Límite de la próxima sesión\"],\"8hxWfI\":[\"No hay observaciones coincidentes.\"],\"8kkt--\":[\"Comparar referencia\"],\"8lcee1\":[\"Personalizado\"],\"8m8FBC\":[\"Comenzar con el perfil actual\"],\"8nOcxV\":[\"Ejecución completada\"],\"8pq43b\":[\"Error del índice de VFC\"],\"8vYOP0\":[\"Próximo límite de procesamiento\"],\"8wngZM\":[\"Fase por defecto\"],\"8wu9lr\":[\"En cola\"],\"8xEouR\":[\"La reserva es la cifra fiable; las noches de ajuste se usaron para elegir estos valores.\"],\"92LEHj\":[\"Used on the Temp screen of this device\"],\"9HGU1A\":[\"Minutos de salida\"],\"9KnPbi\":[\"Hash del informe de comparación\"],\"9RckBe\":[\"¡Hola, tRPC test page!\"],\"9S8_IK\":[\"El servidor ha verificado la integridad de los datos conservados.\"],\"9Xwfwj\":[\"No se han seleccionado referencias. Este conjunto de datos no puede demostrar concordancia con mediciones de referencia.\"],\"9aloPG\":[\"Referencias\"],\"9dnk8H\":[\"Este es el resultado de evaluación conservado, no una aprobación actual de activación ni una demostración de precisión clínica. Al aplicarlo se comprueban de nuevo la evidencia y la configuración actuales.\"],\"9fUe-g\":[\"No hay ninguna configuración evaluada disponible.\"],\"A1Aqyj\":[\"Frecuencia respiratoria\"],\"A1taO8\":[\"Search\"],\"A8uc8S\":[\"Umbrales fijados de los objetivos de fases del sueño\"],\"ABXRh6\":[\"Disk usage and recording\"],\"ALIxuu\":[\"Revisiones de referencia seleccionadas: \",[\"0\"],\" / 20\"],\"ASwFip\":[\"La calidad de calibración de fases es una suposición explícita del reprocesamiento, no una medición recuperada del sensor. La comparación de lecturas almacenadas no prueba cambios en parámetros numéricos.\"],\"AZtrRp\":[\"Trabajos de evaluación retrospectiva\"],\"AeJ9jx\":[\"Brightness of the pod’s light\"],\"AlrzpB\":[\"El intervalo sin observaciones superó el límite previsto.\"],\"Apj80l\":[\"Los problemas observados requieren revisión.\"],\"Aws57Q\":[\"Importaciones anteriores\"],\"AxM6wv\":[\"Evidencia del informe\"],\"B2rx0Y\":[\"Mantener el perfil guardado\"],\"B5W0zb\":[\"Estas puntuaciones comparan las lecturas originales almacenadas. Los resultados numéricos idénticos entre perfiles no validan los cambios de parámetros numéricos.\"],\"BGoUTB\":[\"Intervalo de referencia: de \",[\"start\"],\" a \",[\"end\"],\" (\",[\"timezone\"],\")\"],\"BHqq1y\":[\"Reintentar la misma solicitud de programación\"],\"BMx22g\":[\"Registros de referencia \",[\"0\"],\"–\",[\"1\"],\" de \",[\"2\"]],\"BXW6e-\":[\"No disponible o pertenece a otra persona.\"],\"Bb1uwv\":[\"No Watch pairs in these nights\"],\"BuBE8H\":[\"Reprocesamiento de señales no disponible: este servicio no ha conservado las formas de onda originales ni el contexto de procesamiento.\"],\"BvyPVP\":[\"Temperature curves, power and alarms\"],\"BxeSfv\":[\"Página de referencias anterior\"],\"C0vtfT\":[\"No hay un intervalo de tiempo aceptado.\"],\"CLYcpa\":[\"Exclusiones de validación\"],\"CLfuqo\":[\"Experimentos recientes\"],\"CWrY1e\":[\"Archivos seleccionados para esta noche: \",[\"0\"],\" / 64\"],\"Cc0BhR\":[\"Aceptar una estimación cuando esté a menos de\"],\"CdAsLU\":[\"Umbral de calidad de calibración para señal baja\"],\"CdAt7D\":[\"Light or dark appearance\"],\"Ci9D6l\":[\"Importar referencia\"],\"Cie-li\":[\"Observaciones prospectivas\"],\"CjIZ1O\":[\"Las observaciones del estado del proceso de trabajo están desactualizadas.\"],\"CvehYe\":[\"Referencias sin emparejar\"],\"Cy6Gb9\":[\"Observaciones comunes\"],\"CyzcAv\":[\"Revise los registros normalizados antes de guardarlos en el pod.\"],\"D32Y23\":[\"FASES DEL SUEÑO\"],\"DDb_NZ\":[\"Noches del conjunto\"],\"DFyeaF\":[\"Índice de variabilidad IBI por ventana\"],\"DHhJ7s\":[\"Anterior\"],\"DIrJXu\":[\"Signal limits\"],\"DPHzQ9\":[\"Revisiones de perfiles guardadas\"],\"DPb-qk\":[\"Editando a partir del perfil guardado actualmente.\"],\"DSphLX\":[\"Pico observado de RSS del grupo de procesos: \",[\"0\"],\" MiB\"],\"DWGgAw\":[\"Linking Watch data already on the pod…\"],\"DXPGRI\":[\"Setting up the replay…\"],\"DnDpLH\":[\"Inspeccionar cambios del candidato\"],\"Dr_Xtk\":[[\"title\"],\": MAE and bias per night, pod minus Watch, in \",[\"unit\"],\".\",[\"0\"]],\"Dt8YN3\":[\"Diferencia media de concordancia con igual peso por noche: \",[\"0\"]],\"DtefQU\":[[\"0\"],\" \",[\"1\"],\": anterior \",[\"2\"],\", guardado \",[\"3\"],\" lpm\"],\"E1wNkc\":[\"Frecuencia respiratoria (respiraciones/min)\"],\"E3rH0L\":[\"Nights as a table\"],\"E8ws29\":[\"Each night's heart rate against the reference appears here once a backtest has run.\"],\"EF4ZiR\":[\"Cobertura de salida\"],\"EI1f8X\":[\"El perfil guardado o las definiciones de parámetros son incompatibles con este editor.\"],\"EN1f1Y\":[\"El estado de ejecución es independiente de la solidez de la evidencia biométrica.\"],\"E_GXXi\":[\"latest \",[\"0\"]],\"EdQY6l\":[\"Ninguno\"],\"Ef7StM\":[\"Desconocido\"],\"EfcF_P\":[\"Este intervalo abarca del primer al último registro; no indica cobertura continua ni coincidencia con las lecturas del pod.\"],\"Eine1d\":[\"Clocks across the app; scheduled times are unchanged\"],\"EjJl4z\":[\"Sensibilidad\"],\"EkEvjV\":[\"Importar los registros aceptados y omitir los rechazados\"],\"El6Jsd\":[\"Protocolo de evaluación\"],\"EmSrGB\":[\"Antes\"],\"Emmy17\":[\"Período máximo: \",[\"0\"],\" minutos.\"],\"EoaBI7\":[\"El procesador rechazó la generación \",[\"0\"]],\"EwH7gh\":[\"Puntuaciones por fase en intervalos emparejados compartidos\"],\"F6pfE9\":[\"Activo\"],\"FB0rkn\":[\"No informar la frecuencia cardíaca cuando la señal del latido puntúa por debajo de\"],\"FEr96N\":[\"Theme\"],\"FFdrAM\":[\"Editando a partir de la revisión \",[\"revisionId\"]],\"FOSd8f\":[\"Turns a side on once you’ve settled into bed\"],\"FVmZD9\":[\"Lado de la calibración biométrica\"],\"FYh4VX\":[\"No se pudo guardar la solicitud para recuperarla. Este intento no se envió. Mantén esta pestaña abierta y reintenta la misma solicitud.\"],\"FhWkbT\":[\"Eliminar importación permanentemente\"],\"FlMg9W\":[\"Precisión\"],\"FsHaTL\":[\"Mediana del error absoluto\"],\"G6a5fj\":[\"Se ha seleccionado otra revisión de esta familia de referencias.\"],\"GJlW-e\":[\"Cobertura de referencia con cada salida: activo \",[\"0\"],\", candidato \",[\"1\"],\".\"],\"GKXsLn\":[\"Compara un candidato en paralelo al procesamiento activo. Las observaciones no cambian tu perfil activo.\"],\"Gi3Y4k\":[\"bpm\"],\"GnvYuO\":[\"Quitar sesión \",[\"id\"]],\"GqVSI2\":[\"Elige una hora de inicio futura.\"],\"GrimP8\":[\"rango\"],\"GuCB02\":[\"La identidad de la traza no coincide con el informe seleccionado.\"],\"H07LNp\":[\"Conjunto de datos guardado: \",[\"0\"]],\"H5aped\":[\"Esta prueba comparó lecturas almacenadas, así que no hay un trazo de frecuencia cardíaca recalculado que dibujar.\"],\"HF2Z8Y\":[\"se prueba al guardar\"],\"HKbCf-\":[\"Night-by-night sleep, stages and score\"],\"HTxS9y\":[\"Se recurrió a un perfil compatible\"],\"HYPLOV\":[\"Desplazamiento fijo añadido a las fechas del pod (ms, ±3600000)\"],\"H_LZii\":[\"Local only keeps the pod from reaching external servers\"],\"HaVLYE\":[\"Error de FC · validación\"],\"Hd_IYa\":[\"Sleep stages: Cohen's kappa against the Watch per night, 1 is full agreement.\",[\"0\"]],\"Hdrvsg\":[\"La comparación con la referencia está limitada a una solicitud de 64 KiB.\"],\"HfaYRx\":[\"Esta pestaña conserva la solicitud exacta de programación entre recargas hasta que se confirme su resultado. Reintentar no prepara un plan nuevo.\"],\"Hhh7ZU\":[\"El procesamiento de nuevos archivos está aplazado por ahora.\"],\"Hk1yRc\":[\"Mayor concordancia: \",[\"0\"],\"; menor: \",[\"1\"],\"; sin cambios: \",[\"2\"]],\"Hk3J5p\":[\"No Watch stages in these nights\"],\"HkvZuh\":[\"How heart-rate estimates are accepted and tracked\"],\"HlUTnv\":[\"Registros de origen fijados en UTC; los registros incompatibles se enumeran, pero no se representan en la gráfica\"],\"HqdcAB\":[\"Pega registros JSON o CSV con recordKey, metric, value, unit y timestamp (o start y end). Usa fechas ISO con desfase horario o milisegundos Unix. Esta comparación no guarda una importación de referencia.\"],\"HrBFhl\":[\"Comparado\"],\"HwYvvX\":[\"La solicitud de parada está registrada. Las observaciones guardadas se conservan.\"],\"IABgNx\":[\"MQTT bridge\"],\"IH1KJg\":[\"Diferencia de concordancia en intervalos compartidos: \",[\"0\"]],\"IJi09X\":[\"Where schedules and nights are anchored\"],\"ITWmk6\":[\"Los errores usan la unidad de la métrica. Los pares de referencia tienen el mismo peso dentro de cada noche; las noches tienen el mismo peso en la diferencia media. Las puntuaciones agrupadas asignan el mismo peso a todos los pares de referencia.\"],\"IZ_SI-\":[\"MAE agrupado con observaciones comunes: base \",[\"0\"],\"; comparación \",[\"1\"]],\"I_qUhg\":[\"Deviation window\"],\"Iec0GZ\":[\"Intervalos de referencia\"],\"IftrVb\":[\"Superposición de referencias fijadas\"],\"Ih-_r5\":[\"Noches anteriores del informe\"],\"Ii14KX\":[\"Ejecución completada. Revise el informe antes de sacar conclusiones sobre concordancia o mejora.\"],\"Im5Crw\":[\"Hash del protocolo\"],\"J3ozEn\":[\"Ejecución de procesamiento\"],\"J8ILQE\":[\"Inicio (UTC)\"],\"JDyznv\":[\"Reprocesamiento de formas de onda conservadas\"],\"JKzmi4\":[\"Los datos conservados no están disponibles para nuevas evaluaciones.\"],\"JQ7IOd\":[\"Datos liberados; metadatos conservados\"],\"JQU3qt\":[\"Inspeccionar trazas numéricas\"],\"JRpbpv\":[\"Las solicitudes de comparación están limitadas a 64 KiB y 2000 registros.\"],\"JaKl6i\":[\"H reserva\"],\"JfPdso\":[\"Identidad del informe\"],\"Jh5xi1\":[\"Pump, water and firmware state\"],\"Jk2iNN\":[\"Partición de evaluación\"],\"JoL8Rk\":[\"No se pudo preparar el plan. Comprueba el perfil y el período seleccionados y la cualificación instalada.\"],\"JqNzWV\":[\"Congeló un conjunto de \",[\"0\"],\" noches\"],\"Jq_0cU\":[\"Side name\"],\"Jsh4sU\":[\"Minutos predichos\"],\"JtkCxN\":[\"Los detalles de fases no están disponibles o son incompatibles.\"],\"JvflkO\":[\"Noches anteriores\"],\"JyC-qp\":[\"Canal de origen\"],\"JzH2wX\":[\"HRV\"],\"K2uv7O\":[\"Service health and the live sensor pipeline\"],\"K6QhkO\":[\"No hay ninguna observación de memoria del proceso disponible.\"],\"KB9NWO\":[\"La recuperación de la programación no está disponible o no es válida. Revisa las ejecuciones existentes antes de borrar los datos de sesión de esta pestaña; una solicitud anterior puede haberse guardado en el pod.\"],\"KFB8Et\":[[\"w\"],\" d\"],\"KFwvG_\":[\"Las estimaciones de cobertura usan la cadencia nominal de registro; no demuestran disponibilidad continua de la señal.\"],\"KOq34a\":[\"cuando\"],\"KUj43p\":[\"Minutos emparejados compartidos: \",[\"0\"]],\"KUjOb9\":[\"en curso\"],\"KWfkdX\":[\"Revisión candidata \",[\"0\"],\": \",[\"1\"]],\"K_F6pa\":[\"Guardando…\"],\"Ksal0J\":[\"Siguiente página numérica\"],\"Kvt2s_\":[\"Eliminar importación\"],\"Kwp5NK\":[\"¿Eliminar estas mediciones de origen permanentemente? Las copias conservadas en conjuntos de datos deben liberarse por separado.\"],\"KwxEI4\":[\"La cobertura del candidato cayó por debajo de los límites previstos.\"],\"L1LSAe\":[\"Error absoluto medio\"],\"L1baKz\":[\"Concordancia\"],\"L445Bk\":[\"Esperando el período de observación.\"],\"L8V7Dz\":[\"Daily prime\"],\"LDHXy9\":[\"Deviation from Apple Watch\"],\"LF9GJc\":[\"Retaining the archives…\"],\"LLEze7\":[\"Noches recientes\"],\"LOv901\":[\"Los grupos usan las marcas de tiempo y los tipos de registro originales de la referencia, independientemente de la salida del candidato. Los grupos de medio período excluyen los intervalos que cruzan el punto medio. Los grupos se solapan y no son experimentos independientes. No son subgrupos de movimiento ni de artefactos.\"],\"LhMjLm\":[\"Hora\"],\"LiR3l8\":[\"REM\"],\"LnsCL8\":[\"Incluir esta sesión\"],\"Lt78-z\":[\"No solicitado\"],\"LtUd0r\":[\"Estos son resultados descriptivos de concordancia, no precisión clínica, evidencia de evaluación independiente con datos reservados ni autorización para activar un perfil.\"],\"M0faGQ\":[[\"0\"],\" · \",[\"1\"],\" · revisión \",[\"2\"]],\"M4ek4i\":[\"Ningún archivo inspeccionado se solapa con esta noche. Inspecciona primero los archivos.\"],\"M5TcIX\":[\"Reprocesar formas de onda conservadas\"],\"M5zFwb\":[\"La aplicación manual no está validada. Puede cambiar la frecuencia cardíaca, la frecuencia respiratoria, el índice de VFC y las fases del sueño dependientes.\"],\"MEC08x\":[\"Use fechas ISO con desplazamiento horario o milisegundos Unix. Cada registro requiere recordKey, metric, value, unit y timestamp (o start y end). JSON usa un array; CSV usa estos nombres como encabezados. Las importaciones se limitan a 2 MiB y 2000 registros.\"],\"MK62TH\":[\"Fin (UTC)\"],\"MOqNC_\":[\"Noche fijada\"],\"MRXPwy\":[\"referencia\"],\"MTn9vw\":[\"kappa\"],\"MW8x7A\":[\"Este es un muestreo de la suma de RSS del coordinador de reprocesamiento y sus procesos de trabajo. Las páginas de memoria compartidas pueden contarse más de una vez; los picos breves entre observaciones pueden pasar inadvertidos.\"],\"Mb-EVa\":[\"Este informe se ha liberado. Su hash de auditoría se conserva, pero los resultados detallados no están disponibles.\"],\"MeoKQ0\":[\"Rules that change the bed for you\"],\"Mf9gx7\":[\"Error al importar las referencias.\"],\"MibmVu\":[\"reserva\"],\"MkUjVh\":[\"Usa la misma identidad de la persona que duerme que en los registros de referencia que quieras comparar.\"],\"MmNR0n\":[\"Publishes status and biometrics, accepts commands\"],\"Mu1HF2\":[\"Quitar referencia \",[\"0\"]],\"Mu7RUc\":[\"Inspeccionar conjunto de datos\"],\"MuDrlT\":[\"sin dispositivo de referencia · excluida del error\"],\"Mv-Tbq\":[\"estimaciones aceptadas en el seguimiento\"],\"NGoTyQ\":[\"Reglas de fases sobre lecturas originales\"],\"NHlrjI\":[\"Punto\"],\"NJYR0F\":[\"Formato de datos\"],\"NMh7kF\":[\"Comparación de lecturas almacenadas disponible\"],\"NRBL74\":[\"caducada\"],\"NVswTS\":[\"Conservar las últimas\"],\"Na6zmY\":[\"Compatibilidad\"],\"NawEr2\":[\"Después\"],\"NcAXpM\":[\"Daily reboot\"],\"NdXF7z\":[\"El trabajo se aplazó; se conservan tu selección y la clave de reintento.\"],\"NhvfPs\":[\"Sin mejora sustancial según la política de evaluación\"],\"Nik1q1\":[\"Índice de variabilidad IBI por ventanas (ms)\"],\"Nln0z9\":[\"Programar la observación revisada\"],\"NpbAio\":[\"Reiniciar la exploración de archivos\"],\"NxAavP\":[\"Confirmar la eliminación de la importación\"],\"NxjPUC\":[\"Hash del candidato: \",[\"0\"]],\"OHHPcb\":[\"El directorio de archivos no está disponible.\"],\"OLWhkH\":[\"Muestras de recepción de datos: \",[\"0\"],\" de \",[\"1\"],\" comprobaciones de admisión\"],\"OVSP4J\":[\"Conserve una copia de las noches y revisiones de referencia seleccionadas. Los cambios posteriores o la eliminación del origen no alteran este conjunto de datos.\"],\"OahhRr\":[\"mostrar\"],\"OqNNR4\":[\"Diferencia de MAE con observaciones comunes\"],\"Ox14On\":[\"Nightly archive push\"],\"OzklQP\":[\"Frecuencia cardíaca (latidos/min)\"],\"PDDE5l\":[\"Desfase del reloj de referencia: \",[\"0\"],\" segundos; tolerancia para puntos: \",[\"1\"],\" segundos.\"],\"PEdBDO\":[\"Identidad de la persona que duerme: \",[\"subjectId\"]],\"PGC40a\":[\"Página anterior de la traza\"],\"PHHETW\":[\"Intervalos de referencia excluidos en los puntos medios de los períodos: \",[\"0\"]],\"PKKYKp\":[\"Restaurar el perfil anterior\"],\"PbhekP\":[\"sin probar\"],\"PbpWGe\":[\"Error al resolver el perfil.\"],\"PdTcHl\":[\"No se detectó reducción de cobertura\"],\"PvFcah\":[\"Datos conservados\"],\"PxBet3\":[\"Conjunto de evaluación\"],\"PygeGm\":[\"Hash del manifiesto del motor\"],\"PzWjOZ\":[\"Noches emparejadas insuficientes\"],\"Q0FsEw\":[\"Choose who normally sleeps here\"],\"Q6Fvyb\":[\"Vista previa de la importación\"],\"Q73cLK\":[\"Seleccionar formas de onda registradas\"],\"QCJQvN\":[\"Hash de configuración anterior\"],\"QG2GiO\":[\"en cola\"],\"QGPgrh\":[\"Se compararon las lecturas originales almacenadas; no se reprocesaron los cambios de parámetros numéricos.\"],\"QIgpE4\":[\"FRECUENCIA CARDÍACA\"],\"QIqJcS\":[\"Algunos registros de referencia tienen unidades o definiciones de métricas incompatibles y se excluyeron.\"],\"QTD6X8\":[\"Tiempo de la tarea hasta la preparación de la publicación: \",[\"0\"],\" segundos\"],\"QVD7Dt\":[\"Noche \",[\"0\"]],\"Q_YNRG\":[\"Sobrescribe el perfil guardado y lo solicita; el actual pasa a ser el anterior.\"],\"QkqTjY\":[\"Informe de observación\"],\"QrhaVg\":[\"Units\"],\"QsLiI0\":[\"Editar un nuevo candidato a partir de esta revisión\"],\"Qy1CFj\":[\"Hash del perfil activo\"],\"R-9uNr\":[\"Umbral de señal baja del candidato\"],\"R-sAH4\":[\"Solo se representa la página actual. Los puntos son lecturas individuales; los huecos y los valores faltantes no se interpolan. Las lecturas originales almacenadas no se modifican.\"],\"R1u0BV\":[\"Las definiciones de referencia son incompatibles.\"],\"R4QNtj\":[\"Cobertura de los intervalos de observación previstos\"],\"RC3Rei\":[\"Zona horaria de las particiones: \",[\"0\"]],\"RIVQIl\":[\"La validación del esquema se completó. No se ha evaluado la concordancia con las mediciones de referencia.\"],\"RMSkhT\":[\"Estos cambios pertenecen solo al candidato. El orden importa: se aplica la primera regla que coincida.\"],\"RWhQ_V\":[\"Complete los campos obligatorios dentro de los límites indicados.\"],\"RZ1K0m\":[\"Valor / unidad\"],\"Raeq5C\":[\"Error de respiración\"],\"Rb1qTE\":[\"Observando\"],\"RbVCQP\":[\"Noche cubierta\"],\"RiQMUh\":[\"En ejecución\"],\"S1gPr0\":[\"Quiero restaurar los valores predeterminados del sistema sin evidencia de validación.\"],\"S2Jom8\":[\"Hash de configuración posterior\"],\"S8EfUf\":[\"Marcas de tiempo originales del reprocesamiento, sin ajuste al reloj de referencia\"],\"SBZ1sk\":[\"Bed and water temperature history\"],\"SCGU2U\":[\"Trabajos recientes\"],\"SCc4qv\":[\"Detalles de los datos fijados\"],\"SGRCD8\":[\"Confusión de fases agrupada\"],\"SMGWlJ\":[\"Mostrar los \",[\"0\"]],\"SRE0Dv\":[\"El procesador confirmó la generación \",[\"0\"]],\"SV_0fn\":[\"El algoritmo actual del pod informa un índice de variabilidad de los intervalos entre latidos por ventana, no el RMSSD clínico. La definición de las lecturas antiguas puede ser desconocida.\"],\"ScQkbv\":[\"Se han asignado particiones de noches completas; el rendimiento biométrico aún no está validado.\"],\"Sfd0oa\":[\"Publishes climate, switch and sensor entities\"],\"SgRypX\":[\"No hay importaciones de referencia para este lado.\"],\"SnDUEP\":[\"Conjunto de datos fijado\"],\"T0Izom\":[\"Frozen and queued. The backtest replays every split; results appear as each finishes.\"],\"T4wPfY\":[\"Diferencia media de MAE con igual peso por noche: \",[\"0\"]],\"TLDDXM\":[\"Noche de la traza numérica\"],\"TQwzCx\":[\"Conservar los datos retenidos\"],\"T_87By\":[\"Parámetro\"],\"Th6Noy\":[\"Comparaciones de subgrupos definidos por la referencia\"],\"TpHstq\":[\"ms\"],\"Tru_Os\":[\"Siguiente página de la traza\"],\"TwpMH6\":[\"Quitar personalización de fases\"],\"TyB_3E\":[\"Calibración biométrica\"],\"U5N8X7\":[\"guardado\"],\"U8n1HU\":[\"RESPIRACIÓN\"],\"UFlEgN\":[\"No hay cambios en la intención de personalización.\"],\"UFxPjw\":[\"Mayor concordancia según la política de evaluación cualificada\"],\"UL2mer\":[\"Which firmware pipeline the pod reads\"],\"UL6Xbb\":[\"Errores numéricos por noche\"],\"UMJp3J\":[\"Minutos evaluados: \",[\"0\"]],\"UOHqa2\":[\"Evidencia faltante: \",[\"reason\"]],\"UOnFf4\":[\"la mediana\"],\"UWna3M\":[\"Inspeccionar observación\"],\"UZuUP4\":[\"Sin referencia\"],\"UeGR-V\":[\"Inspeccionar sesión \",[\"0\"]],\"Ufin3V\":[\"Mayor antigüedad observada de los datos recibidos: \",[\"0\"],\" segundos\"],\"UhCJxj\":[\"Procesador\"],\"UlKSMd\":[\"Izquierda\"],\"UqSpzV\":[\"Mínimo de noches emparejadas (3–60)\"],\"Uu5a6k\":[\"Tolerancia de seguimiento (lpm)\"],\"UyIxiT\":[\"Nada cambia hasta que muevas un control o restaures.\"],\"UyxS7G\":[\"Pod minus Watch per night: MAE and bias per metric, and stage kappa\"],\"V7oslX\":[\"El procesamiento falló.\"],\"VFXF98\":[\"Calibración medida del sensor para este lado:\"],\"VIPxtx\":[\"Identificador de la persona del conjunto de datos\"],\"VJBi8Y\":[\"Restauró los valores del sistema y los solicitó\"],\"VKjxHP\":[\"Trazas numéricas recalculadas\"],\"VMO9HG\":[\"Identidad exacta de la importación\"],\"VN4iqH\":[\"Marcas de tiempo de muestras guardadas: \",[\"0\"],\". Intervalos de observación previstos: \",[\"1\"],\".\"],\"VQewk6\":[\"Smoothing applied after the rules\"],\"VRFZcm\":[\"Temperature unit\"],\"VU3Nrn\":[\"Faltante\"],\"VUtcHF\":[\"Comparar con mediciones de referencia\"],\"VVWxFk\":[\"Copia congelada de \",[\"0\"],\" noches. Las ediciones o eliminaciones posteriores no la afectan. Las noches se reparten enteras antes de puntuar; un reparto no es evidencia por sí solo.\"],\"VcTMlI\":[\"Intervalo exploratorio del 95 %: de \",[\"0\"],\" a \",[\"1\"]],\"VmTUh8\":[\"Tiempo total de CPU de Python (segundos)\"],\"VnAP4G\":[\"Base actual\"],\"VqKzd6\":[\"No hay mediciones conservadas.\"],\"Vspsiu\":[\"Aceptados: \",[\"0\"],\"; rechazados: \",[\"1\"],\"; duplicados: \",[\"2\"],\"; no evaluables: \",[\"3\"],\"; conflictos: \",[\"4\"]],\"W-i7wJ\":[\"Sin variación estimable\"],\"W1BnRm\":[\"Signos vitales con procedencia de procesamiento original desconocida: \",[\"0\"]],\"WCKDwf\":[\"Copia congelada de \",[\"0\"],\" noches y la referencia de \",[\"1\"],\". Las ediciones o eliminaciones posteriores no la afectan. Las noches se reparten enteras antes de puntuar; un reparto no es evidencia por sí solo.\"],\"WQJ43e\":[\"Reintentar informe\"],\"W_PbSn\":[\"Umbral de picos del candidato\"],\"WcWtE4\":[\"listo · \",[\"0\"]],\"WjCZjy\":[\"Accesos a la reserva registrados para este experimento: \",[\"0\"]],\"Wk_WYb\":[\"Se alcanzó la cuota de almacenamiento.\"],\"Wl_oB_\":[\"Breathing-rate interval limits\"],\"WqUEbt\":[\"Inspeccionar el siguiente archivo\"],\"WrG-oR\":[\"Personalizaciones explícitas de fases\"],\"Wucp9l\":[\"↑ ↓ to move · Enter to open · Esc to close\"],\"Wz9mHY\":[\"Los intervalos compartidos son la intersección de todas las configuraciones evaluadas y los intervalos de referencia aptos. Las puntuaciones sobre intervalos propios usan los datos disponibles de cada configuración y pueden describir distintas partes de la noche.\"],\"X5G5TL\":[\"Hay otro problema en el informe que requiere revisión.\"],\"X8JREh\":[\"Quiero acceder a esta reserva. Su uso repetido, incluso en conjuntos de datos superpuestos, debilita la evidencia independiente.\"],\"X9Fn3w\":[\"Reprocesar fases del sueño\"],\"XDDjJH\":[\"Sesiones: \",[\"0\"]],\"XExZoo\":[\"Pico de memoria muestreado del proceso de trabajo: \",[\"0\"],\" MiB. Los picos breves entre muestras pueden pasar inadvertidos.\"],\"XHuCnL\":[\"MAE de la base con observaciones comunes\"],\"XJOV1Y\":[\"Actividad\"],\"XMmhvP\":[\"Las definiciones de VFC difieren o se desconocen en parte. No se puede calcular un promedio combinado de VFC.\"],\"XT73o-\":[\"La próxima sesión espera un límite con la cama vacía confirmada. La aplicación inmediata también espera un límite seguro de procesamiento.\"],\"XXnr5H\":[\"Restart the pod once a day\"],\"X_d3vj\":[\"Tap gestures\"],\"XbkqDp\":[\"Corrigiendo la importación \",[\"0\"],\". Proporcione la exportación de reemplazo completa; la revisión original y los conjuntos de datos congelados se mantienen sin cambios.\"],\"Xgkhyj\":[\"Indicadores\"],\"Xl0aFS\":[\"Identidad de la persona que duerme\"],\"XvImpZ\":[\"br/min\"],\"XyrrCD\":[\"Este gráfico muestra solo la página actual de intervalos reprocesados. Los huecos quedan vacíos; no se infieren fases entre intervalos.\"],\"Xzy9KC\":[\"Cambios del candidato\"],\"Y3vbII\":[\"Las observaciones de recursos son parciales. El estado del proceso refleja la última respuesta válida, no el intento completo.\"],\"Y5pne1\":[\"Horas mostradas en \",[\"0\"]],\"YAAuC3\":[\"No hay signos vitales almacenados para comparar\"],\"YAN6qJ\":[\"No hay noches en este informe.\"],\"YFgzea\":[\"Instantánea de la comparación con la referencia\"],\"YafUsS\":[\"Reprocesamiento de fases disponible\"],\"Ye-mWr\":[\"Broker connection\"],\"YeXYTR\":[\"Observaciones del estado de la tarea\"],\"YgOSaJ\":[\"Período preparado (UTC)\"],\"Yhk2w6\":[\"Estas son las lecturas originales registradas. Los gráficos separan las ejecuciones de procesamiento y las definiciones de VFC conocidas. Las lecturas antiguas de procedencia desconocida siguen sin verificarse.\"],\"YkeGcg\":[\"No night in the last \",[\"days\"],\" days pairs with Watch data. Pick a longer window.\"],\"YoyYks\":[\"Breathing MAE / bias (\",[\"0\"],\")\"],\"YtMAd9\":[\"id de configuración\"],\"YtwU3b\":[\"Auto-off\"],\"Yx0Ud8\":[\"Solicitado\"],\"Yy9-qs\":[\"Conservar importación\"],\"Z325Gl\":[\"Empeoramiento según la política de evaluación\"],\"Z6_avU\":[\"Sin información\"],\"Z8Z57S\":[\"No se pudo borrar la solicitud rechazada de la recuperación del navegador. Mantén esta pestaña abierta y reinténtalo.\"],\"ZB-yZg\":[\"Search pages and settings\"],\"ZCID7r\":[\"Raise or lower the adjustable base\"],\"ZEVjLJ\":[\"Recalculado: \",[\"0\"],\"; las lecturas exactas aparecen en la tabla.\"],\"ZGxvoR\":[\"Hash de la configuración resuelta\"],\"ZIHKzK\":[\"Restaurar el perfil anterior\"],\"ZOxlYi\":[\"La exposición repetida al conjunto reservado debilita la evidencia independiente. Trate los resultados reutilizados como validación, no como evidencia de un conjunto reservado intacto.\"],\"ZQlAPX\":[\"Cobertura y capacidades fijadas\"],\"ZYM-e5\":[\"Calidad de calibración de fases asumida: \",[\"0\"]],\"_2a_oX\":[\"After schedule ends\"],\"_3iO4p\":[\"Umbrales de objetivos fijados\"],\"_8-q-t\":[\"Persona que duerme: \",[\"0\"]],\"_8Othx\":[\"Esta es evidencia descriptiva, no una mejora validada ni permiso para activar un perfil.\"],\"_CNpb9\":[\"Tables, sizes and maintenance for the pod databases\"],\"_F1gL-\":[\"Se perdió el período de observación.\"],\"_N3nfY\":[\"Hash de la instantánea\"],\"_RdTy6\":[\"Los detalles numéricos no están disponibles o son incompatibles.\"],\"_UU1GQ\":[\"Noches evaluadas: \",[\"0\"],\"; sin evaluar: \",[\"1\"]],\"_WJL1l\":[\"Hash de la compilación del evaluador\"],\"_YJvA2\":[\"Eliminar una importación borra sus mediciones de origen. Los conjuntos de datos congelados anteriormente son copias conservadas por separado.\"],\"_dmdq7\":[\"Frecuencia cardíaca · \",[\"0\"],\" \",[\"1\"]],\"_dqduX\":[\"Siguiente página\"],\"_fhKhX\":[\"TALLER\"],\"_iu_fT\":[\"Perfil candidato\"],\"_m_cqq\":[\"No se confirmó la programación. Reintenta esta misma solicitud para conocer su resultado; no des por hecho que se haya creado o detenido una ejecución.\"],\"_vMmHs\":[\"No hay cambios en los valores resueltos.\"],\"_zRJNg\":[\"Observaciones recalculadas: \",[\"0\"]],\"a0hR2f\":[\"Conservar formas de onda\"],\"a4jIpF\":[\"Comparaciones en marcas de tiempo comunes. Las diferencias se calculan como comparación menos base; las diferencias negativas de error indican un menor error en las observaciones comunes.\"],\"aAzeS3\":[\"Número actual de exposiciones al conjunto reservado: \",[\"0\"]],\"aBSvZr\":[\"Hereda las \",[\"0\"],\" reglas y la fase por defecto de\"],\"aEj05o\":[\"Referencia incompatible\"],\"aEm2DD\":[\"Envío de evaluación retrospectiva\"],\"aWcLHy\":[\"Reserva\"],\"a_tOrB\":[\"Compare the pod against Apple Watch or other references\"],\"ahCPOh\":[\"No hay ejecuciones prospectivas para este lado.\"],\"akShFD\":[\"Cleanup\"],\"al36z5\":[\"Este informe no dispone de comparaciones en marcas de tiempo comunes.\"],\"aoOfN1\":[\"Solo evaluación descriptiva\"],\"apfCJ8\":[\"Fijar datos de evaluación\"],\"aqRjDk\":[\"Tiempo total transcurrido de Python (segundos)\"],\"azXwgh\":[\"No se generaron intervalos de fases para esta selección.\"],\"bAG4xT\":[\"Primera página\"],\"bAqx-m\":[\"Definición de VFC\"],\"bIdc7i\":[\"Auto power-off cap\"],\"bKNo3f\":[\"Fahrenheit or Celsius\"],\"bMnAf3\":[\"Lecturas recalculadas y referencias fijadas compatibles en la unidad de la métrica seleccionada\"],\"bRN5nm\":[\"Software\"],\"bRYfMr\":[\"Conjuntos de datos recientes\"],\"bUIsv2\":[\"Ventana de la métrica: \",[\"0\"],\" segundos.\"],\"bW1Vv-\":[\"Lecturas perdidas\"],\"bZGH6_\":[\"Importaciones recientes\"],\"bcsF7s\":[\"Frecuencia cardíaca\"],\"bjnxtG\":[\"Aplicar revisión sin validar\"],\"c3Qpen\":[\"Pod status at a glance\"],\"c8Kx_b\":[\"Quitar personalización\"],\"cCEjPJ\":[\"F1\"],\"cESAVR\":[\"No hay valores de esta métrica en la página actual.\"],\"c_Dls2\":[\"No hay trabajos de evaluación retrospectiva para este lado.\"],\"cmG-2L\":[\"Heart rate, HRV and breathing trends\"],\"cnqM2L\":[\"Liberar informe permanentemente\"],\"coprQn\":[\"Quiero aplicar esta revisión exacta sin evidencia de validación.\"],\"cueivf\":[\"Exclusiones: \",[\"0\"]],\"cwpx1M\":[\"Error de FC · ajuste\"],\"d-PALc\":[\"Cambios en los parámetros resueltos\"],\"d3IqDh\":[\"Calidad\"],\"d3emgn\":[\"Error al guardar el candidato.\"],\"d6dDT8\":[\"Período de observación (UTC)\"],\"dEgA5A\":[\"Cancelar\"],\"dHvZyR\":[\"calidad\"],\"dKKiUb\":[\"Las lecturas numéricas se recalcularon a partir de las formas de onda conservadas. Las lecturas originales almacenadas no se modifican.\"],\"dVSC5E\":[\"Inspeccione los datos disponibles antes de seleccionar noches para un conjunto de datos conservado.\"],\"deIqfe\":[\"When the HRV index is reported\"],\"dgvPBj\":[\"lpm del seguimiento\"],\"dnpx0n\":[\"Se muestran las marcas de tiempo originales de la traza. La puntuación de referencia añade el desfase fijado de \",[\"0\"],\" ms a estas marcas de tiempo.\"],\"dp1xoT\":[\"validación\"],\"drFd3d\":[\"Freezing the nights…\"],\"dsg4nV\":[\"Descartar lecturas puede reducir el error calculado con las observaciones propias. Las marcas de tiempo duplicadas se excluyen de las observaciones comunes. Estos recuentos no miden la cobertura temporal continua.\"],\"dvrg2y\":[\"Registros emparejados\"],\"dw3RHG\":[\"sin informar\"],\"dxyEjQ\":[\"Interrumpido\"],\"e53Atr\":[\"Intento \",[\"0\"]],\"e8GyQg\":[\"Métrica\"],\"eIz4fP\":[\"Evidencia de la comparación\"],\"eLJnth\":[\"El servidor fija la configuración predeterminada, la base actual y la candidata, además de la configuración del otro lado. El reprocesamiento usa señales conservadas y nunca reemplaza las observaciones originales.\"],\"eLzX0W\":[\"HomeKit bridge\"],\"eMS-Kh\":[\"Las ejecuciones programadas esperan a su período y a una nueva comprobación de admisión de recursos. Esto aún no implica que haya observaciones.\"],\"ea_tpx\":[\"Restaurar… ▾\"],\"eiQsF1\":[\"No dataset is frozen for this side yet. Freezing takes the newest nights a reference covers, with their RAW archives, so a backtest can replay them.\"],\"erZkEJ\":[\"Registros siguientes\"],\"ewu5hx\":[\"Detener observación\"],\"f1PMkf\":[\"Inspeccionar trazas de fases\"],\"f2Vka4\":[\"Detalles de la observación\"],\"f9XWfS\":[\"Las marcas de tiempo originales se muestran en \",[\"timezone\"],\". La evaluación con la referencia añade el desfase fijado de \",[\"0\"],\" ms.\"],\"fDm1vz\":[\"Away mode\"],\"fFKwiD\":[\"Queueing the backtest…\"],\"fMY8OF\":[\"Esta vista no admite la versión o estructura de este informe.\"],\"fduV6w\":[\"Evidencia insuficiente para una mejora validada\"],\"fisQjo\":[\"stage kappa\"],\"fjyJzV\":[\"Configuraciones registradas: \",[\"0\"],\"; lecturas con configuración desconocida: \",[\"1\"],\".\"],\"fpMxrt\":[\"ventanas IBI de 10 segundos aceptadas\"],\"frH3v_\":[\"latest MAE \",[\"0\"],\", bias \",[\"1\"],\" \",[\"unit\"]],\"fsEiED\":[\"Guardar protocolo de evaluación\"],\"fsIyEL\":[\"Importación de referencias guardada: \",[\"saved\"]],\"fx36Vz\":[\"Nights, sleep stages and vitals\"],\"fxeXBO\":[\"Experimentos guardados\"],\"g38APT\":[\"Fase alternativa\"],\"g8_K4H\":[\"Trabajos anteriores\"],\"g9GNn8\":[\"Puntuaciones de fases agrupadas en intervalos compartidos\"],\"g9QO1Q\":[\"Vistas de calibración\"],\"gEcnen\":[\"Cobertura exacta de los datos procesados\"],\"gHMTXI\":[\"Los registros aceptados no son necesariamente válidos para la validación. Las definiciones incompatibles de VFC no se pueden evaluar.\"],\"gIsCcS\":[\"Noches completadas\"],\"gQp61o\":[\"Registros de referencia fuera del período capturado: \",[\"0\"]],\"gWywdR\":[\"Registros de referencia disponibles por métrica (entre revisiones)\"],\"gY4IEV\":[\"Revisar informe de observación\"],\"gYLm31\":[\"Aplicar la revisión evaluada\"],\"gqM0fU\":[\"Conjuntos de datos conservados\"],\"gqtr8Z\":[\"No se pudo guardar.\"],\"gsdE1-\":[\"Marcas de tiempo de observación perdidas con el candidato: \",[\"0\"],\"; añadidas: \",[\"1\"],\".\"],\"gsxO3G\":[\"Powers a side off when the pump stalls\"],\"h-_RA9\":[\"Métricas: \",[\"0\"]],\"h8USYG\":[\"El contexto de presencia y de la bomba refleja observaciones del host, no demuestra el estado almacenado en la caché del procesador en vivo.\"],\"hCQg3t\":[\"Selecciona archivos para cada noche fijada, incluidos cinco minutos previos. Los límites temporales de los archivos no demuestran una cobertura continua de la señal. El servidor verifica y copia los bytes seleccionados antes de publicar un nuevo conjunto de datos.\"],\"hD-y_c\":[\"Inspeccionar trabajo\"],\"hQDrYd\":[\"Elige una plantilla\"],\"hV5uRE\":[\"Puntos de referencia\"],\"hY_84S\":[\"Sin coincidencia temporal\"],\"hYpaGJ\":[\"Set each side’s temperature\"],\"hZVN7j\":[\"No hay registros de referencia coincidentes.\"],\"hew6O1\":[\"No se guardaron observaciones.\"],\"i4lAMH\":[\"Comience con el perfil guardado. Se conservan las personalizaciones de las fases del sueño. Al quitar una personalización numérica se usa el valor predeterminado incluido.\"],\"iBoQ7e\":[\"La concordancia con una referencia identificada no demuestra precisión clínica.\"],\"iLPjcf\":[\"Copies the biometrics archive to a host you control over SSH, once per night\"],\"iNXP29\":[\"Internet access\"],\"iOcCtM\":[\"Fila \",[\"0\"],\": \",[\"1\"]],\"iRuL-K\":[\"Kappa\"],\"iSlb8i\":[\"Falló la prueba retrospectiva en noches de \",[\"0\"]],\"iTFRRA\":[\"Intervalo respiratorio más largo (× mediana)\"],\"iZdGUJ\":[\"El perfil guardado ha cambiado. Vuelva a comparar antes de revisar estos cambios.\"],\"ickSQa\":[\"Solicitud de activación guardada. La confirmación del procesador se indica por separado a continuación.\"],\"idD8Ev\":[\"Guardado\"],\"idUHAF\":[\"Noche de la traza\"],\"ienenm\":[\"Programar una observación\"],\"iiIc1S\":[\"Lecturas añadidas\"],\"iyttMX\":[\"Lecturas recalculadas exactas, sin ajuste del reloj de referencia\"],\"izHeGP\":[\"Stage rules\"],\"izUm62\":[\"Comparar con el perfil guardado\"],\"j5lpmE\":[\"Rechazar intervalos más cortos que\"],\"j87ALW\":[\"Estimar incertidumbre exploratoria por noches completas\"],\"j8f0f7\":[\"Inspeccionar mediciones\"],\"jFnLa4\":[\"Turn sides off after a set number of hours\"],\"jGGU20\":[\"Default power state when a curve finishes\"],\"jHJqeF\":[\"No hay experimentos guardados para este lado.\"],\"jM5CSI\":[\"Identidad de la evidencia guardada\"],\"j_WgSe\":[\"Tap the top of the cover on your side\"],\"ja10bn\":[\"Temperature control\"],\"jnHbBF\":[\"Biblioteca de referencias\"],\"jnTV6s\":[\"Prueba retrospectiva \",[\"0\"],\". El conjunto congelado se reprodujo con los perfiles anterior y guardado; nada aquí cambia el pod.\"],\"jnd7HN\":[\"Night\"],\"jqzUyM\":[\"No disponible\"],\"jtiXJv\":[\"What the rules evaluated and why\"],\"k9QdNt\":[\"Agregación\"],\"kBDFtj\":[\"Bed setup\"],\"kEoNsC\":[\"Inspeccione los datos fijados y las particiones de noches completas, o libere su almacenamiento.\"],\"kRbwZR\":[\"La lista de reglas difiere de las reglas de fábrica.\"],\"kSn7J6\":[\"Scheduled jobs and drift\"],\"kXxqsJ\":[\"¿Liberar permanentemente los resultados detallados? Se conservan el hash del informe, el historial del trabajo y la auditoría de exposición al conjunto reservado.\"],\"k_Kc3O\":[\"Regla candidata\"],\"k_tlKH\":[\"La concordancia de las fases del sueño se mide frente a la referencia identificada. No demuestra precisión clínica en la clasificación de las fases.\"],\"kg9QHL\":[\"Puntuación mínima de la señal del latido\"],\"klYSYX\":[\"No hay registros de referencia en el período de observación.\"],\"kmVlv0\":[\"Guardar y solicitar\"],\"knhXFm\":[\"Cobertura reducida en al menos una ventana evaluada\"],\"koFCAF\":[\"Valores predeterminados del sistema\"],\"krN8T4\":[\"Primera página de archivos\"],\"krfedI\":[\"Watch SDNN and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values.\"],\"kvoj0l\":[\"Esperando la entrega\"],\"kx0s-n\":[\"Results\"],\"l-ka0P\":[\"Tolerancia de coincidencia de puntos (ms, 0–300000)\"],\"l-rdOQ\":[\"El estado se muestreó en las comprobaciones de admisión, normalmente cada cinco segundos. Los intervalos sin observaciones no constituyen mediciones continuas del estado.\"],\"l8XODJ\":[\"Perfiles anteriores\"],\"lCtEWn\":[\"Solicitud de evaluación retrospectiva guardada: \",[\"0\"]],\"lGWE4b\":[\"Validación\"],\"lIwsCR\":[\"Guarde un candidato para evaluarlo. Esto no cambia el procesamiento en vivo.\"],\"lLKx4j\":[\"Turns a side off after you leave the bed\"],\"lPhE6w\":[\"Preparado, aún no admitido. El pod comprueba de nuevo la cualificación y el estado actuales al programar y al iniciar la ejecución.\"],\"lYQlqL\":[\"Elige una noche puntuada para ver su trazo de frecuencia cardíaca.\"],\"lZQljm\":[\"Preparar plan de observación\"],\"lfcZyG\":[\"Installed version and updates\"],\"lgjajK\":[\"Comprobando la evidencia de validación…\"],\"lmuVtM\":[\"Cada configuración en sus propios intervalos disponibles\"],\"m0Nxk3\":[\"Guardar candidato sin aplicar\"],\"m3idi0\":[\"Diferencia de MAE con observaciones propias\"],\"mCRJge\":[\"bias (+ = pod reads high)\"],\"mEGaVF\":[\"Solicitó la activación · generación \",[\"0\"]],\"mJLKhS\":[\"Intervalos de la traza \",[\"first\"],\"–\",[\"last\"],\" de \",[\"0\"]],\"mPyzNL\":[\"Comparar observaciones prospectivas con una referencia\"],\"mZsnWl\":[\"Ventanas IBI mínimas\"],\"mZzxmI\":[\"El último archivo no estaba disponible. Continúa con la inspección del siguiente archivo.\"],\"mcrx-J\":[\"3D stage\"],\"mizif2\":[\"No hay conjuntos de datos conservados para este lado.\"],\"mjOerZ\":[\"Traza de fases de los intervalos mostrados; las horas exactas y las fases figuran en la tabla siguiente.\"],\"mkhMIi\":[\"Dentro de los límites observados.\"],\"mmYtG3\":[\"Reintentar la solicitud exacta de activación\"],\"mpfEb2\":[\"Minutos emparejados\"],\"mxcjJ3\":[\"Primeros registros\"],\"n9nSNJ\":[\"Time format\"],\"nDsRnU\":[\"Métrica de la traza numérica\"],\"nGd0J1\":[\"No matches for “\",[\"q\"],\"”\"],\"nOPbWJ\":[\"Derecha\"],\"nR_Xo2\":[\"Todavía no hay ningún informe guardado disponible.\"],\"nRm1_n\":[\"Hash del candidato\"],\"nZvP5d\":[\"Los informes describen la cobertura observada y la concordancia con la referencia; no autorizan la activación.\"],\"neY-I0\":[\"Trazo de frecuencia cardíaca\"],\"nfv2Gn\":[\"Revisar plan preparado\"],\"njHfRY\":[\"Guardó el perfil\"],\"nkTSf7\":[\"Longitud del historial de seguimiento\"],\"nsVNnB\":[\"URL, TLS, credentials and topic prefix\"],\"nvXKMs\":[\"No backtest yet. Freeze a new dataset below; it replays the newest referenced nights through the previous and saved profiles. Nothing here changes the pod.\"],\"nzhJlu\":[\"Informe de evaluación\"],\"o0m-W5\":[\"El perfil guardado ha cambiado. Seleccione de nuevo una acción de restauración para realizar una nueva solicitud.\"],\"o2CMR_\":[\"Unidad: \",[\"0\"],\"; intervalo: \",[\"1\"],\"–\",[\"2\"],\"; predeterminado: \",[\"3\"],\"; original: \",[\"4\"]],\"o7BAcK\":[\"LED night mode\"],\"oFAivV\":[\"El progreso por noches aún no está disponible.\"],\"oQ7Z7k\":[\"Error absoluto medio en marcas de tiempo comunes: activo \",[\"0\"],\", candidato \",[\"1\"],\".\"],\"oRepAd\":[\"Guardar la importación revisada\"],\"oSES6x\":[\"Los errores usan la unidad de la métrica; el sesgo con signo es el valor del pod menos la referencia.\"],\"oSm2At\":[\"La identidad de la traza numérica no coincide con el informe seleccionado.\"],\"oTZWAU\":[\"¿Liberar estos datos conservados permanentemente? Se mantienen los informes existentes y los metadatos de auditoría. Los trabajos activos deben finalizar o cancelarse primero.\"],\"on-veT\":[[\"0\"],\" error de FC \",[\"1\"],\" → \",[\"2\"],\" lpm · \",[\"3\"]],\"osmcFY\":[\"ajuste\"],\"otbH9Y\":[\"La cobertura de salida usa el tiempo evaluado como denominador. La cobertura de referencia usa el tiempo de referencia apto. Una puntuación mayor con cobertura reducida no es evidencia suficiente de mejora.\"],\"otqFKT\":[\"Límites temporales del archivo (UTC): de \",[\"0\"],\" a \",[\"1\"]],\"ouWIPE\":[\"Datos de entrada fijados del trabajo\"],\"ovUYdL\":[\"Preferences for the pod and this device\"],\"oxuApB\":[\"Configuración de la traza numérica\"],\"oz6J2T\":[\"Percentil 95 del error absoluto\"],\"p5Tvds\":[\"Actualizar informe\"],\"p8gpyN\":[\"Preparar evaluación retrospectiva\"],\"pAfIv7\":[\"Parámetros del candidato\"],\"pD9nPP\":[\"Dims the LED overnight\"],\"pWhtyD\":[\"Calibración\"],\"pdCJud\":[\"o más largos que\"],\"pdmaPz\":[\"HRV index\"],\"peLE5v\":[\"Menor error: \",[\"0\"],\"; mayor: \",[\"1\"],\"; sin cambios: \",[\"2\"]],\"piBZoW\":[\"Demostración simulada: lecturas generadas, sin ejecución en hardware ni cualificación.\"],\"plwcxa\":[\"El desfase fijado de \",[\"clockOffsetMs\"],\" ms se añade a las marcas de tiempo recalculadas en esta superposición. Las horas de referencia no cambian. Tolerancia de emparejamiento de puntos: \",[\"0\"],\" ms.\"],\"pn1wGH\":[\"Conjuntos de datos anteriores\"],\"pzU3_f\":[\"No hay ningún comprobante de recursos de un proceso de trabajo completado.\"],\"q-GSeQ\":[\"Intervalo exploratorio del 95 % para la diferencia de MAE: de \",[\"0\"],\" a \",[\"1\"]],\"q268Hy\":[\"Elige un período futuro dentro del límite de la plantilla. Preparar un plan no lo programa.\"],\"q35hV5\":[\"Cobertura de referencia\"],\"q8lqrb\":[\"Comparar lecturas almacenadas\"],\"qKKmRI\":[\"Ctrl K\"],\"qQyQVC\":[\"Cancelar evaluación retrospectiva\"],\"qbMXVo\":[\"Progreso: \",[\"0\"],\" / \",[\"1\"],\" noches\"],\"qc-DVG\":[\"Calidad de calibración asumida (0–1)\"],\"qdIvCQ\":[\"Momento de activación\"],\"qjP3h7\":[\"Noches puntuadas: \",[\"0\"],\"; sin puntuar: \",[\"1\"],\"; cobertura reducida: \",[\"2\"]],\"qlh_FJ\":[\"Hash del plan: \",[\"0\"]],\"qo0fEa\":[\"Consulte Resumen para ver el estado actual del procesador; una confirmación anterior no demuestra el estado actual.\"],\"qqZDsc\":[\"Observaciones\"],\"qw2orZ\":[\"Comparación de lecturas originales almacenadas\"],\"qwp7QZ\":[\"Liberar datos permanentemente\"],\"qzhWuP\":[\"Revisión de origen\"],\"qzhiSq\":[\"Quiero restaurar el perfil anterior exacto sin evidencia de validación.\"],\"r3sa6W\":[\"Experimento guardado: \",[\"0\"]],\"rJRd6m\":[\"The key the pod uses to reach your host\"],\"rLBjVo\":[\"Generaciones activas: izquierda \",[\"0\"],\", derecha \",[\"1\"],\".\"],\"rMag_1\":[\"Freezing failed.\"],\"rPk-pR\":[\"sin cambios\"],\"rSRVPh\":[\"Una solicitud guardada no significa que la ejecución haya comenzado o finalizado correctamente. Inspeccione el trabajo para conocer su estado actual.\"],\"rT2tqA\":[\"Formato de referencia\"],\"rZSSdB\":[\"Ciclo del perfil\"],\"rnN7wn\":[\"No backtest yet. This dataset has no waveform replay; freeze a new dataset below to set one up. Nothing here changes the pod.\"],\"rruaq8\":[\"La identidad de la referencia no coincide con el informe seleccionado.\"],\"ruHgkn\":[\"Each 5-minute epoch takes the first rule that matches\"],\"sN516V\":[\"Pump stall protection\"],\"sPFHpI\":[\"Disk\"],\"sbMCzq\":[\"No hay valores compatibles en estas páginas.\"],\"scVcMn\":[\"HR MAE / bias (\",[\"0\"],\")\"],\"sdPN1F\":[\"Conjunto de datos\"],\"sdgA-V\":[\"La comparación con la referencia falló.\"],\"sgOAS_\":[\"Observaciones guardadas: \",[\"0\"]],\"srnBNJ\":[\"sin referencia\"],\"svAg_h\":[\"Congelar un conjunto nuevo\"],\"t-Vlce\":[\"Aún no ha pasado nada en este lado.\"],\"t072kc\":[\"Choosing nights the reference covers…\"],\"t85xzT\":[\"Error de FC por noche · lpm frente a la referencia\"],\"t9S3g1\":[\"Compare con el perfil guardado. Esta comparación de configuración no demuestra validación.\"],\"tBe0Mi\":[\"Qué hizo el perfil guardado\"],\"tEXMPn\":[\"Restaurar el anterior\"],\"tQU1G2\":[\"Limitaciones\"],\"tRmb9r\":[\"Recent service logs\"],\"tToCKC\":[\"Bytes conservados: \",[\"0\"]],\"tXkhj_\":[\"Inicio\"],\"ta6ak8\":[\"Fijar datos seleccionados\"],\"tf6U9f\":[\"Bytes comprimidos: \",[\"0\"]],\"ti4sFo\":[\"Guardó una importación de referencia de \",[\"0\"]],\"ts0Iq9\":[\"Umbral de picos de frecuencia cardíaca (desviaciones estándar)\"],\"ttIsX4\":[\"Which releases the pod installs\"],\"ttc02l\":[\"Minutos de referencia\"],\"u41hN6\":[\"Cobertura reducida\"],\"u5a5NC\":[\"Requiere una nueva verificación\"],\"u8PbT5\":[\"Reprocesar también las fases del sueño\"],\"uAQUqI\":[\"Estado\"],\"uMzbru\":[\"Conservar las formas de onda seleccionadas\"],\"uPiT3Y\":[\"Los valores cambiados aparecen en blanco; el perfil anterior (valores del sistema) queda debajo. Mover un control edita el perfil guardado; guardarlo de nuevo lo vuelve a solicitar. El procesador adopta un perfil solo después de confirmar una solicitud.\"],\"uQh6hr\":[\"Comparación / base\"],\"uVvWY-\":[\"Noches registradas\"],\"uX0V3h\":[\"Registros de referencia para comparar\"],\"uZsFeN\":[\"Aplica este candidato exacto usando la evaluación seleccionada. La evidencia y la configuración actual se comprueban de nuevo al aplicarlo.\"],\"ubgn_Q\":[\"Reglas de fases del sueño del candidato\"],\"uihHRS\":[\"El pod rechazó este plan. Ajústalo y prepáralo de nuevo.\"],\"uj0QeQ\":[\"Umbral incumplido: \",[\"reason\"]],\"uj9vMS\":[\"Intervalo respiratorio más corto (× mediana)\"],\"uk6Pmi\":[\"Importar mediciones de referencia\"],\"ukOhBN\":[\"Elija el protocolo antes de ver los resultados. Crear un experimento no ejecuta un trabajo ni aplica un perfil.\"],\"uv3Ezk\":[\"Regla de señal baja del candidato\"],\"v0YxJ6\":[\"Detalles de intervalos compartidos: \",[\"0\"]],\"vAFAci\":[\"Revisar candidato\"],\"vKQ3HQ\":[\"Heart rate tuning\"],\"vVE3Ho\":[\"Comparar referencias fijadas\"],\"vX6LBe\":[\"Evidencia de evaluación incompatible\"],\"vX8Jre\":[\"ÍNDICE DE VFC\"],\"vZ6rJ5\":[\"Corregir importación\"],\"vZdyzL\":[\"La cobertura de referencia es la fracción de registros de referencia aptos que se han emparejado. La cobertura de salida es la fracción de observaciones con un valor, no la cobertura temporal continua. Las muestras escasas no permiten establecer la precisión de una noche completa.\"],\"vhqhMs\":[\"No se ha confirmado la limpieza del proceso de trabajo.\"],\"vkIIv_\":[\"Sesiones seleccionadas: \",[\"0\"],\" / 60\"],\"vl7cYu\":[\"Sensor data source\"],\"vq24aI\":[\"Procesos Python medidos: \",[\"0\"],\" de \",[\"1\"]],\"vq2FYw\":[\"Regla \",[\"0\"]],\"vrQQgz\":[\"Perfiles\"],\"vuyIUW\":[\"No se pudieron emparejar de forma fiable las lecturas del candidato y del perfil activo.\"],\"vv7kpg\":[\"Cancelado\"],\"w6ZzbW\":[\"anterior\"],\"wHpeCu\":[\"Ajuste\"],\"wKbWyv\":[\"Lo guarda como perfil y lo solicita; el perfil guardado actual pasa a ser el anterior. El procesador sigue con lo que tiene hasta confirmar la solicitud.\"],\"wMHvYH\":[\"Valor\"],\"wOA2YL\":[\"Una revisión guardada no demuestra validación ni adopción por el procesador.\"],\"wOuuTa\":[\"Referencia / predicción\"],\"wPpM6Q\":[\"Hash del plan\"],\"wQBmjJ\":[\"Breathing tuning\"],\"wRR604\":[\"Pages\"],\"wTOwz-\":[\"Aplicado\"],\"we3ttu\":[\"Hash del conjunto de datos\"],\"wn_sE_\":[\"Sesgo con signo\"],\"wu6Pa1\":[\"LED brightness\"],\"ww-u9k\":[\"Aceptados: \",[\"0\"],\"; rechazados: \",[\"1\"],\"; duplicados: \",[\"2\"],\"; no evaluables: \",[\"3\"]],\"x0EO-w\":[\"variabilidad IBI por ventana, no RMSSD clínico\"],\"x9pT2j\":[\", con \",[\"count\"],\" ajustes propios\"],\"x9u6nv\":[\", with no overrides\"],\"xCyL2U\":[\"Error en la vista previa de las referencias.\"],\"xDr_ct\":[\"Fin\"],\"xHMZQc\":[\"Costes del reprocesamiento\"],\"xHs5dk\":[\"┆ gen N profile change\"],\"xS38A7\":[\"Esta ejecución antigua no tiene guardada la identidad de la revisión candidata.\"],\"xUBoEO\":[\"Matriz de confusión en minutos: filas de referencia, columnas de predicción\"],\"xWY4U3\":[\"Automations that adjust the bed for you\"],\"xaHJrr\":[\"No backtest has replayed the saved profile yet. Saving a change replays the frozen dataset on its tuning, validation and holdout nights; nothing here changes the pod.\"],\"xahtIL\":[\"Activación manual\"],\"xem4Yw\":[\"Conservar informe\"],\"xh-6Jm\":[\"What each side is called\"],\"xh4HSZ\":[\"Minutos de referencia aptos\"],\"xmGHa-\":[\"Experimentos anteriores\"],\"y-5ho7\":[\"Lecturas recalculadas \",[\"first\"],\"–\",[\"0\"],\" de \",[\"1\"]],\"y1-Ttq\":[\"Editar ajustes\"],\"y1L8fR\":[\"Observaciones almacenadas: \",[\"0\"]],\"y7CEna\":[\"Borrar la selección de esta noche\"],\"yD0Ka7\":[\"Primera mitad de cada período\"],\"yHNO9L\":[\"Registros de referencia\"],\"yJgBTR\":[\"primeras 500 lecturas\"],\"yQwtrO\":[\"Mediciones de referencia normalizadas\"],\"yTWKne\":[\"Terminó una prueba retrospectiva en noches de \",[\"0\"]],\"yUns4e\":[\"Intervalos exactos de la traza\"],\"yZcT27\":[\"Restaurar valores predeterminados del sistema\"],\"ykpqy2\":[\"Vista de fases actual\"],\"ysAeQM\":[\"La cobertura del candidato se redujo; un menor error por sí solo no demuestra una mejora.\"],\"ywFj2D\":[\"Configuración\"],\"yyCcHp\":[\"Cobertura y confusión de fases por noche\"],\"yydYOL\":[\"Revisar informe\"],\"z1a7gg\":[\"Esta solicitud hace referencia a un conjunto de datos liberado. Sus bytes de formas de onda ya no están disponibles.\"],\"z35-JD\":[\"Sensor baselines for piezo, capacitance and temperature\"],\"z5mSEw\":[\"Conjunto de datos de formas de onda conservado: \",[\"published\"]],\"zD4VqY\":[\"Sin puntuación\"],\"zHYvnZ\":[\"Suavizar épocas aisladas\"],\"zPlfe_\":[\"Plantilla de observación\"],\"zQ1eT8\":[\"Candidato\"],\"zTAN4I\":[\"Identificador de la persona\"],\"zXaTA9\":[\"Las observaciones faltantes siguen sin datos. El índice de variabilidad IBI no es el RMSSD clínico.\"],\"zg_dr-\":[\"Las duraciones abarcan el trabajo secuencial de Python hasta la generación del resultado. La memoria es el mayor pico registrado durante la vida de un proceso. Estas mediciones excluyen los costes del coordinador y de la evaluación, y no demuestran el buen funcionamiento de la recepción de datos en vivo.\"]}")}; \ No newline at end of file +/*eslint-disable*/module.exports={messages:JSON.parse("{\"-7ESf_\":[\"No hay revisiones de candidatos guardadas.\"],\"-8VQNP\":[\"Exploración de archivos completada.\"],\"-A51pP\":[\"not run\"],\"-BcCfq\":[\"The full-screen bed on the Temp screen\"],\"-C2YDb\":[\"Poner evaluación retrospectiva en cola\"],\"-HG8IU\":[\"Every night is re-scored with the current stage rules; higher is better.\"],\"-LXyQ4\":[\"Pod − Watch per night, by bed-entry date. The goal is zero; dashed lines mark profile changes.\"],\"-USBLd\":[\"Modo de evaluación\"],\"-VKOiQ\":[\"Esta comparación captura una nueva instantánea. Una ejecución en curso puede tener más observaciones que el informe de estado anterior.\"],\"-Yo_SK\":[\"Este informe es anterior a las mediciones de los procesos de reprocesamiento.\"],\"-avT-V\":[\"Circulates water to clear air from the lines\"],\"-gLagq\":[\"liberado\"],\"-mOi3A\":[\"Vista previa de la importación\"],\"-pG9wc\":[\"Siguiente página de referencias\"],\"-tMOt1\":[\"Restauró el perfil anterior y lo solicitó\"],\"-yvkzR\":[\"Otro cambio de perfil ha sustituido esta solicitud.\"],\"00b9Bg\":[\"Mostrar recientes\"],\"03_grA\":[\"No backtest yet. Import a reference for this side, then freeze nights that have it; the replay scores the previous and saved profiles against it. Nothing here changes the pod.\"],\"0ArZBq\":[\"Remuestreos (200–5000)\"],\"0Ke-zM\":[\"No hay plantillas de observación prospectiva configuradas en este pod.\"],\"0RiDQs\":[\"Hash del informe\"],\"0SoeWE\":[\"Esperando un ejecutor y recursos disponibles. Una solicitud en cola no implica que se esté ejecutando.\"],\"0TTMQ2\":[\"congelado \",[\"0\"],\" · \",[\"1\"]],\"0UEomc\":[\"Hash del contenido de referencia\"],\"0eWybM\":[\"Diferencia de F1 macro en intervalos compartidos: \",[\"0\"]],\"0fgSB_\":[\"Solicitando…\"],\"0g8Hrj\":[\"Mediciones de origen eliminadas\"],\"18DKey\":[\"Home Assistant discovery\"],\"1E_-sY\":[\"Este umbral de informe no es un requisito validado de tamaño de muestra. Si hay pocas noches o no permiten estimar variación, no se genera un intervalo.\"],\"1I5fPJ\":[\"Marcas de tiempo ambiguas (base / comparación)\"],\"1SxkbH\":[\"Revisión \",[\"0\"],\"; aceptados \",[\"1\"],\"; no evaluables \",[\"2\"]],\"1bs1Oi\":[\"Storage used on the pod\"],\"1gZYbz\":[\"Fases del sueño\"],\"1gkwth\":[\"cubierto\"],\"1gq8Fu\":[\"Los valores cambiados aparecen en blanco; el perfil anterior queda debajo. Mover un control edita el perfil guardado; guardarlo de nuevo lo vuelve a solicitar. El procesador adopta un perfil solo después de confirmar una solicitud.\"],\"1m2ZjF\":[\"Esperando un límite de procesamiento\"],\"1njn7W\":[\"Ligero\"],\"1sMQW6\":[\"Observaciones sin emparejar\"],\"1zMPXx\":[\"El servidor captura las configuraciones predeterminada, de la vista de fases actual y candidata al enviar la solicitud. Las lecturas almacenadas no pueden validar cambios en parámetros numéricos.\"],\"22M8hi\":[\"Upload Apple Watch data to see how far this side's readings sit from the Watch, night by night.\"],\"2Ek6a3\":[\"Nuevo plan de observación\"],\"2FSnGH\":[\"Concordancia con la referencia calculada.\"],\"2JsUDv\":[\"Restaurar y solicitar\"],\"2KVdfN\":[\"Parada registrada\"],\"2LVKeT\":[\"Segunda mitad de cada período\"],\"2UtXoO\":[\"El índice de variabilidad IBI por ventanas no es el RMSSD clínico entre latidos. Solo se puntúan definiciones de métricas y ventanas de agregación compatibles.\"],\"2X2m4_\":[\"ocultar\"],\"2_xXFZ\":[\"Solicitud de observación guardada: \",[\"saved\"],\". Revisa su estado en la lista de ejecuciones; esto no implica que se haya ejecutado.\"],\"2hjLDv\":[\"Las revisiones de perfil aquí son candidatas. Aplicar una la solicita igual que Guardar y solicitar; la vista general muestra cuándo la confirma el procesador.\"],\"2kV8bg\":[\"Mayor pico de memoria de un proceso Python (MiB)\"],\"2q_goE\":[\"Liberar datos conservados\"],\"33IC49\":[\"Fahrenheit or Celsius across the app\"],\"33aIUI\":[\"Mayor intervalo sin observaciones: \",[\"0\"],\" segundos\"],\"33v1rN\":[\"Compatible\"],\"39Atsr\":[\"Reprocesamiento de fases no disponible\"],\"3GkuKU\":[\"Los relojes de observación son incoherentes.\"],\"3PRxO3\":[\"Fase\"],\"3SR-aZ\":[\"Valor predeterminado heredado\"],\"3burf-\":[\"Replay saved nights against a profile\"],\"3cOQwy\":[\"Mayor intervalo sin observaciones: \",[\"0\"],\" segundos.\"],\"3d05JT\":[\"MAE de la comparación con observaciones comunes\"],\"3kR70m\":[\"Pares de referencia comunes: activo \",[\"0\"],\", candidato \",[\"1\"],\".\"],\"3l8RWF\":[\"Profundo\"],\"3uHzkK\":[\"Configuración fijada y personalizaciones\"],\"3zXtla\":[\"Temporarily pause a sleeper’s tracking and alarms\"],\"4-hUpd\":[\"Siguientes noches del informe\"],\"40Gx0U\":[\"Timezone\"],\"40OXuf\":[\"Fuente de referencia\"],\"446E9e\":[\"Intervalo exploratorio estimado\"],\"4BjOe9\":[\"elige una noche\"],\"4QTTLk\":[\"Muestras de memoria: \",[\"0\"],\" de \",[\"1\"],\"; mayor intervalo sin muestras: \",[\"2\"],\" segundos\"],\"4Xq3Qs\":[\"Trazas de fases reprocesadas\"],\"4ZsrjP\":[\"Revisión \",[\"0\"],\" · \",[\"1\"],\" · \",[\"2\"]],\"4_5Byh\":[\"Informar el índice solo después de\"],\"4ajvlE\":[[\"0\"],\" registros\"],\"4ba0NE\":[\"Programada\"],\"4cbaBq\":[\"Los círculos son lecturas recalculadas; los cuadrados son puntos de referencia; las barras horizontales son intervalos de referencia. Solo se muestran las dos páginas seleccionadas. Esta superposición visual no crea nuevos pares emparejados ni puntuaciones.\"],\"4d-mVQ\":[\"Signos vitales almacenados: \",[\"0\"],\"; registros de movimiento: \",[\"1\"]],\"4mi85N\":[\"Vigilia\"],\"4szmRA\":[\"Las diferencias con igual peso por noche y las puntuaciones agrupadas por duración usan ponderaciones diferentes. La pérdida de cobertura debe considerarse junto con los cambios de puntuación.\"],\"4wjzfS\":[\"F1 macro\"],\"4ylXAL\":[\"Informe de observación prospectiva\"],\"5-4l5i\":[\"Update channel\"],\"51-xfW\":[\"Horas mostradas en \",[\"timezone\"]],\"51WyWB\":[\". Independiente del perfil.\"],\"563t94\":[\"Siguiente página de archivos\"],\"5716sl\":[\"Configuración de la traza\"],\"5BvHkO\":[\"Página numérica anterior\"],\"5Mc__K\":[\"Preparar una nueva solicitud con la referencia actual\"],\"5ZoFxn\":[\"Los umbrales forman parte de este experimento. Proporcionar umbrales no cualifica una política de promoción.\"],\"5_rcZN\":[\"Candidato guardado: \",[\"saved\"]],\"5doABu\":[\"Auto-on\"],\"5jKV9V\":[\"Detalles del trabajo\"],\"5pWEdW\":[\"Estas puntuaciones comparan lecturas recalculadas a partir de formas de onda conservadas. Las puntuaciones en marcas de tiempo comunes usan observaciones disponibles en todas las configuraciones. Las diferencias describen la concordancia con la referencia y no demuestran una mejora validada.\"],\"5uuxPO\":[\"Parte de la evidencia del estado no está disponible o cambió de cualificación durante la ejecución.\"],\"60ebf_\":[\"SSH identity\"],\"6C5LWh\":[\"Pod health and diagnostics\"],\"6KrHKt\":[\"Idéntico al perfil guardado; restaurar solo lo vuelve a solicitar.\"],\"6Njx8W\":[\"Reading RAW archives · \",[\"0\"],\" / \",[\"1\"]],\"6Pvtlo\":[\"Error de FC · reserva\"],\"6RQpjn\":[\"Cancelación solicitada\"],\"6_cgQY\":[\"Semilla de muestreo reproducible\"],\"6_dCYd\":[\"Resumen\"],\"6o-CER\":[\"vigencia desconocida\"],\"6qR6Df\":[\"Origen / revisión\"],\"6tj-Z0\":[\"Perfiles recientes\"],\"6uwzJJ\":[\"Evaluaciones retrospectivas\"],\"71Z__Z\":[\"Activación validada\"],\"7BI5x7\":[\"La intención de personalización puede cambiar aunque el valor resuelto sea el mismo.\"],\"7Bj3x9\":[\"Fallido\"],\"7Hnopa\":[\", con 1 ajuste propio\"],\"7L3hkB\":[\"Las fechas normalizadas exactas se muestran en UTC. Los valores no se interpolan.\"],\"7Moz13\":[\"Perfil guardado frente al anterior\"],\"7T4D_c\":[\"Readings outside these limits are ignored\"],\"7hw71T\":[\"Raw sensor streams\"],\"7l15X4\":[\"falló\"],\"7l_Tjk\":[[\"stages\"],\" valores de fases del sueño\"],\"7m2vSb\":[\"While an alarm is ringing\"],\"7oRNr7\":[\"What a tap does to a ringing alarm\"],\"7qeI1z\":[\"Protocolo de evaluación fijado\"],\"7qftNU\":[\"Liberar informe detallado\"],\"7vEC4B\":[\"vigente\"],\"8-x9lY\":[\"Migró los ajustes de fases del sueño al perfil\"],\"8CnPMu\":[\"HRV MAE / bias (\",[\"0\"],\")\"],\"8TIz1S\":[\"No hay noches registradas para este lado.\"],\"8Whu0n\":[\"No hay suficientes noches independientes para una división de validación; solo se permite una evaluación descriptiva.\"],\"8ZSsNo\":[\"Adds the pod to Apple Home. Local-only — no Apple servers.\"],\"8f8vg9\":[\"El servidor agrupa las sesiones conectadas en noches completas según la zona horaria del dispositivo antes de asignar conjuntos de ajuste, validación y reserva. La división no demuestra una mejora.\"],\"8f9lK-\":[\"Límite de la próxima sesión\"],\"8hxWfI\":[\"No hay observaciones coincidentes.\"],\"8kkt--\":[\"Comparar referencia\"],\"8lcee1\":[\"Personalizado\"],\"8m8FBC\":[\"Comenzar con el perfil actual\"],\"8nOcxV\":[\"Ejecución completada\"],\"8pq43b\":[\"Error del índice de VFC\"],\"8vYOP0\":[\"Próximo límite de procesamiento\"],\"8wngZM\":[\"Fase por defecto\"],\"8wu9lr\":[\"En cola\"],\"8xEouR\":[\"La reserva es la cifra fiable; las noches de ajuste se usaron para elegir estos valores.\"],\"92LEHj\":[\"Used on the Temp screen of this device\"],\"9HGU1A\":[\"Minutos de salida\"],\"9KnPbi\":[\"Hash del informe de comparación\"],\"9RckBe\":[\"¡Hola, tRPC test page!\"],\"9S8_IK\":[\"El servidor ha verificado la integridad de los datos conservados.\"],\"9Xwfwj\":[\"No se han seleccionado referencias. Este conjunto de datos no puede demostrar concordancia con mediciones de referencia.\"],\"9aloPG\":[\"Referencias\"],\"9dnk8H\":[\"Este es el resultado de evaluación conservado, no una aprobación actual de activación ni una demostración de precisión clínica. Al aplicarlo se comprueban de nuevo la evidencia y la configuración actuales.\"],\"9fUe-g\":[\"No hay ninguna configuración evaluada disponible.\"],\"A1Aqyj\":[\"Frecuencia respiratoria\"],\"A1taO8\":[\"Search\"],\"A6mP7J\":[\"Opens the docs in a new tab\"],\"A8uc8S\":[\"Umbrales fijados de los objetivos de fases del sueño\"],\"ABXRh6\":[\"Disk usage and recording\"],\"ALIxuu\":[\"Revisiones de referencia seleccionadas: \",[\"0\"],\" / 20\"],\"ASwFip\":[\"La calidad de calibración de fases es una suposición explícita del reprocesamiento, no una medición recuperada del sensor. La comparación de lecturas almacenadas no prueba cambios en parámetros numéricos.\"],\"AZtrRp\":[\"Trabajos de evaluación retrospectiva\"],\"AeJ9jx\":[\"Brightness of the pod’s light\"],\"AlrzpB\":[\"El intervalo sin observaciones superó el límite previsto.\"],\"Apj80l\":[\"Los problemas observados requieren revisión.\"],\"Aws57Q\":[\"Importaciones anteriores\"],\"AxM6wv\":[\"Evidencia del informe\"],\"B2rx0Y\":[\"Mantener el perfil guardado\"],\"B5W0zb\":[\"Estas puntuaciones comparan las lecturas originales almacenadas. Los resultados numéricos idénticos entre perfiles no validan los cambios de parámetros numéricos.\"],\"BGoUTB\":[\"Intervalo de referencia: de \",[\"start\"],\" a \",[\"end\"],\" (\",[\"timezone\"],\")\"],\"BHqq1y\":[\"Reintentar la misma solicitud de programación\"],\"BMx22g\":[\"Registros de referencia \",[\"0\"],\"–\",[\"1\"],\" de \",[\"2\"]],\"BXW6e-\":[\"No disponible o pertenece a otra persona.\"],\"Bb1uwv\":[\"No Watch pairs in these nights\"],\"BuBE8H\":[\"Reprocesamiento de señales no disponible: este servicio no ha conservado las formas de onda originales ni el contexto de procesamiento.\"],\"BvyPVP\":[\"Temperature curves, power and alarms\"],\"BxeSfv\":[\"Página de referencias anterior\"],\"C0vtfT\":[\"No hay un intervalo de tiempo aceptado.\"],\"CLYcpa\":[\"Exclusiones de validación\"],\"CLfuqo\":[\"Experimentos recientes\"],\"CWrY1e\":[\"Archivos seleccionados para esta noche: \",[\"0\"],\" / 64\"],\"Cc0BhR\":[\"Aceptar una estimación cuando esté a menos de\"],\"CdAsLU\":[\"Umbral de calidad de calibración para señal baja\"],\"CdAt7D\":[\"Light or dark appearance\"],\"Ci9D6l\":[\"Importar referencia\"],\"Cie-li\":[\"Observaciones prospectivas\"],\"CjIZ1O\":[\"Las observaciones del estado del proceso de trabajo están desactualizadas.\"],\"CvehYe\":[\"Referencias sin emparejar\"],\"Cy6Gb9\":[\"Observaciones comunes\"],\"CyzcAv\":[\"Revise los registros normalizados antes de guardarlos en el pod.\"],\"D32Y23\":[\"FASES DEL SUEÑO\"],\"DDb_NZ\":[\"Noches del conjunto\"],\"DFyeaF\":[\"Índice de variabilidad IBI por ventana\"],\"DHhJ7s\":[\"Anterior\"],\"DIrJXu\":[\"Signal limits\"],\"DPHzQ9\":[\"Revisiones de perfiles guardadas\"],\"DPb-qk\":[\"Editando a partir del perfil guardado actualmente.\"],\"DSphLX\":[\"Pico observado de RSS del grupo de procesos: \",[\"0\"],\" MiB\"],\"DWGgAw\":[\"Linking Watch data already on the pod…\"],\"DXPGRI\":[\"Setting up the replay…\"],\"DnDpLH\":[\"Inspeccionar cambios del candidato\"],\"Dr_Xtk\":[[\"title\"],\": MAE and bias per night, pod minus Watch, in \",[\"unit\"],\".\",[\"0\"]],\"Dt8YN3\":[\"Diferencia media de concordancia con igual peso por noche: \",[\"0\"]],\"DtefQU\":[[\"0\"],\" \",[\"1\"],\": anterior \",[\"2\"],\", guardado \",[\"3\"],\" lpm\"],\"E1wNkc\":[\"Frecuencia respiratoria (respiraciones/min)\"],\"E3rH0L\":[\"Nights as a table\"],\"E8ws29\":[\"Each night's heart rate against the reference appears here once a backtest has run.\"],\"EF4ZiR\":[\"Cobertura de salida\"],\"EI1f8X\":[\"El perfil guardado o las definiciones de parámetros son incompatibles con este editor.\"],\"EN1f1Y\":[\"El estado de ejecución es independiente de la solidez de la evidencia biométrica.\"],\"E_GXXi\":[\"latest \",[\"0\"]],\"EdQY6l\":[\"Ninguno\"],\"Ef7StM\":[\"Desconocido\"],\"EfcF_P\":[\"Este intervalo abarca del primer al último registro; no indica cobertura continua ni coincidencia con las lecturas del pod.\"],\"Eine1d\":[\"Clocks across the app; scheduled times are unchanged\"],\"EjJl4z\":[\"Sensibilidad\"],\"EkEvjV\":[\"Importar los registros aceptados y omitir los rechazados\"],\"El6Jsd\":[\"Protocolo de evaluación\"],\"EmSrGB\":[\"Antes\"],\"Emmy17\":[\"Período máximo: \",[\"0\"],\" minutos.\"],\"EoaBI7\":[\"El procesador rechazó la generación \",[\"0\"]],\"EwH7gh\":[\"Puntuaciones por fase en intervalos emparejados compartidos\"],\"F6pfE9\":[\"Activo\"],\"FB0rkn\":[\"No informar la frecuencia cardíaca cuando la señal del latido puntúa por debajo de\"],\"FEr96N\":[\"Theme\"],\"FFdrAM\":[\"Editando a partir de la revisión \",[\"revisionId\"]],\"FOSd8f\":[\"Turns a side on once you’ve settled into bed\"],\"FVmZD9\":[\"Lado de la calibración biométrica\"],\"FYh4VX\":[\"No se pudo guardar la solicitud para recuperarla. Este intento no se envió. Mantén esta pestaña abierta y reintenta la misma solicitud.\"],\"FhWkbT\":[\"Eliminar importación permanentemente\"],\"FlMg9W\":[\"Precisión\"],\"FsHaTL\":[\"Mediana del error absoluto\"],\"G6a5fj\":[\"Se ha seleccionado otra revisión de esta familia de referencias.\"],\"GJlW-e\":[\"Cobertura de referencia con cada salida: activo \",[\"0\"],\", candidato \",[\"1\"],\".\"],\"GKXsLn\":[\"Compara un candidato en paralelo al procesamiento activo. Las observaciones no cambian tu perfil activo.\"],\"Gi3Y4k\":[\"bpm\"],\"GnvYuO\":[\"Quitar sesión \",[\"id\"]],\"GqVSI2\":[\"Elige una hora de inicio futura.\"],\"GrimP8\":[\"rango\"],\"GuCB02\":[\"La identidad de la traza no coincide con el informe seleccionado.\"],\"H07LNp\":[\"Conjunto de datos guardado: \",[\"0\"]],\"H5aped\":[\"Esta prueba comparó lecturas almacenadas, así que no hay un trazo de frecuencia cardíaca recalculado que dibujar.\"],\"HF2Z8Y\":[\"se prueba al guardar\"],\"HKbCf-\":[\"Night-by-night sleep, stages and score\"],\"HTxS9y\":[\"Se recurrió a un perfil compatible\"],\"HYPLOV\":[\"Desplazamiento fijo añadido a las fechas del pod (ms, ±3600000)\"],\"H_LZii\":[\"Local only keeps the pod from reaching external servers\"],\"HaVLYE\":[\"Error de FC · validación\"],\"Hd_IYa\":[\"Sleep stages: Cohen's kappa against the Watch per night, 1 is full agreement.\",[\"0\"]],\"Hdrvsg\":[\"La comparación con la referencia está limitada a una solicitud de 64 KiB.\"],\"HfaYRx\":[\"Esta pestaña conserva la solicitud exacta de programación entre recargas hasta que se confirme su resultado. Reintentar no prepara un plan nuevo.\"],\"Hhh7ZU\":[\"El procesamiento de nuevos archivos está aplazado por ahora.\"],\"Hk1yRc\":[\"Mayor concordancia: \",[\"0\"],\"; menor: \",[\"1\"],\"; sin cambios: \",[\"2\"]],\"Hk3J5p\":[\"No Watch stages in these nights\"],\"HkvZuh\":[\"How heart-rate estimates are accepted and tracked\"],\"HlUTnv\":[\"Registros de origen fijados en UTC; los registros incompatibles se enumeran, pero no se representan en la gráfica\"],\"HqdcAB\":[\"Pega registros JSON o CSV con recordKey, metric, value, unit y timestamp (o start y end). Usa fechas ISO con desfase horario o milisegundos Unix. Esta comparación no guarda una importación de referencia.\"],\"HrBFhl\":[\"Comparado\"],\"HwYvvX\":[\"La solicitud de parada está registrada. Las observaciones guardadas se conservan.\"],\"IABgNx\":[\"MQTT bridge\"],\"IH1KJg\":[\"Diferencia de concordancia en intervalos compartidos: \",[\"0\"]],\"IJi09X\":[\"Where schedules and nights are anchored\"],\"ITWmk6\":[\"Los errores usan la unidad de la métrica. Los pares de referencia tienen el mismo peso dentro de cada noche; las noches tienen el mismo peso en la diferencia media. Las puntuaciones agrupadas asignan el mismo peso a todos los pares de referencia.\"],\"IZ_SI-\":[\"MAE agrupado con observaciones comunes: base \",[\"0\"],\"; comparación \",[\"1\"]],\"I_qUhg\":[\"Deviation window\"],\"Iec0GZ\":[\"Intervalos de referencia\"],\"IftrVb\":[\"Superposición de referencias fijadas\"],\"Ih-_r5\":[\"Noches anteriores del informe\"],\"Ii14KX\":[\"Ejecución completada. Revise el informe antes de sacar conclusiones sobre concordancia o mejora.\"],\"Im5Crw\":[\"Hash del protocolo\"],\"J3ozEn\":[\"Ejecución de procesamiento\"],\"J8ILQE\":[\"Inicio (UTC)\"],\"JDyznv\":[\"Reprocesamiento de formas de onda conservadas\"],\"JKzmi4\":[\"Los datos conservados no están disponibles para nuevas evaluaciones.\"],\"JQ7IOd\":[\"Datos liberados; metadatos conservados\"],\"JQU3qt\":[\"Inspeccionar trazas numéricas\"],\"JRpbpv\":[\"Las solicitudes de comparación están limitadas a 64 KiB y 2000 registros.\"],\"JaKl6i\":[\"H reserva\"],\"JfPdso\":[\"Identidad del informe\"],\"Jh5xi1\":[\"Pump, water and firmware state\"],\"Jk2iNN\":[\"Partición de evaluación\"],\"JoL8Rk\":[\"No se pudo preparar el plan. Comprueba el perfil y el período seleccionados y la cualificación instalada.\"],\"JqNzWV\":[\"Congeló un conjunto de \",[\"0\"],\" noches\"],\"Jq_0cU\":[\"Side name\"],\"Jsh4sU\":[\"Minutos predichos\"],\"JtkCxN\":[\"Los detalles de fases no están disponibles o son incompatibles.\"],\"JvflkO\":[\"Noches anteriores\"],\"JyC-qp\":[\"Canal de origen\"],\"JzH2wX\":[\"HRV\"],\"K2uv7O\":[\"Service health and the live sensor pipeline\"],\"K6QhkO\":[\"No hay ninguna observación de memoria del proceso disponible.\"],\"KB9NWO\":[\"La recuperación de la programación no está disponible o no es válida. Revisa las ejecuciones existentes antes de borrar los datos de sesión de esta pestaña; una solicitud anterior puede haberse guardado en el pod.\"],\"KFB8Et\":[[\"w\"],\" d\"],\"KFwvG_\":[\"Las estimaciones de cobertura usan la cadencia nominal de registro; no demuestran disponibilidad continua de la señal.\"],\"KOq34a\":[\"cuando\"],\"KUj43p\":[\"Minutos emparejados compartidos: \",[\"0\"]],\"KUjOb9\":[\"en curso\"],\"KWfkdX\":[\"Revisión candidata \",[\"0\"],\": \",[\"1\"]],\"K_F6pa\":[\"Guardando…\"],\"KmaXMK\":[\"Watch SDNN, Watch RMSSD and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values.\"],\"Ksal0J\":[\"Siguiente página numérica\"],\"Kvt2s_\":[\"Eliminar importación\"],\"Kwp5NK\":[\"¿Eliminar estas mediciones de origen permanentemente? Las copias conservadas en conjuntos de datos deben liberarse por separado.\"],\"KwxEI4\":[\"La cobertura del candidato cayó por debajo de los límites previstos.\"],\"L1LSAe\":[\"Error absoluto medio\"],\"L1baKz\":[\"Concordancia\"],\"L445Bk\":[\"Esperando el período de observación.\"],\"L8V7Dz\":[\"Daily prime\"],\"LDHXy9\":[\"Deviation from Apple Watch\"],\"LF9GJc\":[\"Retaining the archives…\"],\"LLEze7\":[\"Noches recientes\"],\"LOv901\":[\"Los grupos usan las marcas de tiempo y los tipos de registro originales de la referencia, independientemente de la salida del candidato. Los grupos de medio período excluyen los intervalos que cruzan el punto medio. Los grupos se solapan y no son experimentos independientes. No son subgrupos de movimiento ni de artefactos.\"],\"LhMjLm\":[\"Hora\"],\"LiR3l8\":[\"REM\"],\"LnsCL8\":[\"Incluir esta sesión\"],\"Lt78-z\":[\"No solicitado\"],\"LtUd0r\":[\"Estos son resultados descriptivos de concordancia, no precisión clínica, evidencia de evaluación independiente con datos reservados ni autorización para activar un perfil.\"],\"M0faGQ\":[[\"0\"],\" · \",[\"1\"],\" · revisión \",[\"2\"]],\"M4ek4i\":[\"Ningún archivo inspeccionado se solapa con esta noche. Inspecciona primero los archivos.\"],\"M5TcIX\":[\"Reprocesar formas de onda conservadas\"],\"M5zFwb\":[\"La aplicación manual no está validada. Puede cambiar la frecuencia cardíaca, la frecuencia respiratoria, el índice de VFC y las fases del sueño dependientes.\"],\"MEC08x\":[\"Use fechas ISO con desplazamiento horario o milisegundos Unix. Cada registro requiere recordKey, metric, value, unit y timestamp (o start y end). JSON usa un array; CSV usa estos nombres como encabezados. Las importaciones se limitan a 2 MiB y 2000 registros.\"],\"MK62TH\":[\"Fin (UTC)\"],\"MOqNC_\":[\"Noche fijada\"],\"MRXPwy\":[\"referencia\"],\"MTn9vw\":[\"kappa\"],\"MW8x7A\":[\"Este es un muestreo de la suma de RSS del coordinador de reprocesamiento y sus procesos de trabajo. Las páginas de memoria compartidas pueden contarse más de una vez; los picos breves entre observaciones pueden pasar inadvertidos.\"],\"Mb-EVa\":[\"Este informe se ha liberado. Su hash de auditoría se conserva, pero los resultados detallados no están disponibles.\"],\"MeoKQ0\":[\"Rules that change the bed for you\"],\"Mf9gx7\":[\"Error al importar las referencias.\"],\"MibmVu\":[\"reserva\"],\"MkUjVh\":[\"Usa la misma identidad de la persona que duerme que en los registros de referencia que quieras comparar.\"],\"MmNR0n\":[\"Publishes status and biometrics, accepts commands\"],\"Mu1HF2\":[\"Quitar referencia \",[\"0\"]],\"Mu7RUc\":[\"Inspeccionar conjunto de datos\"],\"MuDrlT\":[\"sin dispositivo de referencia · excluida del error\"],\"Mv-Tbq\":[\"estimaciones aceptadas en el seguimiento\"],\"NGoTyQ\":[\"Reglas de fases sobre lecturas originales\"],\"NHlrjI\":[\"Punto\"],\"NJYR0F\":[\"Formato de datos\"],\"NMh7kF\":[\"Comparación de lecturas almacenadas disponible\"],\"NRBL74\":[\"caducada\"],\"NVswTS\":[\"Conservar las últimas\"],\"Na6zmY\":[\"Compatibilidad\"],\"NawEr2\":[\"Después\"],\"NcAXpM\":[\"Daily reboot\"],\"NdXF7z\":[\"El trabajo se aplazó; se conservan tu selección y la clave de reintento.\"],\"NhvfPs\":[\"Sin mejora sustancial según la política de evaluación\"],\"Nik1q1\":[\"Índice de variabilidad IBI por ventanas (ms)\"],\"Nln0z9\":[\"Programar la observación revisada\"],\"NpbAio\":[\"Reiniciar la exploración de archivos\"],\"NxAavP\":[\"Confirmar la eliminación de la importación\"],\"NxjPUC\":[\"Hash del candidato: \",[\"0\"]],\"OHHPcb\":[\"El directorio de archivos no está disponible.\"],\"OLWhkH\":[\"Muestras de recepción de datos: \",[\"0\"],\" de \",[\"1\"],\" comprobaciones de admisión\"],\"OVSP4J\":[\"Conserve una copia de las noches y revisiones de referencia seleccionadas. Los cambios posteriores o la eliminación del origen no alteran este conjunto de datos.\"],\"OahhRr\":[\"mostrar\"],\"OqNNR4\":[\"Diferencia de MAE con observaciones comunes\"],\"Ox14On\":[\"Nightly archive push\"],\"OzklQP\":[\"Frecuencia cardíaca (latidos/min)\"],\"PDDE5l\":[\"Desfase del reloj de referencia: \",[\"0\"],\" segundos; tolerancia para puntos: \",[\"1\"],\" segundos.\"],\"PEdBDO\":[\"Identidad de la persona que duerme: \",[\"subjectId\"]],\"PGC40a\":[\"Página anterior de la traza\"],\"PHHETW\":[\"Intervalos de referencia excluidos en los puntos medios de los períodos: \",[\"0\"]],\"PKKYKp\":[\"Restaurar el perfil anterior\"],\"PbhekP\":[\"sin probar\"],\"PbpWGe\":[\"Error al resolver el perfil.\"],\"PdTcHl\":[\"No se detectó reducción de cobertura\"],\"PvFcah\":[\"Datos conservados\"],\"PxBet3\":[\"Conjunto de evaluación\"],\"PygeGm\":[\"Hash del manifiesto del motor\"],\"PzWjOZ\":[\"Noches emparejadas insuficientes\"],\"Q0FsEw\":[\"Choose who normally sleeps here\"],\"Q6Fvyb\":[\"Vista previa de la importación\"],\"Q73cLK\":[\"Seleccionar formas de onda registradas\"],\"QCJQvN\":[\"Hash de configuración anterior\"],\"QG2GiO\":[\"en cola\"],\"QGPgrh\":[\"Se compararon las lecturas originales almacenadas; no se reprocesaron los cambios de parámetros numéricos.\"],\"QIgpE4\":[\"FRECUENCIA CARDÍACA\"],\"QIqJcS\":[\"Algunos registros de referencia tienen unidades o definiciones de métricas incompatibles y se excluyeron.\"],\"QTD6X8\":[\"Tiempo de la tarea hasta la preparación de la publicación: \",[\"0\"],\" segundos\"],\"QVD7Dt\":[\"Noche \",[\"0\"]],\"Q_YNRG\":[\"Sobrescribe el perfil guardado y lo solicita; el actual pasa a ser el anterior.\"],\"QkqTjY\":[\"Informe de observación\"],\"QrhaVg\":[\"Units\"],\"QsLiI0\":[\"Editar un nuevo candidato a partir de esta revisión\"],\"Qy1CFj\":[\"Hash del perfil activo\"],\"R-9uNr\":[\"Umbral de señal baja del candidato\"],\"R-sAH4\":[\"Solo se representa la página actual. Los puntos son lecturas individuales; los huecos y los valores faltantes no se interpolan. Las lecturas originales almacenadas no se modifican.\"],\"R1u0BV\":[\"Las definiciones de referencia son incompatibles.\"],\"R4QNtj\":[\"Cobertura de los intervalos de observación previstos\"],\"RC3Rei\":[\"Zona horaria de las particiones: \",[\"0\"]],\"RIVQIl\":[\"La validación del esquema se completó. No se ha evaluado la concordancia con las mediciones de referencia.\"],\"RMSkhT\":[\"Estos cambios pertenecen solo al candidato. El orden importa: se aplica la primera regla que coincida.\"],\"RWhQ_V\":[\"Complete los campos obligatorios dentro de los límites indicados.\"],\"RZ1K0m\":[\"Valor / unidad\"],\"Raeq5C\":[\"Error de respiración\"],\"Rb1qTE\":[\"Observando\"],\"RbVCQP\":[\"Noche cubierta\"],\"RiQMUh\":[\"En ejecución\"],\"S1gPr0\":[\"Quiero restaurar los valores predeterminados del sistema sin evidencia de validación.\"],\"S2Jom8\":[\"Hash de configuración posterior\"],\"S8EfUf\":[\"Marcas de tiempo originales del reprocesamiento, sin ajuste al reloj de referencia\"],\"SBZ1sk\":[\"Bed and water temperature history\"],\"SCGU2U\":[\"Trabajos recientes\"],\"SCc4qv\":[\"Detalles de los datos fijados\"],\"SGRCD8\":[\"Confusión de fases agrupada\"],\"SMGWlJ\":[\"Mostrar los \",[\"0\"]],\"SRE0Dv\":[\"El procesador confirmó la generación \",[\"0\"]],\"SV_0fn\":[\"El algoritmo actual del pod informa un índice de variabilidad de los intervalos entre latidos por ventana, no el RMSSD clínico. La definición de las lecturas antiguas puede ser desconocida.\"],\"ScQkbv\":[\"Se han asignado particiones de noches completas; el rendimiento biométrico aún no está validado.\"],\"Sfd0oa\":[\"Publishes climate, switch and sensor entities\"],\"SgRypX\":[\"No hay importaciones de referencia para este lado.\"],\"SnDUEP\":[\"Conjunto de datos fijado\"],\"T0Izom\":[\"Frozen and queued. The backtest replays every split; results appear as each finishes.\"],\"T4wPfY\":[\"Diferencia media de MAE con igual peso por noche: \",[\"0\"]],\"TLDDXM\":[\"Noche de la traza numérica\"],\"TQwzCx\":[\"Conservar los datos retenidos\"],\"T_87By\":[\"Parámetro\"],\"TbjyhA\":[\"Docs\"],\"Th6Noy\":[\"Comparaciones de subgrupos definidos por la referencia\"],\"TpHstq\":[\"ms\"],\"Tru_Os\":[\"Siguiente página de la traza\"],\"TwpMH6\":[\"Quitar personalización de fases\"],\"TyB_3E\":[\"Calibración biométrica\"],\"U5N8X7\":[\"guardado\"],\"U8n1HU\":[\"RESPIRACIÓN\"],\"UFlEgN\":[\"No hay cambios en la intención de personalización.\"],\"UFxPjw\":[\"Mayor concordancia según la política de evaluación cualificada\"],\"UL2mer\":[\"Which firmware pipeline the pod reads\"],\"UL6Xbb\":[\"Errores numéricos por noche\"],\"UMJp3J\":[\"Minutos evaluados: \",[\"0\"]],\"UOHqa2\":[\"Evidencia faltante: \",[\"reason\"]],\"UOnFf4\":[\"la mediana\"],\"UWna3M\":[\"Inspeccionar observación\"],\"UZuUP4\":[\"Sin referencia\"],\"UeGR-V\":[\"Inspeccionar sesión \",[\"0\"]],\"Ufin3V\":[\"Mayor antigüedad observada de los datos recibidos: \",[\"0\"],\" segundos\"],\"UhCJxj\":[\"Procesador\"],\"UlKSMd\":[\"Izquierda\"],\"UqSpzV\":[\"Mínimo de noches emparejadas (3–60)\"],\"Uu5a6k\":[\"Tolerancia de seguimiento (lpm)\"],\"UyIxiT\":[\"Nada cambia hasta que muevas un control o restaures.\"],\"UyxS7G\":[\"Pod minus Watch per night: MAE and bias per metric, and stage kappa\"],\"V7oslX\":[\"El procesamiento falló.\"],\"VFXF98\":[\"Calibración medida del sensor para este lado:\"],\"VIPxtx\":[\"Identificador de la persona del conjunto de datos\"],\"VJBi8Y\":[\"Restauró los valores del sistema y los solicitó\"],\"VKjxHP\":[\"Trazas numéricas recalculadas\"],\"VMO9HG\":[\"Identidad exacta de la importación\"],\"VN4iqH\":[\"Marcas de tiempo de muestras guardadas: \",[\"0\"],\". Intervalos de observación previstos: \",[\"1\"],\".\"],\"VQewk6\":[\"Smoothing applied after the rules\"],\"VRFZcm\":[\"Temperature unit\"],\"VU3Nrn\":[\"Faltante\"],\"VUtcHF\":[\"Comparar con mediciones de referencia\"],\"VVWxFk\":[\"Copia congelada de \",[\"0\"],\" noches. Las ediciones o eliminaciones posteriores no la afectan. Las noches se reparten enteras antes de puntuar; un reparto no es evidencia por sí solo.\"],\"VcTMlI\":[\"Intervalo exploratorio del 95 %: de \",[\"0\"],\" a \",[\"1\"]],\"VmTUh8\":[\"Tiempo total de CPU de Python (segundos)\"],\"VnAP4G\":[\"Base actual\"],\"VqKzd6\":[\"No hay mediciones conservadas.\"],\"Vspsiu\":[\"Aceptados: \",[\"0\"],\"; rechazados: \",[\"1\"],\"; duplicados: \",[\"2\"],\"; no evaluables: \",[\"3\"],\"; conflictos: \",[\"4\"]],\"W-i7wJ\":[\"Sin variación estimable\"],\"W1BnRm\":[\"Signos vitales con procedencia de procesamiento original desconocida: \",[\"0\"]],\"WCKDwf\":[\"Copia congelada de \",[\"0\"],\" noches y la referencia de \",[\"1\"],\". Las ediciones o eliminaciones posteriores no la afectan. Las noches se reparten enteras antes de puntuar; un reparto no es evidencia por sí solo.\"],\"WQJ43e\":[\"Reintentar informe\"],\"W_PbSn\":[\"Umbral de picos del candidato\"],\"WcWtE4\":[\"listo · \",[\"0\"]],\"WjCZjy\":[\"Accesos a la reserva registrados para este experimento: \",[\"0\"]],\"Wk_WYb\":[\"Se alcanzó la cuota de almacenamiento.\"],\"Wl_oB_\":[\"Breathing-rate interval limits\"],\"WqUEbt\":[\"Inspeccionar el siguiente archivo\"],\"WrG-oR\":[\"Personalizaciones explícitas de fases\"],\"Wucp9l\":[\"↑ ↓ to move · Enter to open · Esc to close\"],\"Wz9mHY\":[\"Los intervalos compartidos son la intersección de todas las configuraciones evaluadas y los intervalos de referencia aptos. Las puntuaciones sobre intervalos propios usan los datos disponibles de cada configuración y pueden describir distintas partes de la noche.\"],\"X5G5TL\":[\"Hay otro problema en el informe que requiere revisión.\"],\"X8JREh\":[\"Quiero acceder a esta reserva. Su uso repetido, incluso en conjuntos de datos superpuestos, debilita la evidencia independiente.\"],\"X9Fn3w\":[\"Reprocesar fases del sueño\"],\"XDDjJH\":[\"Sesiones: \",[\"0\"]],\"XExZoo\":[\"Pico de memoria muestreado del proceso de trabajo: \",[\"0\"],\" MiB. Los picos breves entre muestras pueden pasar inadvertidos.\"],\"XHuCnL\":[\"MAE de la base con observaciones comunes\"],\"XJOV1Y\":[\"Actividad\"],\"XMmhvP\":[\"Las definiciones de VFC difieren o se desconocen en parte. No se puede calcular un promedio combinado de VFC.\"],\"XT73o-\":[\"La próxima sesión espera un límite con la cama vacía confirmada. La aplicación inmediata también espera un límite seguro de procesamiento.\"],\"XXnr5H\":[\"Restart the pod once a day\"],\"X_d3vj\":[\"Tap gestures\"],\"XbkqDp\":[\"Corrigiendo la importación \",[\"0\"],\". Proporcione la exportación de reemplazo completa; la revisión original y los conjuntos de datos congelados se mantienen sin cambios.\"],\"Xgkhyj\":[\"Indicadores\"],\"Xl0aFS\":[\"Identidad de la persona que duerme\"],\"XvImpZ\":[\"br/min\"],\"XyrrCD\":[\"Este gráfico muestra solo la página actual de intervalos reprocesados. Los huecos quedan vacíos; no se infieren fases entre intervalos.\"],\"Xzy9KC\":[\"Cambios del candidato\"],\"Y3vbII\":[\"Las observaciones de recursos son parciales. El estado del proceso refleja la última respuesta válida, no el intento completo.\"],\"Y5pne1\":[\"Horas mostradas en \",[\"0\"]],\"YAAuC3\":[\"No hay signos vitales almacenados para comparar\"],\"YAN6qJ\":[\"No hay noches en este informe.\"],\"YFgzea\":[\"Instantánea de la comparación con la referencia\"],\"YafUsS\":[\"Reprocesamiento de fases disponible\"],\"Ye-mWr\":[\"Broker connection\"],\"YeXYTR\":[\"Observaciones del estado de la tarea\"],\"YgOSaJ\":[\"Período preparado (UTC)\"],\"Yhk2w6\":[\"Estas son las lecturas originales registradas. Los gráficos separan las ejecuciones de procesamiento y las definiciones de VFC conocidas. Las lecturas antiguas de procedencia desconocida siguen sin verificarse.\"],\"YkeGcg\":[\"No night in the last \",[\"days\"],\" days pairs with Watch data. Pick a longer window.\"],\"YoyYks\":[\"Breathing MAE / bias (\",[\"0\"],\")\"],\"YtMAd9\":[\"id de configuración\"],\"YtwU3b\":[\"Auto-off\"],\"Yx0Ud8\":[\"Solicitado\"],\"Yy9-qs\":[\"Conservar importación\"],\"Z325Gl\":[\"Empeoramiento según la política de evaluación\"],\"Z6_avU\":[\"Sin información\"],\"Z8Z57S\":[\"No se pudo borrar la solicitud rechazada de la recuperación del navegador. Mantén esta pestaña abierta y reinténtalo.\"],\"ZB-yZg\":[\"Search pages and settings\"],\"ZCID7r\":[\"Raise or lower the adjustable base\"],\"ZEVjLJ\":[\"Recalculado: \",[\"0\"],\"; las lecturas exactas aparecen en la tabla.\"],\"ZGxvoR\":[\"Hash de la configuración resuelta\"],\"ZIHKzK\":[\"Restaurar el perfil anterior\"],\"ZOxlYi\":[\"La exposición repetida al conjunto reservado debilita la evidencia independiente. Trate los resultados reutilizados como validación, no como evidencia de un conjunto reservado intacto.\"],\"ZQlAPX\":[\"Cobertura y capacidades fijadas\"],\"ZYM-e5\":[\"Calidad de calibración de fases asumida: \",[\"0\"]],\"_2a_oX\":[\"After schedule ends\"],\"_3iO4p\":[\"Umbrales de objetivos fijados\"],\"_8-q-t\":[\"Persona que duerme: \",[\"0\"]],\"_8Othx\":[\"Esta es evidencia descriptiva, no una mejora validada ni permiso para activar un perfil.\"],\"_CNpb9\":[\"Tables, sizes and maintenance for the pod databases\"],\"_F1gL-\":[\"Se perdió el período de observación.\"],\"_N3nfY\":[\"Hash de la instantánea\"],\"_RdTy6\":[\"Los detalles numéricos no están disponibles o son incompatibles.\"],\"_UU1GQ\":[\"Noches evaluadas: \",[\"0\"],\"; sin evaluar: \",[\"1\"]],\"_WJL1l\":[\"Hash de la compilación del evaluador\"],\"_YJvA2\":[\"Eliminar una importación borra sus mediciones de origen. Los conjuntos de datos congelados anteriormente son copias conservadas por separado.\"],\"_dmdq7\":[\"Frecuencia cardíaca · \",[\"0\"],\" \",[\"1\"]],\"_dqduX\":[\"Siguiente página\"],\"_fhKhX\":[\"TALLER\"],\"_iu_fT\":[\"Perfil candidato\"],\"_m_cqq\":[\"No se confirmó la programación. Reintenta esta misma solicitud para conocer su resultado; no des por hecho que se haya creado o detenido una ejecución.\"],\"_vMmHs\":[\"No hay cambios en los valores resueltos.\"],\"_zRJNg\":[\"Observaciones recalculadas: \",[\"0\"]],\"a0hR2f\":[\"Conservar formas de onda\"],\"a4jIpF\":[\"Comparaciones en marcas de tiempo comunes. Las diferencias se calculan como comparación menos base; las diferencias negativas de error indican un menor error en las observaciones comunes.\"],\"aAzeS3\":[\"Número actual de exposiciones al conjunto reservado: \",[\"0\"]],\"aBSvZr\":[\"Hereda las \",[\"0\"],\" reglas y la fase por defecto de\"],\"aEj05o\":[\"Referencia incompatible\"],\"aEm2DD\":[\"Envío de evaluación retrospectiva\"],\"aWcLHy\":[\"Reserva\"],\"a_tOrB\":[\"Compare the pod against Apple Watch or other references\"],\"ahCPOh\":[\"No hay ejecuciones prospectivas para este lado.\"],\"akShFD\":[\"Cleanup\"],\"al36z5\":[\"Este informe no dispone de comparaciones en marcas de tiempo comunes.\"],\"aoOfN1\":[\"Solo evaluación descriptiva\"],\"apfCJ8\":[\"Fijar datos de evaluación\"],\"aqRjDk\":[\"Tiempo total transcurrido de Python (segundos)\"],\"azXwgh\":[\"No se generaron intervalos de fases para esta selección.\"],\"bAG4xT\":[\"Primera página\"],\"bAqx-m\":[\"Definición de VFC\"],\"bIdc7i\":[\"Auto power-off cap\"],\"bKNo3f\":[\"Fahrenheit or Celsius\"],\"bMnAf3\":[\"Lecturas recalculadas y referencias fijadas compatibles en la unidad de la métrica seleccionada\"],\"bRN5nm\":[\"Software\"],\"bRYfMr\":[\"Conjuntos de datos recientes\"],\"bUIsv2\":[\"Ventana de la métrica: \",[\"0\"],\" segundos.\"],\"bW1Vv-\":[\"Lecturas perdidas\"],\"bZGH6_\":[\"Importaciones recientes\"],\"bcsF7s\":[\"Frecuencia cardíaca\"],\"bjnxtG\":[\"Aplicar revisión sin validar\"],\"c3Qpen\":[\"Pod status at a glance\"],\"c8Kx_b\":[\"Quitar personalización\"],\"cCEjPJ\":[\"F1\"],\"cESAVR\":[\"No hay valores de esta métrica en la página actual.\"],\"c_Dls2\":[\"No hay trabajos de evaluación retrospectiva para este lado.\"],\"cmG-2L\":[\"Heart rate, HRV and breathing trends\"],\"cnqM2L\":[\"Liberar informe permanentemente\"],\"coprQn\":[\"Quiero aplicar esta revisión exacta sin evidencia de validación.\"],\"cueivf\":[\"Exclusiones: \",[\"0\"]],\"cwpx1M\":[\"Error de FC · ajuste\"],\"d-PALc\":[\"Cambios en los parámetros resueltos\"],\"d3IqDh\":[\"Calidad\"],\"d3emgn\":[\"Error al guardar el candidato.\"],\"d6dDT8\":[\"Período de observación (UTC)\"],\"dEgA5A\":[\"Cancelar\"],\"dHvZyR\":[\"calidad\"],\"dKKiUb\":[\"Las lecturas numéricas se recalcularon a partir de las formas de onda conservadas. Las lecturas originales almacenadas no se modifican.\"],\"dVSC5E\":[\"Inspeccione los datos disponibles antes de seleccionar noches para un conjunto de datos conservado.\"],\"deIqfe\":[\"When the HRV index is reported\"],\"dgvPBj\":[\"lpm del seguimiento\"],\"dnpx0n\":[\"Se muestran las marcas de tiempo originales de la traza. La puntuación de referencia añade el desfase fijado de \",[\"0\"],\" ms a estas marcas de tiempo.\"],\"dp1xoT\":[\"validación\"],\"drFd3d\":[\"Freezing the nights…\"],\"dsg4nV\":[\"Descartar lecturas puede reducir el error calculado con las observaciones propias. Las marcas de tiempo duplicadas se excluyen de las observaciones comunes. Estos recuentos no miden la cobertura temporal continua.\"],\"dvrg2y\":[\"Registros emparejados\"],\"dw3RHG\":[\"sin informar\"],\"dxyEjQ\":[\"Interrumpido\"],\"e53Atr\":[\"Intento \",[\"0\"]],\"e8GyQg\":[\"Métrica\"],\"eIz4fP\":[\"Evidencia de la comparación\"],\"eLJnth\":[\"El servidor fija la configuración predeterminada, la base actual y la candidata, además de la configuración del otro lado. El reprocesamiento usa señales conservadas y nunca reemplaza las observaciones originales.\"],\"eLzX0W\":[\"HomeKit bridge\"],\"eMS-Kh\":[\"Las ejecuciones programadas esperan a su período y a una nueva comprobación de admisión de recursos. Esto aún no implica que haya observaciones.\"],\"ea_tpx\":[\"Restaurar… ▾\"],\"eiQsF1\":[\"No dataset is frozen for this side yet. Freezing takes the newest nights a reference covers, with their RAW archives, so a backtest can replay them.\"],\"erZkEJ\":[\"Registros siguientes\"],\"ewu5hx\":[\"Detener observación\"],\"f1PMkf\":[\"Inspeccionar trazas de fases\"],\"f2Vka4\":[\"Detalles de la observación\"],\"f9XWfS\":[\"Las marcas de tiempo originales se muestran en \",[\"timezone\"],\". La evaluación con la referencia añade el desfase fijado de \",[\"0\"],\" ms.\"],\"fDm1vz\":[\"Away mode\"],\"fFKwiD\":[\"Queueing the backtest…\"],\"fMY8OF\":[\"Esta vista no admite la versión o estructura de este informe.\"],\"fduV6w\":[\"Evidencia insuficiente para una mejora validada\"],\"fisQjo\":[\"stage kappa\"],\"fjyJzV\":[\"Configuraciones registradas: \",[\"0\"],\"; lecturas con configuración desconocida: \",[\"1\"],\".\"],\"fpMxrt\":[\"ventanas IBI de 10 segundos aceptadas\"],\"frH3v_\":[\"latest MAE \",[\"0\"],\", bias \",[\"1\"],\" \",[\"unit\"]],\"fsEiED\":[\"Guardar protocolo de evaluación\"],\"fsIyEL\":[\"Importación de referencias guardada: \",[\"saved\"]],\"fx36Vz\":[\"Nights, sleep stages and vitals\"],\"fxeXBO\":[\"Experimentos guardados\"],\"g38APT\":[\"Fase alternativa\"],\"g8_K4H\":[\"Trabajos anteriores\"],\"g9GNn8\":[\"Puntuaciones de fases agrupadas en intervalos compartidos\"],\"g9QO1Q\":[\"Vistas de calibración\"],\"gEcnen\":[\"Cobertura exacta de los datos procesados\"],\"gHMTXI\":[\"Los registros aceptados no son necesariamente válidos para la validación. Las definiciones incompatibles de VFC no se pueden evaluar.\"],\"gIsCcS\":[\"Noches completadas\"],\"gQp61o\":[\"Registros de referencia fuera del período capturado: \",[\"0\"]],\"gWywdR\":[\"Registros de referencia disponibles por métrica (entre revisiones)\"],\"gY4IEV\":[\"Revisar informe de observación\"],\"gYLm31\":[\"Aplicar la revisión evaluada\"],\"gqM0fU\":[\"Conjuntos de datos conservados\"],\"gqtr8Z\":[\"No se pudo guardar.\"],\"gsdE1-\":[\"Marcas de tiempo de observación perdidas con el candidato: \",[\"0\"],\"; añadidas: \",[\"1\"],\".\"],\"gsxO3G\":[\"Powers a side off when the pump stalls\"],\"h-_RA9\":[\"Métricas: \",[\"0\"]],\"h8USYG\":[\"El contexto de presencia y de la bomba refleja observaciones del host, no demuestra el estado almacenado en la caché del procesador en vivo.\"],\"hCQg3t\":[\"Selecciona archivos para cada noche fijada, incluidos cinco minutos previos. Los límites temporales de los archivos no demuestran una cobertura continua de la señal. El servidor verifica y copia los bytes seleccionados antes de publicar un nuevo conjunto de datos.\"],\"hD-y_c\":[\"Inspeccionar trabajo\"],\"hQDrYd\":[\"Elige una plantilla\"],\"hV5uRE\":[\"Puntos de referencia\"],\"hY_84S\":[\"Sin coincidencia temporal\"],\"hYpaGJ\":[\"Set each side’s temperature\"],\"hZVN7j\":[\"No hay registros de referencia coincidentes.\"],\"hew6O1\":[\"No se guardaron observaciones.\"],\"i4lAMH\":[\"Comience con el perfil guardado. Se conservan las personalizaciones de las fases del sueño. Al quitar una personalización numérica se usa el valor predeterminado incluido.\"],\"iBoQ7e\":[\"La concordancia con una referencia identificada no demuestra precisión clínica.\"],\"iLPjcf\":[\"Copies the biometrics archive to a host you control over SSH, once per night\"],\"iNXP29\":[\"Internet access\"],\"iOcCtM\":[\"Fila \",[\"0\"],\": \",[\"1\"]],\"iRuL-K\":[\"Kappa\"],\"iSlb8i\":[\"Falló la prueba retrospectiva en noches de \",[\"0\"]],\"iTFRRA\":[\"Intervalo respiratorio más largo (× mediana)\"],\"iZdGUJ\":[\"El perfil guardado ha cambiado. Vuelva a comparar antes de revisar estos cambios.\"],\"ickSQa\":[\"Solicitud de activación guardada. La confirmación del procesador se indica por separado a continuación.\"],\"idD8Ev\":[\"Guardado\"],\"idUHAF\":[\"Noche de la traza\"],\"ienenm\":[\"Programar una observación\"],\"iiIc1S\":[\"Lecturas añadidas\"],\"iyttMX\":[\"Lecturas recalculadas exactas, sin ajuste del reloj de referencia\"],\"izHeGP\":[\"Stage rules\"],\"izUm62\":[\"Comparar con el perfil guardado\"],\"j5lpmE\":[\"Rechazar intervalos más cortos que\"],\"j87ALW\":[\"Estimar incertidumbre exploratoria por noches completas\"],\"j8f0f7\":[\"Inspeccionar mediciones\"],\"jFnLa4\":[\"Turn sides off after a set number of hours\"],\"jGGU20\":[\"Default power state when a curve finishes\"],\"jHJqeF\":[\"No hay experimentos guardados para este lado.\"],\"jM5CSI\":[\"Identidad de la evidencia guardada\"],\"j_WgSe\":[\"Tap the top of the cover on your side\"],\"ja10bn\":[\"Temperature control\"],\"jnHbBF\":[\"Biblioteca de referencias\"],\"jnTV6s\":[\"Prueba retrospectiva \",[\"0\"],\". El conjunto congelado se reprodujo con los perfiles anterior y guardado; nada aquí cambia el pod.\"],\"jnd7HN\":[\"Night\"],\"jqzUyM\":[\"No disponible\"],\"jtiXJv\":[\"What the rules evaluated and why\"],\"k9QdNt\":[\"Agregación\"],\"kBDFtj\":[\"Bed setup\"],\"kEoNsC\":[\"Inspeccione los datos fijados y las particiones de noches completas, o libere su almacenamiento.\"],\"kRbwZR\":[\"La lista de reglas difiere de las reglas de fábrica.\"],\"kSn7J6\":[\"Scheduled jobs and drift\"],\"kXxqsJ\":[\"¿Liberar permanentemente los resultados detallados? Se conservan el hash del informe, el historial del trabajo y la auditoría de exposición al conjunto reservado.\"],\"k_Kc3O\":[\"Regla candidata\"],\"k_tlKH\":[\"La concordancia de las fases del sueño se mide frente a la referencia identificada. No demuestra precisión clínica en la clasificación de las fases.\"],\"kg9QHL\":[\"Puntuación mínima de la señal del latido\"],\"klYSYX\":[\"No hay registros de referencia en el período de observación.\"],\"kmVlv0\":[\"Guardar y solicitar\"],\"knhXFm\":[\"Cobertura reducida en al menos una ventana evaluada\"],\"koFCAF\":[\"Valores predeterminados del sistema\"],\"krN8T4\":[\"Primera página de archivos\"],\"kvoj0l\":[\"Esperando la entrega\"],\"kx0s-n\":[\"Results\"],\"l-ka0P\":[\"Tolerancia de coincidencia de puntos (ms, 0–300000)\"],\"l-rdOQ\":[\"El estado se muestreó en las comprobaciones de admisión, normalmente cada cinco segundos. Los intervalos sin observaciones no constituyen mediciones continuas del estado.\"],\"l8XODJ\":[\"Perfiles anteriores\"],\"lCtEWn\":[\"Solicitud de evaluación retrospectiva guardada: \",[\"0\"]],\"lGWE4b\":[\"Validación\"],\"lIwsCR\":[\"Guarde un candidato para evaluarlo. Esto no cambia el procesamiento en vivo.\"],\"lLKx4j\":[\"Turns a side off after you leave the bed\"],\"lPhE6w\":[\"Preparado, aún no admitido. El pod comprueba de nuevo la cualificación y el estado actuales al programar y al iniciar la ejecución.\"],\"lYQlqL\":[\"Elige una noche puntuada para ver su trazo de frecuencia cardíaca.\"],\"lZQljm\":[\"Preparar plan de observación\"],\"lfcZyG\":[\"Installed version and updates\"],\"lgjajK\":[\"Comprobando la evidencia de validación…\"],\"lmuVtM\":[\"Cada configuración en sus propios intervalos disponibles\"],\"m0Nxk3\":[\"Guardar candidato sin aplicar\"],\"m3idi0\":[\"Diferencia de MAE con observaciones propias\"],\"mCRJge\":[\"bias (+ = pod reads high)\"],\"mEGaVF\":[\"Solicitó la activación · generación \",[\"0\"]],\"mJLKhS\":[\"Intervalos de la traza \",[\"first\"],\"–\",[\"last\"],\" de \",[\"0\"]],\"mPyzNL\":[\"Comparar observaciones prospectivas con una referencia\"],\"mZsnWl\":[\"Ventanas IBI mínimas\"],\"mZzxmI\":[\"El último archivo no estaba disponible. Continúa con la inspección del siguiente archivo.\"],\"mcrx-J\":[\"3D stage\"],\"mizif2\":[\"No hay conjuntos de datos conservados para este lado.\"],\"mjOerZ\":[\"Traza de fases de los intervalos mostrados; las horas exactas y las fases figuran en la tabla siguiente.\"],\"mkhMIi\":[\"Dentro de los límites observados.\"],\"mmYtG3\":[\"Reintentar la solicitud exacta de activación\"],\"mpfEb2\":[\"Minutos emparejados\"],\"mxcjJ3\":[\"Primeros registros\"],\"n9nSNJ\":[\"Time format\"],\"nDsRnU\":[\"Métrica de la traza numérica\"],\"nGd0J1\":[\"No matches for “\",[\"q\"],\"”\"],\"nOPbWJ\":[\"Derecha\"],\"nR_Xo2\":[\"Todavía no hay ningún informe guardado disponible.\"],\"nRm1_n\":[\"Hash del candidato\"],\"nZvP5d\":[\"Los informes describen la cobertura observada y la concordancia con la referencia; no autorizan la activación.\"],\"neY-I0\":[\"Trazo de frecuencia cardíaca\"],\"nfv2Gn\":[\"Revisar plan preparado\"],\"njHfRY\":[\"Guardó el perfil\"],\"nkTSf7\":[\"Longitud del historial de seguimiento\"],\"nsVNnB\":[\"URL, TLS, credentials and topic prefix\"],\"nvXKMs\":[\"No backtest yet. Freeze a new dataset below; it replays the newest referenced nights through the previous and saved profiles. Nothing here changes the pod.\"],\"nzhJlu\":[\"Informe de evaluación\"],\"o0m-W5\":[\"El perfil guardado ha cambiado. Seleccione de nuevo una acción de restauración para realizar una nueva solicitud.\"],\"o2CMR_\":[\"Unidad: \",[\"0\"],\"; intervalo: \",[\"1\"],\"–\",[\"2\"],\"; predeterminado: \",[\"3\"],\"; original: \",[\"4\"]],\"o7BAcK\":[\"LED night mode\"],\"oFAivV\":[\"El progreso por noches aún no está disponible.\"],\"oQ7Z7k\":[\"Error absoluto medio en marcas de tiempo comunes: activo \",[\"0\"],\", candidato \",[\"1\"],\".\"],\"oRepAd\":[\"Guardar la importación revisada\"],\"oSES6x\":[\"Los errores usan la unidad de la métrica; el sesgo con signo es el valor del pod menos la referencia.\"],\"oSm2At\":[\"La identidad de la traza numérica no coincide con el informe seleccionado.\"],\"oTZWAU\":[\"¿Liberar estos datos conservados permanentemente? Se mantienen los informes existentes y los metadatos de auditoría. Los trabajos activos deben finalizar o cancelarse primero.\"],\"on-veT\":[[\"0\"],\" error de FC \",[\"1\"],\" → \",[\"2\"],\" lpm · \",[\"3\"]],\"osmcFY\":[\"ajuste\"],\"otbH9Y\":[\"La cobertura de salida usa el tiempo evaluado como denominador. La cobertura de referencia usa el tiempo de referencia apto. Una puntuación mayor con cobertura reducida no es evidencia suficiente de mejora.\"],\"otqFKT\":[\"Límites temporales del archivo (UTC): de \",[\"0\"],\" a \",[\"1\"]],\"ouWIPE\":[\"Datos de entrada fijados del trabajo\"],\"ovUYdL\":[\"Preferences for the pod and this device\"],\"oxuApB\":[\"Configuración de la traza numérica\"],\"oz6J2T\":[\"Percentil 95 del error absoluto\"],\"p5Tvds\":[\"Actualizar informe\"],\"p8gpyN\":[\"Preparar evaluación retrospectiva\"],\"pAfIv7\":[\"Parámetros del candidato\"],\"pD9nPP\":[\"Dims the LED overnight\"],\"pWhtyD\":[\"Calibración\"],\"pdCJud\":[\"o más largos que\"],\"pdmaPz\":[\"HRV index\"],\"peLE5v\":[\"Menor error: \",[\"0\"],\"; mayor: \",[\"1\"],\"; sin cambios: \",[\"2\"]],\"piBZoW\":[\"Demostración simulada: lecturas generadas, sin ejecución en hardware ni cualificación.\"],\"plwcxa\":[\"El desfase fijado de \",[\"clockOffsetMs\"],\" ms se añade a las marcas de tiempo recalculadas en esta superposición. Las horas de referencia no cambian. Tolerancia de emparejamiento de puntos: \",[\"0\"],\" ms.\"],\"pn1wGH\":[\"Conjuntos de datos anteriores\"],\"pzU3_f\":[\"No hay ningún comprobante de recursos de un proceso de trabajo completado.\"],\"q-GSeQ\":[\"Intervalo exploratorio del 95 % para la diferencia de MAE: de \",[\"0\"],\" a \",[\"1\"]],\"q268Hy\":[\"Elige un período futuro dentro del límite de la plantilla. Preparar un plan no lo programa.\"],\"q35hV5\":[\"Cobertura de referencia\"],\"q8lqrb\":[\"Comparar lecturas almacenadas\"],\"qKKmRI\":[\"Ctrl K\"],\"qQyQVC\":[\"Cancelar evaluación retrospectiva\"],\"qbMXVo\":[\"Progreso: \",[\"0\"],\" / \",[\"1\"],\" noches\"],\"qc-DVG\":[\"Calidad de calibración asumida (0–1)\"],\"qdIvCQ\":[\"Momento de activación\"],\"qjP3h7\":[\"Noches puntuadas: \",[\"0\"],\"; sin puntuar: \",[\"1\"],\"; cobertura reducida: \",[\"2\"]],\"qlh_FJ\":[\"Hash del plan: \",[\"0\"]],\"qo0fEa\":[\"Consulte Resumen para ver el estado actual del procesador; una confirmación anterior no demuestra el estado actual.\"],\"qqZDsc\":[\"Observaciones\"],\"qw2orZ\":[\"Comparación de lecturas originales almacenadas\"],\"qwp7QZ\":[\"Liberar datos permanentemente\"],\"qzhWuP\":[\"Revisión de origen\"],\"qzhiSq\":[\"Quiero restaurar el perfil anterior exacto sin evidencia de validación.\"],\"r3sa6W\":[\"Experimento guardado: \",[\"0\"]],\"rJRd6m\":[\"The key the pod uses to reach your host\"],\"rLBjVo\":[\"Generaciones activas: izquierda \",[\"0\"],\", derecha \",[\"1\"],\".\"],\"rMag_1\":[\"Freezing failed.\"],\"rPk-pR\":[\"sin cambios\"],\"rSRVPh\":[\"Una solicitud guardada no significa que la ejecución haya comenzado o finalizado correctamente. Inspeccione el trabajo para conocer su estado actual.\"],\"rT2tqA\":[\"Formato de referencia\"],\"rZSSdB\":[\"Ciclo del perfil\"],\"rnN7wn\":[\"No backtest yet. This dataset has no waveform replay; freeze a new dataset below to set one up. Nothing here changes the pod.\"],\"rruaq8\":[\"La identidad de la referencia no coincide con el informe seleccionado.\"],\"ruHgkn\":[\"Each 5-minute epoch takes the first rule that matches\"],\"sN516V\":[\"Pump stall protection\"],\"sPFHpI\":[\"Disk\"],\"sbMCzq\":[\"No hay valores compatibles en estas páginas.\"],\"scVcMn\":[\"HR MAE / bias (\",[\"0\"],\")\"],\"sdPN1F\":[\"Conjunto de datos\"],\"sdgA-V\":[\"La comparación con la referencia falló.\"],\"sgOAS_\":[\"Observaciones guardadas: \",[\"0\"]],\"srnBNJ\":[\"sin referencia\"],\"svAg_h\":[\"Congelar un conjunto nuevo\"],\"t-Vlce\":[\"Aún no ha pasado nada en este lado.\"],\"t072kc\":[\"Choosing nights the reference covers…\"],\"t85xzT\":[\"Error de FC por noche · lpm frente a la referencia\"],\"t9S3g1\":[\"Compare con el perfil guardado. Esta comparación de configuración no demuestra validación.\"],\"tBe0Mi\":[\"Qué hizo el perfil guardado\"],\"tEXMPn\":[\"Restaurar el anterior\"],\"tQU1G2\":[\"Limitaciones\"],\"tRmb9r\":[\"Recent service logs\"],\"tToCKC\":[\"Bytes conservados: \",[\"0\"]],\"tXkhj_\":[\"Inicio\"],\"ta6ak8\":[\"Fijar datos seleccionados\"],\"tf6U9f\":[\"Bytes comprimidos: \",[\"0\"]],\"ti4sFo\":[\"Guardó una importación de referencia de \",[\"0\"]],\"ts0Iq9\":[\"Umbral de picos de frecuencia cardíaca (desviaciones estándar)\"],\"ttIsX4\":[\"Which releases the pod installs\"],\"ttc02l\":[\"Minutos de referencia\"],\"u41hN6\":[\"Cobertura reducida\"],\"u5a5NC\":[\"Requiere una nueva verificación\"],\"u8PbT5\":[\"Reprocesar también las fases del sueño\"],\"uAQUqI\":[\"Estado\"],\"uMzbru\":[\"Conservar las formas de onda seleccionadas\"],\"uPiT3Y\":[\"Los valores cambiados aparecen en blanco; el perfil anterior (valores del sistema) queda debajo. Mover un control edita el perfil guardado; guardarlo de nuevo lo vuelve a solicitar. El procesador adopta un perfil solo después de confirmar una solicitud.\"],\"uQh6hr\":[\"Comparación / base\"],\"uVvWY-\":[\"Noches registradas\"],\"uX0V3h\":[\"Registros de referencia para comparar\"],\"uZsFeN\":[\"Aplica este candidato exacto usando la evaluación seleccionada. La evidencia y la configuración actual se comprueban de nuevo al aplicarlo.\"],\"ubgn_Q\":[\"Reglas de fases del sueño del candidato\"],\"uihHRS\":[\"El pod rechazó este plan. Ajústalo y prepáralo de nuevo.\"],\"uj0QeQ\":[\"Umbral incumplido: \",[\"reason\"]],\"uj9vMS\":[\"Intervalo respiratorio más corto (× mediana)\"],\"uk6Pmi\":[\"Importar mediciones de referencia\"],\"ukOhBN\":[\"Elija el protocolo antes de ver los resultados. Crear un experimento no ejecuta un trabajo ni aplica un perfil.\"],\"uv3Ezk\":[\"Regla de señal baja del candidato\"],\"v0YxJ6\":[\"Detalles de intervalos compartidos: \",[\"0\"]],\"vAFAci\":[\"Revisar candidato\"],\"vKQ3HQ\":[\"Heart rate tuning\"],\"vVE3Ho\":[\"Comparar referencias fijadas\"],\"vX6LBe\":[\"Evidencia de evaluación incompatible\"],\"vX8Jre\":[\"ÍNDICE DE VFC\"],\"vZ6rJ5\":[\"Corregir importación\"],\"vZdyzL\":[\"La cobertura de referencia es la fracción de registros de referencia aptos que se han emparejado. La cobertura de salida es la fracción de observaciones con un valor, no la cobertura temporal continua. Las muestras escasas no permiten establecer la precisión de una noche completa.\"],\"vhqhMs\":[\"No se ha confirmado la limpieza del proceso de trabajo.\"],\"vkIIv_\":[\"Sesiones seleccionadas: \",[\"0\"],\" / 60\"],\"vl7cYu\":[\"Sensor data source\"],\"vq24aI\":[\"Procesos Python medidos: \",[\"0\"],\" de \",[\"1\"]],\"vq2FYw\":[\"Regla \",[\"0\"]],\"vrQQgz\":[\"Perfiles\"],\"vuyIUW\":[\"No se pudieron emparejar de forma fiable las lecturas del candidato y del perfil activo.\"],\"vv7kpg\":[\"Cancelado\"],\"w6ZzbW\":[\"anterior\"],\"wHpeCu\":[\"Ajuste\"],\"wKbWyv\":[\"Lo guarda como perfil y lo solicita; el perfil guardado actual pasa a ser el anterior. El procesador sigue con lo que tiene hasta confirmar la solicitud.\"],\"wMHvYH\":[\"Valor\"],\"wOA2YL\":[\"Una revisión guardada no demuestra validación ni adopción por el procesador.\"],\"wOuuTa\":[\"Referencia / predicción\"],\"wPpM6Q\":[\"Hash del plan\"],\"wQBmjJ\":[\"Breathing tuning\"],\"wRR604\":[\"Pages\"],\"wTOwz-\":[\"Aplicado\"],\"we3ttu\":[\"Hash del conjunto de datos\"],\"wn_sE_\":[\"Sesgo con signo\"],\"wu6Pa1\":[\"LED brightness\"],\"ww-u9k\":[\"Aceptados: \",[\"0\"],\"; rechazados: \",[\"1\"],\"; duplicados: \",[\"2\"],\"; no evaluables: \",[\"3\"]],\"x0EO-w\":[\"variabilidad IBI por ventana, no RMSSD clínico\"],\"x9pT2j\":[\", con \",[\"count\"],\" ajustes propios\"],\"x9u6nv\":[\", with no overrides\"],\"xCyL2U\":[\"Error en la vista previa de las referencias.\"],\"xDr_ct\":[\"Fin\"],\"xHMZQc\":[\"Costes del reprocesamiento\"],\"xHs5dk\":[\"┆ gen N profile change\"],\"xS38A7\":[\"Esta ejecución antigua no tiene guardada la identidad de la revisión candidata.\"],\"xUBoEO\":[\"Matriz de confusión en minutos: filas de referencia, columnas de predicción\"],\"xWY4U3\":[\"Automations that adjust the bed for you\"],\"xaHJrr\":[\"No backtest has replayed the saved profile yet. Saving a change replays the frozen dataset on its tuning, validation and holdout nights; nothing here changes the pod.\"],\"xahtIL\":[\"Activación manual\"],\"xem4Yw\":[\"Conservar informe\"],\"xh-6Jm\":[\"What each side is called\"],\"xh4HSZ\":[\"Minutos de referencia aptos\"],\"xmGHa-\":[\"Experimentos anteriores\"],\"y-5ho7\":[\"Lecturas recalculadas \",[\"first\"],\"–\",[\"0\"],\" de \",[\"1\"]],\"y1-Ttq\":[\"Editar ajustes\"],\"y1L8fR\":[\"Observaciones almacenadas: \",[\"0\"]],\"y7CEna\":[\"Borrar la selección de esta noche\"],\"yD0Ka7\":[\"Primera mitad de cada período\"],\"yHNO9L\":[\"Registros de referencia\"],\"yJgBTR\":[\"primeras 500 lecturas\"],\"yQwtrO\":[\"Mediciones de referencia normalizadas\"],\"yTWKne\":[\"Terminó una prueba retrospectiva en noches de \",[\"0\"]],\"yUns4e\":[\"Intervalos exactos de la traza\"],\"yZcT27\":[\"Restaurar valores predeterminados del sistema\"],\"ykpqy2\":[\"Vista de fases actual\"],\"ysAeQM\":[\"La cobertura del candidato se redujo; un menor error por sí solo no demuestra una mejora.\"],\"ywFj2D\":[\"Configuración\"],\"yyCcHp\":[\"Cobertura y confusión de fases por noche\"],\"yydYOL\":[\"Revisar informe\"],\"z1a7gg\":[\"Esta solicitud hace referencia a un conjunto de datos liberado. Sus bytes de formas de onda ya no están disponibles.\"],\"z35-JD\":[\"Sensor baselines for piezo, capacitance and temperature\"],\"z5mSEw\":[\"Conjunto de datos de formas de onda conservado: \",[\"published\"]],\"zD4VqY\":[\"Sin puntuación\"],\"zHYvnZ\":[\"Suavizar épocas aisladas\"],\"zPlfe_\":[\"Plantilla de observación\"],\"zQ1eT8\":[\"Candidato\"],\"zTAN4I\":[\"Identificador de la persona\"],\"zXaTA9\":[\"Las observaciones faltantes siguen sin datos. El índice de variabilidad IBI no es el RMSSD clínico.\"],\"zg_dr-\":[\"Las duraciones abarcan el trabajo secuencial de Python hasta la generación del resultado. La memoria es el mayor pico registrado durante la vida de un proceso. Estas mediciones excluyen los costes del coordinador y de la evaluación, y no demuestran el buen funcionamiento de la recepción de datos en vivo.\"]}")}; \ No newline at end of file diff --git a/src/lib/i18n/locales/es.po b/src/lib/i18n/locales/es.po index 75f5c0b3c..632844300 100644 --- a/src/lib/i18n/locales/es.po +++ b/src/lib/i18n/locales/es.po @@ -3804,7 +3804,7 @@ msgid "Wake" msgstr "Vigilia" #: src/components/biometrics/BiometricsPage.tsx:280 -msgid "Watch SDNN and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values." +msgid "Watch SDNN, Watch RMSSD and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values." msgstr "" #: src/components/biometrics/Calibration/WaveformDatasetBuilder.tsx:133 diff --git a/src/lib/i18n/locales/pseudo.js b/src/lib/i18n/locales/pseudo.js index 9d5f8de86..e37d1c094 100644 --- a/src/lib/i18n/locales/pseudo.js +++ b/src/lib/i18n/locales/pseudo.js @@ -1 +1 @@ -/*eslint-disable*/module.exports={messages:JSON.parse("{\"-7ESf_\":[\"Ńō śàvēď ćàńďĩďàţē ŕēvĩśĩōńś.\"],\"-8VQNP\":[\"Àŕćĥĩvē śćàń ćōḿƥĺēţē.\"],\"-A51pP\":[\"ńōţ ŕũń\"],\"-BcCfq\":[\"Ţĥē ƒũĺĺ-śćŕēēń ƀēď ōń ţĥē Ţēḿƥ śćŕēēń\"],\"-C2YDb\":[\"Ǫũēũē ƀàćķţēśţ\"],\"-HG8IU\":[\"Ēvēŕŷ ńĩĝĥţ ĩś ŕē-śćōŕēď ŵĩţĥ ţĥē ćũŕŕēńţ śţàĝē ŕũĺēś; ĥĩĝĥēŕ ĩś ƀēţţēŕ.\"],\"-LXyQ4\":[\"Ƥōď − Ŵàţćĥ ƥēŕ ńĩĝĥţ, ƀŷ ƀēď-ēńţŕŷ ďàţē. Ţĥē ĝōàĺ ĩś źēŕō; ďàśĥēď ĺĩńēś ḿàŕķ ƥŕōƒĩĺē ćĥàńĝēś.\"],\"-USBLd\":[\"Ēvàĺũàţĩōń ḿōďē\"],\"-VKOiQ\":[\"Ţĥĩś ćōḿƥàŕĩśōń ćàƥţũŕēś à ƒŕēśĥ śńàƥśĥōţ. Àń ōńĝōĩńĝ ŕũń ḿàŷ ĥàvē ḿōŕē ōƀśēŕvàţĩōńś ţĥàń ţĥē ēàŕĺĩēŕ ĥēàĺţĥ ŕēƥōŕţ.\"],\"-Yo_SK\":[\"Ţĥĩś ŕēƥōŕţ ƥŕēďàţēś ŕēƥĺàŷ ƥŕōćēśś ḿēàśũŕēḿēńţś.\"],\"-avT-V\":[\"Ćĩŕćũĺàţēś ŵàţēŕ ţō ćĺēàŕ àĩŕ ƒŕōḿ ţĥē ĺĩńēś\"],\"-gLagq\":[\"ŕēĺēàśēď\"],\"-mOi3A\":[\"Ƥŕēvĩēŵ ĩḿƥōŕţ\"],\"-pG9wc\":[\"Ńēxţ ŕēƒēŕēńćē ƥàĝē\"],\"-tMOt1\":[\"Ŕēśţōŕēď ţĥē ƥŕēvĩōũś ƥŕōƒĩĺē àńď ŕēǫũēśţēď ĩţ\"],\"-yvkzR\":[\"Ţĥĩś ŕēǫũēśţ ĥàś ƀēēń śũƥēŕśēďēď ƀŷ àńōţĥēŕ ƥŕōƒĩĺē ćĥàńĝē.\"],\"00b9Bg\":[\"Śĥōŵ ŕēćēńţ\"],\"03_grA\":[\"Ńō ƀàćķţēśţ ŷēţ. Ĩḿƥōŕţ à ŕēƒēŕēńćē ƒōŕ ţĥĩś śĩďē, ţĥēń ƒŕēēźē ńĩĝĥţś ţĥàţ ĥàvē ĩţ; ţĥē ŕēƥĺàŷ śćōŕēś ţĥē ƥŕēvĩōũś àńď śàvēď ƥŕōƒĩĺēś àĝàĩńśţ ĩţ. Ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"0ArZBq\":[\"Ŕēśàḿƥĺēś (200–5000)\"],\"0Ke-zM\":[\"Ńō ƥŕōśƥēćţĩvē ōƀśēŕvàţĩōń ţēḿƥĺàţēś àŕē ćōńƒĩĝũŕēď ōń ţĥĩś ƥōď.\"],\"0RiDQs\":[\"Ŕēƥōŕţ ĥàśĥ\"],\"0SoeWE\":[\"Ŵàĩţĩńĝ ƒōŕ à ŵōŕķēŕ àńď ŕēśōũŕćē àďḿĩśśĩōń. Ńō ēxēćũţĩōń ĩś ĩḿƥĺĩēď ƀŷ à ǫũēũēď ŕēǫũēśţ.\"],\"0TTMQ2\":[\"ƒŕōźēń \",[\"0\"],\" · \",[\"1\"]],\"0UEomc\":[\"Ŕēƒēŕēńćē ćōńţēńţ ĥàśĥ\"],\"0eWybM\":[\"Ćōḿḿōń-śũƥƥōŕţ ḿàćŕō Ƒ1 ďĩƒƒēŕēńćē: \",[\"0\"]],\"0fgSB_\":[\"Ŕēǫũēśţĩńĝ…\"],\"0g8Hrj\":[\"Śōũŕćē ḿēàśũŕēḿēńţś ďēĺēţēď\"],\"18DKey\":[\"Ĥōḿē Àśśĩśţàńţ ďĩśćōvēŕŷ\"],\"1E_-sY\":[\"Ţĥĩś ŕēƥōŕţĩńĝ ţĥŕēśĥōĺď ĩś ńōţ à vàĺĩďàţēď śàḿƥĺē-śĩźē ŕēǫũĩŕēḿēńţ. Ţōō ƒēŵ ōŕ ďēĝēńēŕàţē ńĩĝĥţś ŷĩēĺď ńō ĩńţēŕvàĺ.\"],\"1I5fPJ\":[\"Àḿƀĩĝũōũś ţĩḿēśţàḿƥś (ƀàśēĺĩńē / ćōḿƥàŕĩśōń)\"],\"1SxkbH\":[\"Ŕēvĩśĩōń \",[\"0\"],\"; àććēƥţēď \",[\"1\"],\"; ũńśćōŕàƀĺē \",[\"2\"]],\"1bs1Oi\":[\"Śţōŕàĝē ũśēď ōń ţĥē ƥōď\"],\"1gZYbz\":[\"Śĺēēƥ śţàĝēś\"],\"1gkwth\":[\"ćōvēŕēď\"],\"1gq8Fu\":[\"Ćĥàńĝēď vàĺũēś àŕē ŵĥĩţē; ţĥē ƥŕēvĩōũś ƥŕōƒĩĺē śĩţś ũńďēŕńēàţĥ. Ḿōvĩńĝ à ćōńţŕōĺ ēďĩţś ţĥē śàvēď ƥŕōƒĩĺē; śàvĩńĝ àĝàĩń ŕē-ŕēǫũēśţś ĩţ. Ţĥē ƥŕōćēśśōŕ àďōƥţś à ƥŕōƒĩĺē ōńĺŷ àƒţēŕ ĩţ àćķńōŵĺēďĝēś à ŕēǫũēśţ.\"],\"1m2ZjF\":[\"Ŵàĩţĩńĝ ƒōŕ à ƥŕōćēśśĩńĝ ƀōũńďàŕŷ\"],\"1njn7W\":[\"Ĺĩĝĥţ\"],\"1sMQW6\":[\"Ũńḿàţćĥēď ōƀśēŕvàţĩōńś\"],\"1zMPXx\":[\"Ţĥē śēŕvēŕ ćàƥţũŕēś ďēƒàũĺţ, ćũŕŕēńţ śţàĝē-vĩēŵ, àńď ćàńďĩďàţē ćōńƒĩĝũŕàţĩōńś àţ śũƀḿĩśśĩōń. Śţōŕēď ŕēàďĩńĝś ćàńńōţ vàĺĩďàţē ńũḿēŕĩćàĺ ƥàŕàḿēţēŕ ćĥàńĝēś.\"],\"22M8hi\":[\"Ũƥĺōàď Àƥƥĺē Ŵàţćĥ ďàţà ţō śēē ĥōŵ ƒàŕ ţĥĩś śĩďē'ś ŕēàďĩńĝś śĩţ ƒŕōḿ ţĥē Ŵàţćĥ, ńĩĝĥţ ƀŷ ńĩĝĥţ.\"],\"2Ek6a3\":[\"Ńēŵ ōƀśēŕvàţĩōń ƥĺàń\"],\"2FSnGH\":[\"Ŕēƒēŕēńćē àĝŕēēḿēńţ ćàĺćũĺàţēď.\"],\"2JsUDv\":[\"Ŕēśţōŕē àńď ŕēǫũēśţ\"],\"2KVdfN\":[\"Śţōƥ ŕēćōŕďēď\"],\"2LVKeT\":[\"Śēćōńď ĥàĺƒ ōƒ ēàćĥ ŵĩńďōŵ\"],\"2UtXoO\":[\"Ţĥē ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx ĩś ńōţ ćĺĩńĩćàĺ ƀēàţ-ţō-ƀēàţ ŔḾŚŚĎ. Ōńĺŷ ćōḿƥàţĩƀĺē ḿēţŕĩć ďēƒĩńĩţĩōńś àńď àĝĝŕēĝàţĩōń ŵĩńďōŵś àŕē śćōŕēď.\"],\"2X2m4_\":[\"ĥĩďē\"],\"2_xXFZ\":[\"Ōƀśēŕvàţĩōń ŕēǫũēśţ śàvēď: \",[\"saved\"],\". Ŕēvĩēŵ ĩţś śţàţũś ĩń ţĥē ŕũń ĺĩśţ; ēxēćũţĩōń ĩś ńōţ ĩḿƥĺĩēď.\"],\"2hjLDv\":[\"Ƥŕōƒĩĺē ŕēvĩśĩōńś ĥēŕē àŕē ćàńďĩďàţēś. Àƥƥĺŷĩńĝ ōńē ŕēǫũēśţś ĩţ ĺĩķē Śàvē àńď ŕēǫũēśţ ďōēś; ţĥē ōvēŕvĩēŵ śĥōŵś ŵĥēń ţĥē ƥŕōćēśśōŕ àćķńōŵĺēďĝēś ĩţ.\"],\"2kV8bg\":[\"Ĺàŕĝēśţ Ƥŷţĥōń ƥŕōćēśś ƥēàķ ḿēḿōŕŷ (Ḿĩß)\"],\"2q_goE\":[\"Ŕēĺēàśē ŕēţàĩńēď ĩńƥũţś\"],\"33IC49\":[\"Ƒàĥŕēńĥēĩţ ōŕ Ćēĺśĩũś àćŕōśś ţĥē àƥƥ\"],\"33aIUI\":[\"Ĺàŕĝēśţ ōƀśēŕvàţĩōń ĝàƥ: \",[\"0\"],\" śēćōńďś\"],\"33v1rN\":[\"Ćōḿƥàţĩƀĺē\"],\"39Atsr\":[\"Śţàĝē ŕēƥĺàŷ ũńàvàĩĺàƀĺē\"],\"3GkuKU\":[\"Ōƀśēŕvàţĩōń ćĺōćķś àŕē ĩńćōńśĩśţēńţ.\"],\"3PRxO3\":[\"Śţàĝē\"],\"3SR-aZ\":[\"Ĩńĥēŕĩţēď ďēƒàũĺţ\"],\"3burf-\":[\"Ŕēƥĺàŷ śàvēď ńĩĝĥţś àĝàĩńśţ à ƥŕōƒĩĺē\"],\"3cOQwy\":[\"Ĺàŕĝēśţ ōƀśēŕvàţĩōń ĝàƥ: \",[\"0\"],\" śēćōńďś.\"],\"3d05JT\":[\"Ćōḿƥàŕĩśōń śĥàŕēď ḾÀĒ\"],\"3kR70m\":[\"Śĥàŕēď ŕēƒēŕēńćē ƥàĩŕś: àćţĩvē \",[\"0\"],\", ćàńďĩďàţē \",[\"1\"],\".\"],\"3l8RWF\":[\"Ďēēƥ\"],\"3uHzkK\":[\"Ƥĩńńēď ćōńƒĩĝũŕàţĩōń àńď ōvēŕŕĩďēś\"],\"3zXtla\":[\"Ţēḿƥōŕàŕĩĺŷ ƥàũśē à śĺēēƥēŕ’ś ţŕàćķĩńĝ àńď àĺàŕḿś\"],\"4-hUpd\":[\"Ńēxţ ŕēƥōŕţ ńĩĝĥţś\"],\"40Gx0U\":[\"Ţĩḿēźōńē\"],\"40OXuf\":[\"Ŕēƒēŕēńćē śōũŕćē\"],\"446E9e\":[\"Ēxƥĺōŕàţōŕŷ ĩńţēŕvàĺ ēśţĩḿàţēď\"],\"4BjOe9\":[\"ćĺĩćķ à ńĩĝĥţ\"],\"4QTTLk\":[\"Ḿēḿōŕŷ śàḿƥĺēś: \",[\"0\"],\" ōƒ \",[\"1\"],\"; ĺàŕĝēśţ ĝàƥ: \",[\"2\"],\" śēćōńďś\"],\"4Xq3Qs\":[\"Ŕēƥĺàŷ śţàĝē ţŕàćēś\"],\"4ZsrjP\":[\"Ŕēvĩśĩōń \",[\"0\"],\" · \",[\"1\"],\" · \",[\"2\"]],\"4_5Byh\":[\"Ŕēƥōŕţ ţĥē ĩńďēx ōńĺŷ àƒţēŕ\"],\"4ajvlE\":[[\"0\"],\" ŕēćōŕďś\"],\"4ba0NE\":[\"Śćĥēďũĺēď\"],\"4cbaBq\":[\"Ćĩŕćĺēś àŕē ŕēćōḿƥũţēď ŕēàďĩńĝś; śǫũàŕēś àŕē ŕēƒēŕēńćē ƥōĩńţś; ĥōŕĩźōńţàĺ ƀàŕś àŕē ŕēƒēŕēńćē ĩńţēŕvàĺś. Ōńĺŷ ţĥē ţŵō ďĩśƥĺàŷēď ƥàĝēś àŕē śĥōŵń. Ţĥĩś vĩśũàĺ ōvēŕĺàŷ ďōēś ńōţ ćŕēàţē ńēŵ ḿàţćĥēď ƥàĩŕś ōŕ śćōŕēś.\"],\"4d-mVQ\":[\"Śţōŕēď vĩţàĺś: \",[\"0\"],\"; ḿōvēḿēńţ ŕēćōŕďś: \",[\"1\"]],\"4mi85N\":[\"Ŵàķē\"],\"4szmRA\":[\"Ēǫũàĺ-ńĩĝĥţ ďĩƒƒēŕēńćēś àńď ƥōōĺēď ďũŕàţĩōń śćōŕēś ũśē ďĩƒƒēŕēńţ ŵēĩĝĥţĩńĝ. Ćōvēŕàĝē ĺōśś ḿũśţ ƀē ćōńśĩďēŕēď àĺōńĝśĩďē śćōŕē ćĥàńĝēś.\"],\"4wjzfS\":[\"Ḿàćŕō Ƒ1\"],\"4ylXAL\":[\"Ƥŕōśƥēćţĩvē ōƀśēŕvàţĩōń ŕēƥōŕţ\"],\"5-4l5i\":[\"Ũƥďàţē ćĥàńńēĺ\"],\"51-xfW\":[\"Ţĩḿēś śĥōŵń ĩń \",[\"timezone\"]],\"51WyWB\":[\". Śēƥàŕàţē ƒŕōḿ ţĥē ƥŕōƒĩĺē.\"],\"563t94\":[\"Ńēxţ àŕćĥĩvē ƥàĝē\"],\"5716sl\":[\"Ţŕàćē ćōńƒĩĝũŕàţĩōń\"],\"5BvHkO\":[\"Ƥŕēvĩōũś ńũḿēŕĩć ƥàĝē\"],\"5Mc__K\":[\"Ƥŕēƥàŕē à ńēŵ ŕēǫũēśţ ŵĩţĥ ţĥē ćũŕŕēńţ ƀàśēĺĩńē\"],\"5ZoFxn\":[\"Ţĥŕēśĥōĺďś àŕē ƥàŕţ ōƒ ţĥĩś ēxƥēŕĩḿēńţ. Śũƥƥĺŷĩńĝ ţĥŕēśĥōĺďś ďōēś ńōţ ǫũàĺĩƒŷ à ƥŕōḿōţĩōń ƥōĺĩćŷ.\"],\"5_rcZN\":[\"Ćàńďĩďàţē śàvēď: \",[\"saved\"]],\"5doABu\":[\"Àũţō-ōń\"],\"5jKV9V\":[\"ĵōƀ ďēţàĩĺś\"],\"5pWEdW\":[\"Ţĥēśē śćōŕēś ćōḿƥàŕē ŕēàďĩńĝś ŕēćōḿƥũţēď ƒŕōḿ ŕēţàĩńēď ŵàvēƒōŕḿś. Śĥàŕēď-ţĩḿēśţàḿƥ śćōŕēś ũśē ōƀśēŕvàţĩōńś àvàĩĺàƀĺē ĩń ēvēŕŷ ćōńƒĩĝũŕàţĩōń. Ďĩƒƒēŕēńćēś ďēśćŕĩƀē àĝŕēēḿēńţ ŵĩţĥ ţĥē ŕēƒēŕēńćē àńď ďō ńōţ ēśţàƀĺĩśĥ vàĺĩďàţēď ĩḿƥŕōvēḿēńţ.\"],\"5uuxPO\":[\"Śōḿē ĥēàĺţĥ ēvĩďēńćē ĩś ũńàvàĩĺàƀĺē ōŕ ćĥàńĝēď ǫũàĺĩƒĩćàţĩōń ďũŕĩńĝ ēxēćũţĩōń.\"],\"60ebf_\":[\"ŚŚĤ ĩďēńţĩţŷ\"],\"6C5LWh\":[\"Ƥōď ĥēàĺţĥ àńď ďĩàĝńōśţĩćś\"],\"6KrHKt\":[\"Ĩďēńţĩćàĺ ţō ţĥē śàvēď ƥŕōƒĩĺē; ŕēśţōŕĩńĝ ōńĺŷ ŕē-ŕēǫũēśţś ĩţ.\"],\"6Njx8W\":[\"Ŕēàďĩńĝ ŔÀŴ àŕćĥĩvēś · \",[\"0\"],\" / \",[\"1\"]],\"6Pvtlo\":[\"ĤŔ ēŕŕōŕ · ĥōĺďōũţ\"],\"6RQpjn\":[\"Ćàńćēĺĺàţĩōń ŕēǫũēśţēď\"],\"6_cgQY\":[\"Ŕēƥŕōďũćĩƀĺē śàḿƥĺĩńĝ śēēď\"],\"6_dCYd\":[\"Ōvēŕvĩēŵ\"],\"6o-CER\":[\"ƒŕēśĥńēśś ũńķńōŵń\"],\"6qR6Df\":[\"Śōũŕćē / ŕēvĩśĩōń\"],\"6tj-Z0\":[\"Ńēŵēśţ ƥŕōƒĩĺēś\"],\"6uwzJJ\":[\"ßàćķţēśţś\"],\"71Z__Z\":[\"Vàĺĩďàţēď àćţĩvàţĩōń\"],\"7BI5x7\":[\"Ōvēŕŕĩďē ĩńţēńţ ćàń ćĥàńĝē ēvēń ŵĥēń ţĥē ŕēśōĺvēď vàĺũē śţàŷś ţĥē śàḿē.\"],\"7Bj3x9\":[\"Ƒàĩĺēď\"],\"7Hnopa\":[\", ŵĩţĥ 1 ōvēŕŕĩďē\"],\"7L3hkB\":[\"Ēxàćţ ńōŕḿàĺĩźēď ţĩḿēśţàḿƥś àŕē śĥōŵń ĩń ŨŢĆ. Vàĺũēś àŕē ńōţ ĩńţēŕƥōĺàţēď.\"],\"7Moz13\":[\"Śàvēď ƥŕōƒĩĺē àĝàĩńśţ ƥŕēvĩōũś\"],\"7T4D_c\":[\"Ŕēàďĩńĝś ōũţśĩďē ţĥēśē ĺĩḿĩţś àŕē ĩĝńōŕēď\"],\"7hw71T\":[\"Ŕàŵ śēńśōŕ śţŕēàḿś\"],\"7l15X4\":[\"ƒàĩĺēď\"],\"7l_Tjk\":[[\"stages\"],\" śĺēēƥ-śţàĝē vàĺũēś\"],\"7m2vSb\":[\"Ŵĥĩĺē àń àĺàŕḿ ĩś ŕĩńĝĩńĝ\"],\"7oRNr7\":[\"Ŵĥàţ à ţàƥ ďōēś ţō à ŕĩńĝĩńĝ àĺàŕḿ\"],\"7qeI1z\":[\"Ƥĩńńēď ēvàĺũàţĩōń ƥŕōţōćōĺ\"],\"7qftNU\":[\"Ŕēĺēàśē ďēţàĩĺēď ŕēƥōŕţ\"],\"7vEC4B\":[\"ćũŕŕēńţ\"],\"8-x9lY\":[\"Ḿĩĝŕàţēď śĺēēƥ-śţàĝē śēţţĩńĝś ĩńţō ţĥē ƥŕōƒĩĺē\"],\"8CnPMu\":[\"ĤŔV ḾÀĒ / ƀĩàś (\",[\"0\"],\")\"],\"8TIz1S\":[\"Ńō ŕēćōŕďēď ńĩĝĥţś ƒōŕ ţĥĩś śĩďē.\"],\"8Whu0n\":[\"Ţōō ƒēŵ ĩńďēƥēńďēńţ ńĩĝĥţś ƒōŕ à vàĺĩďàţĩōń śƥĺĩţ; ďēśćŕĩƥţĩvē ēvàĺũàţĩōń ōńĺŷ.\"],\"8ZSsNo\":[\"Àďďś ţĥē ƥōď ţō Àƥƥĺē Ĥōḿē. Ĺōćàĺ-ōńĺŷ — ńō Àƥƥĺē śēŕvēŕś.\"],\"8f8vg9\":[\"Ţĥē śēŕvēŕ ĝŕōũƥś ćōńńēćţēď śēśśĩōńś ĩńţō ŵĥōĺē ńĩĝĥţś ĩń ţĥē ďēvĩćē ţĩḿēźōńē ƀēƒōŕē àśśĩĝńĩńĝ ţũńĩńĝ, vàĺĩďàţĩōń, àńď ĥōĺďōũţ śēţś. À śƥĺĩţ ĩś ńōţ ēvĩďēńćē ōƒ ĩḿƥŕōvēḿēńţ.\"],\"8f9lK-\":[\"Ńēxţ śēśśĩōń ƀōũńďàŕŷ\"],\"8hxWfI\":[\"Ńō ḿàţćĥĩńĝ ōƀśēŕvàţĩōńś.\"],\"8kkt--\":[\"Ćōḿƥàŕē ŕēƒēŕēńćē\"],\"8lcee1\":[\"Ōvēŕŕĩďďēń\"],\"8m8FBC\":[\"Śţàŕţ ƒŕōḿ ćũŕŕēńţ ƥŕōƒĩĺē\"],\"8nOcxV\":[\"Ēxēćũţĩōń ćōḿƥĺēţēď\"],\"8pq43b\":[\"ĤŔV ĩńďēx ēŕŕōŕ\"],\"8vYOP0\":[\"Ĩḿḿēďĩàţē ƥŕōćēśśĩńĝ ƀōũńďàŕŷ\"],\"8wngZM\":[\"Ƒàĺĺƀàćķ\"],\"8wu9lr\":[\"Ǫũēũēď\"],\"8xEouR\":[\"Ĥōĺďōũţ ĩś ţĥē ńũḿƀēŕ ţō ţŕũśţ; ţũńĩńĝ ńĩĝĥţś ŵēŕē ũśēď ţō ƥĩćķ ţĥēśē vàĺũēś.\"],\"92LEHj\":[\"Ũśēď ōń ţĥē Ţēḿƥ śćŕēēń ōƒ ţĥĩś ďēvĩćē\"],\"9HGU1A\":[\"Ōũţƥũţ ḿĩńũţēś\"],\"9KnPbi\":[\"Ćōḿƥàŕĩśōń ŕēƥōŕţ ĥàśĥ\"],\"9RckBe\":[\"Ĥēĺĺō, ţŔƤĆ ţēśţ ƥàĝē!\"],\"9S8_IK\":[\"Ŕēţàĩńēď ĩńƥũţ ĩńţēĝŕĩţŷ ćĥēćķēď ƀŷ ţĥē śēŕvēŕ.\"],\"9Xwfwj\":[\"Ńō ŕēƒēŕēńćēś śēĺēćţēď. Ţĥĩś ďàţàśēţ ćàńńōţ ēśţàƀĺĩśĥ àĝŕēēḿēńţ ŵĩţĥ ŕēƒēŕēńćē ḿēàśũŕēḿēńţś.\"],\"9aloPG\":[\"Ŕēƒēŕēńćēś\"],\"9dnk8H\":[\"Ţĥĩś ĩś ţĥē ŕēţàĩńēď ēvàĺũàţĩōń ŕēśũĺţ, ńōţ ćũŕŕēńţ àćţĩvàţĩōń àƥƥŕōvàĺ ōŕ ćĺĩńĩćàĺ àććũŕàćŷ. Àƥƥĺĩćàţĩōń ćĥēćķś ćũŕŕēńţ ēvĩďēńćē àńď śēţţĩńĝś àĝàĩń.\"],\"9fUe-g\":[\"Ńō ēvàĺũàţēď ćōńƒĩĝũŕàţĩōń ĩś àvàĩĺàƀĺē.\"],\"A1Aqyj\":[\"ßŕēàţĥĩńĝ ŕàţē\"],\"A1taO8\":[\"Śēàŕćĥ\"],\"A8uc8S\":[\"Ƒŕōźēń śţàĝē ōƀĴēćţĩvē ţĥŕēśĥōĺďś\"],\"ABXRh6\":[\"Ďĩśķ ũśàĝē àńď ŕēćōŕďĩńĝ\"],\"ALIxuu\":[\"Śēĺēćţēď ŕēƒēŕēńćē ŕēvĩśĩōńś: \",[\"0\"],\" / 20\"],\"ASwFip\":[\"Śţàĝē ćàĺĩƀŕàţĩōń ǫũàĺĩţŷ ĩś àń ēxƥĺĩćĩţ ŕēƥĺàŷ àśśũḿƥţĩōń, ńōţ à ŕēćōvēŕēď śēńśōŕ ḿēàśũŕēḿēńţ. Śţōŕēď-ŕēàďĩńĝ ćōḿƥàŕĩśōń ďōēś ńōţ ţēśţ ńũḿēŕĩćàĺ ƥàŕàḿēţēŕ ćĥàńĝēś.\"],\"AZtrRp\":[\"ßàćķţēśţ Ĵōƀś\"],\"AeJ9jx\":[\"ßŕĩĝĥţńēśś ōƒ ţĥē ƥōď’ś ĺĩĝĥţ\"],\"AlrzpB\":[\"Ţĥē ōƀśēŕvàţĩōń ĝàƥ ēxćēēďēď ţĥē ƥĺàńńēď ĺĩḿĩţ.\"],\"Apj80l\":[\"Ōƀśēŕvēď ĩśśũēś ńēēď ŕēvĩēŵ.\"],\"Aws57Q\":[\"Ōĺďēŕ ĩḿƥōŕţś\"],\"AxM6wv\":[\"Ŕēƥōŕţ ēvĩďēńćē\"],\"B2rx0Y\":[\"Ķēēƥ śàvēď ƥŕōƒĩĺē\"],\"B5W0zb\":[\"Ţĥēśē śćōŕēś ćōḿƥàŕē ōŕĩĝĩńàĺ śţōŕēď ŕēàďĩńĝś. Ĩďēńţĩćàĺ ńũḿēŕĩćàĺ ŕēśũĺţś àćŕōśś ƥŕōƒĩĺēś ďō ńōţ vàĺĩďàţē ńũḿēŕĩćàĺ ƥàŕàḿēţēŕ ćĥàńĝēś.\"],\"BGoUTB\":[\"Ŕēƒēŕēńćē ēxţēńţ: \",[\"start\"],\" ţō \",[\"end\"],\" (\",[\"timezone\"],\")\"],\"BHqq1y\":[\"Ŕēţŕŷ śàḿē śćĥēďũĺĩńĝ ŕēǫũēśţ\"],\"BMx22g\":[\"Ŕēƒēŕēńćē ŕēćōŕďś \",[\"0\"],\"–\",[\"1\"],\" ōƒ \",[\"2\"]],\"BXW6e-\":[\"Ũńàvàĩĺàƀĺē ōŕ ƀēĺōńĝś ţō à ďĩƒƒēŕēńţ śĺēēƥēŕ.\"],\"Bb1uwv\":[\"Ńō Ŵàţćĥ ƥàĩŕś ĩń ţĥēśē ńĩĝĥţś\"],\"BuBE8H\":[\"Śĩĝńàĺ ŕēƥĺàŷ ũńàvàĩĺàƀĺē: ŕàŵ ŵàvēƒōŕḿś àńď ƥŕōćēśśĩńĝ ćōńţēxţ ĥàvē ńōţ ƀēēń ŕēţàĩńēď ƀŷ ţĥĩś śēŕvĩćē.\"],\"BvyPVP\":[\"Ţēḿƥēŕàţũŕē ćũŕvēś, ƥōŵēŕ àńď àĺàŕḿś\"],\"BxeSfv\":[\"Ƥŕēvĩōũś ŕēƒēŕēńćē ƥàĝē\"],\"C0vtfT\":[\"Ńō àććēƥţēď ţĩḿē ŕàńĝē.\"],\"CLYcpa\":[\"Vàĺĩďàţĩōń ēxćĺũśĩōńś\"],\"CLfuqo\":[\"Ńēŵēśţ ēxƥēŕĩḿēńţś\"],\"CWrY1e\":[\"Śēĺēćţēď àŕćĥĩvēś ƒōŕ ţĥĩś ńĩĝĥţ: \",[\"0\"],\" / 64\"],\"Cc0BhR\":[\"Àććēƥţ àń ēśţĩḿàţē ŵĥēń ĩţ ĩś ŵĩţĥĩń\"],\"CdAsLU\":[\"Ĺōŵ-śĩĝńàĺ ćàĺĩƀŕàţĩōń ǫũàĺĩţŷ ţĥŕēśĥōĺď\"],\"CdAt7D\":[\"Ĺĩĝĥţ ōŕ ďàŕķ àƥƥēàŕàńćē\"],\"Ci9D6l\":[\"Ĩḿƥōŕţ ŕēƒēŕēńćē\"],\"Cie-li\":[\"Ƥŕōśƥēćţĩvē ōƀśēŕvàţĩōńś\"],\"CjIZ1O\":[\"Ŵōŕķēŕ ĥēàĺţĥ ōƀśēŕvàţĩōńś àŕē śţàĺē.\"],\"CvehYe\":[\"Ũńḿàţćĥēď ŕēƒēŕēńćēś\"],\"Cy6Gb9\":[\"Śĥàŕēď ōƀśēŕvàţĩōńś\"],\"CyzcAv\":[\"Ƥŕēvĩēŵ ńōŕḿàĺĩźēď ŕēćōŕďś ƀēƒōŕē śàvĩńĝ ţĥēḿ ōń ţĥē ƥōď.\"],\"D32Y23\":[\"ŚĹĒĒƤ ŚŢÀĜĒŚ\"],\"DDb_NZ\":[\"Ďàţàśēţ ńĩĝĥţś\"],\"DFyeaF\":[\"Ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx\"],\"DHhJ7s\":[\"Ƥŕēvĩōũś\"],\"DIrJXu\":[\"Śĩĝńàĺ ĺĩḿĩţś\"],\"DPHzQ9\":[\"Śàvēď ƥŕōƒĩĺē ŕēvĩśĩōńś\"],\"DPb-qk\":[\"Ēďĩţĩńĝ ƒŕōḿ ţĥē ćũŕŕēńţĺŷ śàvēď ƥŕōƒĩĺē.\"],\"DSphLX\":[\"Ōƀśēŕvēď ƥŕōćēśś-ĝŕōũƥ ƥēàķ ŔŚŚ: \",[\"0\"],\" Ḿĩß\"],\"DWGgAw\":[\"Ĺĩńķĩńĝ Ŵàţćĥ ďàţà àĺŕēàďŷ ōń ţĥē ƥōď…\"],\"DXPGRI\":[\"Śēţţĩńĝ ũƥ ţĥē ŕēƥĺàŷ…\"],\"DnDpLH\":[\"Ĩńśƥēćţ ćàńďĩďàţē ćĥàńĝēś\"],\"Dr_Xtk\":[[\"title\"],\": ḾÀĒ àńď ƀĩàś ƥēŕ ńĩĝĥţ, ƥōď ḿĩńũś Ŵàţćĥ, ĩń \",[\"unit\"],\".\",[\"0\"]],\"Dt8YN3\":[\"Ēǫũàĺ-ńĩĝĥţ ḿēàń àĝŕēēḿēńţ ďĩƒƒēŕēńćē: \",[\"0\"]],\"DtefQU\":[[\"0\"],\" \",[\"1\"],\": ƥŕēvĩōũś \",[\"2\"],\", śàvēď \",[\"3\"],\" ƀƥḿ\"],\"E1wNkc\":[\"ßŕēàţĥĩńĝ ŕàţē (ƀŕēàţĥś/ḿĩń)\"],\"E3rH0L\":[\"Ńĩĝĥţś àś à ţàƀĺē\"],\"E8ws29\":[\"Ēàćĥ ńĩĝĥţ'ś ĥēàŕţ ŕàţē àĝàĩńśţ ţĥē ŕēƒēŕēńćē àƥƥēàŕś ĥēŕē ōńćē à ƀàćķţēśţ ĥàś ŕũń.\"],\"EF4ZiR\":[\"Ōũţƥũţ ćōvēŕàĝē\"],\"EI1f8X\":[\"Ţĥē śàvēď ƥŕōƒĩĺē ōŕ ƥàŕàḿēţēŕ ďēƒĩńĩţĩōńś àŕē ĩńćōḿƥàţĩƀĺē ŵĩţĥ ţĥĩś ēďĩţōŕ.\"],\"EN1f1Y\":[\"Ēxēćũţĩōń śţàţē ĩś śēƥàŕàţē ƒŕōḿ ţĥē śţŕēńĝţĥ ōƒ ƀĩōḿēţŕĩć ēvĩďēńćē.\"],\"E_GXXi\":[\"ĺàţēśţ \",[\"0\"]],\"EdQY6l\":[\"Ńōńē\"],\"Ef7StM\":[\"Ũńķńōŵń\"],\"EfcF_P\":[\"Ţĥĩś ĩś ţĥē ƒĩŕśţ-ţō-ĺàśţ ŕēćōŕď śƥàń, ńōţ ćōńţĩńũōũś ćōvēŕàĝē ōŕ ōvēŕĺàƥ ŵĩţĥ ƥōď ŕēàďĩńĝś.\"],\"Eine1d\":[\"Ćĺōćķś àćŕōśś ţĥē àƥƥ; śćĥēďũĺēď ţĩḿēś àŕē ũńćĥàńĝēď\"],\"EjJl4z\":[\"Ŕēćàĺĺ\"],\"EkEvjV\":[\"Ĩḿƥōŕţ àććēƥţēď ŕēćōŕďś àńď ōḿĩţ ŕēĴēćţēď ŕēćōŕďś\"],\"El6Jsd\":[\"Ēvàĺũàţĩōń ƥŕōţōćōĺ\"],\"EmSrGB\":[\"ßēƒōŕē\"],\"Emmy17\":[\"Ḿàxĩḿũḿ ŵĩńďōŵ: \",[\"0\"],\" ḿĩńũţēś.\"],\"EoaBI7\":[\"Ƥŕōćēśśōŕ ŕēĴēćţēď ĝēńēŕàţĩōń \",[\"0\"]],\"EwH7gh\":[\"Ƥēŕ-śţàĝē śćōŕēś ōń ćōḿḿōń ƥàĩŕēď ĩńţēŕvàĺś\"],\"F6pfE9\":[\"Àćţĩvē\"],\"FB0rkn\":[\"Ŕēƥōŕţ ńō ĥēàŕţ ŕàţē ŵĥēń ţĥē ƀēàţ śĩĝńàĺ śćōŕēś ƀēĺōŵ\"],\"FEr96N\":[\"Ţĥēḿē\"],\"FFdrAM\":[\"Ēďĩţĩńĝ ƒŕōḿ ŕēvĩśĩōń \",[\"revisionId\"]],\"FOSd8f\":[\"Ţũŕńś à śĩďē ōń ōńćē ŷōũ’vē śēţţĺēď ĩńţō ƀēď\"],\"FVmZD9\":[\"ßĩōḿēţŕĩć ćàĺĩƀŕàţĩōń śĩďē\"],\"FYh4VX\":[\"Ţĥē ŕēǫũēśţ ćōũĺď ńōţ ƀē śàvēď ƒōŕ ŕēćōvēŕŷ. Ţĥĩś àţţēḿƥţ ŵàś ńōţ śēńţ. Ķēēƥ ţĥĩś ţàƀ ōƥēń àńď ŕēţŕŷ ţĥē śàḿē ŕēǫũēśţ.\"],\"FhWkbT\":[\"Ƥēŕḿàńēńţĺŷ ďēĺēţē ĩḿƥōŕţ\"],\"FlMg9W\":[\"Ƥŕēćĩśĩōń\"],\"FsHaTL\":[\"Ḿēďĩàń àƀśōĺũţē ēŕŕōŕ\"],\"G6a5fj\":[\"Àńōţĥēŕ ŕēvĩśĩōń ƒŕōḿ ţĥĩś ŕēƒēŕēńćē ƒàḿĩĺŷ ĩś śēĺēćţēď.\"],\"GJlW-e\":[\"Ŕēƒēŕēńćē ćōvēŕàĝē ũśĩńĝ ēàćĥ ōũţƥũţ: àćţĩvē \",[\"0\"],\", ćàńďĩďàţē \",[\"1\"],\".\"],\"GKXsLn\":[\"Ćōḿƥàŕē à ćàńďĩďàţē àĺōńĝśĩďē àćţĩvē ƥŕōćēśśĩńĝ. Ōƀśēŕvàţĩōńś ďō ńōţ ćĥàńĝē ŷōũŕ àćţĩvē ƥŕōƒĩĺē.\"],\"Gi3Y4k\":[\"ƀƥḿ\"],\"GnvYuO\":[\"Ŕēḿōvē śēśśĩōń \",[\"id\"]],\"GqVSI2\":[\"Ćĥōōśē à śţàŕţ ţĩḿē ĩń ţĥē ƒũţũŕē.\"],\"GrimP8\":[\"ŕàńĝē\"],\"GuCB02\":[\"Ţŕàćē ĩďēńţĩţŷ ďōēś ńōţ ḿàţćĥ ţĥē śēĺēćţēď ŕēƥōŕţ.\"],\"H07LNp\":[\"Ďàţàśēţ śàvēď: \",[\"0\"]],\"H5aped\":[\"Ţĥĩś ƀàćķţēśţ ćōḿƥàŕēď śţōŕēď ŕēàďĩńĝś, śō ţĥēŕē ĩś ńō ŕēćōḿƥũţēď ĥēàŕţ-ŕàţē ţŕàćē ţō ďŕàŵ.\"],\"HF2Z8Y\":[\"ţēśţēď ōń śàvē\"],\"HKbCf-\":[\"Ńĩĝĥţ-ƀŷ-ńĩĝĥţ śĺēēƥ, śţàĝēś àńď śćōŕē\"],\"HTxS9y\":[\"Ƒēĺĺ ƀàćķ ţō à ćōḿƥàţĩƀĺē ƥŕōƒĩĺē\"],\"HYPLOV\":[\"Ƒĩxēď ōƒƒśēţ àďďēď ţō ƥōď ţĩḿēśţàḿƥś (ḿś, ±3600000)\"],\"H_LZii\":[\"Ĺōćàĺ ōńĺŷ ķēēƥś ţĥē ƥōď ƒŕōḿ ŕēàćĥĩńĝ ēxţēŕńàĺ śēŕvēŕś\"],\"HaVLYE\":[\"ĤŔ ēŕŕōŕ · vàĺĩďàţĩōń\"],\"Hd_IYa\":[\"Śĺēēƥ śţàĝēś: Ćōĥēń'ś ķàƥƥà àĝàĩńśţ ţĥē Ŵàţćĥ ƥēŕ ńĩĝĥţ, 1 ĩś ƒũĺĺ àĝŕēēḿēńţ.\",[\"0\"]],\"Hdrvsg\":[\"Ŕēƒēŕēńćē ćōḿƥàŕĩśōń ĩś ĺĩḿĩţēď ţō à 64 Ķĩß ŕēǫũēśţ.\"],\"HfaYRx\":[\"Ţĥĩś ţàƀ ŕēţàĩńś ţĥē ēxàćţ śćĥēďũĺĩńĝ ŕēǫũēśţ àćŕōśś ŕēĺōàďś ũńţĩĺ ĩţś ōũţćōḿē ĩś ćōńƒĩŕḿēď. Ŕēţŕŷ ďōēś ńōţ ƥŕēƥàŕē à ńēŵ ƥĺàń.\"],\"Hhh7ZU\":[\"Ńēŵ àŕćĥĩvē ŵōŕķ ĩś ćũŕŕēńţĺŷ ďēƒēŕŕēď.\"],\"Hk1yRc\":[\"Ĥĩĝĥēŕ àĝŕēēḿēńţ: \",[\"0\"],\"; ĺōŵēŕ: \",[\"1\"],\"; ũńćĥàńĝēď: \",[\"2\"]],\"Hk3J5p\":[\"Ńō Ŵàţćĥ śţàĝēś ĩń ţĥēśē ńĩĝĥţś\"],\"HkvZuh\":[\"Ĥōŵ ĥēàŕţ-ŕàţē ēśţĩḿàţēś àŕē àććēƥţēď àńď ţŕàćķēď\"],\"HlUTnv\":[\"Ƒŕōźēń śōũŕćē ŕēćōŕďś ĩń ŨŢĆ; ĩńćōḿƥàţĩƀĺē ŕēćōŕďś àŕē ĺĩśţēď ƀũţ ńōţ ƥĺōţţēď\"],\"HqdcAB\":[\"Ƥàśţē ĵŚŌŃ ŕēćōŕďś ōŕ ĆŚV ŵĩţĥ ŕēćōŕďĶēŷ, ḿēţŕĩć, vàĺũē, ũńĩţ, àńď ţĩḿēśţàḿƥ (ōŕ śţàŕţ àńď ēńď). Ũśē ōƒƒśēţ-ƀēàŕĩńĝ ĨŚŌ ţĩḿēś ōŕ Ũńĩx ḿĩĺĺĩśēćōńďś. Ţĥĩś ćōḿƥàŕĩśōń ďōēś ńōţ śàvē à ŕēƒēŕēńćē ĩḿƥōŕţ.\"],\"HrBFhl\":[\"Ćōḿƥàŕēď\"],\"HwYvvX\":[\"Ţĥē śţōƥ ŕēǫũēśţ ĩś ŕēćōŕďēď. Śàvēď ōƀśēŕvàţĩōńś àŕē ƥŕēśēŕvēď.\"],\"IABgNx\":[\"ḾǪŢŢ ƀŕĩďĝē\"],\"IH1KJg\":[\"Ćōḿḿōń-śũƥƥōŕţ àĝŕēēḿēńţ ďĩƒƒēŕēńćē: \",[\"0\"]],\"IJi09X\":[\"Ŵĥēŕē śćĥēďũĺēś àńď ńĩĝĥţś àŕē àńćĥōŕēď\"],\"ITWmk6\":[\"Ēŕŕōŕś ũśē ţĥē ḿēţŕĩć ũńĩţ. Ŕēƒēŕēńćē ƥàĩŕś àŕē ŵēĩĝĥţēď ēǫũàĺĺŷ ŵĩţĥĩń ēàćĥ ńĩĝĥţ; ńĩĝĥţś àŕē ŵēĩĝĥţēď ēǫũàĺĺŷ ĩń ţĥē ḿēàń ďĩƒƒēŕēńćē. Ƥōōĺēď śćōŕēś ŵēĩĝĥţ àĺĺ ŕēƒēŕēńćē ƥàĩŕś ēǫũàĺĺŷ.\"],\"IZ_SI-\":[\"Ƥōōĺēď śĥàŕēď ḾÀĒ — ƀàśēĺĩńē: \",[\"0\"],\"; ćōḿƥàŕĩśōń: \",[\"1\"]],\"I_qUhg\":[\"Ďēvĩàţĩōń ŵĩńďōŵ\"],\"Iec0GZ\":[\"Ŕēƒēŕēńćē ĩńţēŕvàĺś\"],\"IftrVb\":[\"Ƒŕōźēń ŕēƒēŕēńćē ōvēŕĺàŷ\"],\"Ih-_r5\":[\"Ƥŕēvĩōũś ŕēƥōŕţ ńĩĝĥţś\"],\"Ii14KX\":[\"Ēxēćũţĩōń ćōḿƥĺēţēď. Ŕēvĩēŵ ţĥē ŕēƥōŕţ ƀēƒōŕē ďŕàŵĩńĝ ćōńćĺũśĩōńś àƀōũţ àĝŕēēḿēńţ ōŕ ĩḿƥŕōvēḿēńţ.\"],\"Im5Crw\":[\"Ƥŕōţōćōĺ ĥàśĥ\"],\"J3ozEn\":[\"Ƥŕōćēśśĩńĝ ŕũń\"],\"J8ILQE\":[\"Śţàŕţ (ŨŢĆ)\"],\"JDyznv\":[\"Ŕēţàĩńēď ŵàvēƒōŕḿ ŕēƥĺàŷ\"],\"JKzmi4\":[\"Ţĥē ŕēţàĩńēď ĩńƥũţś àŕē ũńàvàĩĺàƀĺē ƒōŕ ńēŵ ēvàĺũàţĩōńś.\"],\"JQ7IOd\":[\"Ĩńƥũţś ŕēĺēàśēď; ḿēţàďàţà ŕēţàĩńēď\"],\"JQU3qt\":[\"Ĩńśƥēćţ ńũḿēŕĩć ţŕàćēś\"],\"JRpbpv\":[\"Ćōḿƥàŕĩśōń ŕēǫũēśţś àŕē ĺĩḿĩţēď ţō 64 Ķĩß àńď 2000 ŕēćōŕďś.\"],\"JaKl6i\":[\"Ĥ ĥōĺďōũţ\"],\"JfPdso\":[\"Ŕēƥōŕţ ĩďēńţĩţŷ\"],\"Jh5xi1\":[\"Ƥũḿƥ, ŵàţēŕ àńď ƒĩŕḿŵàŕē śţàţē\"],\"Jk2iNN\":[\"Ēvàĺũàţĩōń śƥĺĩţ\"],\"JoL8Rk\":[\"Ţĥē ƥĺàń ćōũĺď ńōţ ƀē ƥŕēƥàŕēď. Ćĥēćķ ţĥē śēĺēćţēď ƥŕōƒĩĺē, ŵĩńďōŵ àńď ĩńśţàĺĺēď ǫũàĺĩƒĩćàţĩōń.\"],\"JqNzWV\":[\"Ƒŕōźē à ďàţàśēţ ōƒ \",[\"0\"],\" ńĩĝĥţś\"],\"Jq_0cU\":[\"Śĩďē ńàḿē\"],\"Jsh4sU\":[\"Ƥŕēďĩćţēď ḿĩńũţēś\"],\"JtkCxN\":[\"Śţàĝē ďēţàĩĺś àŕē ũńàvàĩĺàƀĺē ōŕ ĩńćōḿƥàţĩƀĺē.\"],\"JvflkO\":[\"Ōĺďēŕ ńĩĝĥţś\"],\"JyC-qp\":[\"Śōũŕćē ćĥàńńēĺ\"],\"JzH2wX\":[\"ĤŔV\"],\"K2uv7O\":[\"Śēŕvĩćē ĥēàĺţĥ àńď ţĥē ĺĩvē śēńśōŕ ƥĩƥēĺĩńē\"],\"K6QhkO\":[\"Ńō ŵōŕķēŕ ḿēḿōŕŷ ōƀśēŕvàţĩōń ĩś àvàĩĺàƀĺē.\"],\"KB9NWO\":[\"Śćĥēďũĺĩńĝ ŕēćōvēŕŷ ĩś ũńàvàĩĺàƀĺē ōŕ ĩńvàĺĩď. Ŕēvĩēŵ ēxĩśţĩńĝ ŕũńś ƀēƒōŕē ćĺēàŕĩńĝ ţĥĩś ţàƀ’ś śēśśĩōń ďàţà; àń ēàŕĺĩēŕ ŕēǫũēśţ ḿàŷ ĥàvē ƀēēń śàvēď ōń ţĥē ƥōď.\"],\"KFB8Et\":[[\"w\"],\" ď\"],\"KFwvG_\":[\"Ćōvēŕàĝē ēśţĩḿàţēś ũśē ńōḿĩńàĺ ŕēćōŕďĩńĝ ćàďēńćē; ţĥēŷ ďō ńōţ ƥŕōvē ćōńţĩńũōũś śĩĝńàĺ śũƥƥōŕţ.\"],\"KOq34a\":[\"ŵĥēń\"],\"KUj43p\":[\"Ćōḿḿōń ƥàĩŕēď ḿĩńũţēś: \",[\"0\"]],\"KUjOb9\":[\"ŕũńńĩńĝ\"],\"KWfkdX\":[\"Ćàńďĩďàţē ŕēvĩśĩōń \",[\"0\"],\": \",[\"1\"]],\"K_F6pa\":[\"Śàvĩńĝ…\"],\"Ksal0J\":[\"Ńēxţ ńũḿēŕĩć ƥàĝē\"],\"Kvt2s_\":[\"Ďēĺēţē ĩḿƥōŕţ\"],\"Kwp5NK\":[\"Ďēĺēţē ţĥēśē śōũŕćē ḿēàśũŕēḿēńţś ƥēŕḿàńēńţĺŷ? Ŕēţàĩńēď ďàţàśēţ ćōƥĩēś ḿũśţ ƀē ŕēĺēàśēď śēƥàŕàţēĺŷ.\"],\"KwxEI4\":[\"Ćàńďĩďàţē ćōvēŕàĝē ƒēĺĺ ƀēĺōŵ ţĥē ƥĺàńńēď ĺĩḿĩţś.\"],\"L1LSAe\":[\"ḾÀĒ\"],\"L1baKz\":[\"Àĝŕēēḿēńţ\"],\"L445Bk\":[\"Ŵàĩţĩńĝ ƒōŕ ţĥē ōƀśēŕvàţĩōń ŵĩńďōŵ.\"],\"L8V7Dz\":[\"Ďàĩĺŷ ƥŕĩḿē\"],\"LDHXy9\":[\"Ďēvĩàţĩōń ƒŕōḿ Àƥƥĺē Ŵàţćĥ\"],\"LF9GJc\":[\"Ŕēţàĩńĩńĝ ţĥē àŕćĥĩvēś…\"],\"LLEze7\":[\"Ńēŵēśţ ńĩĝĥţś\"],\"LOv901\":[\"Ĝŕōũƥś ũśē ńàţĩvē ŕēƒēŕēńćē ţĩḿēśţàḿƥś àńď ŕēćōŕď ţŷƥēś, ĩńďēƥēńďēńţĺŷ ōƒ ćàńďĩďàţē ōũţƥũţ. Ĥàĺƒ-ŵĩńďōŵ ĝŕōũƥś ēxćĺũďē ĩńţēŕvàĺś ćŕōśśĩńĝ ţĥē ḿĩďƥōĩńţ. Ĝŕōũƥś ōvēŕĺàƥ àńď àŕē ńōţ ĩńďēƥēńďēńţ ēxƥēŕĩḿēńţś. Ţĥēśē àŕē ńōţ ḿōţĩōń ōŕ àŕţĩƒàćţ śũƀĝŕōũƥś.\"],\"LhMjLm\":[\"Ţĩḿē\"],\"LiR3l8\":[\"ŔĒḾ\"],\"LnsCL8\":[\"Ĩńćĺũďē ţĥĩś śēśśĩōń\"],\"Lt78-z\":[\"Ńōţ ŕēǫũēśţēď\"],\"LtUd0r\":[\"Ţĥēśē àŕē ďēśćŕĩƥţĩvē àĝŕēēḿēńţ ŕēśũĺţś, ńōţ ćĺĩńĩćàĺ àććũŕàćŷ, ĩńďēƥēńďēńţ ĥōĺďōũţ ēvĩďēńćē, ōŕ àũţĥōŕĩźàţĩōń ţō àćţĩvàţē à ƥŕōƒĩĺē.\"],\"M0faGQ\":[[\"0\"],\" · \",[\"1\"],\" · ŕēvĩśĩōń \",[\"2\"]],\"M4ek4i\":[\"Ńō ĩńśƥēćţēď àŕćĥĩvēś ōvēŕĺàƥ ţĥĩś ńĩĝĥţ. Ĩńśƥēćţ àŕćĥĩvēś ƒĩŕśţ.\"],\"M5TcIX\":[\"Ŕēƥĺàŷ ŕēţàĩńēď ŵàvēƒōŕḿś\"],\"M5zFwb\":[\"Ḿàńũàĺ àƥƥĺĩćàţĩōń ĩś ũńvàĺĩďàţēď. Ĩţ ćàń ćĥàńĝē ĥēàŕţ ŕàţē, ƀŕēàţĥĩńĝ ŕàţē, ţĥē ĤŔV ĩńďēx, àńď ďēƥēńďēńţ śĺēēƥ śţàĝēś.\"],\"MEC08x\":[\"Ũśē ōƒƒśēţ-ƀēàŕĩńĝ ĨŚŌ ţĩḿēśţàḿƥś ōŕ Ũńĩx ḿĩĺĺĩśēćōńďś. Ēàćĥ ŕēćōŕď ńēēďś ŕēćōŕďĶēŷ, ḿēţŕĩć, vàĺũē, ũńĩţ, àńď ţĩḿēśţàḿƥ (ōŕ śţàŕţ àńď ēńď). ĵŚŌŃ ũśēś àń àŕŕàŷ; ĆŚV ũśēś ţĥēśē ƒĩēĺď ńàḿēś àś ĥēàďēŕś. Ĩḿƥōŕţś àŕē ĺĩḿĩţēď ţō 2 Ḿĩß àńď 2000 ŕēćōŕďś.\"],\"MK62TH\":[\"Ēńď (ŨŢĆ)\"],\"MOqNC_\":[\"Ƒŕōźēń ńĩĝĥţ\"],\"MRXPwy\":[\"ŕēƒēŕēńćē\"],\"MTn9vw\":[\"ķàƥƥà\"],\"MW8x7A\":[\"Ţĥĩś ĩś śàḿƥĺēď śũḿḿēď ŔŚŚ ƒōŕ ţĥē ŕēƥĺàŷ ćōōŕďĩńàţōŕ àńď ĩţś ŵōŕķēŕś. Śĥàŕēď ƥàĝēś ḿàŷ ƀē ćōũńţēď ḿōŕē ţĥàń ōńćē; śĥōŕţ ƥēàķś ƀēţŵēēń ōƀśēŕvàţĩōńś ḿàŷ ƀē ḿĩśśēď.\"],\"Mb-EVa\":[\"Ţĥĩś ŕēƥōŕţ ŵàś ŕēĺēàśēď. Ĩţś àũďĩţ ĥàśĥ ŕēḿàĩńś, ƀũţ ďēţàĩĺēď ŕēśũĺţś àŕē ũńàvàĩĺàƀĺē.\"],\"MeoKQ0\":[\"Ŕũĺēś ţĥàţ ćĥàńĝē ţĥē ƀēď ƒōŕ ŷōũ\"],\"Mf9gx7\":[\"Ŕēƒēŕēńćē ĩḿƥōŕţ ƒàĩĺēď.\"],\"MibmVu\":[\"ĥōĺďōũţ\"],\"MkUjVh\":[\"Ũśē ţĥē śàḿē śĺēēƥēŕ ĩďēńţĩţŷ àś ţĥē ŕēƒēŕēńćē ŕēćōŕďś ŷōũ ĩńţēńď ţō ćōḿƥàŕē.\"],\"MmNR0n\":[\"Ƥũƀĺĩśĥēś śţàţũś àńď ƀĩōḿēţŕĩćś, àććēƥţś ćōḿḿàńďś\"],\"Mu1HF2\":[\"Ŕēḿōvē ŕēƒēŕēńćē \",[\"0\"]],\"Mu7RUc\":[\"Ĩńśƥēćţ ďàţàśēţ\"],\"MuDrlT\":[\"ńō ŕēƒēŕēńćē ďēvĩćē · ēxćĺũďēď ƒŕōḿ ēŕŕōŕ\"],\"Mv-Tbq\":[\"àććēƥţēď ēśţĩḿàţēś ĩń ţĥē ţŕàćķēŕ\"],\"NGoTyQ\":[\"Śţàĝē ŕũĺēś ōń ōŕĩĝĩńàĺ ŕēàďĩńĝś\"],\"NHlrjI\":[\"Ƥōĩńţ\"],\"NJYR0F\":[\"Ďàţà ƒōŕḿàţ\"],\"NMh7kF\":[\"Śţōŕēď-ŕēàďĩńĝ ćōḿƥàŕĩśōń àvàĩĺàƀĺē\"],\"NRBL74\":[\"ēxƥĩŕēď\"],\"NVswTS\":[\"Ķēēƥ ţĥē ĺàśţ\"],\"Na6zmY\":[\"Ćōḿƥàţĩƀĩĺĩţŷ\"],\"NawEr2\":[\"Àƒţēŕ\"],\"NcAXpM\":[\"Ďàĩĺŷ ŕēƀōōţ\"],\"NdXF7z\":[\"Ŵōŕķ ŵàś ďēƒēŕŕēď; ŷōũŕ śēĺēćţĩōń àńď ŕēţŕŷ ķēŷ àŕē ƥŕēśēŕvēď.\"],\"NhvfPs\":[\"Ńō ḿàţēŕĩàĺ ĩḿƥŕōvēḿēńţ ũńďēŕ ţĥē ēvàĺũàţĩōń ƥōĺĩćŷ\"],\"Nik1q1\":[\"Ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx (ḿś)\"],\"Nln0z9\":[\"Śćĥēďũĺē ŕēvĩēŵēď ōƀśēŕvàţĩōń\"],\"NpbAio\":[\"Ŕēśţàŕţ àŕćĥĩvē śćàń\"],\"NxAavP\":[\"Ćōńƒĩŕḿ ĩḿƥōŕţ ďēĺēţĩōń\"],\"NxjPUC\":[\"Ćàńďĩďàţē ĥàśĥ: \",[\"0\"]],\"OHHPcb\":[\"Ţĥē àŕćĥĩvē ďĩŕēćţōŕŷ ĩś ũńàvàĩĺàƀĺē.\"],\"OLWhkH\":[\"Ĩńĝēśţĩōń śàḿƥĺēś: \",[\"0\"],\" ōƒ \",[\"1\"],\" àďḿĩśśĩōń ćĥēćķś\"],\"OVSP4J\":[\"Ŕēţàĩń à ćōƥŷ ōƒ ţĥē śēĺēćţēď ńĩĝĥţś àńď ŕēƒēŕēńćē ŕēvĩśĩōńś. Ƒũţũŕē ēďĩţś ōŕ śōũŕćē ďēĺēţĩōń ďō ńōţ àĺţēŕ ţĥĩś ďàţàśēţ.\"],\"OahhRr\":[\"śĥōŵ\"],\"OqNNR4\":[\"Śĥàŕēď ḾÀĒ ďĩƒƒēŕēńćē\"],\"Ox14On\":[\"Ńĩĝĥţĺŷ àŕćĥĩvē ƥũśĥ\"],\"OzklQP\":[\"Ĥēàŕţ ŕàţē (ƀƥḿ)\"],\"PDDE5l\":[\"Ŕēƒēŕēńćē ćĺōćķ ōƒƒśēţ: \",[\"0\"],\" śēćōńďś; ƥōĩńţ ţōĺēŕàńćē: \",[\"1\"],\" śēćōńďś.\"],\"PEdBDO\":[\"Śĺēēƥēŕ ĩďēńţĩţŷ: \",[\"subjectId\"]],\"PGC40a\":[\"Ƥŕēvĩōũś ţŕàćē ƥàĝē\"],\"PHHETW\":[\"Ŕēƒēŕēńćē ĩńţēŕvàĺś ēxćĺũďēď àţ ŵĩńďōŵ ḿĩďƥōĩńţś: \",[\"0\"]],\"PKKYKp\":[\"Ŕēśţōŕē ƥŕēvĩōũś ƥŕōƒĩĺē\"],\"PbhekP\":[\"ńōţ ţēśţēď\"],\"PbpWGe\":[\"Ƥŕōƒĩĺē ŕēśōĺũţĩōń ƒàĩĺēď.\"],\"PdTcHl\":[\"Ńō ćōvēŕàĝē ŕēďũćţĩōń ďēţēćţēď\"],\"PvFcah\":[\"Ĩńƥũţś ŕēţàĩńēď\"],\"PxBet3\":[\"Ēvàĺũàţĩōń ďàţàśēţ\"],\"PygeGm\":[\"Ēńĝĩńē ḿàńĩƒēśţ ĥàśĥ\"],\"PzWjOZ\":[\"Ĩńśũƒƒĩćĩēńţ ƥàĩŕēď ńĩĝĥţś\"],\"Q0FsEw\":[\"Ćĥōōśē ŵĥō ńōŕḿàĺĺŷ śĺēēƥś ĥēŕē\"],\"Q6Fvyb\":[\"Ĩḿƥōŕţ ƥŕēvĩēŵ\"],\"Q73cLK\":[\"Śēĺēćţ ŕēćōŕďēď ŵàvēƒōŕḿś\"],\"QCJQvN\":[\"ßēƒōŕē ćōńƒĩĝũŕàţĩōń ĥàśĥ\"],\"QG2GiO\":[\"ǫũēũēď\"],\"QGPgrh\":[\"Ōŕĩĝĩńàĺ śţōŕēď ŕēàďĩńĝś ŵēŕē ćōḿƥàŕēď; ńũḿēŕĩćàĺ ƥàŕàḿēţēŕ ćĥàńĝēś ŵēŕē ńōţ ŕēƥĺàŷēď.\"],\"QIgpE4\":[\"ĤĒÀŔŢ ŔÀŢĒ\"],\"QIqJcS\":[\"Śōḿē ŕēƒēŕēńćē ŕēćōŕďś ĥàvē ĩńćōḿƥàţĩƀĺē ũńĩţś ōŕ ḿēţŕĩć ďēƒĩńĩţĩōńś àńď ŵēŕē ēxćĺũďēď.\"],\"QTD6X8\":[\"ĵōƀ ţĩḿē ţĥŕōũĝĥ ƥũƀĺĩćàţĩōń ƥŕēƥàŕàţĩōń: \",[\"0\"],\" śēćōńďś\"],\"QVD7Dt\":[\"Ńĩĝĥţ \",[\"0\"]],\"Q_YNRG\":[\"Ōvēŕŵŕĩţēś ţĥē śàvēď ƥŕōƒĩĺē àńď ŕēǫũēśţś ĩţ; ţĥē ćũŕŕēńţ ōńē ƀēćōḿēś ƥŕēvĩōũś.\"],\"QkqTjY\":[\"Ōƀśēŕvàţĩōń ŕēƥōŕţ\"],\"QrhaVg\":[\"Ũńĩţś\"],\"QsLiI0\":[\"Ēďĩţ à ńēŵ ćàńďĩďàţē ƒŕōḿ ţĥĩś ŕēvĩśĩōń\"],\"Qy1CFj\":[\"Àćţĩvē ƥŕōƒĩĺē ĥàśĥ\"],\"R-9uNr\":[\"Ćàńďĩďàţē ĺōŵ-śĩĝńàĺ ţĥŕēśĥōĺď\"],\"R-sAH4\":[\"Ōńĺŷ ţĥē ćũŕŕēńţ ƥàĝē ĩś ƥĺōţţēď. Ďōţś ŕēƥŕēśēńţ ĩńďĩvĩďũàĺ ŕēàďĩńĝś; ĝàƥś àńď ḿĩśśĩńĝ vàĺũēś àŕē ńōţ ĩńţēŕƥōĺàţēď. Ōŕĩĝĩńàĺ śţōŕēď ŕēàďĩńĝś ŕēḿàĩń ũńćĥàńĝēď.\"],\"R1u0BV\":[\"Ŕēƒēŕēńćē ďēƒĩńĩţĩōńś àŕē ĩńćōḿƥàţĩƀĺē.\"],\"R4QNtj\":[\"Ćōvēŕàĝē ōƒ ƥĺàńńēď ōƀśēŕvàţĩōń ĩńţēŕvàĺś\"],\"RC3Rei\":[\"Ƥàŕţĩţĩōń ţĩḿēźōńē: \",[\"0\"]],\"RIVQIl\":[\"Śćĥēḿà ćĥēćķś ƥàśśēď. Àĝŕēēḿēńţ ŵĩţĥ ŕēƒēŕēńćē ḿēàśũŕēḿēńţś ĥàś ńōţ ƀēēń ēvàĺũàţēď.\"],\"RMSkhT\":[\"Ţĥēśē ēďĩţś ƀēĺōńĝ ōńĺŷ ţō ţĥē ćàńďĩďàţē. Ŕũĺē ōŕďēŕ ḿàţţēŕś: ţĥē ƒĩŕśţ ḿàţćĥĩńĝ ŕũĺē ŵĩńś.\"],\"RWhQ_V\":[\"Ćōḿƥĺēţē ţĥē ŕēǫũĩŕēď ƒĩēĺďś ŵĩţĥĩń ţĥēĩŕ śţàţēď ƀōũńďś.\"],\"RZ1K0m\":[\"Vàĺũē / ũńĩţ\"],\"Raeq5C\":[\"ßŕēàţĥĩńĝ ēŕŕōŕ\"],\"Rb1qTE\":[\"Ōƀśēŕvĩńĝ\"],\"RbVCQP\":[\"Ńĩĝĥţ ćōvēŕēď\"],\"RiQMUh\":[\"Ŕũńńĩńĝ\"],\"S1gPr0\":[\"Ĩ ĩńţēńď ţō ŕēśţōŕē śŷśţēḿ ďēƒàũĺţś ŵĩţĥōũţ vàĺĩďàţĩōń ēvĩďēńćē.\"],\"S2Jom8\":[\"Àƒţēŕ ćōńƒĩĝũŕàţĩōń ĥàśĥ\"],\"S8EfUf\":[\"Ōŕĩĝĩńàĺ ŕēƥĺàŷ ţĩḿēśţàḿƥś, ŵĩţĥōũţ ŕēƒēŕēńćē ćĺōćķ àďĴũśţḿēńţ\"],\"SBZ1sk\":[\"ßēď àńď ŵàţēŕ ţēḿƥēŕàţũŕē ĥĩśţōŕŷ\"],\"SCGU2U\":[\"Ńēŵēśţ Ĵōƀś\"],\"SCc4qv\":[\"Ƒŕōźēń ĩńƥũţ ďēţàĩĺś\"],\"SGRCD8\":[\"Ƥōōĺēď śţàĝē ćōńƒũśĩōń\"],\"SMGWlJ\":[\"Śĥōŵ àĺĺ \",[\"0\"]],\"SRE0Dv\":[\"Ƥŕōćēśśōŕ àćķńōŵĺēďĝēď ĝēńēŕàţĩōń \",[\"0\"]],\"SV_0fn\":[\"Ţĥē ćũŕŕēńţ ƥōď àĺĝōŕĩţĥḿ ŕēƥōŕţś à ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx, ńōţ ćĺĩńĩćàĺ ŔḾŚŚĎ. Ōĺďēŕ ŕēàďĩńĝś ḿàŷ ĥàvē àń ũńķńōŵń ďēƒĩńĩţĩōń.\"],\"ScQkbv\":[\"Ŵĥōĺē-ńĩĝĥţ ƥàŕţĩţĩōńś àśśĩĝńēď; ƀĩōḿēţŕĩć ƥēŕƒōŕḿàńćē ĩś ńōţ ŷēţ vàĺĩďàţēď.\"],\"Sfd0oa\":[\"Ƥũƀĺĩśĥēś ćĺĩḿàţē, śŵĩţćĥ àńď śēńśōŕ ēńţĩţĩēś\"],\"SgRypX\":[\"Ńō ŕēƒēŕēńćē ĩḿƥōŕţś ƒōŕ ţĥĩś śĩďē.\"],\"SnDUEP\":[\"Ƒŕōźēń ďàţàśēţ\"],\"T0Izom\":[\"Ƒŕōźēń àńď ǫũēũēď. Ţĥē ƀàćķţēśţ ŕēƥĺàŷś ēvēŕŷ śƥĺĩţ; ŕēśũĺţś àƥƥēàŕ àś ēàćĥ ƒĩńĩśĥēś.\"],\"T4wPfY\":[\"Ēǫũàĺ-ńĩĝĥţ ḿēàń ḾÀĒ ďĩƒƒēŕēńćē: \",[\"0\"]],\"TLDDXM\":[\"Ńũḿēŕĩć ţŕàćē ńĩĝĥţ\"],\"TQwzCx\":[\"Ķēēƥ ŕēţàĩńēď ĩńƥũţś\"],\"T_87By\":[\"Ƥàŕàḿēţēŕ\"],\"Th6Noy\":[\"Ŕēƒēŕēńćē-ďēƒĩńēď śũƀĝŕōũƥ ćōḿƥàŕĩśōńś\"],\"TpHstq\":[\"ḿś\"],\"Tru_Os\":[\"Ńēxţ ţŕàćē ƥàĝē\"],\"TwpMH6\":[\"Ŕēḿōvē śţàĝē ōvēŕŕĩďē\"],\"TyB_3E\":[\"ßĩōḿēţŕĩć ćàĺĩƀŕàţĩōń\"],\"U5N8X7\":[\"śàvēď\"],\"U8n1HU\":[\"ßŔĒÀŢĤĨŃĜ\"],\"UFlEgN\":[\"Ńō ōvēŕŕĩďē ĩńţēńţ ćĥàńĝēś.\"],\"UFxPjw\":[\"Ĩḿƥŕōvēď àĝŕēēḿēńţ ũńďēŕ ţĥē ǫũàĺĩƒĩēď ēvàĺũàţĩōń ƥōĺĩćŷ\"],\"UL2mer\":[\"Ŵĥĩćĥ ƒĩŕḿŵàŕē ƥĩƥēĺĩńē ţĥē ƥōď ŕēàďś\"],\"UL6Xbb\":[\"Ńũḿēŕĩćàĺ ēŕŕōŕś ƀŷ ńĩĝĥţ\"],\"UMJp3J\":[\"Ēvàĺũàţēď ḿĩńũţēś: \",[\"0\"]],\"UOHqa2\":[\"Ḿĩśśĩńĝ ēvĩďēńćē: \",[\"reason\"]],\"UOnFf4\":[\"ţĥē ḿēďĩàń\"],\"UWna3M\":[\"Ĩńśƥēćţ ōƀśēŕvàţĩōń\"],\"UZuUP4\":[\"Ńō ŕēƒēŕēńćē\"],\"UeGR-V\":[\"Ĩńśƥēćţ śēśśĩōń \",[\"0\"]],\"Ufin3V\":[\"Ĺàŕĝēśţ ōƀśēŕvēď ĩńĝēśţĩōń àĝē: \",[\"0\"],\" śēćōńďś\"],\"UhCJxj\":[\"Ƥŕōćēśśōŕ\"],\"UlKSMd\":[\"Ĺēƒţ\"],\"UqSpzV\":[\"Ḿĩńĩḿũḿ ƥàĩŕēď ńĩĝĥţś (3–60)\"],\"Uu5a6k\":[\"Ţŕàćķĩńĝ ţōĺēŕàńćē (ƀƥḿ)\"],\"UyIxiT\":[\"Ńōţĥĩńĝ ćĥàńĝēś ũńţĩĺ ŷōũ ḿōvē à ćōńţŕōĺ ōŕ ŕēśţōŕē.\"],\"UyxS7G\":[\"Ƥōď ḿĩńũś Ŵàţćĥ ƥēŕ ńĩĝĥţ: ḾÀĒ àńď ƀĩàś ƥēŕ ḿēţŕĩć, àńď śţàĝē ķàƥƥà\"],\"V7oslX\":[\"Ƥŕōćēśśĩńĝ ƒàĩĺēď.\"],\"VFXF98\":[\"Ḿēàśũŕēď śēńśōŕ ćàĺĩƀŕàţĩōń ƒōŕ ţĥĩś śĩďē:\"],\"VIPxtx\":[\"Ďàţàśēţ śĺēēƥēŕ ĩďēńţĩƒĩēŕ\"],\"VJBi8Y\":[\"Ŕēśţōŕēď śŷśţēḿ ďēƒàũĺţś àńď ŕēǫũēśţēď ţĥēḿ\"],\"VKjxHP\":[\"Ŕēćōḿƥũţēď ńũḿēŕĩć ţŕàćēś\"],\"VMO9HG\":[\"Ēxàćţ ĩḿƥōŕţ ĩďēńţĩţŷ\"],\"VN4iqH\":[\"Śàvēď śàḿƥĺē ţĩḿēś: \",[\"0\"],\". Ƥĺàńńēď ōƀśēŕvàţĩōń ĩńţēŕvàĺś: \",[\"1\"],\".\"],\"VQewk6\":[\"Śḿōōţĥĩńĝ àƥƥĺĩēď àƒţēŕ ţĥē ŕũĺēś\"],\"VRFZcm\":[\"Ţēḿƥēŕàţũŕē ũńĩţ\"],\"VU3Nrn\":[\"Ḿĩśśĩńĝ\"],\"VUtcHF\":[\"Ćōḿƥàŕē ŵĩţĥ ŕēƒēŕēńćē ḿēàśũŕēḿēńţś\"],\"VVWxFk\":[\"Ƒŕōźēń ćōƥŷ ōƒ \",[\"0\"],\" ńĩĝĥţś. Ĺàţēŕ ēďĩţś ōŕ ďēĺēţĩōńś ďō ńōţ ţōũćĥ ĩţ. Ŵĥōĺē ńĩĝĥţś àŕē śƥĺĩţ ƀēƒōŕē śćōŕĩńĝ; à śƥĺĩţ ĩś ńōţ ēvĩďēńćē ōń ĩţś ōŵń.\"],\"VcTMlI\":[\"Ēxƥĺōŕàţōŕŷ 95% ĩńţēŕvàĺ: \",[\"0\"],\" ţō \",[\"1\"]],\"VmTUh8\":[\"Ţōţàĺ Ƥŷţĥōń ĆƤŨ ţĩḿē (śēćōńďś)\"],\"VnAP4G\":[\"Ćũŕŕēńţ ƀàśēĺĩńē\"],\"VqKzd6\":[\"Ńō ŕēţàĩńēď ḿēàśũŕēḿēńţś.\"],\"Vspsiu\":[\"Àććēƥţēď: \",[\"0\"],\"; ŕēĴēćţēď: \",[\"1\"],\"; ďũƥĺĩćàţēś: \",[\"2\"],\"; ũńśćōŕàƀĺē: \",[\"3\"],\"; ćōńƒĺĩćţś: \",[\"4\"]],\"W-i7wJ\":[\"Ńō ēśţĩḿàƀĺē vàŕĩàţĩōń\"],\"W1BnRm\":[\"Vĩţàĺś ŵĩţĥ ũńķńōŵń ōŕĩĝĩńàĺ ƥŕōćēśśĩńĝ ƥŕōvēńàńćē: \",[\"0\"]],\"WCKDwf\":[\"Ƒŕōźēń ćōƥŷ ōƒ \",[\"0\"],\" ńĩĝĥţś àńď \",[\"1\"],\" ŕēƒēŕēńćē. Ĺàţēŕ ēďĩţś ōŕ ďēĺēţĩōńś ďō ńōţ ţōũćĥ ĩţ. Ŵĥōĺē ńĩĝĥţś àŕē śƥĺĩţ ƀēƒōŕē śćōŕĩńĝ; à śƥĺĩţ ĩś ńōţ ēvĩďēńćē ōń ĩţś ōŵń.\"],\"WQJ43e\":[\"Ŕēţŕŷ ŕēƥōŕţ\"],\"W_PbSn\":[\"Ćàńďĩďàţē śƥĩķē ţĥŕēśĥōĺď\"],\"WcWtE4\":[\"ďōńē · \",[\"0\"]],\"WjCZjy\":[\"Ĥōĺďōũţ àććēśśēś ŕēćōŕďēď ƒōŕ ţĥĩś ēxƥēŕĩḿēńţ: \",[\"0\"]],\"Wk_WYb\":[\"Ţĥē śţōŕàĝē ǫũōţà ŵàś ŕēàćĥēď.\"],\"Wl_oB_\":[\"ßŕēàţĥĩńĝ-ŕàţē ĩńţēŕvàĺ ĺĩḿĩţś\"],\"WqUEbt\":[\"Ĩńśƥēćţ ńēxţ àŕćĥĩvē\"],\"WrG-oR\":[\"Ēxƥĺĩćĩţ śţàĝē ōvēŕŕĩďēś\"],\"Wucp9l\":[\"↑ ↓ ţō ḿōvē · Ēńţēŕ ţō ōƥēń · Ēść ţō ćĺōśē\"],\"Wz9mHY\":[\"Ćōḿḿōń śũƥƥōŕţ ĩś ţĥē ĩńţēŕśēćţĩōń ōƒ àĺĺ ēvàĺũàţēď ćōńƒĩĝũŕàţĩōńś àńď ēĺĩĝĩƀĺē ŕēƒēŕēńćē ĩńţēŕvàĺś. Ōŵń-śũƥƥōŕţ śćōŕēś ũśē ēàćĥ ćōńƒĩĝũŕàţĩōń’ś àvàĩĺàƀĺē ĩńţēŕvàĺś àńď ḿàŷ ďēśćŕĩƀē ďĩƒƒēŕēńţ ƥōŕţĩōńś ōƒ ţĥē ńĩĝĥţ.\"],\"X5G5TL\":[\"Àń àďďĩţĩōńàĺ ŕēƥōŕţ ĩśśũē ńēēďś ŕēvĩēŵ.\"],\"X8JREh\":[\"Ĩ ĩńţēńď ţō ēxƥōśē ţĥĩś ĥōĺďōũţ. Ŕēƥēàţēď ũśē, ĩńćĺũďĩńĝ ōvēŕĺàƥƥĩńĝ ďàţàśēţś, ŵēàķēńś ĥēĺď-ōũţ ēvĩďēńćē.\"],\"X9Fn3w\":[\"Ŕēƥĺàŷ śĺēēƥ śţàĝēś\"],\"XDDjJH\":[\"Śēśśĩōńś: \",[\"0\"]],\"XExZoo\":[\"Śàḿƥĺēď ŵōŕķēŕ ḿēḿōŕŷ ƥēàķ: \",[\"0\"],\" Ḿĩß. Śĥōŕţ ƥēàķś ƀēţŵēēń śàḿƥĺēś ḿàŷ ƀē ḿĩśśēď.\"],\"XHuCnL\":[\"ßàśēĺĩńē śĥàŕēď ḾÀĒ\"],\"XJOV1Y\":[\"Àćţĩvĩţŷ\"],\"XMmhvP\":[\"ĤŔV ďēƒĩńĩţĩōńś ďĩƒƒēŕ ōŕ àŕē ƥàŕţĺŷ ũńķńōŵń. À ćōḿƀĩńēď ĤŔV àvēŕàĝē ĩś ũńàvàĩĺàƀĺē.\"],\"XT73o-\":[\"Ńēxţ śēśśĩōń ŵàĩţś ƒōŕ à ķńōŵń ēḿƥţŷ-ƀēď ƀōũńďàŕŷ. Ĩḿḿēďĩàţē àƥƥĺĩćàţĩōń śţĩĺĺ ŵàĩţś ƒōŕ à śàƒē ƥŕōćēśśĩńĝ ƀōũńďàŕŷ.\"],\"XXnr5H\":[\"Ŕēśţàŕţ ţĥē ƥōď ōńćē à ďàŷ\"],\"X_d3vj\":[\"Ţàƥ ĝēśţũŕēś\"],\"XbkqDp\":[\"Ćōŕŕēćţĩńĝ ĩḿƥōŕţ \",[\"0\"],\". Śũƥƥĺŷ ţĥē ćōḿƥĺēţē ŕēƥĺàćēḿēńţ ēxƥōŕţ; ţĥē ōŕĩĝĩńàĺ ŕēvĩśĩōń àńď ƒŕōźēń ďàţàśēţś ŕēḿàĩń ũńćĥàńĝēď.\"],\"Xgkhyj\":[\"Ƒĺàĝś\"],\"Xl0aFS\":[\"Śĺēēƥēŕ ĩďēńţĩţŷ\"],\"XvImpZ\":[\"ƀŕ/ḿĩń\"],\"XyrrCD\":[\"Ţĥĩś ćĥàŕţ śĥōŵś ōńĺŷ ţĥē ćũŕŕēńţ ƥàĝē ōƒ ŕēƥĺàŷ ĩńţēŕvàĺś. Ĝàƥś àŕē ĺēƒţ ēḿƥţŷ; ńō śţàĝēś àŕē ĩńƒēŕŕēď ƀēţŵēēń ĩńţēŕvàĺś.\"],\"Xzy9KC\":[\"Ćàńďĩďàţē ćĥàńĝēś\"],\"Y3vbII\":[\"Ŕēśōũŕćē ōƀśēŕvàţĩōńś àŕē ƥàŕţĩàĺ. Ŵōŕķēŕ ĥēàĺţĥ ŕēƒĺēćţś ţĥē ĺàśţ vàĺĩď ŕēƥĺŷ, ńōţ ţĥē ćōḿƥĺēţē àţţēḿƥţ.\"],\"Y5pne1\":[\"Ţĩḿēś śĥōŵń ĩń \",[\"0\"]],\"YAAuC3\":[\"Ńō śţōŕēď vĩţàĺś ƒōŕ ćōḿƥàŕĩśōń\"],\"YAN6qJ\":[\"Ńō ńĩĝĥţś ĩń ţĥĩś ŕēƥōŕţ.\"],\"YFgzea\":[\"Ŕēƒēŕēńćē ćōḿƥàŕĩśōń śńàƥśĥōţ\"],\"YafUsS\":[\"Śţàĝē ŕēƥĺàŷ àvàĩĺàƀĺē\"],\"Ye-mWr\":[\"ßŕōķēŕ ćōńńēćţĩōń\"],\"YeXYTR\":[\"ĵōƀ ĥēàĺţĥ ōƀśēŕvàţĩōńś\"],\"YgOSaJ\":[\"Ƥŕēƥàŕēď ŵĩńďōŵ (ŨŢĆ)\"],\"Yhk2w6\":[\"Ţĥēśē àŕē ōŕĩĝĩńàĺ ŕēćōŕďēď ŕēàďĩńĝś. Ćĥàŕţś śēƥàŕàţē ķńōŵń ƥŕōćēśśĩńĝ ŕũńś àńď ĤŔV ďēƒĩńĩţĩōńś. Ĺēĝàćŷ ŕēàďĩńĝś ŵĩţĥ ũńķńōŵń ƥŕōvēńàńćē ŕēḿàĩń ũńvēŕĩƒĩēď.\"],\"YkeGcg\":[\"Ńō ńĩĝĥţ ĩń ţĥē ĺàśţ \",[\"days\"],\" ďàŷś ƥàĩŕś ŵĩţĥ Ŵàţćĥ ďàţà. Ƥĩćķ à ĺōńĝēŕ ŵĩńďōŵ.\"],\"YoyYks\":[\"ßŕēàţĥĩńĝ ḾÀĒ / ƀĩàś (\",[\"0\"],\")\"],\"YtMAd9\":[\"ćōńƒĩĝ ĩď\"],\"YtwU3b\":[\"Àũţō-ōƒƒ\"],\"Yx0Ud8\":[\"Ŕēǫũēśţēď\"],\"Yy9-qs\":[\"Ķēēƥ ĩḿƥōŕţ\"],\"Z325Gl\":[\"Ŕēĝŕēśśĩōń ũńďēŕ ţĥē ēvàĺũàţĩōń ƥōĺĩćŷ\"],\"Z6_avU\":[\"Ńōţ ŕēƥōŕţēď\"],\"Z8Z57S\":[\"Ţĥē ŕēĴēćţēď ŕēǫũēśţ ćōũĺď ńōţ ƀē ćĺēàŕēď ƒŕōḿ ƀŕōŵśēŕ ŕēćōvēŕŷ. Ķēēƥ ţĥĩś ţàƀ ōƥēń àńď ŕēţŕŷ.\"],\"ZB-yZg\":[\"Śēàŕćĥ ƥàĝēś àńď śēţţĩńĝś\"],\"ZCID7r\":[\"Ŕàĩśē ōŕ ĺōŵēŕ ţĥē àďĴũśţàƀĺē ƀàśē\"],\"ZEVjLJ\":[\"Ŕēćōḿƥũţēď \",[\"0\"],\"; ēxàćţ ŕēàďĩńĝś ƒōĺĺōŵ ĩń ţĥē ţàƀĺē.\"],\"ZGxvoR\":[\"Ŕēśōĺvēď ćōńƒĩĝũŕàţĩōń ĥàśĥ\"],\"ZIHKzK\":[\"Ŕēśţōŕē ţĥē ƥŕēvĩōũś ƥŕōƒĩĺē\"],\"ZOxlYi\":[\"Ŕēƥēàţēď ĥōĺďōũţ ēxƥōśũŕē ŵēàķēńś ĩńďēƥēńďēńţ ēvĩďēńćē. Ţŕēàţ ŕēũśēď ĥōĺďōũţ ŕēśũĺţś àś vàĺĩďàţĩōń, ńōţ ũńţōũćĥēď ĥōĺďōũţ ēvĩďēńćē.\"],\"ZQlAPX\":[\"Ƒŕōźēń ćōvēŕàĝē àńď ćàƥàƀĩĺĩţĩēś\"],\"ZYM-e5\":[\"Àśśũḿēď śţàĝē ćàĺĩƀŕàţĩōń ǫũàĺĩţŷ: \",[\"0\"]],\"_2a_oX\":[\"Àƒţēŕ śćĥēďũĺē ēńďś\"],\"_3iO4p\":[\"Ƒŕōźēń ōƀĴēćţĩvē ţĥŕēśĥōĺďś\"],\"_8-q-t\":[\"Śĺēēƥēŕ: \",[\"0\"]],\"_8Othx\":[\"Ţĥĩś ĩś ďēśćŕĩƥţĩvē ēvĩďēńćē, ńōţ vàĺĩďàţēď ĩḿƥŕōvēḿēńţ ōŕ ƥēŕḿĩśśĩōń ţō àćţĩvàţē à ƥŕōƒĩĺē.\"],\"_CNpb9\":[\"Ţàƀĺēś, śĩźēś àńď ḿàĩńţēńàńćē ƒōŕ ţĥē ƥōď ďàţàƀàśēś\"],\"_F1gL-\":[\"Ţĥē ōƀśēŕvàţĩōń ŵĩńďōŵ ŵàś ḿĩśśēď.\"],\"_N3nfY\":[\"Śńàƥśĥōţ ĥàśĥ\"],\"_RdTy6\":[\"Ńũḿēŕĩćàĺ ďēţàĩĺś àŕē ũńàvàĩĺàƀĺē ōŕ ĩńćōḿƥàţĩƀĺē.\"],\"_UU1GQ\":[\"Śćōŕēď ńĩĝĥţś: \",[\"0\"],\"; ũńśćōŕēď: \",[\"1\"]],\"_WJL1l\":[\"Ēvàĺũàţōŕ ƀũĩĺď ĥàśĥ\"],\"_YJvA2\":[\"Ďēĺēţĩńĝ àń ĩḿƥōŕţ ŕēḿōvēś ĩţś śōũŕćē ḿēàśũŕēḿēńţś. Ƥŕēvĩōũśĺŷ ƒŕōźēń ďàţàśēţś àŕē śēƥàŕàţē ŕēţàĩńēď ćōƥĩēś.\"],\"_dmdq7\":[\"Ĥēàŕţ ŕàţē · \",[\"0\"],\" \",[\"1\"]],\"_dqduX\":[\"Ńēxţ ƥàĝē\"],\"_fhKhX\":[\"ŴŌŔĶßĒŃĆĤ\"],\"_iu_fT\":[\"Ćàńďĩďàţē ƥŕōƒĩĺē\"],\"_m_cqq\":[\"Śćĥēďũĺĩńĝ ŵàś ńōţ ćōńƒĩŕḿēď. Ŕēţŕŷ ţĥĩś śàḿē ŕēǫũēśţ ţō ĺēàŕń ĩţś ōũţćōḿē; ďō ńōţ àśśũḿē à ŕũń ŵàś ćŕēàţēď ōŕ śţōƥƥēď.\"],\"_vMmHs\":[\"Ńō ŕēśōĺvēď vàĺũē ćĥàńĝēś.\"],\"_zRJNg\":[\"Ŕēćōḿƥũţēď ōƀśēŕvàţĩōńś: \",[\"0\"]],\"a0hR2f\":[\"Ŕēţàĩń ŵàvēƒōŕḿś\"],\"a4jIpF\":[\"Śĥàŕēď-ţĩḿēśţàḿƥ ćōḿƥàŕĩśōńś. Ďĩƒƒēŕēńćēś àŕē ćōḿƥàŕĩśōń ḿĩńũś ƀàśēĺĩńē; ńēĝàţĩvē ēŕŕōŕ ďĩƒƒēŕēńćēś ḿēàń ĺōŵēŕ ēŕŕōŕ ōń śĥàŕēď ōƀśēŕvàţĩōńś.\"],\"aAzeS3\":[\"Ćũŕŕēńţ ĥōĺďōũţ ēxƥōśũŕē ćōũńţ: \",[\"0\"]],\"aBSvZr\":[\"Ĩńĥēŕĩţś ţĥē \",[\"0\"],\" ŕũĺēś àńď ƒàĺĺƀàćķ ƒŕōḿ\"],\"aEj05o\":[\"Ĩńćōḿƥàţĩƀĺē ŕēƒēŕēńćē\"],\"aEm2DD\":[\"ßàćķţēśţ śũƀḿĩśśĩōń\"],\"aWcLHy\":[\"Ĥōĺďōũţ\"],\"a_tOrB\":[\"Ćōḿƥàŕē ţĥē ƥōď àĝàĩńśţ Àƥƥĺē Ŵàţćĥ ōŕ ōţĥēŕ ŕēƒēŕēńćēś\"],\"ahCPOh\":[\"Ńō ƥŕōśƥēćţĩvē ŕũńś ƒōŕ ţĥĩś śĩďē.\"],\"akShFD\":[\"Ćĺēàńũƥ\"],\"al36z5\":[\"Śĥàŕēď-ţĩḿēśţàḿƥ ćōḿƥàŕĩśōńś àŕē ũńàvàĩĺàƀĺē ĩń ţĥĩś ŕēƥōŕţ.\"],\"aoOfN1\":[\"Ďēśćŕĩƥţĩvē ēvàĺũàţĩōń ōńĺŷ\"],\"apfCJ8\":[\"Ƒŕēēźē ēvàĺũàţĩōń ĩńƥũţś\"],\"aqRjDk\":[\"Ţōţàĺ Ƥŷţĥōń ŵàĺĺ ţĩḿē (śēćōńďś)\"],\"azXwgh\":[\"Ńō śţàĝē ĩńţēŕvàĺś ŵēŕē ƥŕōďũćēď ƒōŕ ţĥĩś śēĺēćţĩōń.\"],\"bAG4xT\":[\"Ƒĩŕśţ ƥàĝē\"],\"bAqx-m\":[\"ĤŔV ďēƒĩńĩţĩōń\"],\"bIdc7i\":[\"Àũţō ƥōŵēŕ-ōƒƒ ćàƥ\"],\"bKNo3f\":[\"Ƒàĥŕēńĥēĩţ ōŕ Ćēĺśĩũś\"],\"bMnAf3\":[\"Ŕēćōḿƥũţēď ŕēàďĩńĝś àńď ćōḿƥàţĩƀĺē ƒŕōźēń ŕēƒēŕēńćēś ĩń ţĥē śēĺēćţēď ḿēţŕĩć ũńĩţ\"],\"bRN5nm\":[\"Śōƒţŵàŕē\"],\"bRYfMr\":[\"Ńēŵēśţ ďàţàśēţś\"],\"bUIsv2\":[\"Ḿēţŕĩć ŵĩńďōŵ: \",[\"0\"],\" śēćōńďś.\"],\"bW1Vv-\":[\"Ĺōśţ ŕēàďĩńĝś\"],\"bZGH6_\":[\"Ńēŵēśţ ĩḿƥōŕţś\"],\"bcsF7s\":[\"Ĥēàŕţ ŕàţē\"],\"bjnxtG\":[\"Àƥƥĺŷ ũńvàĺĩďàţēď ŕēvĩśĩōń\"],\"c3Qpen\":[\"Ƥōď śţàţũś àţ à ĝĺàńćē\"],\"c8Kx_b\":[\"Ŕēḿōvē ōvēŕŕĩďē\"],\"cCEjPJ\":[\"Ƒ1\"],\"cESAVR\":[\"Ńō vàĺũēś ƒōŕ ţĥĩś ḿēţŕĩć ōń ţĥē ćũŕŕēńţ ƥàĝē.\"],\"c_Dls2\":[\"Ńō ƀàćķţēśţ Ĵōƀś ƒōŕ ţĥĩś śĩďē.\"],\"cmG-2L\":[\"Ĥēàŕţ ŕàţē, ĤŔV àńď ƀŕēàţĥĩńĝ ţŕēńďś\"],\"cnqM2L\":[\"Ƥēŕḿàńēńţĺŷ ŕēĺēàśē ŕēƥōŕţ\"],\"coprQn\":[\"Ĩ ĩńţēńď ţō àƥƥĺŷ ţĥĩś ēxàćţ ŕēvĩśĩōń ŵĩţĥōũţ vàĺĩďàţĩōń ēvĩďēńćē.\"],\"cueivf\":[\"Ēxćĺũśĩōńś: \",[\"0\"]],\"cwpx1M\":[\"ĤŔ ēŕŕōŕ · ţũńĩńĝ\"],\"d-PALc\":[\"Ŕēśōĺvēď ƥàŕàḿēţēŕ ćĥàńĝēś\"],\"d3IqDh\":[\"Ǫũàĺĩţŷ\"],\"d3emgn\":[\"Ćàńďĩďàţē śàvē ƒàĩĺēď.\"],\"d6dDT8\":[\"Ōƀśēŕvàţĩōń ŵĩńďōŵ (ŨŢĆ)\"],\"dEgA5A\":[\"Ćàńćēĺ\"],\"dHvZyR\":[\"ǫũàĺĩţŷ\"],\"dKKiUb\":[\"Ńũḿēŕĩćàĺ ŕēàďĩńĝś ŵēŕē ŕēćōḿƥũţēď ƒŕōḿ ŕēţàĩńēď ŵàvēƒōŕḿś. Ōŕĩĝĩńàĺ śţōŕēď ŕēàďĩńĝś ŕēḿàĩń ũńćĥàńĝēď.\"],\"dVSC5E\":[\"Ĩńśƥēćţ àvàĩĺàƀĺē ďàţà ƀēƒōŕē śēĺēćţĩńĝ ńĩĝĥţś ƒōŕ à ŕēţàĩńēď ďàţàśēţ.\"],\"deIqfe\":[\"Ŵĥēń ţĥē ĤŔV ĩńďēx ĩś ŕēƥōŕţēď\"],\"dgvPBj\":[\"ƀƥḿ ōƒ ţĥē ţŕàćķēŕ\"],\"dnpx0n\":[\"Ōŕĩĝĩńàĺ ţŕàćē ţĩḿēśţàḿƥś àŕē śĥōŵń. Ŕēƒēŕēńćē śćōŕĩńĝ àďďś ţĥē ƒŕōźēń ōƒƒśēţ ōƒ \",[\"0\"],\" ḿś ţō ţĥēśē ţĩḿēśţàḿƥś.\"],\"dp1xoT\":[\"vàĺĩďàţĩōń\"],\"drFd3d\":[\"Ƒŕēēźĩńĝ ţĥē ńĩĝĥţś…\"],\"dsg4nV\":[\"Ďŕōƥƥĩńĝ ŕēàďĩńĝś ćàń ĺōŵēŕ ōŵń-śũƥƥōŕţ ēŕŕōŕ. Ďũƥĺĩćàţē ţĩḿēśţàḿƥś àŕē ēxćĺũďēď ƒŕōḿ śĥàŕēď śũƥƥōŕţ. Ţĥēśē ćōũńţś ďō ńōţ ḿēàśũŕē ćōńţĩńũōũś ţĩḿē ćōvēŕàĝē.\"],\"dvrg2y\":[\"Ƥàĩŕēď ŕēćōŕďś\"],\"dw3RHG\":[\"ńōţ ŕēƥōŕţēď\"],\"dxyEjQ\":[\"Ĩńţēŕŕũƥţēď\"],\"e53Atr\":[\"Àţţēḿƥţ \",[\"0\"]],\"e8GyQg\":[\"Ḿēţŕĩć\"],\"eIz4fP\":[\"Ćōḿƥàŕĩśōń ēvĩďēńćē\"],\"eLJnth\":[\"Ţĥē śēŕvēŕ ƥĩńś ďēƒàũĺţ, ćũŕŕēńţ ƀàśēĺĩńē, àńď ćàńďĩďàţē ćōńƒĩĝũŕàţĩōńś, ƥĺũś ţĥē ōţĥēŕ śĩďē’ś ćōńƒĩĝũŕàţĩōń. Ŕēƥĺàŷ ũśēś ŕēţàĩńēď śĩĝńàĺś àńď ńēvēŕ ŕēƥĺàćēś ōŕĩĝĩńàĺ ōƀśēŕvàţĩōńś.\"],\"eLzX0W\":[\"ĤōḿēĶĩţ ƀŕĩďĝē\"],\"eMS-Kh\":[\"Śćĥēďũĺēď ŕũńś ŵàĩţ ƒōŕ ţĥēĩŕ ŵĩńďōŵ àńď ƒŕēśĥ ŕēśōũŕćē àďḿĩśśĩōń. Ńō ōƀśēŕvàţĩōńś àŕē ĩḿƥĺĩēď ŷēţ.\"],\"ea_tpx\":[\"Ŕēśţōŕē… ▾\"],\"eiQsF1\":[\"Ńō ďàţàśēţ ĩś ƒŕōźēń ƒōŕ ţĥĩś śĩďē ŷēţ. Ƒŕēēźĩńĝ ţàķēś ţĥē ńēŵēśţ ńĩĝĥţś à ŕēƒēŕēńćē ćōvēŕś, ŵĩţĥ ţĥēĩŕ ŔÀŴ àŕćĥĩvēś, śō à ƀàćķţēśţ ćàń ŕēƥĺàŷ ţĥēḿ.\"],\"erZkEJ\":[\"Ńēxţ ŕēćōŕďś\"],\"ewu5hx\":[\"Śţōƥ ōƀśēŕvàţĩōń\"],\"f1PMkf\":[\"Ĩńśƥēćţ śţàĝē ţŕàćēś\"],\"f2Vka4\":[\"Ōƀśēŕvàţĩōń ďēţàĩĺś\"],\"f9XWfS\":[\"Ōŕĩĝĩńàĺ ţĩḿēśţàḿƥś àŕē śĥōŵń ĩń \",[\"timezone\"],\". Ŕēƒēŕēńćē śćōŕĩńĝ àďďś ţĥē ƒŕōźēń ōƒƒśēţ ōƒ \",[\"0\"],\" ḿś.\"],\"fDm1vz\":[\"Àŵàŷ ḿōďē\"],\"fFKwiD\":[\"Ǫũēũēĩńĝ ţĥē ƀàćķţēśţ…\"],\"fMY8OF\":[\"Ţĥĩś ŕēƥōŕţ vēŕśĩōń ōŕ śţŕũćţũŕē ĩś ńōţ śũƥƥōŕţēď ƀŷ ţĥĩś vĩēŵ.\"],\"fduV6w\":[\"Ĩńśũƒƒĩćĩēńţ ēvĩďēńćē ƒōŕ vàĺĩďàţēď ĩḿƥŕōvēḿēńţ\"],\"fisQjo\":[\"śţàĝē ķàƥƥà\"],\"fjyJzV\":[\"Ŕēćōŕďēď ćōńƒĩĝũŕàţĩōńś: \",[\"0\"],\"; ŕēàďĩńĝś ŵĩţĥ ũńķńōŵń ćōńƒĩĝũŕàţĩōń: \",[\"1\"],\".\"],\"fpMxrt\":[\"àććēƥţēď 10-śēćōńď ĨßĨ ŵĩńďōŵś\"],\"frH3v_\":[\"ĺàţēśţ ḾÀĒ \",[\"0\"],\", ƀĩàś \",[\"1\"],\" \",[\"unit\"]],\"fsEiED\":[\"Śàvē ēvàĺũàţĩōń ƥŕōţōćōĺ\"],\"fsIyEL\":[\"Ŕēƒēŕēńćē ĩḿƥōŕţ śàvēď: \",[\"saved\"]],\"fx36Vz\":[\"Ńĩĝĥţś, śĺēēƥ śţàĝēś àńď vĩţàĺś\"],\"fxeXBO\":[\"Śàvēď ēxƥēŕĩḿēńţś\"],\"g38APT\":[\"Ƒàĺĺƀàćķ śţàĝē\"],\"g8_K4H\":[\"Ōĺďēŕ Ĵōƀś\"],\"g9GNn8\":[\"Ƥōōĺēď ćōḿḿōń-śũƥƥōŕţ śţàĝē śćōŕēś\"],\"g9QO1Q\":[\"Ćàĺĩƀŕàţĩōń vĩēŵś\"],\"gEcnen\":[\"Ēxàćţ ƥŕōćēśśēď-ďàţà ćōvēŕàĝē\"],\"gHMTXI\":[\"Àććēƥţēď ŕēćōŕďś àŕē ńōţ ńēćēśśàŕĩĺŷ ũśàƀĺē ƒōŕ vàĺĩďàţĩōń. Ĩńćōḿƥàţĩƀĺē ĤŔV ďēƒĩńĩţĩōńś ŕēḿàĩń ũńśćōŕàƀĺē.\"],\"gIsCcS\":[\"Ćōḿƥĺēţēď ńĩĝĥţś\"],\"gQp61o\":[\"Ŕēƒēŕēńćē ŕēćōŕďś ōũţśĩďē ţĥē ćàƥţũŕēď ŵĩńďōŵ: \",[\"0\"]],\"gWywdR\":[\"Àvàĩĺàƀĺē ŕēƒēŕēńćē ŕēćōŕďś ƀŷ ḿēţŕĩć (àćŕōśś ŕēvĩśĩōńś)\"],\"gY4IEV\":[\"Ŕēvĩēŵ ōƀśēŕvàţĩōń ŕēƥōŕţ\"],\"gYLm31\":[\"Àƥƥĺŷ ēvàĺũàţēď ŕēvĩśĩōń\"],\"gqM0fU\":[\"Ŕēţàĩńēď ďàţàśēţś\"],\"gqtr8Z\":[\"Śàvē ƒàĩĺēď.\"],\"gsdE1-\":[\"Ćàńďĩďàţē ōƀśēŕvàţĩōń ţĩḿēśţàḿƥś ĺōśţ: \",[\"0\"],\"; àďďēď: \",[\"1\"],\".\"],\"gsxO3G\":[\"Ƥōŵēŕś à śĩďē ōƒƒ ŵĥēń ţĥē ƥũḿƥ śţàĺĺś\"],\"h-_RA9\":[\"Ḿēţŕĩćś: \",[\"0\"]],\"h8USYG\":[\"Ƥŕēśēńćē àńď ƥũḿƥ ćōńţēxţ ŕēƒĺēćţ ĥōśţ ōƀśēŕvàţĩōńś, ńōţ ƥŕōōƒ ōƒ ţĥē ĺĩvē ƥŕōćēśśōŕ’ś ćàćĥēď śţàţē.\"],\"hCQg3t\":[\"Śēĺēćţ àŕćĥĩvēś ƒōŕ ēvēŕŷ ƒŕōźēń ńĩĝĥţ, ĩńćĺũďĩńĝ ƒĩvē ḿĩńũţēś ōƒ ƥŕē-ŕōĺĺ. Àŕćĥĩvē ƀōũńďś ďō ńōţ ƥŕōvē ćōńţĩńũōũś śĩĝńàĺ ćōvēŕàĝē. Ţĥē śēŕvēŕ vēŕĩƒĩēś àńď ćōƥĩēś ţĥē śēĺēćţēď ƀŷţēś ƀēƒōŕē ƥũƀĺĩśĥĩńĝ à ńēŵ ďàţàśēţ.\"],\"hD-y_c\":[\"Ĩńśƥēćţ Ĵōƀ\"],\"hQDrYd\":[\"Ćĥōōśē à ţēḿƥĺàţē\"],\"hV5uRE\":[\"Ŕēƒēŕēńćē ƥōĩńţś\"],\"hY_84S\":[\"Ńō ōvēŕĺàƥ\"],\"hYpaGJ\":[\"Śēţ ēàćĥ śĩďē’ś ţēḿƥēŕàţũŕē\"],\"hZVN7j\":[\"Ńō ōvēŕĺàƥƥĩńĝ ŕēƒēŕēńćē ŕēćōŕďś.\"],\"hew6O1\":[\"Ńō ōƀśēŕvàţĩōńś ŵēŕē śàvēď.\"],\"i4lAMH\":[\"Śţàŕţ ƒŕōḿ ţĥē śàvēď ƥŕōƒĩĺē. Ēxĩśţĩńĝ śĺēēƥ-śţàĝē ōvēŕŕĩďēś àŕē ƥŕēśēŕvēď. Ŕēḿōvĩńĝ à ńũḿēŕĩćàĺ ōvēŕŕĩďē ƒōĺĺōŵś ţĥē śĥĩƥƥēď ďēƒàũĺţ.\"],\"iBoQ7e\":[\"Àĝŕēēḿēńţ ŵĩţĥ à ńàḿēď ŕēƒēŕēńćē ďōēś ńōţ ēśţàƀĺĩśĥ ćĺĩńĩćàĺ àććũŕàćŷ.\"],\"iLPjcf\":[\"Ćōƥĩēś ţĥē ƀĩōḿēţŕĩćś àŕćĥĩvē ţō à ĥōśţ ŷōũ ćōńţŕōĺ ōvēŕ ŚŚĤ, ōńćē ƥēŕ ńĩĝĥţ\"],\"iNXP29\":[\"Ĩńţēŕńēţ àććēśś\"],\"iOcCtM\":[\"Ŕōŵ \",[\"0\"],\": \",[\"1\"]],\"iRuL-K\":[\"Ķàƥƥà\"],\"iSlb8i\":[\"ßàćķţēśţ ōń \",[\"0\"],\" ńĩĝĥţś ƒàĩĺēď\"],\"iTFRRA\":[\"Ĺōńĝēśţ ƀŕēàţĥĩńĝ ĩńţēŕvàĺ (× ḿēďĩàń)\"],\"iZdGUJ\":[\"Ţĥē śàvēď ƥŕōƒĩĺē ćĥàńĝēď. Ćōḿƥàŕē àĝàĩń ƀēƒōŕē ŕēvĩēŵĩńĝ ţĥēśē ćĥàńĝēś.\"],\"ickSQa\":[\"Àćţĩvàţĩōń ŕēǫũēśţ śàvēď. Ƥŕōćēśśōŕ àćķńōŵĺēďĝēḿēńţ ĩś ŕēƥōŕţēď śēƥàŕàţēĺŷ ƀēĺōŵ.\"],\"idD8Ev\":[\"Śàvēď\"],\"idUHAF\":[\"Ţŕàćē ńĩĝĥţ\"],\"ienenm\":[\"Śćĥēďũĺē àń ōƀśēŕvàţĩōń\"],\"iiIc1S\":[\"Àďďēď ŕēàďĩńĝś\"],\"iyttMX\":[\"Ēxàćţ ŕēćōḿƥũţēď ŕēàďĩńĝś, ŵĩţĥōũţ ŕēƒēŕēńćē ćĺōćķ àďĴũśţḿēńţ\"],\"izHeGP\":[\"Śţàĝē ŕũĺēś\"],\"izUm62\":[\"Ćōḿƥàŕē ŵĩţĥ śàvēď ƥŕōƒĩĺē\"],\"j5lpmE\":[\"ŔēĴēćţ ĩńţēŕvàĺś śĥōŕţēŕ ţĥàń\"],\"j87ALW\":[\"Ēśţĩḿàţē ēxƥĺōŕàţōŕŷ ŵĥōĺē-ńĩĝĥţ ũńćēŕţàĩńţŷ\"],\"j8f0f7\":[\"Ĩńśƥēćţ ḿēàśũŕēḿēńţś\"],\"jFnLa4\":[\"Ţũŕń śĩďēś ōƒƒ àƒţēŕ à śēţ ńũḿƀēŕ ōƒ ĥōũŕś\"],\"jGGU20\":[\"Ďēƒàũĺţ ƥōŵēŕ śţàţē ŵĥēń à ćũŕvē ƒĩńĩśĥēś\"],\"jHJqeF\":[\"Ńō śàvēď ēxƥēŕĩḿēńţś ƒōŕ ţĥĩś śĩďē.\"],\"jM5CSI\":[\"Śàvēď ēvĩďēńćē ĩďēńţĩţŷ\"],\"j_WgSe\":[\"Ţàƥ ţĥē ţōƥ ōƒ ţĥē ćōvēŕ ōń ŷōũŕ śĩďē\"],\"ja10bn\":[\"Ţēḿƥēŕàţũŕē ćōńţŕōĺ\"],\"jnHbBF\":[\"Ŕēƒēŕēńćē ĺĩƀŕàŕŷ\"],\"jnTV6s\":[\"ßàćķţēśţ \",[\"0\"],\". Ƒŕōźēń ďàţàśēţ ŕēƥĺàŷēď ţĥŕōũĝĥ ţĥē ƥŕēvĩōũś àńď śàvēď ƥŕōƒĩĺēś; ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"jnd7HN\":[\"Ńĩĝĥţ\"],\"jqzUyM\":[\"Ũńàvàĩĺàƀĺē\"],\"jtiXJv\":[\"Ŵĥàţ ţĥē ŕũĺēś ēvàĺũàţēď àńď ŵĥŷ\"],\"k9QdNt\":[\"Àĝĝŕēĝàţĩōń\"],\"kBDFtj\":[\"ßēď śēţũƥ\"],\"kEoNsC\":[\"Ĩńśƥēćţ ƒŕōźēń ĩńƥũţś àńď ŵĥōĺē-ńĩĝĥţ ƥàŕţĩţĩōńś, ōŕ ŕēĺēàśē ţĥēĩŕ ŕēţàĩńēď śţōŕàĝē.\"],\"kRbwZR\":[\"Ţĥē ŕũĺē ĺĩśţ ĩţśēĺƒ ďĩƒƒēŕś ƒŕōḿ ţĥē śĥĩƥƥēď ŕũĺēś.\"],\"kSn7J6\":[\"Śćĥēďũĺēď Ĵōƀś àńď ďŕĩƒţ\"],\"kXxqsJ\":[\"Ŕēĺēàśē ďēţàĩĺēď ŕēśũĺţś ƥēŕḿàńēńţĺŷ? Ţĥē ŕēƥōŕţ ĥàśĥ, Ĵōƀ ĥĩśţōŕŷ, àńď ĥōĺďōũţ ēxƥōśũŕē àũďĩţ ŕēḿàĩń.\"],\"k_Kc3O\":[\"Ćàńďĩďàţē ŕũĺē\"],\"k_tlKH\":[\"Śţàĝē àĝŕēēḿēńţ ĩś ḿēàśũŕēď àĝàĩńśţ ţĥē ńàḿēď ŕēƒēŕēńćē. Ĩţ ďōēś ńōţ ēśţàƀĺĩśĥ ćĺĩńĩćàĺ śţàĝē àććũŕàćŷ.\"],\"kg9QHL\":[\"Ḿĩńĩḿũḿ ƀēàţ śĩĝńàĺ śćōŕē\"],\"klYSYX\":[\"Ńō ŕēƒēŕēńćē ŕēćōŕďś ĩń ţĥē ōƀśēŕvàţĩōń ŵĩńďōŵ.\"],\"kmVlv0\":[\"Śàvē àńď ŕēǫũēśţ\"],\"knhXFm\":[\"Ćōvēŕàĝē ŕēďũćēď ĩń àţ ĺēàśţ ōńē ēvàĺũàţēď ŵĩńďōŵ\"],\"koFCAF\":[\"Śŷśţēḿ ďēƒàũĺţś\"],\"krN8T4\":[\"Ƒĩŕśţ àŕćĥĩvē ƥàĝē\"],\"krfedI\":[\"Ŵàţćĥ ŚĎŃŃ àńď śĺēēƥŷƥōď’ś ŵĩńďōŵ-ƀàśēď ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx ũśē ďĩƒƒēŕēńţ ćàĺćũĺàţĩōńś. Ţĥēŷ ćàńńōţ ƀē ďĩŕēćţĺŷ ćōńvēŕţēď; ćōḿƥàŕē ţĥēĩŕ ţŕēńďś, ńōţ ţĥēĩŕ àƀśōĺũţē vàĺũēś.\"],\"kvoj0l\":[\"Ŵàĩţĩńĝ ƒōŕ ďēĺĩvēŕŷ\"],\"kx0s-n\":[\"Ŕēśũĺţś\"],\"l-ka0P\":[\"Ƥōĩńţ ḿàţćĥĩńĝ ţōĺēŕàńćē (ḿś, 0–300000)\"],\"l-rdOQ\":[\"Ĥēàĺţĥ ŵàś śàḿƥĺēď àţ àďḿĩśśĩōń ćĥēćķś, ńōŕḿàĺĺŷ ƒĩvē śēćōńďś àƥàŕţ. Ũńōƀśēŕvēď ĩńţēŕvàĺś àŕē ńōţ ćōńţĩńũōũś ĥēàĺţĥ ḿēàśũŕēḿēńţś.\"],\"l8XODJ\":[\"Ōĺďēŕ ƥŕōƒĩĺēś\"],\"lCtEWn\":[\"ßàćķţēśţ ŕēǫũēśţ śàvēď: \",[\"0\"]],\"lGWE4b\":[\"Vàĺĩďàţĩōń\"],\"lIwsCR\":[\"Śàvē à ćàńďĩďàţē ƒōŕ ēvàĺũàţĩōń. Ţĥĩś ďōēś ńōţ ćĥàńĝē ĺĩvē ƥŕōćēśśĩńĝ.\"],\"lLKx4j\":[\"Ţũŕńś à śĩďē ōƒƒ àƒţēŕ ŷōũ ĺēàvē ţĥē ƀēď\"],\"lPhE6w\":[\"Ƥŕēƥàŕēď, ńōţ àďḿĩţţēď. Ţĥē ƥōď ćĥēćķś ćũŕŕēńţ ǫũàĺĩƒĩćàţĩōń àńď ĥēàĺţĥ àĝàĩń ŵĥēń śćĥēďũĺĩńĝ àńď ŵĥēń ēxēćũţĩōń śţàŕţś.\"],\"lYQlqL\":[\"Ƥĩćķ à śćōŕēď ńĩĝĥţ ţō śēē ĩţś ĥēàŕţ-ŕàţē ţŕàćē.\"],\"lZQljm\":[\"Ƥŕēƥàŕē ōƀśēŕvàţĩōń ƥĺàń\"],\"lfcZyG\":[\"Ĩńśţàĺĺēď vēŕśĩōń àńď ũƥďàţēś\"],\"lgjajK\":[\"Ćĥēćķĩńĝ vàĺĩďàţĩōń ēvĩďēńćē…\"],\"lmuVtM\":[\"Ēàćĥ ćōńƒĩĝũŕàţĩōń ōń ĩţś ōŵń àvàĩĺàƀĺē ĩńţēŕvàĺś\"],\"m0Nxk3\":[\"Śàvē ćàńďĩďàţē ŵĩţĥōũţ àƥƥĺŷĩńĝ\"],\"m3idi0\":[\"Ōŵń-śũƥƥōŕţ ḾÀĒ ďĩƒƒēŕēńćē\"],\"mCRJge\":[\"ƀĩàś (+ = ƥōď ŕēàďś ĥĩĝĥ)\"],\"mEGaVF\":[\"Ŕēǫũēśţēď àćţĩvàţĩōń · ĝēńēŕàţĩōń \",[\"0\"]],\"mJLKhS\":[\"Ţŕàćē ĩńţēŕvàĺś \",[\"first\"],\"–\",[\"last\"],\" ōƒ \",[\"0\"]],\"mPyzNL\":[\"Ćōḿƥàŕē ƥŕōśƥēćţĩvē ōƀśēŕvàţĩōńś ŵĩţĥ à ŕēƒēŕēńćē\"],\"mZsnWl\":[\"Ḿĩńĩḿũḿ ĨßĨ ŵĩńďōŵś\"],\"mZzxmI\":[\"Ţĥē ĺàśţ àŕćĥĩvē ŵàś ũńàvàĩĺàƀĺē. Ćōńţĩńũē ţō ĩńśƥēćţ ţĥē ńēxţ àŕćĥĩvē.\"],\"mcrx-J\":[\"3Ď śţàĝē\"],\"mizif2\":[\"Ńō ŕēţàĩńēď ďàţàśēţś ƒōŕ ţĥĩś śĩďē.\"],\"mjOerZ\":[\"Śţàĝē ţŕàćē ƒōŕ ţĥē ďĩśƥĺàŷēď ĩńţēŕvàĺś; ēxàćţ ţĩḿēś àńď śţàĝēś ƒōĺĺōŵ ĩń ţĥē ţàƀĺē.\"],\"mkhMIi\":[\"Ŵĩţĥĩń ţĥē ōƀśēŕvēď ĺĩḿĩţś.\"],\"mmYtG3\":[\"Ŕēţŕŷ ēxàćţ àćţĩvàţĩōń ŕēǫũēśţ\"],\"mpfEb2\":[\"Ƥàĩŕēď ḿĩńũţēś\"],\"mxcjJ3\":[\"Ƒĩŕśţ ŕēćōŕďś\"],\"n9nSNJ\":[\"Ţĩḿē ƒōŕḿàţ\"],\"nDsRnU\":[\"Ńũḿēŕĩć ţŕàćē ḿēţŕĩć\"],\"nGd0J1\":[\"Ńō ḿàţćĥēś ƒōŕ “\",[\"q\"],\"”\"],\"nOPbWJ\":[\"Ŕĩĝĥţ\"],\"nR_Xo2\":[\"Ńō ćōḿḿĩţţēď ŕēƥōŕţ ĩś àvàĩĺàƀĺē ŷēţ.\"],\"nRm1_n\":[\"Ćàńďĩďàţē ĥàśĥ\"],\"nZvP5d\":[\"Ŕēƥōŕţś ďēśćŕĩƀē ōƀśēŕvēď ćōvēŕàĝē àńď ŕēƒēŕēńćē àĝŕēēḿēńţ; ţĥēŷ ďō ńōţ àũţĥōŕĩźē àćţĩvàţĩōń.\"],\"neY-I0\":[\"Ĥēàŕţ-ŕàţē ţŕàćē\"],\"nfv2Gn\":[\"Ŕēvĩēŵ ƥŕēƥàŕēď ƥĺàń\"],\"njHfRY\":[\"Śàvēď ţĥē ƥŕōƒĩĺē\"],\"nkTSf7\":[\"Ţŕàćķĩńĝ ĥĩśţōŕŷ ĺēńĝţĥ\"],\"nsVNnB\":[\"ŨŔĹ, ŢĹŚ, ćŕēďēńţĩàĺś àńď ţōƥĩć ƥŕēƒĩx\"],\"nvXKMs\":[\"Ńō ƀàćķţēśţ ŷēţ. Ƒŕēēźē à ńēŵ ďàţàśēţ ƀēĺōŵ; ĩţ ŕēƥĺàŷś ţĥē ńēŵēśţ ŕēƒēŕēńćēď ńĩĝĥţś ţĥŕōũĝĥ ţĥē ƥŕēvĩōũś àńď śàvēď ƥŕōƒĩĺēś. Ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"nzhJlu\":[\"Ēvàĺũàţĩōń ŕēƥōŕţ\"],\"o0m-W5\":[\"Ţĥē śàvēď ƥŕōƒĩĺē ćĥàńĝēď. Śēĺēćţ à ŕēćōvēŕŷ àćţĩōń àĝàĩń ţō ḿàķē à ńēŵ ŕēǫũēśţ.\"],\"o2CMR_\":[\"Ũńĩţ: \",[\"0\"],\"; ŕàńĝē: \",[\"1\"],\"–\",[\"2\"],\"; ďēƒàũĺţ: \",[\"3\"],\"; ōŕĩĝĩńàĺ: \",[\"4\"]],\"o7BAcK\":[\"ĹĒĎ ńĩĝĥţ ḿōďē\"],\"oFAivV\":[\"Ńĩĝĥţ ƥŕōĝŕēśś ĩś ńōţ àvàĩĺàƀĺē ŷēţ.\"],\"oQ7Z7k\":[\"Ḿēàń àƀśōĺũţē ēŕŕōŕ ōń śĥàŕēď ţĩḿēśţàḿƥś: àćţĩvē \",[\"0\"],\", ćàńďĩďàţē \",[\"1\"],\".\"],\"oRepAd\":[\"Śàvē ƥŕēvĩēŵēď ĩḿƥōŕţ\"],\"oSES6x\":[\"Ēŕŕōŕś ũśē ţĥē ḿēţŕĩć ũńĩţ; śĩĝńēď ƀĩàś ĩś ƥōď ḿĩńũś ŕēƒēŕēńćē.\"],\"oSm2At\":[\"Ńũḿēŕĩć ţŕàćē ĩďēńţĩţŷ ďōēś ńōţ ḿàţćĥ ţĥē śēĺēćţēď ŕēƥōŕţ.\"],\"oTZWAU\":[\"Ŕēĺēàśē ţĥēśē ŕēţàĩńēď ĩńƥũţś ƥēŕḿàńēńţĺŷ? Ēxĩśţĩńĝ ŕēƥōŕţś àńď àũďĩţ ḿēţàďàţà ŕēḿàĩń. Àćţĩvē Ĵōƀś ḿũśţ ƒĩńĩśĥ ōŕ ƀē ćàńćēĺĺēď ƒĩŕśţ.\"],\"on-veT\":[[\"0\"],\" ĤŔ ēŕŕōŕ \",[\"1\"],\" → \",[\"2\"],\" ƀƥḿ · \",[\"3\"]],\"osmcFY\":[\"ţũńĩńĝ\"],\"otbH9Y\":[\"Ōũţƥũţ ćōvēŕàĝē ũśēś ēvàĺũàţēď ţĩḿē àś ĩţś ďēńōḿĩńàţōŕ. Ŕēƒēŕēńćē ćōvēŕàĝē ũśēś ēĺĩĝĩƀĺē ŕēƒēŕēńćē ţĩḿē. À ĥĩĝĥēŕ śćōŕē ŵĩţĥ ŕēďũćēď ćōvēŕàĝē ĩś ńōţ śũƒƒĩćĩēńţ ēvĩďēńćē ōƒ ĩḿƥŕōvēḿēńţ.\"],\"otqFKT\":[\"Àŕćĥĩvē ēvēńţ ƀōũńďś (ŨŢĆ): \",[\"0\"],\" ţō \",[\"1\"]],\"ouWIPE\":[\"Ƥĩńńēď Ĵōƀ ĩńƥũţś\"],\"ovUYdL\":[\"Ƥŕēƒēŕēńćēś ƒōŕ ţĥē ƥōď àńď ţĥĩś ďēvĩćē\"],\"oxuApB\":[\"Ńũḿēŕĩć ţŕàćē ćōńƒĩĝũŕàţĩōń\"],\"oz6J2T\":[\"95ţĥ ƥēŕćēńţĩĺē àƀśōĺũţē ēŕŕōŕ\"],\"p5Tvds\":[\"Ŕēƒŕēśĥ ŕēƥōŕţ\"],\"p8gpyN\":[\"Ƥŕēƥàŕē ƀàćķţēśţ\"],\"pAfIv7\":[\"Ćàńďĩďàţē ƥàŕàḿēţēŕś\"],\"pD9nPP\":[\"Ďĩḿś ţĥē ĹĒĎ ōvēŕńĩĝĥţ\"],\"pWhtyD\":[\"Ćàĺĩƀŕàţĩōń\"],\"pdCJud\":[\"ōŕ ĺōńĝēŕ ţĥàń\"],\"pdmaPz\":[\"ĤŔV ĩńďēx\"],\"peLE5v\":[\"Ĺōŵēŕ ēŕŕōŕ: \",[\"0\"],\"; ĥĩĝĥēŕ: \",[\"1\"],\"; ũńćĥàńĝēď: \",[\"2\"]],\"piBZoW\":[\"Śĩḿũĺàţēď ďēḿō: ĝēńēŕàţēď ŕēàďĩńĝś, ńō ĥàŕďŵàŕē ēxēćũţĩōń ōŕ ǫũàĺĩƒĩćàţĩōń.\"],\"plwcxa\":[\"Ţĥē ƒŕōźēń ōƒƒśēţ ōƒ \",[\"clockOffsetMs\"],\" ḿś ĩś àďďēď ţō ŕēćōḿƥũţēď ţĩḿēśţàḿƥś ĩń ţĥĩś ōvēŕĺàŷ. Ŕēƒēŕēńćē ţĩḿēś śţàŷ ũńćĥàńĝēď. Ƥōĩńţ ḿàţćĥĩńĝ ţōĺēŕàńćē: \",[\"0\"],\" ḿś.\"],\"pn1wGH\":[\"Ōĺďēŕ ďàţàśēţś\"],\"pzU3_f\":[\"Ńō ćōḿƥĺēţēď ŵōŕķēŕ ŕēśōũŕćē ŕēćēĩƥţ ĩś àvàĩĺàƀĺē.\"],\"q-GSeQ\":[\"Ēxƥĺōŕàţōŕŷ 95% ĩńţēŕvàĺ ƒōŕ ḾÀĒ ďĩƒƒēŕēńćē: \",[\"0\"],\" ţō \",[\"1\"]],\"q268Hy\":[\"Ćĥōōśē à ƒũţũŕē ŵĩńďōŵ ŵĩţĥĩń ţĥē ţēḿƥĺàţē ĺĩḿĩţ. Ƥŕēƥàŕĩńĝ à ƥĺàń ďōēś ńōţ śćĥēďũĺē ĩţ.\"],\"q35hV5\":[\"Ŕēƒēŕēńćē ćōvēŕàĝē\"],\"q8lqrb\":[\"Ćōḿƥàŕē śţōŕēď ŕēàďĩńĝś\"],\"qKKmRI\":[\"Ćţŕĺ Ķ\"],\"qQyQVC\":[\"Ćàńćēĺ ƀàćķţēśţ\"],\"qbMXVo\":[\"Ƥŕōĝŕēśś: \",[\"0\"],\" / \",[\"1\"],\" ńĩĝĥţś\"],\"qc-DVG\":[\"Àśśũḿēď ćàĺĩƀŕàţĩōń ǫũàĺĩţŷ (0–1)\"],\"qdIvCQ\":[\"Àćţĩvàţĩōń ţĩḿĩńĝ\"],\"qjP3h7\":[\"Śćōŕēď ńĩĝĥţś: \",[\"0\"],\"; ũńśćōŕēď: \",[\"1\"],\"; ćōvēŕàĝē ŕēďũćēď: \",[\"2\"]],\"qlh_FJ\":[\"Ƥĺàń ĥàśĥ: \",[\"0\"]],\"qo0fEa\":[\"Ćĥēćķ Ōvēŕvĩēŵ ƒōŕ ćũŕŕēńţ ƥŕōćēśśōŕ ĥēàĺţĥ; à ƥàśţ àćķńōŵĺēďĝēḿēńţ ďōēś ńōţ ƥŕōvē ćũŕŕēńţ ĥēàĺţĥ.\"],\"qqZDsc\":[\"Ōƀśēŕvàţĩōńś\"],\"qw2orZ\":[\"Ōŕĩĝĩńàĺ śţōŕēď-ŕēàďĩńĝ ćōḿƥàŕĩśōń\"],\"qwp7QZ\":[\"Ƥēŕḿàńēńţĺŷ ŕēĺēàśē ĩńƥũţś\"],\"qzhWuP\":[\"Ƥàŕēńţ ŕēvĩśĩōń\"],\"qzhiSq\":[\"Ĩ ĩńţēńď ţō ŕēśţōŕē ţĥē ēxàćţ ƥŕēvĩōũś ƥŕōƒĩĺē ŵĩţĥōũţ vàĺĩďàţĩōń ēvĩďēńćē.\"],\"r3sa6W\":[\"Ēxƥēŕĩḿēńţ śàvēď: \",[\"0\"]],\"rJRd6m\":[\"Ţĥē ķēŷ ţĥē ƥōď ũśēś ţō ŕēàćĥ ŷōũŕ ĥōśţ\"],\"rLBjVo\":[\"Àćţĩvē ĝēńēŕàţĩōńś: ĺēƒţ \",[\"0\"],\", ŕĩĝĥţ \",[\"1\"],\".\"],\"rMag_1\":[\"Ƒŕēēźĩńĝ ƒàĩĺēď.\"],\"rPk-pR\":[\"ũńćĥàńĝēď\"],\"rSRVPh\":[\"À śàvēď ŕēǫũēśţ ďōēś ńōţ ḿēàń ēxēćũţĩōń ĥàś śţàŕţēď ōŕ śũććēēďēď. Ĩńśƥēćţ ţĥē Ĵōƀ ƒōŕ ĩţś ćũŕŕēńţ śţàţē.\"],\"rT2tqA\":[\"Ŕēƒēŕēńćē ƒōŕḿàţ\"],\"rZSSdB\":[\"Ƥŕōƒĩĺē ĺĩƒēćŷćĺē\"],\"rnN7wn\":[\"Ńō ƀàćķţēśţ ŷēţ. Ţĥĩś ďàţàśēţ ĥàś ńō ŵàvēƒōŕḿ ŕēƥĺàŷ; ƒŕēēźē à ńēŵ ďàţàśēţ ƀēĺōŵ ţō śēţ ōńē ũƥ. Ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"rruaq8\":[\"Ŕēƒēŕēńćē ĩďēńţĩţŷ ďōēś ńōţ ḿàţćĥ ţĥē śēĺēćţēď ŕēƥōŕţ.\"],\"ruHgkn\":[\"Ēàćĥ 5-ḿĩńũţē ēƥōćĥ ţàķēś ţĥē ƒĩŕśţ ŕũĺē ţĥàţ ḿàţćĥēś\"],\"sN516V\":[\"Ƥũḿƥ śţàĺĺ ƥŕōţēćţĩōń\"],\"sPFHpI\":[\"Ďĩśķ\"],\"sbMCzq\":[\"Ńō ćōḿƥàţĩƀĺē vàĺũēś ōń ţĥēśē ƥàĝēś.\"],\"scVcMn\":[\"ĤŔ ḾÀĒ / ƀĩàś (\",[\"0\"],\")\"],\"sdPN1F\":[\"Ďàţàśēţ\"],\"sdgA-V\":[\"Ŕēƒēŕēńćē ćōḿƥàŕĩśōń ƒàĩĺēď.\"],\"sgOAS_\":[\"Śàvēď ōƀśēŕvàţĩōńś: \",[\"0\"]],\"srnBNJ\":[\"ńō ŕēƒēŕēńćē\"],\"svAg_h\":[\"Ƒŕēēźē à ńēŵ ďàţàśēţ\"],\"t-Vlce\":[\"Ńōţĥĩńĝ ĥàś ĥàƥƥēńēď ōń ţĥĩś śĩďē ŷēţ.\"],\"t072kc\":[\"Ćĥōōśĩńĝ ńĩĝĥţś ţĥē ŕēƒēŕēńćē ćōvēŕś…\"],\"t85xzT\":[\"ĤŔ ēŕŕōŕ ƥēŕ ńĩĝĥţ · ƀƥḿ vś ŕēƒēŕēńćē\"],\"t9S3g1\":[\"Ćōḿƥàŕē àĝàĩńśţ ţĥē śàvēď ƥŕōƒĩĺē. Ţĥĩś ĩś à ćōńƒĩĝũŕàţĩōń ćōḿƥàŕĩśōń, ńōţ vàĺĩďàţĩōń ēvĩďēńćē.\"],\"tBe0Mi\":[\"Ŵĥàţ ţĥē śàvēď ƥŕōƒĩĺē ďĩď\"],\"tEXMPn\":[\"Ŕēśţōŕē ƥŕēvĩōũś\"],\"tQU1G2\":[\"Ĺĩḿĩţàţĩōńś\"],\"tRmb9r\":[\"Ŕēćēńţ śēŕvĩćē ĺōĝś\"],\"tToCKC\":[\"Ŕēţàĩńēď ƀŷţēś: \",[\"0\"]],\"tXkhj_\":[\"Śţàŕţ\"],\"ta6ak8\":[\"Ƒŕēēźē śēĺēćţēď ĩńƥũţś\"],\"tf6U9f\":[\"Ćōḿƥŕēśśēď ƀŷţēś: \",[\"0\"]],\"ti4sFo\":[\"Śţōŕēď à \",[\"0\"],\" ŕēƒēŕēńćē ĩḿƥōŕţ\"],\"ts0Iq9\":[\"Ĥēàŕţ-ŕàţē śƥĩķē ţĥŕēśĥōĺď (śţàńďàŕď ďēvĩàţĩōńś)\"],\"ttIsX4\":[\"Ŵĥĩćĥ ŕēĺēàśēś ţĥē ƥōď ĩńśţàĺĺś\"],\"ttc02l\":[\"Ŕēƒēŕēńćē ḿĩńũţēś\"],\"u41hN6\":[\"Ćōvēŕàĝē ŕēďũćēď\"],\"u5a5NC\":[\"Ŕēǫũĩŕēś ŕē-vēŕĩƒĩćàţĩōń\"],\"u8PbT5\":[\"Àĺśō ŕēƥĺàŷ śĺēēƥ śţàĝēś\"],\"uAQUqI\":[\"Śţàţũś\"],\"uMzbru\":[\"Ŕēţàĩń śēĺēćţēď ŵàvēƒōŕḿś\"],\"uPiT3Y\":[\"Ćĥàńĝēď vàĺũēś àŕē ŵĥĩţē; ţĥē ƥŕēvĩōũś ƥŕōƒĩĺē (Śŷśţēḿ ďēƒàũĺţś) śĩţś ũńďēŕńēàţĥ. Ḿōvĩńĝ à ćōńţŕōĺ ēďĩţś ţĥē śàvēď ƥŕōƒĩĺē; śàvĩńĝ àĝàĩń ŕē-ŕēǫũēśţś ĩţ. Ţĥē ƥŕōćēśśōŕ àďōƥţś à ƥŕōƒĩĺē ōńĺŷ àƒţēŕ ĩţ àćķńōŵĺēďĝēś à ŕēǫũēśţ.\"],\"uQh6hr\":[\"Ćōḿƥàŕĩśōń / ƀàśēĺĩńē\"],\"uVvWY-\":[\"Ŕēćōŕďēď ńĩĝĥţś\"],\"uX0V3h\":[\"Ćōḿƥàŕĩśōń ŕēƒēŕēńćē ŕēćōŕďś\"],\"uZsFeN\":[\"Àƥƥĺŷ ţĥĩś ēxàćţ ćàńďĩďàţē ũśĩńĝ ţĥē śēĺēćţēď ēvàĺũàţĩōń. Ēvĩďēńćē àńď ćũŕŕēńţ śēţţĩńĝś àŕē ćĥēćķēď àĝàĩń ŵĥēń àƥƥĺŷĩńĝ.\"],\"ubgn_Q\":[\"Ćàńďĩďàţē śĺēēƥ-śţàĝē ŕũĺēś\"],\"uihHRS\":[\"Ţĥē ƥōď ŕēĴēćţēď ţĥĩś ƥĺàń. ÀďĴũśţ ĩţ àńď ƥŕēƥàŕē àĝàĩń.\"],\"uj0QeQ\":[\"Ţĥŕēśĥōĺď ƒàĩĺēď: \",[\"reason\"]],\"uj9vMS\":[\"Śĥōŕţēśţ ƀŕēàţĥĩńĝ ĩńţēŕvàĺ (× ḿēďĩàń)\"],\"uk6Pmi\":[\"Ĩḿƥōŕţ ŕēƒēŕēńćē ḿēàśũŕēḿēńţś\"],\"ukOhBN\":[\"Ćĥōōśē ţĥē ƥŕōţōćōĺ ƀēƒōŕē ĺōōķĩńĝ àţ ŕēśũĺţś. Ćŕēàţĩńĝ àń ēxƥēŕĩḿēńţ ďōēś ńōţ ŕũń à Ĵōƀ ōŕ àƥƥĺŷ à ƥŕōƒĩĺē.\"],\"uv3Ezk\":[\"Ćàńďĩďàţē ĺōŵ-śĩĝńàĺ ŕũĺē\"],\"v0YxJ6\":[\"Ćōḿḿōń-śũƥƥōŕţ ďēţàĩĺś: \",[\"0\"]],\"vAFAci\":[\"Ŕēvĩēŵ ćàńďĩďàţē\"],\"vKQ3HQ\":[\"Ĥēàŕţ ŕàţē ţũńĩńĝ\"],\"vVE3Ho\":[\"Ćōḿƥàŕē ƒŕōźēń ŕēƒēŕēńćēś\"],\"vX6LBe\":[\"Ĩńćōḿƥàţĩƀĺē ēvàĺũàţĩōń ēvĩďēńćē\"],\"vX8Jre\":[\"ĤŔV ĨŃĎĒX\"],\"vZ6rJ5\":[\"Ćōŕŕēćţ ĩḿƥōŕţ\"],\"vZdyzL\":[\"Ŕēƒēŕēńćē ćōvēŕàĝē ĩś ţĥē ƒŕàćţĩōń ōƒ ēĺĩĝĩƀĺē ŕēƒēŕēńćē ŕēćōŕďś ƥàĩŕēď. Ōũţƥũţ ćōvēŕàĝē ĩś ţĥē ƒŕàćţĩōń ōƒ ōƀśēŕvàţĩōńś ŵĩţĥ à vàĺũē, ńōţ ćōńţĩńũōũś ţĩḿē ćōvēŕàĝē. Śƥàŕśē śàḿƥĺēś ćàńńōţ ēśţàƀĺĩśĥ ŵĥōĺē-ńĩĝĥţ àććũŕàćŷ.\"],\"vhqhMs\":[\"Ŵōŕķēŕ ćĺēàńũƥ ĥàś ńōţ ƀēēń ćōńƒĩŕḿēď.\"],\"vkIIv_\":[\"Śēĺēćţēď śēśśĩōńś: \",[\"0\"],\" / 60\"],\"vl7cYu\":[\"Śēńśōŕ ďàţà śōũŕćē\"],\"vq24aI\":[\"Ḿēàśũŕēď Ƥŷţĥōń ƥŕōćēśśēś: \",[\"0\"],\" ōƒ \",[\"1\"]],\"vq2FYw\":[\"Ŕũĺē \",[\"0\"]],\"vrQQgz\":[\"Ƥŕōƒĩĺēś\"],\"vuyIUW\":[\"Ćàńďĩďàţē àńď àćţĩvē ŕēàďĩńĝś ćōũĺď ńōţ ƀē ƥàĩŕēď ŕēĺĩàƀĺŷ.\"],\"vv7kpg\":[\"Ćàńćēĺĺēď\"],\"w6ZzbW\":[\"ƥŕēvĩōũś\"],\"wHpeCu\":[\"Ţũńĩńĝ\"],\"wKbWyv\":[\"Śàvēś ĩţ àś ţĥē ƥŕōƒĩĺē àńď ŕēǫũēśţś ĩţ; ţĥē ćũŕŕēńţ śàvēď ƥŕōƒĩĺē ƀēćōḿēś ƥŕēvĩōũś. Ţĥē ƥŕōćēśśōŕ ķēēƥś ŕũńńĩńĝ ŵĥàţ ĩţ ĥàś ũńţĩĺ ĩţ àćķńōŵĺēďĝēś ţĥē ŕēǫũēśţ.\"],\"wMHvYH\":[\"Vàĺũē\"],\"wOA2YL\":[\"À śàvēď ŕēvĩśĩōń ĩś ńōţ ēvĩďēńćē ōƒ vàĺĩďàţĩōń ōŕ ƥŕōćēśśōŕ àďōƥţĩōń.\"],\"wOuuTa\":[\"Ŕēƒēŕēńćē / ƥŕēďĩćţēď\"],\"wPpM6Q\":[\"Ƥĺàń ĥàśĥ\"],\"wQBmjJ\":[\"ßŕēàţĥĩńĝ ţũńĩńĝ\"],\"wRR604\":[\"Ƥàĝēś\"],\"wTOwz-\":[\"Àƥƥĺĩēď\"],\"we3ttu\":[\"Ďàţàśēţ ĥàśĥ\"],\"wn_sE_\":[\"Śĩĝńēď ƀĩàś\"],\"wu6Pa1\":[\"ĹĒĎ ƀŕĩĝĥţńēśś\"],\"ww-u9k\":[\"Àććēƥţēď: \",[\"0\"],\"; ŕēĴēćţēď: \",[\"1\"],\"; ďũƥĺĩćàţēś: \",[\"2\"],\"; ũńśćōŕàƀĺē: \",[\"3\"]],\"x0EO-w\":[\"ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ, ńōţ ćĺĩńĩćàĺ ŔḾŚŚĎ\"],\"x9pT2j\":[\", ŵĩţĥ \",[\"count\"],\" ōvēŕŕĩďēś\"],\"x9u6nv\":[\", ŵĩţĥ ńō ōvēŕŕĩďēś\"],\"xCyL2U\":[\"Ŕēƒēŕēńćē ƥŕēvĩēŵ ƒàĩĺēď.\"],\"xDr_ct\":[\"Ēńď\"],\"xHMZQc\":[\"Ŕēƥĺàŷ ƥŕōćēśśĩńĝ ćōśţś\"],\"xHs5dk\":[\"┆ ĝēń Ń ƥŕōƒĩĺē ćĥàńĝē\"],\"xS38A7\":[\"Ţĥĩś ōĺďēŕ ŕũń ĥàś ńō śàvēď ćàńďĩďàţē ŕēvĩśĩōń ĩďēńţĩţŷ.\"],\"xUBoEO\":[\"Ćōńƒũśĩōń ḿàţŕĩx ĩń ḿĩńũţēś: ŕēƒēŕēńćē ŕōŵś, ƥŕēďĩćţēď ćōĺũḿńś\"],\"xWY4U3\":[\"Àũţōḿàţĩōńś ţĥàţ àďĴũśţ ţĥē ƀēď ƒōŕ ŷōũ\"],\"xaHJrr\":[\"Ńō ƀàćķţēśţ ĥàś ŕēƥĺàŷēď ţĥē śàvēď ƥŕōƒĩĺē ŷēţ. Śàvĩńĝ à ćĥàńĝē ŕēƥĺàŷś ţĥē ƒŕōźēń ďàţàśēţ ōń ĩţś ţũńĩńĝ, vàĺĩďàţĩōń àńď ĥōĺďōũţ ńĩĝĥţś; ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"xahtIL\":[\"Ḿàńũàĺ àćţĩvàţĩōń\"],\"xem4Yw\":[\"Ķēēƥ ŕēƥōŕţ\"],\"xh-6Jm\":[\"Ŵĥàţ ēàćĥ śĩďē ĩś ćàĺĺēď\"],\"xh4HSZ\":[\"Ēĺĩĝĩƀĺē ŕēƒēŕēńćē ḿĩńũţēś\"],\"xmGHa-\":[\"Ōĺďēŕ ēxƥēŕĩḿēńţś\"],\"y-5ho7\":[\"Ŕēćōḿƥũţēď ŕēàďĩńĝś \",[\"first\"],\"–\",[\"0\"],\" ōƒ \",[\"1\"]],\"y1-Ttq\":[\"Ēďĩţ ōvēŕŕĩďēś\"],\"y1L8fR\":[\"Śţōŕēď ōƀśēŕvàţĩōńś: \",[\"0\"]],\"y7CEna\":[\"Ćĺēàŕ ţĥĩś ńĩĝĥţ’ś śēĺēćţĩōń\"],\"yD0Ka7\":[\"Ƒĩŕśţ ĥàĺƒ ōƒ ēàćĥ ŵĩńďōŵ\"],\"yHNO9L\":[\"Ŕēƒēŕēńćē ŕēćōŕďś\"],\"yJgBTR\":[\"ƒĩŕśţ 500 ŕēàďĩńĝś\"],\"yQwtrO\":[\"Ńōŕḿàĺĩźēď ŕēƒēŕēńćē ḿēàśũŕēḿēńţś\"],\"yTWKne\":[\"Ƒĩńĩśĥēď à ƀàćķţēśţ ōń \",[\"0\"],\" ńĩĝĥţś\"],\"yUns4e\":[\"Ēxàćţ ţŕàćē ĩńţēŕvàĺś\"],\"yZcT27\":[\"Ŕēśţōŕē śŷśţēḿ ďēƒàũĺţś\"],\"ykpqy2\":[\"Ćũŕŕēńţ śţàĝē vĩēŵ\"],\"ysAeQM\":[\"Ćàńďĩďàţē ćōvēŕàĝē ŵàś ŕēďũćēď; ĺōŵēŕ ēŕŕōŕ àĺōńē ďōēś ńōţ śĥōŵ ĩḿƥŕōvēḿēńţ.\"],\"ywFj2D\":[\"Ćōńƒĩĝũŕàţĩōń\"],\"yyCcHp\":[\"Śţàĝē ćōvēŕàĝē àńď ćōńƒũśĩōń ƀŷ ńĩĝĥţ\"],\"yydYOL\":[\"Ŕēvĩēŵ ŕēƥōŕţ\"],\"z1a7gg\":[\"Ţĥĩś ŕēǫũēśţ ŕēƒēŕś ţō à ŕēĺēàśēď ďàţàśēţ. Ĩţś ŵàvēƒōŕḿ ƀŷţēś àŕē ũńàvàĩĺàƀĺē.\"],\"z35-JD\":[\"Śēńśōŕ ƀàśēĺĩńēś ƒōŕ ƥĩēźō, ćàƥàćĩţàńćē àńď ţēḿƥēŕàţũŕē\"],\"z5mSEw\":[\"Ŵàvēƒōŕḿ ďàţàśēţ ŕēţàĩńēď: \",[\"published\"]],\"zD4VqY\":[\"Ńōţ śćōŕēď\"],\"zHYvnZ\":[\"Śḿōōţĥ ĩśōĺàţēď ēƥōćĥś\"],\"zPlfe_\":[\"Ōƀśēŕvàţĩōń ţēḿƥĺàţē\"],\"zQ1eT8\":[\"Ćàńďĩďàţē\"],\"zTAN4I\":[\"Śĺēēƥēŕ ĩďēńţĩƒĩēŕ\"],\"zXaTA9\":[\"Ḿĩśśĩńĝ ōƀśēŕvàţĩōńś ŕēḿàĩń ḿĩśśĩńĝ. Ţĥē ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx ĩś ńōţ ćĺĩńĩćàĺ ŔḾŚŚĎ.\"],\"zg_dr-\":[\"Ďũŕàţĩōńś ćōvēŕ śēǫũēńţĩàĺ Ƥŷţĥōń ŵōŕķ ţĥŕōũĝĥ ŕēśũĺţ ĝēńēŕàţĩōń. Ḿēḿōŕŷ ĩś ţĥē ĺàŕĝēśţ ƥŕōćēśś ĺĩƒēţĩḿē ƥēàķ. Ţĥēśē ḿēàśũŕēḿēńţś ēxćĺũďē ćōōŕďĩńàţōŕ àńď śćōŕĩńĝ ćōśţś àńď ďō ńōţ ēśţàƀĺĩśĥ ĺĩvē ĩńĝēśţĩōń ĥēàĺţĥ.\"]}")}; \ No newline at end of file +/*eslint-disable*/module.exports={messages:JSON.parse("{\"-7ESf_\":[\"Ńō śàvēď ćàńďĩďàţē ŕēvĩśĩōńś.\"],\"-8VQNP\":[\"Àŕćĥĩvē śćàń ćōḿƥĺēţē.\"],\"-A51pP\":[\"ńōţ ŕũń\"],\"-BcCfq\":[\"Ţĥē ƒũĺĺ-śćŕēēń ƀēď ōń ţĥē Ţēḿƥ śćŕēēń\"],\"-C2YDb\":[\"Ǫũēũē ƀàćķţēśţ\"],\"-HG8IU\":[\"Ēvēŕŷ ńĩĝĥţ ĩś ŕē-śćōŕēď ŵĩţĥ ţĥē ćũŕŕēńţ śţàĝē ŕũĺēś; ĥĩĝĥēŕ ĩś ƀēţţēŕ.\"],\"-LXyQ4\":[\"Ƥōď − Ŵàţćĥ ƥēŕ ńĩĝĥţ, ƀŷ ƀēď-ēńţŕŷ ďàţē. Ţĥē ĝōàĺ ĩś źēŕō; ďàśĥēď ĺĩńēś ḿàŕķ ƥŕōƒĩĺē ćĥàńĝēś.\"],\"-USBLd\":[\"Ēvàĺũàţĩōń ḿōďē\"],\"-VKOiQ\":[\"Ţĥĩś ćōḿƥàŕĩśōń ćàƥţũŕēś à ƒŕēśĥ śńàƥśĥōţ. Àń ōńĝōĩńĝ ŕũń ḿàŷ ĥàvē ḿōŕē ōƀśēŕvàţĩōńś ţĥàń ţĥē ēàŕĺĩēŕ ĥēàĺţĥ ŕēƥōŕţ.\"],\"-Yo_SK\":[\"Ţĥĩś ŕēƥōŕţ ƥŕēďàţēś ŕēƥĺàŷ ƥŕōćēśś ḿēàśũŕēḿēńţś.\"],\"-avT-V\":[\"Ćĩŕćũĺàţēś ŵàţēŕ ţō ćĺēàŕ àĩŕ ƒŕōḿ ţĥē ĺĩńēś\"],\"-gLagq\":[\"ŕēĺēàśēď\"],\"-mOi3A\":[\"Ƥŕēvĩēŵ ĩḿƥōŕţ\"],\"-pG9wc\":[\"Ńēxţ ŕēƒēŕēńćē ƥàĝē\"],\"-tMOt1\":[\"Ŕēśţōŕēď ţĥē ƥŕēvĩōũś ƥŕōƒĩĺē àńď ŕēǫũēśţēď ĩţ\"],\"-yvkzR\":[\"Ţĥĩś ŕēǫũēśţ ĥàś ƀēēń śũƥēŕśēďēď ƀŷ àńōţĥēŕ ƥŕōƒĩĺē ćĥàńĝē.\"],\"00b9Bg\":[\"Śĥōŵ ŕēćēńţ\"],\"03_grA\":[\"Ńō ƀàćķţēśţ ŷēţ. Ĩḿƥōŕţ à ŕēƒēŕēńćē ƒōŕ ţĥĩś śĩďē, ţĥēń ƒŕēēźē ńĩĝĥţś ţĥàţ ĥàvē ĩţ; ţĥē ŕēƥĺàŷ śćōŕēś ţĥē ƥŕēvĩōũś àńď śàvēď ƥŕōƒĩĺēś àĝàĩńśţ ĩţ. Ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"0ArZBq\":[\"Ŕēśàḿƥĺēś (200–5000)\"],\"0Ke-zM\":[\"Ńō ƥŕōśƥēćţĩvē ōƀśēŕvàţĩōń ţēḿƥĺàţēś àŕē ćōńƒĩĝũŕēď ōń ţĥĩś ƥōď.\"],\"0RiDQs\":[\"Ŕēƥōŕţ ĥàśĥ\"],\"0SoeWE\":[\"Ŵàĩţĩńĝ ƒōŕ à ŵōŕķēŕ àńď ŕēśōũŕćē àďḿĩśśĩōń. Ńō ēxēćũţĩōń ĩś ĩḿƥĺĩēď ƀŷ à ǫũēũēď ŕēǫũēśţ.\"],\"0TTMQ2\":[\"ƒŕōźēń \",[\"0\"],\" · \",[\"1\"]],\"0UEomc\":[\"Ŕēƒēŕēńćē ćōńţēńţ ĥàśĥ\"],\"0eWybM\":[\"Ćōḿḿōń-śũƥƥōŕţ ḿàćŕō Ƒ1 ďĩƒƒēŕēńćē: \",[\"0\"]],\"0fgSB_\":[\"Ŕēǫũēśţĩńĝ…\"],\"0g8Hrj\":[\"Śōũŕćē ḿēàśũŕēḿēńţś ďēĺēţēď\"],\"18DKey\":[\"Ĥōḿē Àśśĩśţàńţ ďĩśćōvēŕŷ\"],\"1E_-sY\":[\"Ţĥĩś ŕēƥōŕţĩńĝ ţĥŕēśĥōĺď ĩś ńōţ à vàĺĩďàţēď śàḿƥĺē-śĩźē ŕēǫũĩŕēḿēńţ. Ţōō ƒēŵ ōŕ ďēĝēńēŕàţē ńĩĝĥţś ŷĩēĺď ńō ĩńţēŕvàĺ.\"],\"1I5fPJ\":[\"Àḿƀĩĝũōũś ţĩḿēśţàḿƥś (ƀàśēĺĩńē / ćōḿƥàŕĩśōń)\"],\"1SxkbH\":[\"Ŕēvĩśĩōń \",[\"0\"],\"; àććēƥţēď \",[\"1\"],\"; ũńśćōŕàƀĺē \",[\"2\"]],\"1bs1Oi\":[\"Śţōŕàĝē ũśēď ōń ţĥē ƥōď\"],\"1gZYbz\":[\"Śĺēēƥ śţàĝēś\"],\"1gkwth\":[\"ćōvēŕēď\"],\"1gq8Fu\":[\"Ćĥàńĝēď vàĺũēś àŕē ŵĥĩţē; ţĥē ƥŕēvĩōũś ƥŕōƒĩĺē śĩţś ũńďēŕńēàţĥ. Ḿōvĩńĝ à ćōńţŕōĺ ēďĩţś ţĥē śàvēď ƥŕōƒĩĺē; śàvĩńĝ àĝàĩń ŕē-ŕēǫũēśţś ĩţ. Ţĥē ƥŕōćēśśōŕ àďōƥţś à ƥŕōƒĩĺē ōńĺŷ àƒţēŕ ĩţ àćķńōŵĺēďĝēś à ŕēǫũēśţ.\"],\"1m2ZjF\":[\"Ŵàĩţĩńĝ ƒōŕ à ƥŕōćēśśĩńĝ ƀōũńďàŕŷ\"],\"1njn7W\":[\"Ĺĩĝĥţ\"],\"1sMQW6\":[\"Ũńḿàţćĥēď ōƀśēŕvàţĩōńś\"],\"1zMPXx\":[\"Ţĥē śēŕvēŕ ćàƥţũŕēś ďēƒàũĺţ, ćũŕŕēńţ śţàĝē-vĩēŵ, àńď ćàńďĩďàţē ćōńƒĩĝũŕàţĩōńś àţ śũƀḿĩśśĩōń. Śţōŕēď ŕēàďĩńĝś ćàńńōţ vàĺĩďàţē ńũḿēŕĩćàĺ ƥàŕàḿēţēŕ ćĥàńĝēś.\"],\"22M8hi\":[\"Ũƥĺōàď Àƥƥĺē Ŵàţćĥ ďàţà ţō śēē ĥōŵ ƒàŕ ţĥĩś śĩďē'ś ŕēàďĩńĝś śĩţ ƒŕōḿ ţĥē Ŵàţćĥ, ńĩĝĥţ ƀŷ ńĩĝĥţ.\"],\"2Ek6a3\":[\"Ńēŵ ōƀśēŕvàţĩōń ƥĺàń\"],\"2FSnGH\":[\"Ŕēƒēŕēńćē àĝŕēēḿēńţ ćàĺćũĺàţēď.\"],\"2JsUDv\":[\"Ŕēśţōŕē àńď ŕēǫũēśţ\"],\"2KVdfN\":[\"Śţōƥ ŕēćōŕďēď\"],\"2LVKeT\":[\"Śēćōńď ĥàĺƒ ōƒ ēàćĥ ŵĩńďōŵ\"],\"2UtXoO\":[\"Ţĥē ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx ĩś ńōţ ćĺĩńĩćàĺ ƀēàţ-ţō-ƀēàţ ŔḾŚŚĎ. Ōńĺŷ ćōḿƥàţĩƀĺē ḿēţŕĩć ďēƒĩńĩţĩōńś àńď àĝĝŕēĝàţĩōń ŵĩńďōŵś àŕē śćōŕēď.\"],\"2X2m4_\":[\"ĥĩďē\"],\"2_xXFZ\":[\"Ōƀśēŕvàţĩōń ŕēǫũēśţ śàvēď: \",[\"saved\"],\". Ŕēvĩēŵ ĩţś śţàţũś ĩń ţĥē ŕũń ĺĩśţ; ēxēćũţĩōń ĩś ńōţ ĩḿƥĺĩēď.\"],\"2hjLDv\":[\"Ƥŕōƒĩĺē ŕēvĩśĩōńś ĥēŕē àŕē ćàńďĩďàţēś. Àƥƥĺŷĩńĝ ōńē ŕēǫũēśţś ĩţ ĺĩķē Śàvē àńď ŕēǫũēśţ ďōēś; ţĥē ōvēŕvĩēŵ śĥōŵś ŵĥēń ţĥē ƥŕōćēśśōŕ àćķńōŵĺēďĝēś ĩţ.\"],\"2kV8bg\":[\"Ĺàŕĝēśţ Ƥŷţĥōń ƥŕōćēśś ƥēàķ ḿēḿōŕŷ (Ḿĩß)\"],\"2q_goE\":[\"Ŕēĺēàśē ŕēţàĩńēď ĩńƥũţś\"],\"33IC49\":[\"Ƒàĥŕēńĥēĩţ ōŕ Ćēĺśĩũś àćŕōśś ţĥē àƥƥ\"],\"33aIUI\":[\"Ĺàŕĝēśţ ōƀśēŕvàţĩōń ĝàƥ: \",[\"0\"],\" śēćōńďś\"],\"33v1rN\":[\"Ćōḿƥàţĩƀĺē\"],\"39Atsr\":[\"Śţàĝē ŕēƥĺàŷ ũńàvàĩĺàƀĺē\"],\"3GkuKU\":[\"Ōƀśēŕvàţĩōń ćĺōćķś àŕē ĩńćōńśĩśţēńţ.\"],\"3PRxO3\":[\"Śţàĝē\"],\"3SR-aZ\":[\"Ĩńĥēŕĩţēď ďēƒàũĺţ\"],\"3burf-\":[\"Ŕēƥĺàŷ śàvēď ńĩĝĥţś àĝàĩńśţ à ƥŕōƒĩĺē\"],\"3cOQwy\":[\"Ĺàŕĝēśţ ōƀśēŕvàţĩōń ĝàƥ: \",[\"0\"],\" śēćōńďś.\"],\"3d05JT\":[\"Ćōḿƥàŕĩśōń śĥàŕēď ḾÀĒ\"],\"3kR70m\":[\"Śĥàŕēď ŕēƒēŕēńćē ƥàĩŕś: àćţĩvē \",[\"0\"],\", ćàńďĩďàţē \",[\"1\"],\".\"],\"3l8RWF\":[\"Ďēēƥ\"],\"3uHzkK\":[\"Ƥĩńńēď ćōńƒĩĝũŕàţĩōń àńď ōvēŕŕĩďēś\"],\"3zXtla\":[\"Ţēḿƥōŕàŕĩĺŷ ƥàũśē à śĺēēƥēŕ’ś ţŕàćķĩńĝ àńď àĺàŕḿś\"],\"4-hUpd\":[\"Ńēxţ ŕēƥōŕţ ńĩĝĥţś\"],\"40Gx0U\":[\"Ţĩḿēźōńē\"],\"40OXuf\":[\"Ŕēƒēŕēńćē śōũŕćē\"],\"446E9e\":[\"Ēxƥĺōŕàţōŕŷ ĩńţēŕvàĺ ēśţĩḿàţēď\"],\"4BjOe9\":[\"ćĺĩćķ à ńĩĝĥţ\"],\"4QTTLk\":[\"Ḿēḿōŕŷ śàḿƥĺēś: \",[\"0\"],\" ōƒ \",[\"1\"],\"; ĺàŕĝēśţ ĝàƥ: \",[\"2\"],\" śēćōńďś\"],\"4Xq3Qs\":[\"Ŕēƥĺàŷ śţàĝē ţŕàćēś\"],\"4ZsrjP\":[\"Ŕēvĩśĩōń \",[\"0\"],\" · \",[\"1\"],\" · \",[\"2\"]],\"4_5Byh\":[\"Ŕēƥōŕţ ţĥē ĩńďēx ōńĺŷ àƒţēŕ\"],\"4ajvlE\":[[\"0\"],\" ŕēćōŕďś\"],\"4ba0NE\":[\"Śćĥēďũĺēď\"],\"4cbaBq\":[\"Ćĩŕćĺēś àŕē ŕēćōḿƥũţēď ŕēàďĩńĝś; śǫũàŕēś àŕē ŕēƒēŕēńćē ƥōĩńţś; ĥōŕĩźōńţàĺ ƀàŕś àŕē ŕēƒēŕēńćē ĩńţēŕvàĺś. Ōńĺŷ ţĥē ţŵō ďĩśƥĺàŷēď ƥàĝēś àŕē śĥōŵń. Ţĥĩś vĩśũàĺ ōvēŕĺàŷ ďōēś ńōţ ćŕēàţē ńēŵ ḿàţćĥēď ƥàĩŕś ōŕ śćōŕēś.\"],\"4d-mVQ\":[\"Śţōŕēď vĩţàĺś: \",[\"0\"],\"; ḿōvēḿēńţ ŕēćōŕďś: \",[\"1\"]],\"4mi85N\":[\"Ŵàķē\"],\"4szmRA\":[\"Ēǫũàĺ-ńĩĝĥţ ďĩƒƒēŕēńćēś àńď ƥōōĺēď ďũŕàţĩōń śćōŕēś ũśē ďĩƒƒēŕēńţ ŵēĩĝĥţĩńĝ. Ćōvēŕàĝē ĺōśś ḿũśţ ƀē ćōńśĩďēŕēď àĺōńĝśĩďē śćōŕē ćĥàńĝēś.\"],\"4wjzfS\":[\"Ḿàćŕō Ƒ1\"],\"4ylXAL\":[\"Ƥŕōśƥēćţĩvē ōƀśēŕvàţĩōń ŕēƥōŕţ\"],\"5-4l5i\":[\"Ũƥďàţē ćĥàńńēĺ\"],\"51-xfW\":[\"Ţĩḿēś śĥōŵń ĩń \",[\"timezone\"]],\"51WyWB\":[\". Śēƥàŕàţē ƒŕōḿ ţĥē ƥŕōƒĩĺē.\"],\"563t94\":[\"Ńēxţ àŕćĥĩvē ƥàĝē\"],\"5716sl\":[\"Ţŕàćē ćōńƒĩĝũŕàţĩōń\"],\"5BvHkO\":[\"Ƥŕēvĩōũś ńũḿēŕĩć ƥàĝē\"],\"5Mc__K\":[\"Ƥŕēƥàŕē à ńēŵ ŕēǫũēśţ ŵĩţĥ ţĥē ćũŕŕēńţ ƀàśēĺĩńē\"],\"5ZoFxn\":[\"Ţĥŕēśĥōĺďś àŕē ƥàŕţ ōƒ ţĥĩś ēxƥēŕĩḿēńţ. Śũƥƥĺŷĩńĝ ţĥŕēśĥōĺďś ďōēś ńōţ ǫũàĺĩƒŷ à ƥŕōḿōţĩōń ƥōĺĩćŷ.\"],\"5_rcZN\":[\"Ćàńďĩďàţē śàvēď: \",[\"saved\"]],\"5doABu\":[\"Àũţō-ōń\"],\"5jKV9V\":[\"ĵōƀ ďēţàĩĺś\"],\"5pWEdW\":[\"Ţĥēśē śćōŕēś ćōḿƥàŕē ŕēàďĩńĝś ŕēćōḿƥũţēď ƒŕōḿ ŕēţàĩńēď ŵàvēƒōŕḿś. Śĥàŕēď-ţĩḿēśţàḿƥ śćōŕēś ũśē ōƀśēŕvàţĩōńś àvàĩĺàƀĺē ĩń ēvēŕŷ ćōńƒĩĝũŕàţĩōń. Ďĩƒƒēŕēńćēś ďēśćŕĩƀē àĝŕēēḿēńţ ŵĩţĥ ţĥē ŕēƒēŕēńćē àńď ďō ńōţ ēśţàƀĺĩśĥ vàĺĩďàţēď ĩḿƥŕōvēḿēńţ.\"],\"5uuxPO\":[\"Śōḿē ĥēàĺţĥ ēvĩďēńćē ĩś ũńàvàĩĺàƀĺē ōŕ ćĥàńĝēď ǫũàĺĩƒĩćàţĩōń ďũŕĩńĝ ēxēćũţĩōń.\"],\"60ebf_\":[\"ŚŚĤ ĩďēńţĩţŷ\"],\"6C5LWh\":[\"Ƥōď ĥēàĺţĥ àńď ďĩàĝńōśţĩćś\"],\"6KrHKt\":[\"Ĩďēńţĩćàĺ ţō ţĥē śàvēď ƥŕōƒĩĺē; ŕēśţōŕĩńĝ ōńĺŷ ŕē-ŕēǫũēśţś ĩţ.\"],\"6Njx8W\":[\"Ŕēàďĩńĝ ŔÀŴ àŕćĥĩvēś · \",[\"0\"],\" / \",[\"1\"]],\"6Pvtlo\":[\"ĤŔ ēŕŕōŕ · ĥōĺďōũţ\"],\"6RQpjn\":[\"Ćàńćēĺĺàţĩōń ŕēǫũēśţēď\"],\"6_cgQY\":[\"Ŕēƥŕōďũćĩƀĺē śàḿƥĺĩńĝ śēēď\"],\"6_dCYd\":[\"Ōvēŕvĩēŵ\"],\"6o-CER\":[\"ƒŕēśĥńēśś ũńķńōŵń\"],\"6qR6Df\":[\"Śōũŕćē / ŕēvĩśĩōń\"],\"6tj-Z0\":[\"Ńēŵēśţ ƥŕōƒĩĺēś\"],\"6uwzJJ\":[\"ßàćķţēśţś\"],\"71Z__Z\":[\"Vàĺĩďàţēď àćţĩvàţĩōń\"],\"7BI5x7\":[\"Ōvēŕŕĩďē ĩńţēńţ ćàń ćĥàńĝē ēvēń ŵĥēń ţĥē ŕēśōĺvēď vàĺũē śţàŷś ţĥē śàḿē.\"],\"7Bj3x9\":[\"Ƒàĩĺēď\"],\"7Hnopa\":[\", ŵĩţĥ 1 ōvēŕŕĩďē\"],\"7L3hkB\":[\"Ēxàćţ ńōŕḿàĺĩźēď ţĩḿēśţàḿƥś àŕē śĥōŵń ĩń ŨŢĆ. Vàĺũēś àŕē ńōţ ĩńţēŕƥōĺàţēď.\"],\"7Moz13\":[\"Śàvēď ƥŕōƒĩĺē àĝàĩńśţ ƥŕēvĩōũś\"],\"7T4D_c\":[\"Ŕēàďĩńĝś ōũţśĩďē ţĥēśē ĺĩḿĩţś àŕē ĩĝńōŕēď\"],\"7hw71T\":[\"Ŕàŵ śēńśōŕ śţŕēàḿś\"],\"7l15X4\":[\"ƒàĩĺēď\"],\"7l_Tjk\":[[\"stages\"],\" śĺēēƥ-śţàĝē vàĺũēś\"],\"7m2vSb\":[\"Ŵĥĩĺē àń àĺàŕḿ ĩś ŕĩńĝĩńĝ\"],\"7oRNr7\":[\"Ŵĥàţ à ţàƥ ďōēś ţō à ŕĩńĝĩńĝ àĺàŕḿ\"],\"7qeI1z\":[\"Ƥĩńńēď ēvàĺũàţĩōń ƥŕōţōćōĺ\"],\"7qftNU\":[\"Ŕēĺēàśē ďēţàĩĺēď ŕēƥōŕţ\"],\"7vEC4B\":[\"ćũŕŕēńţ\"],\"8-x9lY\":[\"Ḿĩĝŕàţēď śĺēēƥ-śţàĝē śēţţĩńĝś ĩńţō ţĥē ƥŕōƒĩĺē\"],\"8CnPMu\":[\"ĤŔV ḾÀĒ / ƀĩàś (\",[\"0\"],\")\"],\"8TIz1S\":[\"Ńō ŕēćōŕďēď ńĩĝĥţś ƒōŕ ţĥĩś śĩďē.\"],\"8Whu0n\":[\"Ţōō ƒēŵ ĩńďēƥēńďēńţ ńĩĝĥţś ƒōŕ à vàĺĩďàţĩōń śƥĺĩţ; ďēśćŕĩƥţĩvē ēvàĺũàţĩōń ōńĺŷ.\"],\"8ZSsNo\":[\"Àďďś ţĥē ƥōď ţō Àƥƥĺē Ĥōḿē. Ĺōćàĺ-ōńĺŷ — ńō Àƥƥĺē śēŕvēŕś.\"],\"8f8vg9\":[\"Ţĥē śēŕvēŕ ĝŕōũƥś ćōńńēćţēď śēśśĩōńś ĩńţō ŵĥōĺē ńĩĝĥţś ĩń ţĥē ďēvĩćē ţĩḿēźōńē ƀēƒōŕē àśśĩĝńĩńĝ ţũńĩńĝ, vàĺĩďàţĩōń, àńď ĥōĺďōũţ śēţś. À śƥĺĩţ ĩś ńōţ ēvĩďēńćē ōƒ ĩḿƥŕōvēḿēńţ.\"],\"8f9lK-\":[\"Ńēxţ śēśśĩōń ƀōũńďàŕŷ\"],\"8hxWfI\":[\"Ńō ḿàţćĥĩńĝ ōƀśēŕvàţĩōńś.\"],\"8kkt--\":[\"Ćōḿƥàŕē ŕēƒēŕēńćē\"],\"8lcee1\":[\"Ōvēŕŕĩďďēń\"],\"8m8FBC\":[\"Śţàŕţ ƒŕōḿ ćũŕŕēńţ ƥŕōƒĩĺē\"],\"8nOcxV\":[\"Ēxēćũţĩōń ćōḿƥĺēţēď\"],\"8pq43b\":[\"ĤŔV ĩńďēx ēŕŕōŕ\"],\"8vYOP0\":[\"Ĩḿḿēďĩàţē ƥŕōćēśśĩńĝ ƀōũńďàŕŷ\"],\"8wngZM\":[\"Ƒàĺĺƀàćķ\"],\"8wu9lr\":[\"Ǫũēũēď\"],\"8xEouR\":[\"Ĥōĺďōũţ ĩś ţĥē ńũḿƀēŕ ţō ţŕũśţ; ţũńĩńĝ ńĩĝĥţś ŵēŕē ũśēď ţō ƥĩćķ ţĥēśē vàĺũēś.\"],\"92LEHj\":[\"Ũśēď ōń ţĥē Ţēḿƥ śćŕēēń ōƒ ţĥĩś ďēvĩćē\"],\"9HGU1A\":[\"Ōũţƥũţ ḿĩńũţēś\"],\"9KnPbi\":[\"Ćōḿƥàŕĩśōń ŕēƥōŕţ ĥàśĥ\"],\"9RckBe\":[\"Ĥēĺĺō, ţŔƤĆ ţēśţ ƥàĝē!\"],\"9S8_IK\":[\"Ŕēţàĩńēď ĩńƥũţ ĩńţēĝŕĩţŷ ćĥēćķēď ƀŷ ţĥē śēŕvēŕ.\"],\"9Xwfwj\":[\"Ńō ŕēƒēŕēńćēś śēĺēćţēď. Ţĥĩś ďàţàśēţ ćàńńōţ ēśţàƀĺĩśĥ àĝŕēēḿēńţ ŵĩţĥ ŕēƒēŕēńćē ḿēàśũŕēḿēńţś.\"],\"9aloPG\":[\"Ŕēƒēŕēńćēś\"],\"9dnk8H\":[\"Ţĥĩś ĩś ţĥē ŕēţàĩńēď ēvàĺũàţĩōń ŕēśũĺţ, ńōţ ćũŕŕēńţ àćţĩvàţĩōń àƥƥŕōvàĺ ōŕ ćĺĩńĩćàĺ àććũŕàćŷ. Àƥƥĺĩćàţĩōń ćĥēćķś ćũŕŕēńţ ēvĩďēńćē àńď śēţţĩńĝś àĝàĩń.\"],\"9fUe-g\":[\"Ńō ēvàĺũàţēď ćōńƒĩĝũŕàţĩōń ĩś àvàĩĺàƀĺē.\"],\"A1Aqyj\":[\"ßŕēàţĥĩńĝ ŕàţē\"],\"A1taO8\":[\"Śēàŕćĥ\"],\"A6mP7J\":[\"Ōƥēńś ţĥē ďōćś ĩń à ńēŵ ţàƀ\"],\"A8uc8S\":[\"Ƒŕōźēń śţàĝē ōƀĴēćţĩvē ţĥŕēśĥōĺďś\"],\"ABXRh6\":[\"Ďĩśķ ũśàĝē àńď ŕēćōŕďĩńĝ\"],\"ALIxuu\":[\"Śēĺēćţēď ŕēƒēŕēńćē ŕēvĩśĩōńś: \",[\"0\"],\" / 20\"],\"ASwFip\":[\"Śţàĝē ćàĺĩƀŕàţĩōń ǫũàĺĩţŷ ĩś àń ēxƥĺĩćĩţ ŕēƥĺàŷ àśśũḿƥţĩōń, ńōţ à ŕēćōvēŕēď śēńśōŕ ḿēàśũŕēḿēńţ. Śţōŕēď-ŕēàďĩńĝ ćōḿƥàŕĩśōń ďōēś ńōţ ţēśţ ńũḿēŕĩćàĺ ƥàŕàḿēţēŕ ćĥàńĝēś.\"],\"AZtrRp\":[\"ßàćķţēśţ Ĵōƀś\"],\"AeJ9jx\":[\"ßŕĩĝĥţńēśś ōƒ ţĥē ƥōď’ś ĺĩĝĥţ\"],\"AlrzpB\":[\"Ţĥē ōƀśēŕvàţĩōń ĝàƥ ēxćēēďēď ţĥē ƥĺàńńēď ĺĩḿĩţ.\"],\"Apj80l\":[\"Ōƀśēŕvēď ĩśśũēś ńēēď ŕēvĩēŵ.\"],\"Aws57Q\":[\"Ōĺďēŕ ĩḿƥōŕţś\"],\"AxM6wv\":[\"Ŕēƥōŕţ ēvĩďēńćē\"],\"B2rx0Y\":[\"Ķēēƥ śàvēď ƥŕōƒĩĺē\"],\"B5W0zb\":[\"Ţĥēśē śćōŕēś ćōḿƥàŕē ōŕĩĝĩńàĺ śţōŕēď ŕēàďĩńĝś. Ĩďēńţĩćàĺ ńũḿēŕĩćàĺ ŕēśũĺţś àćŕōśś ƥŕōƒĩĺēś ďō ńōţ vàĺĩďàţē ńũḿēŕĩćàĺ ƥàŕàḿēţēŕ ćĥàńĝēś.\"],\"BGoUTB\":[\"Ŕēƒēŕēńćē ēxţēńţ: \",[\"start\"],\" ţō \",[\"end\"],\" (\",[\"timezone\"],\")\"],\"BHqq1y\":[\"Ŕēţŕŷ śàḿē śćĥēďũĺĩńĝ ŕēǫũēśţ\"],\"BMx22g\":[\"Ŕēƒēŕēńćē ŕēćōŕďś \",[\"0\"],\"–\",[\"1\"],\" ōƒ \",[\"2\"]],\"BXW6e-\":[\"Ũńàvàĩĺàƀĺē ōŕ ƀēĺōńĝś ţō à ďĩƒƒēŕēńţ śĺēēƥēŕ.\"],\"Bb1uwv\":[\"Ńō Ŵàţćĥ ƥàĩŕś ĩń ţĥēśē ńĩĝĥţś\"],\"BuBE8H\":[\"Śĩĝńàĺ ŕēƥĺàŷ ũńàvàĩĺàƀĺē: ŕàŵ ŵàvēƒōŕḿś àńď ƥŕōćēśśĩńĝ ćōńţēxţ ĥàvē ńōţ ƀēēń ŕēţàĩńēď ƀŷ ţĥĩś śēŕvĩćē.\"],\"BvyPVP\":[\"Ţēḿƥēŕàţũŕē ćũŕvēś, ƥōŵēŕ àńď àĺàŕḿś\"],\"BxeSfv\":[\"Ƥŕēvĩōũś ŕēƒēŕēńćē ƥàĝē\"],\"C0vtfT\":[\"Ńō àććēƥţēď ţĩḿē ŕàńĝē.\"],\"CLYcpa\":[\"Vàĺĩďàţĩōń ēxćĺũśĩōńś\"],\"CLfuqo\":[\"Ńēŵēśţ ēxƥēŕĩḿēńţś\"],\"CWrY1e\":[\"Śēĺēćţēď àŕćĥĩvēś ƒōŕ ţĥĩś ńĩĝĥţ: \",[\"0\"],\" / 64\"],\"Cc0BhR\":[\"Àććēƥţ àń ēśţĩḿàţē ŵĥēń ĩţ ĩś ŵĩţĥĩń\"],\"CdAsLU\":[\"Ĺōŵ-śĩĝńàĺ ćàĺĩƀŕàţĩōń ǫũàĺĩţŷ ţĥŕēśĥōĺď\"],\"CdAt7D\":[\"Ĺĩĝĥţ ōŕ ďàŕķ àƥƥēàŕàńćē\"],\"Ci9D6l\":[\"Ĩḿƥōŕţ ŕēƒēŕēńćē\"],\"Cie-li\":[\"Ƥŕōśƥēćţĩvē ōƀśēŕvàţĩōńś\"],\"CjIZ1O\":[\"Ŵōŕķēŕ ĥēàĺţĥ ōƀśēŕvàţĩōńś àŕē śţàĺē.\"],\"CvehYe\":[\"Ũńḿàţćĥēď ŕēƒēŕēńćēś\"],\"Cy6Gb9\":[\"Śĥàŕēď ōƀśēŕvàţĩōńś\"],\"CyzcAv\":[\"Ƥŕēvĩēŵ ńōŕḿàĺĩźēď ŕēćōŕďś ƀēƒōŕē śàvĩńĝ ţĥēḿ ōń ţĥē ƥōď.\"],\"D32Y23\":[\"ŚĹĒĒƤ ŚŢÀĜĒŚ\"],\"DDb_NZ\":[\"Ďàţàśēţ ńĩĝĥţś\"],\"DFyeaF\":[\"Ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx\"],\"DHhJ7s\":[\"Ƥŕēvĩōũś\"],\"DIrJXu\":[\"Śĩĝńàĺ ĺĩḿĩţś\"],\"DPHzQ9\":[\"Śàvēď ƥŕōƒĩĺē ŕēvĩśĩōńś\"],\"DPb-qk\":[\"Ēďĩţĩńĝ ƒŕōḿ ţĥē ćũŕŕēńţĺŷ śàvēď ƥŕōƒĩĺē.\"],\"DSphLX\":[\"Ōƀśēŕvēď ƥŕōćēśś-ĝŕōũƥ ƥēàķ ŔŚŚ: \",[\"0\"],\" Ḿĩß\"],\"DWGgAw\":[\"Ĺĩńķĩńĝ Ŵàţćĥ ďàţà àĺŕēàďŷ ōń ţĥē ƥōď…\"],\"DXPGRI\":[\"Śēţţĩńĝ ũƥ ţĥē ŕēƥĺàŷ…\"],\"DnDpLH\":[\"Ĩńśƥēćţ ćàńďĩďàţē ćĥàńĝēś\"],\"Dr_Xtk\":[[\"title\"],\": ḾÀĒ àńď ƀĩàś ƥēŕ ńĩĝĥţ, ƥōď ḿĩńũś Ŵàţćĥ, ĩń \",[\"unit\"],\".\",[\"0\"]],\"Dt8YN3\":[\"Ēǫũàĺ-ńĩĝĥţ ḿēàń àĝŕēēḿēńţ ďĩƒƒēŕēńćē: \",[\"0\"]],\"DtefQU\":[[\"0\"],\" \",[\"1\"],\": ƥŕēvĩōũś \",[\"2\"],\", śàvēď \",[\"3\"],\" ƀƥḿ\"],\"E1wNkc\":[\"ßŕēàţĥĩńĝ ŕàţē (ƀŕēàţĥś/ḿĩń)\"],\"E3rH0L\":[\"Ńĩĝĥţś àś à ţàƀĺē\"],\"E8ws29\":[\"Ēàćĥ ńĩĝĥţ'ś ĥēàŕţ ŕàţē àĝàĩńśţ ţĥē ŕēƒēŕēńćē àƥƥēàŕś ĥēŕē ōńćē à ƀàćķţēśţ ĥàś ŕũń.\"],\"EF4ZiR\":[\"Ōũţƥũţ ćōvēŕàĝē\"],\"EI1f8X\":[\"Ţĥē śàvēď ƥŕōƒĩĺē ōŕ ƥàŕàḿēţēŕ ďēƒĩńĩţĩōńś àŕē ĩńćōḿƥàţĩƀĺē ŵĩţĥ ţĥĩś ēďĩţōŕ.\"],\"EN1f1Y\":[\"Ēxēćũţĩōń śţàţē ĩś śēƥàŕàţē ƒŕōḿ ţĥē śţŕēńĝţĥ ōƒ ƀĩōḿēţŕĩć ēvĩďēńćē.\"],\"E_GXXi\":[\"ĺàţēśţ \",[\"0\"]],\"EdQY6l\":[\"Ńōńē\"],\"Ef7StM\":[\"Ũńķńōŵń\"],\"EfcF_P\":[\"Ţĥĩś ĩś ţĥē ƒĩŕśţ-ţō-ĺàśţ ŕēćōŕď śƥàń, ńōţ ćōńţĩńũōũś ćōvēŕàĝē ōŕ ōvēŕĺàƥ ŵĩţĥ ƥōď ŕēàďĩńĝś.\"],\"Eine1d\":[\"Ćĺōćķś àćŕōśś ţĥē àƥƥ; śćĥēďũĺēď ţĩḿēś àŕē ũńćĥàńĝēď\"],\"EjJl4z\":[\"Ŕēćàĺĺ\"],\"EkEvjV\":[\"Ĩḿƥōŕţ àććēƥţēď ŕēćōŕďś àńď ōḿĩţ ŕēĴēćţēď ŕēćōŕďś\"],\"El6Jsd\":[\"Ēvàĺũàţĩōń ƥŕōţōćōĺ\"],\"EmSrGB\":[\"ßēƒōŕē\"],\"Emmy17\":[\"Ḿàxĩḿũḿ ŵĩńďōŵ: \",[\"0\"],\" ḿĩńũţēś.\"],\"EoaBI7\":[\"Ƥŕōćēśśōŕ ŕēĴēćţēď ĝēńēŕàţĩōń \",[\"0\"]],\"EwH7gh\":[\"Ƥēŕ-śţàĝē śćōŕēś ōń ćōḿḿōń ƥàĩŕēď ĩńţēŕvàĺś\"],\"F6pfE9\":[\"Àćţĩvē\"],\"FB0rkn\":[\"Ŕēƥōŕţ ńō ĥēàŕţ ŕàţē ŵĥēń ţĥē ƀēàţ śĩĝńàĺ śćōŕēś ƀēĺōŵ\"],\"FEr96N\":[\"Ţĥēḿē\"],\"FFdrAM\":[\"Ēďĩţĩńĝ ƒŕōḿ ŕēvĩśĩōń \",[\"revisionId\"]],\"FOSd8f\":[\"Ţũŕńś à śĩďē ōń ōńćē ŷōũ’vē śēţţĺēď ĩńţō ƀēď\"],\"FVmZD9\":[\"ßĩōḿēţŕĩć ćàĺĩƀŕàţĩōń śĩďē\"],\"FYh4VX\":[\"Ţĥē ŕēǫũēśţ ćōũĺď ńōţ ƀē śàvēď ƒōŕ ŕēćōvēŕŷ. Ţĥĩś àţţēḿƥţ ŵàś ńōţ śēńţ. Ķēēƥ ţĥĩś ţàƀ ōƥēń àńď ŕēţŕŷ ţĥē śàḿē ŕēǫũēśţ.\"],\"FhWkbT\":[\"Ƥēŕḿàńēńţĺŷ ďēĺēţē ĩḿƥōŕţ\"],\"FlMg9W\":[\"Ƥŕēćĩśĩōń\"],\"FsHaTL\":[\"Ḿēďĩàń àƀśōĺũţē ēŕŕōŕ\"],\"G6a5fj\":[\"Àńōţĥēŕ ŕēvĩśĩōń ƒŕōḿ ţĥĩś ŕēƒēŕēńćē ƒàḿĩĺŷ ĩś śēĺēćţēď.\"],\"GJlW-e\":[\"Ŕēƒēŕēńćē ćōvēŕàĝē ũśĩńĝ ēàćĥ ōũţƥũţ: àćţĩvē \",[\"0\"],\", ćàńďĩďàţē \",[\"1\"],\".\"],\"GKXsLn\":[\"Ćōḿƥàŕē à ćàńďĩďàţē àĺōńĝśĩďē àćţĩvē ƥŕōćēśśĩńĝ. Ōƀśēŕvàţĩōńś ďō ńōţ ćĥàńĝē ŷōũŕ àćţĩvē ƥŕōƒĩĺē.\"],\"Gi3Y4k\":[\"ƀƥḿ\"],\"GnvYuO\":[\"Ŕēḿōvē śēśśĩōń \",[\"id\"]],\"GqVSI2\":[\"Ćĥōōśē à śţàŕţ ţĩḿē ĩń ţĥē ƒũţũŕē.\"],\"GrimP8\":[\"ŕàńĝē\"],\"GuCB02\":[\"Ţŕàćē ĩďēńţĩţŷ ďōēś ńōţ ḿàţćĥ ţĥē śēĺēćţēď ŕēƥōŕţ.\"],\"H07LNp\":[\"Ďàţàśēţ śàvēď: \",[\"0\"]],\"H5aped\":[\"Ţĥĩś ƀàćķţēśţ ćōḿƥàŕēď śţōŕēď ŕēàďĩńĝś, śō ţĥēŕē ĩś ńō ŕēćōḿƥũţēď ĥēàŕţ-ŕàţē ţŕàćē ţō ďŕàŵ.\"],\"HF2Z8Y\":[\"ţēśţēď ōń śàvē\"],\"HKbCf-\":[\"Ńĩĝĥţ-ƀŷ-ńĩĝĥţ śĺēēƥ, śţàĝēś àńď śćōŕē\"],\"HTxS9y\":[\"Ƒēĺĺ ƀàćķ ţō à ćōḿƥàţĩƀĺē ƥŕōƒĩĺē\"],\"HYPLOV\":[\"Ƒĩxēď ōƒƒśēţ àďďēď ţō ƥōď ţĩḿēśţàḿƥś (ḿś, ±3600000)\"],\"H_LZii\":[\"Ĺōćàĺ ōńĺŷ ķēēƥś ţĥē ƥōď ƒŕōḿ ŕēàćĥĩńĝ ēxţēŕńàĺ śēŕvēŕś\"],\"HaVLYE\":[\"ĤŔ ēŕŕōŕ · vàĺĩďàţĩōń\"],\"Hd_IYa\":[\"Śĺēēƥ śţàĝēś: Ćōĥēń'ś ķàƥƥà àĝàĩńśţ ţĥē Ŵàţćĥ ƥēŕ ńĩĝĥţ, 1 ĩś ƒũĺĺ àĝŕēēḿēńţ.\",[\"0\"]],\"Hdrvsg\":[\"Ŕēƒēŕēńćē ćōḿƥàŕĩśōń ĩś ĺĩḿĩţēď ţō à 64 Ķĩß ŕēǫũēśţ.\"],\"HfaYRx\":[\"Ţĥĩś ţàƀ ŕēţàĩńś ţĥē ēxàćţ śćĥēďũĺĩńĝ ŕēǫũēśţ àćŕōśś ŕēĺōàďś ũńţĩĺ ĩţś ōũţćōḿē ĩś ćōńƒĩŕḿēď. Ŕēţŕŷ ďōēś ńōţ ƥŕēƥàŕē à ńēŵ ƥĺàń.\"],\"Hhh7ZU\":[\"Ńēŵ àŕćĥĩvē ŵōŕķ ĩś ćũŕŕēńţĺŷ ďēƒēŕŕēď.\"],\"Hk1yRc\":[\"Ĥĩĝĥēŕ àĝŕēēḿēńţ: \",[\"0\"],\"; ĺōŵēŕ: \",[\"1\"],\"; ũńćĥàńĝēď: \",[\"2\"]],\"Hk3J5p\":[\"Ńō Ŵàţćĥ śţàĝēś ĩń ţĥēśē ńĩĝĥţś\"],\"HkvZuh\":[\"Ĥōŵ ĥēàŕţ-ŕàţē ēśţĩḿàţēś àŕē àććēƥţēď àńď ţŕàćķēď\"],\"HlUTnv\":[\"Ƒŕōźēń śōũŕćē ŕēćōŕďś ĩń ŨŢĆ; ĩńćōḿƥàţĩƀĺē ŕēćōŕďś àŕē ĺĩśţēď ƀũţ ńōţ ƥĺōţţēď\"],\"HqdcAB\":[\"Ƥàśţē ĵŚŌŃ ŕēćōŕďś ōŕ ĆŚV ŵĩţĥ ŕēćōŕďĶēŷ, ḿēţŕĩć, vàĺũē, ũńĩţ, àńď ţĩḿēśţàḿƥ (ōŕ śţàŕţ àńď ēńď). Ũśē ōƒƒśēţ-ƀēàŕĩńĝ ĨŚŌ ţĩḿēś ōŕ Ũńĩx ḿĩĺĺĩśēćōńďś. Ţĥĩś ćōḿƥàŕĩśōń ďōēś ńōţ śàvē à ŕēƒēŕēńćē ĩḿƥōŕţ.\"],\"HrBFhl\":[\"Ćōḿƥàŕēď\"],\"HwYvvX\":[\"Ţĥē śţōƥ ŕēǫũēśţ ĩś ŕēćōŕďēď. Śàvēď ōƀśēŕvàţĩōńś àŕē ƥŕēśēŕvēď.\"],\"IABgNx\":[\"ḾǪŢŢ ƀŕĩďĝē\"],\"IH1KJg\":[\"Ćōḿḿōń-śũƥƥōŕţ àĝŕēēḿēńţ ďĩƒƒēŕēńćē: \",[\"0\"]],\"IJi09X\":[\"Ŵĥēŕē śćĥēďũĺēś àńď ńĩĝĥţś àŕē àńćĥōŕēď\"],\"ITWmk6\":[\"Ēŕŕōŕś ũśē ţĥē ḿēţŕĩć ũńĩţ. Ŕēƒēŕēńćē ƥàĩŕś àŕē ŵēĩĝĥţēď ēǫũàĺĺŷ ŵĩţĥĩń ēàćĥ ńĩĝĥţ; ńĩĝĥţś àŕē ŵēĩĝĥţēď ēǫũàĺĺŷ ĩń ţĥē ḿēàń ďĩƒƒēŕēńćē. Ƥōōĺēď śćōŕēś ŵēĩĝĥţ àĺĺ ŕēƒēŕēńćē ƥàĩŕś ēǫũàĺĺŷ.\"],\"IZ_SI-\":[\"Ƥōōĺēď śĥàŕēď ḾÀĒ — ƀàśēĺĩńē: \",[\"0\"],\"; ćōḿƥàŕĩśōń: \",[\"1\"]],\"I_qUhg\":[\"Ďēvĩàţĩōń ŵĩńďōŵ\"],\"Iec0GZ\":[\"Ŕēƒēŕēńćē ĩńţēŕvàĺś\"],\"IftrVb\":[\"Ƒŕōźēń ŕēƒēŕēńćē ōvēŕĺàŷ\"],\"Ih-_r5\":[\"Ƥŕēvĩōũś ŕēƥōŕţ ńĩĝĥţś\"],\"Ii14KX\":[\"Ēxēćũţĩōń ćōḿƥĺēţēď. Ŕēvĩēŵ ţĥē ŕēƥōŕţ ƀēƒōŕē ďŕàŵĩńĝ ćōńćĺũśĩōńś àƀōũţ àĝŕēēḿēńţ ōŕ ĩḿƥŕōvēḿēńţ.\"],\"Im5Crw\":[\"Ƥŕōţōćōĺ ĥàśĥ\"],\"J3ozEn\":[\"Ƥŕōćēśśĩńĝ ŕũń\"],\"J8ILQE\":[\"Śţàŕţ (ŨŢĆ)\"],\"JDyznv\":[\"Ŕēţàĩńēď ŵàvēƒōŕḿ ŕēƥĺàŷ\"],\"JKzmi4\":[\"Ţĥē ŕēţàĩńēď ĩńƥũţś àŕē ũńàvàĩĺàƀĺē ƒōŕ ńēŵ ēvàĺũàţĩōńś.\"],\"JQ7IOd\":[\"Ĩńƥũţś ŕēĺēàśēď; ḿēţàďàţà ŕēţàĩńēď\"],\"JQU3qt\":[\"Ĩńśƥēćţ ńũḿēŕĩć ţŕàćēś\"],\"JRpbpv\":[\"Ćōḿƥàŕĩśōń ŕēǫũēśţś àŕē ĺĩḿĩţēď ţō 64 Ķĩß àńď 2000 ŕēćōŕďś.\"],\"JaKl6i\":[\"Ĥ ĥōĺďōũţ\"],\"JfPdso\":[\"Ŕēƥōŕţ ĩďēńţĩţŷ\"],\"Jh5xi1\":[\"Ƥũḿƥ, ŵàţēŕ àńď ƒĩŕḿŵàŕē śţàţē\"],\"Jk2iNN\":[\"Ēvàĺũàţĩōń śƥĺĩţ\"],\"JoL8Rk\":[\"Ţĥē ƥĺàń ćōũĺď ńōţ ƀē ƥŕēƥàŕēď. Ćĥēćķ ţĥē śēĺēćţēď ƥŕōƒĩĺē, ŵĩńďōŵ àńď ĩńśţàĺĺēď ǫũàĺĩƒĩćàţĩōń.\"],\"JqNzWV\":[\"Ƒŕōźē à ďàţàśēţ ōƒ \",[\"0\"],\" ńĩĝĥţś\"],\"Jq_0cU\":[\"Śĩďē ńàḿē\"],\"Jsh4sU\":[\"Ƥŕēďĩćţēď ḿĩńũţēś\"],\"JtkCxN\":[\"Śţàĝē ďēţàĩĺś àŕē ũńàvàĩĺàƀĺē ōŕ ĩńćōḿƥàţĩƀĺē.\"],\"JvflkO\":[\"Ōĺďēŕ ńĩĝĥţś\"],\"JyC-qp\":[\"Śōũŕćē ćĥàńńēĺ\"],\"JzH2wX\":[\"ĤŔV\"],\"K2uv7O\":[\"Śēŕvĩćē ĥēàĺţĥ àńď ţĥē ĺĩvē śēńśōŕ ƥĩƥēĺĩńē\"],\"K6QhkO\":[\"Ńō ŵōŕķēŕ ḿēḿōŕŷ ōƀśēŕvàţĩōń ĩś àvàĩĺàƀĺē.\"],\"KB9NWO\":[\"Śćĥēďũĺĩńĝ ŕēćōvēŕŷ ĩś ũńàvàĩĺàƀĺē ōŕ ĩńvàĺĩď. Ŕēvĩēŵ ēxĩśţĩńĝ ŕũńś ƀēƒōŕē ćĺēàŕĩńĝ ţĥĩś ţàƀ’ś śēśśĩōń ďàţà; àń ēàŕĺĩēŕ ŕēǫũēśţ ḿàŷ ĥàvē ƀēēń śàvēď ōń ţĥē ƥōď.\"],\"KFB8Et\":[[\"w\"],\" ď\"],\"KFwvG_\":[\"Ćōvēŕàĝē ēśţĩḿàţēś ũśē ńōḿĩńàĺ ŕēćōŕďĩńĝ ćàďēńćē; ţĥēŷ ďō ńōţ ƥŕōvē ćōńţĩńũōũś śĩĝńàĺ śũƥƥōŕţ.\"],\"KOq34a\":[\"ŵĥēń\"],\"KUj43p\":[\"Ćōḿḿōń ƥàĩŕēď ḿĩńũţēś: \",[\"0\"]],\"KUjOb9\":[\"ŕũńńĩńĝ\"],\"KWfkdX\":[\"Ćàńďĩďàţē ŕēvĩśĩōń \",[\"0\"],\": \",[\"1\"]],\"K_F6pa\":[\"Śàvĩńĝ…\"],\"KmaXMK\":[\"Ŵàţćĥ ŚĎŃŃ, Ŵàţćĥ ŔḾŚŚĎ àńď śĺēēƥŷƥōď’ś ŵĩńďōŵ-ƀàśēď ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx ũśē ďĩƒƒēŕēńţ ćàĺćũĺàţĩōńś. Ţĥēŷ ćàńńōţ ƀē ďĩŕēćţĺŷ ćōńvēŕţēď; ćōḿƥàŕē ţĥēĩŕ ţŕēńďś, ńōţ ţĥēĩŕ àƀśōĺũţē vàĺũēś.\"],\"Ksal0J\":[\"Ńēxţ ńũḿēŕĩć ƥàĝē\"],\"Kvt2s_\":[\"Ďēĺēţē ĩḿƥōŕţ\"],\"Kwp5NK\":[\"Ďēĺēţē ţĥēśē śōũŕćē ḿēàśũŕēḿēńţś ƥēŕḿàńēńţĺŷ? Ŕēţàĩńēď ďàţàśēţ ćōƥĩēś ḿũśţ ƀē ŕēĺēàśēď śēƥàŕàţēĺŷ.\"],\"KwxEI4\":[\"Ćàńďĩďàţē ćōvēŕàĝē ƒēĺĺ ƀēĺōŵ ţĥē ƥĺàńńēď ĺĩḿĩţś.\"],\"L1LSAe\":[\"ḾÀĒ\"],\"L1baKz\":[\"Àĝŕēēḿēńţ\"],\"L445Bk\":[\"Ŵàĩţĩńĝ ƒōŕ ţĥē ōƀśēŕvàţĩōń ŵĩńďōŵ.\"],\"L8V7Dz\":[\"Ďàĩĺŷ ƥŕĩḿē\"],\"LDHXy9\":[\"Ďēvĩàţĩōń ƒŕōḿ Àƥƥĺē Ŵàţćĥ\"],\"LF9GJc\":[\"Ŕēţàĩńĩńĝ ţĥē àŕćĥĩvēś…\"],\"LLEze7\":[\"Ńēŵēśţ ńĩĝĥţś\"],\"LOv901\":[\"Ĝŕōũƥś ũśē ńàţĩvē ŕēƒēŕēńćē ţĩḿēśţàḿƥś àńď ŕēćōŕď ţŷƥēś, ĩńďēƥēńďēńţĺŷ ōƒ ćàńďĩďàţē ōũţƥũţ. Ĥàĺƒ-ŵĩńďōŵ ĝŕōũƥś ēxćĺũďē ĩńţēŕvàĺś ćŕōśśĩńĝ ţĥē ḿĩďƥōĩńţ. Ĝŕōũƥś ōvēŕĺàƥ àńď àŕē ńōţ ĩńďēƥēńďēńţ ēxƥēŕĩḿēńţś. Ţĥēśē àŕē ńōţ ḿōţĩōń ōŕ àŕţĩƒàćţ śũƀĝŕōũƥś.\"],\"LhMjLm\":[\"Ţĩḿē\"],\"LiR3l8\":[\"ŔĒḾ\"],\"LnsCL8\":[\"Ĩńćĺũďē ţĥĩś śēśśĩōń\"],\"Lt78-z\":[\"Ńōţ ŕēǫũēśţēď\"],\"LtUd0r\":[\"Ţĥēśē àŕē ďēśćŕĩƥţĩvē àĝŕēēḿēńţ ŕēśũĺţś, ńōţ ćĺĩńĩćàĺ àććũŕàćŷ, ĩńďēƥēńďēńţ ĥōĺďōũţ ēvĩďēńćē, ōŕ àũţĥōŕĩźàţĩōń ţō àćţĩvàţē à ƥŕōƒĩĺē.\"],\"M0faGQ\":[[\"0\"],\" · \",[\"1\"],\" · ŕēvĩśĩōń \",[\"2\"]],\"M4ek4i\":[\"Ńō ĩńśƥēćţēď àŕćĥĩvēś ōvēŕĺàƥ ţĥĩś ńĩĝĥţ. Ĩńśƥēćţ àŕćĥĩvēś ƒĩŕśţ.\"],\"M5TcIX\":[\"Ŕēƥĺàŷ ŕēţàĩńēď ŵàvēƒōŕḿś\"],\"M5zFwb\":[\"Ḿàńũàĺ àƥƥĺĩćàţĩōń ĩś ũńvàĺĩďàţēď. Ĩţ ćàń ćĥàńĝē ĥēàŕţ ŕàţē, ƀŕēàţĥĩńĝ ŕàţē, ţĥē ĤŔV ĩńďēx, àńď ďēƥēńďēńţ śĺēēƥ śţàĝēś.\"],\"MEC08x\":[\"Ũśē ōƒƒśēţ-ƀēàŕĩńĝ ĨŚŌ ţĩḿēśţàḿƥś ōŕ Ũńĩx ḿĩĺĺĩśēćōńďś. Ēàćĥ ŕēćōŕď ńēēďś ŕēćōŕďĶēŷ, ḿēţŕĩć, vàĺũē, ũńĩţ, àńď ţĩḿēśţàḿƥ (ōŕ śţàŕţ àńď ēńď). ĵŚŌŃ ũśēś àń àŕŕàŷ; ĆŚV ũśēś ţĥēśē ƒĩēĺď ńàḿēś àś ĥēàďēŕś. Ĩḿƥōŕţś àŕē ĺĩḿĩţēď ţō 2 Ḿĩß àńď 2000 ŕēćōŕďś.\"],\"MK62TH\":[\"Ēńď (ŨŢĆ)\"],\"MOqNC_\":[\"Ƒŕōźēń ńĩĝĥţ\"],\"MRXPwy\":[\"ŕēƒēŕēńćē\"],\"MTn9vw\":[\"ķàƥƥà\"],\"MW8x7A\":[\"Ţĥĩś ĩś śàḿƥĺēď śũḿḿēď ŔŚŚ ƒōŕ ţĥē ŕēƥĺàŷ ćōōŕďĩńàţōŕ àńď ĩţś ŵōŕķēŕś. Śĥàŕēď ƥàĝēś ḿàŷ ƀē ćōũńţēď ḿōŕē ţĥàń ōńćē; śĥōŕţ ƥēàķś ƀēţŵēēń ōƀśēŕvàţĩōńś ḿàŷ ƀē ḿĩśśēď.\"],\"Mb-EVa\":[\"Ţĥĩś ŕēƥōŕţ ŵàś ŕēĺēàśēď. Ĩţś àũďĩţ ĥàśĥ ŕēḿàĩńś, ƀũţ ďēţàĩĺēď ŕēśũĺţś àŕē ũńàvàĩĺàƀĺē.\"],\"MeoKQ0\":[\"Ŕũĺēś ţĥàţ ćĥàńĝē ţĥē ƀēď ƒōŕ ŷōũ\"],\"Mf9gx7\":[\"Ŕēƒēŕēńćē ĩḿƥōŕţ ƒàĩĺēď.\"],\"MibmVu\":[\"ĥōĺďōũţ\"],\"MkUjVh\":[\"Ũśē ţĥē śàḿē śĺēēƥēŕ ĩďēńţĩţŷ àś ţĥē ŕēƒēŕēńćē ŕēćōŕďś ŷōũ ĩńţēńď ţō ćōḿƥàŕē.\"],\"MmNR0n\":[\"Ƥũƀĺĩśĥēś śţàţũś àńď ƀĩōḿēţŕĩćś, àććēƥţś ćōḿḿàńďś\"],\"Mu1HF2\":[\"Ŕēḿōvē ŕēƒēŕēńćē \",[\"0\"]],\"Mu7RUc\":[\"Ĩńśƥēćţ ďàţàśēţ\"],\"MuDrlT\":[\"ńō ŕēƒēŕēńćē ďēvĩćē · ēxćĺũďēď ƒŕōḿ ēŕŕōŕ\"],\"Mv-Tbq\":[\"àććēƥţēď ēśţĩḿàţēś ĩń ţĥē ţŕàćķēŕ\"],\"NGoTyQ\":[\"Śţàĝē ŕũĺēś ōń ōŕĩĝĩńàĺ ŕēàďĩńĝś\"],\"NHlrjI\":[\"Ƥōĩńţ\"],\"NJYR0F\":[\"Ďàţà ƒōŕḿàţ\"],\"NMh7kF\":[\"Śţōŕēď-ŕēàďĩńĝ ćōḿƥàŕĩśōń àvàĩĺàƀĺē\"],\"NRBL74\":[\"ēxƥĩŕēď\"],\"NVswTS\":[\"Ķēēƥ ţĥē ĺàśţ\"],\"Na6zmY\":[\"Ćōḿƥàţĩƀĩĺĩţŷ\"],\"NawEr2\":[\"Àƒţēŕ\"],\"NcAXpM\":[\"Ďàĩĺŷ ŕēƀōōţ\"],\"NdXF7z\":[\"Ŵōŕķ ŵàś ďēƒēŕŕēď; ŷōũŕ śēĺēćţĩōń àńď ŕēţŕŷ ķēŷ àŕē ƥŕēśēŕvēď.\"],\"NhvfPs\":[\"Ńō ḿàţēŕĩàĺ ĩḿƥŕōvēḿēńţ ũńďēŕ ţĥē ēvàĺũàţĩōń ƥōĺĩćŷ\"],\"Nik1q1\":[\"Ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx (ḿś)\"],\"Nln0z9\":[\"Śćĥēďũĺē ŕēvĩēŵēď ōƀśēŕvàţĩōń\"],\"NpbAio\":[\"Ŕēśţàŕţ àŕćĥĩvē śćàń\"],\"NxAavP\":[\"Ćōńƒĩŕḿ ĩḿƥōŕţ ďēĺēţĩōń\"],\"NxjPUC\":[\"Ćàńďĩďàţē ĥàśĥ: \",[\"0\"]],\"OHHPcb\":[\"Ţĥē àŕćĥĩvē ďĩŕēćţōŕŷ ĩś ũńàvàĩĺàƀĺē.\"],\"OLWhkH\":[\"Ĩńĝēśţĩōń śàḿƥĺēś: \",[\"0\"],\" ōƒ \",[\"1\"],\" àďḿĩśśĩōń ćĥēćķś\"],\"OVSP4J\":[\"Ŕēţàĩń à ćōƥŷ ōƒ ţĥē śēĺēćţēď ńĩĝĥţś àńď ŕēƒēŕēńćē ŕēvĩśĩōńś. Ƒũţũŕē ēďĩţś ōŕ śōũŕćē ďēĺēţĩōń ďō ńōţ àĺţēŕ ţĥĩś ďàţàśēţ.\"],\"OahhRr\":[\"śĥōŵ\"],\"OqNNR4\":[\"Śĥàŕēď ḾÀĒ ďĩƒƒēŕēńćē\"],\"Ox14On\":[\"Ńĩĝĥţĺŷ àŕćĥĩvē ƥũśĥ\"],\"OzklQP\":[\"Ĥēàŕţ ŕàţē (ƀƥḿ)\"],\"PDDE5l\":[\"Ŕēƒēŕēńćē ćĺōćķ ōƒƒśēţ: \",[\"0\"],\" śēćōńďś; ƥōĩńţ ţōĺēŕàńćē: \",[\"1\"],\" śēćōńďś.\"],\"PEdBDO\":[\"Śĺēēƥēŕ ĩďēńţĩţŷ: \",[\"subjectId\"]],\"PGC40a\":[\"Ƥŕēvĩōũś ţŕàćē ƥàĝē\"],\"PHHETW\":[\"Ŕēƒēŕēńćē ĩńţēŕvàĺś ēxćĺũďēď àţ ŵĩńďōŵ ḿĩďƥōĩńţś: \",[\"0\"]],\"PKKYKp\":[\"Ŕēśţōŕē ƥŕēvĩōũś ƥŕōƒĩĺē\"],\"PbhekP\":[\"ńōţ ţēśţēď\"],\"PbpWGe\":[\"Ƥŕōƒĩĺē ŕēśōĺũţĩōń ƒàĩĺēď.\"],\"PdTcHl\":[\"Ńō ćōvēŕàĝē ŕēďũćţĩōń ďēţēćţēď\"],\"PvFcah\":[\"Ĩńƥũţś ŕēţàĩńēď\"],\"PxBet3\":[\"Ēvàĺũàţĩōń ďàţàśēţ\"],\"PygeGm\":[\"Ēńĝĩńē ḿàńĩƒēśţ ĥàśĥ\"],\"PzWjOZ\":[\"Ĩńśũƒƒĩćĩēńţ ƥàĩŕēď ńĩĝĥţś\"],\"Q0FsEw\":[\"Ćĥōōśē ŵĥō ńōŕḿàĺĺŷ śĺēēƥś ĥēŕē\"],\"Q6Fvyb\":[\"Ĩḿƥōŕţ ƥŕēvĩēŵ\"],\"Q73cLK\":[\"Śēĺēćţ ŕēćōŕďēď ŵàvēƒōŕḿś\"],\"QCJQvN\":[\"ßēƒōŕē ćōńƒĩĝũŕàţĩōń ĥàśĥ\"],\"QG2GiO\":[\"ǫũēũēď\"],\"QGPgrh\":[\"Ōŕĩĝĩńàĺ śţōŕēď ŕēàďĩńĝś ŵēŕē ćōḿƥàŕēď; ńũḿēŕĩćàĺ ƥàŕàḿēţēŕ ćĥàńĝēś ŵēŕē ńōţ ŕēƥĺàŷēď.\"],\"QIgpE4\":[\"ĤĒÀŔŢ ŔÀŢĒ\"],\"QIqJcS\":[\"Śōḿē ŕēƒēŕēńćē ŕēćōŕďś ĥàvē ĩńćōḿƥàţĩƀĺē ũńĩţś ōŕ ḿēţŕĩć ďēƒĩńĩţĩōńś àńď ŵēŕē ēxćĺũďēď.\"],\"QTD6X8\":[\"ĵōƀ ţĩḿē ţĥŕōũĝĥ ƥũƀĺĩćàţĩōń ƥŕēƥàŕàţĩōń: \",[\"0\"],\" śēćōńďś\"],\"QVD7Dt\":[\"Ńĩĝĥţ \",[\"0\"]],\"Q_YNRG\":[\"Ōvēŕŵŕĩţēś ţĥē śàvēď ƥŕōƒĩĺē àńď ŕēǫũēśţś ĩţ; ţĥē ćũŕŕēńţ ōńē ƀēćōḿēś ƥŕēvĩōũś.\"],\"QkqTjY\":[\"Ōƀśēŕvàţĩōń ŕēƥōŕţ\"],\"QrhaVg\":[\"Ũńĩţś\"],\"QsLiI0\":[\"Ēďĩţ à ńēŵ ćàńďĩďàţē ƒŕōḿ ţĥĩś ŕēvĩśĩōń\"],\"Qy1CFj\":[\"Àćţĩvē ƥŕōƒĩĺē ĥàśĥ\"],\"R-9uNr\":[\"Ćàńďĩďàţē ĺōŵ-śĩĝńàĺ ţĥŕēśĥōĺď\"],\"R-sAH4\":[\"Ōńĺŷ ţĥē ćũŕŕēńţ ƥàĝē ĩś ƥĺōţţēď. Ďōţś ŕēƥŕēśēńţ ĩńďĩvĩďũàĺ ŕēàďĩńĝś; ĝàƥś àńď ḿĩśśĩńĝ vàĺũēś àŕē ńōţ ĩńţēŕƥōĺàţēď. Ōŕĩĝĩńàĺ śţōŕēď ŕēàďĩńĝś ŕēḿàĩń ũńćĥàńĝēď.\"],\"R1u0BV\":[\"Ŕēƒēŕēńćē ďēƒĩńĩţĩōńś àŕē ĩńćōḿƥàţĩƀĺē.\"],\"R4QNtj\":[\"Ćōvēŕàĝē ōƒ ƥĺàńńēď ōƀśēŕvàţĩōń ĩńţēŕvàĺś\"],\"RC3Rei\":[\"Ƥàŕţĩţĩōń ţĩḿēźōńē: \",[\"0\"]],\"RIVQIl\":[\"Śćĥēḿà ćĥēćķś ƥàśśēď. Àĝŕēēḿēńţ ŵĩţĥ ŕēƒēŕēńćē ḿēàśũŕēḿēńţś ĥàś ńōţ ƀēēń ēvàĺũàţēď.\"],\"RMSkhT\":[\"Ţĥēśē ēďĩţś ƀēĺōńĝ ōńĺŷ ţō ţĥē ćàńďĩďàţē. Ŕũĺē ōŕďēŕ ḿàţţēŕś: ţĥē ƒĩŕśţ ḿàţćĥĩńĝ ŕũĺē ŵĩńś.\"],\"RWhQ_V\":[\"Ćōḿƥĺēţē ţĥē ŕēǫũĩŕēď ƒĩēĺďś ŵĩţĥĩń ţĥēĩŕ śţàţēď ƀōũńďś.\"],\"RZ1K0m\":[\"Vàĺũē / ũńĩţ\"],\"Raeq5C\":[\"ßŕēàţĥĩńĝ ēŕŕōŕ\"],\"Rb1qTE\":[\"Ōƀśēŕvĩńĝ\"],\"RbVCQP\":[\"Ńĩĝĥţ ćōvēŕēď\"],\"RiQMUh\":[\"Ŕũńńĩńĝ\"],\"S1gPr0\":[\"Ĩ ĩńţēńď ţō ŕēśţōŕē śŷśţēḿ ďēƒàũĺţś ŵĩţĥōũţ vàĺĩďàţĩōń ēvĩďēńćē.\"],\"S2Jom8\":[\"Àƒţēŕ ćōńƒĩĝũŕàţĩōń ĥàśĥ\"],\"S8EfUf\":[\"Ōŕĩĝĩńàĺ ŕēƥĺàŷ ţĩḿēśţàḿƥś, ŵĩţĥōũţ ŕēƒēŕēńćē ćĺōćķ àďĴũśţḿēńţ\"],\"SBZ1sk\":[\"ßēď àńď ŵàţēŕ ţēḿƥēŕàţũŕē ĥĩśţōŕŷ\"],\"SCGU2U\":[\"Ńēŵēśţ Ĵōƀś\"],\"SCc4qv\":[\"Ƒŕōźēń ĩńƥũţ ďēţàĩĺś\"],\"SGRCD8\":[\"Ƥōōĺēď śţàĝē ćōńƒũśĩōń\"],\"SMGWlJ\":[\"Śĥōŵ àĺĺ \",[\"0\"]],\"SRE0Dv\":[\"Ƥŕōćēśśōŕ àćķńōŵĺēďĝēď ĝēńēŕàţĩōń \",[\"0\"]],\"SV_0fn\":[\"Ţĥē ćũŕŕēńţ ƥōď àĺĝōŕĩţĥḿ ŕēƥōŕţś à ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx, ńōţ ćĺĩńĩćàĺ ŔḾŚŚĎ. Ōĺďēŕ ŕēàďĩńĝś ḿàŷ ĥàvē àń ũńķńōŵń ďēƒĩńĩţĩōń.\"],\"ScQkbv\":[\"Ŵĥōĺē-ńĩĝĥţ ƥàŕţĩţĩōńś àśśĩĝńēď; ƀĩōḿēţŕĩć ƥēŕƒōŕḿàńćē ĩś ńōţ ŷēţ vàĺĩďàţēď.\"],\"Sfd0oa\":[\"Ƥũƀĺĩśĥēś ćĺĩḿàţē, śŵĩţćĥ àńď śēńśōŕ ēńţĩţĩēś\"],\"SgRypX\":[\"Ńō ŕēƒēŕēńćē ĩḿƥōŕţś ƒōŕ ţĥĩś śĩďē.\"],\"SnDUEP\":[\"Ƒŕōźēń ďàţàśēţ\"],\"T0Izom\":[\"Ƒŕōźēń àńď ǫũēũēď. Ţĥē ƀàćķţēśţ ŕēƥĺàŷś ēvēŕŷ śƥĺĩţ; ŕēśũĺţś àƥƥēàŕ àś ēàćĥ ƒĩńĩśĥēś.\"],\"T4wPfY\":[\"Ēǫũàĺ-ńĩĝĥţ ḿēàń ḾÀĒ ďĩƒƒēŕēńćē: \",[\"0\"]],\"TLDDXM\":[\"Ńũḿēŕĩć ţŕàćē ńĩĝĥţ\"],\"TQwzCx\":[\"Ķēēƥ ŕēţàĩńēď ĩńƥũţś\"],\"T_87By\":[\"Ƥàŕàḿēţēŕ\"],\"TbjyhA\":[\"Ďōćś\"],\"Th6Noy\":[\"Ŕēƒēŕēńćē-ďēƒĩńēď śũƀĝŕōũƥ ćōḿƥàŕĩśōńś\"],\"TpHstq\":[\"ḿś\"],\"Tru_Os\":[\"Ńēxţ ţŕàćē ƥàĝē\"],\"TwpMH6\":[\"Ŕēḿōvē śţàĝē ōvēŕŕĩďē\"],\"TyB_3E\":[\"ßĩōḿēţŕĩć ćàĺĩƀŕàţĩōń\"],\"U5N8X7\":[\"śàvēď\"],\"U8n1HU\":[\"ßŔĒÀŢĤĨŃĜ\"],\"UFlEgN\":[\"Ńō ōvēŕŕĩďē ĩńţēńţ ćĥàńĝēś.\"],\"UFxPjw\":[\"Ĩḿƥŕōvēď àĝŕēēḿēńţ ũńďēŕ ţĥē ǫũàĺĩƒĩēď ēvàĺũàţĩōń ƥōĺĩćŷ\"],\"UL2mer\":[\"Ŵĥĩćĥ ƒĩŕḿŵàŕē ƥĩƥēĺĩńē ţĥē ƥōď ŕēàďś\"],\"UL6Xbb\":[\"Ńũḿēŕĩćàĺ ēŕŕōŕś ƀŷ ńĩĝĥţ\"],\"UMJp3J\":[\"Ēvàĺũàţēď ḿĩńũţēś: \",[\"0\"]],\"UOHqa2\":[\"Ḿĩśśĩńĝ ēvĩďēńćē: \",[\"reason\"]],\"UOnFf4\":[\"ţĥē ḿēďĩàń\"],\"UWna3M\":[\"Ĩńśƥēćţ ōƀśēŕvàţĩōń\"],\"UZuUP4\":[\"Ńō ŕēƒēŕēńćē\"],\"UeGR-V\":[\"Ĩńśƥēćţ śēśśĩōń \",[\"0\"]],\"Ufin3V\":[\"Ĺàŕĝēśţ ōƀśēŕvēď ĩńĝēśţĩōń àĝē: \",[\"0\"],\" śēćōńďś\"],\"UhCJxj\":[\"Ƥŕōćēśśōŕ\"],\"UlKSMd\":[\"Ĺēƒţ\"],\"UqSpzV\":[\"Ḿĩńĩḿũḿ ƥàĩŕēď ńĩĝĥţś (3–60)\"],\"Uu5a6k\":[\"Ţŕàćķĩńĝ ţōĺēŕàńćē (ƀƥḿ)\"],\"UyIxiT\":[\"Ńōţĥĩńĝ ćĥàńĝēś ũńţĩĺ ŷōũ ḿōvē à ćōńţŕōĺ ōŕ ŕēśţōŕē.\"],\"UyxS7G\":[\"Ƥōď ḿĩńũś Ŵàţćĥ ƥēŕ ńĩĝĥţ: ḾÀĒ àńď ƀĩàś ƥēŕ ḿēţŕĩć, àńď śţàĝē ķàƥƥà\"],\"V7oslX\":[\"Ƥŕōćēśśĩńĝ ƒàĩĺēď.\"],\"VFXF98\":[\"Ḿēàśũŕēď śēńśōŕ ćàĺĩƀŕàţĩōń ƒōŕ ţĥĩś śĩďē:\"],\"VIPxtx\":[\"Ďàţàśēţ śĺēēƥēŕ ĩďēńţĩƒĩēŕ\"],\"VJBi8Y\":[\"Ŕēśţōŕēď śŷśţēḿ ďēƒàũĺţś àńď ŕēǫũēśţēď ţĥēḿ\"],\"VKjxHP\":[\"Ŕēćōḿƥũţēď ńũḿēŕĩć ţŕàćēś\"],\"VMO9HG\":[\"Ēxàćţ ĩḿƥōŕţ ĩďēńţĩţŷ\"],\"VN4iqH\":[\"Śàvēď śàḿƥĺē ţĩḿēś: \",[\"0\"],\". Ƥĺàńńēď ōƀśēŕvàţĩōń ĩńţēŕvàĺś: \",[\"1\"],\".\"],\"VQewk6\":[\"Śḿōōţĥĩńĝ àƥƥĺĩēď àƒţēŕ ţĥē ŕũĺēś\"],\"VRFZcm\":[\"Ţēḿƥēŕàţũŕē ũńĩţ\"],\"VU3Nrn\":[\"Ḿĩśśĩńĝ\"],\"VUtcHF\":[\"Ćōḿƥàŕē ŵĩţĥ ŕēƒēŕēńćē ḿēàśũŕēḿēńţś\"],\"VVWxFk\":[\"Ƒŕōźēń ćōƥŷ ōƒ \",[\"0\"],\" ńĩĝĥţś. Ĺàţēŕ ēďĩţś ōŕ ďēĺēţĩōńś ďō ńōţ ţōũćĥ ĩţ. Ŵĥōĺē ńĩĝĥţś àŕē śƥĺĩţ ƀēƒōŕē śćōŕĩńĝ; à śƥĺĩţ ĩś ńōţ ēvĩďēńćē ōń ĩţś ōŵń.\"],\"VcTMlI\":[\"Ēxƥĺōŕàţōŕŷ 95% ĩńţēŕvàĺ: \",[\"0\"],\" ţō \",[\"1\"]],\"VmTUh8\":[\"Ţōţàĺ Ƥŷţĥōń ĆƤŨ ţĩḿē (śēćōńďś)\"],\"VnAP4G\":[\"Ćũŕŕēńţ ƀàśēĺĩńē\"],\"VqKzd6\":[\"Ńō ŕēţàĩńēď ḿēàśũŕēḿēńţś.\"],\"Vspsiu\":[\"Àććēƥţēď: \",[\"0\"],\"; ŕēĴēćţēď: \",[\"1\"],\"; ďũƥĺĩćàţēś: \",[\"2\"],\"; ũńśćōŕàƀĺē: \",[\"3\"],\"; ćōńƒĺĩćţś: \",[\"4\"]],\"W-i7wJ\":[\"Ńō ēśţĩḿàƀĺē vàŕĩàţĩōń\"],\"W1BnRm\":[\"Vĩţàĺś ŵĩţĥ ũńķńōŵń ōŕĩĝĩńàĺ ƥŕōćēśśĩńĝ ƥŕōvēńàńćē: \",[\"0\"]],\"WCKDwf\":[\"Ƒŕōźēń ćōƥŷ ōƒ \",[\"0\"],\" ńĩĝĥţś àńď \",[\"1\"],\" ŕēƒēŕēńćē. Ĺàţēŕ ēďĩţś ōŕ ďēĺēţĩōńś ďō ńōţ ţōũćĥ ĩţ. Ŵĥōĺē ńĩĝĥţś àŕē śƥĺĩţ ƀēƒōŕē śćōŕĩńĝ; à śƥĺĩţ ĩś ńōţ ēvĩďēńćē ōń ĩţś ōŵń.\"],\"WQJ43e\":[\"Ŕēţŕŷ ŕēƥōŕţ\"],\"W_PbSn\":[\"Ćàńďĩďàţē śƥĩķē ţĥŕēśĥōĺď\"],\"WcWtE4\":[\"ďōńē · \",[\"0\"]],\"WjCZjy\":[\"Ĥōĺďōũţ àććēśśēś ŕēćōŕďēď ƒōŕ ţĥĩś ēxƥēŕĩḿēńţ: \",[\"0\"]],\"Wk_WYb\":[\"Ţĥē śţōŕàĝē ǫũōţà ŵàś ŕēàćĥēď.\"],\"Wl_oB_\":[\"ßŕēàţĥĩńĝ-ŕàţē ĩńţēŕvàĺ ĺĩḿĩţś\"],\"WqUEbt\":[\"Ĩńśƥēćţ ńēxţ àŕćĥĩvē\"],\"WrG-oR\":[\"Ēxƥĺĩćĩţ śţàĝē ōvēŕŕĩďēś\"],\"Wucp9l\":[\"↑ ↓ ţō ḿōvē · Ēńţēŕ ţō ōƥēń · Ēść ţō ćĺōśē\"],\"Wz9mHY\":[\"Ćōḿḿōń śũƥƥōŕţ ĩś ţĥē ĩńţēŕśēćţĩōń ōƒ àĺĺ ēvàĺũàţēď ćōńƒĩĝũŕàţĩōńś àńď ēĺĩĝĩƀĺē ŕēƒēŕēńćē ĩńţēŕvàĺś. Ōŵń-śũƥƥōŕţ śćōŕēś ũśē ēàćĥ ćōńƒĩĝũŕàţĩōń’ś àvàĩĺàƀĺē ĩńţēŕvàĺś àńď ḿàŷ ďēśćŕĩƀē ďĩƒƒēŕēńţ ƥōŕţĩōńś ōƒ ţĥē ńĩĝĥţ.\"],\"X5G5TL\":[\"Àń àďďĩţĩōńàĺ ŕēƥōŕţ ĩśśũē ńēēďś ŕēvĩēŵ.\"],\"X8JREh\":[\"Ĩ ĩńţēńď ţō ēxƥōśē ţĥĩś ĥōĺďōũţ. Ŕēƥēàţēď ũśē, ĩńćĺũďĩńĝ ōvēŕĺàƥƥĩńĝ ďàţàśēţś, ŵēàķēńś ĥēĺď-ōũţ ēvĩďēńćē.\"],\"X9Fn3w\":[\"Ŕēƥĺàŷ śĺēēƥ śţàĝēś\"],\"XDDjJH\":[\"Śēśśĩōńś: \",[\"0\"]],\"XExZoo\":[\"Śàḿƥĺēď ŵōŕķēŕ ḿēḿōŕŷ ƥēàķ: \",[\"0\"],\" Ḿĩß. Śĥōŕţ ƥēàķś ƀēţŵēēń śàḿƥĺēś ḿàŷ ƀē ḿĩśśēď.\"],\"XHuCnL\":[\"ßàśēĺĩńē śĥàŕēď ḾÀĒ\"],\"XJOV1Y\":[\"Àćţĩvĩţŷ\"],\"XMmhvP\":[\"ĤŔV ďēƒĩńĩţĩōńś ďĩƒƒēŕ ōŕ àŕē ƥàŕţĺŷ ũńķńōŵń. À ćōḿƀĩńēď ĤŔV àvēŕàĝē ĩś ũńàvàĩĺàƀĺē.\"],\"XT73o-\":[\"Ńēxţ śēśśĩōń ŵàĩţś ƒōŕ à ķńōŵń ēḿƥţŷ-ƀēď ƀōũńďàŕŷ. Ĩḿḿēďĩàţē àƥƥĺĩćàţĩōń śţĩĺĺ ŵàĩţś ƒōŕ à śàƒē ƥŕōćēśśĩńĝ ƀōũńďàŕŷ.\"],\"XXnr5H\":[\"Ŕēśţàŕţ ţĥē ƥōď ōńćē à ďàŷ\"],\"X_d3vj\":[\"Ţàƥ ĝēśţũŕēś\"],\"XbkqDp\":[\"Ćōŕŕēćţĩńĝ ĩḿƥōŕţ \",[\"0\"],\". Śũƥƥĺŷ ţĥē ćōḿƥĺēţē ŕēƥĺàćēḿēńţ ēxƥōŕţ; ţĥē ōŕĩĝĩńàĺ ŕēvĩśĩōń àńď ƒŕōźēń ďàţàśēţś ŕēḿàĩń ũńćĥàńĝēď.\"],\"Xgkhyj\":[\"Ƒĺàĝś\"],\"Xl0aFS\":[\"Śĺēēƥēŕ ĩďēńţĩţŷ\"],\"XvImpZ\":[\"ƀŕ/ḿĩń\"],\"XyrrCD\":[\"Ţĥĩś ćĥàŕţ śĥōŵś ōńĺŷ ţĥē ćũŕŕēńţ ƥàĝē ōƒ ŕēƥĺàŷ ĩńţēŕvàĺś. Ĝàƥś àŕē ĺēƒţ ēḿƥţŷ; ńō śţàĝēś àŕē ĩńƒēŕŕēď ƀēţŵēēń ĩńţēŕvàĺś.\"],\"Xzy9KC\":[\"Ćàńďĩďàţē ćĥàńĝēś\"],\"Y3vbII\":[\"Ŕēśōũŕćē ōƀśēŕvàţĩōńś àŕē ƥàŕţĩàĺ. Ŵōŕķēŕ ĥēàĺţĥ ŕēƒĺēćţś ţĥē ĺàśţ vàĺĩď ŕēƥĺŷ, ńōţ ţĥē ćōḿƥĺēţē àţţēḿƥţ.\"],\"Y5pne1\":[\"Ţĩḿēś śĥōŵń ĩń \",[\"0\"]],\"YAAuC3\":[\"Ńō śţōŕēď vĩţàĺś ƒōŕ ćōḿƥàŕĩśōń\"],\"YAN6qJ\":[\"Ńō ńĩĝĥţś ĩń ţĥĩś ŕēƥōŕţ.\"],\"YFgzea\":[\"Ŕēƒēŕēńćē ćōḿƥàŕĩśōń śńàƥśĥōţ\"],\"YafUsS\":[\"Śţàĝē ŕēƥĺàŷ àvàĩĺàƀĺē\"],\"Ye-mWr\":[\"ßŕōķēŕ ćōńńēćţĩōń\"],\"YeXYTR\":[\"ĵōƀ ĥēàĺţĥ ōƀśēŕvàţĩōńś\"],\"YgOSaJ\":[\"Ƥŕēƥàŕēď ŵĩńďōŵ (ŨŢĆ)\"],\"Yhk2w6\":[\"Ţĥēśē àŕē ōŕĩĝĩńàĺ ŕēćōŕďēď ŕēàďĩńĝś. Ćĥàŕţś śēƥàŕàţē ķńōŵń ƥŕōćēśśĩńĝ ŕũńś àńď ĤŔV ďēƒĩńĩţĩōńś. Ĺēĝàćŷ ŕēàďĩńĝś ŵĩţĥ ũńķńōŵń ƥŕōvēńàńćē ŕēḿàĩń ũńvēŕĩƒĩēď.\"],\"YkeGcg\":[\"Ńō ńĩĝĥţ ĩń ţĥē ĺàśţ \",[\"days\"],\" ďàŷś ƥàĩŕś ŵĩţĥ Ŵàţćĥ ďàţà. Ƥĩćķ à ĺōńĝēŕ ŵĩńďōŵ.\"],\"YoyYks\":[\"ßŕēàţĥĩńĝ ḾÀĒ / ƀĩàś (\",[\"0\"],\")\"],\"YtMAd9\":[\"ćōńƒĩĝ ĩď\"],\"YtwU3b\":[\"Àũţō-ōƒƒ\"],\"Yx0Ud8\":[\"Ŕēǫũēśţēď\"],\"Yy9-qs\":[\"Ķēēƥ ĩḿƥōŕţ\"],\"Z325Gl\":[\"Ŕēĝŕēśśĩōń ũńďēŕ ţĥē ēvàĺũàţĩōń ƥōĺĩćŷ\"],\"Z6_avU\":[\"Ńōţ ŕēƥōŕţēď\"],\"Z8Z57S\":[\"Ţĥē ŕēĴēćţēď ŕēǫũēśţ ćōũĺď ńōţ ƀē ćĺēàŕēď ƒŕōḿ ƀŕōŵśēŕ ŕēćōvēŕŷ. Ķēēƥ ţĥĩś ţàƀ ōƥēń àńď ŕēţŕŷ.\"],\"ZB-yZg\":[\"Śēàŕćĥ ƥàĝēś àńď śēţţĩńĝś\"],\"ZCID7r\":[\"Ŕàĩśē ōŕ ĺōŵēŕ ţĥē àďĴũśţàƀĺē ƀàśē\"],\"ZEVjLJ\":[\"Ŕēćōḿƥũţēď \",[\"0\"],\"; ēxàćţ ŕēàďĩńĝś ƒōĺĺōŵ ĩń ţĥē ţàƀĺē.\"],\"ZGxvoR\":[\"Ŕēśōĺvēď ćōńƒĩĝũŕàţĩōń ĥàśĥ\"],\"ZIHKzK\":[\"Ŕēśţōŕē ţĥē ƥŕēvĩōũś ƥŕōƒĩĺē\"],\"ZOxlYi\":[\"Ŕēƥēàţēď ĥōĺďōũţ ēxƥōśũŕē ŵēàķēńś ĩńďēƥēńďēńţ ēvĩďēńćē. Ţŕēàţ ŕēũśēď ĥōĺďōũţ ŕēśũĺţś àś vàĺĩďàţĩōń, ńōţ ũńţōũćĥēď ĥōĺďōũţ ēvĩďēńćē.\"],\"ZQlAPX\":[\"Ƒŕōźēń ćōvēŕàĝē àńď ćàƥàƀĩĺĩţĩēś\"],\"ZYM-e5\":[\"Àśśũḿēď śţàĝē ćàĺĩƀŕàţĩōń ǫũàĺĩţŷ: \",[\"0\"]],\"_2a_oX\":[\"Àƒţēŕ śćĥēďũĺē ēńďś\"],\"_3iO4p\":[\"Ƒŕōźēń ōƀĴēćţĩvē ţĥŕēśĥōĺďś\"],\"_8-q-t\":[\"Śĺēēƥēŕ: \",[\"0\"]],\"_8Othx\":[\"Ţĥĩś ĩś ďēśćŕĩƥţĩvē ēvĩďēńćē, ńōţ vàĺĩďàţēď ĩḿƥŕōvēḿēńţ ōŕ ƥēŕḿĩśśĩōń ţō àćţĩvàţē à ƥŕōƒĩĺē.\"],\"_CNpb9\":[\"Ţàƀĺēś, śĩźēś àńď ḿàĩńţēńàńćē ƒōŕ ţĥē ƥōď ďàţàƀàśēś\"],\"_F1gL-\":[\"Ţĥē ōƀśēŕvàţĩōń ŵĩńďōŵ ŵàś ḿĩśśēď.\"],\"_N3nfY\":[\"Śńàƥśĥōţ ĥàśĥ\"],\"_RdTy6\":[\"Ńũḿēŕĩćàĺ ďēţàĩĺś àŕē ũńàvàĩĺàƀĺē ōŕ ĩńćōḿƥàţĩƀĺē.\"],\"_UU1GQ\":[\"Śćōŕēď ńĩĝĥţś: \",[\"0\"],\"; ũńśćōŕēď: \",[\"1\"]],\"_WJL1l\":[\"Ēvàĺũàţōŕ ƀũĩĺď ĥàśĥ\"],\"_YJvA2\":[\"Ďēĺēţĩńĝ àń ĩḿƥōŕţ ŕēḿōvēś ĩţś śōũŕćē ḿēàśũŕēḿēńţś. Ƥŕēvĩōũśĺŷ ƒŕōźēń ďàţàśēţś àŕē śēƥàŕàţē ŕēţàĩńēď ćōƥĩēś.\"],\"_dmdq7\":[\"Ĥēàŕţ ŕàţē · \",[\"0\"],\" \",[\"1\"]],\"_dqduX\":[\"Ńēxţ ƥàĝē\"],\"_fhKhX\":[\"ŴŌŔĶßĒŃĆĤ\"],\"_iu_fT\":[\"Ćàńďĩďàţē ƥŕōƒĩĺē\"],\"_m_cqq\":[\"Śćĥēďũĺĩńĝ ŵàś ńōţ ćōńƒĩŕḿēď. Ŕēţŕŷ ţĥĩś śàḿē ŕēǫũēśţ ţō ĺēàŕń ĩţś ōũţćōḿē; ďō ńōţ àśśũḿē à ŕũń ŵàś ćŕēàţēď ōŕ śţōƥƥēď.\"],\"_vMmHs\":[\"Ńō ŕēśōĺvēď vàĺũē ćĥàńĝēś.\"],\"_zRJNg\":[\"Ŕēćōḿƥũţēď ōƀśēŕvàţĩōńś: \",[\"0\"]],\"a0hR2f\":[\"Ŕēţàĩń ŵàvēƒōŕḿś\"],\"a4jIpF\":[\"Śĥàŕēď-ţĩḿēśţàḿƥ ćōḿƥàŕĩśōńś. Ďĩƒƒēŕēńćēś àŕē ćōḿƥàŕĩśōń ḿĩńũś ƀàśēĺĩńē; ńēĝàţĩvē ēŕŕōŕ ďĩƒƒēŕēńćēś ḿēàń ĺōŵēŕ ēŕŕōŕ ōń śĥàŕēď ōƀśēŕvàţĩōńś.\"],\"aAzeS3\":[\"Ćũŕŕēńţ ĥōĺďōũţ ēxƥōśũŕē ćōũńţ: \",[\"0\"]],\"aBSvZr\":[\"Ĩńĥēŕĩţś ţĥē \",[\"0\"],\" ŕũĺēś àńď ƒàĺĺƀàćķ ƒŕōḿ\"],\"aEj05o\":[\"Ĩńćōḿƥàţĩƀĺē ŕēƒēŕēńćē\"],\"aEm2DD\":[\"ßàćķţēśţ śũƀḿĩśśĩōń\"],\"aWcLHy\":[\"Ĥōĺďōũţ\"],\"a_tOrB\":[\"Ćōḿƥàŕē ţĥē ƥōď àĝàĩńśţ Àƥƥĺē Ŵàţćĥ ōŕ ōţĥēŕ ŕēƒēŕēńćēś\"],\"ahCPOh\":[\"Ńō ƥŕōśƥēćţĩvē ŕũńś ƒōŕ ţĥĩś śĩďē.\"],\"akShFD\":[\"Ćĺēàńũƥ\"],\"al36z5\":[\"Śĥàŕēď-ţĩḿēśţàḿƥ ćōḿƥàŕĩśōńś àŕē ũńàvàĩĺàƀĺē ĩń ţĥĩś ŕēƥōŕţ.\"],\"aoOfN1\":[\"Ďēśćŕĩƥţĩvē ēvàĺũàţĩōń ōńĺŷ\"],\"apfCJ8\":[\"Ƒŕēēźē ēvàĺũàţĩōń ĩńƥũţś\"],\"aqRjDk\":[\"Ţōţàĺ Ƥŷţĥōń ŵàĺĺ ţĩḿē (śēćōńďś)\"],\"azXwgh\":[\"Ńō śţàĝē ĩńţēŕvàĺś ŵēŕē ƥŕōďũćēď ƒōŕ ţĥĩś śēĺēćţĩōń.\"],\"bAG4xT\":[\"Ƒĩŕśţ ƥàĝē\"],\"bAqx-m\":[\"ĤŔV ďēƒĩńĩţĩōń\"],\"bIdc7i\":[\"Àũţō ƥōŵēŕ-ōƒƒ ćàƥ\"],\"bKNo3f\":[\"Ƒàĥŕēńĥēĩţ ōŕ Ćēĺśĩũś\"],\"bMnAf3\":[\"Ŕēćōḿƥũţēď ŕēàďĩńĝś àńď ćōḿƥàţĩƀĺē ƒŕōźēń ŕēƒēŕēńćēś ĩń ţĥē śēĺēćţēď ḿēţŕĩć ũńĩţ\"],\"bRN5nm\":[\"Śōƒţŵàŕē\"],\"bRYfMr\":[\"Ńēŵēśţ ďàţàśēţś\"],\"bUIsv2\":[\"Ḿēţŕĩć ŵĩńďōŵ: \",[\"0\"],\" śēćōńďś.\"],\"bW1Vv-\":[\"Ĺōśţ ŕēàďĩńĝś\"],\"bZGH6_\":[\"Ńēŵēśţ ĩḿƥōŕţś\"],\"bcsF7s\":[\"Ĥēàŕţ ŕàţē\"],\"bjnxtG\":[\"Àƥƥĺŷ ũńvàĺĩďàţēď ŕēvĩśĩōń\"],\"c3Qpen\":[\"Ƥōď śţàţũś àţ à ĝĺàńćē\"],\"c8Kx_b\":[\"Ŕēḿōvē ōvēŕŕĩďē\"],\"cCEjPJ\":[\"Ƒ1\"],\"cESAVR\":[\"Ńō vàĺũēś ƒōŕ ţĥĩś ḿēţŕĩć ōń ţĥē ćũŕŕēńţ ƥàĝē.\"],\"c_Dls2\":[\"Ńō ƀàćķţēśţ Ĵōƀś ƒōŕ ţĥĩś śĩďē.\"],\"cmG-2L\":[\"Ĥēàŕţ ŕàţē, ĤŔV àńď ƀŕēàţĥĩńĝ ţŕēńďś\"],\"cnqM2L\":[\"Ƥēŕḿàńēńţĺŷ ŕēĺēàśē ŕēƥōŕţ\"],\"coprQn\":[\"Ĩ ĩńţēńď ţō àƥƥĺŷ ţĥĩś ēxàćţ ŕēvĩśĩōń ŵĩţĥōũţ vàĺĩďàţĩōń ēvĩďēńćē.\"],\"cueivf\":[\"Ēxćĺũśĩōńś: \",[\"0\"]],\"cwpx1M\":[\"ĤŔ ēŕŕōŕ · ţũńĩńĝ\"],\"d-PALc\":[\"Ŕēśōĺvēď ƥàŕàḿēţēŕ ćĥàńĝēś\"],\"d3IqDh\":[\"Ǫũàĺĩţŷ\"],\"d3emgn\":[\"Ćàńďĩďàţē śàvē ƒàĩĺēď.\"],\"d6dDT8\":[\"Ōƀśēŕvàţĩōń ŵĩńďōŵ (ŨŢĆ)\"],\"dEgA5A\":[\"Ćàńćēĺ\"],\"dHvZyR\":[\"ǫũàĺĩţŷ\"],\"dKKiUb\":[\"Ńũḿēŕĩćàĺ ŕēàďĩńĝś ŵēŕē ŕēćōḿƥũţēď ƒŕōḿ ŕēţàĩńēď ŵàvēƒōŕḿś. Ōŕĩĝĩńàĺ śţōŕēď ŕēàďĩńĝś ŕēḿàĩń ũńćĥàńĝēď.\"],\"dVSC5E\":[\"Ĩńśƥēćţ àvàĩĺàƀĺē ďàţà ƀēƒōŕē śēĺēćţĩńĝ ńĩĝĥţś ƒōŕ à ŕēţàĩńēď ďàţàśēţ.\"],\"deIqfe\":[\"Ŵĥēń ţĥē ĤŔV ĩńďēx ĩś ŕēƥōŕţēď\"],\"dgvPBj\":[\"ƀƥḿ ōƒ ţĥē ţŕàćķēŕ\"],\"dnpx0n\":[\"Ōŕĩĝĩńàĺ ţŕàćē ţĩḿēśţàḿƥś àŕē śĥōŵń. Ŕēƒēŕēńćē śćōŕĩńĝ àďďś ţĥē ƒŕōźēń ōƒƒśēţ ōƒ \",[\"0\"],\" ḿś ţō ţĥēśē ţĩḿēśţàḿƥś.\"],\"dp1xoT\":[\"vàĺĩďàţĩōń\"],\"drFd3d\":[\"Ƒŕēēźĩńĝ ţĥē ńĩĝĥţś…\"],\"dsg4nV\":[\"Ďŕōƥƥĩńĝ ŕēàďĩńĝś ćàń ĺōŵēŕ ōŵń-śũƥƥōŕţ ēŕŕōŕ. Ďũƥĺĩćàţē ţĩḿēśţàḿƥś àŕē ēxćĺũďēď ƒŕōḿ śĥàŕēď śũƥƥōŕţ. Ţĥēśē ćōũńţś ďō ńōţ ḿēàśũŕē ćōńţĩńũōũś ţĩḿē ćōvēŕàĝē.\"],\"dvrg2y\":[\"Ƥàĩŕēď ŕēćōŕďś\"],\"dw3RHG\":[\"ńōţ ŕēƥōŕţēď\"],\"dxyEjQ\":[\"Ĩńţēŕŕũƥţēď\"],\"e53Atr\":[\"Àţţēḿƥţ \",[\"0\"]],\"e8GyQg\":[\"Ḿēţŕĩć\"],\"eIz4fP\":[\"Ćōḿƥàŕĩśōń ēvĩďēńćē\"],\"eLJnth\":[\"Ţĥē śēŕvēŕ ƥĩńś ďēƒàũĺţ, ćũŕŕēńţ ƀàśēĺĩńē, àńď ćàńďĩďàţē ćōńƒĩĝũŕàţĩōńś, ƥĺũś ţĥē ōţĥēŕ śĩďē’ś ćōńƒĩĝũŕàţĩōń. Ŕēƥĺàŷ ũśēś ŕēţàĩńēď śĩĝńàĺś àńď ńēvēŕ ŕēƥĺàćēś ōŕĩĝĩńàĺ ōƀśēŕvàţĩōńś.\"],\"eLzX0W\":[\"ĤōḿēĶĩţ ƀŕĩďĝē\"],\"eMS-Kh\":[\"Śćĥēďũĺēď ŕũńś ŵàĩţ ƒōŕ ţĥēĩŕ ŵĩńďōŵ àńď ƒŕēśĥ ŕēśōũŕćē àďḿĩśśĩōń. Ńō ōƀśēŕvàţĩōńś àŕē ĩḿƥĺĩēď ŷēţ.\"],\"ea_tpx\":[\"Ŕēśţōŕē… ▾\"],\"eiQsF1\":[\"Ńō ďàţàśēţ ĩś ƒŕōźēń ƒōŕ ţĥĩś śĩďē ŷēţ. Ƒŕēēźĩńĝ ţàķēś ţĥē ńēŵēśţ ńĩĝĥţś à ŕēƒēŕēńćē ćōvēŕś, ŵĩţĥ ţĥēĩŕ ŔÀŴ àŕćĥĩvēś, śō à ƀàćķţēśţ ćàń ŕēƥĺàŷ ţĥēḿ.\"],\"erZkEJ\":[\"Ńēxţ ŕēćōŕďś\"],\"ewu5hx\":[\"Śţōƥ ōƀśēŕvàţĩōń\"],\"f1PMkf\":[\"Ĩńśƥēćţ śţàĝē ţŕàćēś\"],\"f2Vka4\":[\"Ōƀśēŕvàţĩōń ďēţàĩĺś\"],\"f9XWfS\":[\"Ōŕĩĝĩńàĺ ţĩḿēśţàḿƥś àŕē śĥōŵń ĩń \",[\"timezone\"],\". Ŕēƒēŕēńćē śćōŕĩńĝ àďďś ţĥē ƒŕōźēń ōƒƒśēţ ōƒ \",[\"0\"],\" ḿś.\"],\"fDm1vz\":[\"Àŵàŷ ḿōďē\"],\"fFKwiD\":[\"Ǫũēũēĩńĝ ţĥē ƀàćķţēśţ…\"],\"fMY8OF\":[\"Ţĥĩś ŕēƥōŕţ vēŕśĩōń ōŕ śţŕũćţũŕē ĩś ńōţ śũƥƥōŕţēď ƀŷ ţĥĩś vĩēŵ.\"],\"fduV6w\":[\"Ĩńśũƒƒĩćĩēńţ ēvĩďēńćē ƒōŕ vàĺĩďàţēď ĩḿƥŕōvēḿēńţ\"],\"fisQjo\":[\"śţàĝē ķàƥƥà\"],\"fjyJzV\":[\"Ŕēćōŕďēď ćōńƒĩĝũŕàţĩōńś: \",[\"0\"],\"; ŕēàďĩńĝś ŵĩţĥ ũńķńōŵń ćōńƒĩĝũŕàţĩōń: \",[\"1\"],\".\"],\"fpMxrt\":[\"àććēƥţēď 10-śēćōńď ĨßĨ ŵĩńďōŵś\"],\"frH3v_\":[\"ĺàţēśţ ḾÀĒ \",[\"0\"],\", ƀĩàś \",[\"1\"],\" \",[\"unit\"]],\"fsEiED\":[\"Śàvē ēvàĺũàţĩōń ƥŕōţōćōĺ\"],\"fsIyEL\":[\"Ŕēƒēŕēńćē ĩḿƥōŕţ śàvēď: \",[\"saved\"]],\"fx36Vz\":[\"Ńĩĝĥţś, śĺēēƥ śţàĝēś àńď vĩţàĺś\"],\"fxeXBO\":[\"Śàvēď ēxƥēŕĩḿēńţś\"],\"g38APT\":[\"Ƒàĺĺƀàćķ śţàĝē\"],\"g8_K4H\":[\"Ōĺďēŕ Ĵōƀś\"],\"g9GNn8\":[\"Ƥōōĺēď ćōḿḿōń-śũƥƥōŕţ śţàĝē śćōŕēś\"],\"g9QO1Q\":[\"Ćàĺĩƀŕàţĩōń vĩēŵś\"],\"gEcnen\":[\"Ēxàćţ ƥŕōćēśśēď-ďàţà ćōvēŕàĝē\"],\"gHMTXI\":[\"Àććēƥţēď ŕēćōŕďś àŕē ńōţ ńēćēśśàŕĩĺŷ ũśàƀĺē ƒōŕ vàĺĩďàţĩōń. Ĩńćōḿƥàţĩƀĺē ĤŔV ďēƒĩńĩţĩōńś ŕēḿàĩń ũńśćōŕàƀĺē.\"],\"gIsCcS\":[\"Ćōḿƥĺēţēď ńĩĝĥţś\"],\"gQp61o\":[\"Ŕēƒēŕēńćē ŕēćōŕďś ōũţśĩďē ţĥē ćàƥţũŕēď ŵĩńďōŵ: \",[\"0\"]],\"gWywdR\":[\"Àvàĩĺàƀĺē ŕēƒēŕēńćē ŕēćōŕďś ƀŷ ḿēţŕĩć (àćŕōśś ŕēvĩśĩōńś)\"],\"gY4IEV\":[\"Ŕēvĩēŵ ōƀśēŕvàţĩōń ŕēƥōŕţ\"],\"gYLm31\":[\"Àƥƥĺŷ ēvàĺũàţēď ŕēvĩśĩōń\"],\"gqM0fU\":[\"Ŕēţàĩńēď ďàţàśēţś\"],\"gqtr8Z\":[\"Śàvē ƒàĩĺēď.\"],\"gsdE1-\":[\"Ćàńďĩďàţē ōƀśēŕvàţĩōń ţĩḿēśţàḿƥś ĺōśţ: \",[\"0\"],\"; àďďēď: \",[\"1\"],\".\"],\"gsxO3G\":[\"Ƥōŵēŕś à śĩďē ōƒƒ ŵĥēń ţĥē ƥũḿƥ śţàĺĺś\"],\"h-_RA9\":[\"Ḿēţŕĩćś: \",[\"0\"]],\"h8USYG\":[\"Ƥŕēśēńćē àńď ƥũḿƥ ćōńţēxţ ŕēƒĺēćţ ĥōśţ ōƀśēŕvàţĩōńś, ńōţ ƥŕōōƒ ōƒ ţĥē ĺĩvē ƥŕōćēśśōŕ’ś ćàćĥēď śţàţē.\"],\"hCQg3t\":[\"Śēĺēćţ àŕćĥĩvēś ƒōŕ ēvēŕŷ ƒŕōźēń ńĩĝĥţ, ĩńćĺũďĩńĝ ƒĩvē ḿĩńũţēś ōƒ ƥŕē-ŕōĺĺ. Àŕćĥĩvē ƀōũńďś ďō ńōţ ƥŕōvē ćōńţĩńũōũś śĩĝńàĺ ćōvēŕàĝē. Ţĥē śēŕvēŕ vēŕĩƒĩēś àńď ćōƥĩēś ţĥē śēĺēćţēď ƀŷţēś ƀēƒōŕē ƥũƀĺĩśĥĩńĝ à ńēŵ ďàţàśēţ.\"],\"hD-y_c\":[\"Ĩńśƥēćţ Ĵōƀ\"],\"hQDrYd\":[\"Ćĥōōśē à ţēḿƥĺàţē\"],\"hV5uRE\":[\"Ŕēƒēŕēńćē ƥōĩńţś\"],\"hY_84S\":[\"Ńō ōvēŕĺàƥ\"],\"hYpaGJ\":[\"Śēţ ēàćĥ śĩďē’ś ţēḿƥēŕàţũŕē\"],\"hZVN7j\":[\"Ńō ōvēŕĺàƥƥĩńĝ ŕēƒēŕēńćē ŕēćōŕďś.\"],\"hew6O1\":[\"Ńō ōƀśēŕvàţĩōńś ŵēŕē śàvēď.\"],\"i4lAMH\":[\"Śţàŕţ ƒŕōḿ ţĥē śàvēď ƥŕōƒĩĺē. Ēxĩśţĩńĝ śĺēēƥ-śţàĝē ōvēŕŕĩďēś àŕē ƥŕēśēŕvēď. Ŕēḿōvĩńĝ à ńũḿēŕĩćàĺ ōvēŕŕĩďē ƒōĺĺōŵś ţĥē śĥĩƥƥēď ďēƒàũĺţ.\"],\"iBoQ7e\":[\"Àĝŕēēḿēńţ ŵĩţĥ à ńàḿēď ŕēƒēŕēńćē ďōēś ńōţ ēśţàƀĺĩśĥ ćĺĩńĩćàĺ àććũŕàćŷ.\"],\"iLPjcf\":[\"Ćōƥĩēś ţĥē ƀĩōḿēţŕĩćś àŕćĥĩvē ţō à ĥōśţ ŷōũ ćōńţŕōĺ ōvēŕ ŚŚĤ, ōńćē ƥēŕ ńĩĝĥţ\"],\"iNXP29\":[\"Ĩńţēŕńēţ àććēśś\"],\"iOcCtM\":[\"Ŕōŵ \",[\"0\"],\": \",[\"1\"]],\"iRuL-K\":[\"Ķàƥƥà\"],\"iSlb8i\":[\"ßàćķţēśţ ōń \",[\"0\"],\" ńĩĝĥţś ƒàĩĺēď\"],\"iTFRRA\":[\"Ĺōńĝēśţ ƀŕēàţĥĩńĝ ĩńţēŕvàĺ (× ḿēďĩàń)\"],\"iZdGUJ\":[\"Ţĥē śàvēď ƥŕōƒĩĺē ćĥàńĝēď. Ćōḿƥàŕē àĝàĩń ƀēƒōŕē ŕēvĩēŵĩńĝ ţĥēśē ćĥàńĝēś.\"],\"ickSQa\":[\"Àćţĩvàţĩōń ŕēǫũēśţ śàvēď. Ƥŕōćēśśōŕ àćķńōŵĺēďĝēḿēńţ ĩś ŕēƥōŕţēď śēƥàŕàţēĺŷ ƀēĺōŵ.\"],\"idD8Ev\":[\"Śàvēď\"],\"idUHAF\":[\"Ţŕàćē ńĩĝĥţ\"],\"ienenm\":[\"Śćĥēďũĺē àń ōƀśēŕvàţĩōń\"],\"iiIc1S\":[\"Àďďēď ŕēàďĩńĝś\"],\"iyttMX\":[\"Ēxàćţ ŕēćōḿƥũţēď ŕēàďĩńĝś, ŵĩţĥōũţ ŕēƒēŕēńćē ćĺōćķ àďĴũśţḿēńţ\"],\"izHeGP\":[\"Śţàĝē ŕũĺēś\"],\"izUm62\":[\"Ćōḿƥàŕē ŵĩţĥ śàvēď ƥŕōƒĩĺē\"],\"j5lpmE\":[\"ŔēĴēćţ ĩńţēŕvàĺś śĥōŕţēŕ ţĥàń\"],\"j87ALW\":[\"Ēśţĩḿàţē ēxƥĺōŕàţōŕŷ ŵĥōĺē-ńĩĝĥţ ũńćēŕţàĩńţŷ\"],\"j8f0f7\":[\"Ĩńśƥēćţ ḿēàśũŕēḿēńţś\"],\"jFnLa4\":[\"Ţũŕń śĩďēś ōƒƒ àƒţēŕ à śēţ ńũḿƀēŕ ōƒ ĥōũŕś\"],\"jGGU20\":[\"Ďēƒàũĺţ ƥōŵēŕ śţàţē ŵĥēń à ćũŕvē ƒĩńĩśĥēś\"],\"jHJqeF\":[\"Ńō śàvēď ēxƥēŕĩḿēńţś ƒōŕ ţĥĩś śĩďē.\"],\"jM5CSI\":[\"Śàvēď ēvĩďēńćē ĩďēńţĩţŷ\"],\"j_WgSe\":[\"Ţàƥ ţĥē ţōƥ ōƒ ţĥē ćōvēŕ ōń ŷōũŕ śĩďē\"],\"ja10bn\":[\"Ţēḿƥēŕàţũŕē ćōńţŕōĺ\"],\"jnHbBF\":[\"Ŕēƒēŕēńćē ĺĩƀŕàŕŷ\"],\"jnTV6s\":[\"ßàćķţēśţ \",[\"0\"],\". Ƒŕōźēń ďàţàśēţ ŕēƥĺàŷēď ţĥŕōũĝĥ ţĥē ƥŕēvĩōũś àńď śàvēď ƥŕōƒĩĺēś; ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"jnd7HN\":[\"Ńĩĝĥţ\"],\"jqzUyM\":[\"Ũńàvàĩĺàƀĺē\"],\"jtiXJv\":[\"Ŵĥàţ ţĥē ŕũĺēś ēvàĺũàţēď àńď ŵĥŷ\"],\"k9QdNt\":[\"Àĝĝŕēĝàţĩōń\"],\"kBDFtj\":[\"ßēď śēţũƥ\"],\"kEoNsC\":[\"Ĩńśƥēćţ ƒŕōźēń ĩńƥũţś àńď ŵĥōĺē-ńĩĝĥţ ƥàŕţĩţĩōńś, ōŕ ŕēĺēàśē ţĥēĩŕ ŕēţàĩńēď śţōŕàĝē.\"],\"kRbwZR\":[\"Ţĥē ŕũĺē ĺĩśţ ĩţśēĺƒ ďĩƒƒēŕś ƒŕōḿ ţĥē śĥĩƥƥēď ŕũĺēś.\"],\"kSn7J6\":[\"Śćĥēďũĺēď Ĵōƀś àńď ďŕĩƒţ\"],\"kXxqsJ\":[\"Ŕēĺēàśē ďēţàĩĺēď ŕēśũĺţś ƥēŕḿàńēńţĺŷ? Ţĥē ŕēƥōŕţ ĥàśĥ, Ĵōƀ ĥĩśţōŕŷ, àńď ĥōĺďōũţ ēxƥōśũŕē àũďĩţ ŕēḿàĩń.\"],\"k_Kc3O\":[\"Ćàńďĩďàţē ŕũĺē\"],\"k_tlKH\":[\"Śţàĝē àĝŕēēḿēńţ ĩś ḿēàśũŕēď àĝàĩńśţ ţĥē ńàḿēď ŕēƒēŕēńćē. Ĩţ ďōēś ńōţ ēśţàƀĺĩśĥ ćĺĩńĩćàĺ śţàĝē àććũŕàćŷ.\"],\"kg9QHL\":[\"Ḿĩńĩḿũḿ ƀēàţ śĩĝńàĺ śćōŕē\"],\"klYSYX\":[\"Ńō ŕēƒēŕēńćē ŕēćōŕďś ĩń ţĥē ōƀśēŕvàţĩōń ŵĩńďōŵ.\"],\"kmVlv0\":[\"Śàvē àńď ŕēǫũēśţ\"],\"knhXFm\":[\"Ćōvēŕàĝē ŕēďũćēď ĩń àţ ĺēàśţ ōńē ēvàĺũàţēď ŵĩńďōŵ\"],\"koFCAF\":[\"Śŷśţēḿ ďēƒàũĺţś\"],\"krN8T4\":[\"Ƒĩŕśţ àŕćĥĩvē ƥàĝē\"],\"kvoj0l\":[\"Ŵàĩţĩńĝ ƒōŕ ďēĺĩvēŕŷ\"],\"kx0s-n\":[\"Ŕēśũĺţś\"],\"l-ka0P\":[\"Ƥōĩńţ ḿàţćĥĩńĝ ţōĺēŕàńćē (ḿś, 0–300000)\"],\"l-rdOQ\":[\"Ĥēàĺţĥ ŵàś śàḿƥĺēď àţ àďḿĩśśĩōń ćĥēćķś, ńōŕḿàĺĺŷ ƒĩvē śēćōńďś àƥàŕţ. Ũńōƀśēŕvēď ĩńţēŕvàĺś àŕē ńōţ ćōńţĩńũōũś ĥēàĺţĥ ḿēàśũŕēḿēńţś.\"],\"l8XODJ\":[\"Ōĺďēŕ ƥŕōƒĩĺēś\"],\"lCtEWn\":[\"ßàćķţēśţ ŕēǫũēśţ śàvēď: \",[\"0\"]],\"lGWE4b\":[\"Vàĺĩďàţĩōń\"],\"lIwsCR\":[\"Śàvē à ćàńďĩďàţē ƒōŕ ēvàĺũàţĩōń. Ţĥĩś ďōēś ńōţ ćĥàńĝē ĺĩvē ƥŕōćēśśĩńĝ.\"],\"lLKx4j\":[\"Ţũŕńś à śĩďē ōƒƒ àƒţēŕ ŷōũ ĺēàvē ţĥē ƀēď\"],\"lPhE6w\":[\"Ƥŕēƥàŕēď, ńōţ àďḿĩţţēď. Ţĥē ƥōď ćĥēćķś ćũŕŕēńţ ǫũàĺĩƒĩćàţĩōń àńď ĥēàĺţĥ àĝàĩń ŵĥēń śćĥēďũĺĩńĝ àńď ŵĥēń ēxēćũţĩōń śţàŕţś.\"],\"lYQlqL\":[\"Ƥĩćķ à śćōŕēď ńĩĝĥţ ţō śēē ĩţś ĥēàŕţ-ŕàţē ţŕàćē.\"],\"lZQljm\":[\"Ƥŕēƥàŕē ōƀśēŕvàţĩōń ƥĺàń\"],\"lfcZyG\":[\"Ĩńśţàĺĺēď vēŕśĩōń àńď ũƥďàţēś\"],\"lgjajK\":[\"Ćĥēćķĩńĝ vàĺĩďàţĩōń ēvĩďēńćē…\"],\"lmuVtM\":[\"Ēàćĥ ćōńƒĩĝũŕàţĩōń ōń ĩţś ōŵń àvàĩĺàƀĺē ĩńţēŕvàĺś\"],\"m0Nxk3\":[\"Śàvē ćàńďĩďàţē ŵĩţĥōũţ àƥƥĺŷĩńĝ\"],\"m3idi0\":[\"Ōŵń-śũƥƥōŕţ ḾÀĒ ďĩƒƒēŕēńćē\"],\"mCRJge\":[\"ƀĩàś (+ = ƥōď ŕēàďś ĥĩĝĥ)\"],\"mEGaVF\":[\"Ŕēǫũēśţēď àćţĩvàţĩōń · ĝēńēŕàţĩōń \",[\"0\"]],\"mJLKhS\":[\"Ţŕàćē ĩńţēŕvàĺś \",[\"first\"],\"–\",[\"last\"],\" ōƒ \",[\"0\"]],\"mPyzNL\":[\"Ćōḿƥàŕē ƥŕōśƥēćţĩvē ōƀśēŕvàţĩōńś ŵĩţĥ à ŕēƒēŕēńćē\"],\"mZsnWl\":[\"Ḿĩńĩḿũḿ ĨßĨ ŵĩńďōŵś\"],\"mZzxmI\":[\"Ţĥē ĺàśţ àŕćĥĩvē ŵàś ũńàvàĩĺàƀĺē. Ćōńţĩńũē ţō ĩńśƥēćţ ţĥē ńēxţ àŕćĥĩvē.\"],\"mcrx-J\":[\"3Ď śţàĝē\"],\"mizif2\":[\"Ńō ŕēţàĩńēď ďàţàśēţś ƒōŕ ţĥĩś śĩďē.\"],\"mjOerZ\":[\"Śţàĝē ţŕàćē ƒōŕ ţĥē ďĩśƥĺàŷēď ĩńţēŕvàĺś; ēxàćţ ţĩḿēś àńď śţàĝēś ƒōĺĺōŵ ĩń ţĥē ţàƀĺē.\"],\"mkhMIi\":[\"Ŵĩţĥĩń ţĥē ōƀśēŕvēď ĺĩḿĩţś.\"],\"mmYtG3\":[\"Ŕēţŕŷ ēxàćţ àćţĩvàţĩōń ŕēǫũēśţ\"],\"mpfEb2\":[\"Ƥàĩŕēď ḿĩńũţēś\"],\"mxcjJ3\":[\"Ƒĩŕśţ ŕēćōŕďś\"],\"n9nSNJ\":[\"Ţĩḿē ƒōŕḿàţ\"],\"nDsRnU\":[\"Ńũḿēŕĩć ţŕàćē ḿēţŕĩć\"],\"nGd0J1\":[\"Ńō ḿàţćĥēś ƒōŕ “\",[\"q\"],\"”\"],\"nOPbWJ\":[\"Ŕĩĝĥţ\"],\"nR_Xo2\":[\"Ńō ćōḿḿĩţţēď ŕēƥōŕţ ĩś àvàĩĺàƀĺē ŷēţ.\"],\"nRm1_n\":[\"Ćàńďĩďàţē ĥàśĥ\"],\"nZvP5d\":[\"Ŕēƥōŕţś ďēśćŕĩƀē ōƀśēŕvēď ćōvēŕàĝē àńď ŕēƒēŕēńćē àĝŕēēḿēńţ; ţĥēŷ ďō ńōţ àũţĥōŕĩźē àćţĩvàţĩōń.\"],\"neY-I0\":[\"Ĥēàŕţ-ŕàţē ţŕàćē\"],\"nfv2Gn\":[\"Ŕēvĩēŵ ƥŕēƥàŕēď ƥĺàń\"],\"njHfRY\":[\"Śàvēď ţĥē ƥŕōƒĩĺē\"],\"nkTSf7\":[\"Ţŕàćķĩńĝ ĥĩśţōŕŷ ĺēńĝţĥ\"],\"nsVNnB\":[\"ŨŔĹ, ŢĹŚ, ćŕēďēńţĩàĺś àńď ţōƥĩć ƥŕēƒĩx\"],\"nvXKMs\":[\"Ńō ƀàćķţēśţ ŷēţ. Ƒŕēēźē à ńēŵ ďàţàśēţ ƀēĺōŵ; ĩţ ŕēƥĺàŷś ţĥē ńēŵēśţ ŕēƒēŕēńćēď ńĩĝĥţś ţĥŕōũĝĥ ţĥē ƥŕēvĩōũś àńď śàvēď ƥŕōƒĩĺēś. Ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"nzhJlu\":[\"Ēvàĺũàţĩōń ŕēƥōŕţ\"],\"o0m-W5\":[\"Ţĥē śàvēď ƥŕōƒĩĺē ćĥàńĝēď. Śēĺēćţ à ŕēćōvēŕŷ àćţĩōń àĝàĩń ţō ḿàķē à ńēŵ ŕēǫũēśţ.\"],\"o2CMR_\":[\"Ũńĩţ: \",[\"0\"],\"; ŕàńĝē: \",[\"1\"],\"–\",[\"2\"],\"; ďēƒàũĺţ: \",[\"3\"],\"; ōŕĩĝĩńàĺ: \",[\"4\"]],\"o7BAcK\":[\"ĹĒĎ ńĩĝĥţ ḿōďē\"],\"oFAivV\":[\"Ńĩĝĥţ ƥŕōĝŕēśś ĩś ńōţ àvàĩĺàƀĺē ŷēţ.\"],\"oQ7Z7k\":[\"Ḿēàń àƀśōĺũţē ēŕŕōŕ ōń śĥàŕēď ţĩḿēśţàḿƥś: àćţĩvē \",[\"0\"],\", ćàńďĩďàţē \",[\"1\"],\".\"],\"oRepAd\":[\"Śàvē ƥŕēvĩēŵēď ĩḿƥōŕţ\"],\"oSES6x\":[\"Ēŕŕōŕś ũśē ţĥē ḿēţŕĩć ũńĩţ; śĩĝńēď ƀĩàś ĩś ƥōď ḿĩńũś ŕēƒēŕēńćē.\"],\"oSm2At\":[\"Ńũḿēŕĩć ţŕàćē ĩďēńţĩţŷ ďōēś ńōţ ḿàţćĥ ţĥē śēĺēćţēď ŕēƥōŕţ.\"],\"oTZWAU\":[\"Ŕēĺēàśē ţĥēśē ŕēţàĩńēď ĩńƥũţś ƥēŕḿàńēńţĺŷ? Ēxĩśţĩńĝ ŕēƥōŕţś àńď àũďĩţ ḿēţàďàţà ŕēḿàĩń. Àćţĩvē Ĵōƀś ḿũśţ ƒĩńĩśĥ ōŕ ƀē ćàńćēĺĺēď ƒĩŕśţ.\"],\"on-veT\":[[\"0\"],\" ĤŔ ēŕŕōŕ \",[\"1\"],\" → \",[\"2\"],\" ƀƥḿ · \",[\"3\"]],\"osmcFY\":[\"ţũńĩńĝ\"],\"otbH9Y\":[\"Ōũţƥũţ ćōvēŕàĝē ũśēś ēvàĺũàţēď ţĩḿē àś ĩţś ďēńōḿĩńàţōŕ. Ŕēƒēŕēńćē ćōvēŕàĝē ũśēś ēĺĩĝĩƀĺē ŕēƒēŕēńćē ţĩḿē. À ĥĩĝĥēŕ śćōŕē ŵĩţĥ ŕēďũćēď ćōvēŕàĝē ĩś ńōţ śũƒƒĩćĩēńţ ēvĩďēńćē ōƒ ĩḿƥŕōvēḿēńţ.\"],\"otqFKT\":[\"Àŕćĥĩvē ēvēńţ ƀōũńďś (ŨŢĆ): \",[\"0\"],\" ţō \",[\"1\"]],\"ouWIPE\":[\"Ƥĩńńēď Ĵōƀ ĩńƥũţś\"],\"ovUYdL\":[\"Ƥŕēƒēŕēńćēś ƒōŕ ţĥē ƥōď àńď ţĥĩś ďēvĩćē\"],\"oxuApB\":[\"Ńũḿēŕĩć ţŕàćē ćōńƒĩĝũŕàţĩōń\"],\"oz6J2T\":[\"95ţĥ ƥēŕćēńţĩĺē àƀśōĺũţē ēŕŕōŕ\"],\"p5Tvds\":[\"Ŕēƒŕēśĥ ŕēƥōŕţ\"],\"p8gpyN\":[\"Ƥŕēƥàŕē ƀàćķţēśţ\"],\"pAfIv7\":[\"Ćàńďĩďàţē ƥàŕàḿēţēŕś\"],\"pD9nPP\":[\"Ďĩḿś ţĥē ĹĒĎ ōvēŕńĩĝĥţ\"],\"pWhtyD\":[\"Ćàĺĩƀŕàţĩōń\"],\"pdCJud\":[\"ōŕ ĺōńĝēŕ ţĥàń\"],\"pdmaPz\":[\"ĤŔV ĩńďēx\"],\"peLE5v\":[\"Ĺōŵēŕ ēŕŕōŕ: \",[\"0\"],\"; ĥĩĝĥēŕ: \",[\"1\"],\"; ũńćĥàńĝēď: \",[\"2\"]],\"piBZoW\":[\"Śĩḿũĺàţēď ďēḿō: ĝēńēŕàţēď ŕēàďĩńĝś, ńō ĥàŕďŵàŕē ēxēćũţĩōń ōŕ ǫũàĺĩƒĩćàţĩōń.\"],\"plwcxa\":[\"Ţĥē ƒŕōźēń ōƒƒśēţ ōƒ \",[\"clockOffsetMs\"],\" ḿś ĩś àďďēď ţō ŕēćōḿƥũţēď ţĩḿēśţàḿƥś ĩń ţĥĩś ōvēŕĺàŷ. Ŕēƒēŕēńćē ţĩḿēś śţàŷ ũńćĥàńĝēď. Ƥōĩńţ ḿàţćĥĩńĝ ţōĺēŕàńćē: \",[\"0\"],\" ḿś.\"],\"pn1wGH\":[\"Ōĺďēŕ ďàţàśēţś\"],\"pzU3_f\":[\"Ńō ćōḿƥĺēţēď ŵōŕķēŕ ŕēśōũŕćē ŕēćēĩƥţ ĩś àvàĩĺàƀĺē.\"],\"q-GSeQ\":[\"Ēxƥĺōŕàţōŕŷ 95% ĩńţēŕvàĺ ƒōŕ ḾÀĒ ďĩƒƒēŕēńćē: \",[\"0\"],\" ţō \",[\"1\"]],\"q268Hy\":[\"Ćĥōōśē à ƒũţũŕē ŵĩńďōŵ ŵĩţĥĩń ţĥē ţēḿƥĺàţē ĺĩḿĩţ. Ƥŕēƥàŕĩńĝ à ƥĺàń ďōēś ńōţ śćĥēďũĺē ĩţ.\"],\"q35hV5\":[\"Ŕēƒēŕēńćē ćōvēŕàĝē\"],\"q8lqrb\":[\"Ćōḿƥàŕē śţōŕēď ŕēàďĩńĝś\"],\"qKKmRI\":[\"Ćţŕĺ Ķ\"],\"qQyQVC\":[\"Ćàńćēĺ ƀàćķţēśţ\"],\"qbMXVo\":[\"Ƥŕōĝŕēśś: \",[\"0\"],\" / \",[\"1\"],\" ńĩĝĥţś\"],\"qc-DVG\":[\"Àśśũḿēď ćàĺĩƀŕàţĩōń ǫũàĺĩţŷ (0–1)\"],\"qdIvCQ\":[\"Àćţĩvàţĩōń ţĩḿĩńĝ\"],\"qjP3h7\":[\"Śćōŕēď ńĩĝĥţś: \",[\"0\"],\"; ũńśćōŕēď: \",[\"1\"],\"; ćōvēŕàĝē ŕēďũćēď: \",[\"2\"]],\"qlh_FJ\":[\"Ƥĺàń ĥàśĥ: \",[\"0\"]],\"qo0fEa\":[\"Ćĥēćķ Ōvēŕvĩēŵ ƒōŕ ćũŕŕēńţ ƥŕōćēśśōŕ ĥēàĺţĥ; à ƥàśţ àćķńōŵĺēďĝēḿēńţ ďōēś ńōţ ƥŕōvē ćũŕŕēńţ ĥēàĺţĥ.\"],\"qqZDsc\":[\"Ōƀśēŕvàţĩōńś\"],\"qw2orZ\":[\"Ōŕĩĝĩńàĺ śţōŕēď-ŕēàďĩńĝ ćōḿƥàŕĩśōń\"],\"qwp7QZ\":[\"Ƥēŕḿàńēńţĺŷ ŕēĺēàśē ĩńƥũţś\"],\"qzhWuP\":[\"Ƥàŕēńţ ŕēvĩśĩōń\"],\"qzhiSq\":[\"Ĩ ĩńţēńď ţō ŕēśţōŕē ţĥē ēxàćţ ƥŕēvĩōũś ƥŕōƒĩĺē ŵĩţĥōũţ vàĺĩďàţĩōń ēvĩďēńćē.\"],\"r3sa6W\":[\"Ēxƥēŕĩḿēńţ śàvēď: \",[\"0\"]],\"rJRd6m\":[\"Ţĥē ķēŷ ţĥē ƥōď ũśēś ţō ŕēàćĥ ŷōũŕ ĥōśţ\"],\"rLBjVo\":[\"Àćţĩvē ĝēńēŕàţĩōńś: ĺēƒţ \",[\"0\"],\", ŕĩĝĥţ \",[\"1\"],\".\"],\"rMag_1\":[\"Ƒŕēēźĩńĝ ƒàĩĺēď.\"],\"rPk-pR\":[\"ũńćĥàńĝēď\"],\"rSRVPh\":[\"À śàvēď ŕēǫũēśţ ďōēś ńōţ ḿēàń ēxēćũţĩōń ĥàś śţàŕţēď ōŕ śũććēēďēď. Ĩńśƥēćţ ţĥē Ĵōƀ ƒōŕ ĩţś ćũŕŕēńţ śţàţē.\"],\"rT2tqA\":[\"Ŕēƒēŕēńćē ƒōŕḿàţ\"],\"rZSSdB\":[\"Ƥŕōƒĩĺē ĺĩƒēćŷćĺē\"],\"rnN7wn\":[\"Ńō ƀàćķţēśţ ŷēţ. Ţĥĩś ďàţàśēţ ĥàś ńō ŵàvēƒōŕḿ ŕēƥĺàŷ; ƒŕēēźē à ńēŵ ďàţàśēţ ƀēĺōŵ ţō śēţ ōńē ũƥ. Ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"rruaq8\":[\"Ŕēƒēŕēńćē ĩďēńţĩţŷ ďōēś ńōţ ḿàţćĥ ţĥē śēĺēćţēď ŕēƥōŕţ.\"],\"ruHgkn\":[\"Ēàćĥ 5-ḿĩńũţē ēƥōćĥ ţàķēś ţĥē ƒĩŕśţ ŕũĺē ţĥàţ ḿàţćĥēś\"],\"sN516V\":[\"Ƥũḿƥ śţàĺĺ ƥŕōţēćţĩōń\"],\"sPFHpI\":[\"Ďĩśķ\"],\"sbMCzq\":[\"Ńō ćōḿƥàţĩƀĺē vàĺũēś ōń ţĥēśē ƥàĝēś.\"],\"scVcMn\":[\"ĤŔ ḾÀĒ / ƀĩàś (\",[\"0\"],\")\"],\"sdPN1F\":[\"Ďàţàśēţ\"],\"sdgA-V\":[\"Ŕēƒēŕēńćē ćōḿƥàŕĩśōń ƒàĩĺēď.\"],\"sgOAS_\":[\"Śàvēď ōƀśēŕvàţĩōńś: \",[\"0\"]],\"srnBNJ\":[\"ńō ŕēƒēŕēńćē\"],\"svAg_h\":[\"Ƒŕēēźē à ńēŵ ďàţàśēţ\"],\"t-Vlce\":[\"Ńōţĥĩńĝ ĥàś ĥàƥƥēńēď ōń ţĥĩś śĩďē ŷēţ.\"],\"t072kc\":[\"Ćĥōōśĩńĝ ńĩĝĥţś ţĥē ŕēƒēŕēńćē ćōvēŕś…\"],\"t85xzT\":[\"ĤŔ ēŕŕōŕ ƥēŕ ńĩĝĥţ · ƀƥḿ vś ŕēƒēŕēńćē\"],\"t9S3g1\":[\"Ćōḿƥàŕē àĝàĩńśţ ţĥē śàvēď ƥŕōƒĩĺē. Ţĥĩś ĩś à ćōńƒĩĝũŕàţĩōń ćōḿƥàŕĩśōń, ńōţ vàĺĩďàţĩōń ēvĩďēńćē.\"],\"tBe0Mi\":[\"Ŵĥàţ ţĥē śàvēď ƥŕōƒĩĺē ďĩď\"],\"tEXMPn\":[\"Ŕēśţōŕē ƥŕēvĩōũś\"],\"tQU1G2\":[\"Ĺĩḿĩţàţĩōńś\"],\"tRmb9r\":[\"Ŕēćēńţ śēŕvĩćē ĺōĝś\"],\"tToCKC\":[\"Ŕēţàĩńēď ƀŷţēś: \",[\"0\"]],\"tXkhj_\":[\"Śţàŕţ\"],\"ta6ak8\":[\"Ƒŕēēźē śēĺēćţēď ĩńƥũţś\"],\"tf6U9f\":[\"Ćōḿƥŕēśśēď ƀŷţēś: \",[\"0\"]],\"ti4sFo\":[\"Śţōŕēď à \",[\"0\"],\" ŕēƒēŕēńćē ĩḿƥōŕţ\"],\"ts0Iq9\":[\"Ĥēàŕţ-ŕàţē śƥĩķē ţĥŕēśĥōĺď (śţàńďàŕď ďēvĩàţĩōńś)\"],\"ttIsX4\":[\"Ŵĥĩćĥ ŕēĺēàśēś ţĥē ƥōď ĩńśţàĺĺś\"],\"ttc02l\":[\"Ŕēƒēŕēńćē ḿĩńũţēś\"],\"u41hN6\":[\"Ćōvēŕàĝē ŕēďũćēď\"],\"u5a5NC\":[\"Ŕēǫũĩŕēś ŕē-vēŕĩƒĩćàţĩōń\"],\"u8PbT5\":[\"Àĺśō ŕēƥĺàŷ śĺēēƥ śţàĝēś\"],\"uAQUqI\":[\"Śţàţũś\"],\"uMzbru\":[\"Ŕēţàĩń śēĺēćţēď ŵàvēƒōŕḿś\"],\"uPiT3Y\":[\"Ćĥàńĝēď vàĺũēś àŕē ŵĥĩţē; ţĥē ƥŕēvĩōũś ƥŕōƒĩĺē (Śŷśţēḿ ďēƒàũĺţś) śĩţś ũńďēŕńēàţĥ. Ḿōvĩńĝ à ćōńţŕōĺ ēďĩţś ţĥē śàvēď ƥŕōƒĩĺē; śàvĩńĝ àĝàĩń ŕē-ŕēǫũēśţś ĩţ. Ţĥē ƥŕōćēśśōŕ àďōƥţś à ƥŕōƒĩĺē ōńĺŷ àƒţēŕ ĩţ àćķńōŵĺēďĝēś à ŕēǫũēśţ.\"],\"uQh6hr\":[\"Ćōḿƥàŕĩśōń / ƀàśēĺĩńē\"],\"uVvWY-\":[\"Ŕēćōŕďēď ńĩĝĥţś\"],\"uX0V3h\":[\"Ćōḿƥàŕĩśōń ŕēƒēŕēńćē ŕēćōŕďś\"],\"uZsFeN\":[\"Àƥƥĺŷ ţĥĩś ēxàćţ ćàńďĩďàţē ũśĩńĝ ţĥē śēĺēćţēď ēvàĺũàţĩōń. Ēvĩďēńćē àńď ćũŕŕēńţ śēţţĩńĝś àŕē ćĥēćķēď àĝàĩń ŵĥēń àƥƥĺŷĩńĝ.\"],\"ubgn_Q\":[\"Ćàńďĩďàţē śĺēēƥ-śţàĝē ŕũĺēś\"],\"uihHRS\":[\"Ţĥē ƥōď ŕēĴēćţēď ţĥĩś ƥĺàń. ÀďĴũśţ ĩţ àńď ƥŕēƥàŕē àĝàĩń.\"],\"uj0QeQ\":[\"Ţĥŕēśĥōĺď ƒàĩĺēď: \",[\"reason\"]],\"uj9vMS\":[\"Śĥōŕţēśţ ƀŕēàţĥĩńĝ ĩńţēŕvàĺ (× ḿēďĩàń)\"],\"uk6Pmi\":[\"Ĩḿƥōŕţ ŕēƒēŕēńćē ḿēàśũŕēḿēńţś\"],\"ukOhBN\":[\"Ćĥōōśē ţĥē ƥŕōţōćōĺ ƀēƒōŕē ĺōōķĩńĝ àţ ŕēśũĺţś. Ćŕēàţĩńĝ àń ēxƥēŕĩḿēńţ ďōēś ńōţ ŕũń à Ĵōƀ ōŕ àƥƥĺŷ à ƥŕōƒĩĺē.\"],\"uv3Ezk\":[\"Ćàńďĩďàţē ĺōŵ-śĩĝńàĺ ŕũĺē\"],\"v0YxJ6\":[\"Ćōḿḿōń-śũƥƥōŕţ ďēţàĩĺś: \",[\"0\"]],\"vAFAci\":[\"Ŕēvĩēŵ ćàńďĩďàţē\"],\"vKQ3HQ\":[\"Ĥēàŕţ ŕàţē ţũńĩńĝ\"],\"vVE3Ho\":[\"Ćōḿƥàŕē ƒŕōźēń ŕēƒēŕēńćēś\"],\"vX6LBe\":[\"Ĩńćōḿƥàţĩƀĺē ēvàĺũàţĩōń ēvĩďēńćē\"],\"vX8Jre\":[\"ĤŔV ĨŃĎĒX\"],\"vZ6rJ5\":[\"Ćōŕŕēćţ ĩḿƥōŕţ\"],\"vZdyzL\":[\"Ŕēƒēŕēńćē ćōvēŕàĝē ĩś ţĥē ƒŕàćţĩōń ōƒ ēĺĩĝĩƀĺē ŕēƒēŕēńćē ŕēćōŕďś ƥàĩŕēď. Ōũţƥũţ ćōvēŕàĝē ĩś ţĥē ƒŕàćţĩōń ōƒ ōƀśēŕvàţĩōńś ŵĩţĥ à vàĺũē, ńōţ ćōńţĩńũōũś ţĩḿē ćōvēŕàĝē. Śƥàŕśē śàḿƥĺēś ćàńńōţ ēśţàƀĺĩśĥ ŵĥōĺē-ńĩĝĥţ àććũŕàćŷ.\"],\"vhqhMs\":[\"Ŵōŕķēŕ ćĺēàńũƥ ĥàś ńōţ ƀēēń ćōńƒĩŕḿēď.\"],\"vkIIv_\":[\"Śēĺēćţēď śēśśĩōńś: \",[\"0\"],\" / 60\"],\"vl7cYu\":[\"Śēńśōŕ ďàţà śōũŕćē\"],\"vq24aI\":[\"Ḿēàśũŕēď Ƥŷţĥōń ƥŕōćēśśēś: \",[\"0\"],\" ōƒ \",[\"1\"]],\"vq2FYw\":[\"Ŕũĺē \",[\"0\"]],\"vrQQgz\":[\"Ƥŕōƒĩĺēś\"],\"vuyIUW\":[\"Ćàńďĩďàţē àńď àćţĩvē ŕēàďĩńĝś ćōũĺď ńōţ ƀē ƥàĩŕēď ŕēĺĩàƀĺŷ.\"],\"vv7kpg\":[\"Ćàńćēĺĺēď\"],\"w6ZzbW\":[\"ƥŕēvĩōũś\"],\"wHpeCu\":[\"Ţũńĩńĝ\"],\"wKbWyv\":[\"Śàvēś ĩţ àś ţĥē ƥŕōƒĩĺē àńď ŕēǫũēśţś ĩţ; ţĥē ćũŕŕēńţ śàvēď ƥŕōƒĩĺē ƀēćōḿēś ƥŕēvĩōũś. Ţĥē ƥŕōćēśśōŕ ķēēƥś ŕũńńĩńĝ ŵĥàţ ĩţ ĥàś ũńţĩĺ ĩţ àćķńōŵĺēďĝēś ţĥē ŕēǫũēśţ.\"],\"wMHvYH\":[\"Vàĺũē\"],\"wOA2YL\":[\"À śàvēď ŕēvĩśĩōń ĩś ńōţ ēvĩďēńćē ōƒ vàĺĩďàţĩōń ōŕ ƥŕōćēśśōŕ àďōƥţĩōń.\"],\"wOuuTa\":[\"Ŕēƒēŕēńćē / ƥŕēďĩćţēď\"],\"wPpM6Q\":[\"Ƥĺàń ĥàśĥ\"],\"wQBmjJ\":[\"ßŕēàţĥĩńĝ ţũńĩńĝ\"],\"wRR604\":[\"Ƥàĝēś\"],\"wTOwz-\":[\"Àƥƥĺĩēď\"],\"we3ttu\":[\"Ďàţàśēţ ĥàśĥ\"],\"wn_sE_\":[\"Śĩĝńēď ƀĩàś\"],\"wu6Pa1\":[\"ĹĒĎ ƀŕĩĝĥţńēśś\"],\"ww-u9k\":[\"Àććēƥţēď: \",[\"0\"],\"; ŕēĴēćţēď: \",[\"1\"],\"; ďũƥĺĩćàţēś: \",[\"2\"],\"; ũńśćōŕàƀĺē: \",[\"3\"]],\"x0EO-w\":[\"ŵĩńďōŵ ĨßĨ vàŕĩàƀĩĺĩţŷ, ńōţ ćĺĩńĩćàĺ ŔḾŚŚĎ\"],\"x9pT2j\":[\", ŵĩţĥ \",[\"count\"],\" ōvēŕŕĩďēś\"],\"x9u6nv\":[\", ŵĩţĥ ńō ōvēŕŕĩďēś\"],\"xCyL2U\":[\"Ŕēƒēŕēńćē ƥŕēvĩēŵ ƒàĩĺēď.\"],\"xDr_ct\":[\"Ēńď\"],\"xHMZQc\":[\"Ŕēƥĺàŷ ƥŕōćēśśĩńĝ ćōśţś\"],\"xHs5dk\":[\"┆ ĝēń Ń ƥŕōƒĩĺē ćĥàńĝē\"],\"xS38A7\":[\"Ţĥĩś ōĺďēŕ ŕũń ĥàś ńō śàvēď ćàńďĩďàţē ŕēvĩśĩōń ĩďēńţĩţŷ.\"],\"xUBoEO\":[\"Ćōńƒũśĩōń ḿàţŕĩx ĩń ḿĩńũţēś: ŕēƒēŕēńćē ŕōŵś, ƥŕēďĩćţēď ćōĺũḿńś\"],\"xWY4U3\":[\"Àũţōḿàţĩōńś ţĥàţ àďĴũśţ ţĥē ƀēď ƒōŕ ŷōũ\"],\"xaHJrr\":[\"Ńō ƀàćķţēśţ ĥàś ŕēƥĺàŷēď ţĥē śàvēď ƥŕōƒĩĺē ŷēţ. Śàvĩńĝ à ćĥàńĝē ŕēƥĺàŷś ţĥē ƒŕōźēń ďàţàśēţ ōń ĩţś ţũńĩńĝ, vàĺĩďàţĩōń àńď ĥōĺďōũţ ńĩĝĥţś; ńōţĥĩńĝ ĥēŕē ćĥàńĝēś ţĥē ƥōď.\"],\"xahtIL\":[\"Ḿàńũàĺ àćţĩvàţĩōń\"],\"xem4Yw\":[\"Ķēēƥ ŕēƥōŕţ\"],\"xh-6Jm\":[\"Ŵĥàţ ēàćĥ śĩďē ĩś ćàĺĺēď\"],\"xh4HSZ\":[\"Ēĺĩĝĩƀĺē ŕēƒēŕēńćē ḿĩńũţēś\"],\"xmGHa-\":[\"Ōĺďēŕ ēxƥēŕĩḿēńţś\"],\"y-5ho7\":[\"Ŕēćōḿƥũţēď ŕēàďĩńĝś \",[\"first\"],\"–\",[\"0\"],\" ōƒ \",[\"1\"]],\"y1-Ttq\":[\"Ēďĩţ ōvēŕŕĩďēś\"],\"y1L8fR\":[\"Śţōŕēď ōƀśēŕvàţĩōńś: \",[\"0\"]],\"y7CEna\":[\"Ćĺēàŕ ţĥĩś ńĩĝĥţ’ś śēĺēćţĩōń\"],\"yD0Ka7\":[\"Ƒĩŕśţ ĥàĺƒ ōƒ ēàćĥ ŵĩńďōŵ\"],\"yHNO9L\":[\"Ŕēƒēŕēńćē ŕēćōŕďś\"],\"yJgBTR\":[\"ƒĩŕśţ 500 ŕēàďĩńĝś\"],\"yQwtrO\":[\"Ńōŕḿàĺĩźēď ŕēƒēŕēńćē ḿēàśũŕēḿēńţś\"],\"yTWKne\":[\"Ƒĩńĩśĥēď à ƀàćķţēśţ ōń \",[\"0\"],\" ńĩĝĥţś\"],\"yUns4e\":[\"Ēxàćţ ţŕàćē ĩńţēŕvàĺś\"],\"yZcT27\":[\"Ŕēśţōŕē śŷśţēḿ ďēƒàũĺţś\"],\"ykpqy2\":[\"Ćũŕŕēńţ śţàĝē vĩēŵ\"],\"ysAeQM\":[\"Ćàńďĩďàţē ćōvēŕàĝē ŵàś ŕēďũćēď; ĺōŵēŕ ēŕŕōŕ àĺōńē ďōēś ńōţ śĥōŵ ĩḿƥŕōvēḿēńţ.\"],\"ywFj2D\":[\"Ćōńƒĩĝũŕàţĩōń\"],\"yyCcHp\":[\"Śţàĝē ćōvēŕàĝē àńď ćōńƒũśĩōń ƀŷ ńĩĝĥţ\"],\"yydYOL\":[\"Ŕēvĩēŵ ŕēƥōŕţ\"],\"z1a7gg\":[\"Ţĥĩś ŕēǫũēśţ ŕēƒēŕś ţō à ŕēĺēàśēď ďàţàśēţ. Ĩţś ŵàvēƒōŕḿ ƀŷţēś àŕē ũńàvàĩĺàƀĺē.\"],\"z35-JD\":[\"Śēńśōŕ ƀàśēĺĩńēś ƒōŕ ƥĩēźō, ćàƥàćĩţàńćē àńď ţēḿƥēŕàţũŕē\"],\"z5mSEw\":[\"Ŵàvēƒōŕḿ ďàţàśēţ ŕēţàĩńēď: \",[\"published\"]],\"zD4VqY\":[\"Ńōţ śćōŕēď\"],\"zHYvnZ\":[\"Śḿōōţĥ ĩśōĺàţēď ēƥōćĥś\"],\"zPlfe_\":[\"Ōƀśēŕvàţĩōń ţēḿƥĺàţē\"],\"zQ1eT8\":[\"Ćàńďĩďàţē\"],\"zTAN4I\":[\"Śĺēēƥēŕ ĩďēńţĩƒĩēŕ\"],\"zXaTA9\":[\"Ḿĩśśĩńĝ ōƀśēŕvàţĩōńś ŕēḿàĩń ḿĩśśĩńĝ. Ţĥē ĨßĨ vàŕĩàƀĩĺĩţŷ ĩńďēx ĩś ńōţ ćĺĩńĩćàĺ ŔḾŚŚĎ.\"],\"zg_dr-\":[\"Ďũŕàţĩōńś ćōvēŕ śēǫũēńţĩàĺ Ƥŷţĥōń ŵōŕķ ţĥŕōũĝĥ ŕēśũĺţ ĝēńēŕàţĩōń. Ḿēḿōŕŷ ĩś ţĥē ĺàŕĝēśţ ƥŕōćēśś ĺĩƒēţĩḿē ƥēàķ. Ţĥēśē ḿēàśũŕēḿēńţś ēxćĺũďē ćōōŕďĩńàţōŕ àńď śćōŕĩńĝ ćōśţś àńď ďō ńōţ ēśţàƀĺĩśĥ ĺĩvē ĩńĝēśţĩōń ĥēàĺţĥ.\"]}")}; \ No newline at end of file diff --git a/src/lib/i18n/locales/pseudo.po b/src/lib/i18n/locales/pseudo.po index d934ff627..d7a8fe049 100644 --- a/src/lib/i18n/locales/pseudo.po +++ b/src/lib/i18n/locales/pseudo.po @@ -3804,7 +3804,7 @@ msgid "Wake" msgstr "" #: src/components/biometrics/BiometricsPage.tsx:280 -msgid "Watch SDNN and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values." +msgid "Watch SDNN, Watch RMSSD and sleepypod’s window-based IBI variability index use different calculations. They cannot be directly converted; compare their trends, not their absolute values." msgstr "" #: src/components/biometrics/Calibration/WaveformDatasetBuilder.tsx:133 diff --git a/src/lib/natsSubjectPrefix.ts b/src/lib/natsSubjectPrefix.ts new file mode 100644 index 000000000..2312792de --- /dev/null +++ b/src/lib/natsSubjectPrefix.ts @@ -0,0 +1,13 @@ +/** + * `device_settings.nats_subject_prefix`: the NATS subject prefix the sensor + * readers subscribe under (`.sens.>`, `.frz.>`). Shared by the + * settings router, the Node reader and the Settings card; keep the pattern in + * sync with `NATS_SUBJECT_PREFIX_RE` in modules/common/nats_follower.py. + */ + +/** One subject token: no dots or wildcards, so a pin can never widen the subscription. */ +export const NATS_SUBJECT_PREFIX_PATTERN = /^[A-Za-z0-9_-]{1,32}$/ + +export function isNatsSubjectPrefix(value: unknown): value is string { + return typeof value === 'string' && NATS_SUBJECT_PREFIX_PATTERN.test(value) +} diff --git a/src/lib/personal-stage-model.ts b/src/lib/personal-stage-model.ts index a60e6a15f..945808b27 100644 --- a/src/lib/personal-stage-model.ts +++ b/src/lib/personal-stage-model.ts @@ -21,10 +21,23 @@ import type { SleepEpoch, SleepStage, SleepStageBlock } from './sleep-stages' export const STAGE_MODEL_EPOCH_SECONDS = 300 const WINDOW_HALF_SECONDS = 450 -/** Column names of the two feature contracts, in the order models expect them. */ +/** Column names of the feature contracts, in the order models expect them. */ export const CHALLENGER_CONTRACT = ['hrZ', 'hrStdZ', 'motionZ', 'nightFraction'] as const export const POD_NATIVE_CONTRACT = [...CHALLENGER_CONTRACT, 'hrvRel', 'hrv15Rel', 'hr15StdRel', 'br15Std', 'motion15', 'minutesSinceBed'] as const -export const STAGE_MODEL_CONTRACTS = { challenger: CHALLENGER_CONTRACT, podNative: POD_NATIVE_CONTRACT } as const +/** + * podNative plus temporal context, movement bouts and arousal features (sleepypod/training + * scripts/feature-ablation.py): neighbouring and 30-minute values (Radha 2019, Fonseca 2020), + * still bouts from per-minute movement (Kortelainen 2010, van Hees 2015), and heart-rate rise + * with breathing variability (Willemen 2014). Retrospective, like podNative. + */ +export const POD_CONTEXT_CONTRACT = [ + ...POD_NATIVE_CONTRACT, + 'hrZPrev', 'hrZNext', 'hrZMean30', 'hrStdZPrev', 'hrStdZNext', 'hrStdZMean30', + 'motionZPrev', 'motionZNext', 'motionZMean30', 'hrvRelPrev', 'hrvRelNext', 'hrvRelMean30', 'minutesToExit', + 'activeMinutes', 'peakMinuteZ', 'minutesFromMove', 'stillBoutMinutes', 'active15', + 'hrRise', 'hrMaxZ', 'brStdEpoch', 'brRel', 'moveHrCoupling', +] as const +export const STAGE_MODEL_CONTRACTS = { challenger: CHALLENGER_CONTRACT, podNative: POD_NATIVE_CONTRACT, podContext: POD_CONTEXT_CONTRACT } as const export type StageModelContract = keyof typeof STAGE_MODEL_CONTRACTS const number = z.number().finite() @@ -55,7 +68,7 @@ export const stageModelSchema = z.object({ kind: z.enum(['forest', 'logistic']), /** Class order of every vote, score and `expected`: always the four stages in StageScore order. */ classes: z.tuple([z.literal('wake'), z.literal('light'), z.literal('deep'), z.literal('rem')]), - featureContract: z.array(z.string().min(1)).min(1).max(32), + featureContract: z.array(z.string().min(1)).min(1).max(64), epochSeconds: z.literal(STAGE_MODEL_EPOCH_SECONDS).default(STAGE_MODEL_EPOCH_SECONDS), /** Forest: trees over feature indices into `featureContract`. */ trees: z.array(treeSchema).max(1000).optional(), @@ -202,6 +215,12 @@ function median(values: number[]): number { const mid = sorted.length >> 1 return sorted.length % 2 === 0 ? (sorted[mid - 1] + sorted[mid]) / 2 : sorted[mid] } +/** Median-centred, scaled by 1.4826 × MAD; all zeros when the MAD is zero. */ +function robustZScores(values: number[]): number[] { + const m = median(values) + const mad = median(values.map(v => Math.abs(v - m))) * 1.4826 + return values.map(v => (mad > 0 ? (v - m) / mad : 0)) +} /** * The contract's rows for a night: 5-minute epochs from bed entry (a trailing @@ -263,6 +282,60 @@ export function stageModelFeatures(contract: StageModelContract, enteredBed: Dat row.values.motion15 = Math.log(1 + motion15) row.values.minutesSinceBed = (row.start - entered) / 60 } + if (contract === 'podNative') return out + + // Context: neighbours by time, so a skipped epoch falls back to the epoch's own value. + const byStart = new Map(out.map(row => [row.start, row])) + const contextColumns = ['hrZ', 'hrStdZ', 'motionZ', 'hrvRel'] as const + for (const row of out) { + for (const column of contextColumns) { + row.values[`${column}Prev`] = (byStart.get(row.start - STAGE_MODEL_EPOCH_SECONDS) ?? row).values[column] + row.values[`${column}Next`] = (byStart.get(row.start + STAGE_MODEL_EPOCH_SECONDS) ?? row).values[column] + row.values[`${column}Mean30`] = mean(out.filter(r => Math.abs(r.start - row.start) <= 3 * STAGE_MODEL_EPOCH_SECONDS).map(r => r.values[column])) + } + row.values.minutesToExit = (left - row.start) / 60 + } + + // Movement: minutes clearly above the night's own floor, and the still bout around each epoch. + const movementZ = robustZScores(mv.map(s => Math.log1p(s.v))) + const active = mv.filter((_, i) => movementZ[i] > 3).map(s => s.t) + const nightBRMedian = median(br.map(s => s.v)) + const peaks: number[] = [] + const hrMax: number[] = [] + for (const row of out) { + const start = row.start + const end = start + STAGE_MODEL_EPOCH_SECONDS + const mid = start + STAGE_MODEL_EPOCH_SECONDS / 2 + const inside = mv.filter(s => s.t >= start && s.t < end).map(s => s.v) + const before = active.filter(t => t <= mid) + const after = active.filter(t => t > mid) + const last = before.length ? before[before.length - 1] : null + const next = after.length ? after[0] : null + const distances = [last, next].filter((t): t is number => t !== null).map(t => Math.abs(mid - t)) + const boutStart = last ?? (mv.length ? mv[0].t : start) + const boutEnd = next ?? (mv.length ? mv[mv.length - 1].t : end) + row.values.activeMinutes = active.filter(t => t >= start && t < end).length + peaks.push(inside.length ? Math.log1p(Math.max(...inside)) : 0) + row.values.minutesFromMove = distances.length ? Math.min(...distances) / 60 : 720 + row.values.stillBoutMinutes = Math.max(boutEnd - boutStart, 0) / 60 + row.values.active15 = active.filter(t => Math.abs(t - mid) <= 900).length + + // Arousal: heart-rate rise against the preceding 15 minutes, breathing within the epoch. + const beats = hr.filter(s => s.t >= start && s.t < end).map(s => s.v) + const prior = hr.filter(s => s.t >= start - 900 && s.t < start).map(s => s.v) + const breaths = br.filter(s => s.t >= start && s.t < end).map(s => s.v) + row.values.hrRise = beats.length && prior.length && nightHRStd > 0 ? (Math.max(...beats) - median(prior)) / nightHRStd : 0 + hrMax.push(Math.max(...beats)) + row.values.brStdEpoch = breaths.length > 1 ? populationStd(breaths) : 0 + row.values.brRel = breaths.length && nightBRMedian > 0 ? mean(breaths) / nightBRMedian : 0 + } + const peakZ = robustZScores(peaks) + const hrMaxZ = zScores(hrMax) + out.forEach((row, i) => { + row.values.peakMinuteZ = peakZ[i] + row.values.hrMaxZ = hrMaxZ[i] + row.values.moveHrCoupling = row.values.activeMinutes * Math.max(row.values.hrRise, 0) + }) return out } diff --git a/src/lib/tests/fixtures/stage-features-context.json b/src/lib/tests/fixtures/stage-features-context.json new file mode 100644 index 000000000..c312b9ae9 --- /dev/null +++ b/src/lib/tests/fixtures/stage-features-context.json @@ -0,0 +1,2345 @@ +{ + "source": "sleepypod/training scripts/feature-ablation.py (movement_features, arousal_features, context_features) on stage-features-night.json", + "contractC": [ + { + "start": 1700000060, + "hrZ": -1.028286841065768, + "hrStdZ": 0.11348822171620755, + "motionZ": -0.34151438545852214, + "nightFraction": 0.0, + "hrvRel": 1.2094599890273532, + "hrv15Rel": 1.254066648141419, + "hr15StdRel": 0.3555309304546723, + "br15Std": 0.5985657789546083, + "motion15": 4.30406509320417, + "minutesSinceBed": 0.0, + "hrZPrev": -1.028286841065768, + "hrZNext": -0.7902342283457965, + "hrZMean30": -0.7450955839474267, + "hrStdZPrev": 0.11348822171620755, + "hrStdZNext": -0.27279094915877133, + "hrStdZMean30": -0.2395206204909081, + "motionZPrev": -0.34151438545852214, + "motionZNext": -0.47278264144387433, + "motionZMean30": -0.4022168207584822, + "hrvRelPrev": 1.2094599890273532, + "hrvRelNext": 1.304412571518144, + "hrvRelMean30": 1.2711125480053296, + "minutesToExit": 328.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 79.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.0, + "hrMaxZ": -1.00509455076433, + "brStdEpoch": 0.6743411599479895, + "brRel": 0.9612146307798483, + "moveHrCoupling": 0.0 + }, + { + "start": 1700000360, + "hrZ": -0.7902342283457965, + "hrStdZ": -0.27279094915877133, + "motionZ": -0.47278264144387433, + "nightFraction": 0.01524390243902439, + "hrvRel": 1.304412571518144, + "hrv15Rel": 1.2626675288031977, + "hr15StdRel": 0.37226337211728117, + "br15Std": 0.55589981954935, + "motion15": 4.564348191467836, + "minutesSinceBed": 5.0, + "hrZPrev": -1.028286841065768, + "hrZNext": -0.6010818137240573, + "hrZMean30": -0.7372500576591386, + "hrStdZPrev": 0.11348822171620755, + "hrStdZNext": -0.10270596765953444, + "hrStdZMean30": -0.1395519033428513, + "motionZPrev": -0.34151438545852214, + "motionZNext": -0.47278264144387433, + "motionZMean30": -0.4545902891501754, + "hrvRelPrev": 1.2094599890273532, + "hrvRelNext": 1.2556234814640646, + "hrvRelMean30": 1.2961909240536094, + "minutesToExit": 323.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 74.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.3731841079102647, + "hrMaxZ": -0.9605267546730542, + "brStdEpoch": 0.48559242168715927, + "brRel": 0.9917184265010351, + "moveHrCoupling": 0.0 + }, + { + "start": 1700000660, + "hrZ": -0.6010818137240573, + "hrStdZ": -0.10270596765953444, + "motionZ": -0.47278264144387433, + "nightFraction": 0.03048780487804878, + "hrvRel": 1.2556234814640646, + "hrv15Rel": 1.2960410298612746, + "hr15StdRel": 0.2948131331529299, + "br15Std": 0.47498026274783245, + "motion15": 4.605170185988092, + "minutesSinceBed": 10.0, + "hrZPrev": -0.7902342283457965, + "hrZNext": -0.560779452654085, + "hrZMean30": -0.7292433219265712, + "hrStdZPrev": -0.27279094915877133, + "hrStdZNext": -0.6960737868615342, + "hrStdZMean30": -0.2603550816007825, + "motionZPrev": -0.47278264144387433, + "motionZNext": -0.3217876146876578, + "motionZMean30": -0.4261394191736308, + "hrvRelPrev": 1.304412571518144, + "hrvRelNext": 1.314954150011756, + "hrvRelMean30": 1.2960198030148653, + "minutesToExit": 318.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 69.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.7690941711099363, + "hrMaxZ": -0.5174704288244918, + "brStdEpoch": 0.3038683925649392, + "brRel": 1.0042788129744653, + "moveHrCoupling": 0.0 + }, + { + "start": 1700000960, + "hrZ": -0.560779452654085, + "hrStdZ": -0.6960737868615342, + "motionZ": -0.3217876146876578, + "nightFraction": 0.04573170731707317, + "hrvRel": 1.314954150011756, + "hrv15Rel": 1.311544791911592, + "hr15StdRel": 0.33170229954686214, + "br15Std": 0.41722108947175707, + "motion15": 4.5217885770490405, + "minutesSinceBed": 15.0, + "hrZPrev": -0.6010818137240573, + "hrZNext": -0.7058679525059868, + "hrZMean30": -0.5729853105781337, + "hrStdZPrev": -0.10270596765953444, + "hrStdZNext": 0.260322965249376, + "hrStdZMean30": -0.0604291031273053, + "motionZPrev": -0.47278264144387433, + "motionZNext": -0.6640841627169484, + "motionZMean30": -0.439898969781835, + "hrvRelPrev": 1.2556234814640646, + "hrvRelNext": 1.3965044282467278, + "hrvRelMean30": 1.2662658291626079, + "minutesToExit": 313.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 64.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.44016587086851583, + "hrMaxZ": -0.805850285885687, + "brStdEpoch": 0.5650699071796336, + "brRel": 1.0182194616977225, + "moveHrCoupling": 0.0 + }, + { + "start": 1700001260, + "hrZ": -0.7058679525059868, + "hrStdZ": 0.260322965249376, + "motionZ": -0.6640841627169484, + "nightFraction": 0.06097560975609756, + "hrvRel": 1.3965044282467278, + "hrv15Rel": 1.321185045849988, + "hr15StdRel": 0.31274999914561546, + "br15Std": 0.4610314522893204, + "motion15": 4.672828834461906, + "minutesSinceBed": 20.0, + "hrZPrev": -0.560779452654085, + "hrZNext": -0.6892096432637339, + "hrZMean30": -0.30376553863071576, + "hrStdZPrev": -0.6960737868615342, + "hrStdZNext": -0.8643709728904386, + "hrStdZMean30": -0.09666794081036974, + "motionZPrev": -0.3217876146876578, + "motionZNext": -0.2838850692909076, + "motionZMean30": -0.46213850779654414, + "hrvRelPrev": 1.314954150011756, + "hrvRelNext": 1.295164197821146, + "hrvRelMean30": 1.2086594336770682, + "minutesToExit": 308.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 59.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.7057007168815882, + "hrMaxZ": -0.39425358080743605, + "brStdEpoch": 0.27389048906451646, + "brRel": 0.9932367149758453, + "moveHrCoupling": 0.0 + }, + { + "start": 1700001560, + "hrZ": -0.6892096432637339, + "hrStdZ": -0.8643709728904386, + "motionZ": -0.2838850692909076, + "nightFraction": 0.07621951219512195, + "hrvRel": 1.295164197821146, + "hrv15Rel": 1.2493093110745357, + "hr15StdRel": 0.6408208375169906, + "br15Std": 0.3712058054502921, + "motion15": 4.532599493153256, + "minutesSinceBed": 25.0, + "hrZPrev": -0.7058679525059868, + "hrZNext": 0.3645627575124909, + "hrZMean30": -0.10457591694250255, + "hrStdZPrev": 0.260322965249376, + "hrStdZNext": 1.1391267677135581, + "hrStdZMean30": 0.031027352765101966, + "motionZPrev": -0.6640841627169484, + "motionZNext": -0.52245627343106, + "motionZMean30": -0.4405677896885131, + "hrvRelPrev": 1.3965044282467278, + "hrvRelNext": 1.0877419860490634, + "hrvRelMean30": 1.158129275693348, + "minutesToExit": 303.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 54.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.21529852379438283, + "hrMaxZ": -0.9474185793520915, + "brStdEpoch": 0.4601130295916428, + "brRel": 0.9995859213250518, + "moveHrCoupling": 0.0 + }, + { + "start": 1700001860, + "hrZ": 0.3645627575124909, + "hrStdZ": 1.1391267677135581, + "motionZ": -0.52245627343106, + "nightFraction": 0.09146341463414634, + "hrvRel": 1.0877419860490634, + "hrv15Rel": 1.0564160592522924, + "hr15StdRel": 0.7081472660727463, + "br15Std": 0.5289786001106284, + "motion15": 4.634728988229636, + "minutesSinceBed": 30.0, + "hrZPrev": -0.6892096432637339, + "hrZNext": 0.8562515625661584, + "hrZMean30": 0.10576402464173622, + "hrStdZPrev": -0.8643709728904386, + "hrStdZNext": -0.14018364206524356, + "hrStdZMean30": 0.16363136940344797, + "motionZPrev": -0.2838850692909076, + "motionZNext": -0.4971911515614862, + "motionZMean30": -0.4371952060811052, + "hrvRelPrev": 1.295164197821146, + "hrvRelNext": 0.8062152206285759, + "hrvRelMean30": 1.1254576601390613, + "minutesToExit": 298.0, + "activeMinutes": 0.0, + "peakMinuteZ": -0.6744907594765952, + "minutesFromMove": 49.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 1.9089802443101984, + "hrMaxZ": 0.8379148993631245, + "brStdEpoch": 0.30812984276113226, + "brRel": 1.0133885438233265, + "moveHrCoupling": 0.0 + }, + { + "start": 1700002160, + "hrZ": 0.8562515625661584, + "hrStdZ": -0.14018364206524356, + "motionZ": -0.4971911515614862, + "nightFraction": 0.10670731707317073, + "hrvRel": 0.8062152206285759, + "hrv15Rel": 0.9552815659534445, + "hr15StdRel": 0.5102556508785014, + "br15Std": 0.5582772048901872, + "motion15": 4.584967478670572, + "minutesSinceBed": 35.0, + "hrZPrev": 0.3645627575124909, + "hrZNext": 0.604093123471696, + "hrZMean30": 0.33376023869472504, + "hrStdZPrev": 1.1391267677135581, + "hrStdZNext": 0.6210761058695307, + "hrStdZMean30": 0.1878539822141154, + "motionZPrev": -0.52245627343106, + "motionZNext": -0.3217876146876578, + "motionZMean30": -0.45876592418913625, + "hrvRelPrev": 1.0877419860490634, + "hrvRelNext": 0.9507014656321027, + "hrvRelMean30": 1.0780121594840615, + "minutesToExit": 293.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 44.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 1.7989387765930689, + "hrMaxZ": 0.8588879798766654, + "brStdEpoch": 0.6875638152200857, + "brRel": 0.9809523809523808, + "moveHrCoupling": 0.0 + }, + { + "start": 1700002460, + "hrZ": 0.604093123471696, + "hrStdZ": 0.6210761058695307, + "motionZ": -0.3217876146876578, + "nightFraction": 0.12195121951219512, + "hrvRel": 0.9507014656321027, + "hrv15Rel": 0.930108158946626, + "hr15StdRel": 0.460965474766044, + "br15Std": 0.5536156016361894, + "motion15": 4.574710978503383, + "minutesSinceBed": 40.0, + "hrZPrev": 0.8562515625661584, + "hrZNext": 0.8712977773656142, + "hrZMean30": 0.5240641493470343, + "hrStdZPrev": -0.14018364206524356, + "hrStdZNext": 0.8255221488088875, + "hrStdZMean30": 0.12428543174011161, + "motionZPrev": -0.4971911515614862, + "motionZNext": -0.4491745561920188, + "motionZMean30": -0.4314371354358399, + "hrvRelPrev": 0.8062152206285759, + "hrvRelNext": 1.0269221725840585, + "hrvRelMean30": 1.0173434998264528, + "minutesToExit": 288.0, + "activeMinutes": 0.0, + "peakMinuteZ": -0.6744907594765952, + "minutesFromMove": 39.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 1.0741004131519771, + "hrMaxZ": 0.6386706344844794, + "brStdEpoch": 0.549275886963919, + "brRel": 1.0078674948240167, + "moveHrCoupling": 0.0 + }, + { + "start": 1700002760, + "hrZ": 0.8712977773656142, + "hrStdZ": 0.8255221488088875, + "motionZ": -0.4491745561920188, + "nightFraction": 0.13719512195121952, + "hrvRel": 1.0269221725840585, + "hrv15Rel": 0.9780449094756641, + "hr15StdRel": 0.4556071385030037, + "br15Std": 0.47430829570544086, + "motion15": 4.653960350157523, + "minutesSinceBed": 45.0, + "hrZPrev": 0.604093123471696, + "hrZNext": 1.0351940457168367, + "hrZMean30": 0.7219679338011108, + "hrStdZPrev": 0.6210761058695307, + "hrStdZNext": -0.5265154971868624, + "hrStdZMean30": 0.30894670991276457, + "motionZPrev": -0.3217876146876578, + "motionZNext": -0.47278264144387433, + "motionZMean30": -0.5001264481732958, + "hrvRelPrev": 0.9507014656321027, + "hrvRelNext": 0.9828356454267575, + "hrvRelMean30": 0.9640030006829913, + "minutesToExit": 283.0, + "activeMinutes": 0.0, + "peakMinuteZ": -0.6744907594765952, + "minutesFromMove": 34.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.9389407843255054, + "hrMaxZ": 1.089591865525622, + "brStdEpoch": 0.3270107031887489, + "brRel": 0.9888198757763974, + "moveHrCoupling": 0.0 + }, + { + "start": 1700003060, + "hrZ": 1.0351940457168367, + "hrStdZ": -0.5265154971868624, + "motionZ": -0.47278264144387433, + "nightFraction": 0.1524390243902439, + "hrvRel": 0.9828356454267575, + "hrv15Rel": 0.9882288972490008, + "hr15StdRel": 0.41836785069383514, + "br15Std": 0.43446087280674645, + "motion15": 4.48863636973214, + "minutesSinceBed": 50.0, + "hrZPrev": 0.8712977773656142, + "hrZNext": 0.626259422060178, + "hrZMean30": 0.686501856059535, + "hrStdZPrev": 0.8255221488088875, + "hrStdZNext": -0.1846568880686506, + "hrStdZMean30": 0.014565597443864875, + "motionZPrev": -0.4491745561920188, + "motionZNext": -0.47278264144387433, + "motionZMean30": -0.49303021503226924, + "hrvRelPrev": 1.0269221725840585, + "hrvRelNext": 0.9718238106434675, + "hrvRelMean30": 0.938441212365501, + "minutesToExit": 278.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 29.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.7176617459812772, + "hrMaxZ": 0.9113206811605198, + "brStdEpoch": 0.5147970473885799, + "brRel": 0.9953071083505867, + "moveHrCoupling": 0.0 + }, + { + "start": 1700003360, + "hrZ": 0.626259422060178, + "hrStdZ": -0.1846568880686506, + "motionZ": -0.47278264144387433, + "nightFraction": 0.1676829268292683, + "hrvRel": 0.9718238106434675, + "hrv15Rel": 0.9569862450035269, + "hr15StdRel": 0.4155858441868052, + "br15Std": 0.457614398265614, + "motion15": 4.48863636973214, + "minutesSinceBed": 55.0, + "hrZPrev": 1.0351940457168367, + "hrZNext": 0.6961168479148027, + "hrZMean30": 0.6379854899714916, + "hrStdZPrev": -0.5265154971868624, + "hrStdZNext": 0.42825797431813223, + "hrStdZMean30": 0.06790895184564597, + "motionZPrev": -0.47278264144387433, + "motionZNext": -0.7647102584530985, + "motionZMean30": -0.48617070140805957, + "hrvRelPrev": 0.9828356454267575, + "hrvRelNext": 0.9217807038169133, + "hrvRelMean30": 0.9556839429870232, + "minutesToExit": 273.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 24.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.10406095316728574, + "hrMaxZ": 0.4289398293490657, + "brStdEpoch": 0.4355961432336148, + "brRel": 0.996273291925466, + "moveHrCoupling": 0.0 + }, + { + "start": 1700003660, + "hrZ": 0.6961168479148027, + "hrStdZ": 0.42825797431813223, + "motionZ": -0.7647102584530985, + "nightFraction": 0.18292682926829268, + "hrvRel": 0.9217807038169133, + "hrv15Rel": 0.9293880790030568, + "hr15StdRel": 0.3968029434088038, + "br15Std": 0.38159154782961324, + "motion15": 4.382026634673881, + "minutesSinceBed": 60.0, + "hrZPrev": 0.626259422060178, + "hrZNext": 0.11630021332145865, + "hrZMean30": 0.5471900279609959, + "hrStdZPrev": -0.1846568880686506, + "hrStdZNext": -0.9215410195687398, + "hrStdZMean30": -0.02797840090307498, + "motionZPrev": -0.47278264144387433, + "motionZNext": -0.47278264144387433, + "motionZMean30": -0.526494027513998, + "hrvRelPrev": 0.9718238106434675, + "hrvRelNext": 0.9088094678266321, + "hrvRelMean30": 0.9425503566110196, + "minutesToExit": 268.0, + "activeMinutes": 0.0, + "peakMinuteZ": -4.178168093785555, + "minutesFromMove": 19.5, + "stillBoutMinutes": 82.0, + "active15": 0.0, + "hrRise": 0.38514513700995195, + "hrMaxZ": 0.7251845916028393, + "brStdEpoch": 0.3060065358779127, + "brRel": 1.0220841959972393, + "moveHrCoupling": 0.0 + }, + { + "start": 1700003960, + "hrZ": 0.11630021332145865, + "hrStdZ": -0.9215410195687398, + "motionZ": -0.47278264144387433, + "nightFraction": 0.19817073170731708, + "hrvRel": 0.9088094678266321, + "hrv15Rel": 0.9165295085821774, + "hr15StdRel": 0.42294076169766814, + "br15Std": 0.43124048902555523, + "motion15": 4.418840607796598, + "minutesSinceBed": 65.0, + "hrZPrev": 0.6961168479148027, + "hrZNext": 0.5166369999498556, + "hrZMean30": 0.40317625773762644, + "hrStdZPrev": 0.42825797431813223, + "hrStdZNext": 0.2332198387472241, + "hrStdZMean30": -0.1667060189665305, + "motionZPrev": -0.7647102584530985, + "motionZNext": -0.4491745561920188, + "motionZMean30": -0.24383957975641904, + "hrvRelPrev": 0.9217807038169133, + "hrvRelNext": 0.9269143349792304, + "hrvRelMean30": 0.91240356946917, + "minutesToExit": 263.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 14.5, + "stillBoutMinutes": 82.0, + "active15": 1.0, + "hrRise": -0.48083336980745695, + "hrMaxZ": -0.22384730163491223, + "brStdEpoch": 0.32469062197729076, + "brRel": 1.016287094547964, + "moveHrCoupling": 0.0 + }, + { + "start": 1700004260, + "hrZ": 0.5166369999498556, + "hrStdZ": 0.2332198387472241, + "motionZ": -0.4491745561920188, + "nightFraction": 0.21341463414634146, + "hrvRel": 0.9269143349792304, + "hrv15Rel": 0.8917675758288266, + "hr15StdRel": 0.3749614506433398, + "br15Std": 0.4731340818150812, + "motion15": 4.48863636973214, + "minutesSinceBed": 70.0, + "hrZPrev": 0.11630021332145865, + "hrZNext": -0.031475110601774124, + "hrZMean30": 0.373697959355018, + "hrStdZPrev": -0.9215410195687398, + "hrStdZNext": -0.050135363371515904, + "hrStdZMean30": 0.30264236680567375, + "motionZPrev": -0.47278264144387433, + "motionZNext": -0.6040508974292268, + "motionZMean30": 0.13454486122326115, + "hrvRelPrev": 0.9088094678266321, + "hrvRelNext": 0.8587663610000783, + "hrvRelMean30": 0.8537838836451579, + "minutesToExit": 258.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 9.5, + "stillBoutMinutes": 82.0, + "active15": 2.0, + "hrRise": 0.8013889496790932, + "hrMaxZ": 0.6491571747412518, + "brStdEpoch": 0.45024437808816664, + "brRel": 1.0158730158730158, + "moveHrCoupling": 0.0 + }, + { + "start": 1700004560, + "hrZ": -0.031475110601774124, + "hrStdZ": -0.050135363371515904, + "motionZ": -0.6040508974292268, + "nightFraction": 0.22865853658536586, + "hrvRel": 0.8587663610000783, + "hrv15Rel": 0.8566012226663533, + "hr15StdRel": 0.4757562051728745, + "br15Std": 0.5661327141227575, + "motion15": 6.297109319933935, + "minutesSinceBed": 75.0, + "hrZPrev": 0.5166369999498556, + "hrZNext": -0.1367986141979724, + "hrZMean30": 0.5212429840721378, + "hrStdZPrev": 0.2332198387472241, + "hrStdZNext": -0.1455711776353011, + "hrStdZMean30": 0.2080432000654849, + "motionZPrev": -0.4491745561920188, + "motionZNext": 1.529406578111034, + "motionZMean30": 0.5559522817072294, + "hrvRelPrev": 0.9269143349792304, + "hrvRelNext": 0.8158946625911122, + "hrvRelMean30": 0.7967373170759016, + "minutesToExit": 253.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 4.5, + "stillBoutMinutes": 82.0, + "active15": 7.0, + "hrRise": 0.2727114634728855, + "hrMaxZ": 0.0750190956830535, + "brStdEpoch": 0.3661912068851464, + "brRel": 0.9736369910282954, + "moveHrCoupling": 0.0 + }, + { + "start": 1700004860, + "hrZ": -0.1367986141979724, + "hrStdZ": -0.1455711776353011, + "motionZ": 1.529406578111034, + "nightFraction": 0.24390243902439024, + "hrvRel": 0.8158946625911122, + "hrv15Rel": 0.7430490242181989, + "hr15StdRel": 0.7447650861699002, + "br15Std": 0.6313722035178613, + "motion15": 7.6787889981991535, + "minutesSinceBed": 80.0, + "hrZPrev": -0.031475110601774124, + "hrZNext": 0.8288459570385778, + "hrZMean30": 0.646525752198224, + "hrStdZPrev": -0.050135363371515904, + "hrStdZNext": 2.758923203218567, + "hrStdZMean30": 0.01891133272011961, + "motionZPrev": -0.6040508974292268, + "motionZNext": 2.175908445413887, + "motionZMean30": 1.0034646483903549, + "hrvRelPrev": 0.8587663610000783, + "hrvRelNext": 0.5724978446586723, + "hrvRelMean30": 0.7444828860300292, + "minutesToExit": 248.0, + "activeMinutes": 1.0, + "peakMinuteZ": 28.39902737525712, + "minutesFromMove": 0.5, + "stillBoutMinutes": 5.0, + "active15": 12.0, + "hrRise": 0.19855308305482133, + "hrMaxZ": -0.3156045288816545, + "brStdEpoch": 0.5554601695891431, + "brRel": 0.9819185645272601, + "moveHrCoupling": 0.19855308305482133 + }, + { + "start": 1700005160, + "hrZ": 0.8288459570385778, + "hrStdZ": 2.758923203218567, + "motionZ": 2.175908445413887, + "nightFraction": 0.25914634146341464, + "hrvRel": 0.5724978446586723, + "hrv15Rel": 0.662047378321185, + "hr15StdRel": 0.8665638537131847, + "br15Std": 0.7186464599335334, + "motion15": 8.201111644442758, + "minutesSinceBed": 85.0, + "hrZPrev": -0.1367986141979724, + "hrZNext": 1.659074595080016, + "hrZMean30": 0.8565586281743104, + "hrStdZPrev": -0.1455711776353011, + "hrStdZNext": -0.8468510552499723, + "hrStdZMean30": 0.08925302731251665, + "motionZPrev": 1.529406578111034, + "motionZNext": 2.4770693019439034, + "motionZMean30": 1.4423825720412506, + "hrvRelPrev": 0.8158946625911122, + "hrvRelNext": 0.5724978446586722, + "hrvRelMean30": 0.6922956344541108, + "minutesToExit": 243.0, + "activeMinutes": 3.0, + "peakMinuteZ": 29.260349282396216, + "minutesFromMove": 0.5, + "stillBoutMinutes": 1.0, + "active15": 17.0, + "hrRise": 1.8563517162715717, + "hrMaxZ": 1.501188570603873, + "brStdEpoch": 0.6831983606537706, + "brRel": 1.0131124913733611, + "moveHrCoupling": 5.569055148814715 + }, + { + "start": 1700005460, + "hrZ": 1.659074595080016, + "hrStdZ": -0.8468510552499723, + "motionZ": 2.4770693019439034, + "nightFraction": 0.27439024390243905, + "hrvRel": 0.5724978446586722, + "hrv15Rel": 0.5676581236774041, + "hr15StdRel": 0.6451297638116347, + "br15Std": 0.7286864787924913, + "motion15": 8.480321716640333, + "minutesSinceBed": 90.0, + "hrZPrev": 0.8288459570385778, + "hrZNext": 1.5730962247974056, + "hrZMean30": 1.0046410177056957, + "hrStdZPrev": 2.758923203218567, + "hrStdZNext": -0.8956650970994249, + "hrStdZMean30": 0.1588642301732754, + "motionZPrev": 2.175908445413887, + "motionZNext": 2.3678763083287793, + "motionZMean30": 1.8689434322740046, + "hrvRelPrev": 0.5724978446586723, + "hrvRelNext": 0.5559996864958068, + "hrvRelMean30": 0.6510698330590171, + "minutesToExit": 238.0, + "activeMinutes": 5.0, + "peakMinuteZ": 28.39902737525712, + "minutesFromMove": 0.5, + "stillBoutMinutes": 1.0, + "active15": 22.0, + "hrRise": 1.5979934877183106, + "hrMaxZ": 1.1918356330291366, + "brStdEpoch": 0.8803499304253961, + "brRel": 0.9964113181504485, + "moveHrCoupling": 7.989967438591553 + }, + { + "start": 1700005760, + "hrZ": 1.5730962247974056, + "hrStdZ": -0.8956650970994249, + "motionZ": 2.3678763083287793, + "nightFraction": 0.2896341463414634, + "hrvRel": 0.5559996864958068, + "hrv15Rel": 0.5530507876792853, + "hr15StdRel": 0.22849772688536743, + "br15Std": 0.6367762435699058, + "motion15": 8.660080678964786, + "minutesSinceBed": 95.0, + "hrZPrev": 1.659074595080016, + "hrZNext": 1.5865303451540642, + "hrZMean30": 1.2088396471268907, + "hrStdZPrev": -0.8468510552499723, + "hrStdZNext": -0.4291491574219605, + "hrStdZMean30": 0.16516557733700915, + "motionZPrev": 2.4770693019439034, + "motionZNext": 2.5996428241123954, + "motionZMean30": 2.320372435589218, + "hrvRelPrev": 0.5724978446586722, + "hrvRelNext": 0.5434987067952033, + "hrvRelMean30": 0.61978099492795, + "minutesToExit": 233.0, + "activeMinutes": 5.0, + "peakMinuteZ": 29.99512697839315, + "minutesFromMove": 0.5, + "stillBoutMinutes": 1.0, + "active15": 26.0, + "hrRise": 0.49997101636695557, + "hrMaxZ": 1.2259168888636403, + "brStdEpoch": 0.4583710287529087, + "brRel": 0.9659075224292615, + "moveHrCoupling": 2.499855081834778 + }, + { + "start": 1700006060, + "hrZ": 1.5865303451540642, + "hrStdZ": -0.4291491574219605, + "motionZ": 2.5996428241123954, + "nightFraction": 0.3048780487804878, + "hrvRel": 0.5434987067952033, + "hrv15Rel": 0.5810310369151187, + "hr15StdRel": 0.3445709411896248, + "br15Std": 0.47440587844165677, + "motion15": 8.722417141427496, + "minutesSinceBed": 100.0, + "hrZPrev": 1.5730962247974056, + "hrZNext": 1.553213726669553, + "hrZMean30": 1.1739877006016195, + "hrStdZPrev": -0.8956650970994249, + "hrStdZNext": 0.7204982587725353, + "hrStdZMean30": 1.0045527267324692, + "motionZPrev": 2.3678763083287793, + "motionZNext": 2.536751465437261, + "motionZMean30": 2.3912399014414905, + "hrvRelPrev": 0.5559996864958068, + "hrvRelNext": 0.6383337252135747, + "hrvRelMean30": 0.6636267956512489, + "minutesToExit": 228.0, + "activeMinutes": 5.0, + "peakMinuteZ": 29.01949872690256, + "minutesFromMove": 0.5, + "stillBoutMinutes": 1.0, + "active15": 29.0, + "hrRise": 0.24878940527350923, + "hrMaxZ": 1.220673618735256, + "brStdEpoch": 0.1695169608033369, + "brRel": 1.0046928916494133, + "moveHrCoupling": 1.2439470263675463 + }, + { + "start": 1700006360, + "hrZ": 1.553213726669553, + "hrStdZ": 0.7204982587725353, + "motionZ": 2.536751465437261, + "nightFraction": 0.3201219512195122, + "hrvRel": 0.6383337252135747, + "hrv15Rel": 0.608056078062544, + "hr15StdRel": 0.39358510969937904, + "br15Std": 0.5290110909754162, + "motion15": 8.80597465931132, + "minutesSinceBed": 105.0, + "hrZPrev": 1.5865303451540642, + "hrZNext": 1.397915295346592, + "hrZMean30": 0.7999050234702337, + "hrStdZPrev": -0.4291491574219605, + "hrStdZNext": -0.006025933225379629, + "hrStdZMean30": 0.5691062808000833, + "motionZPrev": 2.5996428241123954, + "motionZNext": 2.5559521257772664, + "motionZMean30": 2.034426178569841, + "hrvRelPrev": 0.5434987067952033, + "hrvRelNext": 0.6397444940826084, + "hrvRelMean30": 0.7621063003146239, + "minutesToExit": 223.0, + "activeMinutes": 5.0, + "peakMinuteZ": 30.048865520496506, + "minutesFromMove": 0.5, + "stillBoutMinutes": 1.0, + "active15": 24.0, + "hrRise": 0.4904021930872054, + "hrMaxZ": 1.6820813900331673, + "brStdEpoch": 0.45607017003965516, + "brRel": 0.9737750172532781, + "moveHrCoupling": 2.452010965436027 + }, + { + "start": 1700006660, + "hrZ": 1.397915295346592, + "hrStdZ": -0.006025933225379629, + "motionZ": 2.5559521257772664, + "nightFraction": 0.3353658536585366, + "hrvRel": 0.6397444940826084, + "hrv15Rel": 0.8206853985422056, + "hr15StdRel": 1.3844149734233409, + "br15Std": 0.6439223070371145, + "motion15": 8.505525386548555, + "minutesSinceBed": 110.0, + "hrZPrev": 1.553213726669553, + "hrZNext": -0.38076223987487273, + "hrZMean30": 0.33009464299740837, + "hrStdZPrev": 0.7204982587725353, + "hrStdZNext": 5.7301388681329195, + "hrStdZMean30": 0.5641540572148592, + "motionZPrev": 2.536751465437261, + "motionZNext": 2.0254788390769414, + "motionZMean30": 1.6524112671182036, + "hrvRelPrev": 0.6383337252135747, + "hrvRelNext": 1.1228152676542047, + "hrvRelMean30": 0.8613975569066092, + "minutesToExit": 218.0, + "activeMinutes": 5.0, + "peakMinuteZ": 29.720699961034793, + "minutesFromMove": 0.5, + "stillBoutMinutes": 1.0, + "active15": 19.0, + "hrRise": 0.45212689996820477, + "hrMaxZ": 1.4854587602187161, + "brStdEpoch": 0.2868727941091658, + "brRel": 1.0019323671497584, + "moveHrCoupling": 2.2606344998410237 + }, + { + "start": 1700006960, + "hrZ": -0.38076223987487273, + "hrStdZ": 5.7301388681329195, + "motionZ": 2.0254788390769414, + "nightFraction": 0.35060975609756095, + "hrvRel": 1.1228152676542047, + "hrv15Rel": 1.0069509757818011, + "hr15StdRel": 1.4937492458541741, + "br15Std": 0.6190567421488922, + "motion15": 8.014004994779459, + "minutesSinceBed": 115.0, + "hrZPrev": 1.397915295346592, + "hrZNext": -1.7897327828811214, + "hrZMean30": -0.10532438936237377, + "hrStdZPrev": -0.006025933225379629, + "hrStdZNext": -0.2892019183081337, + "hrStdZMean30": 0.7782258079557306, + "motionZPrev": 2.5559521257772664, + "motionZNext": -0.3217876146876578, + "motionZMean30": 1.2653554537200178, + "hrvRelPrev": 0.6397444940826084, + "hrvRelNext": 1.2618543773022963, + "hrvRelMean30": 0.951658773078947, + "minutesToExit": 213.0, + "activeMinutes": 2.0, + "peakMinuteZ": 29.81785839600646, + "minutesFromMove": 1.5, + "stillBoutMinutes": 37.0, + "active15": 14.0, + "hrRise": 0.3851451370099537, + "hrMaxZ": 1.3779717225868173, + "brStdEpoch": 0.9214640524730198, + "brRel": 1.0122843340234644, + "moveHrCoupling": 0.7702902740199074 + }, + { + "start": 1700007260, + "hrZ": -1.7897327828811214, + "hrStdZ": -0.2892019183081337, + "motionZ": -0.3217876146876578, + "nightFraction": 0.36585365853658536, + "hrvRel": 1.2618543773022963, + "hrv15Rel": 1.2030331530684222, + "hr15StdRel": 1.0798721193436505, + "br15Std": 0.714888267056468, + "motion15": 6.955592608396297, + "minutesSinceBed": 120.0, + "hrZPrev": -0.38076223987487273, + "hrZNext": -1.6295980682297617, + "hrZMean30": -0.4936856172728351, + "hrStdZPrev": 5.7301388681329195, + "hrStdZNext": -0.8815166203465411, + "hrStdZMean30": 0.795145713771996, + "motionZPrev": 2.0254788390769414, + "motionZNext": -0.19703507821755983, + "motionZMean30": 0.7847335847820902, + "hrvRelPrev": 1.1228152676542047, + "hrvRelNext": 1.2675366408025708, + "hrvRelMean30": 1.0543481911927715, + "minutesToExit": 208.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 6.5, + "stillBoutMinutes": 37.0, + "active15": 9.0, + "hrRise": -2.356322732638527, + "hrMaxZ": -1.7968283401505205, + "brStdEpoch": 0.36527250101807535, + "brRel": 0.9988957902001379, + "moveHrCoupling": 0.0 + }, + { + "start": 1700007560, + "hrZ": -1.6295980682297617, + "hrStdZ": -0.8815166203465411, + "motionZ": -0.19703507821755983, + "nightFraction": 0.38109756097560976, + "hrvRel": 1.2675366408025708, + "hrv15Rel": 1.2337173759699036, + "hr15StdRel": 0.35698700276322815, + "br15Std": 0.5822742990850619, + "motion15": 4.762173934797756, + "minutesSinceBed": 125.0, + "hrZPrev": -1.7897327828811214, + "hrZNext": -1.47483700172107, + "hrZMean30": -0.8729116433407693, + "hrStdZPrev": -0.2892019183081337, + "hrStdZNext": 0.6028371580866748, + "hrStdZMean30": 0.6055022158793266, + "motionZPrev": -0.3217876146876578, + "motionZNext": -0.34151438545852214, + "motionZMean30": 0.3735527489398354, + "hrvRelPrev": 1.2618543773022963, + "hrvRelNext": 1.1878281997021711, + "hrvRelMean30": 1.152866883880286, + "minutesToExit": 203.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 11.5, + "stillBoutMinutes": 37.0, + "active15": 4.0, + "hrRise": -0.059805145498439766, + "hrMaxZ": -1.8623692167553374, + "brStdEpoch": 0.48385948373468934, + "brRel": 1.0034506556245688, + "moveHrCoupling": 0.0 + }, + { + "start": 1700007860, + "hrZ": -1.47483700172107, + "hrStdZ": 0.6028371580866748, + "motionZ": -0.34151438545852214, + "nightFraction": 0.39634146341463417, + "hrvRel": 1.1878281997021711, + "hrv15Rel": 1.2561868093110744, + "hr15StdRel": 0.3809521754345958, + "br15Std": 0.671525490487889, + "motion15": 4.605170185988092, + "minutesSinceBed": 130.0, + "hrZPrev": -1.6295980682297617, + "hrZNext": -1.1319982502191652, + "hrZMean30": -1.2257300271076168, + "hrStdZPrev": -0.8815166203465411, + "hrStdZNext": -0.3107098167081021, + "hrStdZMean30": 0.5201594743849814, + "motionZPrev": -0.19703507821755983, + "motionZNext": -0.7647102584530985, + "motionZMean30": -0.04625004329467604, + "hrvRelPrev": 1.2675366408025708, + "hrvRelNext": 1.2623246335919742, + "hrvRelMean30": 1.2341764356812557, + "minutesToExit": 198.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 16.5, + "stillBoutMinutes": 37.0, + "active15": 0.0, + "hrRise": 1.0262562967532263, + "hrMaxZ": -1.1650142896800835, + "brStdEpoch": 0.6990851164200249, + "brRel": 1.0358868184955141, + "moveHrCoupling": 0.0 + }, + { + "start": 1700008160, + "hrZ": -1.1319982502191652, + "hrStdZ": -0.3107098167081021, + "motionZ": -0.7647102584530985, + "nightFraction": 0.4115853658536585, + "hrvRel": 1.2623246335919742, + "hrv15Rel": 1.262785092875617, + "hr15StdRel": 0.3929939864316252, + "br15Std": 0.6787442449111446, + "motion15": 4.532599493153256, + "minutesSinceBed": 135.0, + "hrZPrev": -1.47483700172107, + "hrZNext": -1.1013684558059866, + "hrZMean30": -1.2387803154540842, + "hrStdZPrev": 0.6028371580866748, + "hrStdZNext": -0.607006226476151, + "hrStdZMean30": -0.07037005848647536, + "motionZPrev": -0.34151438545852214, + "motionZNext": -0.34151438545852214, + "motionZMean30": -0.19962617674522848, + "hrvRelPrev": 1.1878281997021711, + "hrvRelNext": 1.3279645740261776, + "hrvRelMean30": 1.2445668603674718, + "minutesToExit": 193.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 15.5, + "stillBoutMinutes": 37.0, + "active15": 0.0, + "hrRise": 0.9760199745345366, + "hrMaxZ": -1.0391758065988357, + "brStdEpoch": 0.7690357598967683, + "brRel": 1.0146307798481713, + "moveHrCoupling": 0.0 + }, + { + "start": 1700008460, + "hrZ": -1.1013684558059866, + "hrStdZ": -0.607006226476151, + "motionZ": -0.34151438545852214, + "nightFraction": 0.4268292682926829, + "hrvRel": 1.3279645740261776, + "hrv15Rel": 1.2449741359040676, + "hr15StdRel": 0.25744691165663985, + "br15Std": 0.5681425327327642, + "motion15": 4.532599493153256, + "minutesSinceBed": 140.0, + "hrZPrev": -1.1319982502191652, + "hrZNext": -1.07181339102134, + "hrZMean30": -0.8628360530732767, + "hrStdZPrev": -0.3107098167081021, + "hrStdZNext": -0.6034251236857966, + "hrStdZMean30": -0.04115993430191909, + "motionZPrev": -0.7647102584530985, + "motionZNext": -0.3826674198643134, + "motionZMean30": -0.21455881206733146, + "hrvRelPrev": 1.2623246335919742, + "hrvRelNext": 1.2089113566893956, + "hrvRelMean30": 1.1862886701823923, + "minutesToExit": 188.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 10.5, + "stillBoutMinutes": 37.0, + "active15": 1.0, + "hrRise": 0.6961318936018398, + "hrMaxZ": -1.2226902610923223, + "brStdEpoch": 0.500159974408189, + "brRel": 1.0089717046238784, + "moveHrCoupling": 0.0 + }, + { + "start": 1700008760, + "hrZ": -1.07181339102134, + "hrStdZ": -0.6034251236857966, + "motionZ": -0.3826674198643134, + "nightFraction": 0.4420731707317073, + "hrvRel": 1.2089113566893956, + "hrv15Rel": 1.227089701387256, + "hr15StdRel": 0.6485781864104722, + "br15Std": 0.4289649606902643, + "motion15": 5.683579767338681, + "minutesSinceBed": 145.0, + "hrZPrev": -1.1013684558059866, + "hrZNext": -0.4721142583001453, + "hrZMean30": -0.5006521682577885, + "hrStdZPrev": -0.607006226476151, + "hrStdZNext": 1.596432138032722, + "hrStdZMean30": -0.01692662314264643, + "motionZPrev": -0.34151438545852214, + "motionZNext": 0.9518459049230744, + "motionZMean30": -0.2906369743157411, + "hrvRelPrev": 1.3279645740261776, + "hrvRelNext": 1.195548240457716, + "hrvRelMean30": 1.1554253020277003, + "minutesToExit": 183.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 5.5, + "stillBoutMinutes": 37.0, + "active15": 1.0, + "hrRise": 0.456911311608079, + "hrMaxZ": -1.2541498818626355, + "brStdEpoch": 0.4173248135445576, + "brRel": 1.0193236714975846, + "moveHrCoupling": 0.0 + }, + { + "start": 1700009060, + "hrZ": -0.4721142583001453, + "hrStdZ": 1.596432138032722, + "motionZ": 0.9518459049230744, + "nightFraction": 0.4573170731707317, + "hrvRel": 1.195548240457716, + "hrv15Rel": 1.0897748648013166, + "hr15StdRel": 0.8470335963533735, + "br15Std": 0.4579028281196784, + "motion15": 5.645446897643238, + "minutesSinceBed": 150.0, + "hrZPrev": -1.07181339102134, + "hrZNext": 0.8418770537845329, + "hrZMean30": -0.11144650992490798, + "hrStdZPrev": -0.6034251236857966, + "hrStdZNext": -0.08473104901623967, + "hrStdZMean30": -0.25264403326909085, + "motionZPrev": -0.3826674198643134, + "motionZNext": -0.42631606194237864, + "motionZMean30": -0.2906369743157411, + "hrvRelPrev": 1.2089113566893956, + "hrvRelNext": 0.8539070460067403, + "hrvRelMean30": 1.105998007009058, + "minutesToExit": 178.0, + "activeMinutes": 1.0, + "peakMinuteZ": 21.730959074806997, + "minutesFromMove": 0.5, + "stillBoutMinutes": 37.0, + "active15": 1.0, + "hrRise": 1.93529450832951, + "hrMaxZ": 0.4761292605045339, + "brStdEpoch": 0.25095019426172993, + "brRel": 0.99296066252588, + "moveHrCoupling": 1.93529450832951 + }, + { + "start": 1700009360, + "hrZ": 0.8418770537845329, + "hrStdZ": -0.08473104901623967, + "motionZ": -0.42631606194237864, + "nightFraction": 0.4725609756097561, + "hrvRel": 0.8539070460067403, + "hrv15Rel": 1.0393692687514695, + "hr15StdRel": 0.7403457516732721, + "br15Std": 0.39700440803598114, + "motion15": 5.602118820879701, + "minutesSinceBed": 155.0, + "hrZPrev": -0.4721142583001453, + "hrZNext": 0.9056891254786558, + "hrZMean30": 0.21719045719995567, + "hrStdZPrev": 1.596432138032722, + "hrStdZNext": -0.7118834422316325, + "hrStdZMean30": -0.2719343398603588, + "motionZPrev": 0.9518459049230744, + "motionZNext": -0.7295822139564274, + "motionZMean30": 0.008911643666332665, + "hrvRelPrev": 1.195548240457716, + "hrvRelNext": 1.0514930637197273, + "hrvRelMean30": 1.0566378914603696, + "minutesToExit": 173.0, + "activeMinutes": 0.0, + "peakMinuteZ": -0.6744907594765952, + "minutesFromMove": 4.5, + "stillBoutMinutes": 20.0, + "active15": 1.0, + "hrRise": 2.1171021506447683, + "hrMaxZ": 0.803833643528619, + "brStdEpoch": 0.5087789303813587, + "brRel": 0.9856452726017944, + "moveHrCoupling": 0.0 + }, + { + "start": 1700009660, + "hrZ": 0.9056891254786558, + "hrStdZ": -0.7118834422316325, + "motionZ": -0.7295822139564274, + "nightFraction": 0.4878048780487805, + "hrvRel": 1.0514930637197273, + "hrv15Rel": 0.8990565483188336, + "hr15StdRel": 0.28557215747265774, + "br15Std": 0.45026207646214184, + "motion15": 4.499809670330265, + "minutesSinceBed": 160.0, + "hrZPrev": 0.8418770537845329, + "hrZNext": 1.2496026066090924, + "hrZMean30": 0.5400699441719662, + "hrStdZPrev": -0.08473104901623967, + "hrStdZNext": -1.0471847127984364, + "hrStdZMean30": -0.2850697797486004, + "motionZPrev": -0.42631606194237864, + "motionZNext": -0.34151438545852214, + "motionZMean30": 0.2843534181627981, + "hrvRelPrev": 0.8539070460067403, + "hrvRelNext": 0.8418371345716749, + "hrvRelMean30": 1.0102336725896566, + "minutesToExit": 168.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 9.5, + "stillBoutMinutes": 20.0, + "active15": 3.0, + "hrRise": 1.7750167183936927, + "hrMaxZ": 0.6753735253831771, + "brStdEpoch": 0.27560841786854035, + "brRel": 1.0158730158730158, + "moveHrCoupling": 0.0 + }, + { + "start": 1700009960, + "hrZ": 1.2496026066090924, + "hrStdZ": -1.0471847127984364, + "motionZ": -0.34151438545852214, + "nightFraction": 0.5030487804878049, + "hrvRel": 0.8418371345716749, + "hrv15Rel": 0.9442599341641194, + "hr15StdRel": 0.2462490936589012, + "br15Std": 0.35173176480807067, + "motion15": 6.822197390620491, + "minutesSinceBed": 165.0, + "hrZPrev": 0.9056891254786558, + "hrZNext": 1.1684605196548807, + "hrZMean30": 0.8529697988790311, + "hrStdZPrev": -0.7118834422316325, + "hrStdZNext": -0.4457419628469774, + "hrStdZMean30": -0.21278027112785672, + "motionZPrev": -0.7295822139564274, + "motionZNext": 1.3321300674214178, + "motionZMean30": 0.2984651825304274, + "hrvRelPrev": 1.0514930637197273, + "hrvRelNext": 0.9168038247511561, + "hrvRelMean30": 0.9688399225196779, + "minutesToExit": 163.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 5.5, + "stillBoutMinutes": 20.0, + "active15": 3.0, + "hrRise": 0.7021124081516851, + "hrMaxZ": 0.8641312500050516, + "brStdEpoch": 0.38753580479744054, + "brRel": 1.021670117322291, + "moveHrCoupling": 0.0 + }, + { + "start": 1700010260, + "hrZ": 1.1684605196548807, + "hrStdZ": -0.4457419628469774, + "motionZ": 1.3321300674214178, + "nightFraction": 0.5182926829268293, + "hrvRel": 0.9168038247511561, + "hrv15Rel": 0.9205413825534917, + "hr15StdRel": 0.2083552819287144, + "br15Std": 0.562149891043305, + "motion15": 6.835184586147301, + "minutesSinceBed": 170.0, + "hrZPrev": 1.2496026066090924, + "hrZNext": 1.158787952998087, + "hrZMean30": 1.0828851729829714, + "hrStdZPrev": -1.0471847127984364, + "hrStdZNext": -0.6989543056938425, + "hrStdZMean30": -0.4561781825664471, + "motionZPrev": -0.34151438545852214, + "motionZNext": 1.5865780360167359, + "motionZMean30": 0.09145988874691881, + "hrvRelPrev": 0.8418371345716749, + "hrvRelNext": 1.0031350419311857, + "hrvRelMean30": 0.9287673686921277, + "minutesToExit": 158.0, + "activeMinutes": 1.0, + "peakMinuteZ": 26.035332583056864, + "minutesFromMove": 0.5, + "stillBoutMinutes": 20.0, + "active15": 2.0, + "hrRise": 0.38036072537007776, + "hrMaxZ": 0.8746177902618222, + "brStdEpoch": 0.3836352434279208, + "brRel": 1.0226363008971706, + "moveHrCoupling": 0.38036072537007776 + }, + { + "start": 1700010560, + "hrZ": 1.158787952998087, + "hrStdZ": -0.6989543056938425, + "motionZ": 1.5865780360167359, + "nightFraction": 0.5335365853658537, + "hrvRel": 1.0031350419311857, + "hrv15Rel": 0.9407917940277452, + "hr15StdRel": 0.2739517964210181, + "br15Std": 0.5633368774543345, + "motion15": 6.838405200847344, + "minutesSinceBed": 175.0, + "hrZPrev": 1.1684605196548807, + "hrZNext": 1.1184855919281145, + "hrZMean30": 1.0733469475297448, + "hrStdZPrev": -0.4457419628469774, + "hrStdZNext": -0.0973985633405905, + "hrStdZMean30": -0.482848859507914, + "motionZPrev": 1.3321300674214178, + "motionZNext": -0.2838850692909076, + "motionZMean30": 0.1242143149933215, + "hrvRelPrev": 0.9168038247511561, + "hrvRelNext": 0.9191551061995454, + "hrvRelMean30": 0.9284314713423577, + "minutesToExit": 153.0, + "activeMinutes": 1.0, + "peakMinuteZ": 28.849463414664466, + "minutesFromMove": 2.5, + "stillBoutMinutes": 97.0, + "active15": 2.0, + "hrRise": 0.3444776380710142, + "hrMaxZ": 0.8746177902618222, + "brStdEpoch": 0.4373373983550912, + "brRel": 1.0218081435472741, + "moveHrCoupling": 0.3444776380710142 + }, + { + "start": 1700010860, + "hrZ": 1.1184855919281145, + "hrStdZ": -0.0973985633405905, + "motionZ": -0.2838850692909076, + "nightFraction": 0.5487804878048781, + "hrvRel": 0.9191551061995454, + "hrv15Rel": 0.9391899835410299, + "hr15StdRel": 0.3130951803420793, + "br15Std": 0.622454503859519, + "motion15": 6.38856140554563, + "minutesSinceBed": 180.0, + "hrZPrev": 1.158787952998087, + "hrZNext": 1.1372933604274371, + "hrZMean30": 1.058531031936403, + "hrStdZPrev": -0.6989543056938425, + "hrStdZNext": -0.10735324203741113, + "hrStdZMean30": -0.3323442898435916, + "motionZPrev": 1.5865780360167359, + "motionZNext": -0.4971911515614862, + "motionZMean30": 0.16427255181680842, + "hrvRelPrev": 1.0031350419311857, + "hrvRelNext": 0.915040363664864, + "hrvRelMean30": 0.8999137863468925, + "minutesToExit": 148.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 7.5, + "stillBoutMinutes": 97.0, + "active15": 2.0, + "hrRise": 0.1937686714149454, + "hrMaxZ": 0.934915396738253, + "brStdEpoch": 0.5855937158132761, + "brRel": 0.9786059351276741, + "moveHrCoupling": 0.0 + }, + { + "start": 1700011160, + "hrZ": 1.1372933604274371, + "hrStdZ": -0.10735324203741113, + "motionZ": -0.4971911515614862, + "nightFraction": 0.5640243902439024, + "hrvRel": 0.915040363664864, + "hrv15Rel": 0.8773659769574418, + "hr15StdRel": 0.3609806269429017, + "br15Std": 0.5885758102190404, + "motion15": 4.74493212836325, + "minutesSinceBed": 185.0, + "hrZPrev": 1.1184855919281145, + "hrZNext": 0.7751094756119467, + "hrZMean30": 0.963724525419419, + "hrStdZPrev": -0.0973985633405905, + "hrStdZNext": -0.2714257876065082, + "hrStdZMean30": -0.0731401640624013, + "motionZPrev": -0.2838850692909076, + "motionZNext": -0.19703507821755983, + "motionZMean30": 0.1308013659822928, + "hrvRelPrev": 0.9191551061995454, + "hrvRelNext": 0.8515557645583508, + "hrvRelMean30": 0.8988725045626057, + "minutesToExit": 143.0, + "activeMinutes": 0.0, + "peakMinuteZ": -2.2300405561784036, + "minutesFromMove": 12.5, + "stillBoutMinutes": 97.0, + "active15": 2.0, + "hrRise": 0.6961318936018398, + "hrMaxZ": 1.2967010355968436, + "brStdEpoch": 0.6609568821035151, + "brRel": 1.0002760524499654, + "moveHrCoupling": 0.0 + }, + { + "start": 1700011460, + "hrZ": 0.7751094756119467, + "hrStdZ": -0.2714257876065082, + "motionZ": -0.19703507821755983, + "nightFraction": 0.5792682926829268, + "hrvRel": 0.8515557645583508, + "hrv15Rel": 0.8597754526216788, + "hr15StdRel": 0.383196744608943, + "br15Std": 0.5248507972509903, + "motion15": 4.653960350157523, + "minutesSinceBed": 190.0, + "hrZPrev": 1.1372933604274371, + "hrZNext": 0.8019777163252622, + "hrZMean30": 0.8899520130608591, + "hrStdZPrev": -0.10735324203741113, + "hrStdZNext": 0.34164854541862494, + "hrStdZMean30": -0.042638707327798696, + "motionZPrev": -0.4971911515614862, + "motionZNext": -0.4491745561920188, + "motionZMean30": -0.13788011878989392, + "hrvRelPrev": 0.915040363664864, + "hrvRelNext": 0.8518692687514694, + "hrvRelMean30": 0.8969858811147312, + "minutesToExit": 138.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 17.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.12200249681681835, + "hrMaxZ": 0.5547783124303154, + "brStdEpoch": 0.397773805070168, + "brRel": 1.0045548654244307, + "moveHrCoupling": 0.0 + }, + { + "start": 1700011760, + "hrZ": 0.8019777163252622, + "hrStdZ": 0.34164854541862494, + "motionZ": -0.4491745561920188, + "nightFraction": 0.5945121951219512, + "hrvRel": 0.8518692687514694, + "hrv15Rel": 0.8456236774041852, + "hr15StdRel": 0.43215983972619, + "br15Std": 0.41668661410585306, + "motion15": 4.59511985013459, + "minutesSinceBed": 195.0, + "hrZPrev": 0.7751094756119467, + "hrZNext": 0.5859570609902056, + "hrZMean30": 0.7903859896175168, + "hrStdZPrev": -0.2714257876065082, + "hrStdZNext": 0.7672441676698958, + "hrStdZMean30": 0.14446829992774765, + "motionZPrev": -0.19703507821755983, + "motionZNext": -0.5758126863001315, + "motionZMean30": -0.4429113133614119, + "hrvRelPrev": 0.8515557645583508, + "hrvRelNext": 0.8345481620816678, + "hrvRelMean30": 0.8736298187273966, + "minutesToExit": 133.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 22.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.33012440315138813, + "hrMaxZ": 0.7540225773089586, + "brStdEpoch": 0.4910397132615655, + "brRel": 1.020013802622498, + "moveHrCoupling": 0.0 + }, + { + "start": 1700012060, + "hrZ": 0.5859570609902056, + "hrStdZ": 0.7672441676698958, + "motionZ": -0.5758126863001315, + "nightFraction": 0.6097560975609756, + "hrvRel": 0.8345481620816678, + "hrv15Rel": 0.8650805313896074, + "hr15StdRel": 0.4788956307761241, + "br15Std": 0.4510543204537566, + "motion15": 4.499809670330265, + "minutesSinceBed": 200.0, + "hrZPrev": 0.8019777163252622, + "hrZNext": 0.6520529331449616, + "hrZMean30": 0.6074516535608595, + "hrStdZPrev": 0.34164854541862494, + "hrStdZNext": -0.23223176570475923, + "hrStdZMean30": 0.10782847093416835, + "motionZPrev": -0.4491745561920188, + "motionZNext": -0.5486403259838895, + "motionZMean30": -0.4846152586484438, + "hrvRelPrev": 0.8518692687514694, + "hrvRelNext": 0.9035974606160357, + "hrvRelMean30": 0.8605914032671615, + "minutesToExit": 128.0, + "activeMinutes": 0.0, + "peakMinuteZ": -0.6744907594765952, + "minutesFromMove": 27.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.6530721888429615, + "hrMaxZ": 1.0686187850120792, + "brStdEpoch": 0.3043944808960898, + "brRel": 1.0035886818495514, + "moveHrCoupling": 0.0 + }, + { + "start": 1700012360, + "hrZ": 0.6520529331449616, + "hrStdZ": -0.23223176570475923, + "motionZ": -0.5486403259838895, + "nightFraction": 0.625, + "hrvRel": 0.9035974606160357, + "hrv15Rel": 0.8588496355513756, + "hr15StdRel": 0.4637004982054712, + "br15Std": 0.36765674803408704, + "motion15": 4.465908118654584, + "minutesSinceBed": 205.0, + "hrZPrev": 0.5859570609902056, + "hrZNext": 0.46182578889469045, + "hrZMean30": 0.4891546280202343, + "hrStdZPrev": 0.7672441676698958, + "hrStdZNext": 0.610794745094982, + "hrStdZMean30": 0.04520392397602034, + "motionZPrev": -0.5758126863001315, + "motionZNext": -0.5486403259838895, + "motionZMean30": -0.46527322448354413, + "hrvRelPrev": 0.8345481620816678, + "hrvRelNext": 0.8396426052198448, + "hrvRelMean30": 0.8552954217191225, + "minutesToExit": 123.0, + "activeMinutes": 0.0, + "peakMinuteZ": -0.6744907594765952, + "minutesFromMove": 32.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.36122307881057575, + "hrMaxZ": 0.5338052319167725, + "brStdEpoch": 0.40341541864435504, + "brRel": 0.9906142167011731, + "moveHrCoupling": 0.0 + }, + { + "start": 1700012660, + "hrZ": 0.46182578889469045, + "hrStdZ": 0.610794745094982, + "motionZ": -0.5486403259838895, + "nightFraction": 0.6402439024390244, + "hrvRel": 0.8396426052198448, + "hrv15Rel": 0.8672995532565249, + "hr15StdRel": 0.47283816053953015, + "br15Std": 0.4452948461412958, + "motion15": 4.48863636973214, + "minutesSinceBed": 210.0, + "hrZPrev": 0.6520529331449616, + "hrZNext": -0.16205476046848707, + "hrZMean30": 0.38298669400162033, + "hrStdZPrev": -0.23223176570475923, + "hrStdZNext": -0.3538773662956457, + "hrStdZMean30": 0.10406799660672918, + "motionZPrev": -0.5486403259838895, + "motionZNext": -0.5758126863001315, + "motionZMean30": -0.5081526635326765, + "hrvRelPrev": 0.9035974606160357, + "hrvRelNext": 0.827886197977898, + "hrvRelMean30": 0.8786682789739455, + "minutesToExit": 118.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 37.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.49757881054701847, + "hrMaxZ": 0.607211013714168, + "brStdEpoch": 0.26999259249097934, + "brRel": 1.0104899930986888, + "moveHrCoupling": 0.0 + }, + { + "start": 1700012960, + "hrZ": -0.16205476046848707, + "hrStdZ": -0.3538773662956457, + "motionZ": -0.5758126863001315, + "nightFraction": 0.6554878048780488, + "hrvRel": 0.827886197977898, + "hrv15Rel": 0.8494298142487655, + "hr15StdRel": 0.43968647525068144, + "br15Std": 0.46671056341162903, + "motion15": 4.454347296253507, + "minutesSinceBed": 215.0, + "hrZPrev": 0.46182578889469045, + "hrZNext": 0.30921418164306075, + "hrZMean30": 0.024717895690071674, + "hrStdZPrev": 0.610794745094982, + "hrStdZNext": -0.5457250707444471, + "hrStdZMean30": 0.0733667597590735, + "motionZPrev": -0.5486403259838895, + "motionZNext": -0.3617969124071884, + "motionZMean30": -0.4845398796896606, + "hrvRelPrev": 0.8396426052198448, + "hrvRelNext": 0.8779684928285917, + "hrvRelMean30": 0.938010144099963, + "minutesToExit": 113.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 42.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": -0.09568823279750328, + "hrMaxZ": -0.24482038214845322, + "brStdEpoch": 0.580117229532101, + "brRel": 0.9929606625258799, + "moveHrCoupling": 0.0 + }, + { + "start": 1700013260, + "hrZ": 0.30921418164306075, + "hrStdZ": -0.5457250707444471, + "motionZ": -0.3617969124071884, + "nightFraction": 0.6707317073170732, + "hrvRel": 0.8779684928285917, + "hrv15Rel": 0.9010698330590172, + "hr15StdRel": 0.4485760073207479, + "br15Std": 0.4978512422149816, + "motion15": 4.59511985013459, + "minutesSinceBed": 220.0, + "hrZPrev": -0.16205476046848707, + "hrZNext": 0.031933937481648945, + "hrZMean30": -0.2575521646038136, + "hrStdZPrev": -0.3538773662956457, + "hrStdZNext": 0.14062272080845345, + "hrStdZMean30": 0.025562830749816863, + "motionZPrev": -0.5758126863001315, + "motionZNext": -0.4971911515614862, + "motionZMean30": -0.476917534994079, + "hrvRelPrev": 0.827886197977898, + "hrvRelNext": 1.0151657653421116, + "hrvRelMean30": 1.0067963230436778, + "minutesToExit": 108.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 47.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.36122307881057575, + "hrMaxZ": 0.11434362164594333, + "brStdEpoch": 0.31061229853307487, + "brRel": 1.002760524499655, + "moveHrCoupling": 0.0 + }, + { + "start": 1700013560, + "hrZ": 0.031933937481648945, + "hrStdZ": 0.14062272080845345, + "motionZ": -0.4971911515614862, + "nightFraction": 0.6859756097560976, + "hrvRel": 1.0151657653421116, + "hrv15Rel": 1.0468198918410534, + "hr15StdRel": 0.8461809069218648, + "br15Std": 0.542367135227606, + "motion15": 4.653960350157523, + "minutesSinceBed": 225.0, + "hrZPrev": 0.30921418164306075, + "hrZNext": -1.7059038718555786, + "hrZMean30": -0.5768236306800356, + "hrStdZPrev": -0.5457250707444471, + "hrStdZNext": 0.12673988748503537, + "hrStdZMean30": -0.027495826183652698, + "motionZPrev": -0.3617969124071884, + "motionZNext": -0.2838850692909076, + "motionZMean30": -0.48903206020605844, + "hrvRelPrev": 0.8779684928285917, + "hrvRelNext": 1.267262324633592, + "hrvRelMean30": 1.060360753753653, + "minutesToExit": 103.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 44.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.533461897846082, + "hrMaxZ": 0.12745179696690784, + "brStdEpoch": 0.5254559924484642, + "brRel": 0.994064872325742, + "moveHrCoupling": 0.0 + }, + { + "start": 1700013860, + "hrZ": -1.7059038718555786, + "hrStdZ": 0.12673988748503537, + "motionZ": -0.2838850692909076, + "nightFraction": 0.7012195121951219, + "hrvRel": 1.267262324633592, + "hrv15Rel": 1.1920849988243594, + "hr15StdRel": 0.7846898742208944, + "br15Std": 0.5853200913816305, + "motion15": 4.653960350157523, + "minutesSinceBed": 230.0, + "hrZPrev": 0.031933937481648945, + "hrZNext": -1.3899333610669913, + "hrZMean30": -0.9109110123496004, + "hrStdZPrev": 0.14062272080845345, + "hrStdZNext": 0.4326166646050993, + "hrStdZMean30": -0.15399797810350707, + "motionZPrev": -0.4971911515614862, + "motionZNext": -0.52245627343106, + "motionZMean30": -0.48529148126994, + "hrvRelPrev": 1.0151657653421116, + "hrvRelNext": 1.3160514146876714, + "hrvRelMean30": 1.1161197138154582, + "minutesToExit": 98.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 39.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": -1.078884824791853, + "hrMaxZ": -1.7601254492518228, + "brStdEpoch": 0.647283554557043, + "brRel": 1.0104899930986886, + "moveHrCoupling": 0.0 + }, + { + "start": 1700014160, + "hrZ": -1.3899333610669913, + "hrStdZ": 0.4326166646050993, + "motionZ": -0.52245627343106, + "nightFraction": 0.7164634146341463, + "hrvRel": 1.3160514146876714, + "hrv15Rel": 1.2920438513990122, + "hr15StdRel": 0.3809418476964816, + "br15Std": 0.7522297583684125, + "motion15": 4.543294782270004, + "minutesSinceBed": 235.0, + "hrZPrev": -1.7059038718555786, + "hrZNext": -1.5828473293885934, + "hrZMean30": -1.1415940504739208, + "hrStdZPrev": 0.12673988748503537, + "hrStdZNext": -0.6036423642390462, + "hrStdZMean30": -0.10967761312488804, + "motionZPrev": -0.2838850692909076, + "motionZNext": -0.633442002467746, + "motionZMean30": -0.5024737597630856, + "hrvRelPrev": 1.267262324633592, + "hrvRelNext": 1.278548475585861, + "hrvRelMean30": 1.1823810643467356, + "minutesToExit": 93.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 34.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": -0.2631426401931353, + "hrMaxZ": -1.0391758065988357, + "brStdEpoch": 0.5665827388828576, + "brRel": 1.0215320910973085, + "moveHrCoupling": 0.0 + }, + { + "start": 1700014460, + "hrZ": -1.5828473293885934, + "hrStdZ": -0.6036423642390462, + "motionZ": -0.633442002467746, + "nightFraction": 0.7317073170731707, + "hrvRel": 1.278548475585861, + "hrv15Rel": 1.2737479426287326, + "hr15StdRel": 0.3960188798333841, + "br15Std": 0.6881312442950109, + "motion15": 4.442651256490317, + "minutesSinceBed": 240.0, + "hrZPrev": -1.3899333610669913, + "hrZNext": -1.8767858827922619, + "hrZMean30": -1.3715094245778605, + "hrStdZPrev": 0.4326166646050993, + "hrStdZNext": -0.27472031834399857, + "hrStdZMean30": 0.2162843775868128, + "motionZPrev": -0.52245627343106, + "motionZNext": -0.52245627343106, + "motionZMean30": -0.5412802012003082, + "hrvRelPrev": 1.3160514146876714, + "hrvRelNext": 1.2299553256524807, + "hrvRelMean30": 1.2198728068702205, + "minutesToExit": 88.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 29.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.16984661321556915, + "hrMaxZ": -1.634286966170573, + "brStdEpoch": 0.6584709560793096, + "brRel": 0.9581780538302278, + "moveHrCoupling": 0.0 + }, + { + "start": 1700014760, + "hrZ": -1.8767858827922619, + "hrStdZ": -0.27472031834399857, + "motionZ": -0.52245627343106, + "nightFraction": 0.7469512195121951, + "hrvRel": 1.2299553256524807, + "hrv15Rel": 1.2785827651069832, + "hr15StdRel": 0.3734204921908539, + "br15Std": 0.5317409496173865, + "motion15": 4.356708826689592, + "minutesSinceBed": 245.0, + "hrZPrev": -1.5828473293885934, + "hrZNext": -1.7768360273387296, + "hrZMean30": -1.4281630292819367, + "hrStdZPrev": -0.6036423642390462, + "hrStdZNext": -0.043634811445312546, + "hrStdZMean30": 0.031156316365592036, + "motionZPrev": -0.633442002467746, + "motionZNext": -0.6960886357521511, + "motionZMean30": -0.5279901822262282, + "hrvRelPrev": 1.278548475585861, + "hrvRelNext": 1.2917156516968413, + "hrvRelMean30": 1.192855463370394, + "minutesToExit": 83.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 24.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.20572970051463266, + "hrMaxZ": -1.8309095959850241, + "brStdEpoch": 0.5254179288908972, + "brRel": 0.9693581780538303, + "moveHrCoupling": 0.0 + }, + { + "start": 1700015060, + "hrZ": -1.7768360273387296, + "hrStdZ": -0.043634811445312546, + "motionZ": -0.6960886357521511, + "nightFraction": 0.7621951219512195, + "hrvRel": 1.2917156516968413, + "hrv15Rel": 1.2017987303080178, + "hr15StdRel": 0.5938662805121218, + "br15Std": 0.53152492886035, + "motion15": 4.31748811353631, + "minutesSinceBed": 250.0, + "hrZPrev": -1.8767858827922619, + "hrZNext": -1.3001934370845178, + "hrZMean30": -1.2314107408584314, + "hrStdZPrev": -0.27472031834399857, + "hrStdZNext": 1.7360088642374587, + "hrStdZMean30": -0.09367490441935493, + "motionZPrev": -0.52245627343106, + "motionZNext": -0.633442002467746, + "motionZMean30": -0.5516029660692442, + "hrvRelPrev": 1.2299553256524807, + "hrvRelNext": 1.1404106904929854, + "hrvRelMean30": 1.123772575101049, + "minutesToExit": 78.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 19.5, + "stillBoutMinutes": 97.0, + "active15": 0.0, + "hrRise": 0.5765216026049602, + "hrMaxZ": -1.5608811843731778, + "brStdEpoch": 0.31257639066314646, + "brRel": 0.9864734299516909, + "moveHrCoupling": 0.0 + }, + { + "start": 1700015360, + "hrZ": -1.3001934370845178, + "hrStdZ": 1.7360088642374587, + "motionZ": -0.633442002467746, + "nightFraction": 0.7774390243902439, + "hrvRel": 1.1404106904929854, + "hrv15Rel": 1.05144897719257, + "hr15StdRel": 0.6983704094038726, + "br15Std": 0.46680931599530007, + "motion15": 4.3694478524670215, + "minutesSinceBed": 255.0, + "hrZPrev": -1.7768360273387296, + "hrZNext": -0.364641295446883, + "hrZMean30": -1.0632923203951166, + "hrStdZPrev": -0.043634811445312546, + "hrStdZNext": -1.1552737077400919, + "hrStdZMean30": -0.13986458797052184, + "motionZPrev": -0.6960886357521511, + "motionZNext": -0.4041610187429272, + "motionZMean30": -0.279119602597654, + "hrvRelPrev": 1.2917156516968413, + "hrvRelNext": 0.8260443608433263, + "hrvRelMean30": 1.0633278470099536, + "minutesToExit": 73.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 14.5, + "stillBoutMinutes": 97.0, + "active15": 1.0, + "hrRise": 1.169788645949482, + "hrMaxZ": -1.023445996213679, + "brStdEpoch": 0.5894879133620976, + "brRel": 1.0091097308488615, + "moveHrCoupling": 0.0 + }, + { + "start": 1700015660, + "hrZ": -0.364641295446883, + "hrStdZ": -1.1552737077400919, + "motionZ": -0.4041610187429272, + "nightFraction": 0.7926829268292683, + "hrvRel": 0.8260443608433263, + "hrv15Rel": 0.9214965906418999, + "hr15StdRel": 0.5919838692180234, + "br15Std": 0.6638520990213107, + "motion15": 4.5217885770490405, + "minutesSinceBed": 260.0, + "hrZPrev": -1.3001934370845178, + "hrZNext": -0.32863785289104247, + "hrZMean30": -0.8736793073611494, + "hrStdZPrev": 1.7360088642374587, + "hrStdZNext": -0.7470786580095934, + "hrStdZMean30": -0.12853936148455483, + "motionZPrev": -0.633442002467746, + "motionZNext": -0.4491745561920188, + "motionZMean30": -0.3345578638116405, + "hrvRelPrev": 1.1404106904929854, + "hrvRelNext": 0.7836821067481775, + "hrvRelMean30": 1.0151489704746228, + "minutesToExit": 68.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 9.5, + "stillBoutMinutes": 97.0, + "active15": 2.0, + "hrRise": 1.4090092279432411, + "hrMaxZ": -0.7612824897944109, + "brStdEpoch": 0.4446751623376326, + "brRel": 0.9964113181504485, + "moveHrCoupling": 0.0 + }, + { + "start": 1700015960, + "hrZ": -0.32863785289104247, + "hrStdZ": -0.7470786580095934, + "motionZ": -0.4491745561920188, + "nightFraction": 0.8079268292682927, + "hrvRel": 0.7836821067481775, + "hrv15Rel": 0.828767928521044, + "hr15StdRel": 0.26065559991014514, + "br15Std": 0.6411110960668207, + "motion15": 6.129050210060545, + "minutesSinceBed": 265.0, + "hrZPrev": -0.364641295446883, + "hrZNext": -0.21310441782378725, + "hrZMean30": -0.6078372571034051, + "hrStdZPrev": -1.1552737077400919, + "hrStdZNext": 0.10928887974693101, + "hrStdZMean30": -0.1426298943348153, + "motionZPrev": -0.4041610187429272, + "motionZNext": 1.3849272708700713, + "motionZMean30": -0.2812850422562933, + "hrvRelPrev": 0.8260443608433263, + "hrvRelNext": 0.8929383180500039, + "hrvRelMean30": 0.9678658202053452, + "minutesToExit": 63.0, + "activeMinutes": 0.0, + "peakMinuteZ": -0.6744907594765952, + "minutesFromMove": 4.5, + "stillBoutMinutes": 97.0, + "active15": 2.0, + "hrRise": 0.777466891479717, + "hrMaxZ": -0.543686779466419, + "brStdEpoch": 0.9102527121629468, + "brRel": 1.0144927536231882, + "moveHrCoupling": 0.0 + }, + { + "start": 1700016260, + "hrZ": -0.21310441782378725, + "hrStdZ": 0.10928887974693101, + "motionZ": 1.3849272708700713, + "nightFraction": 0.823170731707317, + "hrvRel": 0.8929383180500039, + "hrv15Rel": 0.8682988478720903, + "hr15StdRel": 0.2882036814190838, + "br15Std": 0.6844055358484471, + "motion15": 6.1092475827643655, + "minutesSinceBed": 270.0, + "hrZPrev": -0.32863785289104247, + "hrZNext": -0.2555562381508237, + "hrZMean30": -0.2953212344065302, + "hrStdZPrev": -0.7470786580095934, + "hrStdZNext": -0.5243657788372772, + "hrStdZMean30": -0.21393490365731013, + "motionZPrev": -0.4491745561920188, + "motionZNext": -1.0215098309656516, + "motionZMean30": -0.23063157792863204, + "hrvRelPrev": 0.7836821067481775, + "hrvRelNext": 0.9412963398385454, + "hrvRelMean30": 0.916507115425526, + "minutesToExit": 58.0, + "activeMinutes": 2.0, + "peakMinuteZ": 22.721891879449686, + "minutesFromMove": 0.5, + "stillBoutMinutes": 2.0, + "active15": 2.0, + "hrRise": 0.6578566004828375, + "hrMaxZ": -0.3024963535606919, + "brStdEpoch": 0.48246865183139104, + "brRel": 1.0091097308488612, + "moveHrCoupling": 1.315713200965675 + }, + { + "start": 1700016560, + "hrZ": -0.2555562381508237, + "hrStdZ": -0.5243657788372772, + "motionZ": -1.0215098309656516, + "nightFraction": 0.8384146341463414, + "hrvRel": 0.9412963398385454, + "hrv15Rel": 0.9207912062073831, + "hr15StdRel": 0.35155936689997197, + "br15Std": 0.6601180647240309, + "motion15": 6.144185634125646, + "minutesSinceBed": 275.0, + "hrZPrev": -0.21310441782378725, + "hrZNext": -0.01589153098805136, + "hrZMean30": -0.12633919192028734, + "hrStdZPrev": 0.10928887974693101, + "hrStdZNext": -0.37335404829582197, + "hrStdZMean30": -0.3497971505332608, + "motionZPrev": 1.3849272708700713, + "motionZNext": -0.14954652254362996, + "motionZMean30": -0.20768024063950755, + "hrvRelPrev": 0.8929383180500039, + "hrvRelNext": 0.8989732737675367, + "hrvRelMean30": 0.9233370282041807, + "minutesToExit": 53.0, + "activeMinutes": 0.0, + "peakMinuteZ": -4.178168093785555, + "minutesFromMove": 3.5, + "stillBoutMinutes": 30.0, + "active15": 2.0, + "hrRise": 0.4712645465277051, + "hrMaxZ": -0.30511798862488404, + "brStdEpoch": 0.6090845589899647, + "brRel": 0.9919944789510007, + "moveHrCoupling": 0.0 + }, + { + "start": 1700016860, + "hrZ": -0.01589153098805136, + "hrStdZ": -0.37335404829582197, + "motionZ": -0.14954652254362996, + "nightFraction": 0.8536585365853658, + "hrvRel": 0.8989732737675367, + "hrv15Rel": 0.938014342816835, + "hr15StdRel": 0.3714226655674138, + "br15Std": 0.6570292991944878, + "motion15": 4.634728988229636, + "minutesSinceBed": 280.0, + "hrZPrev": -0.2555562381508237, + "hrZNext": 0.41077613153939413, + "hrZMean30": -0.20387325797871128, + "hrStdZPrev": -0.5243657788372772, + "hrStdZNext": -0.5427698767027761, + "hrStdZMean30": -0.23250024996350635, + "motionZPrev": -1.0215098309656516, + "motionZNext": -0.34151438545852214, + "motionZMean30": -0.2362359375946932, + "hrvRelPrev": 0.9412963398385454, + "hrvRelNext": 0.9322047182381065, + "hrvRelMean30": 0.9866928666599487, + "minutesToExit": 48.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 8.5, + "stillBoutMinutes": 30.0, + "active15": 2.0, + "hrRise": 0.552599544405584, + "hrMaxZ": -0.2002525860571772, + "brStdEpoch": 0.8310090252217479, + "brRel": 1.019461697722567, + "moveHrCoupling": 0.0 + }, + { + "start": 1700017160, + "hrZ": 0.41077613153939413, + "hrStdZ": -0.5427698767027761, + "motionZ": -0.34151438545852214, + "nightFraction": 0.8689024390243902, + "hrvRel": 0.9322047182381065, + "hrv15Rel": 1.0261139195861744, + "hr15StdRel": 0.5046642413303243, + "br15Std": 0.6099590150165828, + "motion15": 4.762173934797756, + "minutesSinceBed": 285.0, + "hrZPrev": -0.01589153098805136, + "hrZNext": -0.1173191396808175, + "hrZMean30": -0.2567653089829229, + "hrStdZPrev": -0.37335404829582197, + "hrStdZNext": 0.7849731361058033, + "hrStdZMean30": -0.24903007881501724, + "motionZPrev": -0.14954652254362996, + "motionZNext": -0.47278264144387433, + "motionZMean30": 0.027069147824091293, + "hrvRelPrev": 0.8989732737675367, + "hrvRelNext": 1.1882200799435692, + "hrvRelMean30": 1.0644642997100084, + "minutesToExit": 43.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 13.5, + "stillBoutMinutes": 30.0, + "active15": 1.0, + "hrRise": 0.9257836523158487, + "hrMaxZ": 0.2926148060110474, + "brStdEpoch": 0.42944615494844024, + "brRel": 1.0237405106970323, + "moveHrCoupling": 0.0 + }, + { + "start": 1700017460, + "hrZ": -0.1173191396808175, + "hrStdZ": 0.7849731361058033, + "motionZ": -0.47278264144387433, + "nightFraction": 0.8841463414634146, + "hrvRel": 1.1882200799435692, + "hrv15Rel": 1.1230161062779214, + "hr15StdRel": 0.6223936634365925, + "br15Std": 0.49458947623256194, + "motion15": 4.543294782270004, + "minutesSinceBed": 290.0, + "hrZPrev": 0.41077613153939413, + "hrZNext": -0.9073797578558507, + "hrZMean30": -0.32255411552952573, + "hrStdZPrev": -0.5427698767027761, + "hrStdZNext": -0.3341954037518103, + "hrStdZMean30": -0.37657702760384026, + "motionZPrev": -0.34151438545852214, + "motionZNext": -0.6040508974292268, + "motionZMean30": -0.25303656034308053, + "hrvRelPrev": 0.9322047182381065, + "hrvRelNext": 1.2695352300337017, + "hrvRelMean30": 1.1066418102627835, + "minutesToExit": 38.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 11.5, + "stillBoutMinutes": 30.0, + "active15": 1.0, + "hrRise": 0.5262852803862706, + "hrMaxZ": 0.10647871645336686, + "brStdEpoch": 0.08236504112789637, + "brRel": 0.9879917184265009, + "moveHrCoupling": 0.0 + }, + { + "start": 1700017760, + "hrZ": -0.9073797578558507, + "hrStdZ": -0.3341954037518103, + "motionZ": -0.6040508974292268, + "nightFraction": 0.899390243902439, + "hrvRel": 1.2695352300337017, + "hrv15Rel": 1.260580766517752, + "hr15StdRel": 0.43743380213287064, + "br15Std": 0.44912240814726656, + "motion15": 6.124683390894205, + "minutesSinceBed": 295.0, + "hrZPrev": -0.1173191396808175, + "hrZNext": -0.698882209920524, + "hrZMean30": -0.3511112170876782, + "hrStdZPrev": 0.7849731361058033, + "hrStdZNext": -0.8627874599701694, + "hrStdZMean30": -0.32253213886282517, + "motionZPrev": -0.47278264144387433, + "motionZNext": 1.3939610417394726, + "motionZMean30": -0.1648438728826913, + "hrvRelPrev": 1.1882200799435692, + "hrvRelNext": 1.328082138098597, + "hrvRelMean30": 1.1550502166537906, + "minutesToExit": 33.0, + "activeMinutes": 0.0, + "peakMinuteZ": -2.2300405561784036, + "minutesFromMove": 6.5, + "stillBoutMinutes": 30.0, + "active15": 1.0, + "hrRise": -0.3456737409809819, + "hrMaxZ": -0.8425531767843847, + "brStdEpoch": 0.630314207360107, + "brRel": 0.9863354037267081, + "moveHrCoupling": 0.0 + }, + { + "start": 1700018060, + "hrZ": -0.698882209920524, + "hrStdZ": -0.8627874599701694, + "motionZ": 1.3939610417394726, + "nightFraction": 0.9146341463414634, + "hrvRel": 1.328082138098597, + "hrv15Rel": 1.285283917234893, + "hr15StdRel": 0.252880976691468, + "br15Std": 0.5370055865631194, + "motion15": 6.111467339502679, + "minutesSinceBed": 300.0, + "hrZPrev": -0.9073797578558507, + "hrZNext": -0.6736260636500073, + "hrZMean30": -0.39970434957775985, + "hrStdZPrev": -0.3341954037518103, + "hrStdZNext": -0.7835397617748301, + "hrStdZMean30": -0.25583289643175033, + "motionZPrev": -0.6040508974292268, + "motionZNext": -0.5758126863001315, + "motionZMean30": -0.2297730692949195, + "hrvRelPrev": 1.2695352300337017, + "hrvRelNext": 1.1881808919194294, + "hrvRelMean30": 1.1945069586734294, + "minutesToExit": 28.0, + "activeMinutes": 1.0, + "peakMinuteZ": 26.825051723306068, + "minutesFromMove": 1.5, + "stillBoutMinutes": 30.0, + "active15": 1.0, + "hrRise": -0.29902572749219886, + "hrMaxZ": -0.9526618494804758, + "brStdEpoch": 0.3720215047547651, + "brRel": 0.9848171152518979, + "moveHrCoupling": 0.0 + }, + { + "start": 1700018360, + "hrZ": -0.6736260636500073, + "hrStdZ": -0.7835397617748301, + "motionZ": -0.5758126863001315, + "nightFraction": 0.9298780487804879, + "hrvRel": 1.1881808919194294, + "hrv15Rel": 1.2998177756877498, + "hr15StdRel": 0.26059933459241097, + "br15Std": 0.4523894892678209, + "motion15": 6.139884552226255, + "minutesSinceBed": 305.0, + "hrZPrev": -0.698882209920524, + "hrZNext": -0.45545594905789055, + "hrZMean30": -0.18944117439555894, + "hrStdZPrev": -0.8627874599701694, + "hrStdZNext": -0.14605155765017167, + "hrStdZMean30": -0.23705215411633443, + "motionZPrev": 1.3939610417394726, + "motionZNext": -0.4041610187429272, + "motionZMean30": -0.27147701458195145, + "hrvRelPrev": 1.328082138098597, + "hrvRelNext": 1.2801551845755936, + "hrvRelMean30": 1.153135601760102, + "minutesToExit": 23.0, + "activeMinutes": 0.0, + "peakMinuteZ": -2.2300405561784036, + "minutesFromMove": 3.5, + "stillBoutMinutes": 23.0, + "active15": 1.0, + "hrRise": 0.31457506532179264, + "hrMaxZ": -0.9316887689669349, + "brStdEpoch": 0.5812606988262664, + "brRel": 0.9892339544513458, + "moveHrCoupling": 0.0 + }, + { + "start": 1700018660, + "hrZ": -0.45545594905789055, + "hrStdZ": -0.14605155765017167, + "motionZ": -0.4041610187429272, + "nightFraction": 0.9451219512195121, + "hrvRel": 1.2801551845755936, + "hrv15Rel": 1.2107923818481072, + "hr15StdRel": 0.5908778640930227, + "br15Std": 0.7339182089987959, + "motion15": 4.406719247264253, + "minutesSinceBed": 310.0, + "hrZPrev": -0.6736260636500073, + "hrZNext": -0.3560434584186231, + "hrZMean30": -0.20146151351468256, + "hrStdZPrev": -0.7835397617748301, + "hrStdZNext": 0.09354064872170186, + "hrStdZMean30": -0.40738970248669076, + "motionZPrev": -0.5758126863001315, + "motionZNext": -0.6040508974292268, + "motionZMean30": -0.23792607677163094, + "hrvRelPrev": 1.1881808919194294, + "hrvRelNext": 1.1751704679050081, + "hrvRelMean30": 1.1472881887295243, + "minutesToExit": 18.0, + "activeMinutes": 0.0, + "peakMinuteZ": -0.6744907594765952, + "minutesFromMove": 8.5, + "stillBoutMinutes": 23.0, + "active15": 1.0, + "hrRise": 0.6004436608043348, + "hrMaxZ": -0.6642819924192824, + "brStdEpoch": 0.39643410549547864, + "brRel": 0.9841269841269841, + "moveHrCoupling": 0.0 + }, + { + "start": 1700018960, + "hrZ": -0.3560434584186231, + "hrStdZ": 0.09354064872170186, + "motionZ": -0.6040508974292268, + "nightFraction": 0.9603658536585366, + "hrvRel": 1.1751704679050081, + "hrv15Rel": 1.0331383729132377, + "hr15StdRel": 1.0448847228568012, + "br15Std": 0.9957124883092506, + "motion15": 4.477336814478207, + "minutesSinceBed": 315.0, + "hrZPrev": -0.45545594905789055, + "hrZNext": 1.8826183578148006, + "hrZMean30": -0.06027786464644893, + "hrStdZPrev": -0.14605155765017167, + "hrStdZNext": -0.41130468049486485, + "hrStdZMean30": -0.4220285622336669, + "motionZPrev": -0.4041610187429272, + "motionZNext": -0.633442002467746, + "motionZMean30": -0.16470111264011178, + "hrvRelPrev": 1.2801551845755936, + "hrvRelNext": 0.6426052198448153, + "hrvRelMean30": 1.122838780468689, + "minutesToExit": 13.0, + "activeMinutes": 0.0, + "peakMinuteZ": 0.0, + "minutesFromMove": 13.5, + "stillBoutMinutes": 23.0, + "active15": 1.0, + "hrRise": 0.5573839560454582, + "hrMaxZ": -0.5227136989528779, + "brStdEpoch": 0.3891220888101833, + "brRel": 1.0122843340234644, + "moveHrCoupling": 0.0 + }, + { + "start": 1700019260, + "hrZ": 1.8826183578148006, + "hrStdZ": -0.41130468049486485, + "motionZ": -0.633442002467746, + "nightFraction": 0.975609756097561, + "hrvRel": 0.6426052198448153, + "hrv15Rel": 0.9279965273381686, + "hr15StdRel": 1.0342884826993448, + "br15Std": 0.8916934225188123, + "motion15": 4.07753744390572, + "minutesSinceBed": 320.0, + "hrZPrev": -0.3560434584186231, + "hrZNext": 1.8826183578148006, + "hrZMean30": 0.09937322167206991, + "hrStdZPrev": 0.09354064872170186, + "hrStdZNext": -0.41130468049486485, + "hrStdZMean30": -0.3118388377995412, + "motionZPrev": -0.6040508974292268, + "motionZNext": -0.633442002467746, + "motionZMean30": -0.5543666512350078, + "hrvRelPrev": 1.1751704679050081, + "hrvRelNext": 0.6426052198448153, + "hrvRelMean30": 1.0715279410612117, + "minutesToExit": 8.0, + "activeMinutes": 0.0, + "peakMinuteZ": -1.4133117939917905, + "minutesFromMove": 18.5, + "stillBoutMinutes": 23.0, + "active15": 0.0, + "hrRise": 2.4663642003556565, + "hrMaxZ": 1.7712169822157193, + "brStdEpoch": 0.6057854405645613, + "brRel": 1.1271221532091098, + "moveHrCoupling": 0.0 + } + ] +} \ No newline at end of file diff --git a/src/lib/tests/personal-stage-model.test.ts b/src/lib/tests/personal-stage-model.test.ts index ee31063fc..45a767e3c 100644 --- a/src/lib/tests/personal-stage-model.test.ts +++ b/src/lib/tests/personal-stage-model.test.ts @@ -7,6 +7,7 @@ import { evaluateStageModel, failingTestVectors, filterModelOutliers, + POD_CONTEXT_CONTRACT, POD_NATIVE_CONTRACT, stageModelBlocks, stageModelContract, @@ -125,6 +126,49 @@ describe('feature contract parity', () => { } }) + it('reproduces the training workspace on the synthetic night, podContext contract', () => { + const fixture = JSON.parse(readFileSync(path.join(__dirname, 'fixtures', 'stage-features-night.json'), 'utf8')) as Fixture + const expected = (JSON.parse(readFileSync(path.join(__dirname, 'fixtures', 'stage-features-context.json'), 'utf8')) as { contractC: Record[] }).contractC + const vitals = fixture.vitals.map(v => ({ timestamp: new Date(v.ts * 1000), heartRate: v.hr, hrv: v.hrv, breathingRate: v.br })) + const movement = fixture.movement.map(m => ({ timestamp: new Date(m.ts * 1000), totalMovement: m.total })) + const rows = stageModelFeatures('podContext', new Date(fixture.enteredBed * 1000), new Date(fixture.leftBed * 1000), vitals, movement) + expect(rows.length).toBe(expected.length) + expect(rows.some(row => row.values.activeMinutes > 0)).toBe(true) + rows.forEach((row, i) => { + expect(row.start).toBe(expected[i].start) + for (const column of POD_CONTEXT_CONTRACT) { + expect(Math.abs(row.values[column] - expected[i][column]), `${column} at row ${i}`).toBeLessThan(1e-6) + } + }) + }) + + it('falls back to the epoch itself for missing neighbours and treats a still night as one bout', () => { + const t0 = new Date(Date.UTC(2026, 9, 1)) + const vitals = [1, 2, 11, 12].map(m => ({ timestamp: new Date(t0.getTime() + m * 60_000), heartRate: 60 + m, hrv: 40, breathingRate: 14 })) + const movement = Array.from({ length: 15 }, (_, m) => ({ timestamp: new Date(t0.getTime() + m * 60_000), totalMovement: 5 })) + const rows = stageModelFeatures('podContext', t0, new Date(t0.getTime() + 15 * 60_000), vitals, movement) + expect(rows.map(r => (r.start - t0.getTime() / 1000) / 60)).toEqual([0, 10]) + for (const row of rows) { + expect(row.values.hrZPrev).toBe(row.values.hrZ) + expect(row.values.hrZNext).toBe(row.values.hrZ) + expect(row.values.activeMinutes).toBe(0) + expect(row.values.minutesFromMove).toBe(720) + expect(row.values.stillBoutMinutes).toBe(14) + } + expect(rows[1].values.minutesToExit).toBe(5) + }) + + it('accepts a podContext model', () => { + const inputs = Object.fromEntries(POD_CONTEXT_CONTRACT.map(c => [c, 0])) + const model = stageModelSchema.parse({ + version: 'context-forest', kind: 'forest', classes: ['wake', 'light', 'deep', 'rem'], featureContract: [...POD_CONTEXT_CONTRACT], + trees: [{ f: [-1], t: [0], l: [-1], r: [-1], v: [[0, 1, 0, 0]] }], testVectors: [{ inputs, expected: 1 }], + }) + expect(POD_CONTEXT_CONTRACT.length).toBe(33) + expect(stageModelContract(model)).toBe('podContext') + expect(failingTestVectors(model)).toEqual([]) + }) + it('drops a partial trailing epoch and epochs without heart rate', () => { const t0 = new Date(Date.UTC(2026, 9, 1)) const vitals = [0, 1, 6, 7].map(m => ({ timestamp: new Date(t0.getTime() + m * 60_000), heartRate: 60 + m, hrv: 40, breathingRate: 14 })) diff --git a/src/lib/tests/watchMovement.test.ts b/src/lib/tests/watchMovement.test.ts new file mode 100644 index 000000000..049163a23 --- /dev/null +++ b/src/lib/tests/watchMovement.test.ts @@ -0,0 +1,30 @@ +import { expect, it } from 'vitest' +import { scaleWatchByNight, splitRuns, watchInWindows, watchPeak } from '../watchMovement' + +const M = 60_000 + +it('takes the 95th percentile as the peak, never below 1', () => { + expect(watchPeak([])).toBe(1) + expect(watchPeak([0, 0, 0.5])).toBe(1) + expect(watchPeak([...Array.from({ length: 99 }, (_, i) => i + 1), 1000])).toBe(96) +}) + +it('splits runs at gaps over two minutes', () => { + const points = [0, M, 3 * M, 6 * M].map(t => ({ t })) + expect(splitRuns(points).map(r => r.map(p => p.t / M))).toEqual([[0, 1, 3], [6]]) +}) + +it('keeps minutes inside the windows only, sorted', () => { + const minutes = [{ t: 5 * M, moving: 1 }, { t: M, moving: 2 }, { t: 50 * M, moving: 3 }] + expect(watchInWindows(minutes, [{ start: 0, end: 10 * M }]).map(m => m.t)).toEqual([M, 5 * M]) +}) + +it('scales each night to its own peak and clips at 1.2', () => { + // One thrash in 40 minutes sits above the 95th percentile, so it clips instead of flattening the night. + const night1 = Array.from({ length: 40 }, (_, i) => ({ t: i * M, moving: i === 39 ? 100 : 10 })) + const night2 = Array.from({ length: 20 }, (_, i) => ({ t: 20 * 3600_000 + i * M, moving: 2 })) + const scaled = scaleWatchByNight([...night1, ...night2]) + expect(scaled[0].scaled).toBe(1) + expect(scaled[39].scaled).toBe(1.2) + expect(scaled.slice(40).every(m => m.scaled === 1)).toBe(true) +}) diff --git a/src/lib/watchMovement.ts b/src/lib/watchMovement.ts new file mode 100644 index 000000000..d6f9752aa --- /dev/null +++ b/src/lib/watchMovement.ts @@ -0,0 +1,80 @@ +/** + * Chart helpers for Apple Watch wrist movement (moving readings per minute) + * drawn over the pod's movement. Watch motion is a comparison label only. + * + * Rules learned from the iOS chart: a missing minute is no data, never + * stillness, so lines never bridge gaps; only minutes inside the sleep session + * shown are drawn and scaled; each night is scaled to its own peak. + */ + +export interface WatchMinute { t: number, moving: number } + +/** The longest window biometrics.getWatchMotionSeries serves (31 days). */ +export const WATCH_MOTION_MAX_SERIES_MS = 31 * 24 * 60 * 60_000 +/** Consecutive minutes further apart than this are not joined. */ +export const WATCH_GAP_MS = 2 * 60_000 +/** Watch minutes further apart than this belong to different nights for scaling. */ +export const WATCH_NIGHT_GAP_MS = 4 * 60 * 60_000 +/** A normalized value may overshoot the night's peak by this much before it is clipped. */ +export const WATCH_MAX_SCALE = 1.2 + +/** The 95th percentile (at least 1), so one thrash does not flatten the rest of the night. Matches iOS. */ +export function watchPeak(values: number[]): number { + const sorted = [...values].sort((a, b) => a - b) + if (sorted.length === 0) return 1 + return Math.max(sorted[Math.min(sorted.length - 1, Math.floor(sorted.length * 0.95))], 1) +} + +/** Minutes inside any of the windows, time-sorted. */ +export function watchInWindows(minutes: WatchMinute[], windows: Array<{ start: number, end: number }>): WatchMinute[] { + return minutes.filter(m => windows.some(w => m.t >= w.start && m.t <= w.end)).sort((a, b) => a.t - b.t) +} + +/** + * Each minute's movement as a fraction of its night's peak, clipped at + * WATCH_MAX_SCALE. Pass only minutes already restricted to the sessions shown. + */ +export function scaleWatchByNight(minutes: WatchMinute[], nightGapMs = WATCH_NIGHT_GAP_MS): Array { + const out: Array = [] + for (const night of splitRuns(minutes, nightGapMs)) { + const peak = watchPeak(night.map(m => m.moving)) + for (const m of night) out.push({ ...m, scaled: Math.min(m.moving / peak, WATCH_MAX_SCALE) }) + } + return out +} + +/** + * Watch movement summed into chart buckets (aligned like the pod's + * getMovementBuckets) for each night window, each night scaled to the 95th + * percentile of its own buckets. Minutes outside every night are ignored. + */ +export function watchBuckets(minutes: WatchMinute[], nights: Array<{ start: number, end: number }>, bucketMs: number): Map { + const out = new Map() + const used = new Set() + for (const night of nights) { + const sums = new Map() + for (const m of minutes) { + if (m.t < night.start || m.t > night.end || used.has(m.t)) continue + used.add(m.t) + const key = Math.floor(m.t / bucketMs) * bucketMs + sums.set(key, (sums.get(key) ?? 0) + m.moving) + } + const peak = watchPeak([...sums.values()]) + for (const [key, moving] of sums) { + const prior = out.get(key)?.moving ?? 0 + out.set(key, { moving: prior + moving, scaled: Math.min((prior + moving) / peak, WATCH_MAX_SCALE) }) + } + } + return out +} + +/** Time-sorted points split wherever the next is more than `gapMs` later. */ +export function splitRuns(points: T[], gapMs = WATCH_GAP_MS): T[][] { + const runs: T[][] = [] + for (const p of points) { + const run = runs[runs.length - 1] + if (run && p.t - run[run.length - 1].t <= gapMs) run.push(p) + else runs.push([p]) + } + return runs +} diff --git a/src/mcp/README.md b/src/mcp/README.md index a3d223de1..9be01afa4 100644 --- a/src/mcp/README.md +++ b/src/mcp/README.md @@ -83,7 +83,7 @@ claude mcp add --transport http sleepypod http://192.168.1.88:3000/api/mcp |---|---|---| | "What timezone / unit is it on?" | `get_settings` | `settings.getAll` | | "I'm away until Friday" / "Keep it on all night" / "Turn off when I get up" / "Rename my side" | `set_side_settings` | `settings.updateSide` | -| "Switch to Celsius" / "Dim the LED at night" / "Prime daily at 2pm" / "Cap at 10 hours" | `set_device_settings` | `settings.updateDevice` | +| "Switch to Celsius" / "Dim the LED at night" / "Prime daily at 2pm" / "Cap at 10 hours" / "Read sensors from the rawmem subjects" | `set_device_settings` | `settings.updateDevice` | ### Automations (Autopilot) @@ -97,6 +97,7 @@ claude mcp add --transport http sleepypod http://192.168.1.88:3000/api/mcp | Intent | Tool | Procedures | |---|---|---| | "Something's wrong" / "Is the bed actually cooling?" / "Is everything OK?" | `diagnose_pod` | `health.system`, `hardware`, `thermal`, `waterLevel.getLatest`, `getAlerts`, `pumpAlerts.list`, `system.getDiskUsage`, `getVersion`, `internetStatus` | +| "Why are my biometrics empty?" / "Is the pod getting sensor data?" / "Which NATS subjects is it reading?" | `get_sensor_source` | `system.getSensorSource` | | "Show me the logs" / "Why did the sleep detector crash?" | `get_logs` | `system.getLogs` | | "Clear the pump alert" / "Restart the piezo service" / "Free up space" / "Update the software" | `pod_maintenance` | `pumpAlerts.acknowledgeAndRestore`, `waterLevel.dismissAlert`, `health.restartService`, `system.freeStorage`, `databases.checkIntegrity`, `system.triggerUpdate` | diff --git a/src/mcp/server.ts b/src/mcp/server.ts index 6372e87b0..44932a18f 100644 --- a/src/mcp/server.ts +++ b/src/mcp/server.ts @@ -27,6 +27,7 @@ const INSTRUCTIONS = `Sleepypod controls an Eight Sleep Pod running the open-sou The bed has two independent sides ("left" and "right"), each with its own temperature, schedules and sleeper. Temperature control precedence, highest first: manual hold (set_temperature) > run-once curve > automation > schedule. Start with get_pod_status for anything about the present, get_sleep_summary for last night, and diagnose_pod when something seems wrong. +When live sensor data or biometrics are empty, check get_sensor_source before changing anything. Confirm with the user before prime_pod, pod_maintenance and manage_schedule delete. Run apply_sleep_curve with mode "preview" and show the result before calling it with mode "apply". Run preview_sleep_stage_rules before set_sleep_stage_rules and apply a tuned ruleset only when it improves kappa against the reference stages; a reset or rollback the user asks for does not need to. diff --git a/src/mcp/tests/server.test.ts b/src/mcp/tests/server.test.ts index 6673bb66e..af628d263 100644 --- a/src/mcp/tests/server.test.ts +++ b/src/mcp/tests/server.test.ts @@ -38,7 +38,7 @@ const callerMock = vi.hoisted(() => { health: { system: fn(), hardware: fn(), thermal: fn(), restartService: fn() }, waterLevel: { getLatest: fn(), getAlerts: fn(), dismissAlert: fn() }, pumpAlerts: { list: fn(), acknowledgeAndRestore: fn() }, - system: { getDiskUsage: fn(), getVersion: fn(), internetStatus: fn(), getLogs: fn(), freeStorage: fn(), triggerUpdate: fn() }, + system: { getDiskUsage: fn(), getVersion: fn(), internetStatus: fn(), getLogs: fn(), freeStorage: fn(), triggerUpdate: fn(), getSensorSource: fn() }, runOnce: { start: fn(), getActive: fn(), cancel: fn() }, automations: { status: fn(), tonight: fn(), list: fn(), setEnabled: fn(), setDryRun: fn(), setKillSwitch: fn(), @@ -132,6 +132,7 @@ describe('sleepypod MCP server', () => { 'get_pod_status', 'get_saved_curves', 'get_schedules', + 'get_sensor_source', 'get_settings', 'get_sleep_history', 'get_sleep_stage_rules', @@ -811,6 +812,49 @@ describe('sleepypod MCP server', () => { expect(parse(settings)).toMatchObject({ device: { temperatureUnit: 'F' }, sides: { right: { awayMode: true } } }) }) + it('set_device_settings pins or clears the NATS subject prefix and says what still needs a restart', async () => { + const client = await connect() + callerMock.settings.updateDevice.mockResolvedValue({ natsSubjectPrefix: 'rawmem' }) + + const pinned = await client.callTool({ name: 'set_device_settings', arguments: { natsSubjectPrefix: 'rawmem' } }) as CallToolResult + expect(callerMock.settings.updateDevice).toHaveBeenCalledWith({ natsSubjectPrefix: 'rawmem' }) + expect(parse(pinned)).toEqual({ natsSubjectPrefix: 'rawmem' }) + const followUp = pinned.content[1] + expect(followUp.type === 'text' && followUp.text).toContain('pod_maintenance restart_service') + + await client.callTool({ name: 'set_device_settings', arguments: { natsSubjectPrefix: null } }) + expect(callerMock.settings.updateDevice).toHaveBeenLastCalledWith({ natsSubjectPrefix: null }) + + const other = await client.callTool({ name: 'set_device_settings', arguments: { temperatureUnit: 'C' } }) as CallToolResult + expect(other.content).toHaveLength(1) + }) + + it('set_device_settings rejects a NATS prefix that is not a single subject token', async () => { + const client = await connect() + for (const natsSubjectPrefix of ['raw.sens', '*', '>', '', 'x'.repeat(33)]) { + const result = await client.callTool({ name: 'set_device_settings', arguments: { natsSubjectPrefix } }) as CallToolResult + expect(result.isError, natsSubjectPrefix).toBe(true) + } + expect(callerMock.settings.updateDevice).not.toHaveBeenCalled() + }) + + it('get_sensor_source returns the stream diagnostics and tells the agent how to fix a prefix', async () => { + const client = await connect() + const diagnostics = { + stream: { source: 'nats' }, + nats: { mode: 'auto', configuredPrefix: null, observedPrefixes: [{ prefix: 'rawv2', subscribed: false }] }, + } + callerMock.system.getSensorSource.mockResolvedValue(diagnostics) + + const result = await client.callTool({ name: 'get_sensor_source', arguments: {} }) as CallToolResult + expect(parse(result)).toEqual(diagnostics) + expect(callerMock.system.getSensorSource).toHaveBeenCalledWith({}) + const tool = (await client.listTools()).tools.find(t => t.name === 'get_sensor_source') + expect(tool?.annotations).toMatchObject({ readOnlyHint: true, destructiveHint: false }) + expect(tool?.description).toContain('set natsSubjectPrefix to that prefix') + expect(tool?.description).toContain('null to return to auto') + }) + it('sleep history, vitals trend and occupancy read the biometrics router', async () => { const client = await connect() callerMock.biometrics.getSleepRecords.mockResolvedValue([{ id: 1, side: 'left', enteredBedAt: new Date(0), leftBedAt: null, sleepDurationSeconds: 0, timesExitedBed: 0 }]) diff --git a/src/mcp/tools/settings.ts b/src/mcp/tools/settings.ts index 0ad98c3ab..16738a9cc 100644 --- a/src/mcp/tools/settings.ts +++ b/src/mcp/tools/settings.ts @@ -4,11 +4,20 @@ */ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js' import { z } from 'zod' -import { getCaller, jsonResult, runTool } from '@/src/mcp/caller' +import { getCaller, jsonResult, runTool, textResult } from '@/src/mcp/caller' import { side, timeOfDay } from '@/src/mcp/schemas' +import { natsSubjectPrefixSchema } from '@/src/server/validation-schemas' const MUTATING = { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false } +export const NATS_PREFIX_FOLLOW_UP + = 'natsSubjectPrefix saved. It only matters when get_sensor_source shows stream.source "nats"; on a .RAW pod it has ' + + 'no effect. On NATS the live sensor stream re-subscribed already. The biometrics modules read the prefix at ' + + 'startup: restart sleepypod-piezo-processor.service, sleepypod-sleep-detector.service and ' + + 'sleepypod-environment-monitor.service with pod_maintenance restart_service (confirm with the user first); ' + + 'sleepypod-calibrator.service picks it up on its next restart. ' + + 'Check get_sensor_source afterwards to confirm frames are arriving.' + export function registerSettingsTools(server: McpServer) { server.registerTool('get_settings', { title: 'Get device and side settings', @@ -54,7 +63,8 @@ export function registerSettingsTools(server: McpServer) { title: 'Change device settings', description: 'Update pod-wide settings: timezone (IANA name), temperatureUnit shown in the app, daily reboot and daily ' - + 'prime times, LED night mode and brightness, globalMaxOnHours safety cap. Only the provided fields change.', + + 'prime times, LED night mode and brightness, globalMaxOnHours safety cap, natsSubjectPrefix for the sensor ' + + 'readers. Only the provided fields change.', inputSchema: { timezone: z.string().optional().describe('IANA timezone, e.g. "America/Los_Angeles".'), temperatureUnit: z.enum(['F', 'C']).optional(), @@ -70,7 +80,15 @@ export function registerSettingsTools(server: McpServer) { ledNightEndTime: timeOfDay.optional(), globalMaxOnHours: z.number().int().min(1).max(48).nullable().optional() .describe('Force every side off after this many continuous hours. null disables the cap.'), + natsSubjectPrefix: natsSubjectPrefixSchema.nullable().optional() + .describe('NATS subject prefix the sensor readers subscribe under (.sens.> and .frz.>). ' + + 'null = auto: read "raw" and "rawmem", raw winning per subject. Pin a prefix only when get_sensor_source ' + + 'shows the firmware publishing under one the readers do not subscribe to; set null to return to auto.'), }, annotations: MUTATING, - }, async input => runTool(async () => jsonResult(await getCaller().settings.updateDevice(input)))) + }, async input => runTool(async () => { + const result = jsonResult(await getCaller().settings.updateDevice(input)) + if (input.natsSubjectPrefix === undefined) return result + return { content: [...result.content, ...textResult(NATS_PREFIX_FOLLOW_UP).content] } + })) } diff --git a/src/mcp/tools/sleep.ts b/src/mcp/tools/sleep.ts index 705e5c65d..8a3050c1e 100644 --- a/src/mcp/tools/sleep.ts +++ b/src/mcp/tools/sleep.ts @@ -8,7 +8,7 @@ import { getCaller, jsonResult, runTool, type Caller } from '@/src/mcp/caller' import { days, isoDate, optionalSide, side } from '@/src/mcp/schemas' import { STAGE_RULESET_PRESETS, stageRulesetSchema, type StageClassifier, type StageRule, type StageRuleset } from '@/src/lib/sleep-stage-rules' import { scoreAgainstReference, type SleepStage, type StageAgreement } from '@/src/lib/sleep-stages' -import { REFERENCE_SAMPLE_RANGE } from '@/src/server/routers/biometrics' +import { REFERENCE_SAMPLE_METRICS } from '@/src/biometrics/references/contracts' import { nearestWithin, WATCH_PAIRING_WINDOW_MS } from '@/src/biometrics/references/watch-deviation' const READ_ONLY = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } @@ -28,9 +28,9 @@ const IMPORT_HINT = `No sleep records overlapping reference stages in the last $ const UNCOVERED_HINT = 'Reference stages exist for these nights but cover none of the classified epochs, so agreement is null. Check the imported segment times.' const unixSeconds = z.number().int().min(1_000_000_000).max(4_102_444_800) -const referenceSamples = (metric: keyof typeof REFERENCE_SAMPLE_RANGE) => z.array(z.object({ +const referenceSamples = (metric: keyof typeof REFERENCE_SAMPLE_METRICS) => z.array(z.object({ timestamp: unixSeconds, - value: z.number().min(REFERENCE_SAMPLE_RANGE[metric][0]).max(REFERENCE_SAMPLE_RANGE[metric][1]), + value: z.number().min(REFERENCE_SAMPLE_METRICS[metric].range[0]).max(REFERENCE_SAMPLE_METRICS[metric].range[1]), })).max(2000).default([]) const presetId = z.enum(PRESET_IDS).optional() diff --git a/src/mcp/tools/status.ts b/src/mcp/tools/status.ts index 6340c731a..c6884bf41 100644 --- a/src/mcp/tools/status.ts +++ b/src/mcp/tools/status.ts @@ -119,6 +119,20 @@ export function registerStatusTools(server: McpServer) { return jsonResult({ system, hardware, thermal, waterLevel, waterAlerts, pumpAlerts, disk, version, internet }) })) + server.registerTool('get_sensor_source', { + title: 'Get sensor data source', + description: + 'Where the pod reads raw sensor frames from: the firmware generation, whether the stream reads .RAW files or ' + + 'NATS, and the age of the last frame. On NATS, the nats block lists the subject prefix mode (auto or pinned), ' + + 'the subscribed subjects, which prefix feeds each sensor subject, and observedPrefixes: every prefix seen ' + + 'publishing .sens.*, with subscribed false for one the readers do not read. To diagnose empty ' + + 'biometrics or "No frames": if no frames are arriving and observedPrefixes includes a prefix with subscribed ' + + 'false, set natsSubjectPrefix to that prefix with set_device_settings; if a pinned prefix stopped working, set ' + + 'natsSubjectPrefix to null to return to auto. Observed prefixes appear within seconds of the stream starting.', + inputSchema: {}, + annotations: READ_ONLY, + }, async () => runTool(async () => jsonResult(await getCaller().system.getSensorSource({})))) + server.registerTool('get_logs', { title: 'Read service logs', description: diff --git a/src/server/routers/biometrics.ts b/src/server/routers/biometrics.ts index 602677b6f..32eca35fa 100644 --- a/src/server/routers/biometrics.ts +++ b/src/server/routers/biometrics.ts @@ -26,6 +26,8 @@ import { pickMinBucketNonStillEpochs, } from '@/src/lib/movement' import { recordLegacyReferenceImport } from '@/src/biometrics/references/legacy' +import { REFERENCE_SAMPLE_METRICS, referenceAlgorithmSchema, referenceCapabilities, referenceDeviceSchema, referenceSampleMetricSchema } from '@/src/biometrics/references/contracts' +import { WATCH_MOTION_MAX_SERIES_DAYS, watchMotionSeries } from '@/src/biometrics/references/watch-motion' import { compareNightsToWatch, deviationNightSchema, @@ -89,7 +91,6 @@ function batchOverlaps(segments: StageSegment[]): string[] { } /** Plausible Apple Watch values per reference_samples metric, in breaths/min and ms. */ -export const REFERENCE_SAMPLE_RANGE = { breathing_rate: [4, 60], hrv_sdnn: [1, 500] } as const const DAY_MS = 24 * 60 * 60 * 1000 const WATCH_DEVIATION_DEFAULT_DAYS = 14 @@ -1265,10 +1266,14 @@ export const biometricsRouter = router({ }), /** - * Import externally measured breathing rate (breaths/min) or HRV SDNN (ms) - * samples, one metric per call (Apple Watch via a Health export). Stored in - * `reference_samples`, never in `vitals`, under the same first-write-wins - * rule as importReferenceVitals (unique on side, metric, timestamp, source). + * Import externally measured samples, one metric per call (Apple Watch via a + * Health export or the iOS app). Stored in `reference_samples`, never in + * `vitals`, under the same first-write-wins rule as importReferenceVitals + * (unique on side, metric, timestamp, source). `endTimestamp` marks a reading + * that covers a window; `device` and `algorithm` say what produced it. + * Unknown fields and metrics are rejected, so clients read + * getReferenceCapabilities before sending anything beyond the first two + * metrics and the bare sample shape. */ importReferenceSamples: publicProcedure .meta({ openapi: { method: 'POST', path: '/biometrics/reference-samples', protect: false, tags: ['Biometrics'] } }) @@ -1276,18 +1281,23 @@ export const biometricsRouter = router({ z.object({ side: sideSchema, source: z.enum(['apple_watch']), - metric: z.enum(['breathing_rate', 'hrv_sdnn']), + metric: referenceSampleMetricSchema, samples: z.array( z.object({ // Unix seconds in 2001..2100, as importReferenceVitals. timestamp: z.number().int().min(1_000_000_000).max(4_102_444_800), + endTimestamp: z.number().int().min(1_000_000_000).max(4_102_444_800).optional(), value: z.number().finite(), + device: referenceDeviceSchema.optional(), + algorithm: referenceAlgorithmSchema.optional(), }).strict() ).min(1).max(2000), }).strict().superRefine((input, ctx) => { - const [lo, hi] = REFERENCE_SAMPLE_RANGE[input.metric] + const [lo, hi] = REFERENCE_SAMPLE_METRICS[input.metric].range const index = input.samples.findIndex(s => s.value < lo || s.value > hi) if (index >= 0) ctx.addIssue({ code: 'custom', path: ['samples', index, 'value'], message: `${input.metric} must be within ${lo}..${hi}` }) + const window = input.samples.findIndex(s => s.endTimestamp !== undefined && (s.endTimestamp <= s.timestamp || s.endTimestamp - s.timestamp > 86400)) + if (window >= 0) ctx.addIssue({ code: 'custom', path: ['samples', window, 'endTimestamp'], message: 'endTimestamp must be after timestamp and within 24 hours of it' }) }) ) .output(z.object({ written: z.number() })) @@ -1298,7 +1308,10 @@ export const biometricsRouter = router({ source: input.source, metric: input.metric, timestamp: new Date(s.timestamp * 1000), + endTimestamp: s.endTimestamp === undefined ? null : new Date(s.endTimestamp * 1000), value: s.value, + device: s.device ?? null, + algorithm: s.algorithm ?? null, })) const inserted = biometricsDb.transaction((tx) => { const accepted = tx.insert(referenceSamples).values(rows).onConflictDoNothing().returning().all() @@ -1325,15 +1338,16 @@ export const biometricsRouter = router({ getReferenceSamples: publicProcedure .meta({ openapi: { method: 'GET', path: '/biometrics/reference-samples', protect: false, tags: ['Biometrics'] } }) .input(z.object({ side: sideSchema, startDate: z.date(), endDate: z.date(), - metric: z.enum(['breathing_rate', 'hrv_sdnn']), + metric: referenceSampleMetricSchema, limit: z.number().int().min(1).max(20000).default(5000), }).strict()) - .output(z.array(z.object({ timestamp: z.date(), value: z.number() }))) + .output(z.array(z.object({ timestamp: z.date(), endTimestamp: z.date().nullable(), value: z.number(), device: z.string().nullable(), algorithm: z.string().nullable() }))) .query(async ({ input }) => { if (!validateDateRange(input.startDate, input.endDate)) { throw new TRPCError({ code: 'BAD_REQUEST', message: 'startDate must be before or equal to endDate' }) } - const rows = await biometricsDb.select({ timestamp: referenceSamples.timestamp, value: referenceSamples.value }) + const rows = await biometricsDb.select({ timestamp: referenceSamples.timestamp, endTimestamp: referenceSamples.endTimestamp, value: referenceSamples.value, + device: referenceSamples.device, algorithm: referenceSamples.algorithm }) .from(referenceSamples) .where(and(eq(referenceSamples.side, input.side), eq(referenceSamples.metric, input.metric), gte(referenceSamples.timestamp, input.startDate), lte(referenceSamples.timestamp, input.endDate))) @@ -1341,6 +1355,39 @@ export const biometricsRouter = router({ return rows.reverse() }), + /** + * What this pod accepts from a wearable. Absent on older software, where a + * client must keep to breathing_rate and hrv_sdnn with bare samples. + */ + getReferenceCapabilities: publicProcedure + .meta({ openapi: { method: 'GET', path: '/biometrics/reference-capabilities', protect: false, tags: ['Biometrics'] } }) + .input(z.object({}).strict()) + .output(z.object({ + sampleFields: z.array(z.string()), + metrics: z.array(z.object({ metric: referenceSampleMetricSchema, unit: z.string(), min: z.number(), max: z.number() })), + })) + .query(() => referenceCapabilities()), + + /** + * Apple Watch wrist movement per minute for a side in [startDate, endDate] + * (at most 31 days), oldest first, from the watch-motion captures the iOS + * app posted. Minutes without Watch bins are absent: no data is not + * stillness. A comparison label only, never an input to staging or scoring. + */ + getWatchMotionSeries: publicProcedure + .meta({ openapi: { method: 'GET', path: '/biometrics/watch-motion-series', protect: false, tags: ['Biometrics'] } }) + .input(z.object({ side: sideSchema, startDate: z.date(), endDate: z.date() }).strict()) + .output(z.array(z.object({ timestamp: z.date(), movingSamples: z.number(), maxJerk: z.number(), meanVariance: z.number(), samples: z.number() }))) + .query(({ input }) => { + if (!validateDateRange(input.startDate, input.endDate)) { + throw new TRPCError({ code: 'BAD_REQUEST', message: 'startDate must be before or equal to endDate' }) + } + if (input.endDate.getTime() - input.startDate.getTime() > WATCH_MOTION_MAX_SERIES_DAYS * DAY_MS) { + throw new TRPCError({ code: 'BAD_REQUEST', message: `Select at most ${WATCH_MOTION_MAX_SERIES_DAYS} days` }) + } + return watchMotionSeries(biometricsDb, input.side, input.startDate, input.endDate) + }), + getReferenceVitals: publicProcedure .meta({ openapi: { method: 'GET', path: '/biometrics/reference-vitals', protect: false, tags: ['Biometrics'] } }) .output(z.array(z.object({ diff --git a/src/server/routers/settings.ts b/src/server/routers/settings.ts index 4a3739e4e..cd05459c0 100644 --- a/src/server/routers/settings.ts +++ b/src/server/routers/settings.ts @@ -6,6 +6,7 @@ import { deviceSettings, sideSettings, tapGestures } from '@/src/db/schema' import { eq, and } from 'drizzle-orm' import { isoDatetimeSchema, + natsSubjectPrefixSchema, sideSchema, tapTypeSchema, temperatureUnitSchema, @@ -41,6 +42,7 @@ const deviceSettingsSchema = z.object({ pumpStallAutoRecoveryEnabled: z.boolean(), pumpStallRecoveryRpm: z.number(), pumpStallRecoverySamples: z.number(), + natsSubjectPrefix: z.string().nullable().default(null), createdAt: timestampSchema, updatedAt: timestampSchema, }) @@ -196,6 +198,7 @@ export const settingsRouter = router({ pumpStallAutoRecoveryEnabled: false, pumpStallRecoveryRpm: 1500, pumpStallRecoverySamples: 3, + natsSubjectPrefix: null, createdAt: new Date(), updatedAt: new Date(), }, @@ -250,6 +253,8 @@ export const settingsRouter = router({ pumpStallAutoRecoveryEnabled: z.boolean().optional(), pumpStallRecoveryRpm: z.number().int().min(500).max(3000).optional(), pumpStallRecoverySamples: z.number().int().min(1).max(10).optional(), + // NATS sensor subject prefix. `null` = auto (`raw`, then `rawmem`). + natsSubjectPrefix: natsSubjectPrefixSchema.nullable().optional(), }) .strict() ) @@ -277,6 +282,7 @@ export const settingsRouter = router({ pumpStallAutoRecoveryEnabled: z.boolean(), pumpStallRecoveryRpm: z.number(), pumpStallRecoverySamples: z.number(), + natsSubjectPrefix: z.string().nullable().default(null), createdAt: z.date(), updatedAt: z.date(), })) @@ -302,6 +308,7 @@ export const settingsRouter = router({ // race a concurrent settings mutation. let priorPumpStallProtectionEnabled = false let bedConfigurationChanged = false + let natsSubjectPrefixChanged = false const updated = db.transaction((tx) => { // Fetch current settings to validate final computed state @@ -322,6 +329,8 @@ export const settingsRouter = router({ priorPumpStallProtectionEnabled = Boolean(current.pumpStallProtectionEnabled) bedConfigurationChanged = (input.bedMode !== undefined && input.bedMode !== current.bedMode) || (input.unusedZoneMode !== undefined && input.unusedZoneMode !== current.unusedZoneMode) + natsSubjectPrefixChanged = input.natsSubjectPrefix !== undefined + && input.natsSubjectPrefix !== current.natsSubjectPrefix // Compute final state after update const finalRebootDaily = input.rebootDaily ?? current.rebootDaily @@ -455,6 +464,19 @@ export const settingsRouter = router({ await (await getJobManager()).applyBedConfiguration() } + // The in-process sensor stream re-subscribes now. The Python biometrics + // modules read the prefix at startup, so they need a unit restart + // (health.restartService) to follow. + if (natsSubjectPrefixChanged) { + try { + const { restartNatsFrameSource } = await import('@/src/streaming/piezoStream') + await restartNatsFrameSource() + } + catch (e) { + console.error('NATS frame source restart failed:', e) + } + } + return updated } catch (error) { diff --git a/src/server/routers/system.ts b/src/server/routers/system.ts index 48e51b9ba..153752e50 100644 --- a/src/server/routers/system.ts +++ b/src/server/routers/system.ts @@ -17,7 +17,7 @@ import { type FirmwareSignals, } from '@/src/lib/firmwareGeneration' import { getServerPerformance } from '@/src/lib/serverPerformance' -import { getSensorFrameTimes } from '@/src/streaming/piezoStream' +import { getNatsSourceStats, getSensorFrameTimes, readNatsSubjectPrefix } from '@/src/streaming/piezoStream' import { isWanBlocked, setInternetAccess } from '@/src/hardware/internetAccess' const execFileAsync = promisify(execFile) @@ -104,6 +104,31 @@ export function _resetFirmwareSignalsForTest(): void { const SENSOR_TRANSPORT_OVERRIDES = ['raw', 'nats'] as const +/** The `nats` block of `getSensorSource`: what the reader is set to, subscribes to, and sees published. */ +async function natsReaderDiagnostics() { + const configuredPrefix = await readNatsSubjectPrefix().catch(() => null) + // Null only for the moment a prefix change re-subscribes. + const stats = getNatsSourceStats() + const subjects = stats?.subjects ?? [] + const now = Date.now() + return { + mode: configuredPrefix === null ? 'auto' as const : 'pinned' as const, + configuredPrefix, + subscribedSubjects: subjects, + sources: { ...stats?.sources }, + messages: stats?.messages ?? 0, + decodeFailures: stats?.decodeFailures ?? 0, + ignoredMessages: stats?.ignoredMessages ?? 0, + observedPrefixes: Object.entries(stats?.observedPrefixes ?? {}).map(([prefix, seen]) => ({ + prefix, + subscribed: subjects.includes(`${prefix}.sens.>`), + messages: seen.messages, + lastSeenAtMs: seen.lastSeenMs, + lastSeenAgeMs: Math.max(0, now - seen.lastSeenMs), + })), + } +} + /** * Run `df -B1 ` and return the parsed totals, or null if the mount * is missing / df is unavailable (e.g. macOS dev). @@ -634,9 +659,11 @@ export const systemRouter = router({ /** * Which sensor-frame transport this pod's firmware provides, and which one - * the core's stream actually selected at startup. Read-only: selection - * happens once per process (see `docs/nats-frame-readers.md`), so this - * exists to make the choice visible in Settings → Device without a shell. + * the core's stream actually selected at startup. Selection happens once + * per process (see `docs/nats-frame-readers.md`), so this exists to make the + * choice visible in Settings → Device without a shell. On NATS, `nats` adds + * the subject prefixes in use and every prefix seen publishing, so a wrong + * prefix is fixable through settings.natsSubjectPrefix. */ getSensorSource: publicProcedure .meta({ openapi: { method: 'GET', path: '/system/sensor-source', protect: false, tags: ['System'] } }) @@ -672,6 +699,28 @@ export const systemRouter = router({ firstFrameMs: z.number().nullable(), uptimeSeconds: z.number(), }), + /** The NATS reader's subject prefixes and traffic; null unless NATS is the selected source. */ + nats: z.object({ + /** `auto` reads `raw` and `rawmem` (raw wins per subject); `pinned` reads only configuredPrefix. */ + mode: z.enum(['auto', 'pinned']), + /** settings.natsSubjectPrefix; null in auto mode. */ + configuredPrefix: z.string().nullable(), + subscribedSubjects: z.array(z.string()), + /** Prefix feeding each sensor subject, e.g. `{ "sens.piezo": "rawmem" }`. */ + sources: z.record(z.string(), z.string()), + messages: z.number(), + decodeFailures: z.number(), + /** Messages dropped because a higher-priority prefix feeds that subject. */ + ignoredMessages: z.number(), + /** Every prefix seen publishing `.sens.*`; `subscribed: false` means firmware publishes where we don't read. */ + observedPrefixes: z.array(z.object({ + prefix: z.string(), + subscribed: z.boolean(), + messages: z.number(), + lastSeenAtMs: z.number(), + lastSeenAgeMs: z.number(), + })), + }).nullable(), })) .query(async () => { const signals = await getFirmwareSignals() @@ -710,6 +759,7 @@ export const systemRouter = router({ firstFrameMs: perf.firstFrameMs, uptimeSeconds: perf.uptimeSeconds, }, + nats: perf.sensorSource === 'nats' ? await natsReaderDiagnostics() : null, } }), }) diff --git a/src/server/routers/tests/biometrics.referenceVitals.test.ts b/src/server/routers/tests/biometrics.referenceVitals.test.ts index 046f81acf..885852582 100644 --- a/src/server/routers/tests/biometrics.referenceVitals.test.ts +++ b/src/server/routers/tests/biometrics.referenceVitals.test.ts @@ -138,6 +138,16 @@ describe('biometrics reference vitals', () => { expect(db.select().from(vitals).all()).toHaveLength(0) }) + it('stores RMSSD independently of SDNN and breathing at the same timestamp', async () => { + for (const [metric, value] of [['hrv_rmssd', 32], ['hrv_sdnn', 48], ['breathing_rate', 14]] as const) { + const input = { side: 'left' as const, source: 'apple_watch' as const, metric, samples: [{ timestamp: T0, value }] } + expect(await caller.importReferenceSamples(input)).toEqual({ written: 1 }) + expect(await caller.importReferenceSamples(input)).toEqual({ written: 0 }) + expect(await caller.getReferenceSamples({ side: 'left', metric, startDate: new Date(T0 * 1000), endDate: new Date((T0 + MIN) * 1000) })).toEqual([{ timestamp: new Date(T0 * 1000), endTimestamp: null, value, device: null, algorithm: null }]) + } + expect(raw.prepare('SELECT metric, unit, value FROM reference_measurements WHERE metric = \'hrv_rmssd\'').all()).toEqual([{ metric: 'hrv_rmssd', unit: 'ms', value: 32 }]) + }) + it('is a no-op on repost and writes only new samples when a repost extends the night', async () => { await caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric: 'breathing_rate', samples: breathing }) expect(await caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric: 'breathing_rate', samples: breathing })).toEqual({ written: 0 }) @@ -149,17 +159,63 @@ describe('biometrics reference vitals', () => { }) it('rejects implausible values per metric, unknown metrics and millisecond timestamps', async () => { - const post = (metric: 'breathing_rate' | 'hrv_sdnn', timestamp: number, value: number) => + const post = (metric: 'breathing_rate' | 'hrv_sdnn' | 'hrv_rmssd', timestamp: number, value: number) => caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric, samples: [{ timestamp, value }] }) await expect(post('breathing_rate', T0, 2)).rejects.toThrow() await expect(post('breathing_rate', T0, 80)).rejects.toThrow() await expect(post('hrv_sdnn', T0, 0)).rejects.toThrow() await expect(post('hrv_sdnn', T0, 600)).rejects.toThrow() + await expect(post('hrv_rmssd', T0, 0)).rejects.toThrow() + await expect(post('hrv_rmssd', T0, 600)).rejects.toThrow() await expect(post('hrv_sdnn', T0 * 1000, 40)).rejects.toThrow() await expect(post('heart_rate' as never, T0, 60)).rejects.toThrow() expect(await post('hrv_sdnn', T0, 250)).toEqual({ written: 1 }) }) + it('keeps a window, its device and its algorithm, in the table and the provenance', async () => { + const windowed = { timestamp: T0, endTimestamp: T0 + 5 * MIN, value: 19, device: 'Watch8,2', algorithm: '3' } + expect(await caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric: 'hrv_rmssd', samples: [windowed] })).toEqual({ written: 1 }) + expect(await caller.getReferenceSamples({ side: 'left', metric: 'hrv_rmssd', startDate: new Date(T0 * 1000), endDate: new Date((T0 + MIN) * 1000) })).toEqual([ + { timestamp: new Date(T0 * 1000), endTimestamp: new Date((T0 + 5 * MIN) * 1000), value: 19, device: 'Watch8,2', algorithm: '3' }, + ]) + expect(raw.prepare('SELECT temporal_kind AS kind, unit, start_ms AS startMs, end_ms AS endMs FROM reference_measurements').get()) + .toEqual({ kind: 'interval', unit: 'ms', startMs: T0 * 1000, endMs: (T0 + 5 * MIN) * 1000 }) + expect(raw.prepare(`SELECT json_extract(original, '$.device') AS device, json_extract(original, '$.algorithm') AS algorithm FROM reference_measurements`).get()) + .toEqual({ device: 'Watch8,2', algorithm: '3' }) + }) + + it('leaves a bare sample without a window or device', async () => { + await caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric: 'breathing_rate', samples: [breathing[0]] }) + expect(await caller.getReferenceSamples({ side: 'left', metric: 'breathing_rate', startDate: new Date(T0 * 1000), endDate: new Date(T0 * 1000) })).toEqual([ + { timestamp: new Date(T0 * 1000), endTimestamp: null, value: 14.5, device: null, algorithm: null }, + ]) + }) + + it('stores every optional metric in its own unit and refuses it out of range', async () => { + const cases = [['blood_oxygen', 94, '%', 40], ['resting_heart_rate', 52, 'bpm', 300], ['skin_temperature', 35.2, 'degC', 60], ['breathing_disturbances', 3, 'events/h', 500]] as const + for (const [metric, value, unit, implausible] of cases) { + expect(await caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric, samples: [{ timestamp: T0, value }] })).toEqual({ written: 1 }) + expect(raw.prepare('SELECT unit, value FROM reference_measurements WHERE metric = ?').get(metric)).toEqual({ unit, value }) + await expect(caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric, samples: [{ timestamp: T0 + MIN, value: implausible }] })).rejects.toThrow() + } + }) + + it('refuses a window that ends before it starts or runs past a day', async () => { + const post = (endTimestamp: number) => caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric: 'hrv_rmssd', samples: [{ timestamp: T0, endTimestamp, value: 20 }] }) + await expect(post(T0)).rejects.toThrow() + await expect(post(T0 - MIN)).rejects.toThrow() + await expect(post(T0 + 86401)).rejects.toThrow() + expect(await post(T0 + 86400)).toEqual({ written: 1 }) + }) + + it('publishes what it accepts so clients need not assume', async () => { + const capabilities = await caller.getReferenceCapabilities({}) + expect(capabilities.sampleFields).toEqual(['endTimestamp', 'device', 'algorithm']) + expect(capabilities.metrics).toContainEqual({ metric: 'hrv_rmssd', unit: 'ms', min: 1, max: 500 }) + expect(capabilities.metrics).toContainEqual({ metric: 'blood_oxygen', unit: '%', min: 50, max: 100 }) + expect(capabilities.metrics.map(m => m.metric)).toEqual(expect.arrayContaining(['breathing_rate', 'hrv_sdnn'])) + }) + it('deletes the samples with their reference import', async () => { await caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric: 'hrv_sdnn', samples: [{ timestamp: T0, value: 48 }] }) const importId = db.select().from(referenceSamples).get()?.importId @@ -190,7 +246,7 @@ describe('biometrics reference vitals', () => { ] }) } await caller.importReferenceSamples({ side: 'left', source: 'apple_watch', metric: 'breathing_rate', samples: [{ timestamp: T0, value: 15 }] }) - expect(await caller.getReferenceSamples({ side: 'left', metric: 'hrv_sdnn', startDate: new Date(T0 * 1000), endDate: new Date((T0 + MIN) * 1000) })).toEqual([{ timestamp: new Date(T0 * 1000), value: 48 }]) + expect(await caller.getReferenceSamples({ side: 'left', metric: 'hrv_sdnn', startDate: new Date(T0 * 1000), endDate: new Date((T0 + MIN) * 1000) })).toEqual([{ timestamp: new Date(T0 * 1000), endTimestamp: null, value: 48, device: null, algorithm: null }]) expect((await caller.getReferenceSamples({ side: 'right', metric: 'hrv_sdnn', startDate: new Date(T0 * 1000), endDate: new Date((T0 + 3 * MIN) * 1000) })).map(r => r.value)).toEqual([48, 52]) }) it('rejects reversed ranges', async () => { diff --git a/src/server/routers/tests/biometrics.watchMotion.test.ts b/src/server/routers/tests/biometrics.watchMotion.test.ts new file mode 100644 index 000000000..b65f50c74 --- /dev/null +++ b/src/server/routers/tests/biometrics.watchMotion.test.ts @@ -0,0 +1,56 @@ +/** + * getWatchMotionSeries against a real in-memory biometrics.db, fed through the + * same parse/save path as POST /api/biometrics/watch-motion. + */ + +import path from 'node:path' +import Database from 'better-sqlite3' +import { drizzle } from 'drizzle-orm/better-sqlite3' +import { migrate } from 'drizzle-orm/better-sqlite3/migrator' +import { afterEach, beforeEach, expect, it, vi } from 'vitest' +import * as schema from '@/src/db/biometrics-schema' +import { parseWatchMotion, saveWatchMotion } from '@/src/biometrics/references/watch-motion' + +const dbHolder = vi.hoisted(() => ({ current: null as unknown })) +vi.mock('@/src/db', () => ({ + db: {}, + get biometricsDb() { return dbHolder.current }, +})) +vi.mock('@/src/server/routers/raw', () => ({ listRawFiles: vi.fn(async () => []) })) +vi.mock('@/src/lib/occupancy', () => ({ getOccupancy: vi.fn() })) + +const { biometricsRouter } = await import('@/src/server/routers/biometrics') +const caller = biometricsRouter.createCaller({}) + +const T = Date.UTC(2026, 10, 2, 6) +const M = 60_000 +let raw: Database.Database +let db: ReturnType> + +beforeEach(() => { + raw = new Database(':memory:') + db = drizzle(raw, { schema }) + migrate(db, { migrationsFolder: path.resolve(process.cwd(), 'src/db/biometrics-migrations') }) + dbHolder.current = db +}) +afterEach(() => raw.close()) + +it('returns per-minute Watch movement for the side, with gaps left out', async () => { + const starts = [T, T + 2000, T + 10 * M] + saveWatchMotion(db, 'left', parseWatchMotion(JSON.stringify({ + version: 'watch-motion-v1', recordedFromMs: T, recordedToMs: T + 11 * M, timeZone: 'UTC', utcOffsetSeconds: 0, sampleRateHz: 50, + binSeconds: 2, jerkThresholdGPerSecond: 1, device: 'test', + bins: { startMs: starts, samples: [100, 100, 50], meanMagnitude: [1, 1, 1], magnitudeVariance: [0.002, 0.004, 0.01], maxJerk: [0.5, 2, 1], movingSamples: [1, 3, 0] }, + }))) + const rows = await caller.getWatchMotionSeries({ side: 'left', startDate: new Date(T - M), endDate: new Date(T + 20 * M) }) + expect(rows).toEqual([ + { timestamp: new Date(T), movingSamples: 4, maxJerk: 2, meanVariance: 0.003, samples: 200 }, + { timestamp: new Date(T + 10 * M), movingSamples: 0, maxJerk: 1, meanVariance: 0.01, samples: 50 }, + ]) + expect(await caller.getWatchMotionSeries({ side: 'right', startDate: new Date(T), endDate: new Date(T + 20 * M) })).toEqual([]) +}) + +it('rejects inverted and over-long windows', async () => { + await expect(caller.getWatchMotionSeries({ side: 'left', startDate: new Date(T), endDate: new Date(T - 1) })).rejects.toThrow(/startDate/) + await expect(caller.getWatchMotionSeries({ side: 'left', startDate: new Date(T), endDate: new Date(T + 32 * 24 * 60 * M) })).rejects.toThrow(/31 days/) +}) diff --git a/src/server/routers/tests/settings.test.ts b/src/server/routers/tests/settings.test.ts index 65217f4e6..656c54c35 100644 --- a/src/server/routers/tests/settings.test.ts +++ b/src/server/routers/tests/settings.test.ts @@ -113,6 +113,8 @@ vi.mock('@/src/services/autoOffWatcher', () => autoOffMock) const autoOnMock = vi.hoisted(() => ({ restartAutoOnWatcher: vi.fn() })) vi.mock('@/src/services/autoOnWatcher', () => autoOnMock) vi.mock('@/src/homekit', () => homekitMock) +const streamMock = vi.hoisted(() => ({ restartNatsFrameSource: vi.fn(async () => true) })) +vi.mock('@/src/streaming/piezoStream', () => streamMock) vi.mock('@/src/db', () => ({ db: { select: dbMock.select, update: dbMock.update, transaction: dbMock.transaction }, biometricsDb: {}, @@ -139,6 +141,7 @@ beforeEach(() => { pumpStallMock.standDown.mockReset().mockResolvedValue(undefined) homekitMock.enable.mockReset().mockResolvedValue(undefined) homekitMock.disable.mockReset().mockResolvedValue(undefined) + streamMock.restartNatsFrameSource.mockReset().mockResolvedValue(true) dbState.topRowsQueue.length = 0 dbState.txRowsQueue.length = 0 dbState.txSetCalls.length = 0 @@ -1322,6 +1325,63 @@ it('persists solo setup and zone policy and applies the transition once', async expect(schedulerMock.jm.applyBedConfiguration).toHaveBeenCalledTimes(1) }) +describe('settings.updateDevice natsSubjectPrefix', () => { + it('pins a prefix and re-subscribes the sensor stream once', async () => { + const current = { ...baseDevice, natsSubjectPrefix: null } + const updated = { ...current, natsSubjectPrefix: 'rawmem' } + dbState.txRowsQueue.push([current], [updated]) + const result = await caller.updateDevice({ natsSubjectPrefix: 'rawmem' }) + expect(result.natsSubjectPrefix).toBe('rawmem') + expect(dbState.txSetCalls[0]).toMatchObject({ natsSubjectPrefix: 'rawmem' }) + expect(streamMock.restartNatsFrameSource).toHaveBeenCalledTimes(1) + }) + + it('returns to auto with null', async () => { + const current = { ...baseDevice, natsSubjectPrefix: 'rawmem' } + dbState.txRowsQueue.push([current], [{ ...current, natsSubjectPrefix: null }]) + const result = await caller.updateDevice({ natsSubjectPrefix: null }) + expect(result.natsSubjectPrefix).toBeNull() + expect(dbState.txSetCalls[0]).toMatchObject({ natsSubjectPrefix: null }) + expect(streamMock.restartNatsFrameSource).toHaveBeenCalledTimes(1) + }) + + it('leaves the stream alone when the prefix is unchanged or not sent', async () => { + const current = { ...baseDevice, natsSubjectPrefix: 'rawmem' } + dbState.txRowsQueue.push([current], [current], [current], [current]) + await caller.updateDevice({ natsSubjectPrefix: 'rawmem' }) + await caller.updateDevice({ ledDayBrightness: 50 }) + expect(streamMock.restartNatsFrameSource).not.toHaveBeenCalled() + }) + + it('keeps the saved setting when the stream restart fails', async () => { + const error = vi.spyOn(console, 'error').mockImplementation(() => {}) + streamMock.restartNatsFrameSource.mockRejectedValueOnce(new Error('connect refused')) + const current = { ...baseDevice, natsSubjectPrefix: null } + dbState.txRowsQueue.push([current], [{ ...current, natsSubjectPrefix: 'raw' }]) + await expect(caller.updateDevice({ natsSubjectPrefix: 'raw' })).resolves.toMatchObject({ natsSubjectPrefix: 'raw' }) + expect(error).toHaveBeenCalledWith('NATS frame source restart failed:', expect.any(Error)) + error.mockRestore() + }) + + it.each(['raw.sens', 'raw.*', '>', '*', '', 'raw mem', 'x'.repeat(33)])('rejects %j, which is not a single subject token', async (natsSubjectPrefix) => { + await expect(caller.updateDevice({ natsSubjectPrefix })).rejects.toThrow() + expect(dbMock.transaction).not.toHaveBeenCalled() + }) + + it('accepts letters, digits, underscore and dash up to 32 characters', async () => { + const prefix = 'Raw_mem-2'.padEnd(32, 'x') + const current = { ...baseDevice, natsSubjectPrefix: null } + dbState.txRowsQueue.push([current], [{ ...current, natsSubjectPrefix: prefix }]) + await expect(caller.updateDevice({ natsSubjectPrefix: prefix })).resolves.toMatchObject({ natsSubjectPrefix: prefix }) + }) + + it('reports auto from getAll for a row written before the column existed', async () => { + dbState.topRowsQueue.push([{ ...baseDevice }], [], []) + const result = await caller.getAll({}) + expect(result.device.natsSubjectPrefix).toBeNull() + }) +}) + it('rejects invalid sleeper setup and zone policy', async () => { await expect(caller.updateDevice({ bedMode: 'solo' as 'two' })).rejects.toThrow() await expect(caller.updateDevice({ unusedZoneMode: 'linked' as 'off' })).rejects.toThrow() diff --git a/src/server/routers/tests/system.test.ts b/src/server/routers/tests/system.test.ts index e537dd2ca..f3b1e3f4e 100644 --- a/src/server/routers/tests/system.test.ts +++ b/src/server/routers/tests/system.test.ts @@ -42,9 +42,16 @@ const fsPromisesMock = vi.hoisted(() => ({ const sensorMock = vi.hoisted(() => ({ frameTimes: {} as Record, perf: { sensorSource: 'pending' as 'pending' | 'raw' | 'nats', firstFrameMs: null as number | null, uptimeSeconds: 12 }, + natsPrefix: null as string | null | Error, + natsStats: null as Record | null, })) vi.mock('@/src/streaming/piezoStream', () => ({ getSensorFrameTimes: () => sensorMock.frameTimes, + getNatsSourceStats: () => sensorMock.natsStats, + readNatsSubjectPrefix: async () => { + if (sensorMock.natsPrefix instanceof Error) throw sensorMock.natsPrefix + return sensorMock.natsPrefix + }, })) vi.mock('@/src/lib/serverPerformance', () => ({ getServerPerformance: () => sensorMock.perf, @@ -978,6 +985,76 @@ describe('system.getSensorSource', () => { expect(r.stream.lastFrameAgeMs).toBeGreaterThan(0) }) + describe('nats block', () => { + beforeEach(() => { + routeExec(() => enoent) + fsPromisesMock.readFile.mockRejectedValue(enoent) + sensorMock.natsPrefix = null + sensorMock.natsStats = null + }) + + it('is null unless NATS is the selected source', async () => { + sensorMock.perf = { sensorSource: 'raw', firstFrameMs: 400, uptimeSeconds: 60 } + expect((await caller.getSensorSource({})).nats).toBeNull() + sensorMock.perf = { sensorSource: 'pending', firstFrameMs: null, uptimeSeconds: 5 } + expect((await caller.getSensorSource({})).nats).toBeNull() + }) + + it('reports auto mode, per-subject sources and a publishing prefix the reader does not subscribe to', async () => { + sensorMock.perf = { sensorSource: 'nats', firstFrameMs: 1800, uptimeSeconds: 900 } + const now = Date.now() + sensorMock.natsStats = { + messages: 40, + framesDecoded: 40, + decodeFailures: 1, + sources: { 'sens.piezo': 'raw', 'frz.temp': 'rawmem' }, + ignoredMessages: 7, + subjects: ['raw.sens.>', 'raw.frz.>', 'rawmem.sens.>', 'rawmem.frz.>'], + observedPrefixes: { + raw: { messages: 30, lastSeenMs: now - 1_000 }, + rawv2: { messages: 5, lastSeenMs: now - 2_000 }, + }, + } + + const { nats } = await caller.getSensorSource({}) + expect(nats).toMatchObject({ + mode: 'auto', + configuredPrefix: null, + subscribedSubjects: ['raw.sens.>', 'raw.frz.>', 'rawmem.sens.>', 'rawmem.frz.>'], + sources: { 'sens.piezo': 'raw', 'frz.temp': 'rawmem' }, + messages: 40, + decodeFailures: 1, + ignoredMessages: 7, + observedPrefixes: [ + { prefix: 'raw', subscribed: true, messages: 30, lastSeenAtMs: now - 1_000 }, + { prefix: 'rawv2', subscribed: false, messages: 5, lastSeenAtMs: now - 2_000 }, + ], + }) + expect(nats?.observedPrefixes[1].lastSeenAgeMs).toBeGreaterThanOrEqual(2_000) + }) + + it('reports a pinned prefix, and empty traffic while the reader re-subscribes', async () => { + sensorMock.perf = { sensorSource: 'nats', firstFrameMs: 1800, uptimeSeconds: 900 } + sensorMock.natsPrefix = 'rawmem' + expect((await caller.getSensorSource({})).nats).toEqual({ + mode: 'pinned', + configuredPrefix: 'rawmem', + subscribedSubjects: [], + sources: {}, + messages: 0, + decodeFailures: 0, + ignoredMessages: 0, + observedPrefixes: [], + }) + }) + + it('reads auto when the setting cannot be read', async () => { + sensorMock.perf = { sensorSource: 'nats', firstFrameMs: 1800, uptimeSeconds: 900 } + sensorMock.natsPrefix = new Error('database locked') + expect((await caller.getSensorSource({})).nats).toMatchObject({ mode: 'auto', configuredPrefix: null }) + }) + }) + it('classifies the old frank.sh shim pod and surfaces the env override', async () => { routeExec((file, args) => { if (file === 'systemctl' && args[0] === 'show') return 'not-found\n' diff --git a/src/server/validation-schemas.ts b/src/server/validation-schemas.ts index c8cd98d31..2872221fa 100644 --- a/src/server/validation-schemas.ts +++ b/src/server/validation-schemas.ts @@ -4,6 +4,7 @@ */ import { z } from 'zod' import type { Condition as AutomationCondition, Expr as AutomationExpr } from '@/src/automation/types' +import { NATS_SUBJECT_PREFIX_PATTERN } from '@/src/lib/natsSubjectPrefix' /** * Time string validation (HH:MM format in 24-hour time) @@ -148,6 +149,11 @@ export const timezoneSchema = z.string().refine((tz) => { } }, 'Must be a valid IANA timezone, e.g. "America/Los_Angeles"') +/** A single NATS subject token (letters, digits, `_`, `-`; up to 32 characters). */ +export const natsSubjectPrefixSchema = z + .string() + .regex(NATS_SUBJECT_PREFIX_PATTERN, 'NATS subject prefix must be 1-32 letters, digits, "_" or "-" (no dots or wildcards)') + /** * ISO 8601 datetime string validation */ diff --git a/src/streaming/natsFrameSource.ts b/src/streaming/natsFrameSource.ts index 53e902c85..d69ce30d0 100644 --- a/src/streaming/natsFrameSource.ts +++ b/src/streaming/natsFrameSource.ts @@ -8,7 +8,7 @@ * those pods the file tailer finds nothing, so the WS live stream, the * `latestCapSenseSnapshot`, `cap_sense_frames`, and the `cap.*` automation * signals all stay empty. This module is the second `.RAW` consumer: it - * subscribes to the firmware's `raw.sens.>` / `raw.frz.>` subjects, decodes each + * subscribes to the firmware's sensor and freezer subjects, decodes each * message through the SAME decode path the tailer uses, and hands the decoded * frame back to `piezoStream` so every downstream consumer is fed identically. * @@ -23,6 +23,7 @@ import * as net from 'node:net' // Type-only import: the runtime client is loaded lazily in `connectNats` so pods // and tests that never select NATS don't pull in the transport. import type { NatsConnection } from '@nats-io/transport-node' +import { isNatsSubjectPrefix } from '@/src/lib/natsSubjectPrefix' // --------------------------------------------------------------------------- // Configuration @@ -32,12 +33,40 @@ const NATS_HOST = process.env.PIEZO_NATS_HOST ?? '127.0.0.1' const NATS_PORT = Number(process.env.PIEZO_NATS_PORT ?? 4222) /** - * Subjects the firmware publishes sensor frames on. `raw.log` is intentionally - * excluded — its payload is multiple concatenated CBOR maps (unlike the single - * map every sensor subject carries) and it has no live consumer; sp-status reads - * it as a JetStream point-fetch instead. + * Firmware publishes sensor frames under `raw`, or `rawmem` since the EmmcWear + * firmware (rat_version 4b7552d5). Prefixes are in priority order and each + * sensor subject (`sens.piezo`, `frz.temp`, ...) is fed by exactly one of them: + * a `raw` subject always wins, and a fallback prefix feeds a subject only when + * no higher-priority prefix is delivering it and the startup grace has passed. + * A prefix that goes silent on a subject for a minute gives the subject up, so + * one stray message can't pin a subject to a prefix that no longer feeds it. + * Pods that publish `raw` therefore read exactly what they read before `rawmem` + * existed, and a firmware publishing both never double-feeds. `.log` is + * intentionally excluded — its payload is multiple concatenated CBOR maps + * (unlike the single map every sensor subject carries) and it has no live + * consumer; sp-status reads it as a JetStream point-fetch instead. + * + * This list is the auto mode. `device_settings.nats_subject_prefix` pins both + * readers to a single prefix instead, for firmware that publishes elsewhere. */ -export const SUBSCRIBE_SUBJECTS = ['raw.sens.>', 'raw.frz.>'] as const +export const SUBJECT_PREFIXES = ['raw', 'rawmem'] as const + +export function subscribeSubjects(prefixes: readonly string[]): string[] { + return prefixes.flatMap(prefix => [`${prefix}.sens.>`, `${prefix}.frz.>`]) +} +export const SUBSCRIBE_SUBJECTS = subscribeSubjects(SUBJECT_PREFIXES) + +/** Prefixes to read for a configured setting: the pinned one, else auto. An invalid stored value reads as auto. */ +export function natsSubjectPrefixes(configured: string | null | undefined): readonly string[] { + return isNatsSubjectPrefix(configured) ? [configured] : SUBJECT_PREFIXES +} + +// Diagnostic-only: records which prefixes publish sensor subjects at all, so a +// firmware that moves to a prefix we don't read shows up in getSensorSource. +// Messages here are counted, never decoded or fed to consumers. +const DISCOVERY_SUBJECT = '*.sens.>' +// Bounds the map if something publishes under many prefixes. +const MAX_OBSERVED_PREFIXES = 16 // Never give up reconnecting. On a NATS-only pod there is no `.RAW` file to fall // back to, so a dropped connection must self-heal rather than strand the stream; @@ -49,6 +78,11 @@ const MAX_RECONNECT_ATTEMPTS = -1 const RECONNECT_TIME_WAIT_MS = 2_000 const PROBE_TIMEOUT_MS = 2_000 const PROBE_MAX_GREETING_BYTES = 16 * 1024 +// The slowest sensor subjects publish at 0.1 Hz, so 30 s gives a higher-priority +// prefix three chances to claim a subject before a fallback prefix may feed it. +const FALLBACK_GRACE_MS = 30_000 +// Six periods of the slowest subjects: an owner silent this long gives the subject up. +const OWNER_STALE_MS = 60_000 // A live pod ticks capSense at 2 Hz, so a subscription silent this long past // startup is worth surfacing once — a health signal, not a source-selection input. const SILENCE_WARN_MS = 60_000 @@ -118,6 +152,14 @@ export interface NatsFrameSourceStats { framesDecoded: number /** Messages whose payload decoded to zero frames (malformed / typeless). */ decodeFailures: number + /** Prefix feeding each sensor subject, e.g. `{ 'sens.piezo': 'rawmem' }`. */ + sources: Record + /** Messages dropped because another prefix owns the subject or the grace is running. */ + ignoredMessages: number + /** Subjects the frame subscriptions cover, e.g. `['raw.sens.>', 'raw.frz.>']`. */ + subjects: string[] + /** Every prefix seen publishing `.sens.*`, read or not (discovery only). */ + observedPrefixes: Record } export interface NatsFrameSourceOptions { @@ -138,6 +180,13 @@ export interface NatsFrameSourceOptions { onClose?: (err?: Error) => void host?: string port?: number + /** + * Prefixes to read in priority order (see `natsSubjectPrefixes`). Defaults to + * the auto list; a single pinned prefix has nothing to wait for, so no grace. + */ + prefixes?: readonly string[] + /** Override the fallback-prefix startup grace (tests). */ + fallbackGraceMs?: number } export interface NatsFrameSourceHandle { @@ -170,21 +219,53 @@ export async function startNatsFrameSource( ): Promise { const host = opts.host ?? NATS_HOST const port = opts.port ?? NATS_PORT - const stats: NatsFrameSourceStats = { messages: 0, framesDecoded: 0, decodeFailures: 0 } + const fallbackGraceMs = opts.fallbackGraceMs ?? FALLBACK_GRACE_MS + const priority: readonly string[] = opts.prefixes ?? SUBJECT_PREFIXES + const subjects = subscribeSubjects(priority) + const stats: NatsFrameSourceStats = { + messages: 0, + framesDecoded: 0, + decodeFailures: 0, + sources: {}, + ignoredMessages: 0, + subjects, + observedPrefixes: {}, + } let stopped = false let loggedDecodeFailure = false + let loggedIgnored = false + const ownerLastAt: Record = {} const nc = await connectNats(host, port) + const subscribedAt = Date.now() console.log('[natsSource] connected to NATS at %s:%d — subscribing %s', - host, port, SUBSCRIBE_SUBJECTS.join(', ')) + host, port, subjects.join(', ')) - const handleMessage = (err: Error | null, data: Uint8Array): void => { + const handleMessage = (err: Error | null, subject: string, data: Uint8Array): void => { if (err) { // Per-subscription errors (e.g. permission) — surface, keep the others live. console.warn('[natsSource] subscription error:', err.message) return } + const dot = subject.indexOf('.') + const prefix = subject.slice(0, dot) + const tail = subject.slice(dot + 1) + const rank = priority.indexOf(prefix) + const owner = stats.sources[tail] + const now = Date.now() + if (owner !== undefined && rank > priority.indexOf(owner) && now - ownerLastAt[tail] < OWNER_STALE_MS) { + stats.ignoredMessages += 1 + if (!loggedIgnored) { + loggedIgnored = true + console.warn('[natsSource] ignoring %s — %s.%s already feeds it', subject, owner, tail) + } + return + } + if (rank > 0 && now - subscribedAt < fallbackGraceMs) { + stats.ignoredMessages += 1 + return + } stats.messages += 1 // View, not copy — cbor-x reads a Uint8Array/Buffer directly. const payload = Buffer.from(data.buffer, data.byteOffset, data.byteLength) @@ -204,6 +285,11 @@ export async function startNatsFrameSource( } return } + if (owner !== prefix) { + stats.sources[tail] = prefix + console.log('[natsSource] reading %s from %s', tail, subject) + } + ownerLastAt[tail] = now for (const frame of frames) { stats.framesDecoded += 1 try { @@ -213,14 +299,34 @@ export async function startNatsFrameSource( } } - SUBSCRIBE_SUBJECTS.forEach(subject => - nc.subscribe(subject, { callback: (err, msg) => handleMessage(err, msg.data) })) + subjects.forEach(subject => + nc.subscribe(subject, { callback: (err, msg) => handleMessage(err, msg.subject, msg.data) })) + + nc.subscribe(DISCOVERY_SUBJECT, { + callback: (err, msg) => { + if (err) return + const prefix = msg.subject.slice(0, msg.subject.indexOf('.')) + const seen = stats.observedPrefixes[prefix] + if (seen) { + seen.messages += 1 + seen.lastSeenMs = Date.now() + } + else if (Object.keys(stats.observedPrefixes).length < MAX_OBSERVED_PREFIXES) { + stats.observedPrefixes[prefix] = { messages: 1, lastSeenMs: Date.now() } + } + }, + }) // Surface a persistently silent subscription once (health signal only). const silenceTimer = setTimeout(() => { if (!stopped && stats.messages === 0) { console.warn('[natsSource] no frames received %ds after subscribing — sensor idle or firmware not publishing', Math.round(SILENCE_WARN_MS / 1000)) + const unread = Object.keys(stats.observedPrefixes).filter(prefix => !priority.includes(prefix)) + if (unread.length > 0) { + console.warn('[natsSource] firmware publishes under %s, which this reader does not subscribe to — set natsSubjectPrefix to read it', + unread.join(', ')) + } } }, SILENCE_WARN_MS) // Don't let the health timer hold the process open on its own. diff --git a/src/streaming/piezoStream.ts b/src/streaming/piezoStream.ts index ab4eed8d0..fdf463535 100644 --- a/src/streaming/piezoStream.ts +++ b/src/streaming/piezoStream.ts @@ -53,8 +53,11 @@ import { flushCapFrameWindows, recordCapFrame, resetCapFrameWindows } from './ca import { capSideChannels, capSideStatus } from './normalizeFrame' import { discoverSensorSource } from './sensorSourceDiscovery' import { recordSensorSource, recordFirstSensorFrame } from '@/src/lib/serverPerformance' -import { natsReachable, startNatsFrameSource } from './natsFrameSource' -import type { NatsFrameSourceHandle } from './natsFrameSource' +import { natsReachable, natsSubjectPrefixes, startNatsFrameSource } from './natsFrameSource' +import type { NatsFrameSourceHandle, NatsFrameSourceStats } from './natsFrameSource' +import { db } from '@/src/db' +import { deviceSettings } from '@/src/db/schema' +import { isNatsSubjectPrefix } from '@/src/lib/natsSubjectPrefix' import { ALLOWED_HOSTS_ENV, isHostAllowed, parseAllowedHosts } from '@/src/lib/hostAllowlist' // --------------------------------------------------------------------------- // Configuration @@ -105,6 +108,8 @@ function createStreamState() { streamingInterval: null as ReturnType | null, // Exactly one live source is owned by this server. natsSource: null as NatsFrameSourceHandle | null, + // Tail of the serialized natsSubjectPrefix restarts. + natsRestart: null as Promise | null, rawStop: null as (() => Promise) | null, warnedUnknownTypes: new Set(), // undefined subscribes the client to every sensor type. @@ -955,10 +960,29 @@ async function selectAndStartSource(expectedServer: WebSocketServer): Promise { + const [row] = await db.select({ prefix: deviceSettings.natsSubjectPrefix }).from(deviceSettings).limit(1) + return isNatsSubjectPrefix(row?.prefix) ? row.prefix : null +} + +/** Prefixes to subscribe; an unreadable setting reads as auto. */ +async function loadNatsSubjectPrefixes(): Promise { + try { + return natsSubjectPrefixes(await readNatsSubjectPrefix()) + } + catch (err) { + console.warn('[sensorStream] could not read natsSubjectPrefix, reading the default prefixes:', err) + return natsSubjectPrefixes(null) + } +} + /** Connect the loopback-NATS source, feeding decoded frames into the shared dispatch. */ async function startNatsSource(expectedServer: WebSocketServer): Promise { try { + const prefixes = await loadNatsSubjectPrefixes() const source = await startNatsFrameSource({ + prefixes, decode: decodeSensorFrames, onFrame: (frame) => { if (streamState.wss === expectedServer) dispatchSensorFrame(frame) }, onReady: () => console.log('[sensorStream] NATS frame source active'), @@ -982,6 +1006,38 @@ async function startNatsSource(expectedServer: WebSocketServer): Promise { + const run = async (): Promise => { + const server = streamState.wss + const current = streamState.natsSource + if (!server || !current) return false + streamState.natsSource = null + try { + await current.stop() + } + catch { /* already closing */ } + if (await startNatsSource(server)) return true + // Reconnect failed: hand back to the startup selection loop, which retries. + void selectAndStartSource(server) + return false + } + const next = (streamState.natsRestart ?? Promise.resolve(false)).then(run, run) + streamState.natsRestart = next + return next +} + +/** Live counters of the NATS reader, or null when it isn't running. */ +export function getNatsSourceStats(): NatsFrameSourceStats | null { + return streamState.natsSource?.stats ?? null +} + /** * Fan one decoded sensor frame out to every downstream consumer: subscribed WS * clients, in-process server-side listeners (frzHealth), the live capSense diff --git a/src/streaming/tests/natsFrameSource.test.ts b/src/streaming/tests/natsFrameSource.test.ts index 404cc145a..60703fbd5 100644 --- a/src/streaming/tests/natsFrameSource.test.ts +++ b/src/streaming/tests/natsFrameSource.test.ts @@ -15,7 +15,7 @@ import fixtures from './fixtures/natsFrames.json' // drive by hand. State lives in vi.hoisted so the (hoisted) vi.mock factory can // see it and the tests can push messages / inspect connect options. const nats = vi.hoisted(() => { - interface Sub { subject: string, cb: (err: Error | null, msg: { data: Uint8Array }) => void } + interface Sub { subject: string, cb: (err: Error | null, msg: { subject: string, data: Uint8Array }) => void } const state = { subs: [] as Sub[], connectOpts: null as Record | null, @@ -54,7 +54,7 @@ const nats = vi.hoisted(() => { vi.mock('@nats-io/transport-node', () => ({ connect: nats.connect })) -import { natsReachable, startNatsFrameSource, SUBSCRIBE_SUBJECTS } from '../natsFrameSource' +import { natsReachable, natsSubjectPrefixes, startNatsFrameSource, SUBJECT_PREFIXES } from '../natsFrameSource' import { __test__ as piezo } from '../piezoStream' const decode = piezo.decodeSensorFrames @@ -65,14 +65,26 @@ function fixture(subject: string): Buffer { return Buffer.from(f.payloadB64, 'base64') } -/** Deliver a payload to whichever subscription's wildcard covers `subject`. */ +/** NATS wildcard match: `*` is one token, a trailing `>` is one or more. */ +function matches(pattern: string, subject: string): boolean { + const p = pattern.split('.') + const t = subject.split('.') + for (let i = 0; i < p.length; i++) { + if (p[i] === '>') return t.length > i + if (i >= t.length || (p[i] !== '*' && p[i] !== t[i])) return false + } + return p.length === t.length +} + +/** Deliver a payload to every subscription whose wildcard covers `subject`, like a NATS server. */ function deliver(subject: string, payload: Uint8Array): void { - const prefix = (s: string) => s.endsWith('.>') ? s.slice(0, -1) : `${s}.` - const sub = nats.state.subs.find(s => subject.startsWith(prefix(s.subject))) - if (!sub) throw new Error(`no subscription matches ${subject}`) - sub.cb(null, { data: payload }) + const subs = nats.state.subs.filter(s => matches(s.subject, subject)) + if (subs.length === 0) throw new Error(`no subscription matches ${subject}`) + for (const sub of subs) sub.cb(null, { subject, data: payload }) } +const DISCOVERY = '*.sens.>' + describe('natsReachable', () => { const servers: net.Server[] = [] afterEach(() => { @@ -146,8 +158,9 @@ describe('startNatsFrameSource', () => { it('subscribes to the sensor subjects with infinite reconnect', async () => { const onFrame = vi.fn() - await startNatsFrameSource({ decode, onFrame }) - expect(nats.state.subs.map(s => s.subject)).toEqual([...SUBSCRIBE_SUBJECTS]) + const src = await startNatsFrameSource({ decode, onFrame }) + expect(nats.state.subs.map(s => s.subject)).toEqual(['raw.sens.>', 'raw.frz.>', 'rawmem.sens.>', 'rawmem.frz.>', DISCOVERY]) + expect(src.stats.subjects).toEqual(['raw.sens.>', 'raw.frz.>', 'rawmem.sens.>', 'rawmem.frz.>']) expect(nats.state.connectOpts).toMatchObject({ servers: '127.0.0.1:4222', maxReconnectAttempts: -1, @@ -155,11 +168,6 @@ describe('startNatsFrameSource', () => { }) }) - it('excludes raw.log from the live subscriptions', () => { - expect(SUBSCRIBE_SUBJECTS).toEqual(['raw.sens.>', 'raw.frz.>']) - expect(SUBSCRIBE_SUBJECTS as readonly string[]).not.toContain('raw.log') - }) - it('decodes a capSense fixture through to onFrame and counts it', async () => { const onFrame = vi.fn() const src = await startNatsFrameSource({ decode, onFrame }) @@ -168,7 +176,54 @@ describe('startNatsFrameSource', () => { const frame = onFrame.mock.calls[0][0] expect(frame.type).toBe('capSense') expect(frame.left).toMatchObject({ out: 3288, status: 'good' }) - expect(src.stats).toMatchObject({ messages: 1, framesDecoded: 1, decodeFailures: 0 }) + expect(src.stats).toMatchObject({ messages: 1, framesDecoded: 1, decodeFailures: 0, sources: { 'sens.capsense': 'raw' }, ignoredMessages: 0 }) + }) + + it('reads only a pinned prefix, with no startup grace to wait out', async () => { + const onFrame = vi.fn() + vi.spyOn(console, 'log').mockImplementation(() => {}) + const src = await startNatsFrameSource({ decode, onFrame, prefixes: ['rawmem'] }) + + expect(nats.state.subs.map(s => s.subject)).toEqual(['rawmem.sens.>', 'rawmem.frz.>', DISCOVERY]) + deliver('rawmem.sens.bedtemp', fixture('raw.sens.bedtemp')) + expect(() => deliver('raw.frz.health', fixture('raw.frz.health'))).toThrow('no subscription matches') + deliver('raw.sens.bedtemp', fixture('raw.sens.bedtemp')) + + expect(onFrame.mock.calls.map(([frame]) => frame.type)).toEqual(['bedTemp']) + expect(src.stats).toMatchObject({ messages: 1, sources: { 'sens.bedtemp': 'rawmem' }, ignoredMessages: 0 }) + }) + + it('records every prefix publishing sensor subjects without feeding frames from discovery', async () => { + vi.useFakeTimers({ toFake: ['Date'] }) + try { + vi.setSystemTime(10_000) + const onFrame = vi.fn() + const decodeSpy = vi.fn(decode) + vi.spyOn(console, 'log').mockImplementation(() => {}) + const src = await startNatsFrameSource({ decode: decodeSpy, onFrame, prefixes: ['raw'] }) + + deliver('raw.sens.bedtemp', fixture('raw.sens.bedtemp')) + deliver('rawmem.sens.bedtemp', fixture('raw.sens.bedtemp')) + vi.setSystemTime(12_000) + deliver('rawmem.sens.piezo', fixture('raw.sens.piezo')) + + expect(onFrame).toHaveBeenCalledTimes(1) + expect(decodeSpy).toHaveBeenCalledTimes(1) + expect(src.stats.messages).toBe(1) + expect(src.stats.observedPrefixes).toEqual({ + raw: { messages: 1, lastSeenMs: 10_000 }, + rawmem: { messages: 2, lastSeenMs: 12_000 }, + }) + } + finally { + vi.useRealTimers() + } + }) + + it('bounds how many publishing prefixes discovery remembers', async () => { + const src = await startNatsFrameSource({ decode, onFrame: vi.fn(), prefixes: ['raw'] }) + for (let i = 0; i < 20; i++) deliver(`p${i}.sens.x`, new Uint8Array()) + expect(Object.keys(src.stats.observedPrefixes)).toHaveLength(16) }) it('applies the piezo int32 conversion (2000-byte string → 500 samples)', async () => { @@ -182,11 +237,102 @@ describe('startNatsFrameSource', () => { expect(frame.left1.every((n: number) => Number.isInteger(n))).toBe(true) }) - it('routes a freezer-subject fixture through the raw.frz.> subscription', async () => { + it.each(['raw', 'rawmem'])('routes sensor and freezer frames on %s', async (prefix) => { const onFrame = vi.fn() - await startNatsFrameSource({ decode, onFrame }) - deliver('raw.frz.health', fixture('raw.frz.health')) - expect(onFrame.mock.calls[0][0].type).toBe('frzHealth') + vi.spyOn(console, 'log').mockImplementation(() => {}) + await startNatsFrameSource({ decode, onFrame, fallbackGraceMs: 0 }) + deliver(`${prefix}.sens.bedtemp`, fixture('raw.sens.bedtemp')) + deliver(`${prefix}.frz.health`, fixture('raw.frz.health')) + expect(onFrame.mock.calls.map(([frame]) => frame.type)).toEqual(['bedTemp', 'frzHealth']) + expect(() => deliver(`${prefix}.log`, new Uint8Array())).toThrow('no subscription matches') + }) + + it('holds rawmem back during the startup grace so raw can claim each subject', async () => { + const onFrame = vi.fn() + vi.spyOn(console, 'log').mockImplementation(() => {}) + const src = await startNatsFrameSource({ decode, onFrame }) + + deliver('rawmem.sens.bedtemp', fixture('raw.sens.bedtemp')) + + expect(onFrame).not.toHaveBeenCalled() + expect(src.stats).toMatchObject({ messages: 0, sources: {}, ignoredMessages: 1 }) + }) + + it('feeds each subject from raw when raw publishes it, and from rawmem only otherwise', async () => { + const onFrame = vi.fn() + vi.spyOn(console, 'log').mockImplementation(() => {}) + const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) + const src = await startNatsFrameSource({ decode, onFrame, fallbackGraceMs: 0 }) + + const log = vi.mocked(console.log) + deliver('raw.sens.bedtemp', fixture('raw.sens.bedtemp')) + deliver('rawmem.sens.bedtemp', fixture('raw.sens.bedtemp')) + deliver('raw.sens.bedtemp', fixture('raw.sens.bedtemp')) + deliver('rawmem.sens.bedtemp', fixture('raw.sens.bedtemp')) + deliver('rawmem.frz.health', fixture('raw.frz.health')) + + expect(onFrame.mock.calls.map(([frame]) => frame.type)).toEqual(['bedTemp', 'bedTemp', 'frzHealth']) + expect(src.stats).toMatchObject({ + messages: 3, + sources: { 'sens.bedtemp': 'raw', 'frz.health': 'rawmem' }, + ignoredMessages: 2, + }) + expect(log.mock.calls.filter(([message]) => message === '[natsSource] reading %s from %s')).toHaveLength(2) + expect(warn).toHaveBeenCalledOnce() + expect(warn).toHaveBeenCalledWith('[natsSource] ignoring %s — %s.%s already feeds it', 'rawmem.sens.bedtemp', 'raw', 'sens.bedtemp') + }) + + it('hands a subject back to raw when raw starts publishing it', async () => { + const onFrame = vi.fn() + vi.spyOn(console, 'log').mockImplementation(() => {}) + vi.spyOn(console, 'warn').mockImplementation(() => {}) + const src = await startNatsFrameSource({ decode, onFrame, fallbackGraceMs: 0 }) + + deliver('rawmem.sens.bedtemp', fixture('raw.sens.bedtemp')) + deliver('raw.sens.bedtemp', fixture('raw.sens.bedtemp')) + deliver('rawmem.sens.bedtemp', fixture('raw.sens.bedtemp')) + + expect(onFrame).toHaveBeenCalledTimes(2) + expect(src.stats).toMatchObject({ sources: { 'sens.bedtemp': 'raw' }, ignoredMessages: 1 }) + }) + + it('lets rawmem take a subject over once raw has been silent on it for a minute', async () => { + vi.useFakeTimers({ toFake: ['Date'] }) + try { + const onFrame = vi.fn() + const log = vi.spyOn(console, 'log').mockImplementation(() => {}) + vi.spyOn(console, 'warn').mockImplementation(() => {}) + const src = await startNatsFrameSource({ decode, onFrame, fallbackGraceMs: 0 }) + + deliver('raw.sens.piezo', fixture('raw.sens.piezo')) + vi.advanceTimersByTime(59_000) + deliver('rawmem.sens.piezo', fixture('raw.sens.piezo')) + expect(onFrame).toHaveBeenCalledTimes(1) + + vi.advanceTimersByTime(2_000) + deliver('rawmem.sens.piezo', fixture('raw.sens.piezo')) + deliver('raw.sens.piezo', fixture('raw.sens.piezo')) + + expect(onFrame).toHaveBeenCalledTimes(3) + expect(src.stats).toMatchObject({ sources: { 'sens.piezo': 'raw' }, ignoredMessages: 1 }) + expect(log).toHaveBeenCalledWith('[natsSource] reading %s from %s', 'sens.piezo', 'rawmem.sens.piezo') + } + finally { + vi.useRealTimers() + } + }) + + it('does not let an undecodable raw message claim a subject', async () => { + const onFrame = vi.fn() + vi.spyOn(console, 'log').mockImplementation(() => {}) + vi.spyOn(console, 'warn').mockImplementation(() => {}) + const src = await startNatsFrameSource({ decode, onFrame, fallbackGraceMs: 0 }) + + deliver('raw.sens.bedtemp', new Uint8Array([0x00])) + deliver('rawmem.sens.bedtemp', fixture('raw.sens.bedtemp')) + + expect(onFrame).toHaveBeenCalledTimes(1) + expect(src.stats.sources).toEqual({ 'sens.bedtemp': 'rawmem' }) }) it('passes new/out-of-scope types (blanketReadings) through without throwing', async () => { @@ -226,7 +372,7 @@ describe('startNatsFrameSource', () => { const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) const src = await startNatsFrameSource({ decode, onFrame: vi.fn() }) - nats.state.subs[0].cb(new Error('permission denied'), { data: new Uint8Array() }) + nats.state.subs[0].cb(new Error('permission denied'), { subject: 'raw.sens.capsense', data: new Uint8Array() }) expect(src.stats.messages).toBe(0) expect(warn).toHaveBeenCalledWith('[natsSource] subscription error:', 'permission denied') @@ -261,6 +407,25 @@ describe('startNatsFrameSource', () => { error.mockRestore() }) + it('names a publishing prefix it does not read when its own subjects stay silent', async () => { + vi.useFakeTimers() + const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) + try { + const src = await startNatsFrameSource({ decode, onFrame: vi.fn() }) + deliver('rawv2.sens.piezo', fixture('raw.sens.piezo')) + await vi.advanceTimersByTimeAsync(60_000) + expect(warn).toHaveBeenCalledWith( + '[natsSource] firmware publishes under %s, which this reader does not subscribe to — set natsSubjectPrefix to read it', + 'rawv2', + ) + await src.stop() + } + finally { + warn.mockRestore() + vi.useRealTimers() + } + }) + it('warns once when the subscription stays silent', async () => { vi.useFakeTimers() const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) @@ -291,3 +456,15 @@ describe('startNatsFrameSource', () => { expect(nats.state.drained).toBe(true) }) }) + +describe('natsSubjectPrefixes', () => { + it('reads auto when unset and the pin when valid', () => { + expect(natsSubjectPrefixes(null)).toBe(SUBJECT_PREFIXES) + expect(natsSubjectPrefixes(undefined)).toBe(SUBJECT_PREFIXES) + expect(natsSubjectPrefixes('rawmem')).toEqual(['rawmem']) + }) + + it.each(['raw.sens', '*', '>', '', 'x'.repeat(33)])('reads an invalid stored value %j as auto', (stored) => { + expect(natsSubjectPrefixes(stored)).toBe(SUBJECT_PREFIXES) + }) +}) diff --git a/src/streaming/tests/piezoStreamSource.test.ts b/src/streaming/tests/piezoStreamSource.test.ts index 5a5f48d51..beab42a41 100644 --- a/src/streaming/tests/piezoStreamSource.test.ts +++ b/src/streaming/tests/piezoStreamSource.test.ts @@ -47,6 +47,7 @@ const natsMock = vi.hoisted(() => ({ vi.mock('../natsFrameSource', () => ({ SUBSCRIBE_SUBJECTS: ['raw.sens.>', 'raw.frz.>'], + natsSubjectPrefixes: (configured: string | null) => configured === null ? ['raw', 'rawmem'] : [configured], natsReachable: vi.fn(async () => { if (natsMock.probeErrorOnce) { natsMock.probeErrorOnce = false @@ -68,10 +69,21 @@ vi.mock('../sensorSourceDiscovery', () => ({ discoverSensorSource: vi.fn(async () => 'unknown'), })) +// The stored natsSubjectPrefix; `startNatsSource` reads it on every connect. +const settingsMock = vi.hoisted(() => ({ natsSubjectPrefix: null as string | null, readError: null as Error | null })) + // Keep persistence hermetic — dispatch → recordCapFrame must not touch a real db. vi.mock('@/src/db', () => { const chain = { values: () => chain, onConflictDoNothing: () => chain, where: () => chain, run: () => {} } - return { biometricsDb: { insert: () => chain, delete: () => chain } } + const select = () => ({ + from: () => ({ + limit: async () => { + if (settingsMock.readError) throw settingsMock.readError + return [{ prefix: settingsMock.natsSubjectPrefix }] + }, + }), + }) + return { biometricsDb: { insert: () => chain, delete: () => chain }, db: { select } } }) vi.mock('@/src/hardware/dacMonitor.instance', () => ({ @@ -81,6 +93,9 @@ vi.mock('@/src/hardware/dacMonitor.instance', () => ({ import { __test__, getLatestCapSenseSnapshot, + getNatsSourceStats, + readNatsSubjectPrefix, + restartNatsFrameSource, shutdownPiezoStreamServer, startPiezoStreamServer, } from '../piezoStream' @@ -130,6 +145,8 @@ describe('startPiezoStreamServer — source selection', () => { natsMock.startCalls = 0 natsMock.stopCalls = 0 natsMock.captured = null + settingsMock.natsSubjectPrefix = null + settingsMock.readError = null for (const f of fs.readdirSync(tmpRawDir)) fs.rmSync(path.join(tmpRawDir, f), { force: true }) delete process.env.PIEZO_SENSOR_SOURCE vi.mocked(discoverSensorSource).mockResolvedValue('unknown') @@ -491,4 +508,95 @@ describe('startPiezoStreamServer — source selection', () => { expect(__test__.natsSourceActive).toBe(false) }) + + it('reads the stored prefix when the NATS source connects', async () => { + settingsMock.natsSubjectPrefix = 'rawmem' + natsMock.reachable = true + startPiezoStreamServer() + await waitFor(() => __test__.natsSourceActive) + expect(natsMock.captured.prefixes).toEqual(['rawmem']) + expect(getNatsSourceStats()).toMatchObject({ messages: 0 }) + expect(await readNatsSubjectPrefix()).toBe('rawmem') + }) + + it('treats an invalid stored prefix as auto', async () => { + settingsMock.natsSubjectPrefix = 'raw.sens' + expect(await readNatsSubjectPrefix()).toBeNull() + }) + + it('reads auto when the setting cannot be read', async () => { + settingsMock.readError = new Error('no such column: nats_subject_prefix') + const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) + natsMock.reachable = true + startPiezoStreamServer() + await waitFor(() => __test__.natsSourceActive) + expect(natsMock.captured.prefixes).toEqual(['raw', 'rawmem']) + expect(warn).toHaveBeenCalledWith('[sensorStream] could not read natsSubjectPrefix, reading the default prefixes:', settingsMock.readError) + }) + + it('restarts only the NATS source on a prefix change, keeping the WS server and its clients', async () => { + natsMock.reachable = true + const server = startPiezoStreamServer() + await waitFor(() => __test__.natsSourceActive) + expect(natsMock.captured.prefixes).toEqual(['raw', 'rawmem']) + const address = server.address() + if (!address || typeof address === 'string') throw new Error('Missing WS address') + const client = new WebSocket(`ws://127.0.0.1:${address.port}`) + await new Promise((resolve, reject) => { + client.once('open', resolve) + client.once('error', reject) + }) + try { + settingsMock.natsSubjectPrefix = 'rawmem' + expect(await restartNatsFrameSource()).toBe(true) + + expect(natsMock.stopCalls).toBe(1) + expect(natsMock.startCalls).toBe(2) + expect(natsMock.captured.prefixes).toEqual(['rawmem']) + expect(__test__.natsSourceActive).toBe(true) + expect(startPiezoStreamServer()).toBe(server) + expect(client.readyState).toBe(WebSocket.OPEN) + expect(vi.mocked(natsReachable)).toHaveBeenCalledTimes(1) + } + finally { + client.terminate() + } + }) + + it('serializes back-to-back restarts so the last setting wins', async () => { + natsMock.reachable = true + startPiezoStreamServer() + await waitFor(() => __test__.natsSourceActive) + + settingsMock.natsSubjectPrefix = 'rawmem' + const first = restartNatsFrameSource() + settingsMock.natsSubjectPrefix = 'custom' + const second = restartNatsFrameSource() + expect(await Promise.all([first, second])).toEqual([true, true]) + + expect(natsMock.startCalls).toBe(3) + expect(natsMock.stopCalls).toBe(2) + expect(natsMock.captured.prefixes).toEqual(['custom']) + }) + + it('does nothing on a prefix change while reading RAW', async () => { + process.env.PIEZO_SENSOR_SOURCE = 'raw' + startPiezoStreamServer() + expect(await restartNatsFrameSource()).toBe(false) + expect(startNatsFrameSource).not.toHaveBeenCalled() + }) + + it('falls back to source selection when the re-subscribe fails', async () => { + natsMock.reachable = true + const error = vi.spyOn(console, 'error').mockImplementation(() => {}) + startPiezoStreamServer() + await waitFor(() => __test__.natsSourceActive) + + natsMock.startError = new Error('connection refused') + expect(await restartNatsFrameSource()).toBe(false) + expect(__test__.natsSourceActive).toBe(false) + natsMock.startError = null + await waitFor(() => __test__.natsSourceActive) + expect(error).toHaveBeenCalledWith('[sensorStream] NATS connect failed; retrying source discovery:', expect.any(Error)) + }) }) diff --git a/stryker.config.mjs b/stryker.config.mjs index 80f03099a..73f38857a 100644 --- a/stryker.config.mjs +++ b/stryker.config.mjs @@ -60,6 +60,10 @@ const config = { timeoutMS: 15000, timeoutFactor: 2, + // The hardware-lib shard's dry run covers nearly the whole suite + // (src/lib is imported everywhere) and outgrew the 5 min default. + dryRunTimeoutMinutes: 20, + // Cache passed mutants across runs so reruns are fast. Stored under // reports/mutation/ so local .gitignore already covers it. incremental: true,