@northlight-systems/cloud-render 0.0.0-stage → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,118 @@
1
+ import { errorPageBodies, errorPageCopy, errorPageCss, errorPageCssHash, errorPageFavicon, errorPageGenericCopy, errorPageMark, } from "./generated/error-page.js";
2
+ import { escapeHtml } from "./html.js";
3
+ function mediaRanges(accept) {
4
+ const ranges = [];
5
+ accept.split(",").forEach((part, position) => {
6
+ const [type = "", ...parameters] = part.split(";");
7
+ let quality = 1;
8
+ for (const parameter of parameters) {
9
+ const [key, value] = parameter.split("=");
10
+ if (key?.trim() === "q") {
11
+ const parsed = Number(value?.trim());
12
+ quality = Number.isFinite(parsed) ? parsed : 0;
13
+ }
14
+ }
15
+ ranges.push({ type: type.trim().toLowerCase(), quality, position });
16
+ });
17
+ return ranges;
18
+ }
19
+ const bestOf = (ranges, accepts) => ranges
20
+ .filter((range) => range.quality > 0 && accepts(range.type))
21
+ .sort((a, b) => b.quality - a.quality || a.position - b.position)[0];
22
+ /**
23
+ * Whether the request is a browser navigation that should get an HTML error page rather than the
24
+ * service's JSON error. True only for GET and HEAD whose `Accept` names `text/html` (or
25
+ * `application/xhtml+xml`) and prefers it to JSON: a higher quality value, or the same quality
26
+ * listed first. A wildcard alone never counts, so `curl`'s `*/*`, axios's
27
+ * `application/json, text/plain, */*`, a missing `Accept` and every non-GET request keep
28
+ * getting JSON. A browser sends `text/html,application/xhtml+xml,…,*/*;q=0.8`.
29
+ *
30
+ * A URL that can answer either way must send `Vary: Accept` on both responses so a cache never
31
+ * serves the wrong one; {@link sendErrorPage} does for its own.
32
+ */
33
+ export function wantsHtml(request) {
34
+ const method = request.method?.toUpperCase();
35
+ if (method !== "GET" && method !== "HEAD")
36
+ return false;
37
+ const header = request.headers.accept;
38
+ const accept = typeof header === "string" ? header : header?.join(",");
39
+ if (accept === undefined)
40
+ return false;
41
+ const ranges = mediaRanges(accept);
42
+ const html = bestOf(ranges, (type) => type === "text/html" || type === "application/xhtml+xml");
43
+ if (html === undefined)
44
+ return false;
45
+ const json = bestOf(ranges, (type) => type === "application/json" || type.endsWith("+json"));
46
+ if (json === undefined)
47
+ return true;
48
+ return (html.quality > json.quality ||
49
+ (html.quality === json.quality && html.position < json.position));
50
+ }
51
+ const accountHome = "https://account.northlight.ai/";
52
+ const safeHref = (href, fallback) => /^https?:\/\//i.test(href) || href.startsWith("/") ? href : fallback;
53
+ /**
54
+ * The `style-src` hash of the page's inline stylesheet, in CSP form (`sha256-…`). Only needed when
55
+ * a service sets its own Content-Security-Policy on error responses; {@link sendErrorPage} sets
56
+ * the policy itself.
57
+ */
58
+ export const errorPageStyleHash = errorPageCssHash;
59
+ /** The Content-Security-Policy {@link sendErrorPage} sends: no script, one hashed style, a data: icon. */
60
+ export const errorPageContentSecurityPolicy = `default-src 'none'; style-src '${errorPageCssHash}'; img-src data:; base-uri 'none'; form-action 'none'; frame-ancestors 'none'`;
61
+ const faviconHref = `data:image/svg+xml,${encodeURIComponent(errorPageFavicon)}`;
62
+ /**
63
+ * Renders the complete HTML of the error page: the kit's `ErrorPage` (header with the linked
64
+ * brand, status, title, message, actions), prebuilt when this package is built, with the Northlight
65
+ * stylesheet inline, the favicon inline, light and dark following the browser. The document needs
66
+ * nothing else: no Start app, no Tailwind build, no static route. Every value is HTML-escaped.
67
+ */
68
+ export function renderErrorPage(options) {
69
+ const fallbackCopy = errorPageCopy[options.status] ??
70
+ (options.status >= 400 && options.status < 500
71
+ ? errorPageGenericCopy.client
72
+ : errorPageGenericCopy.server);
73
+ const home = safeHref(options.homeHref ?? accountHome, accountHome);
74
+ const action = options.action ?? { label: "Go to your account", href: home };
75
+ const values = {
76
+ STATUS: String(options.status),
77
+ TITLE: escapeHtml(options.title ?? fallbackCopy.title),
78
+ MESSAGE: escapeHtml(options.message ?? fallbackCopy.message),
79
+ HOME: escapeHtml(home),
80
+ PRIMARY_LABEL: escapeHtml(action.label),
81
+ PRIMARY_HREF: escapeHtml(safeHref(action.href, home)),
82
+ SECONDARY_LABEL: escapeHtml(options.secondaryAction?.label ?? ""),
83
+ SECONDARY_HREF: escapeHtml(safeHref(options.secondaryAction?.href ?? home, home)),
84
+ APP: escapeHtml(options.appName ?? ""),
85
+ REFERENCE: escapeHtml(options.reference ?? ""),
86
+ MARK: errorPageMark,
87
+ };
88
+ // The variant index is the bit set of the optional parts present: app name, secondary action, reference.
89
+ const variant = (options.appName ? 1 : 0) |
90
+ (options.secondaryAction ? 2 : 0) |
91
+ (options.reference ? 4 : 0);
92
+ const body = (errorPageBodies[variant] ?? "").replace(/@@([A-Z_]+)@@/g, (_match, name) => values[name] ?? "");
93
+ const title = `${values["TITLE"]} · Northlight`;
94
+ return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="color-scheme" content="light dark"><meta name="robots" content="noindex"><title>${title}</title><link rel="icon" type="image/svg+xml" href="${faviconHref}"><style>${errorPageCss}</style></head><body>${body}</body></html>`;
95
+ }
96
+ /**
97
+ * Answers with the error page: sets the status, `Content-Type: text/html`, `Vary: Accept`,
98
+ * `Cache-Control: no-store`, `X-Content-Type-Options: nosniff`, `Referrer-Policy: no-referrer`,
99
+ * `X-Frame-Options: DENY` and a Content-Security-Policy that allows only the page's own hashed
100
+ * stylesheet (no `'unsafe-inline'`, no script), then sends {@link renderErrorPage}. It replaces
101
+ * any policy set earlier on this response. Call it only when {@link wantsHtml} is true.
102
+ */
103
+ export function sendErrorPage(res, options) {
104
+ res.status(options.status);
105
+ for (const [name, value] of Object.entries(options.headers ?? {})) {
106
+ res.setHeader(name, value);
107
+ }
108
+ res.setHeader("content-type", "text/html; charset=utf-8");
109
+ res.setHeader("vary", "Accept");
110
+ res.setHeader("cache-control", "no-store");
111
+ res.setHeader("x-content-type-options", "nosniff");
112
+ res.setHeader("referrer-policy", "no-referrer");
113
+ res.setHeader("x-frame-options", "DENY");
114
+ res.setHeader("content-security-policy", errorPageContentSecurityPolicy);
115
+ // Every value in the page is escaped by escapeHtml or is prebuilt markup from the kit's ErrorPage.
116
+ // nosemgrep: javascript.express.security.audit.xss.direct-response-write.direct-response-write
117
+ res.send(renderErrorPage(options));
118
+ }
@@ -0,0 +1,19 @@
1
+ export declare const errorPageCss = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--container-md:28rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--cc-font-family-sans);--default-mono-font-family:var(--cc-font-family-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:before,:after{border-color:var(--cc-color-border-default)}html{background-color:var(--cc-color-bg-canvas);color:var(--cc-color-fg-default);font-family:var(--cc-font-family-sans)}body{font-size:var(--cc-text-body-size);line-height:var(--cc-text-body-line-height);letter-spacing:var(--cc-text-body-tracking);font-weight:var(--cc-text-body-weight)}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.relative{position:relative}.m-0{margin:0}.mt-3{margin-top:calc(var(--cc-spacing-unit) * 3)}.-ml-1\\.5{margin-left:calc(var(--cc-spacing-unit) * -1.5)}.flex{display:flex}.inline-flex{display:inline-flex}.h-10{height:calc(var(--cc-spacing-unit) * 10)}.h-14{height:calc(var(--cc-spacing-unit) * 14)}.min-h-dvh{min-height:100dvh}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:var(--cc-spacing-unit)}.gap-2{gap:calc(var(--cc-spacing-unit) * 2)}.gap-3{gap:calc(var(--cc-spacing-unit) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded-md{border-radius:var(--cc-radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-accent{border-color:var(--cc-color-border-accent)}.border-default{border-color:var(--cc-color-border-default)}.border-transparent{border-color:#0000}.bg-accent{background-color:var(--cc-color-bg-accent)}.bg-canvas{background-color:var(--cc-color-bg-canvas)}.bg-neutral{background-color:var(--cc-color-bg-neutral)}.bg-surface{background-color:var(--cc-color-bg-surface)}.px-4{padding-inline:calc(var(--cc-spacing-unit) * 4)}.px-4\\.5{padding-inline:calc(var(--cc-spacing-unit) * 4.5)}.px-6{padding-inline:calc(var(--cc-spacing-unit) * 6)}.py-1{padding-block:var(--cc-spacing-unit)}.py-12{padding-block:calc(var(--cc-spacing-unit) * 12)}.text-center{text-align:center}.font-mono{font-family:var(--cc-font-family-mono)}.text-body{font-size:var(--cc-text-body-size);line-height:var(--tw-leading,var(--cc-text-body-line-height));letter-spacing:var(--tw-tracking,var(--cc-text-body-tracking));font-weight:var(--tw-font-weight,var(--cc-text-body-weight))}.text-h1{font-size:var(--cc-text-h1-size);line-height:var(--tw-leading,var(--cc-text-h1-line-height));letter-spacing:var(--tw-tracking,var(--cc-text-h1-tracking));font-weight:var(--tw-font-weight,var(--cc-text-h1-weight))}.text-label{font-size:var(--cc-text-label-size);line-height:var(--tw-leading,var(--cc-text-label-line-height));letter-spacing:var(--tw-tracking,var(--cc-text-label-tracking));font-weight:var(--tw-font-weight,var(--cc-text-label-weight))}.text-mono{font-size:var(--cc-text-mono-size);line-height:var(--tw-leading,var(--cc-text-mono-line-height));letter-spacing:var(--tw-tracking,var(--cc-text-mono-tracking));font-weight:var(--tw-font-weight,var(--cc-text-mono-weight))}.font-medium{--tw-font-weight:var(--cc-font-weight-medium);font-weight:var(--cc-font-weight-medium)}.font-semibold{--tw-font-weight:var(--cc-font-weight-semibold);font-weight:var(--cc-font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-brand{color:var(--cc-color-fg-brand)}.text-default{color:var(--cc-color-fg-default)}.text-muted{color:var(--cc-color-fg-muted)}.text-on-accent{color:var(--cc-color-fg-on-accent)}.no-underline{text-decoration-line:none}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-fast{--tw-duration:var(--cc-duration-fast);transition-duration:var(--cc-duration-fast)}.ease-standard{--tw-ease:var(--cc-easing-standard);transition-timing-function:var(--cc-easing-standard)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\\:bg-accent-hover:hover{background-color:var(--cc-color-bg-accent-hover)}.hover\\:bg-neutral-hover:hover{background-color:var(--cc-color-bg-neutral-hover)}.hover\\:text-accent:hover{color:var(--cc-color-fg-accent)}}.focus-visible\\:focus-ring:focus-visible{outline:var(--cc-focus-ring-width) solid var(--cc-color-border-focus);outline-offset:var(--cc-focus-ring-offset)}.active\\:bg-accent-pressed:active{background-color:var(--cc-color-bg-accent-pressed)}.active\\:bg-neutral-pressed:active{background-color:var(--cc-color-bg-neutral-pressed)}.data-disabled\\:opacity-40[data-disabled]{opacity:.4}.data-focus-visible\\:focus-ring[data-focus-visible]{outline:var(--cc-focus-ring-width) solid var(--cc-color-border-focus);outline-offset:var(--cc-focus-ring-offset)}.data-hovered\\:bg-accent-hover[data-hovered]{background-color:var(--cc-color-bg-accent-hover)}.data-hovered\\:bg-neutral-hover[data-hovered]{background-color:var(--cc-color-bg-neutral-hover)}.data-pressed\\:bg-accent-pressed[data-pressed]{background-color:var(--cc-color-bg-accent-pressed)}.data-pressed\\:bg-neutral-pressed[data-pressed]{background-color:var(--cc-color-bg-neutral-pressed)}@media (min-width:48rem){.md\\:px-6{padding-inline:calc(var(--cc-spacing-unit) * 6)}}}:root{--cc-font-family-sans:Geist, ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--cc-font-family-mono:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--cc-font-weight-normal:400;--cc-font-weight-medium:500;--cc-font-weight-semibold:600;--cc-font-weight-bold:700;--cc-text-display-size:2.625rem;--cc-text-display-line-height:1.0952;--cc-text-display-tracking:-.02em;--cc-text-display-weight:600;--cc-text-h1-size:1.75rem;--cc-text-h1-line-height:1.2143;--cc-text-h1-tracking:-.02em;--cc-text-h1-weight:600;--cc-text-h2-size:1.25rem;--cc-text-h2-line-height:1.3;--cc-text-h2-tracking:-.02em;--cc-text-h2-weight:600;--cc-text-body-size:.9375rem;--cc-text-body-line-height:1.5333;--cc-text-body-tracking:0em;--cc-text-body-weight:400;--cc-text-small-size:.84375rem;--cc-text-small-line-height:1.4815;--cc-text-small-tracking:0em;--cc-text-small-weight:400;--cc-text-label-size:.8125rem;--cc-text-label-line-height:1.2308;--cc-text-label-tracking:0em;--cc-text-label-weight:500;--cc-text-mono-size:.78125rem;--cc-text-mono-line-height:1.44;--cc-text-mono-tracking:0em;--cc-text-mono-weight:400;--cc-spacing-unit:.25rem;--cc-spacing-row:3px;--cc-radius-none:0px;--cc-radius-sm:6px;--cc-radius-md:8px;--cc-radius-lg:12px;--cc-radius-xl:16px;--cc-radius-full:9999px;--cc-duration-fast:.12s;--cc-duration-normal:.2s;--cc-duration-slow:.32s;--cc-easing-standard:cubic-bezier(.2, 0, 0, 1);--cc-easing-enter:cubic-bezier(0, 0, 0, 1);--cc-easing-exit:cubic-bezier(.3, 0, 1, 1);--cc-breakpoint-sm:40rem;--cc-breakpoint-md:48rem;--cc-breakpoint-lg:64rem;--cc-breakpoint-xl:80rem;--cc-z-index-base:0;--cc-z-index-dropdown:1000;--cc-z-index-sticky:1100;--cc-z-index-overlay:1200;--cc-z-index-modal:1300;--cc-z-index-popover:1400;--cc-z-index-toast:1500;--cc-focus-ring-width:2px;--cc-focus-ring-offset:2px;--cc-motion-stretch-lead-duration:.24s;--cc-motion-stretch-trail-duration:.36s;--cc-motion-stretch-trail-delay:30ms;--cc-motion-stretch-easing:cubic-bezier(.3, 1.1, .4, 1);--cc-motion-swipe-duration:.38s;--cc-motion-swipe-easing:cubic-bezier(.2, .8, .2, 1);--cc-motion-swipe-threshold:70px;--cc-motion-swipe-tilt:.025;--cc-motion-swipe-drag-range:120px;--cc-motion-swipe-exit-travel:115;--cc-motion-swipe-exit-lift:-4;--cc-motion-swipe-exit-rotation:5;--cc-motion-swipe-drag-resistance:.25;--cc-motion-rail-lead-follow:.28;--cc-motion-rail-trail-follow:.16}:root,[data-theme=light]{color-scheme:light;--cc-color-bg-canvas:#f0f2f4;--cc-color-bg-surface:#fff;--cc-color-bg-surface-overlay:#fff;--cc-color-bg-surface-sunken:#e5e7ea;--cc-color-bg-surface-zone:#e5e7ea;--cc-color-bg-surface-hover:#ebedf0;--cc-color-bg-surface-pressed:#dee0e3;--cc-color-bg-neutral:#e5e7ea;--cc-color-bg-neutral-hover:#d7d9dc;--cc-color-bg-neutral-pressed:#cbcdd0;--cc-color-bg-backdrop:#15171a52;--cc-color-bg-accent:#217f51;--cc-color-bg-accent-hover:#1e6e46;--cc-color-bg-accent-pressed:#1a5e3c;--cc-color-bg-accent-subtle:#d5f7e1;--cc-color-bg-accent-subtle-pressed:#aaefc5;--cc-color-bg-danger-solid:#bf2a1f;--cc-color-bg-danger-solid-hover:#ae261c;--cc-color-bg-danger-solid-pressed:#9d2219;--cc-color-bg-disabled:#e5e7ea;--cc-color-bg-success:#e7f1d9;--cc-color-bg-warning:#fcedd4;--cc-color-bg-danger:#fce5e2;--cc-color-bg-info:#e0eafb;--cc-color-bg-track:#e5e7ea;--cc-color-bg-inverse:#15171a;--cc-color-fg-default:#15171a;--cc-color-fg-muted:#505256;--cc-color-fg-disabled:#919498;--cc-color-fg-accent:#1e6e46;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#547200;--cc-color-fg-warning:#8f5200;--cc-color-fg-danger:#bf2a1f;--cc-color-fg-info:#1558c0;--cc-color-fg-on-inverse:#fff;--cc-color-border-default:#d7d9dc;--cc-color-border-subtle:#e5e7ea;--cc-color-border-strong:#787b7f;--cc-color-border-accent:#217f51;--cc-color-border-focus:#217f51;--cc-color-border-success:#547200;--cc-color-border-warning:#8f5200;--cc-color-border-danger:#bf2a1f;--cc-color-border-info:#1558c0;--cc-color-activity-planned:#787b7f;--cc-color-activity-done:#217f51;--cc-color-activity-current:#1e6e46;--cc-color-tag-grey-bg:#e5e7ea;--cc-color-tag-grey-fg:#15171a;--cc-color-tag-green-bg:#dbf3da;--cc-color-tag-green-fg:#256c2c;--cc-color-tag-blue-bg:#dbecff;--cc-color-tag-blue-fg:#2c56a8;--cc-color-tag-amber-bg:#fee7ce;--cc-color-tag-amber-fg:#844c00;--cc-color-tag-violet-bg:#efe5ff;--cc-color-tag-violet-fg:#674698;--cc-color-tag-red-bg:#ffe0db;--cc-color-tag-red-fg:#9e2d28;--cc-color-tag-teal-bg:#d4f2f3;--cc-color-tag-teal-fg:#00696f;--cc-color-tag-pink-bg:#ffe0ef;--cc-color-tag-pink-fg:#8e3665;--cc-color-speaker-0:#1e6e46;--cc-color-speaker-1:#2f6fd6;--cc-color-speaker-2:#b36b00;--cc-color-speaker-3:#7a4fd0;--cc-color-speaker-4:#c23c78;--cc-color-speaker-5:#12828a;--cc-color-recording:#d0342a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--cc-color-bg-canvas:#0e1012;--cc-color-bg-surface:#181a1d;--cc-color-bg-surface-overlay:#181a1d;--cc-color-bg-surface-sunken:#212326;--cc-color-bg-surface-zone:#212326;--cc-color-bg-surface-hover:#25272a;--cc-color-bg-surface-pressed:#2f3134;--cc-color-bg-neutral:#212326;--cc-color-bg-neutral-hover:#2f3134;--cc-color-bg-neutral-pressed:#3c3e41;--cc-color-bg-backdrop:#0009;--cc-color-bg-accent:#217f51;--cc-color-bg-accent-hover:#1e6e46;--cc-color-bg-accent-pressed:#1a5e3c;--cc-color-bg-accent-subtle:#072d1a;--cc-color-bg-accent-subtle-pressed:#0f4329;--cc-color-bg-danger-solid:#d0342a;--cc-color-bg-danger-solid-hover:#b72e25;--cc-color-bg-danger-solid-pressed:#a22921;--cc-color-bg-disabled:#212326;--cc-color-bg-success:#222d0d;--cc-color-bg-warning:#35260f;--cc-color-bg-danger:#3b1715;--cc-color-bg-info:#10264a;--cc-color-bg-track:#25272a;--cc-color-bg-inverse:#f0f2f4;--cc-color-fg-default:#f0f2f4;--cc-color-fg-muted:#acaeb2;--cc-color-fg-disabled:#505256;--cc-color-fg-accent:#5ada97;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#a2cb57;--cc-color-fg-warning:#f4b45a;--cc-color-fg-danger:#ff8175;--cc-color-fg-info:#7db2ff;--cc-color-fg-on-inverse:#0e1012;--cc-color-border-default:#2f3134;--cc-color-border-subtle:#212326;--cc-color-border-strong:#787b7f;--cc-color-border-accent:#09b972;--cc-color-border-focus:#5ada97;--cc-color-border-success:#8db445;--cc-color-border-warning:#da9a46;--cc-color-border-danger:#d0342a;--cc-color-border-info:#639cef;--cc-color-activity-planned:#787b7f;--cc-color-activity-done:#09b972;--cc-color-activity-current:#5ada97;--cc-color-tag-grey-bg:#212326;--cc-color-tag-grey-fg:#f0f2f4;--cc-color-tag-green-bg:#2a452b;--cc-color-tag-green-fg:#b8e6b8;--cc-color-tag-blue-bg:#2b3d5e;--cc-color-tag-blue-fg:#bbd8ff;--cc-color-tag-amber-bg:#4f381b;--cc-color-tag-amber-fg:#f9cfa0;--cc-color-tag-violet-bg:#423657;--cc-color-tag-violet-fg:#e0cbff;--cc-color-tag-red-bg:#5b2f2a;--cc-color-tag-red-fg:#ffc2b9;--cc-color-tag-teal-bg:#214445;--cc-color-tag-teal-fg:#aae4e7;--cc-color-tag-pink-bg:#543041;--cc-color-tag-pink-fg:#ffc1df;--cc-color-speaker-0:#5ada97;--cc-color-speaker-1:#7db2ff;--cc-color-speaker-2:#f4b45a;--cc-color-speaker-3:#c4a1ff;--cc-color-speaker-4:#f58fb6;--cc-color-speaker-5:#5fd0d6;--cc-color-recording:#ff5a4f}}[data-theme=dark]{color-scheme:dark;--cc-color-bg-canvas:#0e1012;--cc-color-bg-surface:#181a1d;--cc-color-bg-surface-overlay:#181a1d;--cc-color-bg-surface-sunken:#212326;--cc-color-bg-surface-zone:#212326;--cc-color-bg-surface-hover:#25272a;--cc-color-bg-surface-pressed:#2f3134;--cc-color-bg-neutral:#212326;--cc-color-bg-neutral-hover:#2f3134;--cc-color-bg-neutral-pressed:#3c3e41;--cc-color-bg-backdrop:#0009;--cc-color-bg-accent:#217f51;--cc-color-bg-accent-hover:#1e6e46;--cc-color-bg-accent-pressed:#1a5e3c;--cc-color-bg-accent-subtle:#072d1a;--cc-color-bg-accent-subtle-pressed:#0f4329;--cc-color-bg-danger-solid:#d0342a;--cc-color-bg-danger-solid-hover:#b72e25;--cc-color-bg-danger-solid-pressed:#a22921;--cc-color-bg-disabled:#212326;--cc-color-bg-success:#222d0d;--cc-color-bg-warning:#35260f;--cc-color-bg-danger:#3b1715;--cc-color-bg-info:#10264a;--cc-color-bg-track:#25272a;--cc-color-bg-inverse:#f0f2f4;--cc-color-fg-default:#f0f2f4;--cc-color-fg-muted:#acaeb2;--cc-color-fg-disabled:#505256;--cc-color-fg-accent:#5ada97;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#a2cb57;--cc-color-fg-warning:#f4b45a;--cc-color-fg-danger:#ff8175;--cc-color-fg-info:#7db2ff;--cc-color-fg-on-inverse:#0e1012;--cc-color-border-default:#2f3134;--cc-color-border-subtle:#212326;--cc-color-border-strong:#787b7f;--cc-color-border-accent:#09b972;--cc-color-border-focus:#5ada97;--cc-color-border-success:#8db445;--cc-color-border-warning:#da9a46;--cc-color-border-danger:#d0342a;--cc-color-border-info:#639cef;--cc-color-activity-planned:#787b7f;--cc-color-activity-done:#09b972;--cc-color-activity-current:#5ada97;--cc-color-tag-grey-bg:#212326;--cc-color-tag-grey-fg:#f0f2f4;--cc-color-tag-green-bg:#2a452b;--cc-color-tag-green-fg:#b8e6b8;--cc-color-tag-blue-bg:#2b3d5e;--cc-color-tag-blue-fg:#bbd8ff;--cc-color-tag-amber-bg:#4f381b;--cc-color-tag-amber-fg:#f9cfa0;--cc-color-tag-violet-bg:#423657;--cc-color-tag-violet-fg:#e0cbff;--cc-color-tag-red-bg:#5b2f2a;--cc-color-tag-red-fg:#ffc2b9;--cc-color-tag-teal-bg:#214445;--cc-color-tag-teal-fg:#aae4e7;--cc-color-tag-pink-bg:#543041;--cc-color-tag-pink-fg:#ffc1df;--cc-color-speaker-0:#5ada97;--cc-color-speaker-1:#7db2ff;--cc-color-speaker-2:#f4b45a;--cc-color-speaker-3:#c4a1ff;--cc-color-speaker-4:#f58fb6;--cc-color-speaker-5:#5fd0d6;--cc-color-recording:#ff5a4f}[data-brand=firstlight]{--cc-brand-night:#14204a;--cc-brand-dusk:#2b3f86;--cc-brand-sun:#ffc46b;--cc-brand-glow:#ffd9a0;--cc-brand-ring:#f08a5d;--cc-brand-sky-1:#1a2963;--cc-brand-sky-2:#233674;--cc-brand-sky-3:#2e4590;--cc-brand-night-raise:#1f2e66;--cc-brand-on-night:#fff;--cc-brand-on-night-muted:#d5dae9;--cc-brand-on-night-faint:#bcc3db;--cc-brand-night-line:#353f63;--cc-brand-night-hover:#2c365c}:root[data-brand=firstlight],[data-brand=firstlight][data-theme=light],[data-brand=firstlight] [data-theme=light]{color-scheme:light;--cc-color-bg-canvas:#f6f3ee;--cc-color-bg-surface:#fff;--cc-color-bg-surface-overlay:#fff;--cc-color-bg-surface-sunken:#f0ece6;--cc-color-bg-surface-zone:#ede9e3;--cc-color-bg-surface-hover:#f1eee9;--cc-color-bg-surface-pressed:#e6e2dc;--cc-color-bg-neutral:#ebe7e1;--cc-color-bg-neutral-hover:#e3dfd8;--cc-color-bg-neutral-pressed:#dbd7d0;--cc-color-bg-backdrop:#15171a52;--cc-color-bg-accent:#324ca7;--cc-color-bg-accent-hover:#2a4195;--cc-color-bg-accent-pressed:#233783;--cc-color-bg-accent-subtle:#ffeac4;--cc-color-bg-accent-subtle-pressed:#fedca5;--cc-color-bg-danger-solid:#be3025;--cc-color-bg-danger-solid-hover:#af2c22;--cc-color-bg-danger-solid-pressed:#a1271e;--cc-color-bg-disabled:#ebe7e1;--cc-color-bg-success:#dff6de;--cc-color-bg-warning:#ffe8da;--cc-color-bg-danger:#ffe8e3;--cc-color-bg-info:#d9f4fb;--cc-color-bg-track:#e5e7ea;--cc-color-bg-inverse:#15171a;--cc-color-fg-default:#151f3e;--cc-color-fg-muted:#525a6f;--cc-color-fg-disabled:#9398a5;--cc-color-fg-accent:#3049a4;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#2b7132;--cc-color-fg-warning:#974c12;--cc-color-fg-danger:#be3025;--cc-color-fg-info:#006a7d;--cc-color-fg-on-inverse:#fff;--cc-color-border-default:#ddd8d1;--cc-color-border-subtle:#ebe7e1;--cc-color-border-strong:#737a8d;--cc-color-border-accent:#324ca7;--cc-color-border-focus:#324ca7;--cc-color-border-success:#2b7132;--cc-color-border-warning:#974c12;--cc-color-border-danger:#be3025;--cc-color-border-info:#006a7d;--cc-color-activity-planned:#737a8d;--cc-color-activity-done:#324ca7;--cc-color-activity-current:#3049a4;--cc-color-tag-grey-bg:#e9ebef;--cc-color-tag-grey-fg:#575b64;--cc-color-tag-green-bg:#dbf3da;--cc-color-tag-green-fg:#256c2c;--cc-color-tag-blue-bg:#dbecff;--cc-color-tag-blue-fg:#2c56a8;--cc-color-tag-amber-bg:#fee7ce;--cc-color-tag-amber-fg:#844c00;--cc-color-tag-violet-bg:#efe5ff;--cc-color-tag-violet-fg:#674698;--cc-color-tag-red-bg:#ffe0db;--cc-color-tag-red-fg:#9e2d28;--cc-color-tag-teal-bg:#d4f2f3;--cc-color-tag-teal-fg:#00696f;--cc-color-tag-pink-bg:#ffe0ef;--cc-color-tag-pink-fg:#8e3665;--cc-color-speaker-0:#3049a4;--cc-color-speaker-1:#2f6fd6;--cc-color-speaker-2:#b36b00;--cc-color-speaker-3:#7a4fd0;--cc-color-speaker-4:#c23c78;--cc-color-speaker-5:#12828a;--cc-color-recording:#d0342a;--cc-brand-ground:#ffc46b;--cc-brand-ground-ink:#14204a;--cc-brand-ground-ink-muted:#36426e}@media (prefers-color-scheme:dark){:root[data-brand=firstlight]:not([data-theme=light]){color-scheme:dark;--cc-color-bg-canvas:#14204a;--cc-color-bg-surface:#192755;--cc-color-bg-surface-overlay:#192755;--cc-color-bg-surface-sunken:#1e2d5b;--cc-color-bg-surface-zone:#1f2e5c;--cc-color-bg-surface-hover:#203062;--cc-color-bg-surface-pressed:#28396f;--cc-color-bg-neutral:#233261;--cc-color-bg-neutral-hover:#2b3c6f;--cc-color-bg-neutral-pressed:#34477e;--cc-color-bg-backdrop:#0009;--cc-color-bg-accent:#4f6dcc;--cc-color-bg-accent-hover:#4562bc;--cc-color-bg-accent-pressed:#3c56ac;--cc-color-bg-accent-subtle:#2b3f86;--cc-color-bg-accent-subtle-pressed:#203270;--cc-color-bg-danger-solid:#c5372c;--cc-color-bg-danger-solid-hover:#b32f25;--cc-color-bg-danger-solid-pressed:#a1271e;--cc-color-bg-disabled:#233261;--cc-color-bg-success:#153b29;--cc-color-bg-warning:#512e1a;--cc-color-bg-danger:#542526;--cc-color-bg-info:#093b4e;--cc-color-bg-track:#25272a;--cc-color-bg-inverse:#f0f2f4;--cc-color-fg-default:#f2f5fc;--cc-color-fg-muted:#bfcae6;--cc-color-fg-disabled:#73809f;--cc-color-fg-accent:#bad0ff;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#98df9a;--cc-color-fg-warning:#fabc86;--cc-color-fg-danger:#ffa08f;--cc-color-fg-info:#8cd8eb;--cc-color-fg-on-inverse:#0e1012;--cc-color-border-default:#354573;--cc-color-border-subtle:#253460;--cc-color-border-strong:#91a1c8;--cc-color-border-accent:#84a1f0;--cc-color-border-focus:#bad0ff;--cc-color-border-success:#73c076;--cc-color-border-warning:#ea9d60;--cc-color-border-danger:#f17262;--cc-color-border-info:#61b9ce;--cc-color-activity-planned:#91a1c8;--cc-color-activity-done:#a2bcff;--cc-color-activity-current:#cdddff;--cc-color-tag-grey-bg:#3b3d41;--cc-color-tag-grey-fg:#d5d7de;--cc-color-tag-green-bg:#2a452b;--cc-color-tag-green-fg:#b8e6b8;--cc-color-tag-blue-bg:#2b3d5e;--cc-color-tag-blue-fg:#bbd8ff;--cc-color-tag-amber-bg:#4f381b;--cc-color-tag-amber-fg:#f9cfa0;--cc-color-tag-violet-bg:#423657;--cc-color-tag-violet-fg:#e0cbff;--cc-color-tag-red-bg:#5b2f2a;--cc-color-tag-red-fg:#ffc2b9;--cc-color-tag-teal-bg:#214445;--cc-color-tag-teal-fg:#aae4e7;--cc-color-tag-pink-bg:#543041;--cc-color-tag-pink-fg:#ffc1df;--cc-color-speaker-0:#bad0ff;--cc-color-speaker-1:#7db2ff;--cc-color-speaker-2:#f4b45a;--cc-color-speaker-3:#c4a1ff;--cc-color-speaker-4:#f58fb6;--cc-color-speaker-5:#5fd0d6;--cc-color-recording:#ff5a4f;--cc-brand-ground:#2b3f86;--cc-brand-ground-ink:#fff;--cc-brand-ground-ink-muted:#d6ddf3}}[data-brand=firstlight][data-theme=dark],[data-brand=firstlight] [data-theme=dark]{color-scheme:dark;--cc-color-bg-canvas:#14204a;--cc-color-bg-surface:#192755;--cc-color-bg-surface-overlay:#192755;--cc-color-bg-surface-sunken:#1e2d5b;--cc-color-bg-surface-zone:#1f2e5c;--cc-color-bg-surface-hover:#203062;--cc-color-bg-surface-pressed:#28396f;--cc-color-bg-neutral:#233261;--cc-color-bg-neutral-hover:#2b3c6f;--cc-color-bg-neutral-pressed:#34477e;--cc-color-bg-backdrop:#0009;--cc-color-bg-accent:#4f6dcc;--cc-color-bg-accent-hover:#4562bc;--cc-color-bg-accent-pressed:#3c56ac;--cc-color-bg-accent-subtle:#2b3f86;--cc-color-bg-accent-subtle-pressed:#203270;--cc-color-bg-danger-solid:#c5372c;--cc-color-bg-danger-solid-hover:#b32f25;--cc-color-bg-danger-solid-pressed:#a1271e;--cc-color-bg-disabled:#233261;--cc-color-bg-success:#153b29;--cc-color-bg-warning:#512e1a;--cc-color-bg-danger:#542526;--cc-color-bg-info:#093b4e;--cc-color-bg-track:#25272a;--cc-color-bg-inverse:#f0f2f4;--cc-color-fg-default:#f2f5fc;--cc-color-fg-muted:#bfcae6;--cc-color-fg-disabled:#73809f;--cc-color-fg-accent:#bad0ff;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#98df9a;--cc-color-fg-warning:#fabc86;--cc-color-fg-danger:#ffa08f;--cc-color-fg-info:#8cd8eb;--cc-color-fg-on-inverse:#0e1012;--cc-color-border-default:#354573;--cc-color-border-subtle:#253460;--cc-color-border-strong:#91a1c8;--cc-color-border-accent:#84a1f0;--cc-color-border-focus:#bad0ff;--cc-color-border-success:#73c076;--cc-color-border-warning:#ea9d60;--cc-color-border-danger:#f17262;--cc-color-border-info:#61b9ce;--cc-color-activity-planned:#91a1c8;--cc-color-activity-done:#a2bcff;--cc-color-activity-current:#cdddff;--cc-color-tag-grey-bg:#3b3d41;--cc-color-tag-grey-fg:#d5d7de;--cc-color-tag-green-bg:#2a452b;--cc-color-tag-green-fg:#b8e6b8;--cc-color-tag-blue-bg:#2b3d5e;--cc-color-tag-blue-fg:#bbd8ff;--cc-color-tag-amber-bg:#4f381b;--cc-color-tag-amber-fg:#f9cfa0;--cc-color-tag-violet-bg:#423657;--cc-color-tag-violet-fg:#e0cbff;--cc-color-tag-red-bg:#5b2f2a;--cc-color-tag-red-fg:#ffc2b9;--cc-color-tag-teal-bg:#214445;--cc-color-tag-teal-fg:#aae4e7;--cc-color-tag-pink-bg:#543041;--cc-color-tag-pink-fg:#ffc1df;--cc-color-speaker-0:#bad0ff;--cc-color-speaker-1:#7db2ff;--cc-color-speaker-2:#f4b45a;--cc-color-speaker-3:#c4a1ff;--cc-color-speaker-4:#f58fb6;--cc-color-speaker-5:#5fd0d6;--cc-color-recording:#ff5a4f;--cc-brand-ground:#2b3f86;--cc-brand-ground-ink:#fff;--cc-brand-ground-ink-muted:#d6ddf3}@media (prefers-reduced-motion:reduce){:root{--cc-motion-stretch-lead-duration:0s;--cc-motion-stretch-trail-duration:0s;--cc-motion-stretch-trail-delay:0s;--cc-motion-swipe-duration:0s;--cc-motion-swipe-tilt:0;--cc-motion-swipe-exit-rotation:0}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}";
2
+ export declare const errorPageCssHash = "sha256-RO2Zd2RtV2oJQCe36OZPzDeJznwEUBaePE+vE88q/go=";
3
+ export declare const errorPageFavicon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\" width=\"64\" height=\"64\" role=\"img\" aria-label=\"Northlight\">\n <defs>\n <linearGradient id=\"northlight-tile\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"64\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#2dcb81\"/><stop offset=\"1\" stop-color=\"#218e5a\"/></linearGradient>\n </defs>\n <rect width=\"64\" height=\"64\" rx=\"14\" fill=\"url(#northlight-tile)\"/>\n <path transform=\"translate(9.006 3.741) scale(0.05926)\" fill=\"#ffffff\" d=\"M234 294m0 0h2l-1 5-6 16-5 15-6 25-4 23-2 22-1 5v47l5 38 5 26 6 22 10 24 8 16 9 14 14 19 13 16 11 13 9 11 11 12 7 8 13 16 11 14 14 19 12 19 12 23 7 17 6 23 3 14 3-1 5-15 20-84 6-24 6-21 10-33 10-25 8-16 8-15 8-12 9-12 8-10 9-10 7-8 6-7 20-20h2l2-4 17-17 7-8 10-13 14-21 8-16 8-18 5-15 2-7 2 1 6 36 2 18v41l-4 28-5 19-7 19-10 21-8 13-10 15-13 17-11 13-12 14-9 10-7 8-9 11h-2l-2 4-9 11-14 19-8 12-15 25-11 21-12 26-9 23-5 12-13 38-12 39-5 18-5 17h-2l-9-29-9-27-14-38-13-29-8-16-11-18-10-13-7-9-25-25-3-2v-2l-3-1v-2l-4-2-10-9-8-7-14-12-20-18-13-13-9-11-12-16-12-20-12-25-7-19-6-23-4-24-1-11-1-3v-39l3-23 6-27 7-23 5-11 11-23 9-16 10-14 8-11 9-11 10-11zM430 22m0 0h2v2h2l7 8 10 11 9 11 12 16 9 15 8 16 6 15 5 19 2 11 1 12v18l-1 16-5 24-5 16-7 15-9 17-7 11-10 15-10 13-9 11-13 14-7 8-11 12-7 8-13 16-11 15-13 20-10 18-8 16-7 18-5 15-4 18-2 14-1 27 2 24 3 17 5 23 8 30 12 36 9 28 3 8 4 12v2l-4-2-68-102-13-22-11-23-9-24-7-26-4-23-2-16v-31l3-25 6-27 7-21 7-15 8-16 14-21 11-14 26-30 12-13 8-10h2l2-4 10-11 7-9 14-19 7-10 13-24 7-19 4-15 3-14 3-22 2-24v-20l-2-31zM615 384m0 0 2 1 6 36 2 18v41l-4 28-5 19-7 19-10 21-8 13-10 15-13 17-11 13-12 14-9 10-7 8-9 11h-2l-2 4-9 11-14 19-8 12-15 25-11 21-2 5h-3l-2 2h-13l-6-5-11-6 1-9h-2l2-14-2 3 1-8 9-36 6-21 10-33 10-25 8-16 8-15 8-12 9-12 8-10 9-10 7-8 6-7 20-20h2l2-4 17-17 7-8 10-13 14-21 8-16 8-18 5-15zM557 254m0 0 2 1 4 16 2 16v34l-2 18-5 20-8 24-14 28-10 16-11 16-13 15-12 14-11 13-11 14-14 19-12 20-8 16-7 19-6 20-4 20-4 35-3 41-3 52-4 28-1 3h-2l-8-42-10-52-7-33-7-43v-54l4-24 5-17 8-20 10-19 7-10 10-13 9-11 19-19 8-7 16-15 8-7 9-9 8-7 11-11 1-2h2l2-4 11-13 10-14 11-17 9-19 8-21zM185 615m0 0 4 5 6 10 9 12 2 1 3 5 5-2 1-1h8l5 5 2 3 7 3 6 3 4 5 8 6 5 3v2h2v2h6l4 3 6 1 1 8 10 3 4 2 9 2 5 6 6 1h6l8 8 7 1 9 7h5l1-4-4-6-10-13-7-9-1-3h-2l-7-9v-3l7 6 7 9 11 14 14 19 12 19 12 23 7 17 6 23 3 14 3-1 5-15 10-42 5-22h2l1-4 1 4-1 8h-2l3 4-1 8 11 6 5 4h13l4-3-1 6-8 17-9 23-5 12-13 38-12 39-5 18-5 17h-2l-9-29-9-27-14-38-13-29-8-16-11-18-10-13-7-9-25-25-3-2v-2l-3-1v-2l-4-2-10-9-8-7-14-12-20-18-13-13-9-11-12-16-9-15zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1v7l1 2 1 15 7 1 5-2 5 1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21 4-21h1v10l-4 30-3 34-4 69-4 28-1 3h-2l-8-42-10-52-7-33-6-37zM430 22m0 0h2v2h2l7 8 10 11 9 11 4 5 1 5 2 4 1 7 2 2-1 3-5-1h-7l-8-2-5 1v7l-1 1h-5l-2-8-1-2-1-15h-2l-2-31zM417 598m0 0h1v10l-4 30-3 34-4 69-4 28-1 3h-2l-7-37-1-16h8l2 1v-2h2l1-2 2-35v-13l-2-3-3-5-1-8 1-9-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21zM417 598m0 0h1v10l-4 30-3 34-1 17h-2v15l-1 12h-1v-18l1-17v-13l-2-3-3-5-1-8 1-9-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21zM310 619m0 0 4 2 4 6 5 8 7 9 3 5 2-1 2 1 2 10 6-1 2 1v2h-5l3 7 9 13 6 9 3 1v-2l-4-14h3l5 16 3 8 4 12v2l-4-2-60-90zM255 597m0 0 5 3 12 16 9 11 11 13 9 11 11 12 4 5-1 3-7-7-4-1-7-4v-2l-4-2-4-4 4 1 3-1v-3l-5-2-3-5v-2h-2l-6-8v-2l-3-1-1-2-8-1 1-2-2-8-3-4v-2h-2l-4-6-3-4zM425 181m0 0 7 1 1 3 12 2 2 3 3 1v-2h3l1 3-6 2-1 3h-2v2h-2l-1 7-5 1-2-5 2-3h3l1-5-3 1-3 3-1-4-5-2v-5h-6l-3-3zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1v7l1 2 1 15 2 1h-2l3 13 2 10v5l-3-4-5-25-4-26zM340 614m0 0 1 2h2l6 20 6 18 3 15-2-1-5-15-2-4v-5h-6l-3-2-9-2 2-3v2l5-4h4 2l-1-5-3-12zM296 649m0 0 5 2 11 12 4 5-1 3-7-7-4-1-7-4v-2l-4-2-4-4 4 1 3-1zM403 625m0 0h2l2 11-1 8-2 7-2 1v-9l-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3zM417 598m0 0h1v10l-4 30-2 24h-1l-1-17h-2l1-4 1-1 3-21zM163 561m0 0 2 3 5 16 2 6 2 1 3 9 2 4 4-1 1-2 1 3h-2l-2 5 3 6-1 2-3-3-11-24-4-11-2-10zM439 685m0 0 1 2h9l3 4v6l7 2 3 7-4-1-6-4-5-4v-7h-9l-2-2zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1-1 7-2-2v-7h-2zM434 687m0 0h1v6l-3 9-7 29-4 5 1-8 9-36zM317 672m0 0 6 4 9 11 11 14 6 8v2l-4-2-10-13-7-9-1-3h-2l-7-9zM276 622m0 0 5 5 11 13 7 8-1 2-7-4-3-5v-2h-2l-6-8v-2l-3-1-2-4zM310 619m0 0 4 2 4 6 5 8 7 9-1 4-4-5-8-11-7-11zM416 172m0 0 2 1-1 7h-2v5l4-1-1 3-5 2-3-1v-7l4-8zM381 664m0 0 2 4 6 27v5l-1-2h-2l-5-24zM443 655m0 0 1 4-7 25-1 2h-2l1-7 6-22h2zM163 561m0 0 2 3 5 16 2 6 2 1v5l-2 1-7-18-2-10zM490 702m0 0 1 3-10 15-3 5-4 3v-5l5-5 7-11zM387 698m0 0 1 2h2l3 16v14h-1l-5-26zM426 139m0 0 1 3-1 5-7 22-2-1 2-9 5-18h2zM466 739m0 0h2l-1 6-8 15-3 1 2-7 7-12zM411 636m0 0h2v12l-1 14h-1l-1-17h-2l1-4zM349 645m0 0h3l3 9 3 15-2-1-5-15-2-4zM335 694m0 0 5 3 9 12v2l-4-2-10-13zM386 633m0 0 7 1-3 2-4 1-2 4h-4l-2-6h5zM547 287m0 0 3 2-3 7-1 5h-2l-1 4-2-1 1-5zM557 254m0 0 2 1 3 13-4-1 1-2h-2l-1 3-1-3zM560 311m0 0 3 1-2 5-3 6-9-3v-1l9-1zM409 664m0 0h1v25h-1l-2-24zM340 614m0 0 1 2h2l4 16-4-2-3-12zM438 705m0 0 10 2 1 7-3-1-4-4h-5zM502 685m0 0 1 3-8 11-3 1 2-5zM422 191m0 0 4 1 3 4-2 4-5-3zM359 675m0 0h3l4 13-1 4-4-9zM225 599m0 0 5 2 12 6-3 1-9-4-6-3zM255 597m0 0 5 3 6 8-1 2-3-1-4-6-3-4zM414 180m0 0h1v5l4-1-1 3-5 2-3-1 1-5zM341 665m0 0 3 1 6 9-1 4-8-12zM370 608m0 0h1l1 9 3 1-2 10h-1l-2-12zM439 671m0 0 1 2-4 13h-2l1-7 3-7zM341 658m0 0 6 1v2h-5l-1 5-3-3 1-4zM373 625m0 0h2l1 9 2 1h-2l-1 5h-1l-1-6zM185 615m0 0 4 5 5 8-1 3-4-5-4-7zM434 687m0 0h1v6l-3 9-2 3 1-13zM385 686m0 0h2l2 9v5l-1-2h-2l-1-5zM390 711m0 0h2l1 8v11h-1l-2-10zM355 657m0 0 2 3 4 12v3l-3-1-2-10zM413 624m0 0h1v14l-1-2h-2l1-11zM494 120m0 0h2l2 6v10l-2-3-2-9zM163 561m0 0 2 3 4 13-1 3v-2h-2l-3-13zM489 106m0 0h2l4 10-2 4-4-11zM230 609m0 0 5 1 4 5 3 2-6-1-3-3v-2l-3-1zM392 660m0 0h2v2h2l5 5 2 1-1 4-10-10zM254 615m0 0 8 1 1 1v5l-2-1v-2l-6-2zM190 587m0 0 6 1 2-1 4 2 1 3-13-2zM417 598m0 0h1v10l-1 5-2-1 1-9zM273 545m0 0 2 3 3 8v3h-2l-3-8z\"/>\n</svg>\n";
4
+ export declare const errorPageMark = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-77.5 12 931 931\" width=\"22\" height=\"22\" focusable=\"false\" aria-hidden=\"true\" class=\"shrink-0 text-brand\"><path fill=\"currentColor\" d=\"M234 294m0 0h2l-1 5-6 16-5 15-6 25-4 23-2 22-1 5v47l5 38 5 26 6 22 10 24 8 16 9 14 14 19 13 16 11 13 9 11 11 12 7 8 13 16 11 14 14 19 12 19 12 23 7 17 6 23 3 14 3-1 5-15 20-84 6-24 6-21 10-33 10-25 8-16 8-15 8-12 9-12 8-10 9-10 7-8 6-7 20-20h2l2-4 17-17 7-8 10-13 14-21 8-16 8-18 5-15 2-7 2 1 6 36 2 18v41l-4 28-5 19-7 19-10 21-8 13-10 15-13 17-11 13-12 14-9 10-7 8-9 11h-2l-2 4-9 11-14 19-8 12-15 25-11 21-12 26-9 23-5 12-13 38-12 39-5 18-5 17h-2l-9-29-9-27-14-38-13-29-8-16-11-18-10-13-7-9-25-25-3-2v-2l-3-1v-2l-4-2-10-9-8-7-14-12-20-18-13-13-9-11-12-16-12-20-12-25-7-19-6-23-4-24-1-11-1-3v-39l3-23 6-27 7-23 5-11 11-23 9-16 10-14 8-11 9-11 10-11zM430 22m0 0h2v2h2l7 8 10 11 9 11 12 16 9 15 8 16 6 15 5 19 2 11 1 12v18l-1 16-5 24-5 16-7 15-9 17-7 11-10 15-10 13-9 11-13 14-7 8-11 12-7 8-13 16-11 15-13 20-10 18-8 16-7 18-5 15-4 18-2 14-1 27 2 24 3 17 5 23 8 30 12 36 9 28 3 8 4 12v2l-4-2-68-102-13-22-11-23-9-24-7-26-4-23-2-16v-31l3-25 6-27 7-21 7-15 8-16 14-21 11-14 26-30 12-13 8-10h2l2-4 10-11 7-9 14-19 7-10 13-24 7-19 4-15 3-14 3-22 2-24v-20l-2-31zM615 384m0 0 2 1 6 36 2 18v41l-4 28-5 19-7 19-10 21-8 13-10 15-13 17-11 13-12 14-9 10-7 8-9 11h-2l-2 4-9 11-14 19-8 12-15 25-11 21-2 5h-3l-2 2h-13l-6-5-11-6 1-9h-2l2-14-2 3 1-8 9-36 6-21 10-33 10-25 8-16 8-15 8-12 9-12 8-10 9-10 7-8 6-7 20-20h2l2-4 17-17 7-8 10-13 14-21 8-16 8-18 5-15zM557 254m0 0 2 1 4 16 2 16v34l-2 18-5 20-8 24-14 28-10 16-11 16-13 15-12 14-11 13-11 14-14 19-12 20-8 16-7 19-6 20-4 20-4 35-3 41-3 52-4 28-1 3h-2l-8-42-10-52-7-33-7-43v-54l4-24 5-17 8-20 10-19 7-10 10-13 9-11 19-19 8-7 16-15 8-7 9-9 8-7 11-11 1-2h2l2-4 11-13 10-14 11-17 9-19 8-21zM185 615m0 0 4 5 6 10 9 12 2 1 3 5 5-2 1-1h8l5 5 2 3 7 3 6 3 4 5 8 6 5 3v2h2v2h6l4 3 6 1 1 8 10 3 4 2 9 2 5 6 6 1h6l8 8 7 1 9 7h5l1-4-4-6-10-13-7-9-1-3h-2l-7-9v-3l7 6 7 9 11 14 14 19 12 19 12 23 7 17 6 23 3 14 3-1 5-15 10-42 5-22h2l1-4 1 4-1 8h-2l3 4-1 8 11 6 5 4h13l4-3-1 6-8 17-9 23-5 12-13 38-12 39-5 18-5 17h-2l-9-29-9-27-14-38-13-29-8-16-11-18-10-13-7-9-25-25-3-2v-2l-3-1v-2l-4-2-10-9-8-7-14-12-20-18-13-13-9-11-12-16-9-15zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1v7l1 2 1 15 7 1 5-2 5 1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21 4-21h1v10l-4 30-3 34-4 69-4 28-1 3h-2l-8-42-10-52-7-33-6-37zM430 22m0 0h2v2h2l7 8 10 11 9 11 4 5 1 5 2 4 1 7 2 2-1 3-5-1h-7l-8-2-5 1v7l-1 1h-5l-2-8-1-2-1-15h-2l-2-31zM417 598m0 0h1v10l-4 30-3 34-4 69-4 28-1 3h-2l-7-37-1-16h8l2 1v-2h2l1-2 2-35v-13l-2-3-3-5-1-8 1-9-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21zM417 598m0 0h1v10l-4 30-3 34-1 17h-2v15l-1 12h-1v-18l1-17v-13l-2-3-3-5-1-8 1-9-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21zM310 619m0 0 4 2 4 6 5 8 7 9 3 5 2-1 2 1 2 10 6-1 2 1v2h-5l3 7 9 13 6 9 3 1v-2l-4-14h3l5 16 3 8 4 12v2l-4-2-60-90zM255 597m0 0 5 3 12 16 9 11 11 13 9 11 11 12 4 5-1 3-7-7-4-1-7-4v-2l-4-2-4-4 4 1 3-1v-3l-5-2-3-5v-2h-2l-6-8v-2l-3-1-1-2-8-1 1-2-2-8-3-4v-2h-2l-4-6-3-4zM425 181m0 0 7 1 1 3 12 2 2 3 3 1v-2h3l1 3-6 2-1 3h-2v2h-2l-1 7-5 1-2-5 2-3h3l1-5-3 1-3 3-1-4-5-2v-5h-6l-3-3zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1v7l1 2 1 15 2 1h-2l3 13 2 10v5l-3-4-5-25-4-26zM340 614m0 0 1 2h2l6 20 6 18 3 15-2-1-5-15-2-4v-5h-6l-3-2-9-2 2-3v2l5-4h4 2l-1-5-3-12zM296 649m0 0 5 2 11 12 4 5-1 3-7-7-4-1-7-4v-2l-4-2-4-4 4 1 3-1zM403 625m0 0h2l2 11-1 8-2 7-2 1v-9l-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3zM417 598m0 0h1v10l-4 30-2 24h-1l-1-17h-2l1-4 1-1 3-21zM163 561m0 0 2 3 5 16 2 6 2 1 3 9 2 4 4-1 1-2 1 3h-2l-2 5 3 6-1 2-3-3-11-24-4-11-2-10zM439 685m0 0 1 2h9l3 4v6l7 2 3 7-4-1-6-4-5-4v-7h-9l-2-2zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1-1 7-2-2v-7h-2zM434 687m0 0h1v6l-3 9-7 29-4 5 1-8 9-36zM317 672m0 0 6 4 9 11 11 14 6 8v2l-4-2-10-13-7-9-1-3h-2l-7-9zM276 622m0 0 5 5 11 13 7 8-1 2-7-4-3-5v-2h-2l-6-8v-2l-3-1-2-4zM310 619m0 0 4 2 4 6 5 8 7 9-1 4-4-5-8-11-7-11zM416 172m0 0 2 1-1 7h-2v5l4-1-1 3-5 2-3-1v-7l4-8zM381 664m0 0 2 4 6 27v5l-1-2h-2l-5-24zM443 655m0 0 1 4-7 25-1 2h-2l1-7 6-22h2zM163 561m0 0 2 3 5 16 2 6 2 1v5l-2 1-7-18-2-10zM490 702m0 0 1 3-10 15-3 5-4 3v-5l5-5 7-11zM387 698m0 0 1 2h2l3 16v14h-1l-5-26zM426 139m0 0 1 3-1 5-7 22-2-1 2-9 5-18h2zM466 739m0 0h2l-1 6-8 15-3 1 2-7 7-12zM411 636m0 0h2v12l-1 14h-1l-1-17h-2l1-4zM349 645m0 0h3l3 9 3 15-2-1-5-15-2-4zM335 694m0 0 5 3 9 12v2l-4-2-10-13zM386 633m0 0 7 1-3 2-4 1-2 4h-4l-2-6h5zM547 287m0 0 3 2-3 7-1 5h-2l-1 4-2-1 1-5zM557 254m0 0 2 1 3 13-4-1 1-2h-2l-1 3-1-3zM560 311m0 0 3 1-2 5-3 6-9-3v-1l9-1zM409 664m0 0h1v25h-1l-2-24zM340 614m0 0 1 2h2l4 16-4-2-3-12zM438 705m0 0 10 2 1 7-3-1-4-4h-5zM502 685m0 0 1 3-8 11-3 1 2-5zM422 191m0 0 4 1 3 4-2 4-5-3zM359 675m0 0h3l4 13-1 4-4-9zM225 599m0 0 5 2 12 6-3 1-9-4-6-3zM255 597m0 0 5 3 6 8-1 2-3-1-4-6-3-4zM414 180m0 0h1v5l4-1-1 3-5 2-3-1 1-5zM341 665m0 0 3 1 6 9-1 4-8-12zM370 608m0 0h1l1 9 3 1-2 10h-1l-2-12zM439 671m0 0 1 2-4 13h-2l1-7 3-7zM341 658m0 0 6 1v2h-5l-1 5-3-3 1-4zM373 625m0 0h2l1 9 2 1h-2l-1 5h-1l-1-6zM185 615m0 0 4 5 5 8-1 3-4-5-4-7zM434 687m0 0h1v6l-3 9-2 3 1-13zM385 686m0 0h2l2 9v5l-1-2h-2l-1-5zM390 711m0 0h2l1 8v11h-1l-2-10zM355 657m0 0 2 3 4 12v3l-3-1-2-10zM413 624m0 0h1v14l-1-2h-2l1-11zM494 120m0 0h2l2 6v10l-2-3-2-9zM163 561m0 0 2 3 4 13-1 3v-2h-2l-3-13zM489 106m0 0h2l4 10-2 4-4-11zM230 609m0 0 5 1 4 5 3 2-6-1-3-3v-2l-3-1zM392 660m0 0h2v2h2l5 5 2 1-1 4-10-10zM254 615m0 0 8 1 1 1v5l-2-1v-2l-6-2zM190 587m0 0 6 1 2-1 4 2 1 3-13-2zM417 598m0 0h1v10l-1 5-2-1 1-9zM273 545m0 0 2 3 3 8v3h-2l-3-8z\"></path></svg>";
5
+ export declare const errorPageBodies: string[];
6
+ export declare const errorPageCopy: Readonly<Record<number, {
7
+ title: string;
8
+ message: string;
9
+ }>>;
10
+ export declare const errorPageGenericCopy: {
11
+ client: {
12
+ title: string;
13
+ message: string;
14
+ };
15
+ server: {
16
+ title: string;
17
+ message: string;
18
+ };
19
+ };
@@ -0,0 +1,8 @@
1
+ // Generated by scripts/build-error-page.ts from @northlight-systems/cloud-ui. Do not edit.
2
+ export const errorPageCss = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--container-md:28rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--cc-font-family-sans);--default-mono-font-family:var(--cc-font-family-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:before,:after{border-color:var(--cc-color-border-default)}html{background-color:var(--cc-color-bg-canvas);color:var(--cc-color-fg-default);font-family:var(--cc-font-family-sans)}body{font-size:var(--cc-text-body-size);line-height:var(--cc-text-body-line-height);letter-spacing:var(--cc-text-body-tracking);font-weight:var(--cc-text-body-weight)}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.relative{position:relative}.m-0{margin:0}.mt-3{margin-top:calc(var(--cc-spacing-unit) * 3)}.-ml-1\\.5{margin-left:calc(var(--cc-spacing-unit) * -1.5)}.flex{display:flex}.inline-flex{display:inline-flex}.h-10{height:calc(var(--cc-spacing-unit) * 10)}.h-14{height:calc(var(--cc-spacing-unit) * 14)}.min-h-dvh{min-height:100dvh}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:var(--cc-spacing-unit)}.gap-2{gap:calc(var(--cc-spacing-unit) * 2)}.gap-3{gap:calc(var(--cc-spacing-unit) * 3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded-md{border-radius:var(--cc-radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-accent{border-color:var(--cc-color-border-accent)}.border-default{border-color:var(--cc-color-border-default)}.border-transparent{border-color:#0000}.bg-accent{background-color:var(--cc-color-bg-accent)}.bg-canvas{background-color:var(--cc-color-bg-canvas)}.bg-neutral{background-color:var(--cc-color-bg-neutral)}.bg-surface{background-color:var(--cc-color-bg-surface)}.px-4{padding-inline:calc(var(--cc-spacing-unit) * 4)}.px-4\\.5{padding-inline:calc(var(--cc-spacing-unit) * 4.5)}.px-6{padding-inline:calc(var(--cc-spacing-unit) * 6)}.py-1{padding-block:var(--cc-spacing-unit)}.py-12{padding-block:calc(var(--cc-spacing-unit) * 12)}.text-center{text-align:center}.font-mono{font-family:var(--cc-font-family-mono)}.text-body{font-size:var(--cc-text-body-size);line-height:var(--tw-leading,var(--cc-text-body-line-height));letter-spacing:var(--tw-tracking,var(--cc-text-body-tracking));font-weight:var(--tw-font-weight,var(--cc-text-body-weight))}.text-h1{font-size:var(--cc-text-h1-size);line-height:var(--tw-leading,var(--cc-text-h1-line-height));letter-spacing:var(--tw-tracking,var(--cc-text-h1-tracking));font-weight:var(--tw-font-weight,var(--cc-text-h1-weight))}.text-label{font-size:var(--cc-text-label-size);line-height:var(--tw-leading,var(--cc-text-label-line-height));letter-spacing:var(--tw-tracking,var(--cc-text-label-tracking));font-weight:var(--tw-font-weight,var(--cc-text-label-weight))}.text-mono{font-size:var(--cc-text-mono-size);line-height:var(--tw-leading,var(--cc-text-mono-line-height));letter-spacing:var(--tw-tracking,var(--cc-text-mono-tracking));font-weight:var(--tw-font-weight,var(--cc-text-mono-weight))}.font-medium{--tw-font-weight:var(--cc-font-weight-medium);font-weight:var(--cc-font-weight-medium)}.font-semibold{--tw-font-weight:var(--cc-font-weight-semibold);font-weight:var(--cc-font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-brand{color:var(--cc-color-fg-brand)}.text-default{color:var(--cc-color-fg-default)}.text-muted{color:var(--cc-color-fg-muted)}.text-on-accent{color:var(--cc-color-fg-on-accent)}.no-underline{text-decoration-line:none}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-fast{--tw-duration:var(--cc-duration-fast);transition-duration:var(--cc-duration-fast)}.ease-standard{--tw-ease:var(--cc-easing-standard);transition-timing-function:var(--cc-easing-standard)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\\:bg-accent-hover:hover{background-color:var(--cc-color-bg-accent-hover)}.hover\\:bg-neutral-hover:hover{background-color:var(--cc-color-bg-neutral-hover)}.hover\\:text-accent:hover{color:var(--cc-color-fg-accent)}}.focus-visible\\:focus-ring:focus-visible{outline:var(--cc-focus-ring-width) solid var(--cc-color-border-focus);outline-offset:var(--cc-focus-ring-offset)}.active\\:bg-accent-pressed:active{background-color:var(--cc-color-bg-accent-pressed)}.active\\:bg-neutral-pressed:active{background-color:var(--cc-color-bg-neutral-pressed)}.data-disabled\\:opacity-40[data-disabled]{opacity:.4}.data-focus-visible\\:focus-ring[data-focus-visible]{outline:var(--cc-focus-ring-width) solid var(--cc-color-border-focus);outline-offset:var(--cc-focus-ring-offset)}.data-hovered\\:bg-accent-hover[data-hovered]{background-color:var(--cc-color-bg-accent-hover)}.data-hovered\\:bg-neutral-hover[data-hovered]{background-color:var(--cc-color-bg-neutral-hover)}.data-pressed\\:bg-accent-pressed[data-pressed]{background-color:var(--cc-color-bg-accent-pressed)}.data-pressed\\:bg-neutral-pressed[data-pressed]{background-color:var(--cc-color-bg-neutral-pressed)}@media (min-width:48rem){.md\\:px-6{padding-inline:calc(var(--cc-spacing-unit) * 6)}}}:root{--cc-font-family-sans:Geist, ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;--cc-font-family-mono:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--cc-font-weight-normal:400;--cc-font-weight-medium:500;--cc-font-weight-semibold:600;--cc-font-weight-bold:700;--cc-text-display-size:2.625rem;--cc-text-display-line-height:1.0952;--cc-text-display-tracking:-.02em;--cc-text-display-weight:600;--cc-text-h1-size:1.75rem;--cc-text-h1-line-height:1.2143;--cc-text-h1-tracking:-.02em;--cc-text-h1-weight:600;--cc-text-h2-size:1.25rem;--cc-text-h2-line-height:1.3;--cc-text-h2-tracking:-.02em;--cc-text-h2-weight:600;--cc-text-body-size:.9375rem;--cc-text-body-line-height:1.5333;--cc-text-body-tracking:0em;--cc-text-body-weight:400;--cc-text-small-size:.84375rem;--cc-text-small-line-height:1.4815;--cc-text-small-tracking:0em;--cc-text-small-weight:400;--cc-text-label-size:.8125rem;--cc-text-label-line-height:1.2308;--cc-text-label-tracking:0em;--cc-text-label-weight:500;--cc-text-mono-size:.78125rem;--cc-text-mono-line-height:1.44;--cc-text-mono-tracking:0em;--cc-text-mono-weight:400;--cc-spacing-unit:.25rem;--cc-spacing-row:3px;--cc-radius-none:0px;--cc-radius-sm:6px;--cc-radius-md:8px;--cc-radius-lg:12px;--cc-radius-xl:16px;--cc-radius-full:9999px;--cc-duration-fast:.12s;--cc-duration-normal:.2s;--cc-duration-slow:.32s;--cc-easing-standard:cubic-bezier(.2, 0, 0, 1);--cc-easing-enter:cubic-bezier(0, 0, 0, 1);--cc-easing-exit:cubic-bezier(.3, 0, 1, 1);--cc-breakpoint-sm:40rem;--cc-breakpoint-md:48rem;--cc-breakpoint-lg:64rem;--cc-breakpoint-xl:80rem;--cc-z-index-base:0;--cc-z-index-dropdown:1000;--cc-z-index-sticky:1100;--cc-z-index-overlay:1200;--cc-z-index-modal:1300;--cc-z-index-popover:1400;--cc-z-index-toast:1500;--cc-focus-ring-width:2px;--cc-focus-ring-offset:2px;--cc-motion-stretch-lead-duration:.24s;--cc-motion-stretch-trail-duration:.36s;--cc-motion-stretch-trail-delay:30ms;--cc-motion-stretch-easing:cubic-bezier(.3, 1.1, .4, 1);--cc-motion-swipe-duration:.38s;--cc-motion-swipe-easing:cubic-bezier(.2, .8, .2, 1);--cc-motion-swipe-threshold:70px;--cc-motion-swipe-tilt:.025;--cc-motion-swipe-drag-range:120px;--cc-motion-swipe-exit-travel:115;--cc-motion-swipe-exit-lift:-4;--cc-motion-swipe-exit-rotation:5;--cc-motion-swipe-drag-resistance:.25;--cc-motion-rail-lead-follow:.28;--cc-motion-rail-trail-follow:.16}:root,[data-theme=light]{color-scheme:light;--cc-color-bg-canvas:#f0f2f4;--cc-color-bg-surface:#fff;--cc-color-bg-surface-overlay:#fff;--cc-color-bg-surface-sunken:#e5e7ea;--cc-color-bg-surface-zone:#e5e7ea;--cc-color-bg-surface-hover:#ebedf0;--cc-color-bg-surface-pressed:#dee0e3;--cc-color-bg-neutral:#e5e7ea;--cc-color-bg-neutral-hover:#d7d9dc;--cc-color-bg-neutral-pressed:#cbcdd0;--cc-color-bg-backdrop:#15171a52;--cc-color-bg-accent:#217f51;--cc-color-bg-accent-hover:#1e6e46;--cc-color-bg-accent-pressed:#1a5e3c;--cc-color-bg-accent-subtle:#d5f7e1;--cc-color-bg-accent-subtle-pressed:#aaefc5;--cc-color-bg-danger-solid:#bf2a1f;--cc-color-bg-danger-solid-hover:#ae261c;--cc-color-bg-danger-solid-pressed:#9d2219;--cc-color-bg-disabled:#e5e7ea;--cc-color-bg-success:#e7f1d9;--cc-color-bg-warning:#fcedd4;--cc-color-bg-danger:#fce5e2;--cc-color-bg-info:#e0eafb;--cc-color-bg-track:#e5e7ea;--cc-color-bg-inverse:#15171a;--cc-color-fg-default:#15171a;--cc-color-fg-muted:#505256;--cc-color-fg-disabled:#919498;--cc-color-fg-accent:#1e6e46;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#547200;--cc-color-fg-warning:#8f5200;--cc-color-fg-danger:#bf2a1f;--cc-color-fg-info:#1558c0;--cc-color-fg-on-inverse:#fff;--cc-color-border-default:#d7d9dc;--cc-color-border-subtle:#e5e7ea;--cc-color-border-strong:#787b7f;--cc-color-border-accent:#217f51;--cc-color-border-focus:#217f51;--cc-color-border-success:#547200;--cc-color-border-warning:#8f5200;--cc-color-border-danger:#bf2a1f;--cc-color-border-info:#1558c0;--cc-color-activity-planned:#787b7f;--cc-color-activity-done:#217f51;--cc-color-activity-current:#1e6e46;--cc-color-tag-grey-bg:#e5e7ea;--cc-color-tag-grey-fg:#15171a;--cc-color-tag-green-bg:#dbf3da;--cc-color-tag-green-fg:#256c2c;--cc-color-tag-blue-bg:#dbecff;--cc-color-tag-blue-fg:#2c56a8;--cc-color-tag-amber-bg:#fee7ce;--cc-color-tag-amber-fg:#844c00;--cc-color-tag-violet-bg:#efe5ff;--cc-color-tag-violet-fg:#674698;--cc-color-tag-red-bg:#ffe0db;--cc-color-tag-red-fg:#9e2d28;--cc-color-tag-teal-bg:#d4f2f3;--cc-color-tag-teal-fg:#00696f;--cc-color-tag-pink-bg:#ffe0ef;--cc-color-tag-pink-fg:#8e3665;--cc-color-speaker-0:#1e6e46;--cc-color-speaker-1:#2f6fd6;--cc-color-speaker-2:#b36b00;--cc-color-speaker-3:#7a4fd0;--cc-color-speaker-4:#c23c78;--cc-color-speaker-5:#12828a;--cc-color-recording:#d0342a}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--cc-color-bg-canvas:#0e1012;--cc-color-bg-surface:#181a1d;--cc-color-bg-surface-overlay:#181a1d;--cc-color-bg-surface-sunken:#212326;--cc-color-bg-surface-zone:#212326;--cc-color-bg-surface-hover:#25272a;--cc-color-bg-surface-pressed:#2f3134;--cc-color-bg-neutral:#212326;--cc-color-bg-neutral-hover:#2f3134;--cc-color-bg-neutral-pressed:#3c3e41;--cc-color-bg-backdrop:#0009;--cc-color-bg-accent:#217f51;--cc-color-bg-accent-hover:#1e6e46;--cc-color-bg-accent-pressed:#1a5e3c;--cc-color-bg-accent-subtle:#072d1a;--cc-color-bg-accent-subtle-pressed:#0f4329;--cc-color-bg-danger-solid:#d0342a;--cc-color-bg-danger-solid-hover:#b72e25;--cc-color-bg-danger-solid-pressed:#a22921;--cc-color-bg-disabled:#212326;--cc-color-bg-success:#222d0d;--cc-color-bg-warning:#35260f;--cc-color-bg-danger:#3b1715;--cc-color-bg-info:#10264a;--cc-color-bg-track:#25272a;--cc-color-bg-inverse:#f0f2f4;--cc-color-fg-default:#f0f2f4;--cc-color-fg-muted:#acaeb2;--cc-color-fg-disabled:#505256;--cc-color-fg-accent:#5ada97;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#a2cb57;--cc-color-fg-warning:#f4b45a;--cc-color-fg-danger:#ff8175;--cc-color-fg-info:#7db2ff;--cc-color-fg-on-inverse:#0e1012;--cc-color-border-default:#2f3134;--cc-color-border-subtle:#212326;--cc-color-border-strong:#787b7f;--cc-color-border-accent:#09b972;--cc-color-border-focus:#5ada97;--cc-color-border-success:#8db445;--cc-color-border-warning:#da9a46;--cc-color-border-danger:#d0342a;--cc-color-border-info:#639cef;--cc-color-activity-planned:#787b7f;--cc-color-activity-done:#09b972;--cc-color-activity-current:#5ada97;--cc-color-tag-grey-bg:#212326;--cc-color-tag-grey-fg:#f0f2f4;--cc-color-tag-green-bg:#2a452b;--cc-color-tag-green-fg:#b8e6b8;--cc-color-tag-blue-bg:#2b3d5e;--cc-color-tag-blue-fg:#bbd8ff;--cc-color-tag-amber-bg:#4f381b;--cc-color-tag-amber-fg:#f9cfa0;--cc-color-tag-violet-bg:#423657;--cc-color-tag-violet-fg:#e0cbff;--cc-color-tag-red-bg:#5b2f2a;--cc-color-tag-red-fg:#ffc2b9;--cc-color-tag-teal-bg:#214445;--cc-color-tag-teal-fg:#aae4e7;--cc-color-tag-pink-bg:#543041;--cc-color-tag-pink-fg:#ffc1df;--cc-color-speaker-0:#5ada97;--cc-color-speaker-1:#7db2ff;--cc-color-speaker-2:#f4b45a;--cc-color-speaker-3:#c4a1ff;--cc-color-speaker-4:#f58fb6;--cc-color-speaker-5:#5fd0d6;--cc-color-recording:#ff5a4f}}[data-theme=dark]{color-scheme:dark;--cc-color-bg-canvas:#0e1012;--cc-color-bg-surface:#181a1d;--cc-color-bg-surface-overlay:#181a1d;--cc-color-bg-surface-sunken:#212326;--cc-color-bg-surface-zone:#212326;--cc-color-bg-surface-hover:#25272a;--cc-color-bg-surface-pressed:#2f3134;--cc-color-bg-neutral:#212326;--cc-color-bg-neutral-hover:#2f3134;--cc-color-bg-neutral-pressed:#3c3e41;--cc-color-bg-backdrop:#0009;--cc-color-bg-accent:#217f51;--cc-color-bg-accent-hover:#1e6e46;--cc-color-bg-accent-pressed:#1a5e3c;--cc-color-bg-accent-subtle:#072d1a;--cc-color-bg-accent-subtle-pressed:#0f4329;--cc-color-bg-danger-solid:#d0342a;--cc-color-bg-danger-solid-hover:#b72e25;--cc-color-bg-danger-solid-pressed:#a22921;--cc-color-bg-disabled:#212326;--cc-color-bg-success:#222d0d;--cc-color-bg-warning:#35260f;--cc-color-bg-danger:#3b1715;--cc-color-bg-info:#10264a;--cc-color-bg-track:#25272a;--cc-color-bg-inverse:#f0f2f4;--cc-color-fg-default:#f0f2f4;--cc-color-fg-muted:#acaeb2;--cc-color-fg-disabled:#505256;--cc-color-fg-accent:#5ada97;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#a2cb57;--cc-color-fg-warning:#f4b45a;--cc-color-fg-danger:#ff8175;--cc-color-fg-info:#7db2ff;--cc-color-fg-on-inverse:#0e1012;--cc-color-border-default:#2f3134;--cc-color-border-subtle:#212326;--cc-color-border-strong:#787b7f;--cc-color-border-accent:#09b972;--cc-color-border-focus:#5ada97;--cc-color-border-success:#8db445;--cc-color-border-warning:#da9a46;--cc-color-border-danger:#d0342a;--cc-color-border-info:#639cef;--cc-color-activity-planned:#787b7f;--cc-color-activity-done:#09b972;--cc-color-activity-current:#5ada97;--cc-color-tag-grey-bg:#212326;--cc-color-tag-grey-fg:#f0f2f4;--cc-color-tag-green-bg:#2a452b;--cc-color-tag-green-fg:#b8e6b8;--cc-color-tag-blue-bg:#2b3d5e;--cc-color-tag-blue-fg:#bbd8ff;--cc-color-tag-amber-bg:#4f381b;--cc-color-tag-amber-fg:#f9cfa0;--cc-color-tag-violet-bg:#423657;--cc-color-tag-violet-fg:#e0cbff;--cc-color-tag-red-bg:#5b2f2a;--cc-color-tag-red-fg:#ffc2b9;--cc-color-tag-teal-bg:#214445;--cc-color-tag-teal-fg:#aae4e7;--cc-color-tag-pink-bg:#543041;--cc-color-tag-pink-fg:#ffc1df;--cc-color-speaker-0:#5ada97;--cc-color-speaker-1:#7db2ff;--cc-color-speaker-2:#f4b45a;--cc-color-speaker-3:#c4a1ff;--cc-color-speaker-4:#f58fb6;--cc-color-speaker-5:#5fd0d6;--cc-color-recording:#ff5a4f}[data-brand=firstlight]{--cc-brand-night:#14204a;--cc-brand-dusk:#2b3f86;--cc-brand-sun:#ffc46b;--cc-brand-glow:#ffd9a0;--cc-brand-ring:#f08a5d;--cc-brand-sky-1:#1a2963;--cc-brand-sky-2:#233674;--cc-brand-sky-3:#2e4590;--cc-brand-night-raise:#1f2e66;--cc-brand-on-night:#fff;--cc-brand-on-night-muted:#d5dae9;--cc-brand-on-night-faint:#bcc3db;--cc-brand-night-line:#353f63;--cc-brand-night-hover:#2c365c}:root[data-brand=firstlight],[data-brand=firstlight][data-theme=light],[data-brand=firstlight] [data-theme=light]{color-scheme:light;--cc-color-bg-canvas:#f6f3ee;--cc-color-bg-surface:#fff;--cc-color-bg-surface-overlay:#fff;--cc-color-bg-surface-sunken:#f0ece6;--cc-color-bg-surface-zone:#ede9e3;--cc-color-bg-surface-hover:#f1eee9;--cc-color-bg-surface-pressed:#e6e2dc;--cc-color-bg-neutral:#ebe7e1;--cc-color-bg-neutral-hover:#e3dfd8;--cc-color-bg-neutral-pressed:#dbd7d0;--cc-color-bg-backdrop:#15171a52;--cc-color-bg-accent:#324ca7;--cc-color-bg-accent-hover:#2a4195;--cc-color-bg-accent-pressed:#233783;--cc-color-bg-accent-subtle:#ffeac4;--cc-color-bg-accent-subtle-pressed:#fedca5;--cc-color-bg-danger-solid:#be3025;--cc-color-bg-danger-solid-hover:#af2c22;--cc-color-bg-danger-solid-pressed:#a1271e;--cc-color-bg-disabled:#ebe7e1;--cc-color-bg-success:#dff6de;--cc-color-bg-warning:#ffe8da;--cc-color-bg-danger:#ffe8e3;--cc-color-bg-info:#d9f4fb;--cc-color-bg-track:#e5e7ea;--cc-color-bg-inverse:#15171a;--cc-color-fg-default:#151f3e;--cc-color-fg-muted:#525a6f;--cc-color-fg-disabled:#9398a5;--cc-color-fg-accent:#3049a4;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#2b7132;--cc-color-fg-warning:#974c12;--cc-color-fg-danger:#be3025;--cc-color-fg-info:#006a7d;--cc-color-fg-on-inverse:#fff;--cc-color-border-default:#ddd8d1;--cc-color-border-subtle:#ebe7e1;--cc-color-border-strong:#737a8d;--cc-color-border-accent:#324ca7;--cc-color-border-focus:#324ca7;--cc-color-border-success:#2b7132;--cc-color-border-warning:#974c12;--cc-color-border-danger:#be3025;--cc-color-border-info:#006a7d;--cc-color-activity-planned:#737a8d;--cc-color-activity-done:#324ca7;--cc-color-activity-current:#3049a4;--cc-color-tag-grey-bg:#e9ebef;--cc-color-tag-grey-fg:#575b64;--cc-color-tag-green-bg:#dbf3da;--cc-color-tag-green-fg:#256c2c;--cc-color-tag-blue-bg:#dbecff;--cc-color-tag-blue-fg:#2c56a8;--cc-color-tag-amber-bg:#fee7ce;--cc-color-tag-amber-fg:#844c00;--cc-color-tag-violet-bg:#efe5ff;--cc-color-tag-violet-fg:#674698;--cc-color-tag-red-bg:#ffe0db;--cc-color-tag-red-fg:#9e2d28;--cc-color-tag-teal-bg:#d4f2f3;--cc-color-tag-teal-fg:#00696f;--cc-color-tag-pink-bg:#ffe0ef;--cc-color-tag-pink-fg:#8e3665;--cc-color-speaker-0:#3049a4;--cc-color-speaker-1:#2f6fd6;--cc-color-speaker-2:#b36b00;--cc-color-speaker-3:#7a4fd0;--cc-color-speaker-4:#c23c78;--cc-color-speaker-5:#12828a;--cc-color-recording:#d0342a;--cc-brand-ground:#ffc46b;--cc-brand-ground-ink:#14204a;--cc-brand-ground-ink-muted:#36426e}@media (prefers-color-scheme:dark){:root[data-brand=firstlight]:not([data-theme=light]){color-scheme:dark;--cc-color-bg-canvas:#14204a;--cc-color-bg-surface:#192755;--cc-color-bg-surface-overlay:#192755;--cc-color-bg-surface-sunken:#1e2d5b;--cc-color-bg-surface-zone:#1f2e5c;--cc-color-bg-surface-hover:#203062;--cc-color-bg-surface-pressed:#28396f;--cc-color-bg-neutral:#233261;--cc-color-bg-neutral-hover:#2b3c6f;--cc-color-bg-neutral-pressed:#34477e;--cc-color-bg-backdrop:#0009;--cc-color-bg-accent:#4f6dcc;--cc-color-bg-accent-hover:#4562bc;--cc-color-bg-accent-pressed:#3c56ac;--cc-color-bg-accent-subtle:#2b3f86;--cc-color-bg-accent-subtle-pressed:#203270;--cc-color-bg-danger-solid:#c5372c;--cc-color-bg-danger-solid-hover:#b32f25;--cc-color-bg-danger-solid-pressed:#a1271e;--cc-color-bg-disabled:#233261;--cc-color-bg-success:#153b29;--cc-color-bg-warning:#512e1a;--cc-color-bg-danger:#542526;--cc-color-bg-info:#093b4e;--cc-color-bg-track:#25272a;--cc-color-bg-inverse:#f0f2f4;--cc-color-fg-default:#f2f5fc;--cc-color-fg-muted:#bfcae6;--cc-color-fg-disabled:#73809f;--cc-color-fg-accent:#bad0ff;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#98df9a;--cc-color-fg-warning:#fabc86;--cc-color-fg-danger:#ffa08f;--cc-color-fg-info:#8cd8eb;--cc-color-fg-on-inverse:#0e1012;--cc-color-border-default:#354573;--cc-color-border-subtle:#253460;--cc-color-border-strong:#91a1c8;--cc-color-border-accent:#84a1f0;--cc-color-border-focus:#bad0ff;--cc-color-border-success:#73c076;--cc-color-border-warning:#ea9d60;--cc-color-border-danger:#f17262;--cc-color-border-info:#61b9ce;--cc-color-activity-planned:#91a1c8;--cc-color-activity-done:#a2bcff;--cc-color-activity-current:#cdddff;--cc-color-tag-grey-bg:#3b3d41;--cc-color-tag-grey-fg:#d5d7de;--cc-color-tag-green-bg:#2a452b;--cc-color-tag-green-fg:#b8e6b8;--cc-color-tag-blue-bg:#2b3d5e;--cc-color-tag-blue-fg:#bbd8ff;--cc-color-tag-amber-bg:#4f381b;--cc-color-tag-amber-fg:#f9cfa0;--cc-color-tag-violet-bg:#423657;--cc-color-tag-violet-fg:#e0cbff;--cc-color-tag-red-bg:#5b2f2a;--cc-color-tag-red-fg:#ffc2b9;--cc-color-tag-teal-bg:#214445;--cc-color-tag-teal-fg:#aae4e7;--cc-color-tag-pink-bg:#543041;--cc-color-tag-pink-fg:#ffc1df;--cc-color-speaker-0:#bad0ff;--cc-color-speaker-1:#7db2ff;--cc-color-speaker-2:#f4b45a;--cc-color-speaker-3:#c4a1ff;--cc-color-speaker-4:#f58fb6;--cc-color-speaker-5:#5fd0d6;--cc-color-recording:#ff5a4f;--cc-brand-ground:#2b3f86;--cc-brand-ground-ink:#fff;--cc-brand-ground-ink-muted:#d6ddf3}}[data-brand=firstlight][data-theme=dark],[data-brand=firstlight] [data-theme=dark]{color-scheme:dark;--cc-color-bg-canvas:#14204a;--cc-color-bg-surface:#192755;--cc-color-bg-surface-overlay:#192755;--cc-color-bg-surface-sunken:#1e2d5b;--cc-color-bg-surface-zone:#1f2e5c;--cc-color-bg-surface-hover:#203062;--cc-color-bg-surface-pressed:#28396f;--cc-color-bg-neutral:#233261;--cc-color-bg-neutral-hover:#2b3c6f;--cc-color-bg-neutral-pressed:#34477e;--cc-color-bg-backdrop:#0009;--cc-color-bg-accent:#4f6dcc;--cc-color-bg-accent-hover:#4562bc;--cc-color-bg-accent-pressed:#3c56ac;--cc-color-bg-accent-subtle:#2b3f86;--cc-color-bg-accent-subtle-pressed:#203270;--cc-color-bg-danger-solid:#c5372c;--cc-color-bg-danger-solid-hover:#b32f25;--cc-color-bg-danger-solid-pressed:#a1271e;--cc-color-bg-disabled:#233261;--cc-color-bg-success:#153b29;--cc-color-bg-warning:#512e1a;--cc-color-bg-danger:#542526;--cc-color-bg-info:#093b4e;--cc-color-bg-track:#25272a;--cc-color-bg-inverse:#f0f2f4;--cc-color-fg-default:#f2f5fc;--cc-color-fg-muted:#bfcae6;--cc-color-fg-disabled:#73809f;--cc-color-fg-accent:#bad0ff;--cc-color-fg-brand:#09b972;--cc-color-fg-on-accent:#fff;--cc-color-fg-on-danger:#fff;--cc-color-fg-success:#98df9a;--cc-color-fg-warning:#fabc86;--cc-color-fg-danger:#ffa08f;--cc-color-fg-info:#8cd8eb;--cc-color-fg-on-inverse:#0e1012;--cc-color-border-default:#354573;--cc-color-border-subtle:#253460;--cc-color-border-strong:#91a1c8;--cc-color-border-accent:#84a1f0;--cc-color-border-focus:#bad0ff;--cc-color-border-success:#73c076;--cc-color-border-warning:#ea9d60;--cc-color-border-danger:#f17262;--cc-color-border-info:#61b9ce;--cc-color-activity-planned:#91a1c8;--cc-color-activity-done:#a2bcff;--cc-color-activity-current:#cdddff;--cc-color-tag-grey-bg:#3b3d41;--cc-color-tag-grey-fg:#d5d7de;--cc-color-tag-green-bg:#2a452b;--cc-color-tag-green-fg:#b8e6b8;--cc-color-tag-blue-bg:#2b3d5e;--cc-color-tag-blue-fg:#bbd8ff;--cc-color-tag-amber-bg:#4f381b;--cc-color-tag-amber-fg:#f9cfa0;--cc-color-tag-violet-bg:#423657;--cc-color-tag-violet-fg:#e0cbff;--cc-color-tag-red-bg:#5b2f2a;--cc-color-tag-red-fg:#ffc2b9;--cc-color-tag-teal-bg:#214445;--cc-color-tag-teal-fg:#aae4e7;--cc-color-tag-pink-bg:#543041;--cc-color-tag-pink-fg:#ffc1df;--cc-color-speaker-0:#bad0ff;--cc-color-speaker-1:#7db2ff;--cc-color-speaker-2:#f4b45a;--cc-color-speaker-3:#c4a1ff;--cc-color-speaker-4:#f58fb6;--cc-color-speaker-5:#5fd0d6;--cc-color-recording:#ff5a4f;--cc-brand-ground:#2b3f86;--cc-brand-ground-ink:#fff;--cc-brand-ground-ink-muted:#d6ddf3}@media (prefers-reduced-motion:reduce){:root{--cc-motion-stretch-lead-duration:0s;--cc-motion-stretch-trail-duration:0s;--cc-motion-stretch-trail-delay:0s;--cc-motion-swipe-duration:0s;--cc-motion-swipe-tilt:0;--cc-motion-swipe-exit-rotation:0}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}";
3
+ export const errorPageCssHash = "sha256-RO2Zd2RtV2oJQCe36OZPzDeJznwEUBaePE+vE88q/go=";
4
+ export const errorPageFavicon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\" width=\"64\" height=\"64\" role=\"img\" aria-label=\"Northlight\">\n <defs>\n <linearGradient id=\"northlight-tile\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"64\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#2dcb81\"/><stop offset=\"1\" stop-color=\"#218e5a\"/></linearGradient>\n </defs>\n <rect width=\"64\" height=\"64\" rx=\"14\" fill=\"url(#northlight-tile)\"/>\n <path transform=\"translate(9.006 3.741) scale(0.05926)\" fill=\"#ffffff\" d=\"M234 294m0 0h2l-1 5-6 16-5 15-6 25-4 23-2 22-1 5v47l5 38 5 26 6 22 10 24 8 16 9 14 14 19 13 16 11 13 9 11 11 12 7 8 13 16 11 14 14 19 12 19 12 23 7 17 6 23 3 14 3-1 5-15 20-84 6-24 6-21 10-33 10-25 8-16 8-15 8-12 9-12 8-10 9-10 7-8 6-7 20-20h2l2-4 17-17 7-8 10-13 14-21 8-16 8-18 5-15 2-7 2 1 6 36 2 18v41l-4 28-5 19-7 19-10 21-8 13-10 15-13 17-11 13-12 14-9 10-7 8-9 11h-2l-2 4-9 11-14 19-8 12-15 25-11 21-12 26-9 23-5 12-13 38-12 39-5 18-5 17h-2l-9-29-9-27-14-38-13-29-8-16-11-18-10-13-7-9-25-25-3-2v-2l-3-1v-2l-4-2-10-9-8-7-14-12-20-18-13-13-9-11-12-16-12-20-12-25-7-19-6-23-4-24-1-11-1-3v-39l3-23 6-27 7-23 5-11 11-23 9-16 10-14 8-11 9-11 10-11zM430 22m0 0h2v2h2l7 8 10 11 9 11 12 16 9 15 8 16 6 15 5 19 2 11 1 12v18l-1 16-5 24-5 16-7 15-9 17-7 11-10 15-10 13-9 11-13 14-7 8-11 12-7 8-13 16-11 15-13 20-10 18-8 16-7 18-5 15-4 18-2 14-1 27 2 24 3 17 5 23 8 30 12 36 9 28 3 8 4 12v2l-4-2-68-102-13-22-11-23-9-24-7-26-4-23-2-16v-31l3-25 6-27 7-21 7-15 8-16 14-21 11-14 26-30 12-13 8-10h2l2-4 10-11 7-9 14-19 7-10 13-24 7-19 4-15 3-14 3-22 2-24v-20l-2-31zM615 384m0 0 2 1 6 36 2 18v41l-4 28-5 19-7 19-10 21-8 13-10 15-13 17-11 13-12 14-9 10-7 8-9 11h-2l-2 4-9 11-14 19-8 12-15 25-11 21-2 5h-3l-2 2h-13l-6-5-11-6 1-9h-2l2-14-2 3 1-8 9-36 6-21 10-33 10-25 8-16 8-15 8-12 9-12 8-10 9-10 7-8 6-7 20-20h2l2-4 17-17 7-8 10-13 14-21 8-16 8-18 5-15zM557 254m0 0 2 1 4 16 2 16v34l-2 18-5 20-8 24-14 28-10 16-11 16-13 15-12 14-11 13-11 14-14 19-12 20-8 16-7 19-6 20-4 20-4 35-3 41-3 52-4 28-1 3h-2l-8-42-10-52-7-33-7-43v-54l4-24 5-17 8-20 10-19 7-10 10-13 9-11 19-19 8-7 16-15 8-7 9-9 8-7 11-11 1-2h2l2-4 11-13 10-14 11-17 9-19 8-21zM185 615m0 0 4 5 6 10 9 12 2 1 3 5 5-2 1-1h8l5 5 2 3 7 3 6 3 4 5 8 6 5 3v2h2v2h6l4 3 6 1 1 8 10 3 4 2 9 2 5 6 6 1h6l8 8 7 1 9 7h5l1-4-4-6-10-13-7-9-1-3h-2l-7-9v-3l7 6 7 9 11 14 14 19 12 19 12 23 7 17 6 23 3 14 3-1 5-15 10-42 5-22h2l1-4 1 4-1 8h-2l3 4-1 8 11 6 5 4h13l4-3-1 6-8 17-9 23-5 12-13 38-12 39-5 18-5 17h-2l-9-29-9-27-14-38-13-29-8-16-11-18-10-13-7-9-25-25-3-2v-2l-3-1v-2l-4-2-10-9-8-7-14-12-20-18-13-13-9-11-12-16-9-15zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1v7l1 2 1 15 7 1 5-2 5 1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21 4-21h1v10l-4 30-3 34-4 69-4 28-1 3h-2l-8-42-10-52-7-33-6-37zM430 22m0 0h2v2h2l7 8 10 11 9 11 4 5 1 5 2 4 1 7 2 2-1 3-5-1h-7l-8-2-5 1v7l-1 1h-5l-2-8-1-2-1-15h-2l-2-31zM417 598m0 0h1v10l-4 30-3 34-4 69-4 28-1 3h-2l-7-37-1-16h8l2 1v-2h2l1-2 2-35v-13l-2-3-3-5-1-8 1-9-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21zM417 598m0 0h1v10l-4 30-3 34-1 17h-2v15l-1 12h-1v-18l1-17v-13l-2-3-3-5-1-8 1-9-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21zM310 619m0 0 4 2 4 6 5 8 7 9 3 5 2-1 2 1 2 10 6-1 2 1v2h-5l3 7 9 13 6 9 3 1v-2l-4-14h3l5 16 3 8 4 12v2l-4-2-60-90zM255 597m0 0 5 3 12 16 9 11 11 13 9 11 11 12 4 5-1 3-7-7-4-1-7-4v-2l-4-2-4-4 4 1 3-1v-3l-5-2-3-5v-2h-2l-6-8v-2l-3-1-1-2-8-1 1-2-2-8-3-4v-2h-2l-4-6-3-4zM425 181m0 0 7 1 1 3 12 2 2 3 3 1v-2h3l1 3-6 2-1 3h-2v2h-2l-1 7-5 1-2-5 2-3h3l1-5-3 1-3 3-1-4-5-2v-5h-6l-3-3zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1v7l1 2 1 15 2 1h-2l3 13 2 10v5l-3-4-5-25-4-26zM340 614m0 0 1 2h2l6 20 6 18 3 15-2-1-5-15-2-4v-5h-6l-3-2-9-2 2-3v2l5-4h4 2l-1-5-3-12zM296 649m0 0 5 2 11 12 4 5-1 3-7-7-4-1-7-4v-2l-4-2-4-4 4 1 3-1zM403 625m0 0h2l2 11-1 8-2 7-2 1v-9l-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3zM417 598m0 0h1v10l-4 30-2 24h-1l-1-17h-2l1-4 1-1 3-21zM163 561m0 0 2 3 5 16 2 6 2 1 3 9 2 4 4-1 1-2 1 3h-2l-2 5 3 6-1 2-3-3-11-24-4-11-2-10zM439 685m0 0 1 2h9l3 4v6l7 2 3 7-4-1-6-4-5-4v-7h-9l-2-2zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1-1 7-2-2v-7h-2zM434 687m0 0h1v6l-3 9-7 29-4 5 1-8 9-36zM317 672m0 0 6 4 9 11 11 14 6 8v2l-4-2-10-13-7-9-1-3h-2l-7-9zM276 622m0 0 5 5 11 13 7 8-1 2-7-4-3-5v-2h-2l-6-8v-2l-3-1-2-4zM310 619m0 0 4 2 4 6 5 8 7 9-1 4-4-5-8-11-7-11zM416 172m0 0 2 1-1 7h-2v5l4-1-1 3-5 2-3-1v-7l4-8zM381 664m0 0 2 4 6 27v5l-1-2h-2l-5-24zM443 655m0 0 1 4-7 25-1 2h-2l1-7 6-22h2zM163 561m0 0 2 3 5 16 2 6 2 1v5l-2 1-7-18-2-10zM490 702m0 0 1 3-10 15-3 5-4 3v-5l5-5 7-11zM387 698m0 0 1 2h2l3 16v14h-1l-5-26zM426 139m0 0 1 3-1 5-7 22-2-1 2-9 5-18h2zM466 739m0 0h2l-1 6-8 15-3 1 2-7 7-12zM411 636m0 0h2v12l-1 14h-1l-1-17h-2l1-4zM349 645m0 0h3l3 9 3 15-2-1-5-15-2-4zM335 694m0 0 5 3 9 12v2l-4-2-10-13zM386 633m0 0 7 1-3 2-4 1-2 4h-4l-2-6h5zM547 287m0 0 3 2-3 7-1 5h-2l-1 4-2-1 1-5zM557 254m0 0 2 1 3 13-4-1 1-2h-2l-1 3-1-3zM560 311m0 0 3 1-2 5-3 6-9-3v-1l9-1zM409 664m0 0h1v25h-1l-2-24zM340 614m0 0 1 2h2l4 16-4-2-3-12zM438 705m0 0 10 2 1 7-3-1-4-4h-5zM502 685m0 0 1 3-8 11-3 1 2-5zM422 191m0 0 4 1 3 4-2 4-5-3zM359 675m0 0h3l4 13-1 4-4-9zM225 599m0 0 5 2 12 6-3 1-9-4-6-3zM255 597m0 0 5 3 6 8-1 2-3-1-4-6-3-4zM414 180m0 0h1v5l4-1-1 3-5 2-3-1 1-5zM341 665m0 0 3 1 6 9-1 4-8-12zM370 608m0 0h1l1 9 3 1-2 10h-1l-2-12zM439 671m0 0 1 2-4 13h-2l1-7 3-7zM341 658m0 0 6 1v2h-5l-1 5-3-3 1-4zM373 625m0 0h2l1 9 2 1h-2l-1 5h-1l-1-6zM185 615m0 0 4 5 5 8-1 3-4-5-4-7zM434 687m0 0h1v6l-3 9-2 3 1-13zM385 686m0 0h2l2 9v5l-1-2h-2l-1-5zM390 711m0 0h2l1 8v11h-1l-2-10zM355 657m0 0 2 3 4 12v3l-3-1-2-10zM413 624m0 0h1v14l-1-2h-2l1-11zM494 120m0 0h2l2 6v10l-2-3-2-9zM163 561m0 0 2 3 4 13-1 3v-2h-2l-3-13zM489 106m0 0h2l4 10-2 4-4-11zM230 609m0 0 5 1 4 5 3 2-6-1-3-3v-2l-3-1zM392 660m0 0h2v2h2l5 5 2 1-1 4-10-10zM254 615m0 0 8 1 1 1v5l-2-1v-2l-6-2zM190 587m0 0 6 1 2-1 4 2 1 3-13-2zM417 598m0 0h1v10l-1 5-2-1 1-9zM273 545m0 0 2 3 3 8v3h-2l-3-8z\"/>\n</svg>\n";
5
+ export const errorPageMark = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-77.5 12 931 931\" width=\"22\" height=\"22\" focusable=\"false\" aria-hidden=\"true\" class=\"shrink-0 text-brand\"><path fill=\"currentColor\" d=\"M234 294m0 0h2l-1 5-6 16-5 15-6 25-4 23-2 22-1 5v47l5 38 5 26 6 22 10 24 8 16 9 14 14 19 13 16 11 13 9 11 11 12 7 8 13 16 11 14 14 19 12 19 12 23 7 17 6 23 3 14 3-1 5-15 20-84 6-24 6-21 10-33 10-25 8-16 8-15 8-12 9-12 8-10 9-10 7-8 6-7 20-20h2l2-4 17-17 7-8 10-13 14-21 8-16 8-18 5-15 2-7 2 1 6 36 2 18v41l-4 28-5 19-7 19-10 21-8 13-10 15-13 17-11 13-12 14-9 10-7 8-9 11h-2l-2 4-9 11-14 19-8 12-15 25-11 21-12 26-9 23-5 12-13 38-12 39-5 18-5 17h-2l-9-29-9-27-14-38-13-29-8-16-11-18-10-13-7-9-25-25-3-2v-2l-3-1v-2l-4-2-10-9-8-7-14-12-20-18-13-13-9-11-12-16-12-20-12-25-7-19-6-23-4-24-1-11-1-3v-39l3-23 6-27 7-23 5-11 11-23 9-16 10-14 8-11 9-11 10-11zM430 22m0 0h2v2h2l7 8 10 11 9 11 12 16 9 15 8 16 6 15 5 19 2 11 1 12v18l-1 16-5 24-5 16-7 15-9 17-7 11-10 15-10 13-9 11-13 14-7 8-11 12-7 8-13 16-11 15-13 20-10 18-8 16-7 18-5 15-4 18-2 14-1 27 2 24 3 17 5 23 8 30 12 36 9 28 3 8 4 12v2l-4-2-68-102-13-22-11-23-9-24-7-26-4-23-2-16v-31l3-25 6-27 7-21 7-15 8-16 14-21 11-14 26-30 12-13 8-10h2l2-4 10-11 7-9 14-19 7-10 13-24 7-19 4-15 3-14 3-22 2-24v-20l-2-31zM615 384m0 0 2 1 6 36 2 18v41l-4 28-5 19-7 19-10 21-8 13-10 15-13 17-11 13-12 14-9 10-7 8-9 11h-2l-2 4-9 11-14 19-8 12-15 25-11 21-2 5h-3l-2 2h-13l-6-5-11-6 1-9h-2l2-14-2 3 1-8 9-36 6-21 10-33 10-25 8-16 8-15 8-12 9-12 8-10 9-10 7-8 6-7 20-20h2l2-4 17-17 7-8 10-13 14-21 8-16 8-18 5-15zM557 254m0 0 2 1 4 16 2 16v34l-2 18-5 20-8 24-14 28-10 16-11 16-13 15-12 14-11 13-11 14-14 19-12 20-8 16-7 19-6 20-4 20-4 35-3 41-3 52-4 28-1 3h-2l-8-42-10-52-7-33-7-43v-54l4-24 5-17 8-20 10-19 7-10 10-13 9-11 19-19 8-7 16-15 8-7 9-9 8-7 11-11 1-2h2l2-4 11-13 10-14 11-17 9-19 8-21zM185 615m0 0 4 5 6 10 9 12 2 1 3 5 5-2 1-1h8l5 5 2 3 7 3 6 3 4 5 8 6 5 3v2h2v2h6l4 3 6 1 1 8 10 3 4 2 9 2 5 6 6 1h6l8 8 7 1 9 7h5l1-4-4-6-10-13-7-9-1-3h-2l-7-9v-3l7 6 7 9 11 14 14 19 12 19 12 23 7 17 6 23 3 14 3-1 5-15 10-42 5-22h2l1-4 1 4-1 8h-2l3 4-1 8 11 6 5 4h13l4-3-1 6-8 17-9 23-5 12-13 38-12 39-5 18-5 17h-2l-9-29-9-27-14-38-13-29-8-16-11-18-10-13-7-9-25-25-3-2v-2l-3-1v-2l-4-2-10-9-8-7-14-12-20-18-13-13-9-11-12-16-9-15zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1v7l1 2 1 15 7 1 5-2 5 1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21 4-21h1v10l-4 30-3 34-4 69-4 28-1 3h-2l-8-42-10-52-7-33-6-37zM430 22m0 0h2v2h2l7 8 10 11 9 11 4 5 1 5 2 4 1 7 2 2-1 3-5-1h-7l-8-2-5 1v7l-1 1h-5l-2-8-1-2-1-15h-2l-2-31zM417 598m0 0h1v10l-4 30-3 34-4 69-4 28-1 3h-2l-7-37-1-16h8l2 1v-2h2l1-2 2-35v-13l-2-3-3-5-1-8 1-9-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21zM417 598m0 0h1v10l-4 30-3 34-1 17h-2v15l-1 12h-1v-18l1-17v-13l-2-3-3-5-1-8 1-9-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3 6-2 2 11-1 8-3 12h2v2l3-1 2-12h-2l1-4 1-1 3-21zM310 619m0 0 4 2 4 6 5 8 7 9 3 5 2-1 2 1 2 10 6-1 2 1v2h-5l3 7 9 13 6 9 3 1v-2l-4-14h3l5 16 3 8 4 12v2l-4-2-60-90zM255 597m0 0 5 3 12 16 9 11 11 13 9 11 11 12 4 5-1 3-7-7-4-1-7-4v-2l-4-2-4-4 4 1 3-1v-3l-5-2-3-5v-2h-2l-6-8v-2l-3-1-1-2-8-1 1-2-2-8-3-4v-2h-2l-4-6-3-4zM425 181m0 0 7 1 1 3 12 2 2 3 3 1v-2h3l1 3-6 2-1 3h-2v2h-2l-1 7-5 1-2-5 2-3h3l1-5-3 1-3 3-1-4-5-2v-5h-6l-3-3zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1v7l1 2 1 15 2 1h-2l3 13 2 10v5l-3-4-5-25-4-26zM340 614m0 0 1 2h2l6 20 6 18 3 15-2-1-5-15-2-4v-5h-6l-3-2-9-2 2-3v2l5-4h4 2l-1-5-3-12zM296 649m0 0 5 2 11 12 4 5-1 3-7-7-4-1-7-4v-2l-4-2-4-4 4 1 3-1zM403 625m0 0h2l2 11-1 8-2 7-2 1v-9l-1-4-5-2v-2l-3-1v-2l3-1 4 1 1-2h-3l1-3zM417 598m0 0h1v10l-4 30-2 24h-1l-1-17h-2l1-4 1-1 3-21zM163 561m0 0 2 3 5 16 2 6 2 1 3 9 2 4 4-1 1-2 1 3h-2l-2 5 3 6-1 2-3-3-11-24-4-11-2-10zM439 685m0 0 1 2h9l3 4v6l7 2 3 7-4-1-6-4-5-4v-7h-9l-2-2zM369 553m0 0h1l1 43 2 3 3 4-1 6-1 1-1 7-2-2v-7h-2zM434 687m0 0h1v6l-3 9-7 29-4 5 1-8 9-36zM317 672m0 0 6 4 9 11 11 14 6 8v2l-4-2-10-13-7-9-1-3h-2l-7-9zM276 622m0 0 5 5 11 13 7 8-1 2-7-4-3-5v-2h-2l-6-8v-2l-3-1-2-4zM310 619m0 0 4 2 4 6 5 8 7 9-1 4-4-5-8-11-7-11zM416 172m0 0 2 1-1 7h-2v5l4-1-1 3-5 2-3-1v-7l4-8zM381 664m0 0 2 4 6 27v5l-1-2h-2l-5-24zM443 655m0 0 1 4-7 25-1 2h-2l1-7 6-22h2zM163 561m0 0 2 3 5 16 2 6 2 1v5l-2 1-7-18-2-10zM490 702m0 0 1 3-10 15-3 5-4 3v-5l5-5 7-11zM387 698m0 0 1 2h2l3 16v14h-1l-5-26zM426 139m0 0 1 3-1 5-7 22-2-1 2-9 5-18h2zM466 739m0 0h2l-1 6-8 15-3 1 2-7 7-12zM411 636m0 0h2v12l-1 14h-1l-1-17h-2l1-4zM349 645m0 0h3l3 9 3 15-2-1-5-15-2-4zM335 694m0 0 5 3 9 12v2l-4-2-10-13zM386 633m0 0 7 1-3 2-4 1-2 4h-4l-2-6h5zM547 287m0 0 3 2-3 7-1 5h-2l-1 4-2-1 1-5zM557 254m0 0 2 1 3 13-4-1 1-2h-2l-1 3-1-3zM560 311m0 0 3 1-2 5-3 6-9-3v-1l9-1zM409 664m0 0h1v25h-1l-2-24zM340 614m0 0 1 2h2l4 16-4-2-3-12zM438 705m0 0 10 2 1 7-3-1-4-4h-5zM502 685m0 0 1 3-8 11-3 1 2-5zM422 191m0 0 4 1 3 4-2 4-5-3zM359 675m0 0h3l4 13-1 4-4-9zM225 599m0 0 5 2 12 6-3 1-9-4-6-3zM255 597m0 0 5 3 6 8-1 2-3-1-4-6-3-4zM414 180m0 0h1v5l4-1-1 3-5 2-3-1 1-5zM341 665m0 0 3 1 6 9-1 4-8-12zM370 608m0 0h1l1 9 3 1-2 10h-1l-2-12zM439 671m0 0 1 2-4 13h-2l1-7 3-7zM341 658m0 0 6 1v2h-5l-1 5-3-3 1-4zM373 625m0 0h2l1 9 2 1h-2l-1 5h-1l-1-6zM185 615m0 0 4 5 5 8-1 3-4-5-4-7zM434 687m0 0h1v6l-3 9-2 3 1-13zM385 686m0 0h2l2 9v5l-1-2h-2l-1-5zM390 711m0 0h2l1 8v11h-1l-2-10zM355 657m0 0 2 3 4 12v3l-3-1-2-10zM413 624m0 0h1v14l-1-2h-2l1-11zM494 120m0 0h2l2 6v10l-2-3-2-9zM163 561m0 0 2 3 4 13-1 3v-2h-2l-3-13zM489 106m0 0h2l4 10-2 4-4-11zM230 609m0 0 5 1 4 5 3 2-6-1-3-3v-2l-3-1zM392 660m0 0h2v2h2l5 5 2 1-1 4-10-10zM254 615m0 0 8 1 1 1v5l-2-1v-2l-6-2zM190 587m0 0 6 1 2-1 4 2 1 3-13-2zM417 598m0 0h1v10l-1 5-2-1 1-9zM273 545m0 0 2 3 3 8v3h-2l-3-8z\"></path></svg>";
6
+ export const errorPageBodies = ["<div class=\"flex flex-col bg-canvas text-default min-h-dvh\"><header class=\"flex h-14 shrink-0 items-center gap-3 border-b border-default bg-surface px-4 text-default md:px-6\"><div class=\"-ml-1.5 flex min-w-0 items-center gap-1\"><a href=\"@@HOME@@\" class=\"inline-flex min-w-0 items-center gap-2 rounded-md py-1 text-body text-default no-underline transition-colors duration-fast ease-standard hover:text-accent focus-visible:focus-ring\">@@MARK@@<span class=\"font-semibold whitespace-nowrap\">Northlight</span><span class=\"sr-only\">home</span></a></div><div class=\"flex min-w-0 flex-1 items-center gap-3\"></div></header><main class=\"flex flex-1 items-center justify-center px-6 py-12\"><div class=\"flex max-w-md flex-col items-center gap-3 text-center\"><p class=\"m-0 text-label text-muted\">Error @@STATUS@@</p><h1 class=\"m-0 text-h1 text-default\">@@TITLE@@</h1><p class=\"m-0 text-body text-muted\">@@MESSAGE@@</p><div class=\"mt-3 flex flex-wrap items-center justify-center gap-2\"><a href=\"@@PRIMARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-accent bg-accent text-on-accent data-hovered:bg-accent-hover data-pressed:bg-accent-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-accent-hover active:bg-accent-pressed\">@@PRIMARY_LABEL@@</a></div></div></main></div>", "<div class=\"flex flex-col bg-canvas text-default min-h-dvh\"><header class=\"flex h-14 shrink-0 items-center gap-3 border-b border-default bg-surface px-4 text-default md:px-6\"><div class=\"-ml-1.5 flex min-w-0 items-center gap-1\"><a href=\"@@HOME@@\" class=\"inline-flex min-w-0 items-center gap-2 rounded-md py-1 text-body text-default no-underline transition-colors duration-fast ease-standard hover:text-accent focus-visible:focus-ring\">@@MARK@@<span class=\"font-semibold whitespace-nowrap\">Northlight</span><span aria-hidden=\"true\" class=\"text-muted\">·</span><span class=\"truncate text-muted\">@@APP@@</span><span class=\"sr-only\">home</span></a></div><div class=\"flex min-w-0 flex-1 items-center gap-3\"></div></header><main class=\"flex flex-1 items-center justify-center px-6 py-12\"><div class=\"flex max-w-md flex-col items-center gap-3 text-center\"><p class=\"m-0 text-label text-muted\">Error @@STATUS@@</p><h1 class=\"m-0 text-h1 text-default\">@@TITLE@@</h1><p class=\"m-0 text-body text-muted\">@@MESSAGE@@</p><div class=\"mt-3 flex flex-wrap items-center justify-center gap-2\"><a href=\"@@PRIMARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-accent bg-accent text-on-accent data-hovered:bg-accent-hover data-pressed:bg-accent-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-accent-hover active:bg-accent-pressed\">@@PRIMARY_LABEL@@</a></div></div></main></div>", "<div class=\"flex flex-col bg-canvas text-default min-h-dvh\"><header class=\"flex h-14 shrink-0 items-center gap-3 border-b border-default bg-surface px-4 text-default md:px-6\"><div class=\"-ml-1.5 flex min-w-0 items-center gap-1\"><a href=\"@@HOME@@\" class=\"inline-flex min-w-0 items-center gap-2 rounded-md py-1 text-body text-default no-underline transition-colors duration-fast ease-standard hover:text-accent focus-visible:focus-ring\">@@MARK@@<span class=\"font-semibold whitespace-nowrap\">Northlight</span><span class=\"sr-only\">home</span></a></div><div class=\"flex min-w-0 flex-1 items-center gap-3\"></div></header><main class=\"flex flex-1 items-center justify-center px-6 py-12\"><div class=\"flex max-w-md flex-col items-center gap-3 text-center\"><p class=\"m-0 text-label text-muted\">Error @@STATUS@@</p><h1 class=\"m-0 text-h1 text-default\">@@TITLE@@</h1><p class=\"m-0 text-body text-muted\">@@MESSAGE@@</p><div class=\"mt-3 flex flex-wrap items-center justify-center gap-2\"><a href=\"@@PRIMARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-accent bg-accent text-on-accent data-hovered:bg-accent-hover data-pressed:bg-accent-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-accent-hover active:bg-accent-pressed\">@@PRIMARY_LABEL@@</a><a href=\"@@SECONDARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-transparent bg-neutral text-default data-hovered:bg-neutral-hover data-pressed:bg-neutral-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-neutral-hover active:bg-neutral-pressed\">@@SECONDARY_LABEL@@</a></div></div></main></div>", "<div class=\"flex flex-col bg-canvas text-default min-h-dvh\"><header class=\"flex h-14 shrink-0 items-center gap-3 border-b border-default bg-surface px-4 text-default md:px-6\"><div class=\"-ml-1.5 flex min-w-0 items-center gap-1\"><a href=\"@@HOME@@\" class=\"inline-flex min-w-0 items-center gap-2 rounded-md py-1 text-body text-default no-underline transition-colors duration-fast ease-standard hover:text-accent focus-visible:focus-ring\">@@MARK@@<span class=\"font-semibold whitespace-nowrap\">Northlight</span><span aria-hidden=\"true\" class=\"text-muted\">·</span><span class=\"truncate text-muted\">@@APP@@</span><span class=\"sr-only\">home</span></a></div><div class=\"flex min-w-0 flex-1 items-center gap-3\"></div></header><main class=\"flex flex-1 items-center justify-center px-6 py-12\"><div class=\"flex max-w-md flex-col items-center gap-3 text-center\"><p class=\"m-0 text-label text-muted\">Error @@STATUS@@</p><h1 class=\"m-0 text-h1 text-default\">@@TITLE@@</h1><p class=\"m-0 text-body text-muted\">@@MESSAGE@@</p><div class=\"mt-3 flex flex-wrap items-center justify-center gap-2\"><a href=\"@@PRIMARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-accent bg-accent text-on-accent data-hovered:bg-accent-hover data-pressed:bg-accent-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-accent-hover active:bg-accent-pressed\">@@PRIMARY_LABEL@@</a><a href=\"@@SECONDARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-transparent bg-neutral text-default data-hovered:bg-neutral-hover data-pressed:bg-neutral-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-neutral-hover active:bg-neutral-pressed\">@@SECONDARY_LABEL@@</a></div></div></main></div>", "<div class=\"flex flex-col bg-canvas text-default min-h-dvh\"><header class=\"flex h-14 shrink-0 items-center gap-3 border-b border-default bg-surface px-4 text-default md:px-6\"><div class=\"-ml-1.5 flex min-w-0 items-center gap-1\"><a href=\"@@HOME@@\" class=\"inline-flex min-w-0 items-center gap-2 rounded-md py-1 text-body text-default no-underline transition-colors duration-fast ease-standard hover:text-accent focus-visible:focus-ring\">@@MARK@@<span class=\"font-semibold whitespace-nowrap\">Northlight</span><span class=\"sr-only\">home</span></a></div><div class=\"flex min-w-0 flex-1 items-center gap-3\"></div></header><main class=\"flex flex-1 items-center justify-center px-6 py-12\"><div class=\"flex max-w-md flex-col items-center gap-3 text-center\"><p class=\"m-0 text-label text-muted\">Error @@STATUS@@</p><h1 class=\"m-0 text-h1 text-default\">@@TITLE@@</h1><p class=\"m-0 text-body text-muted\">@@MESSAGE@@</p><div class=\"mt-3 flex flex-wrap items-center justify-center gap-2\"><a href=\"@@PRIMARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-accent bg-accent text-on-accent data-hovered:bg-accent-hover data-pressed:bg-accent-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-accent-hover active:bg-accent-pressed\">@@PRIMARY_LABEL@@</a></div><p class=\"m-0 mt-3 font-mono text-mono text-muted\">@@REFERENCE@@</p></div></main></div>", "<div class=\"flex flex-col bg-canvas text-default min-h-dvh\"><header class=\"flex h-14 shrink-0 items-center gap-3 border-b border-default bg-surface px-4 text-default md:px-6\"><div class=\"-ml-1.5 flex min-w-0 items-center gap-1\"><a href=\"@@HOME@@\" class=\"inline-flex min-w-0 items-center gap-2 rounded-md py-1 text-body text-default no-underline transition-colors duration-fast ease-standard hover:text-accent focus-visible:focus-ring\">@@MARK@@<span class=\"font-semibold whitespace-nowrap\">Northlight</span><span aria-hidden=\"true\" class=\"text-muted\">·</span><span class=\"truncate text-muted\">@@APP@@</span><span class=\"sr-only\">home</span></a></div><div class=\"flex min-w-0 flex-1 items-center gap-3\"></div></header><main class=\"flex flex-1 items-center justify-center px-6 py-12\"><div class=\"flex max-w-md flex-col items-center gap-3 text-center\"><p class=\"m-0 text-label text-muted\">Error @@STATUS@@</p><h1 class=\"m-0 text-h1 text-default\">@@TITLE@@</h1><p class=\"m-0 text-body text-muted\">@@MESSAGE@@</p><div class=\"mt-3 flex flex-wrap items-center justify-center gap-2\"><a href=\"@@PRIMARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-accent bg-accent text-on-accent data-hovered:bg-accent-hover data-pressed:bg-accent-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-accent-hover active:bg-accent-pressed\">@@PRIMARY_LABEL@@</a></div><p class=\"m-0 mt-3 font-mono text-mono text-muted\">@@REFERENCE@@</p></div></main></div>", "<div class=\"flex flex-col bg-canvas text-default min-h-dvh\"><header class=\"flex h-14 shrink-0 items-center gap-3 border-b border-default bg-surface px-4 text-default md:px-6\"><div class=\"-ml-1.5 flex min-w-0 items-center gap-1\"><a href=\"@@HOME@@\" class=\"inline-flex min-w-0 items-center gap-2 rounded-md py-1 text-body text-default no-underline transition-colors duration-fast ease-standard hover:text-accent focus-visible:focus-ring\">@@MARK@@<span class=\"font-semibold whitespace-nowrap\">Northlight</span><span class=\"sr-only\">home</span></a></div><div class=\"flex min-w-0 flex-1 items-center gap-3\"></div></header><main class=\"flex flex-1 items-center justify-center px-6 py-12\"><div class=\"flex max-w-md flex-col items-center gap-3 text-center\"><p class=\"m-0 text-label text-muted\">Error @@STATUS@@</p><h1 class=\"m-0 text-h1 text-default\">@@TITLE@@</h1><p class=\"m-0 text-body text-muted\">@@MESSAGE@@</p><div class=\"mt-3 flex flex-wrap items-center justify-center gap-2\"><a href=\"@@PRIMARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-accent bg-accent text-on-accent data-hovered:bg-accent-hover data-pressed:bg-accent-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-accent-hover active:bg-accent-pressed\">@@PRIMARY_LABEL@@</a><a href=\"@@SECONDARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-transparent bg-neutral text-default data-hovered:bg-neutral-hover data-pressed:bg-neutral-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-neutral-hover active:bg-neutral-pressed\">@@SECONDARY_LABEL@@</a></div><p class=\"m-0 mt-3 font-mono text-mono text-muted\">@@REFERENCE@@</p></div></main></div>", "<div class=\"flex flex-col bg-canvas text-default min-h-dvh\"><header class=\"flex h-14 shrink-0 items-center gap-3 border-b border-default bg-surface px-4 text-default md:px-6\"><div class=\"-ml-1.5 flex min-w-0 items-center gap-1\"><a href=\"@@HOME@@\" class=\"inline-flex min-w-0 items-center gap-2 rounded-md py-1 text-body text-default no-underline transition-colors duration-fast ease-standard hover:text-accent focus-visible:focus-ring\">@@MARK@@<span class=\"font-semibold whitespace-nowrap\">Northlight</span><span aria-hidden=\"true\" class=\"text-muted\">·</span><span class=\"truncate text-muted\">@@APP@@</span><span class=\"sr-only\">home</span></a></div><div class=\"flex min-w-0 flex-1 items-center gap-3\"></div></header><main class=\"flex flex-1 items-center justify-center px-6 py-12\"><div class=\"flex max-w-md flex-col items-center gap-3 text-center\"><p class=\"m-0 text-label text-muted\">Error @@STATUS@@</p><h1 class=\"m-0 text-h1 text-default\">@@TITLE@@</h1><p class=\"m-0 text-body text-muted\">@@MESSAGE@@</p><div class=\"mt-3 flex flex-wrap items-center justify-center gap-2\"><a href=\"@@PRIMARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-accent bg-accent text-on-accent data-hovered:bg-accent-hover data-pressed:bg-accent-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-accent-hover active:bg-accent-pressed\">@@PRIMARY_LABEL@@</a><a href=\"@@SECONDARY_HREF@@\" class=\"group relative inline-flex items-center justify-center gap-2 rounded-md border font-medium whitespace-nowrap select-none transition-colors duration-fast ease-standard data-focus-visible:focus-ring data-disabled:opacity-40 border-transparent bg-neutral text-default data-hovered:bg-neutral-hover data-pressed:bg-neutral-pressed h-10 px-4.5 text-body cursor-pointer no-underline focus-visible:focus-ring hover:bg-neutral-hover active:bg-neutral-pressed\">@@SECONDARY_LABEL@@</a></div><p class=\"m-0 mt-3 font-mono text-mono text-muted\">@@REFERENCE@@</p></div></main></div>"];
7
+ export const errorPageCopy = { "400": { "title": "Bad request", "message": "The request was not valid. Go back and try again." }, "401": { "title": "Sign in to continue", "message": "You need to be signed in to see this page." }, "403": { "title": "You don't have access", "message": "Your account is not allowed to open this page." }, "404": { "title": "Page not found", "message": "There is nothing at this address. It may have moved, or the link may be mistyped." }, "405": { "title": "Not available this way", "message": "This address does not accept that kind of request." }, "409": { "title": "This conflicts with something else", "message": "The page changed while you were on it. Reload and try again." }, "410": { "title": "This page is gone", "message": "It was removed and will not be coming back." }, "429": { "title": "Too many requests", "message": "Slow down for a moment, then try again." }, "502": { "title": "A service we depend on failed", "message": "Try again in a moment." }, "503": { "title": "Temporarily unavailable", "message": "This service is busy or being updated. Try again in a moment." }, "504": { "title": "That took too long", "message": "A service we depend on did not answer in time. Try again." } };
8
+ export const errorPageGenericCopy = { "client": { "title": "That didn't work", "message": "The request could not be completed. Check the address and try again." }, "server": { "title": "Something went wrong", "message": "This is on our side, not yours. Try again in a moment; if it keeps happening, tell us the reference below." } };
package/dist/html.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ /** Text safe inside HTML text and double- or single-quoted attributes. */
2
+ export declare const escapeHtml: (text: string) => string;
package/dist/html.js ADDED
@@ -0,0 +1,8 @@
1
+ /** Text safe inside HTML text and double- or single-quoted attributes. */
2
+ export const escapeHtml = (text) => text.replace(/[&<>"']/g, (character) => ({
3
+ "&": "&amp;",
4
+ "<": "&lt;",
5
+ ">": "&gt;",
6
+ '"': "&quot;",
7
+ "'": "&#39;",
8
+ })[character] ?? character);
@@ -0,0 +1,4 @@
1
+ export { createStartRenderer, embeddableContentSecurityPolicy, strictContentSecurityPolicy, type RenderMode, type RenderOptions, type RenderRequest, type RenderResponse, type StartRenderer, type StartRendererOptions, } from "./render.js";
2
+ export { assetsRoot, brandRoot, serveStaticRoutes, type StaticApp, type StaticRoutesOptions, type StaticServeOptions, } from "./static.js";
3
+ export { errorPageContentSecurityPolicy, errorPageStyleHash, renderErrorPage, sendErrorPage, wantsHtml, type ErrorPageLink, type ErrorPageOptions, type ErrorPageResponse, type HtmlNegotiationRequest, } from "./error-page.js";
4
+ export { clipText, previewImageVersion, previewTags, readPreviewShell, withPreviewTags, type PagePreview, } from "./link-preview.js";
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { createStartRenderer, embeddableContentSecurityPolicy, strictContentSecurityPolicy, } from "./render.js";
2
+ export { assetsRoot, brandRoot, serveStaticRoutes, } from "./static.js";
3
+ export { errorPageContentSecurityPolicy, errorPageStyleHash, renderErrorPage, sendErrorPage, wantsHtml, } from "./error-page.js";
4
+ export { clipText, previewImageVersion, previewTags, readPreviewShell, withPreviewTags, } from "./link-preview.js";
@@ -0,0 +1,36 @@
1
+ /** One page's link-preview values. Every URL is absolute `https://`. */
2
+ export interface PagePreview {
3
+ /** `og:title` and `twitter:title`: what the page is, under about 60 characters. */
4
+ title: string;
5
+ /** `description`, `og:description` and `twitter:description`: under about 155 characters. */
6
+ description: string;
7
+ /** The page's own URL: `canonical` and `og:url`. */
8
+ url: string;
9
+ /** The 1200×630 PNG: `og:image` and `twitter:image`. Give it a `?v=` from `previewImageVersion`. */
10
+ image: string;
11
+ /** `og:image:alt`: what the image shows. */
12
+ imageAlt: string;
13
+ /** `og:type`. Defaults to `website`. */
14
+ type?: "website" | "article";
15
+ /** ISO 8601 time, written as `article:published_time` when `type` is `article`. */
16
+ publishedTime?: string;
17
+ }
18
+ /**
19
+ * Reads the built SPA shell (`web/dist/index.html`) and throws when it has no
20
+ * `<!-- og -->` … `<!-- /og -->` block around its tags, so a changed
21
+ * `index.html` cannot silently drop the per-page tags. Call it once at startup
22
+ * and keep the result.
23
+ */
24
+ export declare function readPreviewShell(file: string): string;
25
+ /** The tag block for one page, between the markers. */
26
+ export declare function previewTags(page: PagePreview): string;
27
+ /** The shell from `readPreviewShell` with its generic tag block swapped for this page's. */
28
+ export declare function withPreviewTags(shell: string, page: PagePreview): string;
29
+ /**
30
+ * The `?v=` value for a drawn card's image URL: a hash of the content the card
31
+ * shows and the card's revision number. Bump the revision whenever the drawing
32
+ * code changes, so crawlers refetch the image.
33
+ */
34
+ export declare function previewImageVersion(content: unknown, revision: number): string;
35
+ /** Cuts text to `max` characters at a word boundary, with an ellipsis. */
36
+ export declare function clipText(text: string, max: number): string;
@@ -0,0 +1,86 @@
1
+ import { createHash } from "node:crypto";
2
+ import { readFileSync } from "node:fs";
3
+ import { escapeHtml } from "./html.js";
4
+ const OG_START = "<!-- og -->";
5
+ const OG_END = "<!-- /og -->";
6
+ /**
7
+ * Reads the built SPA shell (`web/dist/index.html`) and throws when it has no
8
+ * `<!-- og -->` … `<!-- /og -->` block around its tags, so a changed
9
+ * `index.html` cannot silently drop the per-page tags. Call it once at startup
10
+ * and keep the result.
11
+ */
12
+ export function readPreviewShell(file) {
13
+ const html = readFileSync(file, "utf8");
14
+ if (!markers(html))
15
+ throw new Error(`${file} has no ${OG_START} … ${OG_END} block`);
16
+ return html;
17
+ }
18
+ /** Where the tag block starts and ends (after the closing marker); null unless both markers exist in order. */
19
+ function markers(html) {
20
+ const start = html.indexOf(OG_START);
21
+ const close = html.indexOf(OG_END);
22
+ return start === -1 || close < start
23
+ ? null
24
+ : { start, end: close + OG_END.length };
25
+ }
26
+ function absoluteHttps(name, value) {
27
+ if (!URL.canParse(value) || new URL(value).protocol !== "https:")
28
+ throw new Error(`${name} must be an absolute https:// URL: ${value}`);
29
+ return value;
30
+ }
31
+ const meta = (key, k, v) => `<meta ${key}="${k}" content="${escapeHtml(v)}" />`;
32
+ /** The tag block for one page, between the markers. */
33
+ export function previewTags(page) {
34
+ const url = absoluteHttps("url", page.url);
35
+ const image = absoluteHttps("image", page.image);
36
+ return [
37
+ OG_START,
38
+ meta("name", "description", page.description),
39
+ `<link rel="canonical" href="${escapeHtml(url)}" />`,
40
+ meta("property", "og:type", page.type ?? "website"),
41
+ meta("property", "og:site_name", "Northlight"),
42
+ meta("property", "og:url", url),
43
+ meta("property", "og:title", page.title),
44
+ meta("property", "og:description", page.description),
45
+ meta("property", "og:image", image),
46
+ meta("property", "og:image:type", "image/png"),
47
+ meta("property", "og:image:width", "1200"),
48
+ meta("property", "og:image:height", "630"),
49
+ meta("property", "og:image:alt", page.imageAlt),
50
+ ...(page.type === "article" && page.publishedTime
51
+ ? [meta("property", "article:published_time", page.publishedTime)]
52
+ : []),
53
+ meta("name", "twitter:card", "summary_large_image"),
54
+ meta("name", "twitter:title", page.title),
55
+ meta("name", "twitter:description", page.description),
56
+ meta("name", "twitter:image", image),
57
+ OG_END,
58
+ ].join("\n ");
59
+ }
60
+ /** The shell from `readPreviewShell` with its generic tag block swapped for this page's. */
61
+ export function withPreviewTags(shell, page) {
62
+ const found = markers(shell);
63
+ if (!found)
64
+ throw new Error("shell has no <!-- og --> block; read it with readPreviewShell");
65
+ return (shell.slice(0, found.start) + previewTags(page) + shell.slice(found.end));
66
+ }
67
+ /**
68
+ * The `?v=` value for a drawn card's image URL: a hash of the content the card
69
+ * shows and the card's revision number. Bump the revision whenever the drawing
70
+ * code changes, so crawlers refetch the image.
71
+ */
72
+ export function previewImageVersion(content, revision) {
73
+ return createHash("sha256")
74
+ .update(JSON.stringify([revision, content]))
75
+ .digest("hex")
76
+ .slice(0, 12);
77
+ }
78
+ /** Cuts text to `max` characters at a word boundary, with an ellipsis. */
79
+ export function clipText(text, max) {
80
+ const flat = text.replace(/\s+/g, " ").trim();
81
+ if (flat.length <= max)
82
+ return flat;
83
+ const cut = flat.slice(0, max - 1);
84
+ const space = cut.lastIndexOf(" ");
85
+ return `${(space > max / 2 ? cut.slice(0, space) : cut).replace(/[\s,.;:–-]+$/, "")}…`;
86
+ }
@@ -0,0 +1,90 @@
1
+ /** The part of an Express request the renderer reads. */
2
+ export interface RenderRequest {
3
+ readonly originalUrl: string;
4
+ }
5
+ /** The part of an Express response the renderer writes. */
6
+ export interface RenderResponse {
7
+ status(code: number): unknown;
8
+ setHeader(name: string, value: string | string[]): unknown;
9
+ send(body: Buffer): unknown;
10
+ }
11
+ /**
12
+ * - `frame-deny`: no other origin may frame the page
13
+ * (`Content-Security-Policy: frame-ancestors 'none'`, `X-Frame-Options: DENY`).
14
+ * - `strict`: also a per-request nonce, a full Content-Security-Policy,
15
+ * `Cache-Control: no-store` and `Referrer-Policy: no-referrer`.
16
+ * - `embeddable`: `strict`'s nonce, `no-store` and `no-referrer`, for a page
17
+ * any origin may frame: `frame-ancestors *`, a form may post or redirect to
18
+ * any https URL, and no `X-Frame-Options` header.
19
+ */
20
+ export type RenderMode = "frame-deny" | "strict" | "embeddable";
21
+ export interface StartRendererOptions {
22
+ /**
23
+ * The built web app, `web/dist` after `vite build web`: it holds
24
+ * `server/server.js` and `client/assets`. A path or a `file:` URL.
25
+ */
26
+ webRoot: string | URL;
27
+ /**
28
+ * The public origin of the service. The Request handed to Start is built on
29
+ * it, so Start sees the URL a browser used. A function is read on every
30
+ * render, for config that loads late.
31
+ */
32
+ origin: string | URL | (() => string | URL);
33
+ /** A fixed page path (`/link`) for every render, instead of the request's own URL. */
34
+ path?: string;
35
+ /** Defaults to `frame-deny`. */
36
+ mode?: RenderMode;
37
+ /**
38
+ * `strict` and `embeddable`: builds the Content-Security-Policy from the
39
+ * request's nonce. Defaults to {@link strictContentSecurityPolicy} in
40
+ * `strict` and {@link embeddableContentSecurityPolicy} in `embeddable`.
41
+ */
42
+ contentSecurityPolicy?: (nonce: string) => string;
43
+ /**
44
+ * `strict` and `embeddable`: the request header that carries the nonce to Start.
45
+ * Defaults to `x-csp-nonce`. The web app reads it with
46
+ * `getRequest().headers.get("x-csp-nonce")` and passes it to the router as
47
+ * `ssr: { nonce }`, so Start stamps it on its inline scripts.
48
+ */
49
+ nonceHeader?: string;
50
+ }
51
+ export interface RenderOptions {
52
+ /** The page path for this render; wins over the factory's `path` and the request's URL. */
53
+ path?: string;
54
+ /** Defaults to the status Start answered with. */
55
+ status?: number;
56
+ /**
57
+ * Response headers added after Start's own and the mode's defaults. They
58
+ * cannot weaken the Content-Security-Policy or, in `frame-deny` and
59
+ * `strict`, `X-Frame-Options`, which are set last; in `embeddable` an
60
+ * `X-Frame-Options` here, or from Start, is dropped.
61
+ */
62
+ headers?: Record<string, string>;
63
+ }
64
+ export type StartRenderer<Page> = (req: RenderRequest, res: RenderResponse, page: Page, options?: RenderOptions) => Promise<void>;
65
+ /**
66
+ * A Content-Security-Policy for pages that carry no inline script or style
67
+ * except Start's hydration scripts and the one `<style>` React Aria adds
68
+ * (`touch-action` for pressable elements), which hold the request's nonce
69
+ * (React Aria reads it from Start's `csp-nonce` meta tag). A nonce admits
70
+ * `<script>` and `<style>` elements only; inline `style` attributes stay
71
+ * blocked. Scripts, styles and fonts come from this origin only; images from this origin and any
72
+ * https host; `fetch` only to this origin, which admits the same-origin
73
+ * browser errors tunnel (`/_nl/errors`). An app that needs another `connect-src`
74
+ * source extends this one directive, never adds a second `connect-src`, which
75
+ * browsers ignore.
76
+ */
77
+ export declare const strictContentSecurityPolicy: (nonce: string) => string;
78
+ /**
79
+ * {@link strictContentSecurityPolicy} for a page that sits in another site's
80
+ * iframe: any origin may frame it (`frame-ancestors *`) and its form may submit
81
+ * or redirect to any https URL (`form-action 'self' https:`).
82
+ */
83
+ export declare const embeddableContentSecurityPolicy: (nonce: string) => string;
84
+ /**
85
+ * Binds a renderer to a built TanStack Start app. The controller keeps the
86
+ * routing, auth and redirects and computes the page's data; the renderer runs
87
+ * Start on it and writes the HTML to the Express response. `Page` is the data
88
+ * the web app reads from the request context, defined by the app.
89
+ */
90
+ export declare function createStartRenderer<Page>(config: StartRendererOptions): StartRenderer<Page>;