nullius-eval 0.1.0__py3-none-any.whl
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.
- _nullius_app/.env.example +55 -0
- _nullius_app/app.py +96 -0
- _nullius_app/requirements.txt +1 -0
- _nullius_app/static/brand/README.md +20 -0
- _nullius_app/static/brand/docker.svg +1 -0
- _nullius_app/static/brand/favicon.svg +1 -0
- _nullius_app/static/brand/huggingface.svg +37 -0
- _nullius_app/static/brand/mark-dark.svg +1 -0
- _nullius_app/static/brand/marks.svg +34 -0
- _nullius_app/static/brand/tokens.json +51 -0
- _nullius_app/static/brand/typesafe.png +0 -0
- _nullius_app/static/brand/wordmark-dark.svg +1 -0
- _nullius_app/static/builder/command-builder-core.js +763 -0
- _nullius_app/static/builder/command-builder.css +248 -0
- _nullius_app/static/builder/command-builder.js +997 -0
- _nullius_app/static/builder/model-picker.js +113 -0
- _nullius_app/static/catalogue/add.js +46 -0
- _nullius_app/static/catalogue/agents/README.md +19 -0
- _nullius_app/static/catalogue/agents/goose.svg +1 -0
- _nullius_app/static/catalogue/agents/jiuwenswarm.svg +33 -0
- _nullius_app/static/catalogue/agents/marks.json +8 -0
- _nullius_app/static/catalogue/agents/mini-swe-agent.svg +7 -0
- _nullius_app/static/catalogue/agents/opencode.svg +7 -0
- _nullius_app/static/catalogue/catalogue.css +436 -0
- _nullius_app/static/catalogue/catalogue.js +87 -0
- _nullius_app/static/catalogue/marks.svg +29 -0
- _nullius_app/static/catalogue/new.js +78 -0
- _nullius_app/static/catalogue/versions.js +27 -0
- _nullius_app/static/compare/comparison.css +117 -0
- _nullius_app/static/controls.js +117 -0
- _nullius_app/static/disclosures.js +70 -0
- _nullius_app/static/fonts/0569c822cab6c510.ttf +0 -0
- _nullius_app/static/fonts/DMSans-Medium.woff2 +0 -0
- _nullius_app/static/fonts/DMSans-Regular.woff2 +0 -0
- _nullius_app/static/fonts/IBMPlexMono-Medium.woff2 +0 -0
- _nullius_app/static/fonts/IBMPlexMono-Regular.woff2 +0 -0
- _nullius_app/static/fonts/InstrumentSerif-Italic.woff2 +0 -0
- _nullius_app/static/fonts/InstrumentSerif-Regular.woff2 +0 -0
- _nullius_app/static/fonts/README.md +11 -0
- _nullius_app/static/fonts/c1e7453ea26a1d1e.ttf +0 -0
- _nullius_app/static/fonts/dmsans-OFL.txt +93 -0
- _nullius_app/static/fonts/ibmplexmono-OFL.txt +93 -0
- _nullius_app/static/fonts/instrumentserif-OFL.txt +93 -0
- _nullius_app/static/fonts.css +49 -0
- _nullius_app/static/notifications.js +49 -0
- _nullius_app/static/onboarding.css +78 -0
- _nullius_app/static/onboarding.js +158 -0
- _nullius_app/static/runs/board.css +358 -0
- _nullius_app/static/runs/board.js +127 -0
- _nullius_app/static/runs/launches.css +88 -0
- _nullius_app/static/runs/live-board.css +186 -0
- _nullius_app/static/runs/live-board.js +394 -0
- _nullius_app/static/runs/path-suggestions.js +119 -0
- _nullius_app/static/runs/start.css +38 -0
- _nullius_app/static/settings/autosave.js +162 -0
- _nullius_app/static/settings/custom-keys.js +100 -0
- _nullius_app/static/settings/data-providers.js +88 -0
- _nullius_app/static/settings/judges.js +61 -0
- _nullius_app/static/settings/modal.css +32 -0
- _nullius_app/static/settings/modal.js +91 -0
- _nullius_app/static/settings/navigation.js +55 -0
- _nullius_app/static/settings/prices.js +68 -0
- _nullius_app/static/settings/providers.js +134 -0
- _nullius_app/static/settings/sandbox.js +20 -0
- _nullius_app/static/settings/settings.css +288 -0
- _nullius_app/static/style.css +1752 -0
- _nullius_app/static/traces/conversation.css +49 -0
- _nullius_app/static/traces/conversation.js +215 -0
- _nullius_app/templates/agents/entry.html +145 -0
- _nullius_app/templates/agents/kits.html +55 -0
- _nullius_app/templates/agents/standard.html +58 -0
- _nullius_app/templates/base.html +479 -0
- _nullius_app/templates/builder/new_run.html +55 -0
- _nullius_app/templates/catalogue/add_dialog.html +32 -0
- _nullius_app/templates/catalogue/benchmark.html +270 -0
- _nullius_app/templates/catalogue/benchmarks.html +91 -0
- _nullius_app/templates/catalogue/new.html +141 -0
- _nullius_app/templates/catalogue/use_bundle.html +11 -0
- _nullius_app/templates/compare/_detail.html +37 -0
- _nullius_app/templates/compare/compare.html +298 -0
- _nullius_app/templates/compare/compare_picker.html +51 -0
- _nullius_app/templates/compare/compare_task.html +329 -0
- _nullius_app/templates/runs/_execution.html +131 -0
- _nullius_app/templates/runs/_runtime.html +5 -0
- _nullius_app/templates/runs/ascii-mark.html +485 -0
- _nullius_app/templates/runs/feasibility.html +127 -0
- _nullius_app/templates/runs/index.html +609 -0
- _nullius_app/templates/runs/job.html +460 -0
- _nullius_app/templates/runs/preparing.html +14 -0
- _nullius_app/templates/runs/reconcile.html +124 -0
- _nullius_app/templates/runs/setup.html +272 -0
- _nullius_app/templates/runs/start.html +51 -0
- _nullius_app/templates/settings/custom_keys.html +82 -0
- _nullius_app/templates/settings/data_providers.html +27 -0
- _nullius_app/templates/settings/settings.html +564 -0
- _nullius_app/templates/traces/_charts.html +165 -0
- _nullius_app/templates/traces/_conversation.html +37 -0
- _nullius_app/templates/traces/_judgement.html +72 -0
- _nullius_app/templates/traces/artifact.html +15 -0
- _nullius_app/templates/traces/trial.html +838 -0
- _nullius_app/templates/workspaces/workspaces.html +54 -0
- _nullius_app/web/__init__.py +1 -0
- _nullius_app/web/agents.py +230 -0
- _nullius_app/web/builder.py +406 -0
- _nullius_app/web/catalogue.py +370 -0
- _nullius_app/web/compare.py +489 -0
- _nullius_app/web/core.py +17 -0
- _nullius_app/web/execute.py +223 -0
- _nullius_app/web/feasibility.py +60 -0
- _nullius_app/web/filters.py +231 -0
- _nullius_app/web/judge.py +623 -0
- _nullius_app/web/judge_tasks.py +33 -0
- _nullius_app/web/onboarding.py +20 -0
- _nullius_app/web/reconcile.py +47 -0
- _nullius_app/web/runs.py +464 -0
- _nullius_app/web/settings.py +324 -0
- _nullius_app/web/shared.py +507 -0
- _nullius_app/web/traces.py +306 -0
- _nullius_app/web/workspaces.py +84 -0
- nullius/__init__.py +32 -0
- nullius/__main__.py +5 -0
- nullius/catalogue/__init__.py +0 -0
- nullius/catalogue/agents/codex/agent.json +222 -0
- nullius/catalogue/agents/codex/config.toml +25 -0
- nullius/catalogue/agents/goose/agent.json +131 -0
- nullius/catalogue/agents/goose/config.yaml +20 -0
- nullius/catalogue/agents/jiuwenswarm/agent.json +197 -0
- nullius/catalogue/agents/jiuwenswarm/agent.py +355 -0
- nullius/catalogue/agents/mini-swe-agent/agent.json +68 -0
- nullius/catalogue/agents/mini-swe-agent/run.py +37 -0
- nullius/catalogue/agents/opencode/agent.json +135 -0
- nullius/catalogue/agents/opencode/opencode.json +32 -0
- nullius/catalogue/agents/reference/agent.json +89 -0
- nullius/catalogue/agents/reference/agent.py +209 -0
- nullius/catalogue/agents/terminus-2/agent.json +64 -0
- nullius/catalogue/agents/terminus-2/run.py +139 -0
- nullius/catalogue/benchmarks/gaia/benchmark.json +72 -0
- nullius/catalogue/benchmarks/gaia/data-source.json +29 -0
- nullius/catalogue/benchmarks/gaia/driver.py +188 -0
- nullius/catalogue/benchmarks/gaia/env/data.Dockerfile +1 -0
- nullius/catalogue/benchmarks/gaia/standard.json +278 -0
- nullius/catalogue/benchmarks/gaia/upstream-settings.json +275 -0
- nullius/catalogue/benchmarks/gsm8k/benchmark.json +34 -0
- nullius/catalogue/benchmarks/gsm8k/driver.py +101 -0
- nullius/catalogue/benchmarks/gsm8k/standard.json +124 -0
- nullius/catalogue/benchmarks/gsm8k/upstream-settings.json +86 -0
- nullius/catalogue/benchmarks/humaneval/benchmark.json +36 -0
- nullius/catalogue/benchmarks/humaneval/driver.py +243 -0
- nullius/catalogue/benchmarks/humaneval/standard.json +115 -0
- nullius/catalogue/benchmarks/humaneval/upstream-settings.json +72 -0
- nullius/catalogue/benchmarks/locomo/benchmark.json +43 -0
- nullius/catalogue/benchmarks/locomo/driver.py +270 -0
- nullius/catalogue/benchmarks/locomo/standard.json +265 -0
- nullius/catalogue/benchmarks/locomo/upstream-settings.json +112 -0
- nullius/catalogue/benchmarks/longmemeval/benchmark.json +65 -0
- nullius/catalogue/benchmarks/longmemeval/driver.py +379 -0
- nullius/catalogue/benchmarks/longmemeval/standard.json +733 -0
- nullius/catalogue/benchmarks/longmemeval/upstream-settings.json +76 -0
- nullius/catalogue/benchmarks/swe-bench-verified/benchmark.json +87 -0
- nullius/catalogue/benchmarks/swe-bench-verified/driver.py +116 -0
- nullius/catalogue/benchmarks/swe-bench-verified/images.json +502 -0
- nullius/catalogue/benchmarks/swe-bench-verified/standard.json +108 -0
- nullius/catalogue/benchmarks/swe-bench-verified/upstream-settings.json +32 -0
- nullius/catalogue/benchmarks/tau3-bench/benchmark.json +49 -0
- nullius/catalogue/benchmarks/tau3-bench/driver.py +608 -0
- nullius/catalogue/benchmarks/tau3-bench/mcp_server.py +114 -0
- nullius/catalogue/benchmarks/tau3-bench/search_relay.py +19 -0
- nullius/catalogue/benchmarks/tau3-bench/standard.json +547 -0
- nullius/catalogue/benchmarks/tau3-bench/upstream-settings.json +639 -0
- nullius/catalogue/benchmarks/terminal-bench/benchmark.json +69 -0
- nullius/catalogue/benchmarks/terminal-bench/driver.py +267 -0
- nullius/catalogue/benchmarks/terminal-bench/standard.json +166 -0
- nullius/catalogue/benchmarks/terminal-bench/upstream-settings.json +36 -0
- nullius/catalogue/capabilities/keyword-memory/capability.json +33 -0
- nullius/catalogue/capabilities/keyword-memory/capability.py +55 -0
- nullius/catalogue/capabilities/mem0/capability.json +135 -0
- nullius/catalogue/capabilities/mem0/capability.py +173 -0
- nullius/catalogue/catalog.py +426 -0
- nullius/catalogue/citation.py +116 -0
- nullius/catalogue/harbor_entry.py +367 -0
- nullius/catalogue/sources.py +107 -0
- nullius/catalogue/storage.py +125 -0
- nullius/cli.py +85 -0
- nullius/compare/__init__.py +0 -0
- nullius/compare/cli.py +265 -0
- nullius/compare/comparison.py +184 -0
- nullius/execution.py +1653 -0
- nullius/gitrefs.py +128 -0
- nullius/harbor/__init__.py +0 -0
- nullius/harbor/feed.py +228 -0
- nullius/harbor/source.py +582 -0
- nullius/hosts.py +368 -0
- nullius/importers/__init__.py +140 -0
- nullius/importers/atif.py +387 -0
- nullius/importers/cli.py +135 -0
- nullius/importers/otel.py +274 -0
- nullius/judge/__init__.py +14 -0
- nullius/judge/batch.py +122 -0
- nullius/judge/client.py +433 -0
- nullius/judge/floors.json +86 -0
- nullius/judge/lanes.py +89 -0
- nullius/judge/questions.py +309 -0
- nullius/judge/reconcile.py +176 -0
- nullius/judge/state.py +224 -0
- nullius/judge/store.py +167 -0
- nullius/migrate.py +268 -0
- nullius/onboarding.py +116 -0
- nullius/paths.py +89 -0
- nullius/prerequisites.py +129 -0
- nullius/prices.py +283 -0
- nullius/progress.py +294 -0
- nullius/providers.py +335 -0
- nullius/recipes/__init__.py +0 -0
- nullius/recipes/launch.py +78 -0
- nullius/redact.py +72 -0
- nullius/runs/__init__.py +0 -0
- nullius/runs/artifacts.py +67 -0
- nullius/runs/classify.py +216 -0
- nullius/runs/cli.py +316 -0
- nullius/runs/feasibility.py +442 -0
- nullius/runs/launches.py +149 -0
- nullius/runs/live.py +715 -0
- nullius/runs/parse.py +1016 -0
- nullius/runs/verifier.py +241 -0
- nullius/sandbox.py +109 -0
- nullius/secrets.py +218 -0
- nullius/settings.py +544 -0
- nullius/standard/__init__.py +15 -0
- nullius/standard/acp.py +305 -0
- nullius/standard/cancellation.py +19 -0
- nullius/standard/cli.py +703 -0
- nullius/standard/conform.py +149 -0
- nullius/standard/container.py +1870 -0
- nullius/standard/definitions.py +1651 -0
- nullius/standard/egress.py +192 -0
- nullius/standard/fidelity.py +256 -0
- nullius/standard/forward.py +139 -0
- nullius/standard/hostreq.py +105 -0
- nullius/standard/howto.py +220 -0
- nullius/standard/install.py +428 -0
- nullius/standard/job.py +551 -0
- nullius/standard/jsonl.py +129 -0
- nullius/standard/kits/agent-conversation-v1/driver.py +27 -0
- nullius/standard/kits/agent-conversation-v1/standard.json +26 -0
- nullius/standard/kits/agent-search-v1/driver.py +171 -0
- nullius/standard/kits/agent-search-v1/standard.json +99 -0
- nullius/standard/kits/agent-task-v1/driver.py +25 -0
- nullius/standard/kits/agent-task-v1/standard.json +100 -0
- nullius/standard/kits/agent-tools-v1/driver.py +206 -0
- nullius/standard/kits/agent-tools-v1/mcp_kit.py +209 -0
- nullius/standard/kits/agent-tools-v1/standard.json +119 -0
- nullius/standard/kits/agent-workspace-v1/driver.py +65 -0
- nullius/standard/kits/agent-workspace-v1/standard.json +95 -0
- nullius/standard/kits/cap-memory-v1/driver.py +39 -0
- nullius/standard/kits/cap-memory-v1/standard.json +91 -0
- nullius/standard/ledger.py +326 -0
- nullius/standard/match.py +66 -0
- nullius/standard/mcp_bridge.py +62 -0
- nullius/standard/mcp_machine.py +193 -0
- nullius/standard/merge.py +239 -0
- nullius/standard/names.py +37 -0
- nullius/standard/network_requirements.py +44 -0
- nullius/standard/pace.py +53 -0
- nullius/standard/payload.py +278 -0
- nullius/standard/pins.py +130 -0
- nullius/standard/ports.py +70 -0
- nullius/standard/prove.py +373 -0
- nullius/standard/recipe.py +746 -0
- nullius/standard/relay.py +785 -0
- nullius/standard/run.py +1781 -0
- nullius/standard/setup_container.py +208 -0
- nullius/standard/shard.py +71 -0
- nullius/standard/web_services.py +30 -0
- nullius/traces/__init__.py +0 -0
- nullius/traces/behavior.py +131 -0
- nullius/traces/charts.py +898 -0
- nullius/traces/conversation.py +159 -0
- nullius/traces/otel.py +608 -0
- nullius/traces/trace.py +1477 -0
- nullius/traces/trajectory.py +586 -0
- nullius/workspace.py +417 -0
- nullius/workspace_cli.py +119 -0
- nullius_eval-0.1.0.dist-info/METADATA +93 -0
- nullius_eval-0.1.0.dist-info/RECORD +291 -0
- nullius_eval-0.1.0.dist-info/WHEEL +5 -0
- nullius_eval-0.1.0.dist-info/entry_points.txt +2 -0
- nullius_eval-0.1.0.dist-info/licenses/LICENSE +202 -0
- nullius_eval-0.1.0.dist-info/licenses/app/static/fonts/dmsans-OFL.txt +93 -0
- nullius_eval-0.1.0.dist-info/licenses/app/static/fonts/ibmplexmono-OFL.txt +93 -0
- nullius_eval-0.1.0.dist-info/licenses/app/static/fonts/instrumentserif-OFL.txt +93 -0
- nullius_eval-0.1.0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Add a Harbor benchmark: "Read from Harbor" fills what Harbor knows (the task
|
|
2
|
+
// count, the limits a task declares, a key and title from the name). The form
|
|
3
|
+
// saves as a plain post.
|
|
4
|
+
(() => {
|
|
5
|
+
const form = document.getElementById('nb-form');
|
|
6
|
+
if (!form) return;
|
|
7
|
+
const ref = document.getElementById('nb-ref'), said = document.getElementById('nb-said'), button = document.getElementById('nb-read');
|
|
8
|
+
const field = name => form.elements[name];
|
|
9
|
+
const source = () => form.querySelector('input[name=source]:checked')?.value || 'hub';
|
|
10
|
+
const fill = (name, value, always) => {
|
|
11
|
+
const el = field(name);
|
|
12
|
+
if (el && value != null && value !== '' && (always || !el.value)) el.value = value;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const placeholder = () => { ref.placeholder = source() === 'hub' ? 'org/name' : 'name@version'; };
|
|
16
|
+
form.querySelectorAll('input[name=source]').forEach(r => r.addEventListener('change', placeholder));
|
|
17
|
+
placeholder();
|
|
18
|
+
|
|
19
|
+
button.addEventListener('click', async () => {
|
|
20
|
+
button.disabled = true; said.className = 'nb-said'; said.textContent = 'Asking Harbor…';
|
|
21
|
+
try {
|
|
22
|
+
const r = await nulliusFetch(form.dataset.read, {method: 'POST', headers: {'Content-Type': 'application/json', 'X-CSRF-Token': field('csrf').value},
|
|
23
|
+
body: JSON.stringify({source: source(), ref: ref.value})});
|
|
24
|
+
const j = await r.json();
|
|
25
|
+
if (!j.ok) throw new Error(j.error || 'HTTP ' + r.status);
|
|
26
|
+
fill('key', j.key); fill('title', j.title); fill('domain', j.description);
|
|
27
|
+
fill('tasks', j.tasks, true);
|
|
28
|
+
for (const [k, s] of Object.entries(j.timeouts)) fill('timeout_' + k, s, true);
|
|
29
|
+
said.className = 'nb-said ok';
|
|
30
|
+
said.textContent = `${j.tasks} tasks${j.version ? ' · version ' + j.version : ''} · limits from ${j.task}'s task.toml; agent setup is Harbor's default`;
|
|
31
|
+
} catch (e) {
|
|
32
|
+
said.className = 'nb-said bad'; said.textContent = String(e.message || e);
|
|
33
|
+
} finally { button.disabled = false; }
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// A field speaks below itself only when it has something to say; Save stays blocked while one says it is wrong.
|
|
37
|
+
const say = (el, msg, text, bad) => { msg.innerHTML = text; msg.hidden = !text; msg.classList.toggle('bad', !!bad); el.classList.toggle('invalid', !!bad); };
|
|
38
|
+
const key = document.getElementById('nb-key'), keyMsg = document.getElementById('nb-key-msg');
|
|
39
|
+
const taken = new Set(JSON.parse(form.dataset.keys || '[]'));
|
|
40
|
+
const checkKey = () => {
|
|
41
|
+
const v = key.value.trim(), was = key.dataset.was;
|
|
42
|
+
if (key.disabled || !v) return say(key, keyMsg, '', false), true;
|
|
43
|
+
if (!/^[a-z0-9][a-z0-9-]*$/.test(v)) return say(key, keyMsg, 'Lowercase letters, digits and dashes only, starting with a letter or digit.', true), false;
|
|
44
|
+
if (v === 'new' || (v !== was && taken.has(v))) return say(key, keyMsg, `<b>${v}</b> is taken: another benchmark uses that key.`, true), false;
|
|
45
|
+
say(key, keyMsg, was && v !== was ? `Saving moves the folder to benchmarks/${v}/.` : '', false);
|
|
46
|
+
return true;
|
|
47
|
+
};
|
|
48
|
+
const logo = document.getElementById('nb-logo'), logoMsg = document.getElementById('nb-logo-msg'), logoSaid = logoMsg.innerHTML, logoHidden = logoMsg.hidden;
|
|
49
|
+
const checkLogo = () => {
|
|
50
|
+
const f = logo.files[0];
|
|
51
|
+
if (!f) { logoMsg.innerHTML = logoSaid; logoMsg.hidden = logoHidden; logoMsg.classList.remove('bad'); logo.classList.remove('invalid'); return true; }
|
|
52
|
+
if (!/\.(png|jpe?g|svg)$/i.test(f.name)) return say(logo, logoMsg, 'A PNG, JPEG or SVG file.', true), false;
|
|
53
|
+
if (f.size > Number(logo.dataset.max)) return say(logo, logoMsg, `${Math.ceil(f.size / 1000)} KB: keep it under ${Number(logo.dataset.max) / 1000} KB (a 64 px image is plenty).`, true), false;
|
|
54
|
+
return say(logo, logoMsg, '', false), true;
|
|
55
|
+
};
|
|
56
|
+
key.addEventListener('input', checkKey); logo.addEventListener('change', checkLogo);
|
|
57
|
+
checkKey();
|
|
58
|
+
form.addEventListener('submit', e => {
|
|
59
|
+
if (!checkKey() | !checkLogo()) { e.preventDefault(); form.querySelector('.invalid')?.focus(); }
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// A Harbor route for an existing benchmark: only the dataset's fields are asked; the benchmark's are its own
|
|
63
|
+
// already, so they are hidden and disabled (a disabled field is neither required nor sent).
|
|
64
|
+
const routeFor = document.getElementById('nb-route-for');
|
|
65
|
+
if (routeFor) {
|
|
66
|
+
const route = () => {
|
|
67
|
+
const on = !!routeFor.value;
|
|
68
|
+
form.querySelectorAll('.nb-entry').forEach(el => { el.hidden = on; el.querySelectorAll('input, select, textarea').forEach(i => { i.disabled = on; }); });
|
|
69
|
+
document.getElementById('nb-route-msg').hidden = !on;
|
|
70
|
+
if (on) form.querySelector('.nb-more')?.setAttribute('open', '');
|
|
71
|
+
const title = routeFor.selectedOptions[0].textContent.replace(/: run it with Harbor too$/, '');
|
|
72
|
+
form.elements.dataset_key.placeholder = on ? routeFor.value + '-harbor' : "the benchmark's key";
|
|
73
|
+
form.elements.dataset_title.placeholder = on ? title + ' on Harbor' : "the benchmark's title";
|
|
74
|
+
};
|
|
75
|
+
routeFor.addEventListener('change', route);
|
|
76
|
+
route();
|
|
77
|
+
}
|
|
78
|
+
})();
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* Version links still load the server's complete definition. Preserve the
|
|
2
|
+
reader's position only for this explicit navigation, not unrelated visits. */
|
|
3
|
+
(() => {
|
|
4
|
+
const nav = document.querySelector('.std-versions');
|
|
5
|
+
if (!nav) return;
|
|
6
|
+
const key = 'nullius-version-scroll';
|
|
7
|
+
try {
|
|
8
|
+
const saved = JSON.parse(sessionStorage.getItem(key) || 'null');
|
|
9
|
+
sessionStorage.removeItem(key);
|
|
10
|
+
if (saved && saved.url === location.href && Number.isFinite(saved.y)) {
|
|
11
|
+
const restore = () => window.scrollTo({left: saved.x, top: saved.y, behavior: 'instant'});
|
|
12
|
+
restore();
|
|
13
|
+
// Font loading can change the height above the selected version.
|
|
14
|
+
document.fonts.ready.then(restore);
|
|
15
|
+
}
|
|
16
|
+
} catch (_) { /* Storage restrictions must not break ordinary links. */ }
|
|
17
|
+
nav.addEventListener('click', event => {
|
|
18
|
+
const link = event.target.closest('a');
|
|
19
|
+
if (!link || event.defaultPrevented || event.button !== 0 ||
|
|
20
|
+
event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
|
|
21
|
+
try {
|
|
22
|
+
sessionStorage.setItem(key, JSON.stringify({
|
|
23
|
+
url: link.href, x: window.scrollX, y: window.scrollY
|
|
24
|
+
}));
|
|
25
|
+
} catch (_) { /* The version remains accessible without storage. */ }
|
|
26
|
+
});
|
|
27
|
+
})();
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* Comparison controls share the shell's theme and leave data colours alone. */
|
|
2
|
+
.compare-title { justify-content: space-between; align-items: center; }
|
|
3
|
+
.cohort-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
|
|
4
|
+
.cohort-switch { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--surface); }
|
|
5
|
+
.cohort-switch a { padding: .5rem .9rem; border-radius: 5px; font-size: .84rem; color: var(--text-dim); }
|
|
6
|
+
.cohort-switch a:hover { background: var(--surface-2); text-decoration: none; }
|
|
7
|
+
.cohort-switch a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
|
|
8
|
+
.cohort-note { margin: 1rem 0 1.6rem; padding: 1rem 1.2rem; background: var(--surface-2); border-radius: 7px; color: var(--text-dim); font-size: .85rem; line-height: 1.7; }
|
|
9
|
+
.cohort-note p { margin: 0; }
|
|
10
|
+
.cohort-note p + p { margin-top: .55rem; }
|
|
11
|
+
.compare-workspace { color: var(--text-dim); font-size: .74rem; font-weight: 400; margin-top: .35rem; }
|
|
12
|
+
.compare-excluded { color: var(--text-faint); font-size: .73rem; margin-top: .35rem; }
|
|
13
|
+
.compare-attempts { display: block; color: var(--text-faint); font-size: .72rem; margin-top: .4rem; }
|
|
14
|
+
.compare-task-dataset { display: block; color: var(--text-faint); font: .7rem var(--sans); margin: .3rem 0 0 1.5rem; }
|
|
15
|
+
.compare-picker { max-width: 1100px; }
|
|
16
|
+
.compare-pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
|
|
17
|
+
.compare-pick-side { min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
|
|
18
|
+
.compare-pick-side > label { color: var(--text-dim); font-size: .82rem; }
|
|
19
|
+
.compare-pick-side select { width: 100%; min-width: 0; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: 7px; font: .88rem var(--sans); color: var(--text); background: var(--surface); }
|
|
20
|
+
.compare-pick-side option { color: var(--text); background: var(--surface); }
|
|
21
|
+
.compare-pick-caption { color: var(--text-faint); font-size: .8rem; margin: .2rem 0 0; }
|
|
22
|
+
.compare-pick-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
|
|
23
|
+
.compare-pick-actions > label { display: inline-flex; gap: .45rem; align-items: center; color: var(--text-dim); font-size: .85rem; }
|
|
24
|
+
.compare-pick-step { color: var(--text-faint); font: .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1.4rem; }
|
|
25
|
+
@media (max-width: 640px) {
|
|
26
|
+
.compare-pick-grid { grid-template-columns: 1fr; gap: 1rem; }
|
|
27
|
+
.cohort-tools { align-items: flex-start; flex-direction: column; }
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* One column contract for the overview, task rows and expanded metrics. */
|
|
31
|
+
.compare-table-wrap {
|
|
32
|
+
--compare-label-width: 20rem;
|
|
33
|
+
--compare-cell-inset: .9rem;
|
|
34
|
+
border-radius: 0;
|
|
35
|
+
}
|
|
36
|
+
.compare-table-wrap .compare-label-col { width: var(--compare-label-width); }
|
|
37
|
+
.compare-table-wrap .grid.compare {
|
|
38
|
+
min-width: calc(var(--compare-label-width) + var(--cols, 2) * 18rem);
|
|
39
|
+
}
|
|
40
|
+
.compare-table-wrap .grid.compare th.rowhead,
|
|
41
|
+
.compare-table-wrap .grid.inner th.rowhead,
|
|
42
|
+
.compare-table-wrap .grid.compare.tasks thead th:first-child { width: auto; }
|
|
43
|
+
.compare-table-wrap .grid.compare > tbody > tr > th,
|
|
44
|
+
.compare-table-wrap .grid.compare > tbody > tr > td {
|
|
45
|
+
padding: .6rem var(--compare-cell-inset);
|
|
46
|
+
}
|
|
47
|
+
.compare-table-wrap .grid.compare > thead > tr > th {
|
|
48
|
+
padding-inline: var(--compare-cell-inset);
|
|
49
|
+
}
|
|
50
|
+
.compare-table-wrap .grid.compare.tasks > tbody > .compare-task-row > td { vertical-align: middle; }
|
|
51
|
+
.compare-task-name { display: flex; align-items: center; gap: .4rem; min-width: 0; }
|
|
52
|
+
.compare-task-name .disclose { flex: none; margin: 0; min-height: 1.8rem; }
|
|
53
|
+
.compare-task-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; overflow: hidden; overflow-wrap: anywhere; font-size: .82rem; }
|
|
54
|
+
.compare-run-cell { container-type: inline-size; }
|
|
55
|
+
.compare-cell-summary { display: grid; grid-template-columns: minmax(0, 1fr) 4rem 5rem; align-items: center; gap: .75rem; }
|
|
56
|
+
.compare-cell-outcome { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
|
|
57
|
+
.compare-quick-metric { display: flex; flex-direction: column; gap: .15rem; font: .76rem var(--sans); white-space: nowrap; }
|
|
58
|
+
.compare-quick-metric > span { color: var(--text-dim); font-size: .65rem; }
|
|
59
|
+
.compare-quick-metric > strong { color: var(--text); font-weight: 500; }
|
|
60
|
+
@container (max-width: 22rem) {
|
|
61
|
+
.compare-cell-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; }
|
|
62
|
+
.compare-cell-outcome { grid-column: 1 / -1; }
|
|
63
|
+
.compare-quick-metric { flex-direction: row; align-items: baseline; gap: .4rem; }
|
|
64
|
+
}
|
|
65
|
+
/* A spanning cell must have no inset and must not become a sticky column. */
|
|
66
|
+
.compare-table-wrap .grid.compare.tasks > tbody > .detail-row > td {
|
|
67
|
+
padding: 0;
|
|
68
|
+
position: static;
|
|
69
|
+
overflow: visible;
|
|
70
|
+
box-shadow: none;
|
|
71
|
+
}
|
|
72
|
+
.compare-table-wrap .grid.inner { width: 100%; min-width: 0; margin: 0; }
|
|
73
|
+
.compare-table-wrap .grid.inner td,
|
|
74
|
+
.compare-table-wrap .grid.inner th { padding: .45rem var(--compare-cell-inset); }
|
|
75
|
+
.compare-table-wrap .detail-more {
|
|
76
|
+
margin: 0;
|
|
77
|
+
padding: .8rem var(--compare-cell-inset) .9rem calc(var(--compare-label-width) + var(--compare-cell-inset));
|
|
78
|
+
}
|
|
79
|
+
@media (max-width: 640px) {
|
|
80
|
+
.compare-table-wrap { --compare-label-width: 14rem; }
|
|
81
|
+
/* Let a whole agent column enter the viewport when scrolling on a phone. */
|
|
82
|
+
.compare-table-wrap .grid.compare th.rowhead,
|
|
83
|
+
.compare-table-wrap .grid.inner th.rowhead,
|
|
84
|
+
.compare-table-wrap .grid.compare.tasks > thead > tr > th:first-child,
|
|
85
|
+
.compare-table-wrap .grid.compare.tasks > tbody > .compare-task-row > td:first-child { position: static; }
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Side-by-side trial headings: section-title margins must not offset badges. */
|
|
89
|
+
.cmp-head .compare-trial-heading {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: baseline;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
gap: .45rem .65rem;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
}
|
|
96
|
+
.cmp-head .compare-trial-heading > h2 {
|
|
97
|
+
flex: 0 1 auto;
|
|
98
|
+
min-width: 0;
|
|
99
|
+
max-width: 100%;
|
|
100
|
+
margin: 0;
|
|
101
|
+
line-height: 1.35;
|
|
102
|
+
overflow-wrap: anywhere;
|
|
103
|
+
}
|
|
104
|
+
.cmp-head .compare-trial-tags {
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
flex-wrap: wrap;
|
|
108
|
+
gap: .35rem;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
max-width: 100%;
|
|
111
|
+
}
|
|
112
|
+
.cmp-head .compare-trial-tags > .tag {
|
|
113
|
+
min-width: 0;
|
|
114
|
+
max-width: 100%;
|
|
115
|
+
white-space: normal;
|
|
116
|
+
overflow-wrap: anywhere;
|
|
117
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// Keep real selects as form/state owners; render a consistent, keyboard-accessible menu.
|
|
2
|
+
(() => {
|
|
3
|
+
const controls = new Map(); let active = null, serial = 0, scheduled = false;
|
|
4
|
+
function close(focus = false) {
|
|
5
|
+
if (!active) return;
|
|
6
|
+
const {menu, button} = active; active = null; menu.remove();
|
|
7
|
+
button.setAttribute('aria-expanded', 'false'); button.removeAttribute('aria-activedescendant');
|
|
8
|
+
if (focus && button.isConnected) button.focus();
|
|
9
|
+
}
|
|
10
|
+
function open(select, button) {
|
|
11
|
+
close();
|
|
12
|
+
const menu = document.createElement('div'); menu.className = 'ui-select-menu'; menu.id = button.getAttribute('aria-controls');
|
|
13
|
+
menu.setAttribute('role', 'listbox'); menu.setAttribute('popover', 'manual');
|
|
14
|
+
menu.setAttribute('aria-label', button.getAttribute('aria-label'));
|
|
15
|
+
const rows = [];
|
|
16
|
+
[...select.options].forEach((option, index) => {
|
|
17
|
+
if (option.hidden) return;
|
|
18
|
+
const row = document.createElement('div'); row.className = 'ui-select-option'; row.id = menu.id + '-' + index;
|
|
19
|
+
row.setAttribute('role', 'option'); row.setAttribute('aria-selected', String(option.selected));
|
|
20
|
+
row.setAttribute('aria-disabled', String(option.disabled || option.parentElement.disabled === true));
|
|
21
|
+
row.textContent = option.textContent; row.dataset.index = index;
|
|
22
|
+
row.addEventListener('pointerdown', event => event.preventDefault());
|
|
23
|
+
row.addEventListener('click', event => { event.preventDefault(); event.stopPropagation(); choose(index); });
|
|
24
|
+
menu.append(row); rows.push(row);
|
|
25
|
+
});
|
|
26
|
+
(select.closest('dialog[open]') || document.body).append(menu);
|
|
27
|
+
active = {select, button, menu, rows, index: select.selectedIndex, typed: '', typedAt: 0};
|
|
28
|
+
button.setAttribute('aria-expanded', 'true');
|
|
29
|
+
const rect = button.getBoundingClientRect();
|
|
30
|
+
menu.style.width = Math.min(Math.max(rect.width, 180), innerWidth - 16) + 'px';
|
|
31
|
+
menu.style.left = Math.max(8, Math.min(rect.left, innerWidth - parseFloat(menu.style.width) - 8)) + 'px';
|
|
32
|
+
const below = innerHeight - rect.bottom - 12, above = rect.top - 12;
|
|
33
|
+
const down = below >= Math.min(260, rows.length * 34 + 10) || below >= above;
|
|
34
|
+
menu.style.maxHeight = Math.max(64, Math.min(260, down ? below : above)) + 'px';
|
|
35
|
+
if (down) menu.style.top = rect.bottom + 5 + 'px'; else menu.style.bottom = innerHeight - rect.top + 5 + 'px';
|
|
36
|
+
if (menu.showPopover) menu.showPopover();
|
|
37
|
+
highlight(select.selectedIndex);
|
|
38
|
+
}
|
|
39
|
+
function highlight(index) {
|
|
40
|
+
if (!active) return;
|
|
41
|
+
const row = active.rows.find(r => Number(r.dataset.index) === index && r.getAttribute('aria-disabled') !== 'true');
|
|
42
|
+
if (!row) return;
|
|
43
|
+
active.index = index;
|
|
44
|
+
active.rows.forEach(r => r.classList.toggle('is-active', r === row));
|
|
45
|
+
active.button.setAttribute('aria-activedescendant', row.id); row.scrollIntoView({block: 'nearest'});
|
|
46
|
+
}
|
|
47
|
+
function choose(index) {
|
|
48
|
+
if (!active) return;
|
|
49
|
+
const {select, rows} = active;
|
|
50
|
+
if (!rows.some(r => Number(r.dataset.index) === index && r.getAttribute('aria-disabled') !== 'true')) return;
|
|
51
|
+
close(true); select.selectedIndex = index;
|
|
52
|
+
select.dispatchEvent(new Event('input', {bubbles: true})); select.dispatchEvent(new Event('change', {bubbles: true}));
|
|
53
|
+
scan();
|
|
54
|
+
}
|
|
55
|
+
function keydown(event, select, button) {
|
|
56
|
+
if (event.key === 'Escape' && active) { event.preventDefault(); event.stopPropagation(); close(true); return; }
|
|
57
|
+
if (event.key === 'Tab') { close(); return; }
|
|
58
|
+
if (['ArrowDown', 'ArrowUp', 'Home', 'End', 'Enter', ' '].includes(event.key)) {
|
|
59
|
+
event.preventDefault(); event.stopPropagation();
|
|
60
|
+
if (!active || active.button !== button) { open(select, button); return; }
|
|
61
|
+
if (event.key === 'Enter' || event.key === ' ') { choose(active.index); return; }
|
|
62
|
+
const enabled = active.rows.filter(r => r.getAttribute('aria-disabled') !== 'true').map(r => Number(r.dataset.index));
|
|
63
|
+
const i = enabled.indexOf(active.index);
|
|
64
|
+
highlight(enabled[event.key === 'Home' ? 0 : event.key === 'End' ? enabled.length - 1 : Math.max(0, Math.min(enabled.length - 1, i + (event.key === 'ArrowDown' ? 1 : -1)))]);
|
|
65
|
+
} else if (event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey) {
|
|
66
|
+
event.preventDefault(); if (!active) open(select, button);
|
|
67
|
+
active.typed = Date.now() - active.typedAt > 700 ? event.key : active.typed + event.key; active.typedAt = Date.now();
|
|
68
|
+
const row = active.rows.find(r => r.getAttribute('aria-disabled') !== 'true' && r.textContent.trim().toLowerCase().startsWith(active.typed.toLowerCase()));
|
|
69
|
+
if (row) highlight(Number(row.dataset.index));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function scan() {
|
|
73
|
+
scheduled = false;
|
|
74
|
+
if (active && (!active.select.isConnected || active.select.disabled)) close();
|
|
75
|
+
for (const [select, button] of controls) if (!select.isConnected) { button.remove(); controls.delete(select); }
|
|
76
|
+
document.querySelectorAll('select:not([multiple])').forEach(select => {
|
|
77
|
+
if (select.size > 1) return;
|
|
78
|
+
let button = controls.get(select);
|
|
79
|
+
if (!button) {
|
|
80
|
+
button = document.createElement('button'); button.type = 'button'; button.className = 'ui-select-trigger';
|
|
81
|
+
button.setAttribute('role', 'combobox'); button.setAttribute('aria-haspopup', 'listbox'); button.setAttribute('aria-expanded', 'false');
|
|
82
|
+
button.setAttribute('aria-controls', 'ui-options-' + (++serial));
|
|
83
|
+
const label = select.labels?.[0]?.cloneNode(true);
|
|
84
|
+
label?.querySelectorAll('select, input, button, small').forEach(n => n.remove());
|
|
85
|
+
button.setAttribute('aria-label', select.getAttribute('aria-label') || label?.textContent.trim() || select.name || 'Choose an option');
|
|
86
|
+
select.classList.add('ui-select-native'); select.setAttribute('aria-hidden', 'true'); select.tabIndex = -1;
|
|
87
|
+
select.after(button); controls.set(select, button);
|
|
88
|
+
button.addEventListener('click', e => { e.preventDefault(); e.stopPropagation(); if (active?.button === button) close(); else open(select, button); });
|
|
89
|
+
button.addEventListener('keydown', e => keydown(e, select, button));
|
|
90
|
+
select.addEventListener('invalid', e => { e.preventDefault(); button.focus(); button.setAttribute('aria-invalid', 'true'); });
|
|
91
|
+
select.addEventListener('change', () => { button.removeAttribute('aria-invalid'); scan(); });
|
|
92
|
+
}
|
|
93
|
+
const text = select.selectedOptions[0]?.textContent || 'Select…';
|
|
94
|
+
if (button.textContent !== text) button.textContent = text;
|
|
95
|
+
if (button.disabled !== select.disabled) button.disabled = select.disabled;
|
|
96
|
+
if (button.hidden !== select.hidden) button.hidden = select.hidden;
|
|
97
|
+
});
|
|
98
|
+
// Labels and help stay together on the left; compact fields sit on the right.
|
|
99
|
+
// Benchmark option controls already sit below their section heading.
|
|
100
|
+
document.querySelectorAll('label.nb-field:not(.ui-field-row):not(.std-optselect)').forEach(label => {
|
|
101
|
+
if (![...label.children].some(n => n.matches('select,input:not([type=checkbox]):not([type=radio]),textarea,.nb-model-control'))) return;
|
|
102
|
+
const copy = document.createElement('span'); copy.className = 'ui-field-copy';
|
|
103
|
+
[...label.childNodes].filter(n => n.nodeType === Node.TEXT_NODE || n.nodeType === Node.ELEMENT_NODE && n.matches('small')).forEach(n => copy.append(n));
|
|
104
|
+
label.prepend(copy); label.classList.add('ui-field-row');
|
|
105
|
+
// Keep the accessible label without making the entire form row a click target.
|
|
106
|
+
label.addEventListener('click', event => {
|
|
107
|
+
if (!event.target.closest('input, select, textarea, button, a')) event.preventDefault();
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
new MutationObserver(() => { if (!scheduled) { scheduled = true; requestAnimationFrame(scan); } }).observe(document.body, {subtree: true, childList: true, attributes: true, attributeFilter: ['disabled', 'selected', 'hidden', 'label']});
|
|
112
|
+
document.addEventListener('pointerdown', e => { if (active && !active.menu.contains(e.target) && !active.button.contains(e.target)) close(); });
|
|
113
|
+
document.addEventListener('scroll', e => { if (active && !active.menu.contains(e.target)) close(); }, true);
|
|
114
|
+
window.addEventListener('resize', () => close());
|
|
115
|
+
document.addEventListener('reset', () => requestAnimationFrame(scan));
|
|
116
|
+
scan();
|
|
117
|
+
})();
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const motion = matchMedia('(prefers-reduced-motion: reduce)');
|
|
3
|
+
const active = new WeakMap();
|
|
4
|
+
function stop(element) {
|
|
5
|
+
const running = active.get(element);
|
|
6
|
+
if (!running) return;
|
|
7
|
+
running.animation.onfinish = null;
|
|
8
|
+
running.animation.cancel();
|
|
9
|
+
element.style.overflow = running.overflow;
|
|
10
|
+
active.delete(element);
|
|
11
|
+
}
|
|
12
|
+
function animate(element, start, end, finish) {
|
|
13
|
+
const overflow = element.style.overflow;
|
|
14
|
+
element.style.overflow = 'hidden';
|
|
15
|
+
const animation = element.animate([{height: start + 'px'}, {height: end + 'px'}], {
|
|
16
|
+
duration: 240, easing: 'cubic-bezier(.2, 0, 0, 1)'
|
|
17
|
+
});
|
|
18
|
+
active.set(element, {animation, overflow});
|
|
19
|
+
animation.onfinish = () => {
|
|
20
|
+
element.style.overflow = overflow;
|
|
21
|
+
active.delete(element);
|
|
22
|
+
finish();
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
window.NulliusDisclosure = {
|
|
26
|
+
setHidden(element, expanded) {
|
|
27
|
+
const start = element.hidden ? 0 : element.getBoundingClientRect().height;
|
|
28
|
+
stop(element);
|
|
29
|
+
element.inert = !expanded;
|
|
30
|
+
if (motion.matches) { element.hidden = !expanded; return; }
|
|
31
|
+
element.hidden = false;
|
|
32
|
+
const end = expanded ? element.getBoundingClientRect().height : 0;
|
|
33
|
+
animate(element, start, end, () => { element.hidden = !expanded; });
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const eligible = details => !details.matches('.pop, .bench-delete, .facet details');
|
|
37
|
+
function prepare(root) {
|
|
38
|
+
const list = root.matches?.('details') ? [root] : [];
|
|
39
|
+
list.push(...root.querySelectorAll('details'));
|
|
40
|
+
list.filter(eligible).forEach(details => details.classList.add('slide-disclosure'));
|
|
41
|
+
}
|
|
42
|
+
prepare(document);
|
|
43
|
+
new MutationObserver(records => records.forEach(record => record.addedNodes.forEach(node => {
|
|
44
|
+
if (node.nodeType === 1) prepare(node);
|
|
45
|
+
}))).observe(document.body, {childList: true, subtree: true});
|
|
46
|
+
document.addEventListener('click', event => {
|
|
47
|
+
const summary = event.target.closest('summary');
|
|
48
|
+
const details = summary?.parentElement;
|
|
49
|
+
if (!details?.matches('details') || !eligible(details) || event.defaultPrevented) return;
|
|
50
|
+
if (event.target.closest('a, button, input, select, textarea')) return;
|
|
51
|
+
event.preventDefault();
|
|
52
|
+
const expanded = active.has(details) ? details.dataset.expanded !== 'true' : !details.open;
|
|
53
|
+
const start = details.getBoundingClientRect().height;
|
|
54
|
+
stop(details);
|
|
55
|
+
details.dataset.expanded = String(expanded);
|
|
56
|
+
summary.setAttribute('aria-expanded', String(expanded));
|
|
57
|
+
if (motion.matches) { details.open = expanded; return; }
|
|
58
|
+
details.open = expanded;
|
|
59
|
+
const end = details.getBoundingClientRect().height;
|
|
60
|
+
details.open = true;
|
|
61
|
+
animate(details, start, end, () => { details.open = expanded; });
|
|
62
|
+
});
|
|
63
|
+
document.addEventListener('toggle', event => {
|
|
64
|
+
const details = event.target;
|
|
65
|
+
if (details.matches?.('.slide-disclosure') && !active.has(details)) {
|
|
66
|
+
details.dataset.expanded = String(details.open);
|
|
67
|
+
details.querySelector(':scope > summary')?.setAttribute('aria-expanded', String(details.open));
|
|
68
|
+
}
|
|
69
|
+
}, true);
|
|
70
|
+
})();
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Nullius fonts
|
|
2
|
+
|
|
3
|
+
DM Sans, IBM Plex Mono and Instrument Serif, distributed under the SIL Open Font License 1.1. The unmodified license for each family is included beside the files.
|
|
4
|
+
|
|
5
|
+
Font assets were obtained from the Google Fonts CSS service; all font requests in Nullius use local static files. Characters outside the font coverage use the system fallback.
|
|
6
|
+
|
|
7
|
+
Source: https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap
|
|
8
|
+
|
|
9
|
+
The three identity families also have locally served WOFF2 conversions. Production styles use only regular and medium UI/code weights, and regular/italic Instrument Serif. Outlined identity asset provenance is in `../brand/README.md`; source licensing is in the repository’s root `LICENSE`.
|
|
10
|
+
|
|
11
|
+
The application interface uses the platform system font through CSS; no system font files are bundled. DM Sans remains available for documentation and brand assets. Instrument Serif retains its brand role, and IBM Plex Mono is used for technical text.
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
|
|
5
|
+
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|