@hamsterbase/evidra 0.10.0 → 0.11.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.
Files changed (33) hide show
  1. package/dist/web/assets/{ProjectFileEditor-UNmdSuZe.js → ProjectFileEditor-DEBN7kPz.js} +4 -4
  2. package/dist/web/assets/{cssMode-COmaLUNq.js → cssMode-Caowesyg.js} +1 -1
  3. package/dist/web/assets/{editor.api-R6KlZzbe.js → editor.api-DMnYGpPP.js} +1 -1
  4. package/dist/web/assets/{freemarker2-C2m-mHQ4.js → freemarker2-C0UBjyst.js} +1 -1
  5. package/dist/web/assets/{handlebars-B-bKPSy7.js → handlebars-5l9KZKlp.js} +1 -1
  6. package/dist/web/assets/{html-BYid8-Cb.js → html-B2QgDAL8.js} +1 -1
  7. package/dist/web/assets/{htmlMode-lEy3S6z-.js → htmlMode-CdmTuW2i.js} +1 -1
  8. package/dist/web/assets/{index-BLsK0GTs.js → index-6yaKzt_o.js} +2 -2
  9. package/dist/web/assets/{javascript-CNaeXfpz.js → javascript-DRAlmbdb.js} +1 -1
  10. package/dist/web/assets/{jsonMode-BsNOuD0Y.js → jsonMode-CZjCdzPs.js} +1 -1
  11. package/dist/web/assets/{liquid-SzSPMyv0.js → liquid-Be4Fmczw.js} +1 -1
  12. package/dist/web/assets/{lspLanguageFeatures-D2OMTqkm.js → lspLanguageFeatures-CiRiWhMn.js} +1 -1
  13. package/dist/web/assets/main-2eYLQy9d.js +13 -0
  14. package/dist/web/assets/main-B1hsTP9L.js +18 -0
  15. package/dist/web/assets/main-Dy19lr3f.css +1 -0
  16. package/dist/web/assets/{mdx-CSLOm-fY.js → mdx-Ddx7Huhf.js} +1 -1
  17. package/dist/web/assets/{monaco-C6LT02vG.js → monaco-Cz8BFbYv.js} +4 -4
  18. package/dist/web/assets/{python-CLBR4tu8.js → python-CySqb4fG.js} +1 -1
  19. package/dist/web/assets/{razor-DWz4AW4u.js → razor-C3cWFuK9.js} +1 -1
  20. package/dist/web/assets/{tsMode-DcC4a-WA.js → tsMode-D_ho-gbH.js} +1 -1
  21. package/dist/web/assets/{typescript-k3VpdHf7.js → typescript-B1K0F7Kw.js} +1 -1
  22. package/dist/web/assets/{workers-RoPzlvIe.js → workers-C8wlLBE0.js} +1 -1
  23. package/dist/web/assets/{xml-C865YqIc.js → xml-DCJLY8-r.js} +1 -1
  24. package/dist/web/assets/{yaml-C-uEIEiM.js → yaml-DQdyHjuy.js} +1 -1
  25. package/dist/web/index.html +1 -1
  26. package/package.json +2 -2
  27. package/skills/evidra-share/SKILL.md +20 -1
  28. package/skills/evidra-share/scripts/named-tunnel.mjs +465 -0
  29. package/skills/evidra-share/scripts/share.sh +24 -3
  30. package/skills/evidra-share/scripts/status.sh +4 -1
  31. package/dist/web/assets/main-BWSeza8V.css +0 -1
  32. package/dist/web/assets/main-BubCpOes.js +0 -13
  33. package/dist/web/assets/main-DKZY1u0y.js +0 -18
@@ -0,0 +1,465 @@
1
+ // One connector and one loopback router per machine. Control requests use a private Unix socket.
2
+ import { spawn } from 'node:child_process';
3
+ import { randomBytes, randomUUID } from 'node:crypto';
4
+ import fs from 'node:fs';
5
+ import http from 'node:http';
6
+ import os from 'node:os';
7
+ import path from 'node:path';
8
+ import { setTimeout as sleep } from 'node:timers/promises';
9
+ import { fileURLToPath } from 'node:url';
10
+ import { parseEnv } from 'node:util';
11
+
12
+ const [command, project, portArg] = process.argv.slice(2);
13
+ const directory = path.join(os.homedir(), '.local/state/evidra/named-share');
14
+ const socket = path.join(directory, 'ctl');
15
+ const ledger = path.join(directory, 'records.json');
16
+ const configFile = path.join(os.homedir(), '.config/evidra/share.env');
17
+ const keys = ['DOMAIN', 'TUNNEL_TOKEN', 'ZONE_ID', 'DNS_TOKEN'];
18
+ const routerPort = 24751;
19
+ const validDomain = /^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9-]{2,63}$/;
20
+ const uuid = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i;
21
+ const variable = (key) => 'EVIDRA_SHARE_' + key;
22
+
23
+ function configuration() {
24
+ const defaults = fs.existsSync(configFile) ? parseEnv(fs.readFileSync(configFile, 'utf8')) : {};
25
+ return Object.fromEntries(
26
+ keys.map((key) => [key, process.env[variable(key)] ?? defaults[variable(key)] ?? '']),
27
+ );
28
+ }
29
+
30
+ function validate(config) {
31
+ const missing = keys.filter((key) => !config[key]);
32
+ if (missing.length) throw Error('Named Tunnel 缺少配置:' + missing.map(variable).join('、'));
33
+ if (!validDomain.test(config.DOMAIN) || config.DOMAIN.length > 220)
34
+ throw Error('EVIDRA_SHARE_DOMAIN 应为小写域名');
35
+ if (!/^[\da-f]{32}$/i.test(config.ZONE_ID)) throw Error('EVIDRA_SHARE_ZONE_ID 格式错误');
36
+ let credential;
37
+ try {
38
+ credential = JSON.parse(Buffer.from(config.TUNNEL_TOKEN, 'base64').toString());
39
+ } catch {}
40
+ if (!uuid.test(credential?.t) || !credential.s) throw Error('EVIDRA_SHARE_TUNNEL_TOKEN 格式错误');
41
+ return credential.t;
42
+ }
43
+
44
+ async function dns(config, record, method, suffix, body) {
45
+ const response = await fetch(
46
+ 'https://api.cloudflare.com/client/v4/zones/' + record.zone + '/dns_records' + suffix,
47
+ {
48
+ method,
49
+ redirect: 'error',
50
+ signal: AbortSignal.timeout(10000),
51
+ headers: { Authorization: 'Bearer ' + config.DNS_TOKEN, 'Content-Type': 'application/json' },
52
+ body: body && JSON.stringify(body),
53
+ },
54
+ );
55
+ const data = await response.json();
56
+ if (method === 'DELETE' && data.errors?.some((error) => error.code === 81044)) return;
57
+ if (!response.ok || !data.success)
58
+ throw Error(
59
+ 'Cloudflare DNS ' +
60
+ method +
61
+ ' 失败:HTTP ' +
62
+ response.status +
63
+ '(' +
64
+ (data.errors ?? []).map((error) => error.code).join(',') +
65
+ ')',
66
+ );
67
+ return data.result;
68
+ }
69
+
70
+ async function readBody(request) {
71
+ let body = '';
72
+ for await (const chunk of request) {
73
+ body += chunk;
74
+ if (body.length > 32768) throw Error('控制请求过大');
75
+ }
76
+ return JSON.parse(body);
77
+ }
78
+
79
+ function control(action, config) {
80
+ return new Promise((resolve, reject) => {
81
+ const req = http.request({ socketPath: socket, path: '/', method: 'POST' }, async (res) => {
82
+ try {
83
+ const result = await readBody(res);
84
+ if (result.error) throw Error(result.error);
85
+ resolve(result.host ?? '');
86
+ } catch (error) {
87
+ reject(error);
88
+ }
89
+ });
90
+ req.on('error', reject);
91
+ req.end(
92
+ JSON.stringify({
93
+ action,
94
+ project,
95
+ port: Number(portArg),
96
+ config,
97
+ idle: process.env.IDLE_MINUTES ?? '30',
98
+ }),
99
+ );
100
+ });
101
+ }
102
+
103
+ async function serve() {
104
+ process.umask(0o077);
105
+ fs.mkdirSync(directory, { recursive: true, mode: 0o700 });
106
+ const records = fs.existsSync(ledger) ? JSON.parse(fs.readFileSync(ledger, 'utf8')) : [];
107
+ // After a restart, a DNS record may still need deletion. Never reactivate its old destination.
108
+ const active = new Map();
109
+ const credentials = new Map();
110
+ const revocations = new Map();
111
+ let connector;
112
+ let connectorToken;
113
+ let queue = Promise.resolve();
114
+ let busy = 0;
115
+ let controlRequests = 0;
116
+ const pidFile = path.join(directory, 'connector.pid');
117
+ function save() {
118
+ fs.writeFileSync(ledger + '.tmp', JSON.stringify(records), { mode: 0o600 });
119
+ fs.renameSync(ledger + '.tmp', ledger);
120
+ }
121
+ function revoke(record) {
122
+ const route = active.get(record.host);
123
+ active.delete(record.host);
124
+ for (const req of route?.clients ?? []) req.destroy();
125
+ }
126
+ async function remove(record) {
127
+ revoke(record);
128
+ const config = credentials.get(record.zone);
129
+ if (!config) throw Error('清理旧 DNS 需要该 Zone 的 EVIDRA_SHARE_DNS_TOKEN');
130
+ // A POST may have succeeded even when its response was lost. Delete only our own record.
131
+ if (!record.id) {
132
+ const found = await dns(config, record, 'GET', '?type=CNAME&name=' + record.host);
133
+ record.id = found.find(
134
+ (item) => item.comment === record.comment && item.content === record.target,
135
+ )?.id;
136
+ }
137
+ if (record.id) await dns(config, record, 'DELETE', '/' + record.id);
138
+ records.splice(records.indexOf(record), 1);
139
+ save();
140
+ }
141
+ const router = http.createServer((req, res) => {
142
+ const host = (req.headers.host ?? '').toLowerCase();
143
+ const route = active.get(host);
144
+ if (route && Date.now() - route.lastAccess >= route.idleMs) {
145
+ revoke(route);
146
+ res.writeHead(404).end();
147
+ return;
148
+ }
149
+ if (!route || !req.headers['cf-access-jwt-assertion']) {
150
+ res.writeHead(route ? 403 : 404).end();
151
+ return;
152
+ }
153
+ route.lastAccess = Date.now();
154
+ const upstream = http.request(
155
+ {
156
+ hostname: '127.0.0.1',
157
+ port: route.port,
158
+ method: req.method,
159
+ path: req.url,
160
+ headers: req.headers,
161
+ },
162
+ (response) => {
163
+ res.writeHead(response.statusCode, response.headers);
164
+ response.on('error', () => res.destroy());
165
+ response.pipe(res);
166
+ },
167
+ );
168
+ route.clients.add(upstream);
169
+ upstream.on('close', () => route.clients.delete(upstream));
170
+ upstream.on('error', () => {
171
+ if (!res.headersSent) res.writeHead(502);
172
+ res.end();
173
+ });
174
+ res.on('close', () => upstream.destroy());
175
+ req.pipe(upstream);
176
+ });
177
+ // Binding first gives a single owner the right to replace a stale control socket.
178
+ await new Promise((resolve, reject) =>
179
+ router.once('error', reject).listen(routerPort, '127.0.0.1', resolve),
180
+ );
181
+ fs.rmSync(socket, { force: true });
182
+ async function connect(config) {
183
+ if (connector && (connector.killed || config.TUNNEL_TOKEN !== connectorToken)) {
184
+ if (!connector.killed && active.size)
185
+ throw Error('已有其他 Named Tunnel 连接;请先关闭它的分享');
186
+ const exited = new Promise((resolve) => connector.once('close', resolve));
187
+ connector.kill();
188
+ await exited;
189
+ }
190
+ if (!connector) {
191
+ fs.rmSync(pidFile, { force: true });
192
+ connectorToken = config.TUNNEL_TOKEN;
193
+ const child = spawn(process.execPath, [fileURLToPath(import.meta.url), 'connector'], {
194
+ env: { PATH: process.env.PATH, HOME: os.homedir(), TUNNEL_TOKEN: connectorToken },
195
+ stdio: ['pipe', 'ignore', 'ignore', 'ipc'],
196
+ });
197
+ child.once('message', (pid) => {
198
+ child.nativePid = pid;
199
+ });
200
+ connector = child;
201
+ child.on('error', () => {});
202
+ child.on('close', () => {
203
+ if (connector === child) connector = undefined;
204
+ });
205
+ }
206
+ const deadline = Date.now() + 30000;
207
+ while (connector && Date.now() < deadline) {
208
+ if (
209
+ fs.existsSync(pidFile) &&
210
+ fs.readFileSync(pidFile, 'utf8').trim() === String(connector.nativePid)
211
+ ) {
212
+ const response = await fetch('http://127.0.0.1:24752/config', {
213
+ signal: AbortSignal.timeout(3000),
214
+ });
215
+ const remote = await response.json();
216
+ if (remote.version >= 0) return remote.config.ingress;
217
+ }
218
+ await sleep(200);
219
+ }
220
+ throw Error('Named Tunnel 未能连上 Cloudflare,请检查连接 token 和网络');
221
+ }
222
+
223
+ async function handle({ action, project, port, config, idle }, generation) {
224
+ if (action === 'status') {
225
+ const route = [...active.values()].find((route) => route.project === project);
226
+ return {
227
+ host: connector && route && Date.now() - route.lastAccess < route.idleMs ? route.host : '',
228
+ };
229
+ }
230
+ if (config.ZONE_ID && config.DNS_TOKEN)
231
+ credentials.set(config.ZONE_ID, { DNS_TOKEN: config.DNS_TOKEN });
232
+ const previous = records.filter((r) => r.project === project);
233
+ if (action === 'close') {
234
+ previous.forEach(revoke);
235
+ for (const record of previous) await remove(record);
236
+ return {};
237
+ }
238
+ if (action !== 'open') throw Error('未知操作');
239
+ const assertCurrent = () => {
240
+ if (generation !== revocations.get(project)) throw Error('公网分享已被 --lan 取消');
241
+ };
242
+ assertCurrent();
243
+ const tunnel = validate(config);
244
+ if (!Number.isInteger(port) || port < 1 || port > 65535 || !/^\d+$/.test(idle))
245
+ throw Error('无效的报告端口或空闲时间');
246
+ const rules = await connect(config);
247
+ assertCurrent();
248
+ const host = 'preview-' + randomBytes(10).toString('hex') + '.' + config.DOMAIN;
249
+ const rule = rules.find(
250
+ ({ hostname }) =>
251
+ !hostname ||
252
+ hostname === host ||
253
+ hostname === '*' ||
254
+ (hostname.startsWith('*.') && host.endsWith(hostname.slice(1))),
255
+ );
256
+ const access = rule?.originRequest?.access;
257
+ if (
258
+ rule?.service !== 'http://127.0.0.1:' + routerPort ||
259
+ rule.path ||
260
+ rule.originRequest?.httpHostHeader ||
261
+ !access?.required ||
262
+ !access.teamName ||
263
+ !access.audTag?.length
264
+ ) {
265
+ throw Error(
266
+ '请先配置 Named Tunnel 路由到 http://127.0.0.1:' +
267
+ routerPort +
268
+ ',保留原 Host,并在 Protect with Access 中选择报告应用',
269
+ );
270
+ }
271
+ const record = {
272
+ project,
273
+ host,
274
+ zone: config.ZONE_ID,
275
+ target: tunnel + '.cfargotunnel.com',
276
+ comment: 'Evidra ' + randomUUID(),
277
+ };
278
+ records.push(record);
279
+ save();
280
+ try {
281
+ const created = await dns(config, record, 'POST', '', {
282
+ type: 'CNAME',
283
+ name: host,
284
+ content: record.target,
285
+ proxied: true,
286
+ ttl: 1,
287
+ comment: record.comment,
288
+ });
289
+ record.id = created.id;
290
+ save();
291
+ // The local router stays closed until the public hostname reaches an actual Access login.
292
+ const deadline = Date.now() + 60000;
293
+ let protectedHost = false;
294
+ while (Date.now() < deadline) {
295
+ assertCurrent();
296
+ try {
297
+ const response = await fetch('https://' + host + '/api/project', {
298
+ redirect: 'manual',
299
+ signal: AbortSignal.timeout(4000),
300
+ headers: { 'Cache-Control': 'no-cache' },
301
+ });
302
+ const location = new URL(response.headers.get('location') ?? '/', 'https://' + host);
303
+ await response.body?.cancel();
304
+ protectedHost =
305
+ response.status === 302 &&
306
+ location.protocol === 'https:' &&
307
+ location.hostname === access.teamName + '.cloudflareaccess.com' &&
308
+ location.pathname.startsWith('/cdn-cgi/access/login/' + host);
309
+ if (protectedHost) break;
310
+ } catch {}
311
+ await sleep(1000);
312
+ }
313
+ if (!protectedHost)
314
+ throw Error('未确认公网入口已启用 Cloudflare Access,请检查域名、证书及 Allow 应用');
315
+ for (const old of previous) await remove(old);
316
+ assertCurrent();
317
+ active.set(host, {
318
+ project,
319
+ host,
320
+ port,
321
+ lastAccess: Date.now(),
322
+ idleMs: Number(idle) * 60000,
323
+ clients: new Set(),
324
+ });
325
+ return { host };
326
+ } catch (error) {
327
+ try {
328
+ await remove(record);
329
+ } catch (cleanup) {
330
+ throw Error(error.message + ';待重试清理:' + cleanup.message);
331
+ }
332
+ throw error;
333
+ }
334
+ }
335
+ function serial(operation) {
336
+ busy++;
337
+ const result = queue.then(operation);
338
+ queue = result
339
+ .catch(() => {})
340
+ .finally(() => {
341
+ busy--;
342
+ });
343
+ return result;
344
+ }
345
+ const admin = http.createServer(async (req, res) => {
346
+ controlRequests++;
347
+ try {
348
+ const message = await readBody(req);
349
+ if (message.action === 'close') {
350
+ revocations.set(message.project, (revocations.get(message.project) ?? 0) + 1);
351
+ for (const route of active.values()) if (route.project === message.project) revoke(route);
352
+ }
353
+ const generation = revocations.get(message.project);
354
+ const result =
355
+ message.action === 'status'
356
+ ? await handle(message)
357
+ : await serial(() => handle(message, generation));
358
+ res.end(JSON.stringify(result));
359
+ } catch (error) {
360
+ res.end(JSON.stringify({ error: error.message }));
361
+ } finally {
362
+ controlRequests--;
363
+ }
364
+ });
365
+ admin.listen(socket);
366
+ const initial = configuration();
367
+ if (initial.ZONE_ID && initial.DNS_TOKEN)
368
+ credentials.set(initial.ZONE_ID, { DNS_TOKEN: initial.DNS_TOKEN });
369
+ const timer = setInterval(() => {
370
+ if (busy) return;
371
+ serial(async () => {
372
+ for (const record of [...records]) {
373
+ const route = active.get(record.host);
374
+ if (route && Date.now() - route.lastAccess < route.idleMs) continue;
375
+ if (credentials.has(record.zone)) {
376
+ try {
377
+ await remove(record);
378
+ } catch (error) {
379
+ console.error(error.message);
380
+ }
381
+ }
382
+ }
383
+ if (controlRequests) return;
384
+ if (!active.size && connector) connector.kill();
385
+ if (!records.length) {
386
+ clearInterval(timer);
387
+ admin.close();
388
+ router.close();
389
+ }
390
+ }).catch((error) => console.error(error.message));
391
+ }, 15000);
392
+ process.on('exit', () => connector?.kill());
393
+ for (const signal of ['SIGTERM', 'SIGINT']) process.on(signal, () => process.exit(0));
394
+ }
395
+
396
+ async function main() {
397
+ if (command === 'serve') return serve();
398
+ if (command === 'connector') {
399
+ // A broken parent pipe also stops cloudflared after a router crash.
400
+ const child = spawn(
401
+ 'cloudflared',
402
+ [
403
+ 'tunnel',
404
+ '--no-autoupdate',
405
+ '--metrics',
406
+ '127.0.0.1:24752',
407
+ '--pidfile',
408
+ path.join(directory, 'connector.pid'),
409
+ 'run',
410
+ ],
411
+ { stdio: 'ignore' },
412
+ );
413
+ child.once('spawn', () => process.send?.(child.pid));
414
+ child.once('error', () => process.exit(1));
415
+ child.once('close', (code) => process.exit(code ?? 0));
416
+ process.stdin.resume().once('end', () => child.kill());
417
+ process.once('disconnect', () => child.kill());
418
+ process.once('SIGTERM', () => child.kill());
419
+ return;
420
+ }
421
+ const config = command === 'status' ? {} : configuration();
422
+ if (command === 'mode') {
423
+ if (!keys.some((key) => config[key])) return console.log('quick');
424
+ validate(config);
425
+ return console.log('named');
426
+ }
427
+ if (!['status', 'close', 'open'].includes(command)) throw Error('未知操作');
428
+ if (command === 'open') validate(config);
429
+ try {
430
+ return console.log(await control(command, config));
431
+ } catch (error) {
432
+ if (!['ENOENT', 'ECONNREFUSED'].includes(error.code)) throw error;
433
+ }
434
+ if (command === 'status' || (command === 'close' && !fs.existsSync(ledger))) return;
435
+ if (
436
+ command === 'close' &&
437
+ !JSON.parse(fs.readFileSync(ledger, 'utf8')).some((r) => r.project === project)
438
+ )
439
+ return;
440
+ fs.mkdirSync(directory, { recursive: true, mode: 0o700 });
441
+ const log = fs.openSync(path.join(directory, 'router.log'), 'a', 0o600);
442
+ const child = spawn(process.execPath, [fileURLToPath(import.meta.url), 'serve'], {
443
+ detached: true,
444
+ stdio: ['ignore', 'ignore', log],
445
+ env: { PATH: process.env.PATH, HOME: os.homedir() },
446
+ });
447
+ child.unref();
448
+ fs.closeSync(log);
449
+ for (let attempt = 0; attempt < 40; attempt++) {
450
+ await sleep(100);
451
+ try {
452
+ return console.log(await control(command, config));
453
+ } catch (error) {
454
+ if (!['ENOENT', 'ECONNREFUSED'].includes(error.code)) throw error;
455
+ }
456
+ }
457
+ throw Error(
458
+ '本机路由器无法启动,请检查 127.0.0.1:' + routerPort + ' 和 ' + directory + '/router.log',
459
+ );
460
+ }
461
+
462
+ main().catch((error) => {
463
+ console.error(error.message);
464
+ process.exitCode = 1;
465
+ });
@@ -36,7 +36,13 @@ sha1() { if command -v sha1sum >/dev/null; then sha1sum; else shasum -a 1; fi; }
36
36
  S="evidra-$(basename "$ROOT" | tr -cd 'A-Za-z0-9_-')-$(printf '%s' "$ROOT" | sha1 | cut -c1-6)"
37
37
 
38
38
  # 先撤销公网分享,即使后续启动内网报告失败,公网入口也已关闭。
39
- if [[ $mode == lan ]]; then
39
+ SKILL_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
40
+ named=(node "$SKILL_DIR/scripts/named-tunnel.mjs")
41
+ public_mode=
42
+ if [[ $mode == public ]]; then
43
+ public_mode=$("${named[@]}" mode)
44
+ fi
45
+ if [[ $mode == lan || $public_mode == named ]]; then
40
46
  for win in tunnel watch; do
41
47
  if error=$(LC_ALL=C tmux kill-window -t "=$S:=$win" 2>&1); then continue; fi
42
48
  case $error in
@@ -46,10 +52,13 @@ if [[ $mode == lan ]]; then
46
52
  done
47
53
  fi
48
54
 
55
+ if [[ $mode == lan || $public_mode == quick ]]; then
56
+ "${named[@]}" close "$ROOT" >/dev/null
57
+ fi
58
+
49
59
  for cmd in node curl openssl; do
50
60
  command -v "$cmd" >/dev/null || die "未安装 $cmd"
51
61
  done
52
- SKILL_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
53
62
  TMP=$(mktemp -d)
54
63
  trap 'rm -rf "$TMP"' EXIT
55
64
 
@@ -283,6 +292,11 @@ try {
283
292
  NODE
284
293
  }
285
294
  if [[ $mode == default ]]; then
295
+ HOST=$("${named[@]}" status "$ROOT")
296
+ if [[ -n $HOST ]]; then
297
+ print_addresses "https://$HOST/" 复用
298
+ exit 0
299
+ fi
286
300
  if [[ -s $STATE/metrics-port ]]; then
287
301
  MPORT=$(<"$STATE/metrics-port")
288
302
  HOST=$(quick_host)
@@ -296,7 +310,14 @@ if [[ $mode == default ]]; then
296
310
  exit 0
297
311
  fi
298
312
 
299
- # 3. 公网隧道
313
+ # Named Tunnel 的进程由本机路由器共用,各项目独立换址和回收。
314
+ if [[ $public_mode == named ]]; then
315
+ HOST=$("${named[@]}" open "$ROOT" "$PORT")
316
+ print_addresses "https://$HOST/" 新地址
317
+ exit 0
318
+ fi
319
+
320
+ # 3. 临时公网隧道
300
321
  pick_port metrics-port 20241
301
322
  MPORT=$(<"$STATE/metrics-port")
302
323
  HOST=$(quick_host)
@@ -71,7 +71,10 @@ case $status in
71
71
  esac
72
72
 
73
73
  public_status="未开启"
74
- if [[ -s $STATE/metrics-port ]] && command -v tmux >/dev/null; then
74
+ host=$(node "$(dirname "${BASH_SOURCE[0]}")/named-tunnel.mjs" status "$ROOT")
75
+ if [[ -n $host ]]; then
76
+ public_status="https://$host/"
77
+ elif [[ -s $STATE/metrics-port ]] && command -v tmux >/dev/null; then
75
78
  if [[ $(tmux display-message -p -t "=$S:=tunnel" '#{pane_dead}' 2>/dev/null || true) == 0 ]]; then
76
79
  MPORT=$(<"$STATE/metrics-port")
77
80
  HOST=$(curl --noproxy '*' -fsS --max-time 2 "http://127.0.0.1:$MPORT/quicktunnel" 2>/dev/null | json hostname || true)
@@ -1 +0,0 @@
1
- .PhotoView-Portal{touch-action:none;z-index:2000;direction:ltr;width:100%;height:100%;position:fixed;top:0;left:0;overflow:hidden}@keyframes PhotoView__rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes PhotoView__delayIn{0%,50%{opacity:0}to{opacity:1}}.PhotoView__Spinner{animation:.4s linear both PhotoView__delayIn}.PhotoView__Spinner svg{animation:.6s linear infinite PhotoView__rotate}.PhotoView__Photo{cursor:grab;-webkit-user-select:none;user-select:none;max-width:none}.PhotoView__Photo:active{cursor:grabbing}.PhotoView__icon{display:inline-block;position:absolute;top:0;left:0;transform:translate(-50%,-50%)}.PhotoView__PhotoBox,.PhotoView__PhotoWrap{touch-action:none;direction:ltr;width:100%;position:absolute;inset:0}.PhotoView__PhotoWrap{z-index:10;overflow:hidden}.PhotoView__PhotoBox{transform-origin:0 0}@keyframes PhotoView__fade{0%{opacity:0}to{opacity:1}}.PhotoView-Slider__clean .PhotoView-Slider__ArrowLeft,.PhotoView-Slider__clean .PhotoView-Slider__ArrowRight,.PhotoView-Slider__clean .PhotoView-Slider__BannerWrap,.PhotoView-Slider__clean .PhotoView-Slider__Overlay,.PhotoView-Slider__willClose .PhotoView-Slider__BannerWrap:hover{opacity:0}.PhotoView-Slider__Backdrop{z-index:-1;background:#000;width:100%;height:100%;transition-property:background-color;position:absolute;top:0;left:0}.PhotoView-Slider__fadeIn{opacity:0;animation:linear both PhotoView__fade}.PhotoView-Slider__fadeOut{opacity:0;animation:linear reverse both PhotoView__fade}.PhotoView-Slider__BannerWrap{color:#fff;z-index:20;background-color:#00000080;justify-content:space-between;align-items:center;width:100%;height:44px;transition:opacity .2s ease-out;display:flex;position:absolute;top:0;left:0}.PhotoView-Slider__BannerWrap:hover{opacity:1}.PhotoView-Slider__Counter{opacity:.75;padding:0 10px;font-size:14px}.PhotoView-Slider__BannerRight{align-items:center;height:100%;display:flex}.PhotoView-Slider__toolbarIcon{fill:#fff;box-sizing:border-box;cursor:pointer;opacity:.75;padding:10px;transition:opacity .2s linear}.PhotoView-Slider__toolbarIcon:hover{opacity:1}.PhotoView-Slider__ArrowLeft,.PhotoView-Slider__ArrowRight{cursor:pointer;opacity:.75;-webkit-user-select:none;user-select:none;z-index:20;justify-content:center;align-items:center;width:70px;height:100px;margin:auto;transition:opacity .2s linear;display:flex;position:absolute;top:0;bottom:0}.PhotoView-Slider__ArrowLeft:hover,.PhotoView-Slider__ArrowRight:hover{opacity:1}.PhotoView-Slider__ArrowLeft svg,.PhotoView-Slider__ArrowRight svg{fill:#fff;box-sizing:content-box;background:#0000004d;width:24px;height:24px;padding:10px}.PhotoView-Slider__ArrowLeft{left:0}.PhotoView-Slider__ArrowRight{right:0}.hbm\:fixed{position:fixed}.hbm\:inset-0{inset:0}.hbm\:m-0{margin:0}.hbm\:mx-auto{margin-inline:auto}.hbm\:mb-3\.5{margin-bottom:calc(var(--hbm-space) * 3.5)}.hbm\:box-border{box-sizing:border-box}.hbm\:flex{display:flex}.hbm\:inline-flex{display:inline-flex}.hbm\:h-1{height:var(--hbm-space)}.hbm\:h-full{height:100%}.hbm\:max-h-\[calc\(100dvh-3rem-env\(safe-area-inset-top\)\)\]{max-height:calc(100dvh - 3rem - env(safe-area-inset-top))}.hbm\:max-h-none{max-height:none}.hbm\:min-h-\(--hbm-row-height\){min-height:var(--hbm-row-height)}.hbm\:w-9{width:calc(var(--hbm-space) * 9)}.hbm\:w-full{width:100%}.hbm\:max-w-\(--hbm-panel-max-width\){max-width:var(--hbm-panel-max-width)}.hbm\:max-w-none{max-width:none}.hbm\:shrink-0{flex-shrink:0}.hbm\:flex-col{flex-direction:column}.hbm\:items-center{align-items:center}.hbm\:items-end{align-items:flex-end}.hbm\:justify-between{justify-content:space-between}.hbm\:justify-center{justify-content:center}.hbm\:gap-3{gap:calc(var(--hbm-space) * 3)}.hbm\:overflow-hidden{overflow:hidden}.hbm\:overflow-y-auto{overflow-y:auto}.hbm\:overscroll-contain{overscroll-behavior:contain}.hbm\:rounded-\(--hbm-radius-lg\){border-radius:var(--hbm-radius-lg)}.hbm\:rounded-full{border-radius:2147483647px}.hbm\:rounded-t-\(--hbm-radius-xl\){border-top-left-radius:var(--hbm-radius-xl);border-top-right-radius:var(--hbm-radius-xl)}.hbm\:bg-line{background-color:var(--hbm-border)}.hbm\:bg-muted{background-color:var(--hbm-bg-muted)}.hbm\:bg-overlay{background-color:var(--hbm-bg-overlay)}.hbm\:bg-panel{background-color:var(--hbm-bg-panel)}.hbm\:bg-transparent{background-color:#0000}.hbm\:p-0{padding:0}.hbm\:px-4{padding-inline:calc(var(--hbm-space) * 4)}.hbm\:py-0{padding-block:0}.hbm\:pt-2\.5{padding-top:calc(var(--hbm-space) * 2.5)}.hbm\:pr-\[max\(1rem\,env\(safe-area-inset-right\)\)\]{padding-right:max(1rem, env(safe-area-inset-right))}.hbm\:pb-\[calc\(1rem\+env\(safe-area-inset-bottom\)\)\]{padding-bottom:calc(1rem + env(safe-area-inset-bottom))}.hbm\:pl-\[max\(1rem\,env\(safe-area-inset-left\)\)\]{padding-left:max(1rem, env(safe-area-inset-left))}.hbm\:text-start{text-align:start}.hbm\:text-md{font-size:var(--hbm-font-size-md)}.hbm\:\[font-weight\:450\]{font-weight:450}.hbm\:text-danger{color:var(--hbm-fg-danger)}.hbm\:text-fg{color:var(--hbm-fg)}.hbm\:opacity-88{opacity:.88}.hbm\:\[box-shadow\:var\(--hbm-shadow-modal\)\]{box-shadow:var(--hbm-shadow-modal)}.hbm\:\[border\:0\]{border:0}.hbm\:\[font\:inherit\]{font:inherit}.hbm\:not-first\:\[border-top\:1px_solid_var\(--hbm-bg-panel\)\]:not(:first-child){border-top:1px solid var(--hbm-bg-panel)}.hbm\:backdrop\:bg-transparent::backdrop{background-color:#0000}.hbm\:open\:flex:is([open],:popover-open,:open){display:flex}.hbm\:focus-visible\:outline-offset-\[-3px\]:focus-visible{outline-offset:-3px}.hbm\:enabled\:active\:bg-pressed:enabled:active{background-color:var(--hbm-bg-pressed)}.hbm\:disabled\:opacity-50:disabled{opacity:.5}@media (prefers-reduced-motion:no-preference){.hbm\:motion-safe\:animate-\[hbm-fade-in_var\(--hbm-duration-fast\)_ease-out\]{animation:hbm-fade-in var(--hbm-duration-fast) ease-out}.hbm\:motion-safe\:animate-\[hbm-rise_var\(--hbm-duration-enter\)_cubic-bezier\(0\.2\,0\.8\,0\.2\,1\)\]{animation:hbm-rise var(--hbm-duration-enter) cubic-bezier(.2,.8,.2,1)}}:root{--hbm-bg-panel:#fff;--hbm-bg-muted:#f7f7f7;--hbm-bg-pressed:#f2f2f2;--hbm-bg-overlay:#0000002e;--hbm-fg:#202124;--hbm-fg-danger:#ad0707;--hbm-border:#e5e5e5;--hbm-font-size-md:15.5px;--hbm-shadow-modal:0 12px 42px #0000002e;--hbm-space:4px;--hbm-radius-lg:18px;--hbm-radius-xl:28px;--hbm-row-height:52px;--hbm-panel-max-width:480px;--hbm-duration-fast:.16s;--hbm-duration-enter:.22s}@keyframes hbm-fade-in{0%{opacity:0}}@keyframes hbm-rise{0%{transform:translateY(100%)}}:root{--m-gutter:16px;--m-control-shadow:0 2px 8px #00000017;--m-modal-shadow:0 12px 42px #0000002e;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--m-sheet-backdrop:#0000002e;--m-ref-backdrop:#ffffffd9;--m-order-backdrop:#ccc;--hb-canvas:#fff;--hb-frame:#fff;--hb-surface:#fff;--hb-surface-alt:#f9f9f9;--hb-soft:#f7f7f7;--hb-selected:#f2f2f2;--hb-selection-active:#ebebef;--hb-control:#fff;--hb-control-hover:#f7f7f7;--hb-input:#fff;--hb-input-line:#e5e5e5;--hb-separator:#f0f0f0;--hb-accent:#4964d9;--hb-accent-hover:#364fb9;--hb-accent-contrast:#fff;--hb-ink:#202124;--hb-body:#38393d;--hb-muted:#64656b;--hb-faint:#74757c;--hb-line:#ededed;--hb-danger:#ad0707;--hb-accent-soft:#eef1fc;--hb-success:#29815e;--hb-modified:#946516;--hb-overlay:#0003;--hb-panel-shadow:0 3px 6px -2px #00000005, 0 1px 1px #0000000a;--hb-control-shadow:0 0 0 .5px #0000000f, var(--hb-panel-shadow);--hb-dialog-shadow:0 16px 48px -12px #00000029, 0 4px 12px #0000000d;--m-changed:#d97706;--m-added:#2563eb;--m-check:var(--hb-accent)}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--m-control-shadow:0 2px 8px #0006;--m-modal-shadow:0 12px 42px #0000008c;--m-sheet-backdrop:#0000008f;--m-ref-backdrop:#000000ad;--m-order-backdrop:#0a0a0c;--hb-canvas:#0f1012;--hb-frame:#0f1012;--hb-surface:#17181b;--hb-surface-alt:#1b1c20;--hb-soft:#222328;--hb-selected:#282a30;--hb-selection-active:#30323a;--hb-control:#1e1f24;--hb-control-hover:#26282e;--hb-input:#17181b;--hb-input-line:#353740;--hb-separator:#ffffff14;--hb-accent:#7a85e6;--hb-accent-hover:#8d97ee;--hb-accent-contrast:#fff;--hb-ink:#f2f3f5;--hb-body:#d3d5db;--hb-muted:#9396a1;--hb-faint:#6c6f7a;--hb-line:#ffffff1a;--hb-danger:#f0656d;--hb-accent-soft:#7a85e62e;--hb-success:#46b984;--hb-modified:#e2a23b;--hb-overlay:#0000008c;--m-changed:#eab308;--m-added:#60a5fa}}.m-app{--hbm-bg-panel:var(--hb-surface);--hbm-bg-muted:var(--hb-soft);--hbm-bg-pressed:var(--hb-selected);--hbm-bg-overlay:var(--m-sheet-backdrop);--hbm-fg:var(--hb-ink);--hbm-fg-danger:var(--hb-danger);--hbm-border:var(--hb-input-line);--hbm-shadow-modal:var(--m-modal-shadow)}@font-face{font-family:Inter;src:url(/assets/InterVariable-DiVDrmQJ.woff2)format("woff2");font-weight:100 900;font-style:normal;font-display:swap}:root{--m-tabbar:56px;--m-hand-switch-width:44px;--m-tabbar-radius:calc(var(--m-tabbar) / 2);--m-float-shadow:0 2px 8px #00000009, 0 6px 30px #0000001a;--m-float-shadow-strong:0 0 0 .5px #0000000d, 0 4px 12px #00000012, 0 16px 48px #00000029;--m-tabbar-bottom:max(10px, env(safe-area-inset-bottom));--m-font-ui:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;--m-font-mono:ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--hb-canvas);color:var(--hb-ink);font:15px/1.45 var(--m-font-ui);font-feature-settings:"cv02", "cv03", "cv04", "cv11";-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;text-rendering:optimizelegibility}button{font:inherit;color:inherit}a{color:inherit;text-decoration:none}.m-app{height:100dvh;padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left);flex-direction:column;display:flex;position:relative}.m-page{-webkit-overflow-scrolling:touch;flex:1;min-height:0;padding-bottom:24px;overflow:hidden auto}.m-page:not(:has(>.m-topbar)){padding-top:env(safe-area-inset-top)}.m-topbar{z-index:10;padding:calc(env(safe-area-inset-top) + 8px) var(--m-gutter) 8px;pointer-events:none;justify-content:space-between;align-items:center;gap:8px;display:flex;position:sticky;top:0}.m-topbar:before{z-index:-1;background:linear-gradient(var(--hb-canvas) 35%, color-mix(in srgb, var(--hb-canvas) 0%, transparent));content:"";position:absolute;inset:0 0 -16px}.m-topbar>*{pointer-events:auto}.m-glass{background:color-mix(in srgb, var(--hb-surface) 72%, transparent);box-shadow:var(--m-float-shadow);color:var(--hb-ink);-webkit-backdrop-filter:blur(20px)saturate(180%);backdrop-filter:blur(20px)saturate(180%);border:0}.m-back,.m-top-action{border-radius:50%;flex:none;justify-content:center;align-items:center;width:44px;height:44px;padding:0;transition:transform .12s;display:inline-flex}.m-back{padding-right:2px}.m-back:active,.m-top-action:active{transform:scale(.92)}.m-icon-button{width:44px;height:44px;color:var(--hb-accent);background:0 0;border:0;border-radius:10px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.m-icon-button:active{background:var(--hb-selected)}.m-tabbar{z-index:20;bottom:var(--m-tabbar-bottom);left:var(--m-gutter);width:min(318px, calc(100% - 2 * var(--m-gutter) - var(--m-hand-switch-width) - 6px));background:var(--hb-surface);border:.5px solid var(--hb-line);border-radius:var(--m-tabbar-radius);box-shadow:var(--m-float-shadow);padding:4px;position:absolute}.m-tab-dock.is-right-handed .m-tabbar{right:var(--m-gutter);left:auto}.m-tab-dock>.m-pager-hand{z-index:20;right:var(--m-gutter);bottom:calc(var(--m-tabbar-bottom) + 4px);position:absolute}.m-tab-dock.is-right-handed>.m-pager-hand{right:auto;left:var(--m-gutter)}.m-tab-row{grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:2px;height:48px;display:grid;position:relative}.m-tab-indicator{background:var(--hb-selected);border-radius:9999px;width:calc(20% - 1.6px);height:48px;transition:transform .24s cubic-bezier(.2,.8,.2,1);position:absolute}.m-tab{width:100%;height:48px;color:var(--hb-muted);border-radius:9999px;flex:none;justify-content:center;align-items:center;gap:2px;transition:background-color .15s,color .15s;display:flex;position:relative}.m-tab[aria-current=page],.m-tab.is-active{color:var(--hb-ink)}.m-tab[aria-current=page] svg{stroke-width:2.2px}.m-tab:active{background:var(--hb-selected)}.m-tab-switch{position:relative}.m-tab-switch-chevron{transition:transform .26s cubic-bezier(.2,.9,.25,1),color .15s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.m-tab-switch.is-active .m-tab-switch-chevron{color:var(--hb-muted);stroke-width:2.6px;transform:translate(calc(19px - 50%),-50%)scale(.55)}.m-tab-switch-icon{animation:.26s cubic-bezier(.2,.9,.25,1) both m-switch-icon-in;display:flex}@keyframes m-switch-icon-in{0%{opacity:0;transform:scale(.5)}}@media (prefers-reduced-motion:reduce){.m-tab-switch-chevron,.m-tab-switch-icon{transition:none;animation:none}}.m-app.has-tabbar .m-page{padding-bottom:calc(var(--m-tabbar) + var(--m-tabbar-bottom) + 24px)}.m-app.has-tabbar{overflow:clip}.m-tab-content{flex-direction:column;flex:1;min-height:0;display:flex}.m-page-title,.m-hero-title,.m-case-title{letter-spacing:-.02em;overflow-wrap:anywhere;margin:0;font-size:22px;font-weight:600;line-height:1.25}.m-page-title{margin:16px var(--m-gutter) 0}.m-page-header{margin:14px var(--m-gutter) 0;justify-content:space-between;align-items:center;gap:12px;display:flex}.m-page-header>.m-page-title{flex:none;margin:0}.m-section{margin:16px var(--m-gutter) 0}.m-section-title{color:var(--hb-faint);justify-content:space-between;align-items:center;margin:0 0 6px;font-size:13px;font-weight:600;display:flex}.m-section:has(>.m-list){margin-inline:0}.m-section:has(>.m-list)>.m-section-title{margin-inline:var(--m-gutter)}.m-section:has(>.m-list)+.m-section:has(>.m-list){border-top:1px solid var(--hb-separator);margin-top:4px;padding-top:14px}.m-list{margin:0;padding:0;list-style:none}.m-row{min-height:44px;padding:8px var(--m-gutter);align-items:center;gap:10px;display:flex;position:relative}a.m-row:active,button.m-row:active{background:var(--hb-selected)}button.m-tab{background:0 0;border:0}button.m-row{text-align:left;background:0 0;border:0;width:100%}.m-row-body{flex:1;min-width:0}.m-row-title{text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:450;overflow:hidden}.m-row-title.is-muted{color:var(--hb-faint);font-weight:400}.m-row-subtitle{color:var(--hb-muted);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;margin-top:1px;font-size:12.5px;overflow:hidden}.m-row-subtitle.is-wrap{white-space:normal;margin-top:3px}.m-row-trailing{color:var(--hb-faint);font-variant-numeric:tabular-nums;flex:none;align-items:center;gap:6px;font-size:13px;display:flex}.m-trailing-danger{color:var(--hb-danger);font-weight:500}.m-trailing-changed{color:var(--hb-muted)}.m-status{color:var(--hb-muted);flex:none}.m-status[data-status=same]{color:var(--hb-success)}.m-status[data-status=failed],.m-status[data-status=unavailable],.m-status[data-status=deleted]{color:var(--hb-danger)}.m-status[data-status=changed],.m-status[data-status=partial]{color:var(--m-changed)}.m-status[data-status=added]{color:var(--m-added)}.m-status[data-status=running]{animation:1s linear infinite m-spin}@keyframes m-spin{to{transform:rotate(360deg)}}.m-pill{background:var(--hb-soft);max-width:100%;height:24px;color:var(--hb-ink);text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;align-items:center;gap:4px;padding:0 8px;font-size:12px;display:inline-flex;overflow:hidden}.m-hero{margin:12px var(--m-gutter) 0}.m-title-row{align-items:flex-start;gap:8px;display:flex}.m-title-row>.m-status{margin-top:4px}.m-title-row>.m-hero-title,.m-title-row>.m-case-title{flex:1;min-width:0}.m-hero-meta{color:var(--hb-muted);overflow-wrap:anywhere;flex-wrap:wrap;gap:4px 12px;margin-top:6px;font-size:13px;display:flex}.m-tags{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.m-segmented{grid-auto-columns:1fr;grid-auto-flow:column;align-items:center;max-width:100%;display:inline-grid;position:relative}.m-segmented-thumb{pointer-events:none;border-radius:9999px;grid-column:1/2;transition:transform .22s cubic-bezier(.2,.8,.2,1);position:absolute;inset:4px 0}.m-segmented .m-chip{justify-content:center;height:44px;position:relative}.m-segmented .m-chip:focus-visible{outline:2px solid var(--hb-accent);outline-offset:-2px}.m-evidence-section{padding:14px var(--m-gutter) 0;border-top:1px solid var(--hb-separator);margin:16px 0 0}.m-section:has(>.m-case)+.m-evidence-section{margin-top:0}.m-evidence{margin:0}.m-evidence+.m-evidence{margin-top:16px}.m-evidence-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:8px 0;display:flex}.m-evidence-head>.m-section-title{margin:0}.m-evidence-title-block{flex:1;min-width:min(100%,8rem)}.m-evidence-name{word-break:break-word;align-items:center;gap:8px;min-width:0;font-size:14px;font-weight:600;display:flex}.m-evidence-image{background:repeating-conic-gradient(var(--hb-soft) 0 25%, var(--hb-surface) 0 50%) 0 0 / 16px 16px;border:1px solid var(--hb-separator);border-radius:10px;width:100%;height:auto;display:block}.m-evidence-meta{color:var(--hb-muted);padding:8px 0 12px;font-size:12.5px}.m-code{background:var(--hb-surface);font:12px/1.65 var(--m-font-mono);border:1px solid var(--hb-separator);border-radius:10px;margin:0;overflow-x:auto}.m-code-line{min-width:max-content;display:flex}.m-code-line[data-kind=add]{background:color-mix(in srgb, var(--hb-success) 12%, var(--hb-surface))}.m-code-line[data-kind=del]{background:color-mix(in srgb, var(--hb-danger) 10%, var(--hb-surface))}.m-code-line[data-kind=gap]{color:var(--hb-muted);background:var(--hb-accent-soft)}.m-code-num{background:inherit;width:36px;color:var(--hb-faint);text-align:right;-webkit-user-select:none;user-select:none;flex:none;padding-right:6px;position:sticky;left:0}.m-code-line:not([data-kind]) .m-code-num,.m-code-line[data-kind=ctx] .m-code-num{background:var(--hb-surface)}.m-code-sign{width:16px;color:var(--hb-muted);text-align:center;-webkit-user-select:none;user-select:none;flex:none}.m-code-text{white-space:pre;padding-right:14px}.m-note{white-space:pre-wrap;word-break:break-word;margin:0;padding:12px 14px;font-size:14px}.m-note.is-empty{color:var(--hb-faint)}.m-error{color:var(--hb-danger);font:12px/1.5 var(--m-font-mono);white-space:pre-wrap;word-break:break-word;margin:0;padding:12px 14px;overflow-x:auto}.m-empty{color:var(--hb-faint);text-align:center;flex-direction:column;align-items:center;gap:10px;padding:72px 24px;font-size:14px;display:flex}.m-page:has(>.m-empty:not(.is-inline)){flex-direction:column;display:flex}.m-page:has(>.m-empty:not(.is-inline))>*{flex-shrink:0}.m-page>.m-empty:not(.is-inline){flex:1 0 auto;justify-content:center;padding-block:24px}.m-empty-icon{background:var(--hb-soft);width:40px;height:40px;color:var(--hb-faint);border-radius:12px;justify-content:center;align-items:center;display:inline-flex}.m-skeleton{margin:20px var(--m-gutter) 0;flex-direction:column;gap:12px;display:flex}.m-skeleton-row{background:var(--hb-soft);border-radius:12px;height:44px;animation:1.4s ease-in-out infinite m-pulse}.m-skeleton-row.is-short{width:72%}@keyframes m-pulse{50%{opacity:.45}}.m-bottom-bar{z-index:5;min-height:calc(64px + env(safe-area-inset-bottom));padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(to top, var(--hb-canvas) 58%, transparent);pointer-events:none;justify-content:space-between;align-items:center;gap:10px;display:flex;position:sticky;bottom:0}.m-bottom-bar>*{pointer-events:auto}.m-bottom-bar.is-sequence{--m-sequence-bottom:calc(12px + env(safe-area-inset-bottom));padding:28px var(--m-gutter) var(--m-sequence-bottom);background:linear-gradient(to top, var(--hb-canvas) calc(var(--m-sequence-bottom) + var(--m-tabbar)), transparent);gap:8px}.m-bottom-bar.is-left-handed,.is-left-handed .m-pager-info,.is-left-handed .m-pager-controls,.is-left-handed .m-pager{flex-direction:row-reverse}.m-pager-info,.m-pager-controls{pointer-events:none;align-items:center;min-width:0;display:flex}.m-pager-info{gap:10px}.m-pager-controls{z-index:1;gap:14px;position:relative}.m-pager-hand,.m-pager-nav,.m-pager-slot>button{pointer-events:auto}.m-pager-hand{width:var(--m-hand-switch-width);height:48px;color:var(--hb-muted);background:0 0;border:0;border-radius:9999px;flex:none;place-items:center;padding:0;display:inline-grid;position:relative}.m-pager-hand:before{background:var(--hb-soft);content:"";border-radius:50%;width:40px;height:40px;position:absolute}.m-pager-hand>svg{position:relative}.m-pager-hand:active:before{background:var(--hb-selected)}.m-pager{height:var(--m-tabbar);background:var(--hb-surface);border:.5px solid var(--hb-line);border-radius:var(--m-tabbar-radius);box-shadow:var(--m-float-shadow);flex:none;align-items:center;gap:2px;padding:4px;display:flex}.m-pager-nav{width:52px;height:48px;color:var(--hb-ink);background:0 0;border:0;border-radius:9999px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.m-pager-nav:active{background:var(--hb-selected)}.m-pager-nav:disabled{color:var(--hb-muted);opacity:.4}.m-pager-position{color:var(--hb-muted);font-variant-numeric:tabular-nums;letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;user-select:none;font-size:13px;font-weight:500;overflow:hidden}.m-pager-slot{min-width:var(--m-tabbar);justify-content:flex-end;display:flex}.is-left-handed .m-pager-slot{justify-content:flex-start}.m-pager-slot .m-float-action span{text-overflow:ellipsis;overflow:hidden}@media (width<=359px){.m-pager-info{gap:6px}.m-pager-controls{gap:8px}.m-pager-nav{width:44px}.m-pager-slot .m-float-action{gap:6px;padding-inline:10px}}.m-pager-action{width:var(--m-tabbar);height:var(--m-tabbar);border:.5px solid var(--hb-line);background:var(--hb-surface);box-shadow:var(--m-float-shadow);border-radius:50%;justify-content:center;align-items:center;padding:0;transition:background-color .15s,color .15s,transform .12s;display:inline-flex}.m-pager-action:active{transform:scale(.94)}.m-pager-action.is-primary{color:var(--hb-accent)}.m-pager-action.is-done{background:var(--hb-accent-soft);color:var(--hb-accent)}.m-pager-action.is-spinning svg{animation:1s linear infinite m-spin}.m-pager-action:disabled:not(.is-done,.is-spinning) svg{opacity:.35}.m-button{background:var(--hb-soft);border:0;border-radius:9999px;flex:1;justify-content:center;align-items:center;gap:6px;height:44px;font-size:15px;font-weight:600;display:inline-flex}.m-button:active{background:var(--hb-selected)}.m-button:disabled{opacity:.4}.m-bottom-bar.is-action{padding-inline:var(--m-gutter)}.m-float-action{max-width:100%;height:var(--m-tabbar);border:.5px solid var(--hb-line);border-radius:var(--m-tabbar-radius);background:var(--hb-surface);color:var(--hb-accent);white-space:nowrap;box-shadow:var(--m-float-shadow);align-items:center;gap:8px;padding:0 20px 0 18px;font-size:15px;font-weight:600;transition:transform .12s;display:inline-flex;overflow:hidden}.m-float-action.is-danger{color:var(--hb-danger)}.m-float-action>svg{flex:none}.m-float-action.is-loading>svg{animation:1s linear infinite m-spin}.m-float-action:active{transform:scale(.97)}.m-float-action:disabled{opacity:.4}.m-float-action.is-loading:disabled{opacity:1}.m-page.has-bottom-bar{flex-direction:column;padding-bottom:0;display:flex}.m-page.has-bottom-bar>*{flex:none}.m-page.has-bottom-bar>.m-bottom-bar{margin-top:auto}.m-toast{bottom:calc(var(--m-tabbar) + var(--m-tabbar-bottom) + 12px);z-index:50;background:var(--hb-ink);width:max-content;max-width:calc(100% - 32px);color:var(--hb-canvas);box-shadow:var(--m-float-shadow-strong);word-break:break-word;border-radius:9999px;align-items:center;gap:7px;padding:10px 16px;font-size:13.5px;font-weight:500;animation:.18s cubic-bezier(.2,.8,.2,1) m-toast-in;display:inline-flex;position:fixed;left:50%;transform:translate(-50%)}.m-toast-icon{opacity:.9;flex:none}.m-toast[data-variant=error]{background:var(--hb-danger);color:#fff}@keyframes m-toast-in{0%{opacity:0;transform:translate(-50%,8px)scale(.96)}}.m-sheet-backdrop{z-index:60;background:var(--m-sheet-backdrop);justify-content:center;align-items:flex-end;padding:0;animation:.16s ease-out m-fade;display:flex;position:fixed;inset:0}.m-sheet{width:min(100%,480px);max-height:calc(100dvh - 48px - env(safe-area-inset-top));overscroll-behavior:contain;padding:10px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));background:var(--hb-surface);box-shadow:var(--m-modal-shadow);border-radius:28px 28px 0 0;animation:.22s cubic-bezier(.2,.8,.2,1) m-rise;overflow-y:auto}.m-sheet-grabber{background:var(--hb-input-line);border-radius:9999px;width:36px;height:4px;margin:0 auto 14px}.m-sheet-body{padding:2px 4px 14px}.m-sheet-title{letter-spacing:-.015em;margin:0;font-size:16px;font-weight:600}.m-sheet-message{color:var(--hb-muted);margin-top:4px;font-size:14px}.m-sheet-group{background:var(--hb-soft);border-radius:18px;flex-direction:column;display:flex;overflow:hidden}.m-sheet-group+.m-sheet-group{margin-top:12px}.m-sheet-action{width:100%;min-height:52px;color:var(--hb-ink);text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:0 16px;font-size:15.5px;font-weight:450;display:flex}.m-sheet-group>.m-sheet-action+.m-sheet-action{border-top:1px solid var(--hb-surface)}.m-sheet-icon{color:currentColor;opacity:.88;flex:none}.m-sheet-action.is-accent{color:var(--hb-accent);font-weight:500}.m-sheet-action.is-danger{color:var(--hb-danger)}.m-sheet-action.is-cancel{color:var(--hb-muted)}.m-sheet-action:active{background:var(--hb-selected)}@keyframes m-fade{0%{opacity:0}}@keyframes m-rise{0%{transform:translateY(100%)}}.m-photo-view .PhotoView-Slider__BannerWrap{box-sizing:border-box;height:calc(44px + env(safe-area-inset-top));padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background-color:#141518c2}.m-photo-view .PhotoView-Slider__Counter,.m-photo-view .PhotoView-Slider__toolbarIcon{opacity:.95}.m-evidence-image{cursor:zoom-in}.m-photo-label{z-index:20;bottom:calc(24px + env(safe-area-inset-bottom));color:#fff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);pointer-events:none;background:#141518d6;border:.5px solid #ffffff29;border-radius:9999px;padding:6px 14px;font-size:13px;font-weight:500;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #00000047}.m-chips{margin:-12px calc(-1 * var(--m-gutter));padding:12px var(--m-gutter);scrollbar-width:none;gap:2px;display:flex;position:relative;overflow-x:auto}.m-chips::-webkit-scrollbar{display:none}.m-chips-thumb{background:var(--hb-surface);height:36px;box-shadow:var(--m-control-shadow);pointer-events:none;border-radius:9999px;position:absolute;top:12px;left:0}.m-chips-thumb.is-animated{transition:transform .24s cubic-bezier(.2,.8,.2,1),width .24s cubic-bezier(.2,.8,.2,1)}.m-chip{z-index:1;height:36px;color:var(--hb-muted);white-space:nowrap;background:0 0;border:0;border-radius:9999px;flex:none;align-items:center;gap:5px;padding:0 14px;font-size:14.5px;font-weight:500;transition:background-color .15s,color .15s,box-shadow .15s;display:inline-flex;position:relative}.m-chip[aria-pressed=true]{color:var(--hb-ink)}.m-segmented-thumb{background:var(--hb-surface);box-shadow:var(--m-control-shadow)}.m-chips:not(:has(>.m-chips-thumb)) .m-chip[aria-pressed=true]{background:var(--hb-surface);box-shadow:var(--m-control-shadow)}.m-chip:not([aria-pressed=true]):active{color:var(--hb-ink)}.m-chip:disabled{opacity:.45}.m-chip-count{color:var(--hb-faint);font-variant-numeric:tabular-nums;font-size:12px}.m-chip[aria-pressed=true] .m-chip-count{color:var(--hb-muted)}.m-action-row{margin:12px 12px 0}.m-action-row .m-button{width:100%}.m-check{border:1.25px solid var(--hb-input-line);background:var(--hb-input);width:18px;height:18px;color:var(--hb-accent-contrast);border-radius:5px;flex:none;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex;position:relative}.m-check[aria-checked=true],.m-check[aria-checked=mixed]{border-color:var(--m-check);background:var(--m-check)}.m-link-button{color:var(--hb-accent);background:0 0;border:0;padding:0;font-size:13px;font-weight:500;position:relative}.m-letter{width:16px;color:var(--hb-muted);font-family:var(--m-font-mono);text-align:center;flex:none;font-size:13px;font-weight:600}.m-letter[data-status=added]{color:var(--hb-success)}.m-letter[data-status=modified],.m-letter[data-status=renamed]{color:var(--hb-modified)}.m-letter[data-status=deleted]{color:var(--hb-danger)}.m-letter[data-status=screenshot-key]{color:var(--hb-accent)}.m-select{background:var(--hb-control);min-width:0;max-width:100%;height:36px;box-shadow:var(--m-control-shadow);color:var(--hb-ink);font:inherit;border:0;border-radius:9999px;align-items:center;gap:5px;padding:0 11px 0 13px;font-size:13.5px;font-weight:500;transition:transform .12s;display:inline-flex;position:relative}.m-select:after{content:"";position:absolute;inset:-4px 0}.m-select:active{transform:scale(.97)}.m-select-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.m-select-meta{color:var(--hb-faint);flex:none;font-size:12px;font-weight:400}.m-select-icon{color:var(--hb-muted);flex:none}.m-ref-option-text{flex:1;min-width:0}.m-ref-option-meta{color:var(--hb-faint);flex:none;font-size:12px}.m-ref-dialog{width:clamp(0px,73vw,360px);max-height:calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain;background:var(--hb-surface-alt);color:var(--hb-ink);box-shadow:var(--m-modal-shadow);border:0;border-radius:26px;margin:auto;padding:10px 8px;position:fixed;inset:0;overflow-y:auto}.m-ref-dialog::backdrop{background:var(--m-ref-backdrop);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.m-ref-dialog button{text-align:left;overflow-wrap:anywhere;background:0 0;border:0;border-radius:16px;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 10px;display:flex}.m-ref-dialog button:before{content:"";box-sizing:border-box;border:2px solid #a0a0a0;border-radius:50%;flex:none;width:18px;height:18px}.m-ref-dialog button[aria-pressed=true]:before{border-color:var(--hb-accent);background:radial-gradient(circle, var(--hb-accent) 0 43%, transparent 46%)}.m-ref-dialog button:active{background:var(--hb-selected)}.m-code-block{margin:16px var(--m-gutter) 0;min-width:0}.m-mono{font-family:var(--m-font-mono)}.m-section-title .m-mono{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}button.m-pill{border:0;position:relative;overflow:visible}button.m-pill:after{content:"";position:absolute;inset:-10px 0}.m-pill.is-excluded{color:var(--hb-faint);text-decoration:line-through}.m-note-field{position:relative}.m-note-field+.m-note-field{border-top:.5px solid var(--hb-line)}.m-note-head{padding:10px var(--m-gutter) 0;color:var(--hb-muted);justify-content:space-between;font-size:13px;font-weight:500;display:flex}.m-note-head .m-link-button:disabled{color:var(--hb-faint)}.m-note-field.is-single .m-note-head{padding-top:8px;position:absolute;right:0}.m-textarea{width:100%;min-height:80px;padding:6px var(--m-gutter) 12px;color:var(--hb-ink);font:inherit;resize:none;background:0 0;border:0;outline:none;font-size:15px;line-height:1.55;display:block;overflow:hidden}.m-textarea::placeholder{color:var(--hb-faint)}.m-note-field.is-single .m-textarea{padding-top:12px}.m-case-head{padding:0 16px 12px}.m-case-crumb{color:var(--hb-muted);text-overflow:ellipsis;white-space:nowrap;margin-bottom:2px;font-size:12.5px;overflow:hidden}.m-case-tags{flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;display:flex}.m-case-tag{background:var(--hb-soft);height:24px;color:var(--hb-ink);font-variant-numeric:tabular-nums;border-radius:9999px;align-items:center;gap:5px;padding:0 9px;font-size:12.5px;font-weight:500;display:inline-flex}.m-case-tag[data-status=same],.m-case-tag[data-status=passed]{background:color-mix(in srgb, var(--hb-success) 10%, var(--hb-surface));color:var(--hb-success)}.m-case-tag[data-status=added]{background:color-mix(in srgb, var(--m-added) 10%, var(--hb-surface));color:var(--m-added)}.m-case-tag[data-status=changed],.m-case-tag[data-status=partial]{background:color-mix(in srgb, var(--m-changed) 10%, var(--hb-surface));color:var(--m-changed)}.m-case-tag[data-status=deleted],.m-case-tag[data-status=unavailable],.m-case-tag[data-status=failed],.m-case-tag[data-status=interrupted]{background:color-mix(in srgb, var(--hb-danger) 8%, var(--hb-surface));color:var(--hb-danger)}.m-case-tag .m-status{color:inherit}.m-info{margin:0}.m-case-head+.m-info{border-top:1px solid var(--hb-separator);padding-block:4px}.m-info .m-row{align-items:flex-start;min-height:44px;padding-block:0}.m-info dt{color:var(--hb-muted);flex:none;padding-block:12px;font-size:13.5px;line-height:20px}.m-info dd{text-align:right;flex:1;justify-content:flex-end;align-items:flex-start;gap:4px;min-width:0;min-height:44px;margin:0;font-size:13.5px;display:flex}.m-info-value{overflow-wrap:anywhere;align-self:center;min-width:0}.m-info-result[data-status=passed]{color:var(--hb-success);font-weight:500}.m-info-result[data-status=failed],.m-info-result[data-status=interrupted]{color:var(--hb-danger);font-weight:500}.m-info-muted{color:var(--hb-muted);font-variant-numeric:tabular-nums}.m-copy{width:44px;height:44px;color:var(--hb-muted);background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;margin-inline-end:-8px;padding:0;display:inline-flex}.m-copy:active{background:var(--hb-selected)}.m-row:has(.m-copy.m-stretch:active){background:var(--hb-selected)}.m-evidence-meta{justify-content:space-between;align-items:center;gap:8px;display:flex}.m-evidence-metrics{color:var(--hb-muted);font-variant-numeric:tabular-nums;margin-top:2px;font-size:12px}.m-evidence-metrics strong{color:var(--hb-ink);font-weight:600}.m-evidence-metrics strong.is-exceeded{color:var(--hb-danger)}.m-section>.m-note{padding:4px 0}.m-evidence-section>.m-error{padding:6px 0}.m-section>.m-code-block{margin:0}.m-check:after,.m-link-button:after{content:"";position:absolute}.m-check:after{inset:-13px}.m-link-button:after{inset:-13px -8px}.m-tree .m-tree-row{min-height:44px;padding:8px 16px 8px var(--m-indent);gap:8px}.m-tree:where(:not(.project-file-tree *))>li[aria-level="1"][aria-expanded] .m-tree-label{color:var(--hb-faint);font-size:13px;font-weight:600}.m-tree:where(:not(.project-file-tree *))>li+li[aria-level="1"][aria-expanded]{border-top:1px solid var(--hb-separator);margin-top:4px}.m-tree-chevron{width:16px;color:var(--hb-faint);flex:none;display:flex}.m-tree-chevron svg{transition:transform .15s}.m-tree-chevron .is-open{transform:rotate(90deg)}.m-row>.m-check{z-index:1}.m-row:has(>.m-stretch:active){background:var(--hb-selected)}.m-tree-main{min-width:0;color:inherit;font:inherit;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:8px;padding:0;display:flex}.m-stretch:after{content:"";position:absolute;inset:0}.m-tree-icon{color:var(--hb-muted);flex:none;display:flex}.m-tree-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:15px;overflow:hidden}.m-tree-label.is-muted{color:var(--hb-faint)}.m-tree-label.is-danger{color:var(--hb-danger)}.m-tree-count,.m-tree-trailing{color:var(--hb-faint);font-variant-numeric:tabular-nums;flex:none;align-items:center;gap:6px;font-size:13px;display:flex}.m-menu-backdrop{z-index:19;background:#0000000a;position:absolute;inset:0}.m-menu-reveal{opacity:0;visibility:hidden;grid-template-rows:0fr;transition:grid-template-rows .26s cubic-bezier(.2,.8,.2,1),opacity .18s,visibility 0s .26s;display:grid}.m-tabbar.is-open .m-menu-reveal{opacity:1;visibility:visible;grid-template-rows:1fr;transition-delay:0s}.m-tab-row-reveal{opacity:1;visibility:visible;grid-template-rows:1fr;transition:grid-template-rows .26s cubic-bezier(.2,.8,.2,1),opacity .14s,visibility;display:grid}.m-tabbar.is-open .m-tab-row-reveal{opacity:0;visibility:hidden;grid-template-rows:0fr;transition:grid-template-rows .26s cubic-bezier(.2,.8,.2,1),opacity .12s,visibility 0s .26s}.m-menu-clip{min-height:0;overflow:hidden}.m-menu{max-height:calc(100dvh - var(--m-tabbar-bottom) - env(safe-area-inset-top) - 24px);padding:6px 4px;overflow-y:auto}.m-menu-header{border-bottom:.5px solid var(--hb-line);justify-content:space-between;align-items:center;margin:0 6px 6px;padding:6px 0 8px 10px;display:flex}.m-menu-title{font-size:16px;font-weight:600}.m-menu-edit{background:var(--hb-soft);width:44px;height:44px;color:var(--hb-ink);border-radius:9999px;justify-content:center;align-items:center;display:inline-flex}.m-menu-edit:active{background:var(--hb-selected)}.m-menu-list{flex-direction:column;display:flex}.m-menu-item{height:50px;color:var(--hb-ink);border-radius:9999px;align-items:center;gap:14px;padding:0 14px;font-size:16px;text-decoration:none;display:flex}.m-menu-item[aria-current=page]{background:var(--hb-selected);font-weight:500}.m-menu-item:active{background:var(--hb-selected)}@media (prefers-reduced-motion:reduce){.m-sheet,.m-sheet-backdrop,.m-toast,.m-skeleton-row{animation:none}.m-menu-reveal,.m-tab-row-reveal,.m-tab-indicator,.m-chips-thumb,.m-segmented-thumb,.m-segmented .m-chip{transition:none}}.m-app:has(.m-order-page){background:var(--m-order-backdrop);padding-top:max(8px, env(safe-area-inset-top))}.m-page.m-order-page{background:var(--hb-surface-alt);border-radius:28px 28px 0 0;padding-top:0}.m-order-header{z-index:2;background:var(--hb-surface-alt);grid-template-columns:1fr auto 1fr;align-items:center;padding:15px 12px 8px;display:grid;position:sticky;top:0}.m-order-header:before{content:"";background:var(--hb-input-line);border-radius:4px;width:34px;height:4px;position:absolute;top:5px;left:50%;transform:translate(-50%)}.m-order-header h1{margin:0;font-size:16px;font-weight:600}.m-order-header button{height:44px;box-shadow:var(--m-float-shadow);border:0;border-radius:9999px}.m-order-cancel{background:var(--hb-surface);justify-self:start;padding-inline:16px}.m-order-done{background:var(--hb-ink);width:44px;color:var(--hb-canvas);justify-self:end;place-items:center;display:grid}.m-order-section{margin:16px 12px 0}.m-order-section h2{margin:0 4px 8px}.m-order-section .m-list{background:var(--hb-selected);border-radius:20px}.m-order-section li{min-height:46px}.m-order-section li+li{border-top:1px solid var(--hb-surface-alt)}.m-order-row{height:46px;color:var(--hb-ink);-webkit-user-select:none;user-select:none;padding-inline:14px}.m-order-row>svg{color:var(--hb-muted);flex:none}.m-order-row.is-dragging{z-index:3;background:var(--hb-surface);box-shadow:var(--m-float-shadow);border-radius:9999px}.m-order-handle{width:44px;height:44px;color:var(--hb-faint);cursor:grab;touch-action:none;background:0 0;border:0;flex:none;justify-content:center;align-items:center;margin:-10px -12px -10px 0;padding:0;display:flex}.m-order-row.is-dragging .m-order-handle{color:var(--hb-ink);cursor:grabbing}@media (prefers-reduced-motion:reduce){.m-order-row{transition:none!important}}button.m-order-reset{color:var(--hb-accent);text-align:center;justify-content:center;font-size:15px}button.m-order-reset:disabled{color:var(--hb-faint)}.m-conformance-readme{color:var(--hb-body);overflow-wrap:anywhere;font-size:14.5px;line-height:1.65}.m-conformance-readme :is(h1,h2,h3,h4,h5,h6){color:var(--hb-ink);margin:1.3em 0 .5em;font-weight:600;line-height:1.3}.m-conformance-readme h1{font-size:20px}.m-conformance-readme h2{font-size:17px}.m-conformance-readme h3{font-size:15px}.m-conformance-readme>:first-child{margin-top:0}.m-conformance-readme :is(p,ul,ol,pre,blockquote){margin-block:0 1em}.m-conformance-readme :is(ul,ol){padding-inline-start:1.4em}.m-conformance-readme ul{list-style:outside}.m-conformance-readme ol{list-style:decimal}.m-conformance-readme a{color:var(--hb-accent);text-decoration:underline}.m-conformance-readme code{font-family:var(--m-font-mono);font-size:.88em}.m-conformance-readme :not(pre)>code{background:var(--hb-soft);border-radius:4px;padding:.1em .3em}.m-conformance-readme pre{border:1px solid var(--hb-separator);background:var(--hb-surface);border-radius:10px;padding:12px 14px;line-height:1.55;overflow-x:auto}.m-conformance-readme blockquote{border-inline-start:2px solid var(--hb-line);color:var(--hb-muted);margin-inline:0;padding-inline-start:12px}