playwright-performance-regression 0.1.0-next.3 → 0.1.0-next.4

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 (37) hide show
  1. package/CHANGELOG.md +250 -0
  2. package/README.md +45 -32
  3. package/dist/{chunk-AQ2XKYNV.js → chunk-CISGJCFW.js} +35 -7
  4. package/dist/chunk-CXE5IWZY.js +1648 -0
  5. package/dist/{chunk-MUZFQKGQ.js → chunk-E2IX265O.js} +321 -30
  6. package/dist/{chunk-BAOTUUTV.cjs → chunk-IUI4AFE5.cjs} +75 -28
  7. package/dist/{chunk-44ASXVQN.cjs → chunk-KELMALEG.cjs} +337 -45
  8. package/dist/{chunk-2JO5HVPC.cjs → chunk-LUA4WRIQ.cjs} +35 -7
  9. package/dist/{chunk-DX36GFOZ.js → chunk-RL27E3AB.js} +94 -57
  10. package/dist/{chunk-DYLCGMI2.js → chunk-S6UH6QPK.js} +6 -1
  11. package/dist/cli.js +1802 -2799
  12. package/dist/config.cjs +58 -120
  13. package/dist/config.d.cts +2 -3
  14. package/dist/config.d.ts +2 -3
  15. package/dist/config.js +48 -110
  16. package/dist/fixture.cjs +9 -5
  17. package/dist/fixture.d.cts +10 -4
  18. package/dist/fixture.d.ts +10 -4
  19. package/dist/fixture.js +4 -4
  20. package/dist/index.cjs +3 -3
  21. package/dist/index.d.cts +17 -9
  22. package/dist/index.d.ts +17 -9
  23. package/dist/index.js +1 -1
  24. package/dist/perf-api-2DH_keLh.d.cts +17 -0
  25. package/dist/perf-api-2DH_keLh.d.ts +17 -0
  26. package/dist/reporter.cjs +1131 -632
  27. package/dist/reporter.js +6153 -1725
  28. package/dist/test.cjs +4 -4
  29. package/dist/test.js +4 -4
  30. package/package.json +17 -1
  31. package/schemas/config.schema.json +22 -12
  32. package/schemas/outcome.schema.json +1 -1
  33. package/schemas/run-report.schema.json +16 -2
  34. package/schemas/samples.schema.json +48 -2
  35. package/dist/chunk-LTRHMBVY.js +0 -5592
  36. package/dist/perf-api-Rm1h1O_-.d.cts +0 -12
  37. package/dist/perf-api-Rm1h1O_-.d.ts +0 -12
package/dist/reporter.cjs CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkBAOTUUTV_cjs = require('./chunk-BAOTUUTV.cjs');
6
- var chunk2JO5HVPC_cjs = require('./chunk-2JO5HVPC.cjs');
5
+ var chunkIUI4AFE5_cjs = require('./chunk-IUI4AFE5.cjs');
6
+ var chunkLUA4WRIQ_cjs = require('./chunk-LUA4WRIQ.cjs');
7
7
  var fs = require('fs');
8
8
  var promises = require('fs/promises');
9
9
  var os = require('os');
@@ -42,6 +42,57 @@ function listDirSync(dir) {
42
42
  return [];
43
43
  }
44
44
  }
45
+ function isDirectorySync(path) {
46
+ try {
47
+ return fs.lstatSync(fs.realpathSync.native(path)).isDirectory();
48
+ } catch {
49
+ return false;
50
+ }
51
+ }
52
+ function realPathSync(path$1) {
53
+ try {
54
+ return fs.realpathSync.native(path$1);
55
+ } catch {
56
+ return path.resolve(path$1);
57
+ }
58
+ }
59
+ function homeDir() {
60
+ return os.homedir();
61
+ }
62
+ function scanDirSync(dir, limit) {
63
+ const found = [];
64
+ const pending = [""];
65
+ while (pending.length > 0) {
66
+ const rel = pending.pop();
67
+ let names2;
68
+ try {
69
+ names2 = fs.readdirSync(rel === "" ? dir : path.join(dir, rel));
70
+ } catch {
71
+ continue;
72
+ }
73
+ for (const name of names2) {
74
+ const child2 = rel === "" ? name : `${rel}/${name}`;
75
+ found.push(child2);
76
+ if (found.length > limit) return null;
77
+ try {
78
+ if (fs.lstatSync(path.join(dir, child2)).isDirectory()) pending.push(child2);
79
+ } catch {
80
+ }
81
+ }
82
+ }
83
+ return found;
84
+ }
85
+ function emptyDirSync(dir) {
86
+ let failure2 = null;
87
+ for (const name of listDirSync(dir)) {
88
+ try {
89
+ fs.rmSync(path.join(dir, name), { recursive: true, force: true });
90
+ } catch (error) {
91
+ failure2 ??= error;
92
+ }
93
+ }
94
+ if (failure2 !== null) throw failure2;
95
+ }
45
96
  async function fileExists(path) {
46
97
  try {
47
98
  await promises.access(path);
@@ -192,50 +243,11 @@ function runPass(command, env, cwd) {
192
243
  }
193
244
  });
194
245
  }
195
- function askTerminal(question, platform = process.platform) {
196
- const input = platform === "win32" ? "CONIN$" : "/dev/tty";
197
- const output = platform === "win32" ? "CONOUT$" : "/dev/tty";
198
- let inFd;
199
- try {
200
- inFd = fs.openSync(input, "r");
201
- } catch {
202
- return null;
203
- }
204
- try {
205
- try {
206
- const outFd = fs.openSync(output, "w");
207
- try {
208
- fs.writeSync(outFd, question);
209
- } finally {
210
- fs.closeSync(outFd);
211
- }
212
- } catch {
213
- process.stdout.write(question);
214
- }
215
- const buffer = Buffer.alloc(256);
216
- let line = "";
217
- for (; ; ) {
218
- let n;
219
- try {
220
- n = fs.readSync(inFd, buffer, 0, buffer.length, null);
221
- } catch (error) {
222
- if (error.code === "EAGAIN") continue;
223
- return line === "" ? null : line;
224
- }
225
- if (n === 0) return line;
226
- line += buffer.toString("utf8", 0, n);
227
- const end = line.search(/\r?\n/u);
228
- if (end >= 0) return line.slice(0, end);
229
- }
230
- } finally {
231
- fs.closeSync(inFd);
232
- }
233
- }
234
246
  function readPackageInfo(dir) {
235
247
  for (let current = dir; ; current = path.dirname(current)) {
236
248
  const file = path.join(current, "package.json");
237
249
  if (fs.existsSync(file)) {
238
- let scripts = null;
250
+ let scripts = {};
239
251
  try {
240
252
  const parsed = JSON.parse(fs.readFileSync(file, "utf8"));
241
253
  if (typeof parsed.scripts === "object" && parsed.scripts !== null) {
@@ -258,6 +270,22 @@ function readPackageInfo(dir) {
258
270
  return { scripts: null, lockFiles: { pnpm: false, yarn: false } };
259
271
  }
260
272
  }
273
+ function readSuite(configDir, configFile) {
274
+ try {
275
+ const parsed = JSON.parse(fs.readFileSync(path.join(configDir, "package.json"), "utf8"));
276
+ if (typeof parsed.name === "string" && parsed.name.trim() !== "") {
277
+ return { name: parsed.name.trim(), source: "package" };
278
+ }
279
+ } catch {
280
+ }
281
+ for (let current = configDir; ; current = path.dirname(current)) {
282
+ if (fs.existsSync(path.join(current, ".git"))) {
283
+ const path$1 = path.relative(current, configFile ?? configDir).split(path.sep).join("/");
284
+ return path$1 === "" ? null : { name: path$1, source: "config" };
285
+ }
286
+ if (path.dirname(current) === current) return null;
287
+ }
288
+ }
261
289
  function read(env, name) {
262
290
  const value = env[name];
263
291
  return value === void 0 || value === "" ? null : value;
@@ -334,33 +362,33 @@ function readHostInfo(env) {
334
362
  }
335
363
 
336
364
  // src/core/schema/formats.ts
337
- var nonEmpty = chunk2JO5HVPC_cjs.str({ minLength: 1 });
338
- var nonEmptyOrNull = chunk2JO5HVPC_cjs.nullable(nonEmpty);
365
+ var nonEmpty = chunkLUA4WRIQ_cjs.str({ minLength: 1 });
366
+ var nonEmptyOrNull = chunkLUA4WRIQ_cjs.nullable(nonEmpty);
339
367
  function present(value, pointer, sink, properties) {
340
368
  for (const [name, schema] of Object.entries(properties)) {
341
369
  if (Object.hasOwn(value, name)) schema.check(value[name], `${pointer}/${name}`, sink);
342
370
  }
343
371
  }
344
372
  var noTiming = {
345
- duration: chunk2JO5HVPC_cjs.nul,
346
- requestStart: chunk2JO5HVPC_cjs.nul,
347
- ttfb: chunk2JO5HVPC_cjs.nul,
348
- timeSource: chunk2JO5HVPC_cjs.constant("browser"),
349
- fromServiceWorker: chunk2JO5HVPC_cjs.constant(false)
373
+ duration: chunkLUA4WRIQ_cjs.nul,
374
+ requestStart: chunkLUA4WRIQ_cjs.nul,
375
+ ttfb: chunkLUA4WRIQ_cjs.nul,
376
+ timeSource: chunkLUA4WRIQ_cjs.constant("browser"),
377
+ fromServiceWorker: chunkLUA4WRIQ_cjs.constant(false)
350
378
  };
351
- var requestSample = chunk2JO5HVPC_cjs.obj(
379
+ var requestSample = chunkLUA4WRIQ_cjs.obj(
352
380
  {
353
- method: chunk2JO5HVPC_cjs.str({ pattern: /^[A-Z]+$/u }),
381
+ method: chunkLUA4WRIQ_cjs.str({ pattern: /^[A-Z]+$/u }),
354
382
  url: nonEmpty,
355
383
  resourceType: nonEmpty,
356
- status: chunk2JO5HVPC_cjs.oneOf(chunk2JO5HVPC_cjs.int({ minimum: 100, maximum: 599 }), chunk2JO5HVPC_cjs.constant("FAILED"), chunk2JO5HVPC_cjs.constant("PENDING")),
384
+ status: chunkLUA4WRIQ_cjs.oneOf(chunkLUA4WRIQ_cjs.int({ minimum: 100, maximum: 599 }), chunkLUA4WRIQ_cjs.constant("FAILED"), chunkLUA4WRIQ_cjs.constant("PENDING")),
357
385
  failureText: nonEmpty,
358
- startTime: chunk2JO5HVPC_cjs.epochMs,
359
- duration: chunk2JO5HVPC_cjs.msOrNull,
360
- requestStart: chunk2JO5HVPC_cjs.msOrNull,
361
- ttfb: chunk2JO5HVPC_cjs.msOrNull,
362
- timeSource: chunk2JO5HVPC_cjs.enumOf(["browser", "node"]),
363
- fromServiceWorker: chunk2JO5HVPC_cjs.bool
386
+ startTime: chunkLUA4WRIQ_cjs.epochMs,
387
+ duration: chunkLUA4WRIQ_cjs.msOrNull,
388
+ requestStart: chunkLUA4WRIQ_cjs.msOrNull,
389
+ ttfb: chunkLUA4WRIQ_cjs.msOrNull,
390
+ timeSource: chunkLUA4WRIQ_cjs.enumOf(["browser", "node"]),
391
+ fromServiceWorker: chunkLUA4WRIQ_cjs.bool
364
392
  },
365
393
  {
366
394
  required: [
@@ -389,36 +417,63 @@ var requestSample = chunk2JO5HVPC_cjs.obj(
389
417
  }
390
418
  }
391
419
  );
392
- var sampleBatch = chunk2JO5HVPC_cjs.obj(
420
+ var apiRequestSample = chunkLUA4WRIQ_cjs.obj(
393
421
  {
394
- schemaVersion: chunk2JO5HVPC_cjs.constant(2),
395
- collector: chunk2JO5HVPC_cjs.obj(
422
+ method: chunkLUA4WRIQ_cjs.str({ pattern: /^[A-Z]+$/u }),
423
+ url: nonEmpty,
424
+ status: chunkLUA4WRIQ_cjs.oneOf(chunkLUA4WRIQ_cjs.int({ minimum: 100, maximum: 599 }), chunkLUA4WRIQ_cjs.constant("FAILED"), chunkLUA4WRIQ_cjs.constant("PENDING")),
425
+ failureText: nonEmpty,
426
+ startTime: chunkLUA4WRIQ_cjs.epochMs,
427
+ duration: chunkLUA4WRIQ_cjs.msOrNull,
428
+ source: chunkLUA4WRIQ_cjs.enumOf(["request", "context", "tracked"])
429
+ },
430
+ {
431
+ required: ["method", "url", "status", "startTime", "duration", "source"],
432
+ refine(value, pointer, sink) {
433
+ const status = Object.hasOwn(value, "status") ? value.status : "FAILED";
434
+ if (status === "FAILED" && !Object.hasOwn(value, "failureText")) {
435
+ sink.add(pointer, "must have required property 'failureText' when status is FAILED");
436
+ }
437
+ if (status !== "FAILED" && Object.hasOwn(value, "failureText")) {
438
+ sink.add(`${pointer}/failureText`, "must NOT be present unless status is FAILED");
439
+ }
440
+ if (status === "FAILED" || status === "PENDING" || !Object.hasOwn(value, "status")) {
441
+ present(value, pointer, sink, { duration: chunkLUA4WRIQ_cjs.nul });
442
+ }
443
+ }
444
+ }
445
+ );
446
+ var sampleBatch = chunkLUA4WRIQ_cjs.obj(
447
+ {
448
+ schemaVersion: chunkLUA4WRIQ_cjs.constant(3),
449
+ collector: chunkLUA4WRIQ_cjs.obj(
396
450
  {
397
- name: chunk2JO5HVPC_cjs.str({ pattern: /^[a-z0-9-]+$/u }),
451
+ name: chunkLUA4WRIQ_cjs.str({ pattern: /^[a-z0-9-]+$/u }),
398
452
  version: nonEmpty,
399
453
  browserName: nonEmptyOrNull
400
454
  },
401
455
  { required: ["name", "version", "browserName"] }
402
456
  ),
403
- requests: chunk2JO5HVPC_cjs.arr(requestSample),
404
- diagnostics: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.issue)
457
+ requests: chunkLUA4WRIQ_cjs.arr(requestSample),
458
+ apiRequests: chunkLUA4WRIQ_cjs.arr(apiRequestSample),
459
+ diagnostics: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.issue)
405
460
  },
406
- { required: ["schemaVersion", "collector", "requests", "diagnostics"] }
461
+ { required: ["schemaVersion", "collector", "requests", "apiRequests", "diagnostics"] }
407
462
  );
408
463
  var LIMIT_FIELDS = ["t", "median", "percentile", "p99", "minApdex", "maxWilson", "maxErrorRate"];
409
- var thresholdsEntry = chunk2JO5HVPC_cjs.obj(
464
+ var thresholdsEntry = chunkLUA4WRIQ_cjs.obj(
410
465
  {
411
- t: chunk2JO5HVPC_cjs.nullable(chunk2JO5HVPC_cjs.msLimit),
412
- median: chunk2JO5HVPC_cjs.msLimit,
413
- percentile: chunk2JO5HVPC_cjs.msLimit,
414
- p99: chunk2JO5HVPC_cjs.msLimit,
415
- minApdex: chunk2JO5HVPC_cjs.nullable(chunk2JO5HVPC_cjs.ratio),
416
- maxWilson: chunk2JO5HVPC_cjs.nullable(chunk2JO5HVPC_cjs.ratio),
417
- maxErrorRate: chunk2JO5HVPC_cjs.ratio,
418
- locked: chunk2JO5HVPC_cjs.constant(true),
419
- note: chunk2JO5HVPC_cjs.str({ minLength: 1, maxLength: 500 }),
420
- gate: chunk2JO5HVPC_cjs.constant("warn"),
421
- until: chunk2JO5HVPC_cjs.isoDate
466
+ t: chunkLUA4WRIQ_cjs.nullable(chunkLUA4WRIQ_cjs.msLimit),
467
+ median: chunkLUA4WRIQ_cjs.msLimit,
468
+ percentile: chunkLUA4WRIQ_cjs.msLimit,
469
+ p99: chunkLUA4WRIQ_cjs.msLimit,
470
+ minApdex: chunkLUA4WRIQ_cjs.nullable(chunkLUA4WRIQ_cjs.ratio),
471
+ maxWilson: chunkLUA4WRIQ_cjs.nullable(chunkLUA4WRIQ_cjs.ratio),
472
+ maxErrorRate: chunkLUA4WRIQ_cjs.ratio,
473
+ locked: chunkLUA4WRIQ_cjs.constant(true),
474
+ note: chunkLUA4WRIQ_cjs.str({ minLength: 1, maxLength: 500 }),
475
+ gate: chunkLUA4WRIQ_cjs.constant("warn"),
476
+ until: chunkLUA4WRIQ_cjs.isoDate
422
477
  },
423
478
  {
424
479
  refine(value, pointer, sink) {
@@ -438,19 +493,19 @@ var thresholdsEntry = chunk2JO5HVPC_cjs.obj(
438
493
  }
439
494
  }
440
495
  );
441
- var thresholdsGenerated = chunk2JO5HVPC_cjs.obj(
496
+ var thresholdsGenerated = chunkLUA4WRIQ_cjs.obj(
442
497
  {
443
- tool: chunk2JO5HVPC_cjs.tool,
444
- env: chunk2JO5HVPC_cjs.envLabelOrNull,
445
- sourceRunId: chunk2JO5HVPC_cjs.runId,
446
- sourceRunStartedAt: chunk2JO5HVPC_cjs.timestamp,
447
- sourceSampleCount: chunk2JO5HVPC_cjs.count,
448
- evaluatedPercentile: chunk2JO5HVPC_cjs.percentileName,
449
- derivation: chunk2JO5HVPC_cjs.derivationSettings,
450
- browsers: chunk2JO5HVPC_cjs.arr(nonEmpty, { uniqueItems: true }),
498
+ tool: chunkLUA4WRIQ_cjs.tool,
499
+ env: chunkLUA4WRIQ_cjs.envLabelOrNull,
500
+ sourceRunId: chunkLUA4WRIQ_cjs.runId,
501
+ sourceRunStartedAt: chunkLUA4WRIQ_cjs.timestamp,
502
+ sourceSampleCount: chunkLUA4WRIQ_cjs.count,
503
+ evaluatedPercentile: chunkLUA4WRIQ_cjs.percentileName,
504
+ derivation: chunkLUA4WRIQ_cjs.derivationSettings,
505
+ browsers: chunkLUA4WRIQ_cjs.arr(nonEmpty, { uniqueItems: true }),
451
506
  playwrightVersion: nonEmpty,
452
- host: chunk2JO5HVPC_cjs.hostFingerprint,
453
- normalization: chunk2JO5HVPC_cjs.fingerprint
507
+ host: chunkLUA4WRIQ_cjs.hostFingerprint,
508
+ normalization: chunkLUA4WRIQ_cjs.fingerprint
454
509
  },
455
510
  {
456
511
  required: [
@@ -468,16 +523,16 @@ var thresholdsGenerated = chunk2JO5HVPC_cjs.obj(
468
523
  ]
469
524
  }
470
525
  );
471
- var thresholdsFile = chunk2JO5HVPC_cjs.obj(
526
+ var thresholdsFile = chunkLUA4WRIQ_cjs.obj(
472
527
  {
473
- schemaVersion: chunk2JO5HVPC_cjs.constant(2),
474
- kind: chunk2JO5HVPC_cjs.kind,
475
- generated: chunk2JO5HVPC_cjs.oneOf(thresholdsGenerated, chunk2JO5HVPC_cjs.nul),
476
- entries: chunk2JO5HVPC_cjs.record(chunk2JO5HVPC_cjs.key, thresholdsEntry)
528
+ schemaVersion: chunkLUA4WRIQ_cjs.constant(2),
529
+ kind: chunkLUA4WRIQ_cjs.kind,
530
+ generated: chunkLUA4WRIQ_cjs.oneOf(thresholdsGenerated, chunkLUA4WRIQ_cjs.nul),
531
+ entries: chunkLUA4WRIQ_cjs.record(chunkLUA4WRIQ_cjs.key, thresholdsEntry)
477
532
  },
478
533
  { required: ["schemaVersion", "kind", "generated", "entries"] }
479
534
  );
480
- var evaluationCounts = chunk2JO5HVPC_cjs.obj(
535
+ var evaluationCounts = chunkLUA4WRIQ_cjs.obj(
481
536
  Object.fromEntries(
482
537
  [
483
538
  "keys",
@@ -491,7 +546,7 @@ var evaluationCounts = chunk2JO5HVPC_cjs.obj(
491
546
  "violations",
492
547
  "blockingViolations",
493
548
  "muted"
494
- ].map((name) => [name, chunk2JO5HVPC_cjs.count])
549
+ ].map((name) => [name, chunkLUA4WRIQ_cjs.count])
495
550
  ),
496
551
  {
497
552
  required: [
@@ -509,50 +564,50 @@ var evaluationCounts = chunk2JO5HVPC_cjs.obj(
509
564
  ]
510
565
  }
511
566
  );
512
- var thresholdFileInfo = chunk2JO5HVPC_cjs.obj(
567
+ var thresholdFileInfo = chunkLUA4WRIQ_cjs.obj(
513
568
  {
514
- kind: chunk2JO5HVPC_cjs.kind,
569
+ kind: chunkLUA4WRIQ_cjs.kind,
515
570
  path: nonEmpty,
516
- status: chunk2JO5HVPC_cjs.enumOf(["loaded", "missing", "invalid"]),
517
- generated: chunk2JO5HVPC_cjs.oneOf(chunk2JO5HVPC_cjs.anyObject, chunk2JO5HVPC_cjs.nul),
518
- unseenKeys: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.key)
571
+ status: chunkLUA4WRIQ_cjs.enumOf(["loaded", "missing", "invalid"]),
572
+ generated: chunkLUA4WRIQ_cjs.oneOf(chunkLUA4WRIQ_cjs.anyObject, chunkLUA4WRIQ_cjs.nul),
573
+ unseenKeys: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.key)
519
574
  },
520
575
  { required: ["kind", "path", "status", "generated", "unseenKeys"] }
521
576
  );
522
- var testRef = chunk2JO5HVPC_cjs.obj(
577
+ var testRef = chunkLUA4WRIQ_cjs.obj(
523
578
  {
524
- title: chunk2JO5HVPC_cjs.str(),
525
- project: chunk2JO5HVPC_cjs.str(),
526
- file: chunk2JO5HVPC_cjs.str(),
527
- line: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
528
- repeatEachIndex: chunk2JO5HVPC_cjs.int({ minimum: 0 })
579
+ title: chunkLUA4WRIQ_cjs.str(),
580
+ project: chunkLUA4WRIQ_cjs.str(),
581
+ file: chunkLUA4WRIQ_cjs.str(),
582
+ line: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
583
+ repeatEachIndex: chunkLUA4WRIQ_cjs.int({ minimum: 0 })
529
584
  },
530
585
  { required: ["title", "project", "file", "line", "repeatEachIndex"] }
531
586
  );
532
- var slowSample = chunk2JO5HVPC_cjs.obj(
533
- { duration: chunk2JO5HVPC_cjs.ms, startedAt: chunk2JO5HVPC_cjs.timestamp, test: testRef, url: nonEmpty },
587
+ var slowSample = chunkLUA4WRIQ_cjs.obj(
588
+ { duration: chunkLUA4WRIQ_cjs.ms, startedAt: chunkLUA4WRIQ_cjs.timestamp, test: testRef, url: nonEmpty },
534
589
  { required: ["duration", "startedAt", "test"] }
535
590
  );
536
- var stats = chunk2JO5HVPC_cjs.obj(
591
+ var stats = chunkLUA4WRIQ_cjs.obj(
537
592
  {
538
- min: chunk2JO5HVPC_cjs.ms,
539
- avg: chunk2JO5HVPC_cjs.ms,
540
- max: chunk2JO5HVPC_cjs.ms,
541
- percentiles: chunk2JO5HVPC_cjs.record(chunk2JO5HVPC_cjs.percentileName, chunk2JO5HVPC_cjs.ms, { required: ["p50", "p90", "p95", "p99"] })
593
+ min: chunkLUA4WRIQ_cjs.ms,
594
+ avg: chunkLUA4WRIQ_cjs.ms,
595
+ max: chunkLUA4WRIQ_cjs.ms,
596
+ percentiles: chunkLUA4WRIQ_cjs.record(chunkLUA4WRIQ_cjs.percentileName, chunkLUA4WRIQ_cjs.ms, { required: ["p50", "p90", "p95", "p99"] })
542
597
  },
543
598
  { required: ["min", "avg", "max", "percentiles"] }
544
599
  );
545
- var check = chunk2JO5HVPC_cjs.obj(
600
+ var check = chunkLUA4WRIQ_cjs.obj(
546
601
  {
547
- rule: chunk2JO5HVPC_cjs.enumOf(["median", "percentile", "p99", "apdex", "wilson", "errors"]),
548
- n: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
549
- actual: chunk2JO5HVPC_cjs.num({ minimum: 0 }),
550
- observed: chunk2JO5HVPC_cjs.oneOf(chunk2JO5HVPC_cjs.num({ minimum: 0, maximum: 1 }), chunk2JO5HVPC_cjs.nul),
551
- limit: chunk2JO5HVPC_cjs.num({ minimum: 0 }),
552
- passed: chunk2JO5HVPC_cjs.bool,
553
- hardLimitExceeded: chunk2JO5HVPC_cjs.bool,
554
- blocking: chunk2JO5HVPC_cjs.bool,
555
- usage: chunk2JO5HVPC_cjs.nullable(chunk2JO5HVPC_cjs.num({ minimum: 0 }))
602
+ rule: chunkLUA4WRIQ_cjs.enumOf(["median", "percentile", "p99", "apdex", "wilson", "errors"]),
603
+ n: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
604
+ actual: chunkLUA4WRIQ_cjs.num({ minimum: 0 }),
605
+ observed: chunkLUA4WRIQ_cjs.oneOf(chunkLUA4WRIQ_cjs.num({ minimum: 0, maximum: 1 }), chunkLUA4WRIQ_cjs.nul),
606
+ limit: chunkLUA4WRIQ_cjs.num({ minimum: 0 }),
607
+ passed: chunkLUA4WRIQ_cjs.bool,
608
+ hardLimitExceeded: chunkLUA4WRIQ_cjs.bool,
609
+ blocking: chunkLUA4WRIQ_cjs.bool,
610
+ usage: chunkLUA4WRIQ_cjs.nullable(chunkLUA4WRIQ_cjs.num({ minimum: 0 }))
556
611
  },
557
612
  {
558
613
  required: [
@@ -568,30 +623,30 @@ var check = chunk2JO5HVPC_cjs.obj(
568
623
  ]
569
624
  }
570
625
  );
571
- var keyEvaluation = chunk2JO5HVPC_cjs.obj(
626
+ var keyEvaluation = chunkLUA4WRIQ_cjs.obj(
572
627
  {
573
- result: chunk2JO5HVPC_cjs.enumOf(["pass", "fail", "not-evaluated"]),
574
- reason: chunk2JO5HVPC_cjs.oneOf(chunk2JO5HVPC_cjs.enumOf(["too-few-samples", "no-rules", "thresholds-error"]), chunk2JO5HVPC_cjs.nul),
575
- thresholdSource: chunk2JO5HVPC_cjs.enumOf(["file", "default"]),
576
- limits: chunk2JO5HVPC_cjs.obj(
628
+ result: chunkLUA4WRIQ_cjs.enumOf(["pass", "fail", "not-evaluated"]),
629
+ reason: chunkLUA4WRIQ_cjs.oneOf(chunkLUA4WRIQ_cjs.enumOf(["too-few-samples", "no-rules", "thresholds-error"]), chunkLUA4WRIQ_cjs.nul),
630
+ thresholdSource: chunkLUA4WRIQ_cjs.enumOf(["file", "default"]),
631
+ limits: chunkLUA4WRIQ_cjs.obj(
577
632
  {
578
- t: chunk2JO5HVPC_cjs.nullable(chunk2JO5HVPC_cjs.msLimit),
579
- median: chunk2JO5HVPC_cjs.msLimit,
580
- percentile: chunk2JO5HVPC_cjs.msLimit,
581
- p99: chunk2JO5HVPC_cjs.msLimit,
582
- minApdex: chunk2JO5HVPC_cjs.nullable(chunk2JO5HVPC_cjs.ratio),
583
- maxWilson: chunk2JO5HVPC_cjs.nullable(chunk2JO5HVPC_cjs.ratio),
584
- maxErrorRate: chunk2JO5HVPC_cjs.ratio
633
+ t: chunkLUA4WRIQ_cjs.nullable(chunkLUA4WRIQ_cjs.msLimit),
634
+ median: chunkLUA4WRIQ_cjs.msLimit,
635
+ percentile: chunkLUA4WRIQ_cjs.msLimit,
636
+ p99: chunkLUA4WRIQ_cjs.msLimit,
637
+ minApdex: chunkLUA4WRIQ_cjs.nullable(chunkLUA4WRIQ_cjs.ratio),
638
+ maxWilson: chunkLUA4WRIQ_cjs.nullable(chunkLUA4WRIQ_cjs.ratio),
639
+ maxErrorRate: chunkLUA4WRIQ_cjs.ratio
585
640
  },
586
641
  { required: LIMIT_FIELDS }
587
642
  ),
588
- checks: chunk2JO5HVPC_cjs.arr(check),
589
- muted: chunk2JO5HVPC_cjs.oneOf(
590
- chunk2JO5HVPC_cjs.obj(
591
- { until: chunk2JO5HVPC_cjs.isoDate, note: nonEmpty, expired: chunk2JO5HVPC_cjs.bool },
643
+ checks: chunkLUA4WRIQ_cjs.arr(check),
644
+ muted: chunkLUA4WRIQ_cjs.oneOf(
645
+ chunkLUA4WRIQ_cjs.obj(
646
+ { until: chunkLUA4WRIQ_cjs.isoDate, note: nonEmpty, expired: chunkLUA4WRIQ_cjs.bool },
592
647
  { required: ["until", "note", "expired"] }
593
648
  ),
594
- chunk2JO5HVPC_cjs.nul
649
+ chunkLUA4WRIQ_cjs.nul
595
650
  )
596
651
  },
597
652
  { required: ["result", "reason", "thresholdSource", "limits", "checks", "muted"] }
@@ -633,41 +688,41 @@ var HINT_PARAMS = [
633
688
  "t",
634
689
  "n"
635
690
  ];
636
- var hint = chunk2JO5HVPC_cjs.obj(
637
- { code: chunk2JO5HVPC_cjs.enumOf(HINT_CODES), params: chunk2JO5HVPC_cjs.record(chunk2JO5HVPC_cjs.enumOf(HINT_PARAMS), chunk2JO5HVPC_cjs.oneOf(chunk2JO5HVPC_cjs.str(), chunk2JO5HVPC_cjs.num())) },
691
+ var hint = chunkLUA4WRIQ_cjs.obj(
692
+ { code: chunkLUA4WRIQ_cjs.enumOf(HINT_CODES), params: chunkLUA4WRIQ_cjs.record(chunkLUA4WRIQ_cjs.enumOf(HINT_PARAMS), chunkLUA4WRIQ_cjs.oneOf(chunkLUA4WRIQ_cjs.str(), chunkLUA4WRIQ_cjs.num())) },
638
693
  { required: ["code", "params"] }
639
694
  );
640
- var histogram = chunk2JO5HVPC_cjs.oneOf(
641
- chunk2JO5HVPC_cjs.obj(
695
+ var histogram = chunkLUA4WRIQ_cjs.oneOf(
696
+ chunkLUA4WRIQ_cjs.obj(
642
697
  {
643
- edges: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.num({ minimum: 0 }), { minItems: 2, maxItems: 31 }),
644
- counts: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.count, { minItems: 1, maxItems: 30 })
698
+ edges: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.num({ minimum: 0 }), { minItems: 2, maxItems: 31 }),
699
+ counts: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.count, { minItems: 1, maxItems: 30 })
645
700
  },
646
701
  { required: ["edges", "counts"] }
647
702
  ),
648
- chunk2JO5HVPC_cjs.nul
703
+ chunkLUA4WRIQ_cjs.nul
649
704
  );
650
- var testCost = chunk2JO5HVPC_cjs.obj(
705
+ var testCost = chunkLUA4WRIQ_cjs.obj(
651
706
  {
652
- title: chunk2JO5HVPC_cjs.str(),
653
- project: chunk2JO5HVPC_cjs.str(),
654
- file: chunk2JO5HVPC_cjs.str(),
655
- line: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
656
- executions: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
657
- requestCount: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
658
- errorCount: chunk2JO5HVPC_cjs.count,
659
- totalMs: chunk2JO5HVPC_cjs.ms,
660
- maxRequestMs: chunk2JO5HVPC_cjs.msOrNull,
661
- keyCount: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
662
- topKeys: chunk2JO5HVPC_cjs.arr(
663
- chunk2JO5HVPC_cjs.obj(
664
- { key: chunk2JO5HVPC_cjs.key, count: chunk2JO5HVPC_cjs.int({ minimum: 1 }), totalMs: chunk2JO5HVPC_cjs.ms },
707
+ title: chunkLUA4WRIQ_cjs.str(),
708
+ project: chunkLUA4WRIQ_cjs.str(),
709
+ file: chunkLUA4WRIQ_cjs.str(),
710
+ line: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
711
+ executions: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
712
+ requestCount: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
713
+ errorCount: chunkLUA4WRIQ_cjs.count,
714
+ totalMs: chunkLUA4WRIQ_cjs.ms,
715
+ maxRequestMs: chunkLUA4WRIQ_cjs.msOrNull,
716
+ keyCount: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
717
+ topKeys: chunkLUA4WRIQ_cjs.arr(
718
+ chunkLUA4WRIQ_cjs.obj(
719
+ { key: chunkLUA4WRIQ_cjs.key, count: chunkLUA4WRIQ_cjs.int({ minimum: 1 }), totalMs: chunkLUA4WRIQ_cjs.ms },
665
720
  { required: ["key", "count", "totalMs"] }
666
721
  ),
667
722
  { maxItems: 3 }
668
723
  ),
669
- violatedKeys: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.key, { maxItems: 10 }),
670
- violatedKeyCount: chunk2JO5HVPC_cjs.count
724
+ violatedKeys: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.key, { maxItems: 10 }),
725
+ violatedKeyCount: chunkLUA4WRIQ_cjs.count
671
726
  },
672
727
  {
673
728
  required: [
@@ -687,71 +742,71 @@ var testCost = chunk2JO5HVPC_cjs.obj(
687
742
  ]
688
743
  }
689
744
  );
690
- var waterfallRequest = chunk2JO5HVPC_cjs.obj(
745
+ var waterfallRequest = chunkLUA4WRIQ_cjs.obj(
691
746
  {
692
- offset: chunk2JO5HVPC_cjs.int({ minimum: 0 }),
693
- duration: chunk2JO5HVPC_cjs.msOrNull,
694
- key: chunk2JO5HVPC_cjs.key,
695
- status: chunk2JO5HVPC_cjs.str({ pattern: /^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING)$/u })
747
+ offset: chunkLUA4WRIQ_cjs.int({ minimum: 0 }),
748
+ duration: chunkLUA4WRIQ_cjs.msOrNull,
749
+ key: chunkLUA4WRIQ_cjs.key,
750
+ status: chunkLUA4WRIQ_cjs.str({ pattern: /^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING)$/u })
696
751
  },
697
752
  { required: ["offset", "duration", "key", "status"] }
698
753
  );
699
- var waterfall = chunk2JO5HVPC_cjs.obj(
754
+ var waterfall = chunkLUA4WRIQ_cjs.obj(
700
755
  {
701
756
  test: testRef,
702
- totalMs: chunk2JO5HVPC_cjs.ms,
703
- requestCount: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
704
- spanMs: chunk2JO5HVPC_cjs.ms,
705
- requests: chunk2JO5HVPC_cjs.arr(waterfallRequest, { maxItems: 200 }),
706
- omitted: chunk2JO5HVPC_cjs.count
757
+ totalMs: chunkLUA4WRIQ_cjs.ms,
758
+ requestCount: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
759
+ spanMs: chunkLUA4WRIQ_cjs.ms,
760
+ requests: chunkLUA4WRIQ_cjs.arr(waterfallRequest, { maxItems: 200 }),
761
+ omitted: chunkLUA4WRIQ_cjs.count
707
762
  },
708
763
  { required: ["test", "totalMs", "requestCount", "spanMs", "requests", "omitted"] }
709
764
  );
710
- var testBreakdown = chunk2JO5HVPC_cjs.oneOf(
711
- chunk2JO5HVPC_cjs.obj(
765
+ var testBreakdown = chunkLUA4WRIQ_cjs.oneOf(
766
+ chunkLUA4WRIQ_cjs.obj(
712
767
  {
713
- tests: chunk2JO5HVPC_cjs.arr(testCost, { maxItems: 500 }),
714
- omitted: chunk2JO5HVPC_cjs.count,
715
- waterfalls: chunk2JO5HVPC_cjs.arr(waterfall, { maxItems: 5 })
768
+ tests: chunkLUA4WRIQ_cjs.arr(testCost, { maxItems: 500 }),
769
+ omitted: chunkLUA4WRIQ_cjs.count,
770
+ waterfalls: chunkLUA4WRIQ_cjs.arr(waterfall, { maxItems: 5 })
716
771
  },
717
772
  { required: ["tests", "omitted", "waterfalls"] }
718
773
  ),
719
- chunk2JO5HVPC_cjs.nul
774
+ chunkLUA4WRIQ_cjs.nul
720
775
  );
721
776
  var aggregateProps = {
722
- count: chunk2JO5HVPC_cjs.count,
723
- successCount: chunk2JO5HVPC_cjs.count,
724
- errorCount: chunk2JO5HVPC_cjs.count,
725
- fromFailedTests: chunk2JO5HVPC_cjs.count,
726
- testCount: chunk2JO5HVPC_cjs.count,
727
- statuses: chunk2JO5HVPC_cjs.record(
728
- chunk2JO5HVPC_cjs.str({ pattern: /^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING|ok|error|unfinished)$/u }),
729
- chunk2JO5HVPC_cjs.int({ minimum: 1 })
777
+ count: chunkLUA4WRIQ_cjs.count,
778
+ successCount: chunkLUA4WRIQ_cjs.count,
779
+ errorCount: chunkLUA4WRIQ_cjs.count,
780
+ fromFailedTests: chunkLUA4WRIQ_cjs.count,
781
+ testCount: chunkLUA4WRIQ_cjs.count,
782
+ statuses: chunkLUA4WRIQ_cjs.record(
783
+ chunkLUA4WRIQ_cjs.str({ pattern: /^(?:[1-5][0-9]{2}|FAILED|ABORTED|PENDING|ok|error|unfinished)$/u }),
784
+ chunkLUA4WRIQ_cjs.int({ minimum: 1 })
730
785
  ),
731
- timeSources: chunk2JO5HVPC_cjs.obj({ browser: chunk2JO5HVPC_cjs.count, node: chunk2JO5HVPC_cjs.count }, { required: ["browser", "node"] }),
732
- stats: chunk2JO5HVPC_cjs.oneOf(stats, chunk2JO5HVPC_cjs.nul),
733
- ttfb: chunk2JO5HVPC_cjs.oneOf(
734
- chunk2JO5HVPC_cjs.obj({ p50: chunk2JO5HVPC_cjs.ms, p95: chunk2JO5HVPC_cjs.ms, otherP50: chunk2JO5HVPC_cjs.msOrNull }, { required: ["p50", "p95", "otherP50"] }),
735
- chunk2JO5HVPC_cjs.nul
786
+ timeSources: chunkLUA4WRIQ_cjs.obj({ browser: chunkLUA4WRIQ_cjs.count, node: chunkLUA4WRIQ_cjs.count }, { required: ["browser", "node"] }),
787
+ stats: chunkLUA4WRIQ_cjs.oneOf(stats, chunkLUA4WRIQ_cjs.nul),
788
+ ttfb: chunkLUA4WRIQ_cjs.oneOf(
789
+ chunkLUA4WRIQ_cjs.obj({ p50: chunkLUA4WRIQ_cjs.ms, p95: chunkLUA4WRIQ_cjs.ms, otherP50: chunkLUA4WRIQ_cjs.msOrNull }, { required: ["p50", "p95", "otherP50"] }),
790
+ chunkLUA4WRIQ_cjs.nul
736
791
  ),
737
- slowest: chunk2JO5HVPC_cjs.arr(slowSample, { maxItems: 3 }),
738
- topTests: chunk2JO5HVPC_cjs.arr(
739
- chunk2JO5HVPC_cjs.obj(
792
+ slowest: chunkLUA4WRIQ_cjs.arr(slowSample, { maxItems: 3 }),
793
+ topTests: chunkLUA4WRIQ_cjs.arr(
794
+ chunkLUA4WRIQ_cjs.obj(
740
795
  {
741
- title: chunk2JO5HVPC_cjs.str(),
742
- project: chunk2JO5HVPC_cjs.str(),
743
- file: chunk2JO5HVPC_cjs.str(),
744
- line: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
745
- sampleCount: chunk2JO5HVPC_cjs.int({ minimum: 1 })
796
+ title: chunkLUA4WRIQ_cjs.str(),
797
+ project: chunkLUA4WRIQ_cjs.str(),
798
+ file: chunkLUA4WRIQ_cjs.str(),
799
+ line: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
800
+ sampleCount: chunkLUA4WRIQ_cjs.int({ minimum: 1 })
746
801
  },
747
802
  { required: ["title", "project", "file", "line", "sampleCount"] }
748
803
  ),
749
804
  { maxItems: 5 }
750
805
  ),
751
- samples: chunk2JO5HVPC_cjs.obj({ durations: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.ms), sampled: chunk2JO5HVPC_cjs.bool }, { required: ["durations", "sampled"] }),
806
+ samples: chunkLUA4WRIQ_cjs.obj({ durations: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.ms), sampled: chunkLUA4WRIQ_cjs.bool }, { required: ["durations", "sampled"] }),
752
807
  evaluation: keyEvaluation,
753
808
  histogram,
754
- hints: chunk2JO5HVPC_cjs.arr(hint, { maxItems: 3 })
809
+ hints: chunkLUA4WRIQ_cjs.arr(hint, { maxItems: 3 })
755
810
  };
756
811
  var aggregateRequired = [
757
812
  "count",
@@ -770,114 +825,120 @@ var aggregateRequired = [
770
825
  "histogram",
771
826
  "hints"
772
827
  ];
773
- var aggregate = chunk2JO5HVPC_cjs.obj(aggregateProps, { required: aggregateRequired });
774
- var stepAggregate = chunk2JO5HVPC_cjs.obj(
828
+ var aggregate = chunkLUA4WRIQ_cjs.obj(aggregateProps, { required: aggregateRequired });
829
+ var stepAggregate = chunkLUA4WRIQ_cjs.obj(
775
830
  {
776
831
  ...aggregateProps,
777
- location: chunk2JO5HVPC_cjs.oneOf(
778
- chunk2JO5HVPC_cjs.obj({ file: nonEmpty, line: chunk2JO5HVPC_cjs.int({ minimum: 1 }) }, { required: ["file", "line"] }),
779
- chunk2JO5HVPC_cjs.nul
832
+ location: chunkLUA4WRIQ_cjs.oneOf(
833
+ chunkLUA4WRIQ_cjs.obj({ file: nonEmpty, line: chunkLUA4WRIQ_cjs.int({ minimum: 1 }) }, { required: ["file", "line"] }),
834
+ chunkLUA4WRIQ_cjs.nul
780
835
  ),
781
- stepErrorsFromFailedTests: chunk2JO5HVPC_cjs.count
836
+ stepErrorsFromFailedTests: chunkLUA4WRIQ_cjs.count
782
837
  },
783
838
  { required: [...aggregateRequired, "location", "stepErrorsFromFailedTests"] }
784
839
  );
785
- var runReport = chunk2JO5HVPC_cjs.obj(
840
+ var runReport = chunkLUA4WRIQ_cjs.obj(
786
841
  {
787
- schemaVersion: chunk2JO5HVPC_cjs.constant(3),
788
- tool: chunk2JO5HVPC_cjs.tool,
789
- runId: chunk2JO5HVPC_cjs.runId,
790
- mode: chunk2JO5HVPC_cjs.mode,
791
- startedAt: chunk2JO5HVPC_cjs.timestamp,
792
- finishedAt: chunk2JO5HVPC_cjs.timestamp,
793
- env: chunk2JO5HVPC_cjs.envLabelOrNull,
842
+ schemaVersion: chunkLUA4WRIQ_cjs.constant(4),
843
+ tool: chunkLUA4WRIQ_cjs.tool,
844
+ runId: chunkLUA4WRIQ_cjs.runId,
845
+ mode: chunkLUA4WRIQ_cjs.mode,
846
+ startedAt: chunkLUA4WRIQ_cjs.timestamp,
847
+ finishedAt: chunkLUA4WRIQ_cjs.timestamp,
848
+ env: chunkLUA4WRIQ_cjs.envLabelOrNull,
794
849
  configDir: nonEmpty,
795
- config: chunk2JO5HVPC_cjs.packageConfig,
796
- normalization: chunk2JO5HVPC_cjs.fingerprint,
797
- stepNormalization: chunk2JO5HVPC_cjs.oneOf(chunk2JO5HVPC_cjs.fingerprint, chunk2JO5HVPC_cjs.nul),
798
- ci: chunk2JO5HVPC_cjs.oneOf(
799
- chunk2JO5HVPC_cjs.obj(
850
+ // Optional (02-REQ-42): left out when neither a package name nor a repository root is known.
851
+ suite: chunkLUA4WRIQ_cjs.obj(
852
+ { name: nonEmpty, source: chunkLUA4WRIQ_cjs.enumOf(["package", "config"]) },
853
+ { required: ["name", "source"] }
854
+ ),
855
+ config: chunkLUA4WRIQ_cjs.packageConfig,
856
+ normalization: chunkLUA4WRIQ_cjs.fingerprint,
857
+ stepNormalization: chunkLUA4WRIQ_cjs.oneOf(chunkLUA4WRIQ_cjs.fingerprint, chunkLUA4WRIQ_cjs.nul),
858
+ ci: chunkLUA4WRIQ_cjs.oneOf(
859
+ chunkLUA4WRIQ_cjs.obj(
800
860
  {
801
- provider: chunk2JO5HVPC_cjs.enumOf(["github", "gitlab", "jenkins", "azure", "other"]),
861
+ provider: chunkLUA4WRIQ_cjs.enumOf(["github", "gitlab", "jenkins", "azure", "other"]),
802
862
  commit: nonEmptyOrNull,
803
863
  branch: nonEmptyOrNull,
804
864
  buildUrl: nonEmptyOrNull
805
865
  },
806
866
  { required: ["provider", "commit", "branch", "buildUrl"] }
807
867
  ),
808
- chunk2JO5HVPC_cjs.nul
868
+ chunkLUA4WRIQ_cjs.nul
809
869
  ),
810
- host: chunk2JO5HVPC_cjs.obj(
870
+ host: chunkLUA4WRIQ_cjs.obj(
811
871
  {
812
- platform: chunk2JO5HVPC_cjs.str(),
813
- arch: chunk2JO5HVPC_cjs.str(),
814
- nodeVersion: chunk2JO5HVPC_cjs.str(),
815
- ci: chunk2JO5HVPC_cjs.bool,
816
- cpuCount: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
817
- cpuModel: chunk2JO5HVPC_cjs.str()
872
+ platform: chunkLUA4WRIQ_cjs.str(),
873
+ arch: chunkLUA4WRIQ_cjs.str(),
874
+ nodeVersion: chunkLUA4WRIQ_cjs.str(),
875
+ ci: chunkLUA4WRIQ_cjs.bool,
876
+ cpuCount: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
877
+ cpuModel: chunkLUA4WRIQ_cjs.str()
818
878
  },
819
879
  { required: ["platform", "arch", "nodeVersion", "ci", "cpuCount", "cpuModel"] }
820
880
  ),
821
- playwright: chunk2JO5HVPC_cjs.obj({ version: chunk2JO5HVPC_cjs.str() }, { required: ["version"] }),
822
- passes: chunk2JO5HVPC_cjs.obj(
881
+ playwright: chunkLUA4WRIQ_cjs.obj({ version: chunkLUA4WRIQ_cjs.str() }, { required: ["version"] }),
882
+ passes: chunkLUA4WRIQ_cjs.obj(
823
883
  {
824
- planned: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
825
- completed: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
826
- failed: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.int({ minimum: 2 }))
884
+ planned: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
885
+ completed: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
886
+ failed: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.int({ minimum: 2 }))
827
887
  },
828
888
  { required: ["planned", "completed", "failed"] }
829
889
  ),
830
- runConditions: chunk2JO5HVPC_cjs.obj(
890
+ runConditions: chunkLUA4WRIQ_cjs.obj(
831
891
  {
832
- workers: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
833
- projects: chunk2JO5HVPC_cjs.arr(
834
- chunk2JO5HVPC_cjs.obj(
892
+ workers: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
893
+ projects: chunkLUA4WRIQ_cjs.arr(
894
+ chunkLUA4WRIQ_cjs.obj(
835
895
  {
836
- name: chunk2JO5HVPC_cjs.str(),
837
- role: chunk2JO5HVPC_cjs.enumOf(["measured", "dependency", "teardown"]),
838
- browserName: chunk2JO5HVPC_cjs.oneOf(chunk2JO5HVPC_cjs.str(), chunk2JO5HVPC_cjs.nul),
839
- repeatEach: chunk2JO5HVPC_cjs.int({ minimum: 1 }),
840
- retries: chunk2JO5HVPC_cjs.int({ minimum: 0 })
896
+ name: chunkLUA4WRIQ_cjs.str(),
897
+ role: chunkLUA4WRIQ_cjs.enumOf(["measured", "dependency", "teardown"]),
898
+ browserName: chunkLUA4WRIQ_cjs.oneOf(chunkLUA4WRIQ_cjs.str(), chunkLUA4WRIQ_cjs.nul),
899
+ repeatEach: chunkLUA4WRIQ_cjs.int({ minimum: 1 }),
900
+ retries: chunkLUA4WRIQ_cjs.int({ minimum: 0 }),
901
+ requestOnly: chunkLUA4WRIQ_cjs.constant(true)
841
902
  },
842
903
  { required: ["name", "role", "browserName", "repeatEach", "retries"] }
843
904
  )
844
905
  ),
845
- overriddenSettings: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.str())
906
+ overriddenSettings: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.str())
846
907
  },
847
908
  { required: ["workers", "projects", "overriddenSettings"] }
848
909
  ),
849
- tests: chunk2JO5HVPC_cjs.obj(
910
+ tests: chunkLUA4WRIQ_cjs.obj(
850
911
  {
851
- status: chunk2JO5HVPC_cjs.testsStatus,
852
- expected: chunk2JO5HVPC_cjs.count,
853
- unexpected: chunk2JO5HVPC_cjs.count,
854
- flaky: chunk2JO5HVPC_cjs.count,
855
- skipped: chunk2JO5HVPC_cjs.count
912
+ status: chunkLUA4WRIQ_cjs.testsStatus,
913
+ expected: chunkLUA4WRIQ_cjs.count,
914
+ unexpected: chunkLUA4WRIQ_cjs.count,
915
+ flaky: chunkLUA4WRIQ_cjs.count,
916
+ skipped: chunkLUA4WRIQ_cjs.count
856
917
  },
857
918
  { required: ["status", "expected", "unexpected", "flaky", "skipped"] }
858
919
  ),
859
- evaluation: chunk2JO5HVPC_cjs.obj(
920
+ evaluation: chunkLUA4WRIQ_cjs.obj(
860
921
  {
861
- status: chunk2JO5HVPC_cjs.evaluationStatus,
862
- gateEnabled: chunk2JO5HVPC_cjs.bool,
863
- counts: chunk2JO5HVPC_cjs.obj(
922
+ status: chunkLUA4WRIQ_cjs.evaluationStatus,
923
+ gateEnabled: chunkLUA4WRIQ_cjs.bool,
924
+ counts: chunkLUA4WRIQ_cjs.obj(
864
925
  { api: evaluationCounts, step: evaluationCounts },
865
926
  { required: ["api", "step"] }
866
927
  )
867
928
  },
868
929
  { required: ["status", "gateEnabled", "counts"] }
869
930
  ),
870
- thresholdFiles: chunk2JO5HVPC_cjs.arr(thresholdFileInfo),
871
- warnings: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.issue),
872
- toolErrors: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.issue),
873
- origins: chunk2JO5HVPC_cjs.arr(
874
- chunk2JO5HVPC_cjs.obj(
875
- { origin: nonEmpty, label: chunk2JO5HVPC_cjs.str(), requestCount: chunk2JO5HVPC_cjs.count },
931
+ thresholdFiles: chunkLUA4WRIQ_cjs.arr(thresholdFileInfo),
932
+ warnings: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.issue),
933
+ toolErrors: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.issue),
934
+ origins: chunkLUA4WRIQ_cjs.arr(
935
+ chunkLUA4WRIQ_cjs.obj(
936
+ { origin: nonEmpty, label: chunkLUA4WRIQ_cjs.str(), requestCount: chunkLUA4WRIQ_cjs.count },
876
937
  { required: ["origin", "label", "requestCount"] }
877
938
  )
878
939
  ),
879
- endpoints: chunk2JO5HVPC_cjs.record(chunk2JO5HVPC_cjs.key, aggregate),
880
- steps: chunk2JO5HVPC_cjs.record(chunk2JO5HVPC_cjs.key, stepAggregate),
940
+ endpoints: chunkLUA4WRIQ_cjs.record(chunkLUA4WRIQ_cjs.key, aggregate),
941
+ steps: chunkLUA4WRIQ_cjs.record(chunkLUA4WRIQ_cjs.key, stepAggregate),
881
942
  testBreakdown
882
943
  },
883
944
  {
@@ -910,24 +971,24 @@ var runReport = chunk2JO5HVPC_cjs.obj(
910
971
  ]
911
972
  }
912
973
  );
913
- chunk2JO5HVPC_cjs.obj(
974
+ chunkLUA4WRIQ_cjs.obj(
914
975
  {
915
- schemaVersion: chunk2JO5HVPC_cjs.constant(1),
916
- runId: chunk2JO5HVPC_cjs.runId,
976
+ schemaVersion: chunkLUA4WRIQ_cjs.constant(1),
977
+ runId: chunkLUA4WRIQ_cjs.runId,
917
978
  // The outcome has its own modes: a check writes neither a report nor thresholds (02-REQ-34).
918
- mode: chunk2JO5HVPC_cjs.enumOf(["test", "thresholds", "check"]),
919
- exitCode: chunk2JO5HVPC_cjs.enumOf([0, 2, 3]),
920
- tests: chunk2JO5HVPC_cjs.obj({ status: chunk2JO5HVPC_cjs.testsStatus }, { required: ["status"] }),
921
- evaluation: chunk2JO5HVPC_cjs.obj(
922
- { status: chunk2JO5HVPC_cjs.evaluationStatus, gateEnabled: chunk2JO5HVPC_cjs.bool },
979
+ mode: chunkLUA4WRIQ_cjs.enumOf(["test", "thresholds", "check"]),
980
+ exitCode: chunkLUA4WRIQ_cjs.enumOf([0, 2, 3]),
981
+ tests: chunkLUA4WRIQ_cjs.obj({ status: chunkLUA4WRIQ_cjs.testsStatus }, { required: ["status"] }),
982
+ evaluation: chunkLUA4WRIQ_cjs.obj(
983
+ { status: chunkLUA4WRIQ_cjs.evaluationStatus, gateEnabled: chunkLUA4WRIQ_cjs.bool },
923
984
  { required: ["status", "gateEnabled"] }
924
985
  ),
925
- toolErrors: chunk2JO5HVPC_cjs.arr(chunk2JO5HVPC_cjs.issue),
926
- paths: chunk2JO5HVPC_cjs.obj(
986
+ toolErrors: chunkLUA4WRIQ_cjs.arr(chunkLUA4WRIQ_cjs.issue),
987
+ paths: chunkLUA4WRIQ_cjs.obj(
927
988
  {
928
989
  reportJson: nonEmptyOrNull,
929
990
  reportHtml: nonEmptyOrNull,
930
- thresholds: chunk2JO5HVPC_cjs.arr(nonEmpty),
991
+ thresholds: chunkLUA4WRIQ_cjs.arr(nonEmpty),
931
992
  thresholdsDiff: nonEmptyOrNull
932
993
  },
933
994
  { required: ["reportJson", "reportHtml", "thresholds", "thresholdsDiff"] }
@@ -950,8 +1011,8 @@ chunk2JO5HVPC_cjs.obj(
950
1011
  // src/core/schema/parse.ts
951
1012
  var MAX_PROBLEMS = 5;
952
1013
  var SCHEMA_VERSIONS = {
953
- samples: 2,
954
- runReport: 3,
1014
+ samples: 3,
1015
+ runReport: 4,
955
1016
  thresholds: 2,
956
1017
  outcome: 1
957
1018
  };
@@ -995,7 +1056,7 @@ function migrate(document, from, to, migrations) {
995
1056
  return current;
996
1057
  }
997
1058
  function validate(document, source, format) {
998
- const sink = new chunk2JO5HVPC_cjs.Sink(MAX_PROBLEMS + 1);
1059
+ const sink = new chunkLUA4WRIQ_cjs.Sink(MAX_PROBLEMS + 1);
999
1060
  format.schema.check(document, "", sink);
1000
1061
  if (sink.problems.length === 0) format.extraChecks?.(document, sink);
1001
1062
  if (sink.problems.length === 0) return null;
@@ -1010,7 +1071,7 @@ function parseVersioned(text2, source, format, options = {}) {
1010
1071
  const parsed = parseJson(text2, source, format);
1011
1072
  if (!parsed.ok) return parsed;
1012
1073
  const document = parsed.value;
1013
- if (!chunk2JO5HVPC_cjs.isRecord(document)) {
1074
+ if (!chunkLUA4WRIQ_cjs.isRecord(document)) {
1014
1075
  return failure(
1015
1076
  issueOf("SCHEMA_VALIDATION_FAILED", source, `${format.name} does not match the format`, [
1016
1077
  { pointer: "", message: "must be object" }
@@ -1073,21 +1134,21 @@ var SAMPLES_FORMAT = {
1073
1134
  };
1074
1135
  function migrateRunReportV1(document) {
1075
1136
  const aggregates = (value) => {
1076
- if (!chunk2JO5HVPC_cjs.isRecord(value)) return value;
1137
+ if (!chunkLUA4WRIQ_cjs.isRecord(value)) return value;
1077
1138
  return Object.fromEntries(
1078
1139
  Object.entries(value).map(([name, aggregate2]) => {
1079
- if (!chunk2JO5HVPC_cjs.isRecord(aggregate2)) return [name, aggregate2];
1140
+ if (!chunkLUA4WRIQ_cjs.isRecord(aggregate2)) return [name, aggregate2];
1080
1141
  const evaluation = aggregate2.evaluation;
1081
1142
  const ttfb = aggregate2.ttfb;
1082
1143
  return [
1083
1144
  name,
1084
1145
  {
1085
1146
  ...aggregate2,
1086
- ttfb: chunk2JO5HVPC_cjs.isRecord(ttfb) ? { ...ttfb, otherP50: null } : ttfb,
1087
- evaluation: chunk2JO5HVPC_cjs.isRecord(evaluation) && Array.isArray(evaluation.checks) ? {
1147
+ ttfb: chunkLUA4WRIQ_cjs.isRecord(ttfb) ? { ...ttfb, otherP50: null } : ttfb,
1148
+ evaluation: chunkLUA4WRIQ_cjs.isRecord(evaluation) && Array.isArray(evaluation.checks) ? {
1088
1149
  ...evaluation,
1089
1150
  checks: evaluation.checks.map(
1090
- (check2) => chunk2JO5HVPC_cjs.isRecord(check2) ? { ...check2, usage: null } : check2
1151
+ (check2) => chunkLUA4WRIQ_cjs.isRecord(check2) ? { ...check2, usage: null } : check2
1091
1152
  )
1092
1153
  } : evaluation,
1093
1154
  histogram: null,
@@ -1105,22 +1166,22 @@ function migrateRunReportV1(document) {
1105
1166
  };
1106
1167
  }
1107
1168
  function withoutCustomOptions(config) {
1108
- if (!chunk2JO5HVPC_cjs.isRecord(config) || !chunk2JO5HVPC_cjs.isRecord(config.checks)) return config;
1169
+ if (!chunkLUA4WRIQ_cjs.isRecord(config) || !chunkLUA4WRIQ_cjs.isRecord(config.checks)) return config;
1109
1170
  const drop = (value) => {
1110
- if (!chunk2JO5HVPC_cjs.isRecord(value)) return value;
1171
+ if (!chunkLUA4WRIQ_cjs.isRecord(value)) return value;
1111
1172
  const { custom: _removed, ...rest } = value;
1112
1173
  return rest;
1113
1174
  };
1114
1175
  const checks = Object.fromEntries(
1115
1176
  Object.entries(config.checks).map(([group, rules]) => {
1116
- if (!chunk2JO5HVPC_cjs.isRecord(rules)) return [group, rules];
1177
+ if (!chunkLUA4WRIQ_cjs.isRecord(rules)) return [group, rules];
1117
1178
  if (group === "errors") return [group, { ...rules, limit: drop(rules.limit) }];
1118
1179
  return [
1119
1180
  group,
1120
1181
  Object.fromEntries(
1121
1182
  Object.entries(rules).map(([name, rule]) => {
1122
1183
  if (group === "slowShare" && name === "t") return [name, drop(rule)];
1123
- if (!chunk2JO5HVPC_cjs.isRecord(rule) || !Object.hasOwn(rule, "limit")) return [name, rule];
1184
+ if (!chunkLUA4WRIQ_cjs.isRecord(rule) || !Object.hasOwn(rule, "limit")) return [name, rule];
1124
1185
  return [name, { ...rule, limit: drop(rule.limit) }];
1125
1186
  })
1126
1187
  )
@@ -1130,18 +1191,18 @@ function withoutCustomOptions(config) {
1130
1191
  return { ...config, checks };
1131
1192
  }
1132
1193
  function withStepOptions(config) {
1133
- if (!chunk2JO5HVPC_cjs.isRecord(config)) return config;
1194
+ if (!chunkLUA4WRIQ_cjs.isRecord(config)) return config;
1134
1195
  const out = { ...config };
1135
- if (chunk2JO5HVPC_cjs.isRecord(config.measure) && !Object.hasOwn(config.measure, "steps")) {
1136
- out.measure = { ...config.measure, steps: chunk2JO5HVPC_cjs.expandSteps(false) };
1196
+ if (chunkLUA4WRIQ_cjs.isRecord(config.measure) && !Object.hasOwn(config.measure, "steps")) {
1197
+ out.measure = { ...config.measure, steps: chunkLUA4WRIQ_cjs.expandSteps(false) };
1137
1198
  }
1138
- if (chunk2JO5HVPC_cjs.isRecord(config.checks)) {
1139
- const defaults = chunk2JO5HVPC_cjs.DEFAULT_CONFIG.checks;
1140
- const withStep = (value, fallback) => chunk2JO5HVPC_cjs.isRecord(value) && !Object.hasOwn(value, "step") && chunk2JO5HVPC_cjs.isRecord(fallback) ? { ...value, step: structuredClone(fallback.step) } : value;
1199
+ if (chunkLUA4WRIQ_cjs.isRecord(config.checks)) {
1200
+ const defaults = chunkLUA4WRIQ_cjs.DEFAULT_CONFIG.checks;
1201
+ const withStep = (value, fallback) => chunkLUA4WRIQ_cjs.isRecord(value) && !Object.hasOwn(value, "step") && chunkLUA4WRIQ_cjs.isRecord(fallback) ? { ...value, step: structuredClone(fallback.step) } : value;
1141
1202
  out.checks = Object.fromEntries(
1142
1203
  Object.entries(config.checks).map(([group, rules]) => {
1143
1204
  const groupDefaults = defaults[group];
1144
- if (!chunk2JO5HVPC_cjs.isRecord(rules) || !chunk2JO5HVPC_cjs.isRecord(groupDefaults)) return [group, rules];
1205
+ if (!chunkLUA4WRIQ_cjs.isRecord(rules) || !chunkLUA4WRIQ_cjs.isRecord(groupDefaults)) return [group, rules];
1145
1206
  if (group === "errors") {
1146
1207
  return [group, { ...rules, limit: withStep(rules.limit, groupDefaults.limit) }];
1147
1208
  }
@@ -1152,7 +1213,7 @@ function withStepOptions(config) {
1152
1213
  const ruleDefaults = groupDefaults[name];
1153
1214
  if (group === "slowShare" && name === "t")
1154
1215
  return [name, withStep(rule, ruleDefaults)];
1155
- if (!chunk2JO5HVPC_cjs.isRecord(rule) || !chunk2JO5HVPC_cjs.isRecord(ruleDefaults)) return [name, rule];
1216
+ if (!chunkLUA4WRIQ_cjs.isRecord(rule) || !chunkLUA4WRIQ_cjs.isRecord(ruleDefaults)) return [name, rule];
1156
1217
  if (!Object.hasOwn(rule, "limit")) return [name, rule];
1157
1218
  return [name, { ...rule, limit: withStep(rule.limit, ruleDefaults.limit) }];
1158
1219
  })
@@ -1164,21 +1225,21 @@ function withStepOptions(config) {
1164
1225
  return out;
1165
1226
  }
1166
1227
  function withPassesOption(config) {
1167
- if (!chunk2JO5HVPC_cjs.isRecord(config) || !chunk2JO5HVPC_cjs.isRecord(config.run)) return config;
1228
+ if (!chunkLUA4WRIQ_cjs.isRecord(config) || !chunkLUA4WRIQ_cjs.isRecord(config.run)) return config;
1168
1229
  const { repeat, ...run } = config.run;
1169
1230
  return repeat === void 0 ? config : { ...config, run: { ...run, passes: repeat } };
1170
1231
  }
1171
1232
  function withGateAndPresetOptions(config) {
1172
- if (!chunk2JO5HVPC_cjs.isRecord(config)) return config;
1233
+ if (!chunkLUA4WRIQ_cjs.isRecord(config)) return config;
1173
1234
  const out = { ...config };
1174
- if (chunk2JO5HVPC_cjs.isRecord(config.gate)) {
1235
+ if (chunkLUA4WRIQ_cjs.isRecord(config.gate)) {
1175
1236
  const { warnOnly: _warnOnly, ...gate } = config.gate;
1176
1237
  out.gate = gate;
1177
1238
  }
1178
- if (chunk2JO5HVPC_cjs.isRecord(config.thresholds) && !Object.hasOwn(config.thresholds, "preset")) {
1239
+ if (chunkLUA4WRIQ_cjs.isRecord(config.thresholds) && !Object.hasOwn(config.thresholds, "preset")) {
1179
1240
  out.thresholds = { preset: "normal", ...config.thresholds };
1180
1241
  }
1181
- if (chunk2JO5HVPC_cjs.isRecord(config.run) && !Object.hasOwn(config.run, "grep")) {
1242
+ if (chunkLUA4WRIQ_cjs.isRecord(config.run) && !Object.hasOwn(config.run, "grep")) {
1182
1243
  out.run = { ...config.run, grep: null };
1183
1244
  }
1184
1245
  return out;
@@ -1186,7 +1247,7 @@ function withGateAndPresetOptions(config) {
1186
1247
  function migrateRunReportV2(document) {
1187
1248
  const { custom: _custom, ...rest } = document;
1188
1249
  const evaluation = document.evaluation;
1189
- const counts = chunk2JO5HVPC_cjs.isRecord(evaluation) ? evaluation.counts : void 0;
1250
+ const counts = chunkLUA4WRIQ_cjs.isRecord(evaluation) ? evaluation.counts : void 0;
1190
1251
  const files = document.thresholdFiles;
1191
1252
  return {
1192
1253
  ...rest,
@@ -1197,14 +1258,14 @@ function migrateRunReportV2(document) {
1197
1258
  config: withGateAndPresetOptions(
1198
1259
  withPassesOption(withStepOptions(withoutCustomOptions(document.config)))
1199
1260
  ),
1200
- evaluation: chunk2JO5HVPC_cjs.isRecord(evaluation) && chunk2JO5HVPC_cjs.isRecord(counts) ? {
1261
+ evaluation: chunkLUA4WRIQ_cjs.isRecord(evaluation) && chunkLUA4WRIQ_cjs.isRecord(counts) ? {
1201
1262
  ...evaluation,
1202
1263
  counts: {
1203
1264
  ...Object.fromEntries(Object.entries(counts).filter(([k]) => k !== "custom")),
1204
1265
  step: Object.fromEntries(Object.keys(counts.api ?? {}).map((name) => [name, 0]))
1205
1266
  }
1206
1267
  } : evaluation,
1207
- thresholdFiles: Array.isArray(files) ? files.filter((file) => !(chunk2JO5HVPC_cjs.isRecord(file) && file.kind === "custom")) : files
1268
+ thresholdFiles: Array.isArray(files) ? files.filter((file) => !(chunkLUA4WRIQ_cjs.isRecord(file) && file.kind === "custom")) : files
1208
1269
  };
1209
1270
  }
1210
1271
  function sum(values) {
@@ -1216,17 +1277,17 @@ function checkRunReport(document, sink) {
1216
1277
  for (const [name, aggregate2] of Object.entries(map)) {
1217
1278
  const histogram3 = aggregate2.histogram;
1218
1279
  if (histogram3 === null) continue;
1219
- const pointer = chunk2JO5HVPC_cjs.child(chunk2JO5HVPC_cjs.child(`/${kind2}`, name), "histogram");
1280
+ const pointer = chunkLUA4WRIQ_cjs.child(chunkLUA4WRIQ_cjs.child(`/${kind2}`, name), "histogram");
1220
1281
  const { edges, counts } = histogram3;
1221
1282
  if (edges.some((edge, i) => i > 0 && edge <= (edges[i - 1] ?? 0))) {
1222
- sink.add(chunk2JO5HVPC_cjs.child(pointer, "edges"), "must be strictly ascending");
1283
+ sink.add(chunkLUA4WRIQ_cjs.child(pointer, "edges"), "must be strictly ascending");
1223
1284
  }
1224
1285
  if (counts.length !== edges.length - 1) {
1225
- sink.add(chunk2JO5HVPC_cjs.child(pointer, "counts"), "must have one item fewer than edges");
1286
+ sink.add(chunkLUA4WRIQ_cjs.child(pointer, "counts"), "must have one item fewer than edges");
1226
1287
  }
1227
1288
  const retained = aggregate2.samples.durations.length;
1228
1289
  if (sum(counts) !== retained) {
1229
- sink.add(chunk2JO5HVPC_cjs.child(pointer, "counts"), "must sum to the number of samples.durations");
1290
+ sink.add(chunkLUA4WRIQ_cjs.child(pointer, "counts"), "must sum to the number of samples.durations");
1230
1291
  }
1231
1292
  }
1232
1293
  }
@@ -1246,11 +1307,21 @@ function checkRunReport(document, sink) {
1246
1307
  }
1247
1308
  });
1248
1309
  }
1310
+ function migrateRunReportV3(document) {
1311
+ const config = document.config;
1312
+ if (!chunkLUA4WRIQ_cjs.isRecord(config) || !chunkLUA4WRIQ_cjs.isRecord(config.run)) return document;
1313
+ const { projects: _projects, ...run } = config.run;
1314
+ const measure = chunkLUA4WRIQ_cjs.isRecord(config.measure) ? { api: true, ...config.measure } : config.measure;
1315
+ return {
1316
+ ...document,
1317
+ config: { ...config, run: { ...run, overrideSlowMo: false }, measure }
1318
+ };
1319
+ }
1249
1320
  var RUN_REPORT_FORMAT = {
1250
1321
  name: "run report",
1251
1322
  schemaFile: "run-report.schema.json",
1252
1323
  current: SCHEMA_VERSIONS.runReport,
1253
- migrations: { 1: migrateRunReportV1, 2: migrateRunReportV2 },
1324
+ migrations: { 1: migrateRunReportV1, 2: migrateRunReportV2, 3: migrateRunReportV3 },
1254
1325
  schema: runReport,
1255
1326
  extraChecks: checkRunReport
1256
1327
  };
@@ -1265,7 +1336,7 @@ var THRESHOLDS_FORMAT = {
1265
1336
  const entries2 = document.entries;
1266
1337
  for (const [name, entry] of Object.entries(entries2)) {
1267
1338
  if (typeof entry.until === "string" && !isCalendarDate(entry.until)) {
1268
- sink.add(chunk2JO5HVPC_cjs.child(chunk2JO5HVPC_cjs.child("/entries", name), "until"), "must be an existing calendar date");
1339
+ sink.add(chunkLUA4WRIQ_cjs.child(chunkLUA4WRIQ_cjs.child("/entries", name), "until"), "must be an existing calendar date");
1269
1340
  }
1270
1341
  }
1271
1342
  }
@@ -1307,12 +1378,12 @@ function thresholdsFileName(prefix, kind2, env) {
1307
1378
  function thresholdsFilePaths(location) {
1308
1379
  const dir = resolvePath(location.configDir, location.dir);
1309
1380
  const path = (kind2) => resolvePath(dir, thresholdsFileName(location.filePrefix, kind2, location.env));
1310
- return Object.fromEntries(chunkBAOTUUTV_cjs.KINDS.map((kind2) => [kind2, path(kind2)]));
1381
+ return Object.fromEntries(chunkIUI4AFE5_cjs.KINDS.map((kind2) => [kind2, path(kind2)]));
1311
1382
  }
1312
1383
  async function loadFile(location, kind2) {
1313
1384
  const absolute = thresholdsFilePaths(location)[kind2];
1314
1385
  const path = relativeSlashPath(location.configDir, absolute);
1315
- if (kind2 === "step" && !location.steps) {
1386
+ if (kind2 === "step" ? !location.steps : location.api === false) {
1316
1387
  return { status: "missing", kind: kind2, path, envlessFileExists: false };
1317
1388
  }
1318
1389
  let text2;
@@ -1355,8 +1426,8 @@ async function loadFile(location, kind2) {
1355
1426
  };
1356
1427
  }
1357
1428
  async function loadThresholds(location) {
1358
- const files = await Promise.all(chunkBAOTUUTV_cjs.KINDS.map((kind2) => loadFile(location, kind2)));
1359
- return Object.fromEntries(chunkBAOTUUTV_cjs.KINDS.map((kind2, i) => [kind2, files[i]]));
1429
+ const files = await Promise.all(chunkIUI4AFE5_cjs.KINDS.map((kind2) => loadFile(location, kind2)));
1430
+ return Object.fromEntries(chunkIUI4AFE5_cjs.KINDS.map((kind2, i) => [kind2, files[i]]));
1360
1431
  }
1361
1432
 
1362
1433
  // src/core/evaluate/files.ts
@@ -1372,7 +1443,7 @@ function envlessPath(path, env) {
1372
1443
  return path.endsWith(suffix) ? `${path.slice(0, -suffix.length)}.json` : path;
1373
1444
  }
1374
1445
  function missingFileWarning(file, env) {
1375
- const derive = `Derive thresholds with \`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds\`${env === null ? "" : ` (environment "${env}")`}.`;
1446
+ const derive = `Derive thresholds with \`${chunkIUI4AFE5_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}.`;
1376
1447
  const envless = env !== null && file.envlessFileExists ? ` ${envlessPath(file.path, env)} exists but is not used for environment "${env}": thresholds of another environment would give false alarms or hide regressions.` : "";
1377
1448
  return {
1378
1449
  code: "THRESHOLDS_FILE_MISSING",
@@ -1426,7 +1497,7 @@ function generatedWarnings(path, generated, cfg, env, source) {
1426
1497
  issues.push({
1427
1498
  code: "EVAL_PERCENTILE_MISMATCH",
1428
1499
  message: `Thresholds in ${path} were derived for ${generated.evaluatedPercentile}, but this run evaluates ${level}; the percentile limits are compared with ${level}.`,
1429
- hint: `Derive thresholds again with \`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds\` after changing checks.time.percentile.level.`
1500
+ hint: `Derive thresholds again with \`${chunkIUI4AFE5_cjs.THRESHOLDS_COMMAND}\` after changing checks.time.percentile.level.`
1430
1501
  });
1431
1502
  }
1432
1503
  if (generated.env !== env) {
@@ -1447,7 +1518,7 @@ function generatedWarnings(path, generated, cfg, env, source) {
1447
1518
  }
1448
1519
  if (keys) {
1449
1520
  hints.push(
1450
- `Another normalization changes the keys: derive thresholds again with \`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds\`.`
1521
+ `Another normalization changes the keys: derive thresholds again with \`${chunkIUI4AFE5_cjs.THRESHOLDS_COMMAND}\`.`
1451
1522
  );
1452
1523
  }
1453
1524
  issues.push({
@@ -1462,14 +1533,14 @@ function unseenWarning(path, unseen) {
1462
1533
  return {
1463
1534
  code: "THRESHOLDS_UNSEEN_ENTRIES",
1464
1535
  message: `${plural(unseen.length, "entry", "entries")} in ${path} ${unseen.length === 1 ? "was" : "were"} not seen in this run.`,
1465
- hint: `Run the full suite, or remove stale entries with \`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds --prune\`.`
1536
+ hint: `Run the full suite, or remove stale entries with \`${chunkIUI4AFE5_cjs.PRUNE_COMMAND}\`.`
1466
1537
  };
1467
1538
  }
1468
1539
  function outdatedWarning(path, from, current) {
1469
1540
  return {
1470
1541
  code: "THRESHOLDS_FILE_OUTDATED",
1471
1542
  message: `Thresholds file ${path} has format version ${from}; it was read after migration to version ${current}.`,
1472
- hint: `The next \`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds\` writes it in the current version and keeps locked entries.`
1543
+ hint: `The next thresholds run (\`${chunkIUI4AFE5_cjs.THRESHOLDS_COMMAND}\`) writes it in the current version and keeps locked entries.`
1473
1544
  };
1474
1545
  }
1475
1546
  function fileInfo(file, unseenKeys) {
@@ -1585,14 +1656,7 @@ function hashHex(input) {
1585
1656
  }
1586
1657
 
1587
1658
  // src/core/stats/classification.ts
1588
- var ABORT_FAILURE_TEXTS = Object.freeze([
1589
- "net::ERR_ABORTED",
1590
- "NS_BINDING_ABORTED",
1591
- "NS_ERROR_ABORT",
1592
- "cancelled",
1593
- chunkBAOTUUTV_cjs.CONTEXT_CLOSED_FAILURE_TEXT
1594
- ]);
1595
- var ABORT_TEXTS = new Set(ABORT_FAILURE_TEXTS);
1659
+ var ABORT_TEXTS = new Set(chunkIUI4AFE5_cjs.ABORT_FAILURE_TEXTS);
1596
1660
  function requestStatusLabel(sample) {
1597
1661
  const { status } = sample;
1598
1662
  if (typeof status === "number") return String(status);
@@ -2135,11 +2199,12 @@ var Aggregator = class {
2135
2199
  if (sample.timeSource === "node") state.node += 1;
2136
2200
  else state.browser += 1;
2137
2201
  const successful = typeof sample.status === "number" && this.isSuccess(statusLabel);
2138
- if (successful && sample.timeSource === "node") {
2202
+ const apiCall = sample.apiCall === true;
2203
+ if (successful && sample.timeSource === "node" && !apiCall) {
2139
2204
  this.withoutBrowserTiming += 1;
2140
2205
  this.keysWithoutBrowserTiming.add(key2);
2141
2206
  }
2142
- const usable = successful && sample.timeSource === "browser" && !sample.fromServiceWorker && sample.duration !== null;
2207
+ const usable = successful && (sample.timeSource === "browser" || apiCall) && !sample.fromServiceWorker && sample.duration !== null;
2143
2208
  this.testBreakdown.addRequest(
2144
2209
  sample.test,
2145
2210
  key2,
@@ -2209,6 +2274,7 @@ var Aggregator = class {
2209
2274
  accept(test) {
2210
2275
  if (this.finalized) throw new Error("Aggregator: samples added after finalize().");
2211
2276
  if (this.opts.measuredProjects.has(test.project)) return true;
2277
+ if (this.opts.dependencyProjects?.has(test.project) === true) return false;
2212
2278
  this.outsideSamples += 1;
2213
2279
  this.outsideProjects.add(test.project);
2214
2280
  return false;
@@ -2351,7 +2417,7 @@ var Aggregator = class {
2351
2417
  issues.push({
2352
2418
  code: "STATS_MULTIPLE_BROWSERS",
2353
2419
  message: `Request samples come from more than one browser (${names2}); timings of different engines are mixed in the same keys.`,
2354
- hint: "Measure one browser engine per run (option run.projects)."
2420
+ hint: "Measure one browser engine per run: select projects of one engine with --project in the measurement command."
2355
2421
  });
2356
2422
  }
2357
2423
  return issues;
@@ -2364,6 +2430,29 @@ function addKeyedRequest(aggregator, keyOf, sample, browserName) {
2364
2430
  }
2365
2431
  return result2;
2366
2432
  }
2433
+ function addKeyedApiRequest(aggregator, keyOf, sample) {
2434
+ const result2 = keyOf({ method: sample.method, url: sample.url, resourceType: "request" });
2435
+ if (!result2.ok) return result2;
2436
+ const key2 = `${chunkIUI4AFE5_cjs.REQUEST_KEY_PREFIX}${result2.key}`;
2437
+ const request = {
2438
+ method: sample.method,
2439
+ url: sample.url,
2440
+ resourceType: "request",
2441
+ status: sample.status,
2442
+ ...sample.failureText === void 0 ? {} : { failureText: sample.failureText },
2443
+ startTime: sample.startTime,
2444
+ duration: sample.duration,
2445
+ requestStart: null,
2446
+ ttfb: null,
2447
+ timeSource: "node",
2448
+ fromServiceWorker: false,
2449
+ test: sample.test,
2450
+ ordinal: sample.ordinal,
2451
+ apiCall: true
2452
+ };
2453
+ aggregator.addRequest(key2, request, result2.origin, result2.label, null);
2454
+ return { ...result2, key: key2 };
2455
+ }
2367
2456
 
2368
2457
  // src/core/stats/functions.ts
2369
2458
  var WILSON_Z = 1.96;
@@ -2555,7 +2644,7 @@ function qualifies(evaluation, gate) {
2555
2644
  return !isMuteActive(evaluation.muted);
2556
2645
  }
2557
2646
  function applyGate(perKey, gate) {
2558
- const all = chunkBAOTUUTV_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2]));
2647
+ const all = chunkIUI4AFE5_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2]));
2559
2648
  const qualified = all.filter(
2560
2649
  (e) => qualifies(e, gate) && e.checks.some((check2) => !check2.passed)
2561
2650
  );
@@ -2605,7 +2694,7 @@ function evaluationStatus2(perKey, thresholds, fatalToolError, kinds) {
2605
2694
  if (fatalToolError || kinds.some((kind2) => thresholds[kind2].status === "invalid")) {
2606
2695
  return "error";
2607
2696
  }
2608
- const checks = chunkBAOTUUTV_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2])).flatMap((e) => e.checks);
2697
+ const checks = chunkIUI4AFE5_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2])).flatMap((e) => e.checks);
2609
2698
  if (checks.some((c) => c.blocking)) return "failed";
2610
2699
  if (checks.some((c) => !c.passed)) return "warned";
2611
2700
  return "passed";
@@ -2617,7 +2706,7 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2617
2706
  step: aggregates.steps ?? {}
2618
2707
  };
2619
2708
  const perKey = { api: {}, step: {} };
2620
- for (const kind2 of chunkBAOTUUTV_cjs.KINDS) {
2709
+ for (const kind2 of chunkIUI4AFE5_cjs.KINDS) {
2621
2710
  for (const key2 of Object.keys(byKind[kind2]).sort(compareText)) {
2622
2711
  const stats2 = byKind[kind2][key2];
2623
2712
  if (stats2 !== void 0) {
@@ -2630,7 +2719,9 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2630
2719
  const toolErrors = [];
2631
2720
  const thresholdFiles = [];
2632
2721
  const unseenCount = { api: 0, step: 0 };
2633
- const activeKinds = chunkBAOTUUTV_cjs.KINDS.filter((kind2) => kind2 !== "step" || cfg.measure.steps.enabled);
2722
+ const activeKinds = chunkIUI4AFE5_cjs.KINDS.filter(
2723
+ (kind2) => kind2 === "step" ? cfg.measure.steps.enabled : cfg.measure.api
2724
+ );
2634
2725
  for (const kind2 of activeKinds) {
2635
2726
  const file = thresholds[kind2];
2636
2727
  if (file.kind !== kind2) {
@@ -2638,7 +2729,9 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2638
2729
  }
2639
2730
  let unseen = [];
2640
2731
  if (file.status === "missing") {
2641
- if (Object.keys(byKind[kind2]).length > 0) warnings.push(missingFileWarning(file, opts.env));
2732
+ if (opts.mode === "test" && Object.keys(byKind[kind2]).length > 0) {
2733
+ warnings.push(missingFileWarning(file, opts.env));
2734
+ }
2642
2735
  } else if (file.status === "invalid") {
2643
2736
  toolErrors.push(...file.issues.map(schemaIssueToIssue));
2644
2737
  } else {
@@ -2666,14 +2759,14 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2666
2759
  api: countKind(perKey.api, unseenCount.api),
2667
2760
  step: countKind(perKey.step, unseenCount.step)
2668
2761
  };
2669
- if (chunkBAOTUUTV_cjs.KINDS.every((kind2) => Object.keys(byKind[kind2]).length === 0)) {
2762
+ if (chunkIUI4AFE5_cjs.KINDS.every((kind2) => Object.keys(byKind[kind2]).length === 0)) {
2670
2763
  warnings.push({
2671
2764
  code: "EVAL_NO_SAMPLES",
2672
2765
  message: "The run recorded no samples, so nothing was evaluated.",
2673
2766
  hint: "Check the integration: tests must use the fixtures from withPerfFixtures, and the measure options (include, exclude, resourceTypes) must not filter out every request."
2674
2767
  });
2675
2768
  }
2676
- const notEvaluated = chunkBAOTUUTV_cjs.KINDS.reduce((sum3, kind2) => sum3 + counts[kind2].fileEntriesNotEvaluated, 0);
2769
+ const notEvaluated = chunkIUI4AFE5_cjs.KINDS.reduce((sum3, kind2) => sum3 + counts[kind2].fileEntriesNotEvaluated, 0);
2677
2770
  if (notEvaluated > 0) {
2678
2771
  warnings.push({
2679
2772
  code: "THRESHOLDS_ENTRIES_NOT_EVALUATED",
@@ -2681,7 +2774,7 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2681
2774
  hint: `Run more passes (run.passes or PW_PERF_PASSES), or accept that the endpoint is called rarely.`
2682
2775
  });
2683
2776
  }
2684
- const mutedKeys = chunkBAOTUUTV_cjs.KINDS.flatMap(
2777
+ const mutedKeys = chunkIUI4AFE5_cjs.KINDS.flatMap(
2685
2778
  (kind2) => Object.entries(perKey[kind2]).flatMap(
2686
2779
  ([key2, e]) => e.muted === null ? [] : [{ kind: kind2, key: key2, muted: e.muted }]
2687
2780
  )
@@ -2755,7 +2848,7 @@ function buildOutcome(report, paths) {
2755
2848
  }
2756
2849
 
2757
2850
  // src/core/normalize/constants.ts
2758
- var NORMALIZE_RULES_VERSION = 1;
2851
+ var NORMALIZE_RULES_VERSION = 2;
2759
2852
  var MAX_KEY_LENGTH = 2e3;
2760
2853
  var CARDINALITY_MIN_KEYS = 10;
2761
2854
  var MAX_KEYS_WARNING = 1e3;
@@ -2820,12 +2913,13 @@ var ID_PATTERNS = {
2820
2913
  hex: /^[0-9a-f]{16,}$/i,
2821
2914
  token: /^(?=[^0-9]*[0-9])(?:[A-Za-z0-9~=]{24,}|(?=[^a-z]*[a-z])(?=[^A-Z]*[A-Z])[A-Za-z0-9_.~=-]{24,})$/,
2822
2915
  mixed: /^(?=[^0-9]*[0-9])(?=[^a-z]*[a-z])(?=[^A-Z]*[A-Z])[A-Za-z0-9_-]{16,}$/,
2916
+ prefixed: /^(?:[A-Z]{2,5}-[0-9]{3,}|[a-z]{1,8}_(?:[0-9]{2,32}|(?=[A-Za-z]*[0-9])[A-Za-z0-9]{8,32}))$/,
2823
2917
  email: /^[^@\s/]+@[^@\s/]+\.[^@\s/]+$/
2824
2918
  };
2825
2919
  function compileIdMatcher(keys) {
2826
2920
  const email = keys.idPatterns.email ? ID_PATTERNS.email : void 0;
2827
2921
  const ids = [];
2828
- for (const name of ["number", "uuid", "hex", "token", "mixed"]) {
2922
+ for (const name of ["number", "uuid", "hex", "token", "mixed", "prefixed"]) {
2829
2923
  if (keys.idPatterns[name]) {
2830
2924
  const re = ID_PATTERNS[name];
2831
2925
  ids.push((text2) => re.test(text2));
@@ -2916,17 +3010,17 @@ function truncateKey(key2) {
2916
3010
  function originLabels(origins, baseOrigins) {
2917
3011
  const exact = /* @__PURE__ */ new Map();
2918
3012
  for (const [origin, label] of Object.entries(origins)) {
2919
- if (chunk2JO5HVPC_cjs.isHostPattern(origin)) continue;
3013
+ if (chunkLUA4WRIQ_cjs.isHostPattern(origin)) continue;
2920
3014
  const canonical = canonicalOrigin(origin);
2921
3015
  if (canonical !== null) exact.set(canonical, label);
2922
3016
  }
2923
- const patterns = chunk2JO5HVPC_cjs.compileHostPatterns(origins);
3017
+ const patterns = chunkLUA4WRIQ_cjs.compileHostPatterns(origins);
2924
3018
  const base = new Set(canonicalOrigins(baseOrigins));
2925
3019
  const memo = /* @__PURE__ */ new Map();
2926
3020
  return (url) => {
2927
3021
  const known = memo.get(url.origin);
2928
3022
  if (known !== void 0) return known;
2929
- const label = exact.get(url.origin) ?? chunk2JO5HVPC_cjs.matchingPattern(patterns, url)?.label ?? (base.has(url.origin) ? "" : null);
3023
+ const label = exact.get(url.origin) ?? chunkLUA4WRIQ_cjs.matchingPattern(patterns, url)?.label ?? (base.has(url.origin) ? "" : null);
2930
3024
  memo.set(url.origin, label);
2931
3025
  return label;
2932
3026
  };
@@ -3077,8 +3171,8 @@ function percentileHint(code2) {
3077
3171
  const median = finding(checks, "median");
3078
3172
  if (percentile2 === void 0 || percentile2.passed || percentile2.usage === null) return null;
3079
3173
  if (median === void 0 || !median.passed || median.usage === null) return null;
3080
- const tail = median.usage <= TAIL_MEDIAN_USAGE;
3081
- if (tail !== (code2 === "HINT_TAIL")) return null;
3174
+ const tail2 = median.usage <= TAIL_MEDIAN_USAGE;
3175
+ if (tail2 !== (code2 === "HINT_TAIL")) return null;
3082
3176
  return { code: code2, params: { usage: percentile2.usage, medianUsage: median.usage } };
3083
3177
  };
3084
3178
  }
@@ -3326,8 +3420,8 @@ function buildRunReport(input) {
3326
3420
  const rawUrls = input.config.report?.rawUrls === true;
3327
3421
  const kindOrder = { api: 0, step: 1 };
3328
3422
  const hintOptions = {
3329
- errorStatuses: input.config.checks?.errors?.statuses ?? chunk2JO5HVPC_cjs.perfDefaults.checks.errors.statuses,
3330
- hardLimitFactor: input.config.gate?.hardLimitFactor === void 0 ? chunk2JO5HVPC_cjs.perfDefaults.gate.hardLimitFactor : input.config.gate.hardLimitFactor
3423
+ errorStatuses: input.config.checks?.errors?.statuses ?? chunkLUA4WRIQ_cjs.perfDefaults.checks.errors.statuses,
3424
+ hardLimitFactor: input.config.gate?.hardLimitFactor === void 0 ? chunkLUA4WRIQ_cjs.perfDefaults.gate.hardLimitFactor : input.config.gate.hardLimitFactor
3331
3425
  };
3332
3426
  const endpoints = buildAggregates(
3333
3427
  "api",
@@ -3345,6 +3439,7 @@ function buildRunReport(input) {
3345
3439
  finishedAt: meta.finishedAt,
3346
3440
  env: meta.env,
3347
3441
  configDir: meta.configDir,
3442
+ ...meta.suite === void 0 ? {} : { suite: { ...meta.suite } },
3348
3443
  config: structuredClone(input.config),
3349
3444
  normalization: input.normalization,
3350
3445
  stepNormalization: input.stepNormalization,
@@ -3384,6 +3479,13 @@ function scriptCommand(pm, script) {
3384
3479
  function plainCommand(pm) {
3385
3480
  return pm === "pnpm" ? "pnpm exec playwright test" : pm === "yarn" ? "yarn playwright test" : "npx playwright test";
3386
3481
  }
3482
+ function shellWord(word) {
3483
+ return /^[\w@%+=:,./-]+$/u.test(word) ? word : `'${word.replace(/'/gu, `'\\''`)}'`;
3484
+ }
3485
+ function userCommand(pm, script, tail2) {
3486
+ const head = script === null ? plainCommand(pm) : scriptCommand(pm, script);
3487
+ return [head, ...tail2.map(shellWord)].join(" ");
3488
+ }
3387
3489
  function packageManager(ctx) {
3388
3490
  const agent = ctx.userAgent ?? "";
3389
3491
  if (agent.startsWith("pnpm/")) return "pnpm";
@@ -3407,29 +3509,39 @@ function modeScript(scripts, mode2, env) {
3407
3509
  return null;
3408
3510
  }
3409
3511
  function suggestCommand(mode2, ctx) {
3410
- if (ctx.viaCli) return `npx pw-perf ${mode2}${ctx.env === null ? "" : ` --env ${ctx.env}`}`;
3512
+ const dir = ctx.directory ?? null;
3513
+ return `${dir === null ? "" : `cd ${shellWord(dir)} && `}${modeCommand(mode2, ctx)}`;
3514
+ }
3515
+ function tail(mode2, ctx, script) {
3516
+ const run = ctx.run;
3517
+ if (mode2 === "thresholds" || run === void 0 || run.script !== script) return "";
3518
+ return run.tail.map((word) => ` ${shellWord(word)}`).join("");
3519
+ }
3520
+ function modeCommand(mode2, ctx) {
3411
3521
  const pm = packageManager(ctx);
3412
3522
  const event = ctx.lifecycleEvent;
3413
- if (event !== null && event !== "") {
3523
+ const isScript = event !== null && event !== "" && (ctx.scripts === null || Object.hasOwn(ctx.scripts, event));
3524
+ if (event !== null && isScript) {
3414
3525
  const script = ctx.lifecycleScript ?? "";
3526
+ const added = tail(mode2, ctx, true);
3415
3527
  if (!setsMode(script)) {
3416
- return perfCommand(mode2, ctx.env, scriptCommand(pm, event), ctx.platform);
3528
+ return perfCommand(mode2, ctx.env, scriptCommand(pm, event) + added, ctx.platform);
3417
3529
  }
3418
3530
  const own = ctx.scripts === null ? null : modeScript(ctx.scripts, mode2, ctx.env);
3419
3531
  if (own !== null) return scriptCommand(pm, own);
3420
- return perfCommand(mode2, ctx.env, scriptCommand(pm, event), ctx.platform);
3532
+ return perfCommand(mode2, ctx.env, scriptCommand(pm, event) + added, ctx.platform);
3421
3533
  }
3422
- return perfCommand(mode2, ctx.env, plainCommand(pm), ctx.platform);
3534
+ return perfCommand(mode2, ctx.env, plainCommand(pm) + tail(mode2, ctx, false), ctx.platform);
3423
3535
  }
3424
3536
  function nextHint(input) {
3425
3537
  const { report, commands, written } = input;
3426
3538
  if (report.toolErrors.length > 0) return null;
3427
3539
  const measured = Object.keys(report.endpoints).length > 0 || Object.keys(report.steps).length > 0;
3428
3540
  if (!measured) {
3429
- return `nothing was measured: check use.baseURL and run.projects, then run ${commands.check}`;
3541
+ return `nothing was measured: check use.baseURL and the projects of the test command, then run ${commands.check}`;
3430
3542
  }
3431
3543
  if (report.mode === "thresholds") {
3432
- if (written.length === 0) return null;
3544
+ if (written.length === 0 || input.temporary === true) return null;
3433
3545
  const files = written.map((f) => `${f.name} (${String(f.entries)} ${f.entries === 1 ? "key" : "keys"})`).join(" and ");
3434
3546
  const local = report.ci === null ? "; for CI, derive them on the CI machines (docs/thresholds.md)" : "";
3435
3547
  return `commit ${files}${local}`;
@@ -3457,7 +3569,6 @@ function estimateText(input) {
3457
3569
  const seconds = (Math.round(mean / 100) / 10).toFixed(1);
3458
3570
  return `measurement run \u2248 ${formatDuration(run(input.passesTest))} (${String(input.tests)} tests \xD7 ${String(input.passesTest)} passes \xD7 ${seconds} s), thresholds run \u2248 ${formatDuration(run(input.passesThresholds))} (\xD7 ${String(input.passesThresholds)} passes), 1 worker`;
3459
3571
  }
3460
- var DEFAULT_TEST_MS = 3e4;
3461
3572
  function msPerTest(report) {
3462
3573
  const executions = report.tests.expected + report.tests.unexpected + report.tests.flaky;
3463
3574
  const wall = Date.parse(report.finishedAt) - Date.parse(report.startedAt);
@@ -3465,9 +3576,9 @@ function msPerTest(report) {
3465
3576
  return wall / executions;
3466
3577
  }
3467
3578
  function startEstimate(input) {
3468
- const ms2 = input.msPerTest ?? DEFAULT_TEST_MS;
3469
- const note = input.msPerTest === null ? "30 s per test, no earlier run" : "from the last run";
3470
- return `\u2248 ${formatDuration(input.tests * input.passes * ms2)} (${note})`;
3579
+ if (input.msPerTest === null) return "unknown (run PW_PERF_MODE=check for an estimate)";
3580
+ const time = formatDuration(input.tests * input.passes * input.msPerTest);
3581
+ return `${time.startsWith("<") ? "" : "\u2248 "}${time} (from the last run)`;
3471
3582
  }
3472
3583
 
3473
3584
  // src/core/check/random-host.ts
@@ -3575,7 +3686,9 @@ var TIME_RE = /^[0-9]{1,2}:[0-9]{2}(?::[0-9]{2})?$/u;
3575
3686
  var MERIDIEM_RE = /^(?:AM|PM)$/iu;
3576
3687
  var NUMBER_RES = [
3577
3688
  /^[+-]?[0-9]+(?:[.,][0-9]+)+[A-Za-zµ%°]{0,4}$/u,
3578
- /^[+-]?[0-9]+[A-Za-zµ%°]{1,4}$/u
3689
+ /^[+-]?[0-9]+[A-Za-zµ%°]{1,4}$/u,
3690
+ // Bare integers shorter than 9 digits; longer ones are ids of rule P9 (06-D-28).
3691
+ /^[+-]?[0-9]{1,8}$/u
3579
3692
  ];
3580
3693
  var QUOTES = /* @__PURE__ */ new Map([
3581
3694
  ['"', '"'],
@@ -3971,16 +4084,10 @@ function secretRedactedIssue(redactions) {
3971
4084
  hint: "Sensitive data in a step title also reaches Playwright reports and traces; remove it from the title."
3972
4085
  };
3973
4086
  }
3974
- function noStepsIssue() {
3975
- return {
3976
- code: "STEPS_NONE_FOUND",
3977
- message: "measure.steps is enabled, but the measured tests gave no step samples.",
3978
- hint: "Check that the tests use test.step, and the measure.steps include, exclude and categories settings."
3979
- };
3980
- }
4087
+ var NO_STEPS_LINE = "No test.step blocks found, so there are no step thresholds.";
3981
4088
 
3982
4089
  // src/core/steps/fingerprint.ts
3983
- var STEP_RULES_VERSION = 1;
4090
+ var STEP_RULES_VERSION = 2;
3984
4091
  function stepNormalizationFingerprint(steps, keys) {
3985
4092
  return hashHex(
3986
4093
  stringifyStable({
@@ -3999,7 +4106,7 @@ function stepNormalizationFingerprint(steps, keys) {
3999
4106
  }
4000
4107
 
4001
4108
  // src/reporter/steps.ts
4002
- function toNodes(steps, relative2) {
4109
+ function toNodes(steps, relative3) {
4003
4110
  return steps.map((step) => ({
4004
4111
  category: step.category,
4005
4112
  title: step.title,
@@ -4007,8 +4114,8 @@ function toNodes(steps, relative2) {
4007
4114
  duration: step.duration,
4008
4115
  hasError: step.error !== void 0 && step.error !== null,
4009
4116
  skipped: (step.annotations ?? []).some((a) => a.type === "skip"),
4010
- location: step.location === void 0 ? null : { file: relative2(step.location.file), line: step.location.line },
4011
- steps: toNodes(step.steps, relative2)
4117
+ location: step.location === void 0 ? null : { file: relative3(step.location.file), line: step.location.line },
4118
+ steps: toNodes(step.steps, relative3)
4012
4119
  }));
4013
4120
  }
4014
4121
  function testTitles(test) {
@@ -4042,11 +4149,11 @@ var StepRecorder = class {
4042
4149
  * Adds the step samples of one result, before endResult (08-REQ-40). Results of projects that
4043
4150
  * are not measured are counted as outside samples by the aggregator (06-REQ-19).
4044
4151
  */
4045
- record(aggregator, test, steps, meta, relative2) {
4152
+ record(aggregator, test, steps, meta, relative3) {
4046
4153
  if (!this.enabled || steps === void 0 || steps.length === 0) return;
4047
4154
  const testPrefix = this.cfg.measure.steps.groupBy === "test" ? stepTestPrefix(meta.file, testTitles(test), this.sanitize) : "";
4048
4155
  const { samples, redactions } = collectWith(
4049
- toNodes(steps, relative2),
4156
+ toNodes(steps, relative3),
4050
4157
  {
4051
4158
  ...this.cfg.measure.steps,
4052
4159
  idPatterns: this.cfg.keys.idPatterns,
@@ -4060,12 +4167,15 @@ var StepRecorder = class {
4060
4167
  aggregator.addStep({ ...sample, test: meta, ordinal });
4061
4168
  });
4062
4169
  }
4170
+ /** The informational line of a run without step samples (06-REQ-29), or null. */
4171
+ noStepsLine(stepKeys) {
4172
+ return this.enabled && stepKeys.length === 0 ? `${NO_STEPS_LINE}
4173
+ ` : null;
4174
+ }
4063
4175
  /** STEPS_* warnings of the run (06, chapter 8), after aggregation. */
4064
4176
  issues(stepKeys) {
4065
4177
  if (!this.enabled) return [];
4066
- const issues = [];
4067
- if (stepKeys.length === 0) issues.push(noStepsIssue());
4068
- issues.push(...detectStepKeyExplosion(stepKeys));
4178
+ const issues = [...detectStepKeyExplosion(stepKeys)];
4069
4179
  const secret = secretRedactedIssue(this.redactions);
4070
4180
  if (secret !== null) issues.push(secret);
4071
4181
  return issues;
@@ -4223,7 +4333,7 @@ function entrySelfConsistent(entry, aggregate2, kind2, cfg) {
4223
4333
  var MS_LIMITS = /* @__PURE__ */ new Set(["t", "median", "percentile", "p99"]);
4224
4334
  var TIME_LIMITS = ["median", "percentile", "p99"];
4225
4335
  function isComplete(entry) {
4226
- return chunkBAOTUUTV_cjs.LIMIT_NAMES.every((name) => entry[name] !== void 0);
4336
+ return chunkIUI4AFE5_cjs.LIMIT_NAMES.every((name) => entry[name] !== void 0);
4227
4337
  }
4228
4338
  function limitsOf(entry) {
4229
4339
  return {
@@ -4240,7 +4350,7 @@ function atMost(a, b) {
4240
4350
  return Math.round(a * 1e6) <= Math.round(b * 1e6);
4241
4351
  }
4242
4352
  function withinHysteresis(before, after, hysteresis) {
4243
- return chunkBAOTUUTV_cjs.LIMIT_NAMES.every((name) => {
4353
+ return chunkIUI4AFE5_cjs.LIMIT_NAMES.every((name) => {
4244
4354
  const a = before[name];
4245
4355
  const b = after[name];
4246
4356
  if (a === null || b === null) return a === b;
@@ -4299,11 +4409,11 @@ function refusal(report, cfg, existing) {
4299
4409
  {
4300
4410
  code: "THRESHOLDS_SOURCE_INCOMPLETE",
4301
4411
  message: `The source report is incomplete or untrustworthy (${incomplete.join("; ")}); no thresholds file was written.`,
4302
- hint: `Fix the cause and derive again with \`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds\`: thresholds are derived from complete runs only.`
4412
+ hint: `Fix the cause and derive again with \`${chunkIUI4AFE5_cjs.THRESHOLDS_COMMAND}\`: thresholds are derived from complete runs only.`
4303
4413
  }
4304
4414
  ];
4305
4415
  }
4306
- if (chunkBAOTUUTV_cjs.KINDS.every((kind2) => Object.keys(aggregatesOf(report, kind2)).length === 0)) {
4416
+ if (chunkIUI4AFE5_cjs.KINDS.every((kind2) => Object.keys(aggregatesOf(report, kind2)).length === 0)) {
4307
4417
  return [
4308
4418
  {
4309
4419
  code: "THRESHOLDS_EMPTY_REPORT",
@@ -4312,7 +4422,7 @@ function refusal(report, cfg, existing) {
4312
4422
  }
4313
4423
  ];
4314
4424
  }
4315
- const derivable = chunkBAOTUUTV_cjs.KINDS.some(
4425
+ const derivable = chunkIUI4AFE5_cjs.KINDS.some(
4316
4426
  (kind2) => Object.values(aggregatesOf(report, kind2)).some((stats2) => isDerivable(stats2, cfg.checks))
4317
4427
  );
4318
4428
  if (!derivable) {
@@ -4324,7 +4434,7 @@ function refusal(report, cfg, existing) {
4324
4434
  }
4325
4435
  ];
4326
4436
  }
4327
- const invalid = chunkBAOTUUTV_cjs.KINDS.flatMap((kind2) => {
4437
+ const invalid = chunkIUI4AFE5_cjs.KINDS.flatMap((kind2) => {
4328
4438
  const file = existing[kind2];
4329
4439
  return file.status === "invalid" ? file.issues.map(schemaIssueToIssue) : [];
4330
4440
  });
@@ -4337,7 +4447,7 @@ function generatedBlock(report, cfg, kind2, opts) {
4337
4447
  0
4338
4448
  );
4339
4449
  return {
4340
- tool: { name: chunkBAOTUUTV_cjs.PACKAGE_NAME, version: opts.toolVersion },
4450
+ tool: { name: chunkIUI4AFE5_cjs.PACKAGE_NAME, version: opts.toolVersion },
4341
4451
  env: opts.env,
4342
4452
  sourceRunId: report.runId,
4343
4453
  sourceRunStartedAt: report.startedAt,
@@ -4400,12 +4510,12 @@ function deriveKind(report, cfg, file, opts) {
4400
4510
  const hints = [];
4401
4511
  if (timing) {
4402
4512
  hints.push(
4403
- `Deriving on another machine, browser or Playwright version shifts all limits at once: derive on the CI infrastructure that evaluates the runs (\`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds --from\` with the report from CI).`
4513
+ `Deriving on another machine, browser or Playwright version shifts all limits at once: derive on the CI infrastructure that evaluates the runs (a thresholds run in CI, then commit the thresholds files it wrote).`
4404
4514
  );
4405
4515
  }
4406
4516
  if (keysDiffer) {
4407
4517
  hints.push(
4408
- `Another normalization changes the keys: entries of old keys are kept as unseen until removed with \`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds --prune\`.`
4518
+ `Another normalization changes the keys: entries of old keys are kept as unseen until removed with \`${chunkIUI4AFE5_cjs.PRUNE_COMMAND}\`.`
4409
4519
  );
4410
4520
  }
4411
4521
  warnings.push({
@@ -4464,7 +4574,7 @@ function deriveKind(report, cfg, file, opts) {
4464
4574
  };
4465
4575
  }
4466
4576
  function deriveThresholds(report, cfg, existing, opts) {
4467
- for (const kind2 of chunkBAOTUUTV_cjs.KINDS) {
4577
+ for (const kind2 of chunkIUI4AFE5_cjs.KINDS) {
4468
4578
  const found = existing[kind2].kind;
4469
4579
  if (found !== kind2) {
4470
4580
  throw new Error(`deriveThresholds: existing.${kind2} has kind "${found}"`);
@@ -4478,7 +4588,7 @@ function deriveThresholds(report, cfg, existing, opts) {
4478
4588
  warnings.push({
4479
4589
  code: "THRESHOLDS_ENV_MISMATCH",
4480
4590
  message: `The source report was recorded for environment ${show(report.env)}, but the thresholds are written for environment ${show(opts.env)}.`,
4481
- hint: "Check the --env flag and run.env: the files are written for the current environment label."
4591
+ hint: "Check PW_PERF_ENV and run.env: the files are written for the current environment label."
4482
4592
  });
4483
4593
  }
4484
4594
  if (report.tests.unexpected > 0) {
@@ -4492,15 +4602,15 @@ function deriveThresholds(report, cfg, existing, opts) {
4492
4602
  warnings.push({
4493
4603
  code: "THRESHOLDS_SOURCE_TEST_MODE",
4494
4604
  message: "The source report comes from test mode, which runs fewer repetitions than a thresholds run.",
4495
- hint: `Prefer a report of \`${chunkBAOTUUTV_cjs.CLI_COMMAND} thresholds\` as the source.`
4605
+ hint: `Prefer a report of a thresholds run (\`${chunkIUI4AFE5_cjs.THRESHOLDS_COMMAND}\`) as the source.`
4496
4606
  });
4497
4607
  }
4498
4608
  const files = [];
4499
4609
  let much = 0;
4500
- for (const kind2 of chunkBAOTUUTV_cjs.KINDS) {
4610
+ for (const kind2 of chunkIUI4AFE5_cjs.KINDS) {
4501
4611
  const file = existing[kind2];
4502
4612
  if (file.status === "invalid") throw new Error("deriveThresholds: unreachable invalid file");
4503
- if (kind2 !== "api" && file.status === "missing") {
4613
+ if ((kind2 !== "api" || !cfg.measure.api) && file.status === "missing") {
4504
4614
  if (Object.keys(aggregatesOf(report, kind2)).length === 0) continue;
4505
4615
  }
4506
4616
  const result2 = deriveKind(report, cfg, file, opts);
@@ -4524,7 +4634,7 @@ function limitChanges(before, after, loosenWarnRelative) {
4524
4634
  const a = limitsOf(before);
4525
4635
  const b = limitsOf(after);
4526
4636
  const changes = [];
4527
- for (const limit of chunkBAOTUUTV_cjs.LIMIT_NAMES) {
4637
+ for (const limit of chunkIUI4AFE5_cjs.LIMIT_NAMES) {
4528
4638
  const direction = changeDirection(limit, a[limit], b[limit]);
4529
4639
  if (direction === null) continue;
4530
4640
  const change = { limit, before: a[limit], after: b[limit], direction };
@@ -4533,6 +4643,20 @@ function limitChanges(before, after, loosenWarnRelative) {
4533
4643
  }
4534
4644
  return changes;
4535
4645
  }
4646
+ function skipped(key2, stats2, cfg) {
4647
+ if (stats2 === void 0) return { key: key2, category: "skipped", changes: [] };
4648
+ return {
4649
+ key: key2,
4650
+ category: "skipped",
4651
+ changes: [],
4652
+ samples: {
4653
+ success: stats2.successCount,
4654
+ count: stats2.count,
4655
+ needed: minDeriveSamples(cfg.checks),
4656
+ statuses: { ...stats2.statuses }
4657
+ }
4658
+ };
4659
+ }
4536
4660
  function keptKey(key2, before, after, stats2, kind2, cfg) {
4537
4661
  if (stats2 === void 0) return { key: key2, category: "unseen", changes: [] };
4538
4662
  if (before.locked === true || !isComplete(before)) {
@@ -4543,7 +4667,7 @@ function keptKey(key2, before, after, stats2, kind2, cfg) {
4543
4667
  ...isComplete(before) ? {} : { incomplete: true }
4544
4668
  };
4545
4669
  }
4546
- if (!isDerivable(stats2, cfg.checks)) return { key: key2, category: "skipped", changes: [] };
4670
+ if (!isDerivable(stats2, cfg.checks)) return skipped(key2, stats2, cfg);
4547
4671
  const changes = limitChanges(before, after, cfg.thresholds.loosenWarnRelative);
4548
4672
  if (changes.length > 0) {
4549
4673
  const looser = changes.some((c) => c.direction === "looser");
@@ -4553,7 +4677,7 @@ function keptKey(key2, before, after, stats2, kind2, cfg) {
4553
4677
  }
4554
4678
  const fresh = cfg.thresholds.update === "all" ? deriveEntry(stats2, kind2, cfg) : null;
4555
4679
  const old = limitsOf(before);
4556
- const kept = fresh !== null && chunkBAOTUUTV_cjs.LIMIT_NAMES.some((name) => fresh[name] !== old[name]);
4680
+ const kept = fresh !== null && chunkIUI4AFE5_cjs.LIMIT_NAMES.some((name) => fresh[name] !== old[name]);
4557
4681
  return { key: key2, category: "unchanged", changes: [], ...kept ? { withinHysteresis: true } : {} };
4558
4682
  }
4559
4683
  function diffThresholds(before, after, report, cfg) {
@@ -4579,14 +4703,14 @@ function diffThresholds(before, after, report, cfg) {
4579
4703
  } else if (b !== void 0) {
4580
4704
  diff = { key: key2, category: "removed", changes: [], limits: limitsOf(b) };
4581
4705
  } else {
4582
- diff = { key: key2, category: "skipped", changes: [] };
4706
+ diff = skipped(key2, stats2, cfg);
4583
4707
  }
4584
4708
  const entry = a ?? b;
4585
4709
  const muting = entry === void 0 ? null : keyMuting(entry, runDay);
4586
4710
  if (muting !== null) diff.muted = { until: muting.until, expired: muting.expired };
4587
4711
  diffs.push(diff);
4588
4712
  }
4589
- const counts = Object.fromEntries(chunkBAOTUUTV_cjs.DIFF_CATEGORIES.map((c) => [c, 0]));
4713
+ const counts = Object.fromEntries(chunkIUI4AFE5_cjs.DIFF_CATEGORIES.map((c) => [c, 0]));
4590
4714
  for (const diff of diffs) counts[diff.category] += 1;
4591
4715
  return {
4592
4716
  kind: kind2,
@@ -4612,15 +4736,23 @@ function formatThresholdsDiffMarkdown(diffs, paths) {
4612
4736
  "",
4613
4737
  `## ${cell(path)} (${diff.fileStatus === "not-written" ? "not written" : diff.fileStatus})`,
4614
4738
  "",
4615
- chunkBAOTUUTV_cjs.diffCountsText(diff)
4739
+ chunkIUI4AFE5_cjs.diffCountsText(diff)
4616
4740
  );
4617
- const listed = diff.keys.filter((k) => chunkBAOTUUTV_cjs.LISTED_CATEGORIES.has(k.category));
4741
+ const listed = diff.keys.filter((k) => chunkIUI4AFE5_cjs.LISTED_CATEGORIES.has(k.category));
4618
4742
  if (listed.length > 0) {
4619
4743
  lines.push("", "| | Key | Before | After |", "|---|---|---|---|");
4620
4744
  for (const k of listed) {
4621
- const before = chunkBAOTUUTV_cjs.diffValuesText(k, "before", diff.level, " \xB7 ");
4622
- const after = chunkBAOTUUTV_cjs.diffValuesText(k, "after", diff.level, " \xB7 ");
4623
- lines.push(`| ${chunkBAOTUUTV_cjs.diffMarker(k)} | ${code(k.key)} | ${cell(before)} | ${cell(after)} |`);
4745
+ const before = chunkIUI4AFE5_cjs.diffValuesText(k, "before", diff.level, " \xB7 ");
4746
+ const after = chunkIUI4AFE5_cjs.diffValuesText(k, "after", diff.level, " \xB7 ");
4747
+ lines.push(`| ${chunkIUI4AFE5_cjs.diffMarker(k)} | ${code(k.key)} | ${cell(before)} | ${cell(after)} |`);
4748
+ }
4749
+ }
4750
+ const skipped2 = diff.keys.filter((k) => k.category === "skipped" && k.samples !== void 0);
4751
+ if (skipped2.length > 0) {
4752
+ lines.push("", "Skipped (no entry derived):", "");
4753
+ for (const k of skipped2) {
4754
+ if (k.samples !== void 0)
4755
+ lines.push(`- ${code(k.key)}: ${chunkIUI4AFE5_cjs.skippedReasonText(k.samples)}`);
4624
4756
  }
4625
4757
  }
4626
4758
  const expired = diff.keys.filter((k) => k.muted?.expired === true);
@@ -4689,7 +4821,7 @@ function performanceText(outcome) {
4689
4821
  }
4690
4822
  function outcomeLine(outcome, path) {
4691
4823
  const playwright = outcome.tests.status === "passed" && outcome.exitCode === 0 ? 0 : 1;
4692
- return `Outcome: ${performanceText(outcome)} \xB7 exit code ${String(outcome.exitCode)} in ${path} (Playwright exits with ${String(playwright)})
4824
+ return `Outcome: Playwright exit code ${String(playwright)} \xB7 details: ${performanceText(outcome)} (code ${String(outcome.exitCode)}) in ${path}
4693
4825
  `;
4694
4826
  }
4695
4827
  function nextLine(text2, color) {
@@ -4709,8 +4841,8 @@ function truncateMiddle(text2, width) {
4709
4841
  if (chars.length <= width) return text2;
4710
4842
  if (width <= 1) return "\u2026".slice(0, width);
4711
4843
  const head = Math.ceil((width - 1) / 2);
4712
- const tail = width - 1 - head;
4713
- return `${chars.slice(0, head).join("")}\u2026${tail === 0 ? "" : chars.slice(-tail).join("")}`;
4844
+ const tail2 = width - 1 - head;
4845
+ return `${chars.slice(0, head).join("")}\u2026${tail2 === 0 ? "" : chars.slice(-tail2).join("")}`;
4714
4846
  }
4715
4847
  var WIDE = [
4716
4848
  [8986, 8987],
@@ -4916,7 +5048,16 @@ function exceedance(check2) {
4916
5048
  if (check2.rule === "apdex") return check2.actual === 0 ? Infinity : check2.limit / check2.actual;
4917
5049
  return check2.limit === 0 ? Infinity : check2.actual / check2.limit;
4918
5050
  }
5051
+ var SHARE_RULES = /* @__PURE__ */ new Set([
5052
+ "apdex",
5053
+ "wilson",
5054
+ "errors"
5055
+ ]);
4919
5056
  function overText(check2) {
5057
+ if (SHARE_RULES.has(check2.rule)) {
5058
+ const points = Math.max(1, Math.round(Math.abs(check2.actual - check2.limit) * 100));
5059
+ return `+${String(points)} pp`;
5060
+ }
4920
5061
  const r2 = exceedance(check2);
4921
5062
  if (!Number.isFinite(r2)) return ">999%";
4922
5063
  const over = Math.round((r2 - 1) * 100);
@@ -4924,7 +5065,7 @@ function overText(check2) {
4924
5065
  }
4925
5066
  function violations(report) {
4926
5067
  const list2 = [];
4927
- for (const kind2 of chunkBAOTUUTV_cjs.KINDS) {
5068
+ for (const kind2 of chunkIUI4AFE5_cjs.KINDS) {
4928
5069
  const aggregates = aggregatesOf2(report, kind2);
4929
5070
  for (const [key2, aggregate2] of Object.entries(aggregates)) {
4930
5071
  for (const check2 of aggregate2.evaluation.checks) {
@@ -4935,7 +5076,7 @@ function violations(report) {
4935
5076
  }
4936
5077
  }
4937
5078
  return list2.sort(
4938
- (a, b) => Number(b.check.blocking) - Number(a.check.blocking) || (a.r === b.r ? 0 : b.r > a.r ? 1 : -1) || chunkBAOTUUTV_cjs.KINDS.indexOf(a.kind) - chunkBAOTUUTV_cjs.KINDS.indexOf(b.kind) || compareText7(a.key, b.key) || RULE_ORDER2.indexOf(a.check.rule) - RULE_ORDER2.indexOf(b.check.rule)
5079
+ (a, b) => Number(b.check.blocking) - Number(a.check.blocking) || (a.r === b.r ? 0 : b.r > a.r ? 1 : -1) || chunkIUI4AFE5_cjs.KINDS.indexOf(a.kind) - chunkIUI4AFE5_cjs.KINDS.indexOf(b.kind) || compareText7(a.key, b.key) || RULE_ORDER2.indexOf(a.check.rule) - RULE_ORDER2.indexOf(b.check.rule)
4939
5080
  );
4940
5081
  }
4941
5082
  function isMuted(evaluation) {
@@ -4995,7 +5136,7 @@ function issueBox(level, issues, limit, opts) {
4995
5136
  }
4996
5137
  function counterLines(report, opts) {
4997
5138
  const counts = report.evaluation.counts;
4998
- const shown = chunkBAOTUUTV_cjs.KINDS.filter(
5139
+ const shown = chunkIUI4AFE5_cjs.KINDS.filter(
4999
5140
  (kind2) => ALWAYS_SHOWN.has(kind2) || counts[kind2].keys > 0 || counts[kind2].unseenThresholdEntries > 0
5000
5141
  );
5001
5142
  const percentileOff = report.config.checks?.time?.percentile?.enabled === false;
@@ -5019,7 +5160,7 @@ function counterLines(report, opts) {
5019
5160
  function mutedLines(report, paint2) {
5020
5161
  const lines = [];
5021
5162
  const indent = " ".repeat("Muted: ".length);
5022
- for (const kind2 of chunkBAOTUUTV_cjs.KINDS) {
5163
+ for (const kind2 of chunkIUI4AFE5_cjs.KINDS) {
5023
5164
  const aggregates = aggregatesOf2(report, kind2);
5024
5165
  for (const key2 of Object.keys(aggregates).sort(compareText7)) {
5025
5166
  const muted = aggregates[key2]?.evaluation.muted;
@@ -5115,7 +5256,14 @@ function errorCauses(report) {
5115
5256
  }
5116
5257
  function resultLines(report, opts, m) {
5117
5258
  const counts = report.evaluation.counts;
5118
- const sum3 = (field3) => chunkBAOTUUTV_cjs.KINDS.reduce((total, kind2) => total + counts[kind2][field3], 0);
5259
+ const sum3 = (field3) => chunkIUI4AFE5_cjs.KINDS.reduce((total, kind2) => total + counts[kind2][field3], 0);
5260
+ const failed = (blocking) => chunkIUI4AFE5_cjs.KINDS.reduce(
5261
+ (total, kind2) => total + Object.values(aggregatesOf2(report, kind2)).reduce(
5262
+ (n, a) => n + a.evaluation.checks.filter((c) => !c.passed && (!blocking || c.blocking)).length,
5263
+ 0
5264
+ ),
5265
+ 0
5266
+ );
5119
5267
  const gate = report.config.gate;
5120
5268
  const policy = gate?.tolerance === void 0 ? "" : ` (tolerance: ${gate.tolerance})`;
5121
5269
  let verdict;
@@ -5127,10 +5275,10 @@ function resultLines(report, opts, m) {
5127
5275
  reason = `${causes.length === 0 ? "" : `${causes.join(", ")}; `}the performance result is not trustworthy`;
5128
5276
  } else if (status === "failed") {
5129
5277
  verdict = [m.error, "FAILED", "red", "badge-red"];
5130
- reason = `${plural2(sum3("blockingViolations"), "blocking violation")}${policy}`;
5278
+ reason = `${plural2(failed(true), "blocking violation")} in ${plural2(sum3("blockingViolations"), "key")}${policy}`;
5131
5279
  } else if (status === "warned") {
5132
5280
  verdict = [m.warn, "PASSED WITH WARNINGS", "yellow", "badge-yellow"];
5133
- reason = `${plural2(sum3("violations"), "key")} with violations, none blocking${policy}`;
5281
+ reason = `${plural2(failed(false), "violation")} in ${plural2(sum3("violations"), "key")}, none blocking${policy}`;
5134
5282
  } else {
5135
5283
  verdict = [m.ok, "PASSED", "green", "badge-green"];
5136
5284
  reason = `no violations in ${plural2(sum3("keys") - sum3("notEvaluated"), "evaluated key")}`;
@@ -5215,7 +5363,7 @@ function formatCheckSummary(s, opts) {
5215
5363
  const failed = s.failed > 0 ? `, ${String(s.failed)} failed` : "";
5216
5364
  lines.push(
5217
5365
  paint2(
5218
- `${s.packageName} \xB7 check \xB7 ${String(s.ran)} of ${String(s.selected)} tests run (${String(s.passed)} passed${failed}) \xB7 ${String(s.skippedByCheck)} skipped by check`,
5366
+ `${s.packageName} \xB7 check \xB7 ${String(s.ran)} of ${plural2(s.selected, "test")} run (${String(s.passed)} passed${failed}) \xB7 ${String(s.skippedByCheck)} skipped by check`,
5219
5367
  "bold"
5220
5368
  ),
5221
5369
  ""
@@ -5223,24 +5371,21 @@ function formatCheckSummary(s, opts) {
5223
5371
  lines.push(paint2("Projects:", "bold"));
5224
5372
  for (const p of s.projects) {
5225
5373
  if (p.role === "measured") {
5226
- const browser = p.browserName === null ? "" : ` (${p.browserName})`;
5374
+ const browser = p.requestOnly === true ? " (no browser)" : p.browserName === null ? "" : ` (${p.browserName})`;
5227
5375
  lines.push(
5228
- ` measured ${p.name}${browser} \xB7 baseURL ${p.baseURL ?? "(not set)"} \xB7 ${String(p.requests)} requests in ${String(p.tests)} tests`
5376
+ ` measured ${p.name}${browser} \xB7 baseURL ${p.baseURL ?? "(not set)"} \xB7 ${plural2(p.requests, "request")} in ${plural2(p.tests, "test")}`
5229
5377
  );
5230
5378
  } else {
5231
5379
  lines.push(` dependency ${p.name} \xB7 runs once, not measured`);
5232
5380
  }
5233
5381
  }
5234
- if (s.removedProjects.length > 0) {
5235
- lines.push(` not run ${s.removedProjects.join(", ")} (not in run.projects)`);
5236
- }
5237
5382
  const reporterParts = [
5238
5383
  `kept ${s.reporters.kept.length === 0 ? "none" : s.reporters.kept.join(", ")}${s.reporters.replaced.length > 0 ? ` (${s.reporters.replaced.join(", ")} replaced)` : ""}`,
5239
5384
  ...s.reporters.removed.length > 0 ? [`removed ${s.reporters.removed.join(", ")}`] : []
5240
5385
  ];
5241
5386
  lines.push(`${paint2("Reporters:", "bold")} ${reporterParts.join(" \xB7 ")}`);
5242
5387
  lines.push(
5243
- `${paint2("Requests:", "bold")} ${String(s.requests)} requests \xB7 ${String(s.apiKeys)} api keys \xB7 ${String(s.stepKeys)} step keys \xB7 ${String(s.origins.length)} ${s.origins.length === 1 ? "origin" : "origins"}`
5388
+ `${paint2("Requests:", "bold")} ${plural2(s.requests, "request")} \xB7 ${plural2(s.apiKeys, "api key")} \xB7 ${plural2(s.stepKeys, "step key")} \xB7 ${plural2(s.origins.length, "origin")}`
5244
5389
  );
5245
5390
  const labelWidth = Math.max(6, ...s.origins.map((o) => o.label === "" ? 6 : o.label.length));
5246
5391
  const originWidth = Math.max(...s.origins.map((o) => o.origin.length), 0);
@@ -5254,7 +5399,7 @@ function formatCheckSummary(s, opts) {
5254
5399
  const keyWidth = Math.max(30, opts.width - 40);
5255
5400
  s.topKeys.forEach((k, i) => {
5256
5401
  lines.push(
5257
- ` ${String(i + 1).padStart(2)}. ${padEnd(k.kind, 4)} ${padEnd(truncateMiddle(k.key, keyWidth), Math.min(keyWidth, 50))} ${String(k.samples)} samples \xB7 ${String(k.tests)} tests`
5402
+ ` ${String(i + 1).padStart(2)}. ${padEnd(k.kind, 4)} ${padEnd(truncateMiddle(k.key, keyWidth), Math.min(keyWidth, 50))} ${plural2(k.samples, "sample")} \xB7 ${plural2(k.tests, "test")}`
5258
5403
  );
5259
5404
  });
5260
5405
  }
@@ -5319,6 +5464,7 @@ function formatStartBanner(input, opts) {
5319
5464
  // src/console/thresholds-diff.ts
5320
5465
  var MAX_DIFF_ROWS = 30;
5321
5466
  var MIN_KEY_WIDTH2 = 30;
5467
+ var MAX_SKIPPED_ROWS = 5;
5322
5468
  var MARKER_STYLE = {
5323
5469
  "+": "green",
5324
5470
  "-": "red",
@@ -5328,33 +5474,55 @@ var MARKER_STYLE = {
5328
5474
  };
5329
5475
  function fileLines(diff, path, opts, paint2) {
5330
5476
  const lines = [`Thresholds: ${path} (${fileStatusText(diff)})`];
5331
- const listed = diff.keys.filter((k) => chunkBAOTUUTV_cjs.LISTED_CATEGORIES.has(k.category));
5477
+ const listed = diff.keys.filter((k) => chunkIUI4AFE5_cjs.LISTED_CATEGORIES.has(k.category));
5332
5478
  const expired = diff.keys.filter((k) => k.muted?.expired === true);
5333
- if (diff.fileStatus !== "unchanged") lines.push(` ${chunkBAOTUUTV_cjs.diffCountsText(diff)}`);
5334
- if (listed.length > 0) {
5335
- const shown = listed.slice(0, MAX_DIFF_ROWS);
5336
- const rows = shown.map((k) => ({
5337
- marker: chunkBAOTUUTV_cjs.diffMarker(k),
5338
- key: k.key,
5339
- change: chunkBAOTUUTV_cjs.diffChangeText(k, diff.level, " ") + mutedSuffix(k)
5340
- }));
5341
- const markerWidth = Math.max(...rows.map((r2) => textWidth(r2.marker)));
5342
- const changeWidth = Math.max(...rows.map((r2) => textWidth(r2.change)));
5343
- const longest = Math.max(...rows.map((r2) => textWidth(r2.key)));
5479
+ if (diff.fileStatus !== "unchanged") lines.push(` ${chunkIUI4AFE5_cjs.diffCountsText(diff)}`);
5480
+ const shown = listed.slice(0, MAX_DIFF_ROWS);
5481
+ const rows = shown.map((k) => ({
5482
+ marker: chunkIUI4AFE5_cjs.diffMarker(k),
5483
+ key: k.key,
5484
+ change: chunkIUI4AFE5_cjs.diffChangeText(k, diff.level, " ") + mutedSuffix(k)
5485
+ }));
5486
+ const skipped2 = diff.keys.filter((k) => k.category === "skipped" && k.samples !== void 0);
5487
+ const skippedRows = skipped2.slice(0, MAX_SKIPPED_ROWS).map((k) => ({
5488
+ marker: ".",
5489
+ key: k.key,
5490
+ change: k.samples === void 0 ? "" : chunkIUI4AFE5_cjs.skippedReasonText(k.samples)
5491
+ }));
5492
+ const all = [...rows, ...skippedRows];
5493
+ if (all.length > 0) {
5494
+ const markerWidth = Math.max(...all.map((r2) => textWidth(r2.marker)));
5495
+ const changeWidth = Math.max(...all.map((r2) => textWidth(r2.change)));
5496
+ const longest = Math.max(...all.map((r2) => textWidth(r2.key)));
5344
5497
  const rest = opts.width - 2 - markerWidth - 1 - 2 - changeWidth;
5345
5498
  const keyWidth = Math.max(MIN_KEY_WIDTH2, Math.min(longest, rest));
5346
- lines.push("");
5347
- for (const r2 of rows) {
5348
- const head = r2.marker.slice(0, 1);
5349
- const style = MARKER_STYLE[head] ?? "yellow";
5350
- const marker = paint2(head, style) + (r2.marker.length > 1 ? paint2(r2.marker.slice(1), "red") : "");
5499
+ const line = (r2, marker) => {
5351
5500
  const pad2 = " ".repeat(markerWidth - textWidth(r2.marker));
5352
- lines.push(
5353
- ` ${marker}${pad2} ${padEnd(truncateMiddle(r2.key, keyWidth), keyWidth)} ${r2.change}`.trimEnd()
5354
- );
5501
+ return ` ${marker}${pad2} ${padEnd(truncateMiddle(r2.key, keyWidth), keyWidth)} ${r2.change}`.trimEnd();
5502
+ };
5503
+ if (rows.length > 0) {
5504
+ lines.push("");
5505
+ for (const r2 of rows) {
5506
+ const head = r2.marker.slice(0, 1);
5507
+ const style = MARKER_STYLE[head] ?? "yellow";
5508
+ lines.push(
5509
+ line(
5510
+ r2,
5511
+ paint2(head, style) + (r2.marker.length > 1 ? paint2(r2.marker.slice(1), "red") : "")
5512
+ )
5513
+ );
5514
+ }
5515
+ if (listed.length > shown.length) {
5516
+ lines.push(` \u2026 and ${listed.length - shown.length} more`);
5517
+ }
5355
5518
  }
5356
- if (listed.length > shown.length) {
5357
- lines.push(` \u2026 and ${listed.length - shown.length} more`);
5519
+ if (skippedRows.length > 0) {
5520
+ lines.push("");
5521
+ for (const r2 of skippedRows) lines.push(line(r2, r2.marker));
5522
+ if (skipped2.length > skippedRows.length) {
5523
+ const more = ` \u2026 and ${String(skipped2.length - skippedRows.length)} more skipped`;
5524
+ lines.push(opts.diffPath === null ? more : `${more} (see thresholds-diff.md)`);
5525
+ }
5358
5526
  }
5359
5527
  }
5360
5528
  if (expired.length > 0) {
@@ -5369,7 +5537,7 @@ function fileLines(diff, path, opts, paint2) {
5369
5537
  const verb = unseen === 1 ? "was" : "were";
5370
5538
  lines.push(
5371
5539
  "",
5372
- opts.prune ? ` ${entries2} not seen in this run ${verb} kept because ${unseen === 1 ? "it is" : "they are"} locked.` : ` ${entries2} ${verb} not seen in this run and ${verb} kept. Use --prune to remove them.`
5540
+ opts.prune ? ` ${entries2} not seen in this run ${verb} kept because ${unseen === 1 ? "it is" : "they are"} locked.` : opts.subset === true ? ` ${entries2} ${verb} not seen in this run (it selects a subset of the tests) and ${verb} kept.` : ` ${entries2} ${verb} not seen in this run and ${verb} kept. Run with PW_PERF_PRUNE=1 to remove them.`
5373
5541
  );
5374
5542
  }
5375
5543
  return lines;
@@ -5389,7 +5557,7 @@ function formatThresholdsDiff(diffs, opts) {
5389
5557
  const written = diffs.some((d) => d.fileStatus === "created" || d.fileStatus === "updated");
5390
5558
  lines.push("");
5391
5559
  lines.push(
5392
- written ? "Review the changes and commit the thresholds files." : "The thresholds files are up to date."
5560
+ opts.temporary === true ? "These thresholds are temporary (the setup check deletes them); there is nothing to commit." : written ? "Review the changes and commit the thresholds files." : "The thresholds files are up to date."
5393
5561
  );
5394
5562
  if (opts.diffPath !== null) lines.push(`Diff: ${opts.diffPath}`);
5395
5563
  return `${lines.join("\n")}
@@ -5425,11 +5593,11 @@ function stable(value, indent, depth) {
5425
5593
  ${inner}`;
5426
5594
  const close = indent === null ? "" : `
5427
5595
  ${depth}`;
5428
- const sep = indent === null ? "," : `,
5596
+ const sep2 = indent === null ? "," : `,
5429
5597
  ${inner}`;
5430
5598
  if (Array.isArray(value)) {
5431
5599
  if (value.length === 0) return "[]";
5432
- return `[${open}${value.map((v) => stable(v, indent, inner)).join(sep)}${close}]`;
5600
+ return `[${open}${value.map((v) => stable(v, indent, inner)).join(sep2)}${close}]`;
5433
5601
  }
5434
5602
  const record2 = value;
5435
5603
  const keys = Object.keys(record2).filter((k) => record2[k] !== void 0).sort();
@@ -5438,7 +5606,7 @@ ${inner}`;
5438
5606
  const entries2 = keys.map(
5439
5607
  (k) => `${JSON.stringify(k)}${colon}${stable(record2[k], indent, inner)}`
5440
5608
  );
5441
- return `{${open}${entries2.join(sep)}${close}}`;
5609
+ return `{${open}${entries2.join(sep2)}${close}}`;
5442
5610
  }
5443
5611
  function stableJson(value, indent = null) {
5444
5612
  return stable(value, indent, "");
@@ -5531,7 +5699,8 @@ function usagePercent(usage) {
5531
5699
  function overPercent(usage) {
5532
5700
  return Math.max(1, Math.ceil((basisPoints(usage) - 1e4) / 100));
5533
5701
  }
5534
- function usageText(usage, failed, long = false) {
5702
+ function usageText(usage, failed, long = false, points) {
5703
+ if (failed && points !== void 0) return `+${String(points)} pp over`;
5535
5704
  if (usage === null) return "over (limit 0)";
5536
5705
  const suffix = long ? " of limit" : "";
5537
5706
  if (basisPoints(usage) >= 1e5) return `>999%${suffix}`;
@@ -5542,14 +5711,19 @@ function usageText(usage, failed, long = false) {
5542
5711
  // src/html/keyview.ts
5543
5712
  var METHODS = /* @__PURE__ */ new Set(["GET", "POST", "PUT", "PATCH", "DELETE"]);
5544
5713
  var STEP_SEPARATOR2 = " \u203A ";
5714
+ function endpointSource(key2) {
5715
+ return chunkIUI4AFE5_cjs.isRequestKey(key2) ? "request" : "browser";
5716
+ }
5545
5717
  function splitEndpoint(key2) {
5546
- const space = key2.indexOf(" ");
5547
- if (space <= 0) return { method: "", origin: "", path: key2 };
5548
- const method = key2.slice(0, space);
5549
- const rest = key2.slice(space + 1);
5718
+ const request = chunkIUI4AFE5_cjs.isRequestKey(key2);
5719
+ const text2 = request ? key2.slice(chunkIUI4AFE5_cjs.REQUEST_KEY_PREFIX.length) : key2;
5720
+ const space = text2.indexOf(" ");
5721
+ if (space <= 0) return { method: "", origin: "", path: text2, request };
5722
+ const method = text2.slice(0, space);
5723
+ const rest = text2.slice(space + 1);
5550
5724
  const slash = rest.indexOf("/");
5551
- if (slash <= 0) return { method, origin: "", path: rest };
5552
- return { method, origin: rest.slice(0, slash), path: rest.slice(slash) };
5725
+ if (slash <= 0) return { method, origin: "", path: rest, request };
5726
+ return { method, origin: rest.slice(0, slash), path: rest.slice(slash), request };
5553
5727
  }
5554
5728
  function pathView(path) {
5555
5729
  const parts = path.split(/(?<=\/)(:[A-Za-z][\w-]*)/u);
@@ -5558,20 +5732,20 @@ function pathView(path) {
5558
5732
  function methodBadge(method) {
5559
5733
  return METHODS.has(method) ? html`<b class="m ${method}">${method}</b>` : html`<b class="m">${method}</b>`;
5560
5734
  }
5561
- function endpointView(key2, max) {
5562
- const { method, origin, path } = splitEndpoint(key2);
5563
- const room = Math.max(8, max - method.length - 1 - origin.length);
5735
+ function endpointView(key2, max, full) {
5736
+ const { method, origin, path, request } = splitEndpoint(key2);
5737
+ const room = Math.max(8, max - method.length - 1 - origin.length - (request ? 8 : 0));
5564
5738
  const short = truncateMiddle2(path, room);
5565
- return html`${method === "" ? null : html`${methodBadge(method)} `}<span class="key"${short === path ? null : html` title="${key2}"`}>${origin === "" ? null : html`<span class="o">${origin}</span>`}${pathView(short)}</span>`;
5739
+ return html`${request ? html`<span class="rq">request</span> ` : null}${method === "" ? null : html`${methodBadge(method)} `}<span class="key"${short === path && !full ? null : html` title="${key2}"`}>${origin === "" ? null : html`<span class="o">${origin}</span>`}${pathView(short)}</span>`;
5566
5740
  }
5567
- function stepView(key2, max) {
5741
+ function stepView(key2, max, full) {
5568
5742
  const short = truncateMiddle2(key2, max);
5569
5743
  const titles = short.split(STEP_SEPARATOR2);
5570
5744
  const last = titles.pop() ?? "";
5571
- return html`<span class="key st"${short === key2 ? null : html` title="${key2}"`}>${titles.map((t) => html`<s>${t}${STEP_SEPARATOR2}</s>`)}<b>${last}</b></span>`;
5745
+ return html`<span class="key st"${short === key2 && !full ? null : html` title="${key2}"`}>${titles.map((t) => html`<s>${t}${STEP_SEPARATOR2}</s>`)}<b>${last}</b></span>`;
5572
5746
  }
5573
- function keyView(kind2, key2, max) {
5574
- return kind2 === "step" ? stepView(key2, max) : endpointView(key2, max);
5747
+ function keyView(kind2, key2, max, full = false) {
5748
+ return kind2 === "step" ? stepView(key2, max, full) : endpointView(key2, max, full);
5575
5749
  }
5576
5750
  function stepDepth(key2) {
5577
5751
  const depth = Math.min(3, key2.split(STEP_SEPARATOR2).length);
@@ -5655,17 +5829,17 @@ function keyAnchor(ctx, kind2, key2) {
5655
5829
  return n === void 0 ? null : `key-${kind2}-${String(n)}`;
5656
5830
  }
5657
5831
  var KEY_COLUMN_MAX = 80;
5658
- function keyLink(ctx, kind2, key2, max = KEY_COLUMN_MAX) {
5832
+ function keyLink(ctx, kind2, key2, max = KEY_COLUMN_MAX, full = false) {
5659
5833
  const anchor = keyAnchor(ctx, kind2, key2);
5660
- const view = keyView(kind2, key2, max);
5834
+ const view = keyView(kind2, key2, max, full);
5661
5835
  return anchor === null ? html`<span class="kl">${view}</span>` : html`<a class="kl" href="#${anchor}">${view}</a>`;
5662
5836
  }
5663
5837
 
5664
5838
  // src/html/generated/assets.ts
5665
- var STYLES = ':root{--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;--bg: #f6f7f9;--surface: #ffffff;--sunken: #f1f3f6;--hover: #f7f8fb;--line: #e4e7ec;--line-2: #d0d5dd;--fg: #101828;--fg-2: #475467;--fg-3: #5d6979;--accent: #4f46e5;--accent-2: #4338ca;--accent-soft: #eef0ff;--ok: #067647;--ok-soft: #e6f6ee;--ok-mark: #079455;--warn: #a14c05;--warn-soft: #fef4e4;--warn-mark: #d06306;--bad: #b42318;--bad-soft: #fef3f2;--bad-mark: #d92d20;--bad-solid: #b42318;--mute: #5d6979;--mute-soft: #eef0f3;--mute-mark: #7a8494;--get: #175cd3;--get-bg: #e9f1fe;--post: #067647;--post-bg: #e6f6ee;--put: #a14c05;--put-bg: #fef4e4;--patch: #6938ef;--patch-bg: #f1edfe;--del: #b42318;--del-bg: #fef3f2;--bar: #848ea0;--bar-hi: #5162e8;--on-hi: #ffffff;--track: #eceef2;--r-sm: 6px;--r: 8px;--r-lg: 12px;--sh-1: 0 1px 2px rgb(16 24 40 / 5%);--sh-2: 0 1px 2px rgb(16 24 40 / 4%), 0 4px 12px -2px rgb(16 24 40 / 6%);--sh-3: 0 24px 64px -12px rgb(16 24 40 / 30%), 0 0 0 1px var(--line);--focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);color-scheme:light}@media screen and (prefers-color-scheme:dark){:root{--bg: #0b0d12;--surface: #12151c;--sunken: #0e1117;--hover: #171b24;--line: #232836;--line-2: #323949;--fg: #e7e9ef;--fg-2: #a9b0bf;--fg-3: #8e97a8;--accent: #8b93ff;--accent-2: #a4abff;--accent-soft: #1d2040;--ok: #47cd89;--ok-soft: #0f2a1f;--ok-mark: #2fbf71;--warn: #fdb022;--warn-soft: #2e2210;--warn-mark: #f79009;--bad: #f97066;--bad-soft: #2d1214;--bad-mark: #f04438;--bad-solid: #d92d20;--mute: #98a2b3;--mute-soft: #1c212b;--mute-mark: #667085;--get: #84adff;--get-bg: #14223f;--post: #47cd89;--post-bg: #0f2a1f;--put: #fdb022;--put-bg: #2e2210;--patch: #bdb4fe;--patch-bg: #231b45;--del: #f97066;--del-bg: #2d1214;--bar: #6b7589;--bar-hi: #8b93ff;--on-hi: #0b0d12;--track: #1f2430;--sh-1: 0 1px 2px rgb(0 0 0 / 40%);--sh-2: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -8px rgb(0 0 0 / 50%);--sh-3: 0 24px 64px -12px rgb(0 0 0 / 70%), 0 0 0 1px var(--line);color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%;background:var(--bg)}html.modal-open{overflow:hidden}body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:none;box-shadow:var(--focus);border-radius:var(--r-sm)}h1,h2,h3,h4,p,figure{margin:0}code,.mono{font-family:var(--mono);font-size:.92em}.num{text-align:right;font-variant-numeric:tabular-nums}.sub{color:var(--fg-3)}.sr,.js .js-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}.sprite{position:absolute;width:0;height:0;overflow:hidden}.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:8px;z-index:50;background:var(--surface);padding:8px 12px}.wrap{max-width:1280px;margin:0 auto;padding:0 24px}.appbar{background:var(--surface);border-bottom:1px solid var(--line)}.appbar .wrap{display:flex;align-items:center;gap:16px;min-height:56px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.brand{display:flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap}.brand b{font-weight:600}.brand .ver{font:500 12px var(--mono);color:var(--fg-3)}.logo{width:24px;height:24px}.logo rect{fill:var(--accent)}.logo path{fill:none;stroke:var(--on-hi);stroke-width:2.2;stroke-linecap:round}.meta{position:relative;display:flex;gap:8px;flex-wrap:wrap;flex:1;min-width:0}.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;border:1px solid var(--line);border-radius:var(--r-sm);font-size:12px;color:var(--fg-2);background:var(--surface);white-space:nowrap}.chip b{font-weight:500;color:var(--fg)}.chip .i{width:14px;height:14px;vertical-align:0;color:var(--fg-3)}.btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);color:var(--fg);font:500 13px var(--sans);cursor:pointer;box-shadow:var(--sh-1);white-space:nowrap}.btn:hover{background:var(--hover);text-decoration:none}.btn:disabled{cursor:default;opacity:.45}.btn.icon{width:32px;padding:0;justify-content:center}.btn.sm{height:28px;font-size:12px;padding:0 10px}.btn.icon.sm{width:28px;padding:0}main.wrap{padding-top:24px;padding-bottom:48px}.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-2);position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--tone)}.hero:after{content:"";position:absolute;left:0;top:0;width:480px;height:100%;background:radial-gradient(400px 160px at 0 0,var(--tone-soft),transparent);pointer-events:none}.hero>*{position:relative;z-index:1}.t-bad{--tone: var(--bad-mark);--tone-soft: var(--bad-soft);--tone-fg: var(--bad)}.t-ok{--tone: var(--ok-mark);--tone-soft: var(--ok-soft);--tone-fg: var(--ok)}.t-warn{--tone: var(--warn-mark);--tone-soft: var(--warn-soft);--tone-fg: var(--warn)}.t-err{--tone: var(--fg-2);--tone-soft: var(--mute-soft);--tone-fg: var(--fg)}.verdict{display:flex;gap:16px;align-items:flex-start}.v-ic{width:48px;height:48px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--tone-soft);color:var(--tone-fg);flex:none}.v-ic .i{width:26px;height:26px;stroke-width:2}.eyebrow{font-size:12px;font-weight:500;color:var(--fg-3)}.status{font-size:28px;line-height:36px;font-weight:700;color:var(--tone-fg)}.status .pill{vertical-align:6px;margin-left:8px}.summary{font-size:15px;margin-top:4px;max-width:70ch;overflow-wrap:anywhere}.summary .sub{font-size:13px;display:block;margin-top:4px}.hero .note,.hero>div>div>.sub{margin-top:8px}.subst{display:grid;gap:8px;align-content:center;min-width:280px;margin:0;padding-left:24px;border-left:1px solid var(--line)}.ss{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:baseline;gap:8px;font-size:13px}.ss dt{color:var(--fg-3)}.ss dd{margin:0;font-weight:600}.ss dd .sub{font-weight:400}.dot{width:8px;height:8px;border-radius:50%;background:var(--mute-mark);display:inline-block;margin-right:8px}.d-ok{background:var(--ok-mark)}.d-bad{background:var(--bad-mark)}.d-warn{background:var(--warn-mark)}.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}.kpi{padding:16px 20px;border-left:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:end}.kpi:first-child{border-left:0}.kpi dt{font-size:12px;color:var(--fg-3);font-weight:500;grid-column:1 / -1}.kpi dd{margin:0}.kv{font-size:24px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.kv small{font-size:13px;font-weight:500;color:var(--fg-3);margin-left:2px}.kpi .viz{grid-row:2;grid-column:2;align-self:center}.kpi .ks{grid-column:1 / -1;font-size:12px;color:var(--fg-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi.bad .kv{color:var(--bad)}.ring{width:32px;height:32px;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:4}.ring .tr{stroke:var(--track)}.ring .vl{stroke:var(--warn-mark);stroke-linecap:round}.vsplit{display:flex;width:56px;height:6px;border-radius:3px;overflow:hidden;background:var(--track);gap:2px}.vsplit>span{height:100%}.s-bad{background:var(--bad-mark)}.s-mute{background:var(--mute-mark)}.s-warn{background:var(--warn-mark)}.s-acc{background:var(--bar-hi)}.s-neu{background:var(--bar)}.s-trk{background:var(--track);box-shadow:inset 0 0 0 1px var(--line-2)}.pips{display:flex;gap:3px}.pips span{width:6px;height:14px;border-radius:2px;background:var(--bar-hi)}.pips .off{background:var(--mute-mark)}.tabs{position:sticky;top:0;z-index:20;margin:24px -24px 0;padding:12px 24px;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(8px)}.seg{display:flex;gap:2px;padding:3px;background:var(--sunken);border:1px solid var(--line);border-radius:10px;overflow-x:auto;scrollbar-width:none;width:max-content;max-width:100%}.seg a{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:7px;color:var(--fg-2);font-size:13px;font-weight:500;white-space:nowrap}.seg a:hover{color:var(--fg);text-decoration:none}.seg a[aria-selected=true]{background:var(--surface);color:var(--fg);box-shadow:var(--sh-1),0 0 0 1px var(--line)}.n{font:600 11px/18px var(--sans);min-width:20px;padding:0 6px;border-radius:9px;background:var(--line);color:var(--fg-2);text-align:center;font-variant-numeric:tabular-nums;display:inline-block}.n.bad{background:var(--bad-soft);color:var(--bad)}.n.warn{background:var(--warn-soft);color:var(--warn)}.panel{margin-top:8px}.js .panel[hidden]{display:none}.ph{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;margin:24px 0 12px;flex-wrap:wrap}.panel>.ph:first-child{margin-top:8px}.ph h2{font-size:18px;font-weight:600}.ph h3{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}.ph p{color:var(--fg-3);font-size:13px}.ph .more{font-size:13px;font-weight:500}.status-msg:empty{display:none}.status-msg{margin-top:12px;padding:8px 12px;border-radius:var(--r);background:var(--accent-soft)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:14px 16px 0}.card-h h4{font-size:13px;font-weight:600}.card-h .sub{font-size:12px}.card-p{padding:14px 16px 0;font-size:13px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.pill{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:10px;font-size:11.5px;font-weight:600;white-space:nowrap;background:var(--mute-soft);color:var(--mute);line-height:1}.pill.fb{background:var(--bad-solid);color:#fff}.pill.f{background:var(--bad-soft);color:var(--bad);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bad) 30%,transparent)}.pill.p{background:var(--ok-soft);color:var(--ok)}.pill.ne{background:none;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg-2)}.pill.w{background:var(--warn-soft);color:var(--warn)}.pill.e{background:var(--fg);color:var(--bg)}.pill .i{width:12px;height:12px;vertical-align:0;stroke-width:2}.src{display:inline-block;font:500 11px/18px var(--mono);padding:0 6px;border-radius:4px;color:var(--fg-3);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line)}.kind{display:inline-block;font:500 11px/18px var(--sans);padding:0 6px;border-radius:4px;color:var(--fg-2);background:var(--sunken)}.m{display:inline-block;width:52px;text-align:center;font:700 10.5px/20px var(--mono);border-radius:4px;flex:none;color:var(--fg-2);background:var(--sunken)}.GET{color:var(--get);background:var(--get-bg)}.POST{color:var(--post);background:var(--post-bg)}.PUT{color:var(--put);background:var(--put-bg)}.PATCH{color:var(--patch);background:var(--patch-bg)}.DELETE{color:var(--del);background:var(--del-bg)}.key{font-family:var(--mono);font-size:12.5px;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.key i{font-style:normal;color:var(--accent)}.key .o{font:500 10.5px/16px var(--sans);padding:0 5px;margin-right:6px;border-radius:4px;background:var(--sunken);color:var(--fg-3);box-shadow:inset 0 0 0 1px var(--line)}.key s{text-decoration:none;color:var(--fg-3)}.key b{font-weight:600}.kl{display:flex;align-items:center;gap:8px;min-width:0;color:inherit}a.kl:hover{text-decoration:none}a.kl:hover .key{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.key.st{font-family:var(--sans);font-size:13px}meter{appearance:none;width:64px;height:6px;border-radius:3px;vertical-align:middle;background:var(--track);border:0}meter::-webkit-meter-bar{background:linear-gradient(90deg,transparent calc(80% - 1px),var(--fg-3) calc(80% - 1px),var(--fg-3) 80%,transparent 80%),var(--track);border:0;border-radius:3px;height:6px}meter::-webkit-meter-optimum-value{background:var(--ok-mark);border-radius:3px}meter::-webkit-meter-suboptimum-value{background:var(--warn-mark);border-radius:3px}meter::-webkit-meter-even-less-good-value{background:var(--bad-mark);border-radius:3px}meter::-moz-meter-bar{background:var(--ok-mark);border-radius:3px}meter:-moz-meter-sub-optimum::-moz-meter-bar{background:var(--warn-mark)}meter:-moz-meter-sub-sub-optimum::-moz-meter-bar{background:var(--bad-mark)}.hr{display:inline-flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums;font-size:12.5px;white-space:nowrap}.hr b{font-weight:500;min-width:40px;text-align:right}.hr .ov{color:var(--bad);font-weight:600}.hr .nr{color:var(--warn)}.vlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:12px}.vio{position:relative;padding:14px 16px 14px 20px;display:grid;gap:8px;overflow:hidden;align-content:start}.vio:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--bad-mark)}.vio.mu:before{background:var(--mute-mark)}.vio .top{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.vio .top .src{margin-left:auto}.rule{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--fg-2);font-variant-numeric:tabular-nums;flex-wrap:wrap}.rule b{color:var(--fg);font-weight:600}.rule meter{width:96px}.hint{display:flex;gap:8px;font-size:13px;color:var(--fg-2);line-height:1.45}.hint .i{color:var(--warn);margin-top:1px}.toggle{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:var(--r);background:var(--sunken)}.toggle button{border:0;background:none;font:500 12px var(--sans);color:var(--fg-2);height:24px;padding:0 10px;border-radius:6px;cursor:pointer}.toggle button[aria-pressed=true]{background:var(--surface);color:var(--fg);box-shadow:var(--sh-1),0 0 0 1px var(--line)}.rank{list-style:none;margin:0;padding:8px 8px 12px;counter-reset:r}.rank li{counter-increment:r;display:grid;grid-template-columns:16px minmax(0,1fr) auto;column-gap:8px;row-gap:6px;align-items:center;padding:8px;border-radius:var(--r-sm)}.rank li:hover{background:var(--hover)}.rank li:before{content:counter(r);font-size:11px;color:var(--fg-3);font-variant-numeric:tabular-nums;grid-row:1}.rank .kl{grid-column:2 / -1;gap:6px}.rank .m{width:auto;padding:0 4px;font-size:9.5px;line-height:16px}.rank .key{font-size:12px}.rank .tb{grid-column:2;grid-row:2}.rank .v{grid-column:3;grid-row:2;min-width:64px;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;color:var(--fg-2);white-space:nowrap}.rank .v b{color:var(--fg);font-weight:600}.tb{display:block;height:4px;border-radius:2px;background:var(--track);overflow:hidden}.tb>span{display:block;height:100%;border-radius:2px;background:var(--bar-hi)}.tb.bad>span{background:var(--bad-mark)}.tb.warn>span{background:var(--warn-mark)}.tb.neu>span{background:var(--bar)}.tw{width:72px}.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}.tl{list-style:none;margin:0;padding:8px}.tl li{display:grid;grid-template-columns:minmax(0,1fr) 88px 72px;gap:12px;align-items:center;padding:8px;border-radius:var(--r-sm);font-size:13px}.tl.two li{grid-template-columns:minmax(0,1fr) auto}.tl li:hover{background:var(--hover)}.tt{min-width:0}.tt>span,.tt>.kl{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt>.kl{display:flex}.tt .sub{font:12px var(--mono);margin-top:2px}.tl .num{font-weight:600;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.tl .num .sub{font-weight:400;font-size:12px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line)}.search{display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);color:var(--fg-3);width:260px;max-width:100%}.search input{border:0;outline:0;background:none;font:13px var(--sans);color:var(--fg);width:100%}.search:focus-within{box-shadow:var(--focus)}.fg{display:inline-flex;gap:4px;align-items:center;flex-wrap:wrap;padding-left:8px;border-left:1px solid var(--line)}.fg>span{font-size:12px;color:var(--fg-3);margin-right:4px}.flt{height:28px;padding:0 10px;border:1px dashed var(--line-2);border-radius:14px;background:none;color:var(--fg-2);font:500 12px var(--sans);cursor:pointer;display:inline-flex;align-items:center;gap:6px}.flt[aria-pressed=true]{border-style:solid;border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}.count{margin-left:auto;font-size:12px;color:var(--fg-3);font-variant-numeric:tabular-nums}.scroll{overflow-x:auto}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}caption{text-align:left;padding:0;height:0;overflow:hidden}th{font-size:12px;font-weight:500;color:var(--fg-3);text-align:left;padding:8px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--sunken)}th.num{text-align:right}th button{all:unset;cursor:pointer;display:inline-flex;gap:4px;align-items:center}th button:hover{color:var(--fg)}th button:focus-visible{box-shadow:var(--focus);border-radius:4px}th[aria-sort=descending] button:after{content:"\u2193";font-size:11px;color:var(--accent)}th[aria-sort=ascending] button:after{content:"\u2191";font-size:11px;color:var(--accent)}td,tbody th{padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle;background:var(--surface);color:var(--fg);font-size:13px;font-weight:400}tbody:last-child tr:last-child>*,tbody:last-child tr.drow:last-child>*{border-bottom:0}.keys>tbody>tr:first-child,.tests tbody tr{transition:background .12s}.js .keys>tbody>tr:first-child:hover>*,.tests tbody tr:hover>*{background:var(--hover)}.js .keys>tbody>tr:first-child{cursor:pointer}.keys>tbody>tr.sel>*{background:var(--accent-soft)}th.k{max-width:440px;padding-left:16px;display:table-cell}th.k:before{content:"";display:inline-block;vertical-align:middle;width:6px;height:6px;border-radius:50%;margin-right:10px;background:var(--ok-mark)}th.k .kl{display:inline-flex;vertical-align:middle}th.k .key{overflow:visible}tr.blocking th.k:before,tr.violation th.k:before{background:var(--bad-mark)}tr.muted th.k:before{background:var(--mute-mark)}tr.not-evaluated th.k:before{background:none;box-shadow:inset 0 0 0 1.5px var(--mute-mark)}tr.blocking th.k{box-shadow:inset 3px 0 0 var(--bad-mark)}td.r>*+*{margin-left:6px}td.r .why{display:block;margin:4px 0 0;color:var(--fg-3);font-size:12px}td .lim{color:var(--fg-3);font-size:12px;font-weight:400}td.ov{color:var(--bad);font-weight:600}td.e{color:var(--bad);font-weight:500}td.z{color:var(--fg-3)}td.loc{font:12px var(--mono);color:var(--fg-3)}.tfoot{padding:10px 16px;font-size:12px;color:var(--fg-3);border-top:1px solid var(--line)}.dep{display:inline-block;position:relative;width:16px;height:4px;margin-right:8px;vertical-align:2px;background:radial-gradient(circle,var(--line-2) 2px,transparent 2px) 0 0 / 6px 4px repeat-x}.dep:before{content:"";position:absolute;inset:0 auto 0 0;background:radial-gradient(circle,var(--fg-3) 2px,transparent 2px) 0 0 / 6px 4px repeat-x}.d1:before{width:4px}.d2:before{width:10px}.d3:before{width:16px}.tests th.tc{max-width:360px}.tc>span{display:block;overflow:hidden;text-overflow:ellipsis}.tc .tn{font-weight:500;color:var(--accent)}.tc .sub{font-size:12px;margin-top:2px}td.tk>*{display:flex;gap:6px;align-items:center}td.tk>*+*{margin-top:4px}.tk .kl{display:inline-flex}.tk .m{width:auto;padding:0 4px;font-size:9.5px;line-height:16px}.drow>td{white-space:normal;background:var(--bg)}.js .drow{display:none}.drow summary{cursor:pointer;color:var(--accent);font-weight:500}.kd{padding:0 4px 12px;max-width:920px}.kh{padding-top:12px}.fk{display:block;word-break:break-all;font-size:14px;font-weight:600}.pills{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap;align-items:center}.ds{padding-top:20px}.ds>h4{font-size:12px;font-weight:600;color:var(--fg-2);margin-bottom:10px;display:flex;justify-content:space-between;gap:8px;align-items:baseline}.ds>h4 .sub{font-weight:400}.hints{list-style:none;display:grid;gap:8px;margin:20px 0 0;padding:12px 14px;border-radius:var(--r);background:var(--warn-soft);border:1px solid color-mix(in srgb,var(--warn-mark) 30%,transparent)}.hints li{display:flex;gap:8px;font-size:13px}.hints .i{color:var(--warn);margin-top:1px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r);margin:0;background:var(--surface)}.stats div{padding:10px 12px;border-left:1px solid var(--line)}.stats div:first-child{border-left:0}.stats dt{font-size:11px;color:var(--fg-3)}.stats dd{margin:0;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.stats dd small{font-size:11px;color:var(--fg-3);font-weight:400}.stats .ov dd{color:var(--bad)}.ct{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;overflow-x:auto}.ct td,.ct th{padding:8px 10px}.ct thead th{background:none}.ck td{text-align:right;font-variant-numeric:tabular-nums}.ck td:nth-last-child(-n+2){text-align:left}.ck tr.ov td:nth-child(2){color:var(--bad);font-weight:600}.legend{display:flex;gap:8px 16px;font-size:12px;color:var(--fg-3);margin-top:8px;flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:2px;display:inline-block}.legend .lg-lim{border-top:2px dashed var(--bad-mark);height:0;border-radius:0}.stc{display:flex;gap:6px;flex-wrap:wrap}.stc span{font:12px var(--mono);padding:2px 8px;border-radius:var(--r-sm);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line)}.stc b{font-weight:600}.stc .e{color:var(--bad)}.facts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px;font-size:12.5px;color:var(--fg-2)}.samples{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}.samples li{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:10px 12px;border-top:1px solid var(--line);font-size:13px}.samples li:first-child{border-top:0}.samples b{font-variant-numeric:tabular-nums}.samples .sub{font-family:var(--sans)}.samples .url{font:12px var(--mono);color:var(--fg-2);white-space:normal;overflow-wrap:anywhere}.ds .tl{padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}.kdlg{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);padding:0;border:0;border-radius:var(--r-lg);background:var(--surface);color:var(--fg);box-shadow:var(--sh-3);overflow-y:auto;overscroll-behavior:contain}.kdlg::backdrop{background:#1018287f}@media(prefers-reduced-motion:no-preference){.kdlg[open]{animation:pop .12s ease-out}}@keyframes pop{0%{opacity:0;transform:translateY(8px)}}.dh{position:sticky;top:0;z-index:2;background:var(--surface);border-bottom:1px solid var(--line);padding:16px 20px 14px}.dh .nav{display:flex;gap:4px;align-items:center;margin-bottom:10px}.dh .nav .sub{font-size:12px;margin-right:auto}#dlg-title{font:600 14px/20px var(--mono);word-break:break-all}#dlg-title:focus-visible{box-shadow:none}.dh .kh{padding-top:0}.dh .fkl{display:none}.db{padding:0 20px 8px}.db .kd{padding:0;max-width:none}.dfoot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 20px 20px}.copy-out input{font:12px var(--mono);width:min(520px,70vw);margin-left:8px}svg.ch,svg.split,svg.bar{display:block;width:100%;height:auto}svg.hist,svg.bar{max-width:720px}.ch text,svg.bar text{font:10.5px var(--sans);fill:var(--fg-3);font-variant-numeric:tabular-nums}.as{text-anchor:start}.am{text-anchor:middle}.ae{text-anchor:end}.hist .gr,.wf .wg{stroke:var(--line);stroke-width:1;stroke-dasharray:2 3;fill:none}.hist .ha{stroke:var(--line-2)}.hist .bars{fill:var(--bar)}.hist .bars-hi{fill:var(--bad-mark)}.hist .hm{stroke:var(--fg-2);stroke-width:1.25}.hist .hl{stroke:var(--bad-mark);stroke-width:1.5;stroke-dasharray:4 3}.hist text{fill:var(--fg-2);font-weight:600}.hist .ht text{fill:var(--fg-3);font-weight:400}.split .st{fill:var(--bar-hi)}.split .so{fill:var(--track);stroke:var(--line-2)}.bar-axis{stroke:var(--line-2)}.bar-range{fill:var(--bar)}.bar-mark{stroke:var(--fg-2);stroke-width:1.5}.bar-limit{stroke:var(--bad-mark);stroke-dasharray:4 3}svg.bar .bar-limit-text{fill:var(--bad)}.wl{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.wf-h{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}.wf-h h4{font-size:14px;font-weight:600;overflow-wrap:anywhere}.wf-h .sub{font-size:12px;margin-top:2px}.wf-h dl{display:flex;gap:24px;margin:0}.wf-h dt{font-size:11px;color:var(--fg-3)}.wf-h dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.wfs{padding:8px 16px 16px}.wfs svg{min-width:720px}.wf .sep{stroke:var(--line)}.wf .wl{font:10.5px var(--mono);fill:var(--fg-2)}.wf .mt{font-weight:700;fill:var(--fg-2)}.wf .mGET{fill:var(--get)}.wf .mPOST{fill:var(--post)}.wf .mPUT{fill:var(--put)}.wf .mPATCH{fill:var(--patch)}.wf .mDELETE{fill:var(--del)}.wf .p{fill:var(--accent)}.wf g rect{fill:var(--bar-hi)}.wf .we rect,.wf .we path{fill:var(--bad-mark)}.wf .ww rect{fill:var(--warn-mark)}.wf .wm rect{fill:var(--mute-mark)}.wf g path{fill:var(--bad-mark);stroke:var(--surface);stroke-width:1.5}.wf .d{font-size:10px}.wf g:hover .wl,.wf g:hover text{fill:var(--fg)}.wf g:hover rect{opacity:.85}.sh{font-size:13px;font-weight:600;color:var(--fg-2);margin:8px 0 0}.wn{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:4px 12px;padding:16px}.wn .wi{width:32px;height:32px;border-radius:var(--r);display:grid;place-items:center;background:var(--warn-soft);color:var(--warn);grid-row:1 / 4}.wn.err .wi{background:var(--bad-soft);color:var(--bad)}.wn code{font:600 12.5px var(--mono);align-self:center;overflow-wrap:anywhere}.wn p{grid-column:2 / -1;font-size:13.5px;overflow-wrap:anywhere}.wn .hint .i{color:var(--accent)}.wn .n{align-self:start}.hl-err .wn{border-color:var(--bad-mark)}.kvl{display:grid;grid-template-columns:140px minmax(0,1fr);gap:8px 16px;margin:0;padding:16px;font-size:13px}.kvl dt{color:var(--fg-3)}.kvl dd{margin:0;min-width:0;overflow-wrap:anywhere}.plain{margin:4px 0 0;padding-left:16px}details.cfg summary{padding:14px 16px;cursor:pointer;font-weight:600;font-size:13px;list-style:none;display:flex;gap:8px;align-items:center}details.cfg summary::-webkit-details-marker{display:none}details.cfg summary:before{content:"";width:6px;height:6px;flex:none;border-right:1.5px solid var(--fg-3);border-bottom:1.5px solid var(--fg-3);transform:rotate(-45deg);transition:transform .15s}details.cfg[open] summary:before{transform:rotate(45deg)}details.cfg pre{margin:0;padding:16px;border-top:1px solid var(--line);font:12px/1.6 var(--mono);color:var(--fg-2);overflow-x:auto;background:var(--sunken);border-radius:0 0 var(--r-lg) var(--r-lg)}details.cfg .scroll{border-top:1px solid var(--line)}.empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:40px 24px;color:var(--fg-2)}.empty .ei{width:44px;height:44px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line);color:var(--fg-3)}.empty h3{font-size:15px;color:var(--fg)}.empty p{font-size:13px;max-width:56ch}.empty.sm{padding:20px 16px;gap:6px}.empty.sm .i{color:var(--ok-mark)}.note{display:flex;gap:10px;padding:12px 14px;border-radius:var(--r);background:var(--accent-soft);color:var(--fg);font-size:13px;align-items:flex-start}.note .i{color:var(--accent);margin-top:1px}.note code{background:var(--surface);padding:1px 5px;border-radius:4px}footer{padding:24px 0 40px;font-size:12px;color:var(--fg-3);border-top:1px solid var(--line)}@media(max-width:1100px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1023px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi:nth-child(4){border-left:0}.kpi:nth-child(n+4){border-top:1px solid var(--line)}.hero{grid-template-columns:minmax(0,1fr)}.subst{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:16px;min-width:0}}@media(max-width:720px){.grid2,.vlist{grid-template-columns:minmax(0,1fr)}}@media(max-width:599px){.wrap{padding:0 16px}.tabs{margin:16px -16px 0;padding:8px 16px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi{padding:12px 14px}.kpi:nth-child(n){border-left:1px solid var(--line);border-top:1px solid var(--line)}.kpi:nth-child(odd){border-left:0}.kpi:nth-child(-n+2){border-top:0}.kv{font-size:20px;line-height:28px}.grid4{grid-template-columns:minmax(0,1fr)}.hero{padding:20px 16px}.status{font-size:24px;line-height:32px}.v-ic{width:40px;height:40px}.summary{font-size:14px}.ss{grid-template-columns:88px minmax(0,1fr)}.brand{flex:1;min-width:0;overflow:hidden}.brand b{overflow:hidden;text-overflow:ellipsis}.brand .ver{display:none}.meta{order:3;flex:0 0 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.appbar .btn span{display:none}.appbar .btn{width:32px;padding:0;justify-content:center}.vio .rule meter{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats div:nth-child(3){border-left:0}.stats div:nth-child(n+3){border-top:1px solid var(--line)}.tl li{grid-template-columns:minmax(0,1fr) 72px}.tl li>.num:last-child{display:none}.tl.two li>.num:last-child{display:flex}.fg{border-left:0;padding-left:0}.kvl{grid-template-columns:minmax(0,1fr);gap:2px}.kvl dd{margin-bottom:8px}.kdlg{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;border-radius:0}.dh,.dfoot{padding-left:16px;padding-right:16px}.db{padding:0 16px 8px}}@media print{:root{--bg: #ffffff;--sh-1: none;--sh-2: none}.tabs,.toolbar,.btn,.toggle,.js-only,.kdlg,.skip,.status-msg,[data-none],th button:after{display:none!important}.js .panel[hidden]{display:block!important}.js .drow{display:table-row}.scroll,.ct{overflow:visible}tr,.card,.kpi,.wfb,svg{break-inside:avoid}details[data-v]::details-content{content-visibility:visible;display:block}}';
5666
- var STYLES_SHA256 = "H4GohEkNOb+boWZrf/WvSp8JY2UCIT8e/neyYQe1k38=";
5667
- var SCRIPT = '(()=>{const u=document,ee=u.getElementById("report-data")?.textContent??"{}",q=JSON.parse(ee),B={api:q.endpoints??{},step:q.steps??{}},re=q.testBreakdown?.tests??[],te={api:"endpoints",step:"steps"};u.documentElement.classList.add("js");function f(e,n=u){return Array.from(n.querySelectorAll(e))}function A(e,n){return Object.prototype.hasOwnProperty.call(e,n)}const _=u.getElementById("status");function $(e){_!==null&&(_.textContent=e)}function w(e){history.replaceState(null,"",e)}const k=u.querySelector("[data-tabs]"),E=k===null?[]:f("a[data-tab]",k),H=new Map;for(const e of f("[data-panel]"))H.set(e.dataset.panel??"",e);let U="overview";function L(e,n=!1){if(H.has(e)){U=e;for(const t of E){const l=t.dataset.tab===e;t.setAttribute("aria-selected",String(l)),t.tabIndex=l?0:-1,l&&n&&t.focus()}for(const[t,l]of H)l.hidden=t!==e}}if(k!==null){k.setAttribute("role","tablist");for(const e of E){const n=e.dataset.tab??"";e.setAttribute("role","tab"),e.setAttribute("aria-controls",`tab-${n}`);const t=H.get(n);t?.setAttribute("role","tabpanel"),t?.setAttribute("aria-labelledby",e.id)}k.addEventListener("keydown",e=>{const n=E.findIndex(s=>s.dataset.tab===U);let t=-1;if(e.key==="ArrowRight"?t=(n+1)%E.length:e.key==="ArrowLeft"?t=(n-1+E.length)%E.length:e.key==="Home"?t=0:e.key==="End"&&(t=E.length-1),t<0)return;e.preventDefault();const l=E[t]?.dataset.tab??"overview";L(l,!0),w(`#tab=${l}`)})}const I={api:new Map,step:new Map};function j(e){const n=e?.dataset.kind??"api";return A(te,n)?n:"api"}const x=new Map;for(const e of f("table.keys")){const n=j(e);for(const t of Array.from(e.tBodies)){const l=t.querySelector(".fk")?.textContent??"";x.set(t,l),A(B[n],l)&&I[n].set(l,t)}}function ae(e){return j(e.closest("table"))}const z={api:"Endpoint",step:"Step"},d=u.getElementById("key-dialog"),C=u.getElementById("dlg-title"),J=u.getElementById("dlg-pos"),ie=d?.querySelector(".dh-slot")??null,G=d?.querySelector(".db")??null,v=d?.querySelector(".copy-out")??null,Q=d?.querySelector(\'[data-act="prev"]\')??null,W=d?.querySelector(\'[data-act="next"]\')??null;let m=null,K=null;function P(){m!==null&&(m.head!==null&&m.block.prepend(m.head),m.home.appendChild(m.block),m.body.rows[0]?.classList.remove("sel"),m=null)}function ne(e){const n=e.closest("table");return n===null?[e]:Array.from(n.tBodies).filter(t=>!t.hidden)}function F(e,n,t=!1){const l=e.querySelector("details"),s=l?.querySelector(".kd");if(d===null||G===null||l===null||s==null)return;P(),n!==null&&(K=n);const o=s.querySelector(".kh");o!==null&&ie?.appendChild(o),G.appendChild(s),m={body:e,block:s,head:o,home:l},e.rows[0]?.classList.add("sel");const r=ae(e),p=x.get(e)??"",c=ne(e),a=c.indexOf(e);C!==null&&(C.textContent=p),J!==null&&(J.textContent=a<0?z[r]:`${z[r]} ${String(a+1)} of ${String(c.length)}`),Q!==null&&(Q.disabled=a<=0),W!==null&&(W.disabled=a<0||a>=c.length-1),v!==null&&(v.hidden=!0),t&&L(te[r]),d.open||(d.showModal(),u.documentElement.classList.add("modal-open")),d.scrollTop=0,w(`#key=${r}:${encodeURIComponent(p)}`),C?.focus()}let O=!0;function M(e=!0){d===null||!d.open||(O=e,P(),d.close())}d?.addEventListener("close",()=>{P(),u.documentElement.classList.remove("modal-open"),O&&(w(`#tab=${U}`),K?.focus()),O=!0,K=null});function X(e){if(m===null)return;const n=ne(m.body),t=n[n.indexOf(m.body)+e];t!==void 0&&F(t,null)}d?.addEventListener("click",e=>{if(e.target===d){M();return}const n=e.target.closest("[data-act]")?.dataset.act;n==="close"?M():n==="prev"?X(-1):n==="next"&&X(1)});function V(e,n=null){let t=/^#tab[=-]([a-z-]+)$/u.exec(e);if(t!==null){M(!1);const s=t[1]??"";H.has(s)?(L(s),w(`#tab=${s}`)):(L("overview"),$("Tab not found in this report"));return}let l;if(t=/^#key=(api|request|step):(.*)$/su.exec(e),t!==null){let s;try{s=decodeURIComponent(t[2]??"")}catch{s=null}const o=t[1];s!==null&&A(I,o)&&(l=I[o].get(s))}else{if(t=/^#key-(?:api|step)-(\\d+)$/u.exec(e),t===null)return;l=u.getElementById(e.slice(1))?.closest("tbody")??void 0}if(l===void 0){M(!1),L("overview"),$("Key not found in this report");return}F(l,n,n===null)}u.addEventListener("click",e=>{const n=e.target,t=n.closest(\'a[href^="#"]\');if(t===null){const s=n.closest("table.keys > tbody > tr:first-child"),o=s?.parentElement;if(s==null||!(o instanceof HTMLTableSectionElement)||n.closest("button, input, label, summary")!==null)return;F(o,s.querySelector(\'a[href^="#key-"]\'));return}const l=t.getAttribute("href")??"";if(t.hasAttribute("data-show-violations")){e.preventDefault(),M(!1),L("endpoints"),w("#tab=endpoints"),fe();return}/^#(?:tab-|key-)/u.test(l)&&(e.preventDefault(),V(l,t))});window.addEventListener("hashchange",()=>V(location.hash));function ue(e){const n=e.evaluation.checks;if(n.length===0)return null;let t=-1/0;for(const l of n)t=Math.max(t,l.usage??1/0);return t}function ce(e,n,t){if(e===void 0)return null;switch(n){case"headroom":return ue(e);case"samples":return e.successCount;case"errors":return e.errorCount;case"p50":return e.stats?.percentiles.p50??null;case"percentile":return e.stats?.percentiles[t]??null;case"p99":return e.stats?.percentiles.p99??null;case"max":return e.stats?.max??null;case"ttfb":return e.ttfb?.p50??null;case"tests":return e.testCount;default:return null}}function de(e,n){if(e===void 0)return null;switch(n){case"runs":return e.executions;case"requests":return e.requestCount;case"errors":return e.errorCount;case"total":return e.totalMs;case"avg":return Math.round(e.totalMs/e.executions*10)/10;case"longest":return e.maxRequestMs;case"keys":return e.keyCount;case"violations":return e.violatedKeyCount;default:return null}}function le(e,n,t){const l=f("th[data-sort]",e);let s=null;for(const o of l){const r=o.dataset.sort??"";o.querySelector("button")?.addEventListener("click",()=>{const c=r==="key"||r==="title"||r==="result"?"ascending":"descending",a=s?.column===r?s.direction==="ascending"?"descending":"ascending":c;s={column:r,direction:a};const T=a==="ascending"?1:-1,g=[...n].sort((i,b)=>{if(r==="key"||r==="title")return(i.text<b.text?-1:i.text>b.text?1:0)*T||i.order-b.order;const h=i.value(r),y=b.value(r);return h===null||y===null?h===y?i.order-b.order:h===null?1:-1:(h-y)*T||i.order-b.order});for(const i of g)t.appendChild(i.element);for(const i of l)i===o?i.setAttribute("aria-sort",a):i.removeAttribute("aria-sort")})}}const se=new Map;function oe(e,n){const t=u.querySelector(`[data-for="${e}"]`);if(t===null)return;const l=t.querySelector(\'input[type="search"]\'),s=f("button[data-f]",t),o=t.querySelector("[data-count]"),r=t.querySelector("[data-none]");function p(){const c=(l?.value??"").toLowerCase(),a=new Map;for(const g of s){if(g.getAttribute("aria-pressed")!=="true")continue;const i=g.dataset.f??"",b=a.get(i)??new Set;b.add(g.dataset.v??""),a.set(i,b)}let T=0;for(const g of n){let i=g.text.includes(c);for(const[b,h]of a){const y=g.attributes[b]??null;(y===null||!h.has(y))&&(i=!1)}g.element.hidden=!i,i&&T++}o!==null&&(o.textContent=`showing ${T} of ${n.length}`),r!==null&&(r.hidden=T>0)}for(const c of s)c.addEventListener("click",()=>{c.setAttribute("aria-pressed",String(c.getAttribute("aria-pressed")!=="true")),p()});l?.addEventListener("input",p);for(const c of f("[data-reset]",t))c.addEventListener("click",()=>{l!==null&&(l.value="");for(const a of s)a.setAttribute("aria-pressed","false");p()});se.set(e,c=>{l!==null&&(l.value="");for(const a of s){const T=c[a.dataset.f??""]?.includes(a.dataset.v??"")===!0;a.setAttribute("aria-pressed",String(T))}p()})}function fe(){se.get("table-api")?.({g:["0","1"]})}for(const e of f("table.keys")){const n=j(e),t=e.dataset.level??"p95",l=Array.from(e.tBodies),s=l.map(o=>{const r=x.get(o)??"";return{element:o,order:Number(/\\d+$/u.exec(o.querySelector("details")?.id??"")?.[0]??"0"),text:r,value:p=>p==="result"?Number(o.dataset.g??"3"):ce(A(B[n],r)?B[n][r]:void 0,p,t)}});le(e,s,e),oe(e.id,l.map(o=>({element:o,text:(x.get(o)??"").toLowerCase(),attributes:{g:o.dataset.g??null,s:o.dataset.s??null,m:o.hasAttribute("data-m")?"":null}})))}const N=u.querySelector("#table-tests"),D=N?.tBodies[0];if(N!==null&&D!==void 0){const e=Array.from(D.rows),n=t=>re[Number(t.dataset.i??"-1")];le(N,e.map(t=>({element:t,order:Number(t.dataset.i??"0"),text:n(t)?.title??"",value:l=>de(n(t),l)})),D),oe("table-tests",e.map(t=>{const l=n(t);return{element:t,text:`${l?.title??""}\\0${l?.file??""}`.toLowerCase(),attributes:{v:t.hasAttribute("data-v")?"":null}}}))}const Y=u.querySelector("[data-kinds]");if(Y!==null){const e=f("button[data-k]",Y),n=t=>{for(const l of e)l.setAttribute("aria-pressed",String(l.dataset.k===t));for(const l of f("ol[data-rank]")){let s=0;for(const o of f("li",l)){const r=o.dataset.k===t&&s<10;o.hidden=!r,r&&s++}l.hidden=s===0;for(const o of f("[data-k-empty]",l.parentElement??u))o.hidden=o.dataset.kEmpty!==t}};for(const t of e)t.addEventListener("click",()=>n(t.dataset.k??"api"));n(e[0]?.dataset.k??"api")}u.addEventListener("click",e=>{if(e.target.closest("[data-copy]")===null)return;const n=location.href,t=()=>{const l=v?.querySelector("input");v===null||l==null||(v.hidden=!1,l.value=n,l.focus(),l.select())};if(navigator.clipboard===void 0){t();return}navigator.clipboard.writeText(n).then(()=>$("Link copied"),t)});const Z=u.getElementById("download"),R=u.getElementById("download-link");Z instanceof HTMLButtonElement&&R instanceof HTMLAnchorElement&&Z.addEventListener("click",()=>{const e=URL.createObjectURL(new Blob([ee],{type:"application/json"}));R.href=e,R.click(),setTimeout(()=>URL.revokeObjectURL(e),1e3)});for(const e of f(".js-only"))e.hidden=!1;let S=[];window.addEventListener("beforeprint",()=>{M(!1),S=f("details[data-v]:not([open])");for(const e of S)e.open=!0});window.addEventListener("afterprint",()=>{for(const e of S)e.open=!1;S=[]});L("overview");V(location.hash);})();';
5668
- var SCRIPT_SHA256 = "e6J9ZwhFhFKlITJPo/XECJoVN/CFcBgr+9HjL79nBjc=";
5839
+ var STYLES = ':root{--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;--bg: #f6f7f9;--surface: #ffffff;--sunken: #f1f3f6;--hover: #f7f8fb;--line: #e4e7ec;--line-2: #d0d5dd;--fg: #101828;--fg-2: #475467;--fg-3: #5d6979;--accent: #4f46e5;--accent-2: #4338ca;--accent-soft: #eef0ff;--ok: #067647;--ok-soft: #e6f6ee;--ok-mark: #079455;--warn: #a14c05;--warn-soft: #fef4e4;--warn-mark: #d06306;--bad: #b42318;--bad-soft: #fef3f2;--bad-mark: #d92d20;--bad-solid: #b42318;--mute: #5d6979;--mute-soft: #eef0f3;--mute-mark: #7a8494;--get: #175cd3;--get-bg: #e9f1fe;--post: #067647;--post-bg: #e6f6ee;--put: #a14c05;--put-bg: #fef4e4;--patch: #6938ef;--patch-bg: #f1edfe;--del: #b42318;--del-bg: #fef3f2;--bar: #848ea0;--bar-hi: #5162e8;--on-hi: #ffffff;--track: #eceef2;--r-sm: 6px;--r: 8px;--r-lg: 12px;--sh-1: 0 1px 2px rgb(16 24 40 / 5%);--sh-2: 0 1px 2px rgb(16 24 40 / 4%), 0 4px 12px -2px rgb(16 24 40 / 6%);--sh-3: 0 24px 64px -12px rgb(16 24 40 / 30%), 0 0 0 1px var(--line);--focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);color-scheme:light}@media screen and (prefers-color-scheme:dark){:root{--bg: #0b0d12;--surface: #12151c;--sunken: #0e1117;--hover: #171b24;--line: #232836;--line-2: #323949;--fg: #e7e9ef;--fg-2: #a9b0bf;--fg-3: #8e97a8;--accent: #8b93ff;--accent-2: #a4abff;--accent-soft: #1d2040;--ok: #47cd89;--ok-soft: #0f2a1f;--ok-mark: #2fbf71;--warn: #fdb022;--warn-soft: #2e2210;--warn-mark: #f79009;--bad: #f97066;--bad-soft: #2d1214;--bad-mark: #f04438;--bad-solid: #d92d20;--mute: #98a2b3;--mute-soft: #1c212b;--mute-mark: #667085;--get: #84adff;--get-bg: #14223f;--post: #47cd89;--post-bg: #0f2a1f;--put: #fdb022;--put-bg: #2e2210;--patch: #bdb4fe;--patch-bg: #231b45;--del: #f97066;--del-bg: #2d1214;--bar: #6b7589;--bar-hi: #8b93ff;--on-hi: #0b0d12;--track: #1f2430;--sh-1: 0 1px 2px rgb(0 0 0 / 40%);--sh-2: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -8px rgb(0 0 0 / 50%);--sh-3: 0 24px 64px -12px rgb(0 0 0 / 70%), 0 0 0 1px var(--line);color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%;background:var(--bg)}html.modal-open{overflow:hidden}body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:none;box-shadow:var(--focus);border-radius:var(--r-sm)}h1,h2,h3,h4,p,figure{margin:0}code,.mono{font-family:var(--mono);font-size:.92em}.num{text-align:right;font-variant-numeric:tabular-nums}.sub{color:var(--fg-3)}.sr,.js .js-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}.sprite{position:absolute;width:0;height:0;overflow:hidden}.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:8px;z-index:50;background:var(--surface);padding:8px 12px}.wrap{max-width:1280px;margin:0 auto;padding:0 24px}.appbar{background:var(--surface);border-bottom:1px solid var(--line)}.appbar .wrap{display:flex;align-items:center;gap:16px;min-height:56px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.brand{display:flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap}.brand b{font-weight:600}.brand .ver{font:500 12px var(--mono);color:var(--fg-3)}.logo{width:24px;height:24px}.logo circle{fill:var(--accent)}.logo path{fill:none;stroke-width:2;stroke-linecap:round}.logo .crown{stroke:var(--accent)}.logo .bars{stroke:var(--on-hi)}.meta{position:relative;display:flex;gap:8px;flex-wrap:wrap;flex:1;min-width:0}.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;border:1px solid var(--line);border-radius:var(--r-sm);font-size:12px;color:var(--fg-2);background:var(--surface);white-space:nowrap}.chip b{font-weight:500;color:var(--fg)}.chip .i{width:14px;height:14px;vertical-align:0;color:var(--fg-3)}.btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);color:var(--fg);font:500 13px var(--sans);cursor:pointer;box-shadow:var(--sh-1);white-space:nowrap}.btn:hover{background:var(--hover);text-decoration:none}.btn:disabled{cursor:default;opacity:.45}.btn.icon{width:32px;padding:0;justify-content:center}.btn.sm{height:28px;font-size:12px;padding:0 10px}.btn.icon.sm{width:28px;padding:0}main.wrap{padding-top:24px;padding-bottom:48px}.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-2);position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--tone)}.hero:after{content:"";position:absolute;left:0;top:0;width:480px;height:100%;background:radial-gradient(400px 160px at 0 0,var(--tone-soft),transparent);pointer-events:none}.hero>*{position:relative;z-index:1}.t-bad{--tone: var(--bad-mark);--tone-soft: var(--bad-soft);--tone-fg: var(--bad)}.t-ok{--tone: var(--ok-mark);--tone-soft: var(--ok-soft);--tone-fg: var(--ok)}.t-warn{--tone: var(--warn-mark);--tone-soft: var(--warn-soft);--tone-fg: var(--warn)}.t-err{--tone: var(--fg-2);--tone-soft: var(--mute-soft);--tone-fg: var(--fg)}.verdict{display:flex;gap:16px;align-items:flex-start}.v-ic{width:48px;height:48px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--tone-soft);color:var(--tone-fg);flex:none}.v-ic .i{width:26px;height:26px;stroke-width:2}.eyebrow{font-size:12px;font-weight:500;color:var(--fg-3)}.status{font-size:28px;line-height:36px;font-weight:700;color:var(--tone-fg)}.status .pill{vertical-align:6px;margin-left:8px}.summary{font-size:15px;margin-top:4px;max-width:70ch;overflow-wrap:anywhere}.summary .sub{font-size:13px;display:block;margin-top:4px}.hero .note,.hero>div>div>.sub{margin-top:8px}.subst{display:grid;gap:8px;align-content:center;min-width:280px;margin:0;padding-left:24px;border-left:1px solid var(--line)}.ss{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:baseline;gap:8px;font-size:13px}.ss dt{color:var(--fg-3)}.ss dd{margin:0;font-weight:600}.ss dd .sub{font-weight:400}.dot{width:8px;height:8px;border-radius:50%;background:var(--mute-mark);display:inline-block;margin-right:8px}.d-ok{background:var(--ok-mark)}.d-bad{background:var(--bad-mark)}.d-warn{background:var(--warn-mark)}.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}.kpi{padding:16px 20px;border-left:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:end}.kpi:first-child{border-left:0}.kpi dt{font-size:12px;color:var(--fg-3);font-weight:500;grid-column:1 / -1}.kpi dd{margin:0}.kv{font-size:24px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.kv small{font-size:13px;font-weight:500;color:var(--fg-3);margin-left:2px}.kpi .viz{grid-row:2;grid-column:2;align-self:center}.kpi .ks{grid-column:1 / -1;font-size:12px;color:var(--fg-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi.bad .kv{color:var(--bad)}.ring{width:32px;height:32px;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:4}.ring .tr{stroke:var(--track)}.ring .vl{stroke:var(--warn-mark);stroke-linecap:round}.vsplit{display:flex;width:56px;height:6px;border-radius:3px;overflow:hidden;background:var(--track);gap:2px}.vsplit>span{height:100%}.s-bad{background:var(--bad-mark)}.s-mute{background:var(--mute-mark)}.s-warn{background:var(--warn-mark)}.s-acc{background:var(--bar-hi)}.s-neu{background:var(--bar)}.s-trk{background:var(--track);box-shadow:inset 0 0 0 1px var(--line-2)}.pips{display:flex;gap:3px}.pips span{width:6px;height:14px;border-radius:2px;background:var(--bar-hi)}.pips .off{background:var(--mute-mark)}.tabs{position:sticky;top:0;z-index:20;margin:24px -24px 0;padding:4px 24px 0;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(8px)}.seg{position:relative;display:flex;gap:4px;box-shadow:inset 0 -1px 0 var(--line-2);overflow-x:auto;scrollbar-width:none}.seg a{display:inline-flex;flex:none;align-items:center;gap:8px;min-height:44px;padding:3px 16px 0;border-bottom:3px solid transparent;border-radius:var(--r-sm) var(--r-sm) 0 0;color:var(--fg-2);font-size:14px;font-weight:600;white-space:nowrap}.seg a:hover{color:var(--fg);background:var(--hover);border-bottom-color:var(--line-2);text-decoration:none}.seg a:focus-visible{border-radius:var(--r-sm) var(--r-sm) 0 0;box-shadow:inset 0 0 0 2px var(--accent)}.seg a[aria-selected=true]{color:var(--accent);background:var(--accent-soft);border-bottom-color:var(--accent)}.n{font:600 11px/18px var(--sans);min-width:20px;padding:0 6px;border-radius:9px;background:var(--line);color:var(--fg-2);text-align:center;font-variant-numeric:tabular-nums;display:inline-block}.n.bad{background:var(--bad-soft);color:var(--bad)}.n.warn{background:var(--warn-soft);color:var(--warn)}.panel{margin-top:8px}.js .panel[hidden]{display:none}.ph{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;margin:24px 0 12px;flex-wrap:wrap}.panel>.ph:first-child{margin-top:8px}.ph h2{font-size:18px;font-weight:600}.ph h3{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}.ph p{color:var(--fg-3);font-size:13px}.ph .more{font-size:13px;font-weight:500}.status-msg:empty{display:none}.status-msg{margin-top:12px;padding:8px 12px;border-radius:var(--r);background:var(--accent-soft)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-1)}.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:14px 16px 0}.card-h h4{font-size:13px;font-weight:600}.card-h .sub{font-size:12px}.card-p{padding:14px 16px 0;font-size:13px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.pill{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:10px;font-size:11.5px;font-weight:600;white-space:nowrap;background:var(--mute-soft);color:var(--mute);line-height:1}.pill.fb{background:var(--bad-solid);color:#fff}.pill.f{background:var(--bad-soft);color:var(--bad);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bad) 30%,transparent)}.pill.p{background:var(--ok-soft);color:var(--ok)}.pill.ne{background:none;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg-2)}.pill.w{background:var(--warn-soft);color:var(--warn)}.pill.e{background:var(--fg);color:var(--bg)}.pill .i{width:12px;height:12px;vertical-align:0;stroke-width:2}.src{display:inline-block;font:500 11px/18px var(--mono);padding:0 6px;border-radius:4px;color:var(--fg-3);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line)}.es{font:500 11px var(--mono);color:var(--fg-3)}.kind{display:inline-block;font:500 11px/18px var(--sans);padding:0 6px;border-radius:4px;color:var(--fg-2);background:var(--sunken)}.m{display:inline-block;width:52px;text-align:center;font:700 10.5px/20px var(--mono);border-radius:4px;flex:none;color:var(--fg-2);background:var(--sunken)}.GET{color:var(--get);background:var(--get-bg)}.POST{color:var(--post);background:var(--post-bg)}.PUT{color:var(--put);background:var(--put-bg)}.PATCH{color:var(--patch);background:var(--patch-bg)}.DELETE{color:var(--del);background:var(--del-bg)}.key{font-family:var(--mono);font-size:12.5px;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.key i{font-style:normal;color:var(--accent)}.key .o{font:500 10.5px/16px var(--sans);padding:0 5px;margin-right:6px;border-radius:4px;background:var(--sunken);color:var(--fg-3);box-shadow:inset 0 0 0 1px var(--line)}.rq{font:500 10.5px/16px var(--sans);padding:0 5px;border-radius:4px;color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);white-space:nowrap}.key s{text-decoration:none;color:var(--fg-3)}.key b{font-weight:600}.kl{display:flex;align-items:center;gap:8px;min-width:0;color:inherit}a.kl:hover{text-decoration:none}a.kl:hover .key{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.key.st{font-family:var(--sans);font-size:13px}meter{appearance:none;width:64px;height:6px;border-radius:3px;vertical-align:middle;background:var(--track);border:0}meter::-webkit-meter-bar{background:linear-gradient(90deg,transparent calc(80% - 1px),var(--fg-3) calc(80% - 1px),var(--fg-3) 80%,transparent 80%),var(--track);border:0;border-radius:3px;height:6px}meter::-webkit-meter-optimum-value{background:var(--ok-mark);border-radius:3px}meter::-webkit-meter-suboptimum-value{background:var(--warn-mark);border-radius:3px}meter::-webkit-meter-even-less-good-value{background:var(--bad-mark);border-radius:3px}meter::-moz-meter-bar{background:var(--ok-mark);border-radius:3px}meter:-moz-meter-sub-optimum::-moz-meter-bar{background:var(--warn-mark)}meter:-moz-meter-sub-sub-optimum::-moz-meter-bar{background:var(--bad-mark)}.hr{display:inline-flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums;font-size:12.5px;white-space:nowrap}.hr b{font-weight:500;min-width:40px;text-align:right}.hr .ov{color:var(--bad);font-weight:600}.hr .nr{color:var(--warn)}.vlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:12px}.vio{position:relative;padding:14px 16px 14px 20px;display:grid;gap:8px;overflow:hidden;align-content:start}.vio:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--bad-mark)}.vio.mu:before{background:var(--mute-mark)}.vio .top{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.vio .top .src{margin-left:auto}.rule{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--fg-2);font-variant-numeric:tabular-nums;flex-wrap:wrap}.rule b{color:var(--fg);font-weight:600}.rule meter{width:96px}.hint{display:flex;gap:8px;font-size:13px;color:var(--fg-2);line-height:1.45}.hint .i{color:var(--warn);margin-top:1px}.toggle{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:var(--r);background:var(--sunken)}.toggle button{border:0;background:none;font:500 12px var(--sans);color:var(--fg-2);height:24px;padding:0 10px;border-radius:6px;cursor:pointer}.toggle button[aria-pressed=true]{background:var(--surface);color:var(--fg);box-shadow:var(--sh-1),0 0 0 1px var(--line)}.rank{list-style:none;margin:0;padding:8px 8px 12px;counter-reset:r}.rank li{counter-increment:r;display:grid;grid-template-columns:16px minmax(0,1fr) auto;column-gap:8px;row-gap:6px;align-items:center;padding:8px;border-radius:var(--r-sm)}.rank li:hover{background:var(--hover)}.rank li:before{content:counter(r);font-size:11px;color:var(--fg-3);font-variant-numeric:tabular-nums;grid-row:1}.rank .kl{grid-column:2 / -1;gap:6px}.rank .m{width:auto;padding:0 4px;font-size:9.5px;line-height:16px}.rank .key{font-size:12px}.rank .tb{grid-column:2;grid-row:2}.rank .v{grid-column:3;grid-row:2;min-width:64px;text-align:right;font-size:12px;font-variant-numeric:tabular-nums;color:var(--fg-2);white-space:nowrap}.rank .v b{color:var(--fg);font-weight:600}.tb{display:block;height:4px;border-radius:2px;background:var(--track);overflow:hidden}.tb>span{display:block;height:100%;border-radius:2px;background:var(--bar-hi)}.tb.bad>span{background:var(--bad-mark)}.tb.warn>span{background:var(--warn-mark)}.tb.neu>span{background:var(--bar)}.tw{width:72px}.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}.tl{list-style:none;margin:0;padding:8px}.tl li{display:grid;grid-template-columns:minmax(0,1fr) 88px 72px;gap:12px;align-items:center;padding:8px;border-radius:var(--r-sm);font-size:13px}.tl.two li{grid-template-columns:minmax(0,1fr) auto}.tl li:hover{background:var(--hover)}.tt{min-width:0}.tt>span,.tt>.kl{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt>.kl{display:flex}.tt .sub{font:12px var(--mono);margin-top:2px}.tl .num{font-weight:600;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.tl .num .sub{font-weight:400;font-size:12px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line)}.search{display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);color:var(--fg-3);width:260px;max-width:100%}.search input{border:0;outline:0;background:none;font:13px var(--sans);color:var(--fg);width:100%}.search:focus-within{box-shadow:var(--focus)}.fg{display:inline-flex;gap:4px;align-items:center;flex-wrap:wrap;padding-left:8px;border-left:1px solid var(--line)}.fg>span{font-size:12px;color:var(--fg-3);margin-right:4px}.flt{height:28px;padding:0 10px;border:1px dashed var(--line-2);border-radius:14px;background:none;color:var(--fg-2);font:500 12px var(--sans);cursor:pointer;display:inline-flex;align-items:center;gap:6px}.flt[aria-pressed=true]{border-style:solid;border-color:var(--accent);background:var(--accent-soft);color:var(--accent-2)}.count{margin-left:auto;font-size:12px;color:var(--fg-3);font-variant-numeric:tabular-nums}.scroll{overflow-x:auto}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}caption{text-align:left;padding:0;height:0;overflow:hidden}th{font-size:12px;font-weight:500;color:var(--fg-3);text-align:left;padding:8px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--sunken)}th.num{text-align:right}th button{all:unset;cursor:pointer;display:inline-flex;gap:4px;align-items:center}th button:hover{color:var(--fg)}th button:focus-visible{box-shadow:var(--focus);border-radius:4px}th[aria-sort=descending] button:after{content:"\u2193";font-size:11px;color:var(--accent)}th[aria-sort=ascending] button:after{content:"\u2191";font-size:11px;color:var(--accent)}td,tbody th{padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle;background:var(--surface);color:var(--fg);font-size:13px;font-weight:400}tbody:last-child tr:last-child>*,tbody:last-child tr.drow:last-child>*{border-bottom:0}.keys>tbody>tr:first-child,.tests tbody tr{transition:background .12s}.js .keys>tbody>tr:first-child:hover>*,.tests tbody tr:hover>*{background:var(--hover)}.js .keys>tbody>tr:first-child{cursor:pointer}.keys>tbody>tr.sel>*{background:var(--accent-soft)}th.k{max-width:440px;padding-left:16px;display:table-cell}th.k:before{content:"";display:inline-block;vertical-align:middle;width:6px;height:6px;border-radius:50%;margin-right:10px;background:var(--ok-mark)}th.k .kl{display:inline-flex;vertical-align:middle;width:max-content;max-width:360px}th.k .key{white-space:normal;overflow-wrap:anywhere}tr.blocking th.k:before,tr.violation th.k:before{background:var(--bad-mark)}tr.muted th.k:before{background:var(--mute-mark)}tr.not-evaluated th.k:before{background:none;box-shadow:inset 0 0 0 1.5px var(--mute-mark)}tr.blocking th.k{box-shadow:inset 3px 0 0 var(--bad-mark)}td.r>*+*{margin-left:6px}td.r .why,td.num .why{display:block;margin:4px 0 0;color:var(--fg-3);font-size:12px}td .lim{color:var(--fg-3);font-size:12px;font-weight:400}td.ov{color:var(--bad);font-weight:600}td.e{color:var(--bad);font-weight:500}td.z{color:var(--fg-3)}td.loc{font:12px var(--mono);color:var(--fg-3)}.tfoot{padding:10px 16px;font-size:12px;color:var(--fg-3);border-top:1px solid var(--line)}.dep{display:inline-block;position:relative;width:16px;height:4px;margin-right:8px;vertical-align:2px;background:radial-gradient(circle,var(--line-2) 2px,transparent 2px) 0 0 / 6px 4px repeat-x}.dep:before{content:"";position:absolute;inset:0 auto 0 0;background:radial-gradient(circle,var(--fg-3) 2px,transparent 2px) 0 0 / 6px 4px repeat-x}.d1:before{width:4px}.d2:before{width:10px}.d3:before{width:16px}.tests th.tc{max-width:360px}.tc>span{display:block;overflow:hidden;text-overflow:ellipsis}.tc .tn{font-weight:500;color:var(--accent)}.tc .sub{font-size:12px;margin-top:2px}td.tk>*{display:flex;gap:6px;align-items:center}td.tk>*+*{margin-top:4px}td.tk2>*{flex-direction:column;align-items:flex-start;gap:0}.tk .kl{display:inline-flex}.tk .m{width:auto;padding:0 4px;font-size:9.5px;line-height:16px}.drow>td{white-space:normal;background:var(--bg)}.js .drow{display:none}.drow summary{cursor:pointer;color:var(--accent);font-weight:500}.kd{padding:0 4px 12px;max-width:920px}.kh{padding-top:12px}.fk{display:block;word-break:break-all;font-size:14px;font-weight:600}.pills{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap;align-items:center}.ds{padding-top:20px}.ds>h4{font-size:12px;font-weight:600;color:var(--fg-2);margin-bottom:10px;display:flex;justify-content:space-between;gap:8px;align-items:baseline}.ds>h4 .sub{font-weight:400}.hints{list-style:none;display:grid;gap:8px;margin:20px 0 0;padding:12px 14px;border-radius:var(--r);background:var(--warn-soft);border:1px solid color-mix(in srgb,var(--warn-mark) 30%,transparent)}.hints li{display:flex;gap:8px;font-size:13px}.hints .i{color:var(--warn);margin-top:1px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r);margin:0;background:var(--surface)}.stats div{padding:10px 12px;border-left:1px solid var(--line)}.stats div:first-child{border-left:0}.stats dt{font-size:11px;color:var(--fg-3)}.stats dd{margin:0;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.stats dd small{font-size:11px;color:var(--fg-3);font-weight:400}.stats .ov dd{color:var(--bad)}.ct{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;overflow-x:auto}.ct td,.ct th{padding:8px 10px}.ct thead th{background:none}.ck td{text-align:right;font-variant-numeric:tabular-nums}.ck td:nth-last-child(-n+2){text-align:left}.ck tr.ov td:nth-child(2){color:var(--bad);font-weight:600}.legend{display:flex;gap:8px 16px;font-size:12px;color:var(--fg-3);margin-top:8px;flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:6px}.legend i{width:10px;height:10px;border-radius:2px;display:inline-block}.legend .lg-lim{border-top:2px dashed var(--bad-mark);height:0;border-radius:0}.stc{display:flex;gap:6px;flex-wrap:wrap}.stc span{font:12px var(--mono);padding:2px 8px;border-radius:var(--r-sm);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line)}.stc b{font-weight:600}.stc .e{color:var(--bad)}.facts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px;font-size:12.5px;color:var(--fg-2)}.samples{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}.samples li{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:10px 12px;border-top:1px solid var(--line);font-size:13px}.samples li:first-child{border-top:0}.samples b{font-variant-numeric:tabular-nums}.samples .sub{font-family:var(--sans)}.samples .url{font:12px var(--mono);color:var(--fg-2);white-space:normal;overflow-wrap:anywhere}.ds .tl{padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}.kdlg{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);padding:0;border:0;border-radius:var(--r-lg);background:var(--surface);color:var(--fg);box-shadow:var(--sh-3);overflow-y:auto;overscroll-behavior:contain}.kdlg::backdrop{background:#1018287f}@media(prefers-reduced-motion:no-preference){.kdlg[open]{animation:pop .12s ease-out}}@keyframes pop{0%{opacity:0;transform:translateY(8px)}}.dh{position:sticky;top:0;z-index:2;background:var(--surface);border-bottom:1px solid var(--line);padding:16px 20px 14px}.dh .nav{display:flex;gap:4px;align-items:center;margin-bottom:10px}.dh .nav .sub{font-size:12px;margin-right:auto}#dlg-title{font:600 14px/20px var(--mono);word-break:break-all}#dlg-title:focus-visible{box-shadow:none}.dh .kh{padding-top:0}.dh .fkl{display:none}.db{padding:0 20px 8px}.db .kd{padding:0;max-width:none}.dfoot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 20px 20px}.copy-out input{font:12px var(--mono);width:min(520px,70vw);margin-left:8px}svg.ch,svg.split,svg.bar{display:block;width:100%;height:auto}svg.hist,svg.bar{max-width:720px}.ch text,svg.bar text{font:10.5px var(--sans);fill:var(--fg-3);font-variant-numeric:tabular-nums}.as{text-anchor:start}.am{text-anchor:middle}.ae{text-anchor:end}.hist .gr,.wf .wg{stroke:var(--line);stroke-width:1;stroke-dasharray:2 3;fill:none}.hist .ha{stroke:var(--line-2)}.hist .bars{fill:var(--bar)}.hist .bars-hi{fill:var(--bad-mark)}.hist .hm{stroke:var(--fg-2);stroke-width:1.25}.hist .hl{stroke:var(--bad-mark);stroke-width:1.5;stroke-dasharray:4 3}.hist text{fill:var(--fg-2);font-weight:600}.hist .ht text{fill:var(--fg-3);font-weight:400}.split .st{fill:var(--bar-hi)}.split .so{fill:var(--track);stroke:var(--line-2)}.bar-axis{stroke:var(--line-2)}.bar-range{fill:var(--bar)}.bar-mark{stroke:var(--fg-2);stroke-width:1.5}.bar-limit{stroke:var(--bad-mark);stroke-dasharray:4 3}svg.bar .bar-limit-text{fill:var(--bad)}.wl{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.wf-h{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}.wf-h h4{font-size:14px;font-weight:600;overflow-wrap:anywhere}.wf-h .sub{font-size:12px;margin-top:2px}.wf-h dl{display:flex;gap:24px;margin:0}.wf-h dt{font-size:11px;color:var(--fg-3)}.wf-h dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.wfs{padding:8px 16px 16px}.wfs svg{min-width:720px}.wf .sep{stroke:var(--line)}.wf use{font:10.5px var(--mono);fill:var(--fg-2)}.wkm{font-weight:700}.wkm.mGET{fill:var(--get)}.wkm.mPOST{fill:var(--post)}.wkm.mPUT{fill:var(--put)}.wkm.mPATCH{fill:var(--patch)}.wkm.mDELETE{fill:var(--del)}.wkp{fill:var(--accent)}.wf g rect{fill:var(--bar-hi)}.wf .we rect,.wf .we path{fill:var(--bad-mark)}.wf .ww rect{fill:var(--warn-mark)}.wf .wm rect{fill:var(--mute-mark)}.wf g path{fill:var(--bad-mark);stroke:var(--surface);stroke-width:1.5}.wf .d{font-size:10px}.wf g:hover use,.wf g:hover text{fill:var(--fg)}.wf g:hover rect{opacity:.85}.sh{font-size:13px;font-weight:600;color:var(--fg-2);margin:8px 0 0}.wn{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:4px 12px;padding:16px}.wn .wi{width:32px;height:32px;border-radius:var(--r);display:grid;place-items:center;background:var(--warn-soft);color:var(--warn);grid-row:1 / 4}.wn.err .wi{background:var(--bad-soft);color:var(--bad)}.wn code{font:600 12.5px var(--mono);align-self:center;overflow-wrap:anywhere}.wn p{grid-column:2 / -1;font-size:13.5px;overflow-wrap:anywhere}.wn .hint .i{color:var(--accent)}.wn .n{align-self:start}.hl-err .wn{border-color:var(--bad-mark)}.kvl{display:grid;grid-template-columns:140px minmax(0,1fr);gap:8px 16px;margin:0;padding:16px;font-size:13px}.kvl dt{color:var(--fg-3)}.kvl dd{margin:0;min-width:0;overflow-wrap:anywhere}.plain{margin:4px 0 0;padding-left:16px}details.cfg summary{padding:14px 16px;cursor:pointer;font-weight:600;font-size:13px;list-style:none;display:flex;gap:8px;align-items:center}details.cfg summary::-webkit-details-marker{display:none}details.cfg summary:before{content:"";width:6px;height:6px;flex:none;border-right:1.5px solid var(--fg-3);border-bottom:1.5px solid var(--fg-3);transform:rotate(-45deg);transition:transform .15s}details.cfg[open] summary:before{transform:rotate(45deg)}details.cfg pre{margin:0;padding:16px;border-top:1px solid var(--line);font:12px/1.6 var(--mono);color:var(--fg-2);overflow-x:auto;background:var(--sunken);border-radius:0 0 var(--r-lg) var(--r-lg)}details.cfg .scroll{border-top:1px solid var(--line)}.empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:40px 24px;color:var(--fg-2)}.empty .ei{width:44px;height:44px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line);color:var(--fg-3)}.empty h3{font-size:15px;color:var(--fg)}.empty p{font-size:13px;max-width:56ch}.empty.sm{padding:20px 16px;gap:6px}.empty.sm .i{color:var(--ok-mark)}.note{display:flex;gap:10px;padding:12px 14px;border-radius:var(--r);background:var(--accent-soft);color:var(--fg);font-size:13px;align-items:flex-start}.note .i{color:var(--accent);margin-top:1px}.note code{background:var(--surface);padding:1px 5px;border-radius:4px}footer{padding:24px 0 40px;font-size:12px;color:var(--fg-3);border-top:1px solid var(--line)}@media(max-width:1100px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1023px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi:nth-child(4){border-left:0}.kpi:nth-child(n+4){border-top:1px solid var(--line)}.hero{grid-template-columns:minmax(0,1fr)}.subst{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:16px;min-width:0}}@media(max-width:720px){.grid2,.vlist{grid-template-columns:minmax(0,1fr)}}@media(max-width:599px){.wrap{padding:0 16px}.tabs{margin:16px -16px 0;padding:4px 16px 0}.seg a{padding:3px 12px 0}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi{padding:12px 14px}.kpi:nth-child(n){border-left:1px solid var(--line);border-top:1px solid var(--line)}.kpi:nth-child(odd){border-left:0}.kpi:nth-child(-n+2){border-top:0}.kv{font-size:20px;line-height:28px}.grid4{grid-template-columns:minmax(0,1fr)}.hero{padding:20px 16px}.status{font-size:24px;line-height:32px}.v-ic{width:40px;height:40px}.summary{font-size:14px}.ss{grid-template-columns:88px minmax(0,1fr)}.brand{flex:1;min-width:0;overflow:hidden}.brand b{overflow:hidden;text-overflow:ellipsis}.brand .ver{display:none}.meta{order:3;flex:0 0 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.appbar .btn span{display:none}.appbar .btn{width:32px;padding:0;justify-content:center}.vio .rule meter{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats div:nth-child(3){border-left:0}.stats div:nth-child(n+3){border-top:1px solid var(--line)}.tl li{grid-template-columns:minmax(0,1fr) 72px}.tl li>.num:last-child{display:none}.tl.two li>.num:last-child{display:flex}.fg{border-left:0;padding-left:0}.kvl{grid-template-columns:minmax(0,1fr);gap:2px}.kvl dd{margin-bottom:8px}.kdlg{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;border-radius:0}.dh,.dfoot{padding-left:16px;padding-right:16px}.db{padding:0 16px 8px}}@media print{:root{--bg: #ffffff;--sh-1: none;--sh-2: none}.tabs,.toolbar,.btn,.toggle,.js-only,.kdlg,.skip,.status-msg,[data-none],th button:after{display:none!important}.js .panel[hidden]{display:block!important}.js .drow{display:table-row}.scroll,.ct{overflow:visible}tr,.card,.kpi,.wfb,svg{break-inside:avoid}details[data-v]::details-content{content-visibility:visible;display:block}}';
5840
+ var STYLES_SHA256 = "shLzLv0QA/UumVUIqubLpwCwqmv+SeH1rfHBn3IF8z4=";
5841
+ var SCRIPT = '(()=>{const u=document,ee=u.getElementById("report-data")?.textContent??"{}",q=JSON.parse(ee),B={api:q.endpoints??{},step:q.steps??{}},re=q.testBreakdown?.tests??[],te={api:"endpoints",step:"steps"};u.documentElement.classList.add("js");function f(e,n=u){return Array.from(n.querySelectorAll(e))}function A(e,n){return Object.prototype.hasOwnProperty.call(e,n)}const V=u.getElementById("status");function $(e){V!==null&&(V.textContent=e)}function w(e){history.replaceState(null,"",e)}const E=u.querySelector("[data-tabs]"),T=E===null?[]:f("a[data-tab]",E),H=new Map;for(const e of f("[data-panel]"))H.set(e.dataset.panel??"",e);let U="overview";function ae(e,n){const t=n.offsetLeft,l=t+n.offsetWidth;t<e.scrollLeft?e.scrollLeft=t:l>e.scrollLeft+e.clientWidth&&(e.scrollLeft=l-e.clientWidth)}function h(e,n=!1){if(H.has(e)){U=e;for(const t of T){const l=t.dataset.tab===e;t.setAttribute("aria-selected",String(l)),t.tabIndex=l?0:-1,l&&n&&t.focus(),l&&E!==null&&ae(E,t)}for(const[t,l]of H)l.hidden=t!==e}}if(E!==null){E.setAttribute("role","tablist");for(const e of T){const n=e.dataset.tab??"";e.setAttribute("role","tab"),e.setAttribute("aria-controls",`tab-${n}`);const t=H.get(n);t?.setAttribute("role","tabpanel"),t?.setAttribute("aria-labelledby",e.id)}E.addEventListener("keydown",e=>{const n=T.findIndex(s=>s.dataset.tab===U);let t=-1;if(e.key==="ArrowRight"?t=(n+1)%T.length:e.key==="ArrowLeft"?t=(n-1+T.length)%T.length:e.key==="Home"?t=0:e.key==="End"&&(t=T.length-1),t<0)return;e.preventDefault();const l=T[t]?.dataset.tab??"overview";h(l,!0),w(`#tab=${l}`)})}const I={api:new Map,step:new Map};function j(e){const n=e?.dataset.kind??"api";return A(te,n)?n:"api"}const x=new Map;for(const e of f("table.keys")){const n=j(e);for(const t of Array.from(e.tBodies)){const l=t.querySelector(".fk")?.textContent??"";x.set(t,l),A(B[n],l)&&I[n].set(l,t)}}function ie(e){return j(e.closest("table"))}const _={api:"Endpoint",step:"Step"},d=u.getElementById("key-dialog"),C=u.getElementById("dlg-title"),z=u.getElementById("dlg-pos"),ue=d?.querySelector(".dh-slot")??null,J=d?.querySelector(".db")??null,k=d?.querySelector(".copy-out")??null,G=d?.querySelector(\'[data-act="prev"]\')??null,Q=d?.querySelector(\'[data-act="next"]\')??null;let p=null,K=null;function P(){p!==null&&(p.head!==null&&p.block.prepend(p.head),p.home.appendChild(p.block),p.body.rows[0]?.classList.remove("sel"),p=null)}function ne(e){const n=e.closest("table");return n===null?[e]:Array.from(n.tBodies).filter(t=>!t.hidden)}function W(e,n,t=!1){const l=e.querySelector("details"),s=l?.querySelector(".kd");if(d===null||J===null||l===null||s==null)return;P(),n!==null&&(K=n);const o=s.querySelector(".kh");o!==null&&ue?.appendChild(o),J.appendChild(s),p={body:e,block:s,head:o,home:l},e.rows[0]?.classList.add("sel");const r=ie(e),m=x.get(e)??"",c=ne(e),a=c.indexOf(e);C!==null&&(C.textContent=m),z!==null&&(z.textContent=a<0?_[r]:`${_[r]} ${String(a+1)} of ${String(c.length)}`),G!==null&&(G.disabled=a<=0),Q!==null&&(Q.disabled=a<0||a>=c.length-1),k!==null&&(k.hidden=!0),t&&h(te[r]),d.open||(d.showModal(),u.documentElement.classList.add("modal-open")),d.scrollTop=0,w(`#key=${r}:${encodeURIComponent(m)}`),C?.focus()}let O=!0;function v(e=!0){d===null||!d.open||(O=e,P(),d.close())}d?.addEventListener("close",()=>{P(),u.documentElement.classList.remove("modal-open"),O&&(w(`#tab=${U}`),K?.focus()),O=!0,K=null});function X(e){if(p===null)return;const n=ne(p.body),t=n[n.indexOf(p.body)+e];t!==void 0&&W(t,null)}d?.addEventListener("click",e=>{if(e.target===d){v();return}const n=e.target.closest("[data-act]")?.dataset.act;n==="close"?v():n==="prev"?X(-1):n==="next"&&X(1)});function F(e,n=null){let t=/^#tab[=-]([a-z-]+)$/u.exec(e);if(t!==null){v(!1);const s=t[1]??"";H.has(s)?(h(s),w(`#tab=${s}`)):(h("overview"),$("Tab not found in this report"));return}let l;if(t=/^#key=(api|request|step):(.*)$/su.exec(e),t!==null){let s;try{s=decodeURIComponent(t[2]??"")}catch{s=null}const o=t[1];s!==null&&A(I,o)&&(l=I[o].get(s))}else{if(t=/^#key-(?:api|step)-(\\d+)$/u.exec(e),t===null)return;l=u.getElementById(e.slice(1))?.closest("tbody")??void 0}if(l===void 0){v(!1),h("overview"),$("Key not found in this report");return}W(l,n,n===null)}u.addEventListener("click",e=>{const n=e.target,t=n.closest(\'a[href^="#"]\');if(t===null){const s=n.closest("table.keys > tbody > tr:first-child"),o=s?.parentElement;if(s==null||!(o instanceof HTMLTableSectionElement)||n.closest("button, input, label, summary")!==null)return;W(o,s.querySelector(\'a[href^="#key-"]\'));return}const l=t.getAttribute("href")??"";if(t.hasAttribute("data-show-violations")){e.preventDefault(),v(!1),h("endpoints"),w("#tab=endpoints"),me();return}/^#(?:tab-|key-)/u.test(l)&&(e.preventDefault(),F(l,t))});window.addEventListener("hashchange",()=>F(location.hash));function ce(e){const n=e.evaluation.checks;if(n.length===0)return null;let t=-1/0;for(const l of n)t=Math.max(t,l.usage??1/0);return t}function de(e,n,t){if(e===void 0)return null;switch(n){case"headroom":return ce(e);case"samples":return e.successCount;case"errors":return e.errorCount;case"p50":return e.stats?.percentiles.p50??null;case"percentile":return e.stats?.percentiles[t]??null;case"p99":return e.stats?.percentiles.p99??null;case"max":return e.stats?.max??null;case"ttfb":return e.ttfb?.p50??null;case"tests":return e.testCount;default:return null}}function fe(e,n){if(e===void 0)return null;switch(n){case"runs":return e.executions;case"requests":return e.requestCount;case"errors":return e.errorCount;case"total":return e.totalMs;case"avg":return Math.round(e.totalMs/e.executions*10)/10;case"longest":return e.maxRequestMs;case"keys":return e.keyCount;case"violations":return e.violatedKeyCount;default:return null}}function le(e,n,t){const l=f("th[data-sort]",e);let s=null;for(const o of l){const r=o.dataset.sort??"";o.querySelector("button")?.addEventListener("click",()=>{const c=r==="key"||r==="title"||r==="result"||r==="source"?"ascending":"descending",a=s?.column===r?s.direction==="ascending"?"descending":"ascending":c;s={column:r,direction:a};const L=a==="ascending"?1:-1,g=[...n].sort((i,b)=>{if(r==="key"||r==="title")return(i.text<b.text?-1:i.text>b.text?1:0)*L||i.order-b.order;const y=i.value(r),M=b.value(r);return y===null||M===null?y===M?i.order-b.order:y===null?1:-1:(y-M)*L||i.order-b.order});for(const i of g)t.appendChild(i.element);for(const i of l)i===o?i.setAttribute("aria-sort",a):i.removeAttribute("aria-sort")})}}const se=new Map;function oe(e,n){const t=u.querySelector(`[data-for="${e}"]`);if(t===null)return;const l=t.querySelector(\'input[type="search"]\'),s=f("button[data-f]",t),o=t.querySelector("[data-count]"),r=t.querySelector("[data-none]");function m(){const c=(l?.value??"").toLowerCase(),a=new Map;for(const g of s){if(g.getAttribute("aria-pressed")!=="true")continue;const i=g.dataset.f??"",b=a.get(i)??new Set;b.add(g.dataset.v??""),a.set(i,b)}let L=0;for(const g of n){let i=g.text.includes(c);for(const[b,y]of a){const M=g.attributes[b]??null;(M===null||!y.has(M))&&(i=!1)}g.element.hidden=!i,i&&L++}o!==null&&(o.textContent=`showing ${L} of ${n.length}`),r!==null&&(r.hidden=L>0)}for(const c of s)c.addEventListener("click",()=>{c.setAttribute("aria-pressed",String(c.getAttribute("aria-pressed")!=="true")),m()});l?.addEventListener("input",m);for(const c of f("[data-reset]",t))c.addEventListener("click",()=>{l!==null&&(l.value="");for(const a of s)a.setAttribute("aria-pressed","false");m()});se.set(e,c=>{l!==null&&(l.value="");for(const a of s){const L=c[a.dataset.f??""]?.includes(a.dataset.v??"")===!0;a.setAttribute("aria-pressed",String(L))}m()})}function me(){se.get("table-api")?.({g:["0","1"]})}for(const e of f("table.keys")){const n=j(e),t=e.dataset.level??"p95",l=Array.from(e.tBodies),s=l.map(o=>{const r=x.get(o)??"";return{element:o,order:Number(/\\d+$/u.exec(o.querySelector("details")?.id??"")?.[0]??"0"),text:r,value:m=>m==="result"?Number(o.dataset.g??"3"):m==="source"?Number(r.startsWith("request ")):de(A(B[n],r)?B[n][r]:void 0,m,t)}});le(e,s,e),oe(e.id,l.map(o=>({element:o,text:(x.get(o)??"").toLowerCase(),attributes:{g:o.dataset.g??null,s:o.dataset.s??null,m:o.hasAttribute("data-m")?"":null}})))}const N=u.querySelector("#table-tests"),D=N?.tBodies[0];if(N!==null&&D!==void 0){const e=Array.from(D.rows),n=t=>re[Number(t.dataset.i??"-1")];le(N,e.map(t=>({element:t,order:Number(t.dataset.i??"0"),text:n(t)?.title??"",value:l=>fe(n(t),l)})),D),oe("table-tests",e.map(t=>{const l=n(t);return{element:t,text:`${l?.title??""}\\0${l?.file??""}`.toLowerCase(),attributes:{v:t.hasAttribute("data-v")?"":null}}}))}const Y=u.querySelector("[data-kinds]");if(Y!==null){const e=f("button[data-k]",Y),n=t=>{for(const l of e)l.setAttribute("aria-pressed",String(l.dataset.k===t));for(const l of f("ol[data-rank]")){let s=0;for(const o of f("li",l)){const r=o.dataset.k===t&&s<10;o.hidden=!r,r&&s++}l.hidden=s===0;for(const o of f("[data-k-empty]",l.parentElement??u))o.hidden=o.dataset.kEmpty!==t}};for(const t of e)t.addEventListener("click",()=>n(t.dataset.k??"api"));n(e[0]?.dataset.k??"api")}u.addEventListener("click",e=>{if(e.target.closest("[data-copy]")===null)return;const n=location.href,t=()=>{const l=k?.querySelector("input");k===null||l==null||(k.hidden=!1,l.value=n,l.focus(),l.select())};if(navigator.clipboard===void 0){t();return}navigator.clipboard.writeText(n).then(()=>$("Link copied"),t)});const Z=u.getElementById("download"),R=u.getElementById("download-link");Z instanceof HTMLButtonElement&&R instanceof HTMLAnchorElement&&Z.addEventListener("click",()=>{const e=URL.createObjectURL(new Blob([ee],{type:"application/json"}));R.href=e,R.click(),setTimeout(()=>URL.revokeObjectURL(e),1e3)});for(const e of f(".js-only"))e.hidden=!1;let S=[];window.addEventListener("beforeprint",()=>{v(!1),S=f("details[data-v]:not([open])");for(const e of S)e.open=!0});window.addEventListener("afterprint",()=>{for(const e of S)e.open=!1;S=[]});h("overview");F(location.hash);})();';
5842
+ var SCRIPT_SHA256 = "Jda/ayo/X8RNPoTXXep2nOa041MPnyTQ/N6biJU+P6k=";
5669
5843
 
5670
5844
  // src/html/icons.ts
5671
5845
  var SYMBOLS = {
@@ -5699,11 +5873,16 @@ function iconSprite() {
5699
5873
  function icon(name) {
5700
5874
  return trustedHtml(`<svg class="i" aria-hidden="true"><use href="#i-${name}"/></svg>`);
5701
5875
  }
5876
+ var CROWN = "M10 2.5h4M12 2.5v3M18.4 7.6l1.5-1.5";
5877
+ var BARS = "M8.5 17.5v-2m3.5 2V12m3.5 5.5V14";
5702
5878
  function logo() {
5703
5879
  return trustedHtml(
5704
- '<svg class="logo" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect width="24" height="24" rx="6"/><path d="M6 17v-3m4 3V9m4 8v-5m4 5V6"/></svg>'
5880
+ `<svg class="logo" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path class="crown" d="${CROWN}"/><circle cx="12" cy="14" r="8.5"/><path class="bars" d="${BARS}"/></svg>`
5705
5881
  );
5706
5882
  }
5883
+ var FAVICON_URI = `data:image/svg+xml,${encodeURIComponent(
5884
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke-linecap="round" stroke-width="2"><path d="${CROWN}" stroke="#4f46e5"/><circle cx="12" cy="14" r="8.5" fill="#4f46e5"/><path d="${BARS}" stroke="#fff"/></svg>`
5885
+ )}`;
5707
5886
 
5708
5887
  // src/html/bar.ts
5709
5888
  var WIDTH = 640;
@@ -5932,16 +6111,16 @@ function waterfallSvg(waterfall2, id) {
5932
6111
  const labels = /* @__PURE__ */ new Map();
5933
6112
  for (const req of rows) {
5934
6113
  if (labels.has(req.key)) continue;
5935
- const { method, origin, path } = splitEndpoint(req.key);
6114
+ const { method, origin, path, request } = splitEndpoint(req.key);
5936
6115
  const rest = truncateMiddle2(
5937
- `${origin}${path}`,
6116
+ `${request ? "request " : ""}${origin}${path}`,
5938
6117
  Math.max(8, WATERFALL_KEY_MAX - method.length - 1)
5939
6118
  );
5940
6119
  const parts = rest.split(/(?<=\/)(:[A-Za-z][\w-]*)/u);
5941
6120
  const ref = `${id}-${String(labels.size)}`;
5942
6121
  labels.set(req.key, {
5943
6122
  ref,
5944
- svg: html`<text id="${ref}" class="wl"><tspan class="mt m${method}">${method}</tspan><tspan x="${W_PATH}">${parts.map((p, i) => i % 2 === 1 ? html`<tspan class="p">${p}</tspan>` : p)}</tspan></text>`
6123
+ svg: html`<text id="${ref}"><tspan class="wkm m${method}">${method}</tspan><tspan x="${W_PATH}">${parts.map((p, i) => i % 2 === 1 ? html`<tspan class="wkp">${p}</tspan>` : p)}</tspan></text>`
5945
6124
  });
5946
6125
  }
5947
6126
  const defs = html`<defs>${[...labels.values()].map((l) => l.svg)}</defs>`;
@@ -6082,10 +6261,21 @@ function usageClass(usage, failed) {
6082
6261
  if (failed || usage === null || usage > 1) return "ov";
6083
6262
  return usage >= NEAR_LIMIT ? "nr" : "";
6084
6263
  }
6085
- function usageMeter(usage, failed, long = false) {
6264
+ var SHARE_RULES2 = /* @__PURE__ */ new Set([
6265
+ "apdex",
6266
+ "wilson",
6267
+ "errors"
6268
+ ]);
6269
+ function pointsOver(check2) {
6270
+ if (check2.passed || !SHARE_RULES2.has(check2.rule)) return void 0;
6271
+ return Math.max(1, Math.round(Math.abs(check2.actual - check2.limit) * 100));
6272
+ }
6273
+ function usageMeter(check2, long = false) {
6274
+ const usage = check2.usage;
6275
+ const failed = !check2.passed;
6086
6276
  const value = usage === null ? 1.25 : Math.min(usage, 1.25);
6087
6277
  const cls = usageClass(usage, failed);
6088
- return html`<label class="hr"><meter max="1.25" low="0.9" high="1" optimum="0" value="${value}"></meter><b${cls === "" ? null : html` class="${cls}"`}>${usageText(usage, failed, long)}</b></label>`;
6278
+ return html`<label class="hr"><meter max="1.25" low="0.9" high="1" optimum="0" value="${value}"></meter><b${cls === "" ? null : html` class="${cls}"`}>${usageText(usage, failed, long, pointsOver(check2))}</b></label>`;
6089
6279
  }
6090
6280
  function checkValue(check2, value) {
6091
6281
  if (TIME_RULES4.has(check2.rule)) return formatMs(value);
@@ -6140,7 +6330,7 @@ function checksTable(ctx, agg) {
6140
6330
  html`<td>${checkValue(c, c.actual)}</td>`,
6141
6331
  observed ? html`<td>${c.observed === null ? null : checkValue(c, c.observed)}</td>` : null,
6142
6332
  html`<td>${checkValue(c, c.limit)}</td><td>`,
6143
- ctx.migrated ? DASH : usageMeter(c.usage, !c.passed, true),
6333
+ ctx.migrated ? DASH : usageMeter(c, true),
6144
6334
  html`</td><td>${checkPill(c)}</td></tr>`
6145
6335
  );
6146
6336
  return part(
@@ -6158,9 +6348,23 @@ function msValue(value) {
6158
6348
  const [number, unit] = formatMs(value).split(" ");
6159
6349
  return html`${number}<small> ${unit}</small>`;
6160
6350
  }
6161
- function statsGrid(ctx, agg) {
6351
+ function notTimedNote(ctx, kind2, agg) {
6352
+ if (agg.successCount > 0 || agg.count === 0) return null;
6353
+ const errors = ctx.report.config.checks?.errors?.statuses ?? DEFAULT_ERROR_STATUSES;
6354
+ const counted = (label) => kind2 === "step" ? label !== "ok" : isErrorStatus(label, errors);
6355
+ const labels = Object.entries(agg.statuses).filter(([label]) => !counted(label)).sort(([a, n], [b, m]) => m - n || compareText8(a, b));
6356
+ const shown = labels.slice(0, NOT_TIMED_LABELS).map(([label, n]) => `${String(n)} \xD7 ${label}`);
6357
+ const more = labels.length - shown.length;
6358
+ if (shown.length === 0) return null;
6359
+ return `${shown.join(", ")}${more > 0 ? ` +${String(more)} more` : ""} (not timed)`;
6360
+ }
6361
+ var NOT_TIMED_LABELS = 3;
6362
+ function statsGrid(ctx, kind2, agg) {
6162
6363
  const stats2 = agg.stats;
6163
- if (stats2 === null) return html`<div class="ds"><p>No successful timed samples.</p></div>`;
6364
+ if (stats2 === null) {
6365
+ const note = notTimedNote(ctx, kind2, agg);
6366
+ return html`<div class="ds"><p>No successful timed samples${note === null ? "" : `: ${note}`}.</p></div>`;
6367
+ }
6164
6368
  const limits = agg.evaluation.limits;
6165
6369
  const cell2 = (label, value, limit) => {
6166
6370
  const over = value !== void 0 && limit !== null && value > limit;
@@ -6204,7 +6408,7 @@ function distribution(ctx, agg) {
6204
6408
  }
6205
6409
  function locationText(agg) {
6206
6410
  const loc = agg.location;
6207
- return loc == null ? DASH : `${loc.file}:${String(loc.line)}`;
6411
+ return loc == null ? "boxed step (no location)" : `${loc.file}:${String(loc.line)}`;
6208
6412
  }
6209
6413
  function ttfbSplit(agg) {
6210
6414
  const ttfb = agg.ttfb;
@@ -6238,15 +6442,17 @@ function testRef2(t) {
6238
6442
  const project = t.project === "" ? "default project" : t.project;
6239
6443
  return html`<code>${t.file}:${t.line}</code> · ${project}`;
6240
6444
  }
6241
- function statusesPart(ctx, kind2, agg) {
6445
+ function statusesPart(ctx, kind2, key2, agg) {
6446
+ const request = kind2 === "api" && endpointSource(key2) === "request";
6242
6447
  const errors = ctx.report.config.checks?.errors?.statuses ?? DEFAULT_ERROR_STATUSES;
6243
6448
  const labels = Object.keys(agg.statuses).sort();
6244
6449
  const facts2 = [
6245
6450
  html`<span>From failed tests: ${agg.fromFailedTests}</span>`,
6246
- agg.timeSources.node > 0 ? html`<span>Time sources: browser ${agg.timeSources.browser}, node ${agg.timeSources.node}</span>` : null,
6451
+ agg.timeSources.node > 0 && !request ? html`<span>Time sources: browser ${agg.timeSources.browser}, node ${agg.timeSources.node}</span>` : null,
6247
6452
  kind2 === "step" ? html`<span>Defined at: <code>${locationText(agg)}</code></span>` : null,
6248
6453
  kind2 === "step" && (agg.stepErrorsFromFailedTests ?? 0) > 0 ? html`<span>Step errors in failed tests (not counted): ${agg.stepErrorsFromFailedTests ?? 0}</span>` : null,
6249
- kind2 === "api" ? html`<span>TTFB: ${agg.ttfb === null ? DASH : `p50 ${formatMs(agg.ttfb.p50)}, p95 ${formatMs(agg.ttfb.p95)}`}</span>` : null,
6454
+ request ? html`<span>Source: request (worker clock)</span>` : null,
6455
+ kind2 === "api" && !request ? html`<span>TTFB: ${agg.ttfb === null ? DASH : `p50 ${formatMs(agg.ttfb.p50)}, p95 ${formatMs(agg.ttfb.p95)}`}</span>` : null,
6250
6456
  html`<span>Retained samples: ${agg.samples.sampled ? `${String(agg.samples.retained)} (uniform sample of ${String(agg.successCount)}; the histogram shows them)` : `${String(agg.samples.retained)} (all successful)`}</span>`
6251
6457
  ];
6252
6458
  return part(
@@ -6264,11 +6470,11 @@ function keyDetails(ctx, kind2, key2, agg) {
6264
6470
  html`<div class="kd">`,
6265
6471
  keyHeader(kind2, key2, agg),
6266
6472
  hints.length === 0 ? null : html`<ul class="hints">${hints.map((h) => html`<li>${icon("bulb")}${hintText(h, ctx.level, agg.evaluation.muted)}</li>`)}</ul>`,
6267
- statsGrid(ctx, agg),
6473
+ statsGrid(ctx, kind2, agg),
6268
6474
  distribution(ctx, agg),
6269
6475
  checksTable(ctx, agg),
6270
6476
  kind2 === "api" ? ttfbSplit(agg) : null,
6271
- statusesPart(ctx, kind2, agg),
6477
+ statusesPart(ctx, kind2, key2, agg),
6272
6478
  agg.slowest.length === 0 ? null : part(
6273
6479
  "Slowest samples",
6274
6480
  null,
@@ -6310,9 +6516,13 @@ function limitCell(value, limit) {
6310
6516
  function headroomCell(ctx, agg) {
6311
6517
  const top = ctx.migrated ? void 0 : topCheck(agg.evaluation.checks);
6312
6518
  if (top === void 0) return html`<td class="z">${DASH}</td>`;
6313
- return html`<td>${usageMeter(top.usage, !top.passed)}</td>`;
6519
+ return html`<td>${usageMeter(top)}</td>`;
6314
6520
  }
6315
- function keyRow(ctx, kind2, key2, agg, columns) {
6521
+ function samplesCell(ctx, kind2, agg) {
6522
+ const note = notTimedNote(ctx, kind2, agg);
6523
+ return html`<td class="num">${agg.successCount} / ${agg.count}${note === null ? null : html`<small class="why">${note}</small>`}</td>`;
6524
+ }
6525
+ function keyRow(ctx, kind2, key2, agg, columns, ttfb) {
6316
6526
  const ev = agg.evaluation;
6317
6527
  const s = agg.stats;
6318
6528
  const id = keyAnchor(ctx, kind2, key2) ?? "";
@@ -6322,17 +6532,18 @@ function keyRow(ctx, kind2, key2, agg, columns) {
6322
6532
  return join4(
6323
6533
  html`<tbody data-g="${group}" data-s="${ev.thresholdSource}"${muted ? html` data-m=""` : null}><tr class="${rowClass(ev)}">`,
6324
6534
  html`<th scope="row" class="k">${kind2 === "step" ? stepDepth(key2) : null}${keyLink(ctx, kind2, key2)}</th>`,
6535
+ kind2 === "api" ? html`<td class="es">${endpointSource(key2)}</td>` : null,
6325
6536
  html`<td class="r">${resultPill(ev)}${sourceToken(ev.thresholdSource)}${mutedPill(ev.muted)}`,
6326
6537
  reason === null ? null : html`<small class="why">${reason}</small>`,
6327
6538
  html`</td>`,
6328
6539
  headroomCell(ctx, agg),
6329
- html`<td class="num">${agg.successCount} / ${agg.count}</td>`,
6540
+ samplesCell(ctx, kind2, agg),
6330
6541
  agg.errorCount === 0 ? html`<td class="num"></td>` : html`<td class="num e">${agg.errorCount}</td>`,
6331
6542
  timeCell(s?.percentiles["p50"]),
6332
6543
  s === null ? timeCell(void 0) : limitCell(s.percentiles[ctx.level], ev.limits.percentile),
6333
6544
  s === null ? timeCell(void 0) : limitCell(s.percentiles["p99"], ev.limits.p99),
6334
6545
  timeCell(s?.max),
6335
- kind2 === "api" ? timeCell(agg.ttfb?.p50) : null,
6546
+ ttfb ? timeCell(agg.ttfb?.p50) : null,
6336
6547
  kind2 === "step" ? html`<td class="loc">${locationText(agg)}</td>` : null,
6337
6548
  html`<td class="num">${agg.testCount}</td></tr>`,
6338
6549
  html`<tr class="drow"><td colspan="${columns}"><details id="${id}"${group <= 1 ? html` data-v=""` : null}>`,
@@ -6369,8 +6580,11 @@ function noMatch(text2) {
6369
6580
  function keyTable(ctx, kind2, title2) {
6370
6581
  const aggregates = aggregatesOf3(ctx.data, kind2);
6371
6582
  const keys = ctx.order[kind2];
6583
+ const ttfb = kind2 === "api" && keys.some((key2) => aggregates[key2]?.ttfb != null);
6372
6584
  const cols = [
6373
6585
  ["key", "Key"],
6586
+ // Browser traffic or APIRequestContext calls (15-REQ-15).
6587
+ ...kind2 === "api" ? [["source", "Source"]] : [],
6374
6588
  ["result", "Result"],
6375
6589
  ["headroom", "Headroom"],
6376
6590
  ["samples", "Samples"],
@@ -6379,7 +6593,7 @@ function keyTable(ctx, kind2, title2) {
6379
6593
  ["percentile", `${ctx.level} / limit`],
6380
6594
  ["p99", "p99 / limit"],
6381
6595
  ["max", "Max"],
6382
- ...kind2 === "api" ? [["ttfb", "TTFB p50"]] : [],
6596
+ ...ttfb ? [["ttfb", "TTFB p50"]] : [],
6383
6597
  ...kind2 === "step" ? [["defined", "Defined at"]] : [],
6384
6598
  ["tests", "Tests"]
6385
6599
  ];
@@ -6410,7 +6624,7 @@ function keyTable(ctx, kind2, title2) {
6410
6624
  column === "defined" ? html`<th scope="col">${label}</th>` : html`<th scope="col" data-sort="${column}"${numeric.has(column) ? html` class="num"` : null}><button type="button">${label}</button></th>`
6411
6625
  )
6412
6626
  )}</tr></thead>`,
6413
- keys.map((key2) => keyRow(ctx, kind2, key2, aggregates[key2], cols.length)),
6627
+ keys.map((key2) => keyRow(ctx, kind2, key2, aggregates[key2], cols.length, ttfb)),
6414
6628
  html`</table></div>`,
6415
6629
  noMatch("No keys match the filters"),
6416
6630
  html`<p class="tfoot">${notes.join(" \xB7 ")}</p></div>`
@@ -6425,15 +6639,23 @@ var MAX_PIPS = 10;
6425
6639
  function sum2(report, field3) {
6426
6640
  return LINK_KINDS.reduce((total, kind2) => total + report.evaluation.counts[kind2][field3], 0);
6427
6641
  }
6428
- function blockingChecks(report) {
6642
+ function failedChecks(report, which = "all") {
6429
6643
  let n = 0;
6430
6644
  for (const kind2 of [report.endpoints, report.steps]) {
6431
6645
  for (const agg of Object.values(kind2)) {
6432
- n += agg.evaluation.checks.filter((c) => !c.passed && c.blocking).length;
6646
+ const ev = agg.evaluation;
6647
+ if (which === "muted" && (ev.muted === null || ev.muted.expired)) continue;
6648
+ n += ev.checks.filter((c) => !c.passed && (which !== "blocking" || c.blocking)).length;
6433
6649
  }
6434
6650
  }
6435
6651
  return n;
6436
6652
  }
6653
+ function blockingChecks(report) {
6654
+ return failedChecks(report, "blocking");
6655
+ }
6656
+ function violationsText(report) {
6657
+ return `${plural3(failedChecks(report), "violation")} in ${plural3(sum2(report, "violations"), "key")}`;
6658
+ }
6437
6659
  function banner(report) {
6438
6660
  const ev = report.evaluation;
6439
6661
  const errors = report.toolErrors;
@@ -6450,7 +6672,6 @@ function banner(report) {
6450
6672
  first2 === void 0 ? "Evaluation could not run." : `The tool reported ${plural3(errors.length, "error")}: ${first2.code} \u2014 ${first2.message}`
6451
6673
  );
6452
6674
  }
6453
- const violations3 = sum2(report, "violations");
6454
6675
  if (ev.status === "failed" && ev.gateEnabled && report.mode === "test") {
6455
6676
  return result2(
6456
6677
  "FAILED",
@@ -6458,12 +6679,12 @@ function banner(report) {
6458
6679
  );
6459
6680
  }
6460
6681
  if (ev.status === "warned") {
6461
- return result2("PASSED WITH WARNINGS", `${plural3(violations3, "violation")}, none blocking.`);
6682
+ return result2("PASSED WITH WARNINGS", `${violationsText(report)}, none blocking.`);
6462
6683
  }
6463
6684
  if (ev.status === "failed") {
6464
6685
  return result2(
6465
6686
  "PASSED WITH WARNINGS",
6466
- `Gate off (thresholds mode): ${plural3(violations3, "violation")} would fail a test run.`
6687
+ `Gate off (thresholds mode): ${violationsText(report)} would fail a test run.`
6467
6688
  );
6468
6689
  }
6469
6690
  if (report.warnings.length > 0) {
@@ -6599,9 +6820,10 @@ function kpis(ctx) {
6599
6820
  const measured = r2.runConditions.projects.filter((p) => p.role === "measured");
6600
6821
  const passes = r2.passes;
6601
6822
  const t = r2.tests;
6602
- const violations3 = sum2(r2, "violations");
6603
- const blocking = sum2(r2, "blockingViolations");
6604
- const muted = sum2(r2, "muted");
6823
+ const keys = sum2(r2, "violations");
6824
+ const violations3 = failedChecks(r2);
6825
+ const blocking = failedChecks(r2, "blocking");
6826
+ const muted = failedChecks(r2, "muted");
6605
6827
  const other = Math.max(0, violations3 - blocking - muted);
6606
6828
  const share = (n) => widthClass(violations3 === 0 ? 0 : n / violations3);
6607
6829
  const split = violations3 === 0 ? null : html`<span class="vsplit" aria-hidden="true">${[
@@ -6631,7 +6853,7 @@ function kpis(ctx) {
6631
6853
  field(
6632
6854
  "Violations",
6633
6855
  violations3,
6634
- `${String(blocking)} blocking \xB7 ${String(muted)} muted`,
6856
+ `${keys === 0 ? "" : `in ${plural3(keys, "key")} \xB7 `}${String(blocking)} blocking \xB7 ${String(muted)} muted`,
6635
6857
  split,
6636
6858
  violations3 > 0 ? " bad" : ""
6637
6859
  ),
@@ -6681,8 +6903,8 @@ function violationCard(ctx, e) {
6681
6903
  const muted = ev.muted !== null && !ev.muted.expired;
6682
6904
  return join4(
6683
6905
  html`<article class="card vio${muted ? " mu" : ""}"><p class="top">${resultPill(ev)}${mutedPill(ev.muted)}${kindToken(e.kind)}${sourceToken(ev.thresholdSource)}</p>`,
6684
- keyLink(ctx, e.kind, e.key),
6685
- top === void 0 ? null : html`<p class="rule"><span>${ruleLabel(top.rule, ctx.level)} <b>${checkValue(top, top.actual)}</b> · limit ${checkValue(top, top.limit)}</span>${ctx.migrated ? null : usageMeter(top.usage, !top.passed)}</p>`,
6906
+ keyLink(ctx, e.kind, e.key, KEY_COLUMN_MAX, true),
6907
+ top === void 0 ? null : html`<p class="rule"><span>${ruleLabel(top.rule, ctx.level)} <b>${checkValue(top, top.actual)}</b> · limit ${checkValue(top, top.limit)}</span>${ctx.migrated ? null : usageMeter(top)}</p>`,
6686
6908
  hint2 === void 0 ? null : html`<p class="hint">${icon("bulb")}<span>${hintText(hint2, ctx.level, ev.muted)}</span></p>`,
6687
6909
  html`</article>`
6688
6910
  );
@@ -6697,8 +6919,8 @@ function violations2(ctx) {
6697
6919
  heading(
6698
6920
  "viol-h",
6699
6921
  "Violations",
6700
- badge(failed.length, "bad"),
6701
- html`<a class="more" href="#tab-endpoints" data-show-violations="">All ${plural3(failed.length, "violation")} →</a>`
6922
+ badge(failedChecks(ctx.report), "bad"),
6923
+ html`<a class="more" href="#tab-endpoints" data-show-violations="">All ${violationsText(ctx.report)} →</a>`
6702
6924
  ),
6703
6925
  html`<div class="vlist">${failed.slice(0, RANKING_SIZE).map((e) => violationCard(ctx, e))}</div></section>`
6704
6926
  );
@@ -6782,7 +7004,7 @@ function rankingCard(ctx, ranking) {
6782
7004
  const item = (e, i) => {
6783
7005
  const top = first2.get(e.kind) ?? 0;
6784
7006
  const tone = ranking.tone(e);
6785
- return html`<li data-k="${e.kind}"${i >= RANKING_SIZE ? html` hidden` : null}>${keyLink(ctx, e.kind, e.key, LIST_KEY_MAX)}<span class="tb${tone === "" ? "" : ` ${tone}`}"><span class="${widthClass(top > 0 && Number.isFinite(top) ? ranking.size(e) / top : 1)}"></span></span><span class="v">${ranking.value(e)}</span></li>`;
7007
+ return html`<li data-k="${e.kind}"${i >= RANKING_SIZE ? html` hidden` : null}>${keyLink(ctx, e.kind, e.key, LIST_KEY_MAX, true)}<span class="tb${tone === "" ? "" : ` ${tone}`}"><span class="${widthClass(top > 0 && Number.isFinite(top) ? ranking.size(e) / top : 1)}"></span></span><span class="v">${ranking.value(e)}</span></li>`;
6786
7008
  };
6787
7009
  return join4(
6788
7010
  html`<section class="card" aria-labelledby="rank-${ranking.id}"><div class="card-h"><h4 id="rank-${ranking.id}">${ranking.title}</h4><span class="sub">${ranking.note}</span></div>`,
@@ -6813,6 +7035,7 @@ function rankingsSection(ctx) {
6813
7035
  function expensiveTests(ctx) {
6814
7036
  const tests = ctx.report.testBreakdown?.tests ?? [];
6815
7037
  if (tests.length === 0) return null;
7038
+ const several = ctx.report.runConditions.projects.filter((p) => p.role === "measured").length > 1;
6816
7039
  return join4(
6817
7040
  html`<section aria-labelledby="exp-h">`,
6818
7041
  heading(
@@ -6822,7 +7045,7 @@ function expensiveTests(ctx) {
6822
7045
  html`<a class="more" href="#tab-tests">All ${plural3(tests.length, "test")} →</a>`
6823
7046
  ),
6824
7047
  html`<div class="card"><ul class="tl">${tests.slice(0, EXPENSIVE_TESTS).map(
6825
- (t) => html`<li><span class="tt"><span>${truncateMiddle2(t.title, 120)}</span><span class="sub">${t.file}:${t.line}</span></span><span class="num">${formatMs(t.totalMs)}<span class="sub">${formatMs(Math.round(t.totalMs / t.executions * 10) / 10)} per run</span></span><span class="num">${t.requestCount}<span class="sub">requests</span></span></li>`
7048
+ (t) => html`<li><span class="tt"><span>${truncateMiddle2(t.title, 120)}</span><span class="sub">${several ? `${t.project === "" ? "default project" : t.project} \xB7 ` : ""}${t.file}:${t.line}</span></span><span class="num">${formatMs(t.totalMs)}<span class="sub">${formatMs(Math.round(t.totalMs / t.executions * 10) / 10)} per run</span></span><span class="num">${t.requestCount}<span class="sub">requests</span></span></li>`
6826
7049
  )}</ul></div></section>`
6827
7050
  );
6828
7051
  }
@@ -6837,7 +7060,7 @@ function mutedSection(ctx) {
6837
7060
  if (evaluation === void 0 || muted === null) continue;
6838
7061
  if (!muted.expired) active++;
6839
7062
  rows.push(
6840
- html`<li><span class="tt">${keyLink(ctx, kind2, key2, LIST_KEY_MAX)}<span class="sub">${KIND_COLUMN[kind2]} · until ${muted.until} · ${muted.note}</span></span><span class="num">${muted.expired ? pill("w", "mute expired") : null}${evaluation.result === "fail" ? pill("f", "has violation") : pill("p", "no violation")}</span></li>`
7063
+ html`<li><span class="tt">${keyLink(ctx, kind2, key2, LIST_KEY_MAX, true)}<span class="sub">${KIND_COLUMN[kind2]} · until ${muted.until} · ${muted.note}</span></span><span class="num">${muted.expired ? pill("w", "mute expired") : null}${evaluation.result === "fail" ? pill("f", "has violation") : pill("p", "no violation")}</span></li>`
6841
7064
  );
6842
7065
  }
6843
7066
  }
@@ -6934,6 +7157,12 @@ function card(id, title2, ...content) {
6934
7157
  function runSection(report) {
6935
7158
  const { ci, host } = report;
6936
7159
  const items = [
7160
+ ...report.suite === void 0 ? [] : [
7161
+ [
7162
+ "Suite",
7163
+ html`<code>${report.suite.name}</code> (${report.suite.source === "package" ? "package name" : "config path"})`
7164
+ ]
7165
+ ],
6937
7166
  ["Package", html`<code>${report.tool.name} v${report.tool.version}</code>`],
6938
7167
  ["Run ID", html`<code>${report.runId}</code>`],
6939
7168
  ["Started", formatDate(report.startedAt)],
@@ -6992,6 +7221,18 @@ function generatedSource(file) {
6992
7221
  typeof count2 === "number" ? `, ${plural3(count2, "sample")}` : ""
6993
7222
  ].join("");
6994
7223
  }
7224
+ function sourceCell(file) {
7225
+ const full = generatedSource(file);
7226
+ const generated = file.generated;
7227
+ if (generated === null) return html`<td>${full}</td>`;
7228
+ const version2 = textOf(field2(field2(generated, "tool"), "version"));
7229
+ const at2 = textOf(field2(generated, "sourceRunStartedAt"));
7230
+ const short = [
7231
+ version2 === null ? "generated" : `generated v${version2}`,
7232
+ ...at2 === null ? [] : [formatDate(at2).slice(0, 10)]
7233
+ ].join(" \xB7 ");
7234
+ return html`<td title="${full}">${short}</td>`;
7235
+ }
6995
7236
  function thresholdsFileRow(file, report) {
6996
7237
  const percentile2 = textOf(field2(file.generated, "evaluatedPercentile"));
6997
7238
  const fingerprint2 = textOf(field2(file.generated, "normalization"));
@@ -7006,7 +7247,8 @@ function thresholdsFileRow(file, report) {
7006
7247
  return join4(
7007
7248
  html`<tr><td>${file.kind}</td><td class="loc">${file.path}</td>`,
7008
7249
  html`<td>${status}</td><td>${percentile2 ?? DASH}</td>`,
7009
- html`<td>${generatedSource(file)}</td><td>${normalization}</td><td>`,
7250
+ sourceCell(file),
7251
+ html`<td>${normalization}</td><td>`,
7010
7252
  unseen.length === 0 ? "0" : html`<details><summary>${plural3(unseen.length, "key")}</summary><ul class="plain">${unseen.map((k) => html`<li><code>${k}</code></li>`)}</ul></details>`,
7011
7253
  html`</td></tr>`
7012
7254
  );
@@ -7035,7 +7277,7 @@ function conditionsSection(report) {
7035
7277
  const overridden = rc.overriddenSettings.length === 0 ? "none" : rc.overriddenSettings.map((s, i) => html`${i > 0 ? ", " : ""}<code>${s}</code>`);
7036
7278
  const project = (p) => join4(
7037
7279
  html`<tr><th scope="row">${p.name === "" ? "(default)" : p.name}</th><td>${p.role}</td>`,
7038
- html`<td>${p.browserName ?? DASH}</td><td class="num">${p.repeatEach}</td><td class="num">${p.retries}</td></tr>`
7280
+ html`<td>${p.requestOnly === true ? "no browser" : p.browserName ?? DASH}</td><td class="num">${p.repeatEach}</td><td class="num">${p.retries}</td></tr>`
7039
7281
  );
7040
7282
  return card(
7041
7283
  "conditions-h",
@@ -7096,7 +7338,8 @@ function testRow(ctx, t, i, most) {
7096
7338
  html`<td><span class="hr"><span class="tb neu tw"><span class="${widthClass(most > 0 ? t.totalMs / most : 0)}"></span></span><b>${formatMs(t.totalMs)}</b></span></td>`,
7097
7339
  html`<td class="num">${formatMs(perRun(t))}</td>`,
7098
7340
  html`<td class="num">${t.maxRequestMs === null ? "\u2014" : formatMs(t.maxRequestMs)}</td><td class="num">${t.keyCount}</td>`,
7099
- html`<td class="tk">${t.topKeys.map((k) => html`<span>${keyLink(ctx, "api", k.key, KEY_MAX)} <span class="sub">${formatMs(k.totalMs)} · ${share(k.totalMs)}</span></span>`)}</td>`,
7341
+ // Each key on its own line, its time and share below (F2 decision 12).
7342
+ html`<td class="tk tk2">${t.topKeys.map((k) => html`<span>${keyLink(ctx, "api", k.key, KEY_MAX)} <span class="sub">${formatMs(k.totalMs)} · ${share(k.totalMs)}</span></span>`)}</td>`,
7100
7343
  html`<td class="tk">`,
7101
7344
  t.violatedKeyCount === 0 ? null : html`<span class="pill f">${plural3(t.violatedKeyCount, "key")}</span>${t.violatedKeys.map((k) => html`<span>${keyLink(ctx, "api", k, KEY_MAX)}</span>`)}${more > 0 ? html`<span class="sub">+${more} more</span>` : null}`,
7102
7345
  html`</td></tr>`
@@ -7167,7 +7410,7 @@ function testsTab(ctx) {
7167
7410
  }
7168
7411
 
7169
7412
  // src/html/render.ts
7170
- var DOCS_URL = `${chunkBAOTUUTV_cjs.REPOSITORY_URL}#readme`;
7413
+ var DOCS_URL = `${chunkIUI4AFE5_cjs.REPOSITORY_URL}#readme`;
7171
7414
  function chip2(name, content) {
7172
7415
  return html`<span class="chip">${icon(name)}${content}</span>`;
7173
7416
  }
@@ -7175,7 +7418,8 @@ function header2(report) {
7175
7418
  const ci = report.ci;
7176
7419
  return join4(
7177
7420
  html`<header class="appbar"><div class="wrap">`,
7178
- html`<p class="brand">${logo()}<b>${report.tool.name}</b> <span class="ver">v${report.tool.version}</span></p>`,
7421
+ // The suite tells reports of several configs apart (11-REQ-49, F2 decision 19).
7422
+ report.suite === void 0 ? html`<p class="brand">${logo()}<b>${report.tool.name}</b> <span class="ver">v${report.tool.version}</span></p>` : html`<p class="brand">${logo()}<b class="suite" title="${report.suite.name}">${report.suite.name}</b></p>`,
7179
7423
  // Focusable: the chips scroll sideways on narrow screens (11-REQ-18).
7180
7424
  html`<div class="meta" role="group" aria-label="Run details" tabindex="0">`,
7181
7425
  report.env === null ? null : chip2("env", html`env <b>${report.env}</b>`),
@@ -7192,7 +7436,7 @@ function header2(report) {
7192
7436
  }
7193
7437
  function failing(ctx, kind2) {
7194
7438
  const data = kind2 === "api" ? ctx.data.endpoints : ctx.data.steps;
7195
- return Object.values(data).some((a) => a.evaluation.result === "fail");
7439
+ return Object.values(data).filter((a) => a.evaluation.result === "fail").length;
7196
7440
  }
7197
7441
  function tabs(ctx) {
7198
7442
  const report = ctx.report;
@@ -7206,6 +7450,7 @@ function tabs(ctx) {
7206
7450
  label: "Overview",
7207
7451
  count: null,
7208
7452
  tone: "",
7453
+ failing: 0,
7209
7454
  note: null,
7210
7455
  content: overview(ctx, DOCS_URL)
7211
7456
  },
@@ -7213,8 +7458,9 @@ function tabs(ctx) {
7213
7458
  id: "endpoints",
7214
7459
  label: "Endpoints",
7215
7460
  count: endpoints,
7216
- tone: failing(ctx, "api") ? "bad" : "",
7217
- note: "Browser requests to measured origins, worst first.",
7461
+ tone: "",
7462
+ failing: failing(ctx, "api"),
7463
+ note: "Browser requests and request calls to measured origins, worst first.",
7218
7464
  content: endpoints > 0 ? keyTable(ctx, "api", "Endpoints") : empty ? emptyState(
7219
7465
  "No requests or steps were recorded",
7220
7466
  "The measured projects made no requests to the measured origins.",
@@ -7231,7 +7477,8 @@ function tabs(ctx) {
7231
7477
  id: "steps",
7232
7478
  label: "Steps",
7233
7479
  count: steps,
7234
- tone: failing(ctx, "step") ? "bad" : "",
7480
+ tone: "",
7481
+ failing: failing(ctx, "step"),
7235
7482
  note: html`<code>test.step</code> durations, grouped by step path across tests.`,
7236
7483
  content: keyTable(ctx, "step", "Steps")
7237
7484
  });
@@ -7242,6 +7489,7 @@ function tabs(ctx) {
7242
7489
  label: "Tests",
7243
7490
  count: report.testBreakdown?.tests.length ?? null,
7244
7491
  tone: "",
7492
+ failing: 0,
7245
7493
  note: (report.testBreakdown?.tests.length ?? 0) > 0 ? "Total wait is the sum of request durations; parallel requests count in full, so it can exceed the test duration." : null,
7246
7494
  content: testsTab(ctx)
7247
7495
  },
@@ -7250,6 +7498,7 @@ function tabs(ctx) {
7250
7498
  label: "Warnings",
7251
7499
  count: issues,
7252
7500
  tone: issues > 0 ? "warn" : "",
7501
+ failing: 0,
7253
7502
  note: report.toolErrors.length === 0 ? "No tool errors." : `${String(report.toolErrors.length)} tool ${report.toolErrors.length === 1 ? "error" : "errors"}.`,
7254
7503
  content: warningsTab(report)
7255
7504
  },
@@ -7258,6 +7507,7 @@ function tabs(ctx) {
7258
7507
  label: "Run & config",
7259
7508
  count: null,
7260
7509
  tone: "",
7510
+ failing: 0,
7261
7511
  note: null,
7262
7512
  content: runTab(report)
7263
7513
  }
@@ -7266,7 +7516,7 @@ function tabs(ctx) {
7266
7516
  }
7267
7517
  function tabBar(list2) {
7268
7518
  return html`<nav class="tabs" aria-label="Report sections"><div class="seg" data-tabs="">${list2.map(
7269
- (t) => html`<a href="#tab-${t.id}" id="tab-${t.id}-link" data-tab="${t.id}">${t.label}${t.count === null ? null : html` ${badge(t.count, t.tone)}`}</a>`
7519
+ (t) => html`<a href="#tab-${t.id}" id="tab-${t.id}-link" data-tab="${t.id}">${t.label}${t.count === null ? null : html` ${badge(t.count, t.tone)}`}${t.failing === 0 ? null : html` <span class="n bad">${t.failing}<span class="sr"> with violations</span></span>`}</a>`
7270
7520
  )}</div></nav>`;
7271
7521
  }
7272
7522
  function panel(t) {
@@ -7288,7 +7538,7 @@ function keyDialog() {
7288
7538
  );
7289
7539
  }
7290
7540
  function footer(report) {
7291
- return html`<footer><div class="wrap">Generated by <a href="${chunkBAOTUUTV_cjs.REPOSITORY_URL}" rel="noopener noreferrer">${report.tool.name}</a> v${report.tool.version}</div></footer>`;
7541
+ return html`<footer><div class="wrap">Generated by <a href="${chunkIUI4AFE5_cjs.REPOSITORY_URL}" rel="noopener noreferrer">${report.tool.name}</a> v${report.tool.version}</div></footer>`;
7292
7542
  }
7293
7543
  var CONTENT_SECURITY_POLICY = `default-src 'none'; script-src 'sha256-${SCRIPT_SHA256}'; style-src 'sha256-${STYLES_SHA256}'; img-src data:`;
7294
7544
  function renderHtmlReport(report) {
@@ -7299,8 +7549,8 @@ function renderHtmlReport(report) {
7299
7549
  html`<meta http-equiv="Content-Security-Policy" content="${CONTENT_SECURITY_POLICY}">`,
7300
7550
  html`<meta name="viewport" content="width=device-width, initial-scale=1">`,
7301
7551
  html`<meta name="color-scheme" content="light dark">`,
7302
- html`<meta name="generator" content="${`${chunkBAOTUUTV_cjs.PACKAGE_NAME} ${report.tool.version}`}">`,
7303
- html`<link rel="icon" href="data:,"><title>Performance report ${report.runId}</title>`,
7552
+ html`<meta name="generator" content="${`${chunkIUI4AFE5_cjs.PACKAGE_NAME} ${report.tool.version}`}">`,
7553
+ html`<link rel="icon" type="image/svg+xml" href="${FAVICON_URI}"><title>${report.suite === void 0 ? "" : `${report.suite.name} \xB7 `}Performance report ${report.runId}</title>`,
7304
7554
  html`<style>${trustedHtml(STYLES)}</style></head>`
7305
7555
  );
7306
7556
  const main = join4(
@@ -7333,6 +7583,37 @@ function roleOf(project, all, measured) {
7333
7583
  if (measured.has(project.name)) return "measured";
7334
7584
  return all.some((p) => p.teardown === project.name) ? "teardown" : "dependency";
7335
7585
  }
7586
+ function projectsInRun(config, suite) {
7587
+ if (suite.suites === void 0) return new Set(config.projects.map((p) => p.name));
7588
+ return new Set(
7589
+ suite.suites.flatMap((s) => {
7590
+ const project = s.project();
7591
+ return project === void 0 ? [] : [project.name];
7592
+ })
7593
+ );
7594
+ }
7595
+ function noMeasuredProjectError(inRun) {
7596
+ const names2 = [...inRun].map((n) => n === "" ? "(default)" : n).join(", ");
7597
+ return {
7598
+ code: "CONFIG_NO_MEASURED_PROJECT",
7599
+ message: `No project is measured: the test command runs only setup or teardown projects${names2 === "" ? "" : ` (${names2})`}, which are not measured.`,
7600
+ hint: "Select the projects with the tests to measure (--project), not their setup projects; without --project every project that is not a setup or teardown project is measured."
7601
+ };
7602
+ }
7603
+ function slowMoWarning(config, measured) {
7604
+ const slow = config.projects.filter(
7605
+ (p) => measured.has(p.name) && (p.use.launchOptions?.slowMo ?? 0) > 0
7606
+ );
7607
+ if (slow.length === 0) return null;
7608
+ const places = slow.map(
7609
+ (p) => p.name === "" ? "the global config" : `project ${JSON.stringify(p.name)}`
7610
+ );
7611
+ return {
7612
+ code: "CONFIG_SLOW_MO",
7613
+ message: `use.launchOptions.slowMo: is greater than 0 in ${places.join(", ")}; it slows down every browser action and distorts the measured times`,
7614
+ hint: "Remove slowMo from the Playwright config for the measurement run, or set run.overrideSlowMo: true in the package config."
7615
+ };
7616
+ }
7336
7617
  function readRunConditions(config, measured, overridden) {
7337
7618
  return {
7338
7619
  workers: config.workers,
@@ -7392,9 +7673,6 @@ function overriddenLine(conditions) {
7392
7673
  if (conditions.overridden.length > 0) {
7393
7674
  parts.push(`perf mode overrides ${conditions.overridden.join(", ")}`);
7394
7675
  }
7395
- if (conditions.removedProjects.length > 0) {
7396
- parts.push(`removed projects ${list(conditions.removedProjects)}`);
7397
- }
7398
7676
  if (conditions.removedReporters.length > 0) {
7399
7677
  parts.push(`removed reporters ${list(conditions.removedReporters)}`);
7400
7678
  }
@@ -7488,6 +7766,113 @@ function worseStatus(a, b) {
7488
7766
  return STATUS_ORDER.indexOf(b) > STATUS_ORDER.indexOf(a) ? b : a;
7489
7767
  }
7490
7768
 
7769
+ // src/reporter/not-instrumented.ts
7770
+ var MAX_FILES = 3;
7771
+ var WORKER_EXIT = /worker process exited unexpectedly/iu;
7772
+ function workerCrashed(result2) {
7773
+ return (result2.errors ?? []).some((e) => WORKER_EXIT.test(e.message ?? ""));
7774
+ }
7775
+ function fileList(files) {
7776
+ const names2 = [...new Set(Object.values(files))].sort();
7777
+ const shown = names2.slice(0, MAX_FILES);
7778
+ const rest = names2.length - shown.length;
7779
+ if (rest > 0) return `${shown.join(", ")} and ${rest} other ${rest === 1 ? "file" : "files"}`;
7780
+ if (shown.length === 1) return shown[0];
7781
+ return `${shown.slice(0, -1).join(", ")} and ${shown[shown.length - 1]}`;
7782
+ }
7783
+ function notInstrumentedWarning(unwrapped, crashed) {
7784
+ const lost = {};
7785
+ for (const [id, file] of Object.entries(crashed)) if (!(id in unwrapped)) lost[id] = file;
7786
+ const nUnwrapped = Object.keys(unwrapped).length;
7787
+ const nLost = Object.keys(lost).length;
7788
+ if (nUnwrapped === 0 && nLost === 0) return null;
7789
+ const message = [];
7790
+ const hint2 = [];
7791
+ if (nUnwrapped > 0) {
7792
+ const one = nUnwrapped === 1;
7793
+ message.push(
7794
+ `${nUnwrapped} ${one ? "test" : "tests"} in ${fileList(unwrapped)} ${one ? "imports" : "import"} test without withPerfFixtures() (e.g. straight from @playwright/test), so ${one ? "it was" : "they were"} not measured.`
7795
+ );
7796
+ hint2.push(
7797
+ 'Import test from a test object wrapped with withPerfFixtures() (or from "playwright-performance-regression/test"), also in API tests that use the request fixture.'
7798
+ );
7799
+ }
7800
+ if (nLost > 0) {
7801
+ const one = nLost === 1;
7802
+ message.push(
7803
+ `${nLost} ${one ? "test" : "tests"} in ${fileList(lost)} lost ${one ? "its" : "their"} measurement because the worker process exited unexpectedly.`
7804
+ );
7805
+ hint2.push("Check the worker crash in the Playwright output above.");
7806
+ }
7807
+ return { code: "TESTS_NOT_INSTRUMENTED", message: message.join(" "), hint: hint2.join(" ") };
7808
+ }
7809
+
7810
+ // src/reporter/report-dir.ts
7811
+ var MAX_REPORT_DIR_ENTRIES = 1e4;
7812
+ function comparable(path) {
7813
+ return path.replaceAll("\\", "/").replace(/\/+$/u, "").toLowerCase();
7814
+ }
7815
+ function isWithin(dir, path) {
7816
+ const d = comparable(dir);
7817
+ const p = comparable(path);
7818
+ return p === d || p.startsWith(`${d}/`) || d === "" && p.startsWith("/");
7819
+ }
7820
+ function isThresholdsFile(name, prefix) {
7821
+ const lower = name.toLowerCase();
7822
+ const p = prefix.toLowerCase();
7823
+ return lower.endsWith(".json") && (lower === `${p}.json` || lower.startsWith(`${p}.`));
7824
+ }
7825
+ function isProjectMarker(name) {
7826
+ const lower = name.toLowerCase();
7827
+ return lower === "package.json" || lower === ".git" || lower.startsWith("playwright.config.");
7828
+ }
7829
+ function reportDirRefusal(io, input) {
7830
+ const real = io.realPathSync(input.reportDir);
7831
+ const dirs = [input.reportDir, real];
7832
+ if (dirs.some((dir) => io.resolvePath(dir, "..") === dir)) return "is the filesystem root";
7833
+ for (const { path, name } of input.protectedDirs) {
7834
+ const targets = [path, io.realPathSync(path)];
7835
+ if (dirs.some((dir) => targets.some((target) => isWithin(dir, target)))) {
7836
+ return `is the ${name} or contains it`;
7837
+ }
7838
+ }
7839
+ const entries2 = io.scanDirSync(real, MAX_REPORT_DIR_ENTRIES);
7840
+ if (entries2 === null) {
7841
+ return `has more than ${String(MAX_REPORT_DIR_ENTRIES)} entries`;
7842
+ }
7843
+ for (const entry of entries2) {
7844
+ const name = entry.slice(entry.lastIndexOf("/") + 1);
7845
+ if (isThresholdsFile(name, input.thresholdsPrefix))
7846
+ return `contains a thresholds file (${entry})`;
7847
+ if (isProjectMarker(name)) return `contains ${entry}, so it looks like a project folder`;
7848
+ }
7849
+ return null;
7850
+ }
7851
+ function cleanReportDir(io, input) {
7852
+ if (!io.isDirectorySync(input.reportDir)) return null;
7853
+ const warning = (reason, hint2) => ({
7854
+ code: "RUN_REPORT_DIR_NOT_CLEANED",
7855
+ message: `report.dir ${input.shownPath} was not emptied at the start of the run: ${reason}.`,
7856
+ hint: hint2
7857
+ });
7858
+ const refusal2 = reportDirRefusal(io, input);
7859
+ if (refusal2 !== null) {
7860
+ return warning(
7861
+ `it ${refusal2}`,
7862
+ `Set report.dir to a folder used only for the results of this package (default ${chunkLUA4WRIQ_cjs.DEFAULT_CONFIG.report.dir}); files of earlier runs in it were kept.`
7863
+ );
7864
+ }
7865
+ try {
7866
+ io.emptyDirSync(io.realPathSync(input.reportDir));
7867
+ } catch (error) {
7868
+ return warning(
7869
+ `removing a file failed (${error instanceof Error ? error.message : String(error)})`,
7870
+ "Check that report.dir is writable; files of earlier runs may remain next to the new ones."
7871
+ );
7872
+ }
7873
+ return null;
7874
+ }
7875
+
7491
7876
  // src/reporter/samples.ts
7492
7877
  function testTitle(test) {
7493
7878
  const titles = [test.title];
@@ -7516,7 +7901,7 @@ function testMeta(test, result2, file) {
7516
7901
  };
7517
7902
  }
7518
7903
  function sampleAttachments(result2) {
7519
- return result2.attachments.filter((a) => a.name === chunkBAOTUUTV_cjs.SAMPLES_ATTACHMENT_NAME).map((a) => a.body === void 0 ? "" : a.body.toString("utf8"));
7904
+ return result2.attachments.filter((a) => a.name === chunkIUI4AFE5_cjs.SAMPLES_ATTACHMENT_NAME).map((a) => a.body === void 0 ? "" : a.body.toString("utf8"));
7520
7905
  }
7521
7906
  function hasTraceOrVideo(result2) {
7522
7907
  return result2.attachments.some((a) => a.name === "trace" || a.name === "video");
@@ -7536,16 +7921,19 @@ function runSettings(registered, env, packageVersion) {
7536
7921
  runConditions: registered.runConditions,
7537
7922
  registered: true,
7538
7923
  warnings: [...registered.warnings],
7539
- toolErrors: []
7924
+ toolErrors: [],
7925
+ perfConfigPassed: registered.perfConfigPassed ?? true
7540
7926
  };
7541
7927
  }
7542
- const read2 = chunkBAOTUUTV_cjs.readModeState(env);
7928
+ const read2 = chunkIUI4AFE5_cjs.readModeState(env);
7543
7929
  if (read2.ok && read2.value === null) return null;
7544
7930
  const mode2 = read2.ok && read2.value !== null ? read2.value : { mode: "test" };
7545
- const resolved = chunk2JO5HVPC_cjs.resolveConfig(void 0, {
7931
+ const resolved = chunkLUA4WRIQ_cjs.resolveConfig(void 0, {
7546
7932
  mode: mode2.mode === "check" ? "test" : mode2.mode,
7547
7933
  ...mode2.mode === "check" ? {} : mode2.pass !== void 0 ? { passes: mode2.pass.total } : mode2.passes === void 0 ? {} : { passes: mode2.passes },
7548
- ...mode2.env === void 0 ? {} : { env: mode2.env }
7934
+ ...mode2.env === void 0 ? {} : { env: mode2.env },
7935
+ ...mode2.thresholdsDir === void 0 ? {} : { thresholdsDir: mode2.thresholdsDir },
7936
+ ...mode2.minSamples === void 0 ? {} : { minSamples: mode2.minSamples }
7549
7937
  });
7550
7938
  if (!resolved.ok) throw new Error("the default package config is not valid");
7551
7939
  return {
@@ -7556,12 +7944,11 @@ function runSettings(registered, env, packageVersion) {
7556
7944
  measuredProjects: null,
7557
7945
  runConditions: {
7558
7946
  overridden: [],
7559
- removedProjects: [],
7560
7947
  removedReporters: [],
7561
7948
  replacedReporters: []
7562
7949
  },
7563
7950
  registered: false,
7564
- warnings: [chunkBAOTUUTV_cjs.notWrappedWarning()],
7951
+ warnings: [chunkIUI4AFE5_cjs.notWrappedWarning()],
7565
7952
  toolErrors: read2.ok ? [] : read2.issues
7566
7953
  };
7567
7954
  }
@@ -7585,8 +7972,12 @@ var RunSession = class {
7585
7972
  startedAt;
7586
7973
  runId;
7587
7974
  configDir;
7975
+ /** Package name or config path for the report (02-REQ-42). */
7976
+ suite = null;
7588
7977
  maxFailures = 0;
7589
7978
  measured = /* @__PURE__ */ new Set();
7979
+ /** Projects that are only dependencies or teardowns of other projects (08-REQ-31). */
7980
+ dependencyOnly = /* @__PURE__ */ new Set();
7590
7981
  conditions;
7591
7982
  normalization;
7592
7983
  aggregator;
@@ -7596,7 +7987,9 @@ var RunSession = class {
7596
7987
  fatal = false;
7597
7988
  testsStarted = 0;
7598
7989
  testsSeen = /* @__PURE__ */ new Set();
7599
- notInstrumented = 0;
7990
+ /** Tests without a batch: not wrapped, and lost to a crashed worker (09-REQ-34). */
7991
+ notInstrumented = {};
7992
+ crashedTests = {};
7600
7993
  withArtifacts = 0;
7601
7994
  /** Test counts of the passes 2…N merged into this one (04-REQ-64). */
7602
7995
  mergedTests = { expected: 0, unexpected: 0, flaky: 0, skipped: 0 };
@@ -7606,8 +7999,6 @@ var RunSession = class {
7606
7999
  /** Warnings and tool errors before onBegin ended: the same in every pass. */
7607
8000
  beginWarnings = 0;
7608
8001
  beginToolErrors = 0;
7609
- /** "n" to the Continue? question (04-REQ-65): the run ends without output. */
7610
- cancelled = false;
7611
8002
  pending = /* @__PURE__ */ new Map();
7612
8003
  /** Check (04, chapter 4.11): counters for the output and the estimate. */
7613
8004
  checkRun = {
@@ -7622,9 +8013,13 @@ var RunSession = class {
7622
8013
  tests: /* @__PURE__ */ new Map()
7623
8014
  };
7624
8015
  configLike = null;
8016
+ /** FullConfig.rootDir, protected from emptying report.dir (04-REQ-71). */
8017
+ rootDir = "";
7625
8018
  /** Measured projects with a non-skipped test that has a batch, and those with requests. */
7626
8019
  instrumentedProjects = /* @__PURE__ */ new Set();
7627
8020
  projectsWithRequests = /* @__PURE__ */ new Set();
8021
+ /** Measured projects with browser samples; the others with requests are request only (02-REQ-42). */
8022
+ projectsWithBrowserRequests = /* @__PURE__ */ new Set();
7628
8023
  playwrightVersion = "";
7629
8024
  constructor(host, settings, options = {}) {
7630
8025
  this.host = host;
@@ -7633,7 +8028,7 @@ var RunSession = class {
7633
8028
  this.warnings = [...settings.warnings];
7634
8029
  this.toolErrors = [...settings.toolErrors];
7635
8030
  this.startedAt = host.now();
7636
- this.runId = settings.mode.runId ?? chunkBAOTUUTV_cjs.generateRunId(this.startedAt, host.random);
8031
+ this.runId = settings.mode.runId ?? chunkIUI4AFE5_cjs.generateRunId(this.startedAt, host.random);
7637
8032
  this.configDir = host.cwd;
7638
8033
  this.conditions = { workers: 1, projects: [], overriddenSettings: [] };
7639
8034
  const keys = settings.config.keys;
@@ -7667,12 +8062,13 @@ var RunSession = class {
7667
8062
  successStatuses: cfg.measure.successStatuses,
7668
8063
  errors: cfg.checks.errors,
7669
8064
  measuredProjects: this.measured,
8065
+ dependencyProjects: this.dependencyOnly,
7670
8066
  evaluatedPercentile: cfg.checks.time.percentile.level,
7671
8067
  rawUrls: cfg.report.rawUrls
7672
8068
  });
7673
8069
  }
7674
8070
  info(line) {
7675
- this.host.stdout.write(`${chunkBAOTUUTV_cjs.PACKAGE_NAME}: ${line}
8071
+ this.host.stdout.write(`${chunkIUI4AFE5_cjs.PACKAGE_NAME}: ${line}
7676
8072
  `);
7677
8073
  }
7678
8074
  /** A hook threw: the error goes to the report and the outcome file (01-REQ-16). */
@@ -7680,26 +8076,38 @@ var RunSession = class {
7680
8076
  this.toolErrors.push(internalError(where2, error));
7681
8077
  if (where2 === "onBegin") this.fatal = true;
7682
8078
  }
7683
- begin(config, suite) {
7684
- this.playwrightVersion = config.version;
8079
+ begin(fullConfig, suite) {
8080
+ this.playwrightVersion = fullConfig.version;
8081
+ const inRun = projectsInRun(fullConfig, suite);
8082
+ const config = {
8083
+ ...fullConfig,
8084
+ projects: fullConfig.projects.filter((p) => inRun.has(p.name))
8085
+ };
7685
8086
  this.configLike = config;
7686
8087
  this.startedAt = this.host.now();
7687
8088
  if (this.settings.mode.runId === void 0) {
7688
- this.runId = chunkBAOTUUTV_cjs.generateRunId(this.startedAt, this.host.random);
8089
+ this.runId = chunkIUI4AFE5_cjs.generateRunId(this.startedAt, this.host.random);
7689
8090
  }
7690
8091
  const io = this.host.io;
7691
8092
  this.configDir = config.configFile === void 0 ? config.rootDir : io.directoryOf(config.configFile);
7692
- const outcomeFile2 = this.outcomePath();
7693
- if (this.passIndex === 1 && this.environmentMode && outcomeFile2 !== null) {
8093
+ this.rootDir = config.rootDir;
8094
+ this.suite = io.readSuite(this.configDir, config.configFile);
8095
+ if (this.passIndex === 1) {
7694
8096
  try {
7695
- io.removeFileSync(outcomeFile2);
8097
+ io.removeFileSync(this.outcomePath());
7696
8098
  } catch {
7697
8099
  }
7698
8100
  }
7699
8101
  if (this.passIndex === 1 && !this.check) this.removePassFiles();
7700
8102
  this.maxFailures = config.maxFailures;
7701
8103
  const names2 = this.settings.measuredProjects ?? config.projects.map((p) => p.name);
7702
- this.measured = new Set(names2);
8104
+ this.measured = new Set(names2.filter((name) => inRun.has(name)));
8105
+ this.dependencyOnly = new Set(
8106
+ config.projects.flatMap((p) => [
8107
+ ...p.dependencies,
8108
+ ...p.teardown === void 0 ? [] : [p.teardown]
8109
+ ])
8110
+ );
7703
8111
  this.checkRun.selected = suite.allTests().filter((t) => this.measured.has(projectName(t))).length;
7704
8112
  this.conditions = readRunConditions(
7705
8113
  config,
@@ -7719,11 +8127,20 @@ var RunSession = class {
7719
8127
  if (this.settings.registered) {
7720
8128
  const changed = runConditionsWarning(this.conditions);
7721
8129
  if (changed !== null) this.warnings.push(changed);
8130
+ const slowMo = slowMoWarning(config, this.measured);
8131
+ if (slowMo !== null) this.warnings.push(slowMo);
7722
8132
  }
7723
8133
  const duplicate = duplicateBaseUrlLabels(this.conditions, config, keys);
7724
8134
  if (duplicate !== null) this.warnings.push(duplicate);
7725
8135
  const empty = emptyBaseUrlWarning(this.conditions, config);
7726
8136
  if (empty !== null) this.warnings.push(empty);
8137
+ if (this.settings.registered && this.settings.perfConfigPassed === false) {
8138
+ const notPassed = configFileNotPassedWarning(io.listDirSync(this.configDir));
8139
+ if (notPassed !== null) this.warnings.push(notPassed);
8140
+ }
8141
+ if (this.settings.registered && this.measured.size === 0) {
8142
+ this.toolErrors.push(noMeasuredProjectError(inRun));
8143
+ }
7727
8144
  if (config.shard !== null) {
7728
8145
  this.toolErrors.push({
7729
8146
  code: "RUN_SHARDED",
@@ -7741,7 +8158,6 @@ var RunSession = class {
7741
8158
  const overridden = overriddenLine(this.settings.runConditions);
7742
8159
  if (overridden !== null) this.info(overridden);
7743
8160
  this.host.stdout.write(this.startBanner(suite));
7744
- this.confirm();
7745
8161
  }
7746
8162
  /** report.dir as an absolute path. */
7747
8163
  reportDir() {
@@ -7783,48 +8199,59 @@ var RunSession = class {
7783
8199
  dependencies: this.conditions.projects.filter((p) => p.role !== "measured").map((p) => p.name),
7784
8200
  tests,
7785
8201
  passes: this.passes,
7786
- maxTests: this.settings.mode.maxTests ?? chunkBAOTUUTV_cjs.DEFAULT_MAX_TESTS,
8202
+ maxTests: this.settings.mode.maxTests ?? chunkIUI4AFE5_cjs.DEFAULT_MAX_TESTS,
7787
8203
  estimate: this.check ? null : startEstimate({ tests, passes: this.passes, msPerTest: this.lastMsPerTest() }),
7788
8204
  report: this.check ? null : io.relativeSlashPath(this.host.cwd, io.resolvePath(this.reportDir(), file)),
7789
- tip: chunkBAOTUUTV_cjs.testFilters(chunkBAOTUUTV_cjs.testArgsFromArgv(this.host.argv)).length === 0
8205
+ // run.grep already selects the measured subset (04-REQ-65, 04-D-51).
8206
+ tip: cfg.run.grep === null && chunkIUI4AFE5_cjs.testFilters(chunkIUI4AFE5_cjs.testArgsFromArgv(this.host.argv)).length === 0
7790
8207
  },
7791
8208
  { width, color, ascii: asciiTerminal(this.host.env) }
7792
8209
  );
7793
8210
  }
7794
- /**
7795
- * "Continue? (Y/n)" in a terminal outside CI, without PW_PERF_YES=1 (04-REQ-65). "n" ends the
7796
- * process with 130.
7797
- */
7798
- confirm() {
7799
- if (this.check || this.settings.mode.yes === true) return;
7800
- if (this.host.stdout.isTTY !== true || this.host.ci !== null || chunkBAOTUUTV_cjs.isCiEnv(this.host.env)) return;
7801
- for (; ; ) {
7802
- const answer = this.host.ask("Continue? (Y/n) ");
7803
- if (answer === null) return;
7804
- const text2 = answer.trim().toLowerCase();
7805
- if (text2 === "" || text2 === "y" || text2 === "yes") return;
7806
- if (text2 === "n" || text2 === "no") {
7807
- this.cancelled = true;
7808
- this.info("cancelled");
7809
- this.host.exit(130);
7810
- return;
7811
- }
7812
- }
7813
- }
7814
8211
  testBegin() {
8212
+ if (this.testsStarted === 0 && this.passIndex === 1 && !this.check && !this.fatal) {
8213
+ this.emptyReportDir();
8214
+ }
7815
8215
  this.testsStarted += 1;
7816
8216
  }
8217
+ /** Empties report.dir behind the guard (04-REQ-71). */
8218
+ emptyReportDir() {
8219
+ const io = this.host.io;
8220
+ const cfg = this.settings.config;
8221
+ const reportDir = this.reportDir();
8222
+ try {
8223
+ const warning = cleanReportDir(io, {
8224
+ reportDir,
8225
+ shownPath: io.relativeSlashPath(this.host.cwd, reportDir),
8226
+ protectedDirs: [
8227
+ { path: this.host.cwd, name: "project directory" },
8228
+ { path: this.configDir, name: "Playwright config directory" },
8229
+ { path: this.rootDir, name: "Playwright rootDir" },
8230
+ { path: io.resolvePath(this.configDir, cfg.thresholds.dir), name: "thresholds.dir" },
8231
+ { path: io.homeDir(), name: "home directory" }
8232
+ ],
8233
+ thresholdsPrefix: cfg.thresholds.filePrefix
8234
+ });
8235
+ if (warning !== null) this.warnings.push(warning);
8236
+ } catch (error) {
8237
+ this.recordInternalError("onTestBegin", error);
8238
+ }
8239
+ }
7817
8240
  testEnd(test, result2) {
7818
8241
  this.testsSeen.add(test);
7819
8242
  if (hasTraceOrVideo(result2)) this.withArtifacts += 1;
7820
8243
  const bodies = sampleAttachments(result2);
7821
8244
  const measured = this.measured.has(projectName(test));
7822
8245
  if (this.check) this.countCheck(test, result2, measured);
7823
- const relative2 = (file) => this.host.io.relativeSlashPath(this.configDir, file);
7824
- const meta = this.passMeta(testMeta(test, result2, relative2(test.location.file)), test);
7825
- this.steps.record(this.aggregator, test, result2.steps, meta, relative2);
8246
+ const relative3 = (file) => this.host.io.relativeSlashPath(this.configDir, file);
8247
+ const meta = this.passMeta(testMeta(test, result2, relative3(test.location.file)), test);
8248
+ this.steps.record(this.aggregator, test, result2.steps, meta, relative3);
8249
+ if (!this.settings.config.measure.api) return;
7826
8250
  if (bodies.length === 0) {
7827
- if (measured && result2.status !== "skipped") this.notInstrumented += 1;
8251
+ if (measured && result2.status !== "skipped") {
8252
+ const lost = workerCrashed(result2) ? this.crashedTests : this.notInstrumented;
8253
+ lost[test.id] = meta.file;
8254
+ }
7828
8255
  return;
7829
8256
  }
7830
8257
  const project = projectName(test);
@@ -7834,7 +8261,7 @@ var RunSession = class {
7834
8261
  if (bodies.length > 1) {
7835
8262
  this.warnings.push({
7836
8263
  code: "ATTACHMENT_DUPLICATE",
7837
- message: `Test "${meta.title}" has ${bodies.length} ${chunkBAOTUUTV_cjs.SAMPLES_ATTACHMENT_NAME} attachments; all of them were processed.`,
8264
+ message: `Test "${meta.title}" has ${bodies.length} ${chunkIUI4AFE5_cjs.SAMPLES_ATTACHMENT_NAME} attachments; all of them were processed.`,
7838
8265
  hint: "Apply withPerfFixtures() once per test object."
7839
8266
  });
7840
8267
  }
@@ -7846,22 +8273,36 @@ var RunSession = class {
7846
8273
  }
7847
8274
  const batch = parsed.value;
7848
8275
  this.warnings.push(...batch.diagnostics);
7849
- if (measured && batch.requests.length > 0) this.projectsWithRequests.add(project);
8276
+ const requestCount = batch.requests.length + batch.apiRequests.length;
8277
+ if (measured && requestCount > 0) this.projectsWithRequests.add(project);
8278
+ if (measured && batch.requests.length > 0) this.projectsWithBrowserRequests.add(project);
7850
8279
  if (measured) {
7851
8280
  const n = this.checkRun.requests.get(project) ?? 0;
7852
- this.checkRun.requests.set(project, n + batch.requests.length);
8281
+ this.checkRun.requests.set(project, n + requestCount);
7853
8282
  }
8283
+ const keyed = (result3, status) => {
8284
+ this.warnings.push(...result3.issues);
8285
+ if (result3.ok && status === "PENDING" && measured) {
8286
+ this.pending.set(result3.key, (this.pending.get(result3.key) ?? 0) + 1);
8287
+ }
8288
+ };
7854
8289
  batch.requests.forEach((sample, ordinal) => {
7855
- const keyed = addKeyedRequest(
8290
+ const result3 = addKeyedRequest(
7856
8291
  this.aggregator,
7857
8292
  this.keyOf,
7858
8293
  { ...sample, test: meta, ordinal },
7859
8294
  batch.collector.browserName
7860
8295
  );
7861
- this.warnings.push(...keyed.issues);
7862
- if (keyed.ok && sample.status === "PENDING" && measured) {
7863
- this.pending.set(keyed.key, (this.pending.get(keyed.key) ?? 0) + 1);
7864
- }
8296
+ keyed(result3, sample.status);
8297
+ });
8298
+ const offset = batch.requests.length;
8299
+ batch.apiRequests.forEach((sample, index) => {
8300
+ const result3 = addKeyedApiRequest(this.aggregator, this.keyOf, {
8301
+ ...sample,
8302
+ test: meta,
8303
+ ordinal: offset + index
8304
+ });
8305
+ keyed(result3, sample.status);
7865
8306
  });
7866
8307
  }
7867
8308
  this.aggregator.endResult(meta);
@@ -7884,16 +8325,11 @@ var RunSession = class {
7884
8325
  issues.push({
7885
8326
  code: "RUN_PROJECT_NO_REQUESTS",
7886
8327
  message: `Measured ${silent.length === 1 ? "project" : "projects"} ${silent.join(", ")} recorded no request sample.`,
7887
- hint: "Tests that only use the request fixture (API tests) are not measured: requests made outside the browser are out of scope; remove such projects from run.projects. Otherwise check use.baseURL, withPerfFixtures and measure.include/exclude."
7888
- });
7889
- }
7890
- if (this.notInstrumented > 0) {
7891
- issues.push({
7892
- code: "TESTS_NOT_INSTRUMENTED",
7893
- message: `${plural4(this.notInstrumented, "test result")} of measured projects ${this.notInstrumented === 1 ? "has" : "have"} no ${chunkBAOTUUTV_cjs.SAMPLES_ATTACHMENT_NAME} attachment, so ${this.notInstrumented === 1 ? "it was" : "they were"} not measured.`,
7894
- hint: 'Import test from a test object wrapped with withPerfFixtures() (or from "playwright-performance-regression/test"); a crashed worker also loses the attachment.'
8328
+ hint: "Check use.baseURL, withPerfFixtures and measure.include/exclude; API tests are measured when they import test from the wrapped test object, and clients from request.newContext() after trackRequestContext()."
7895
8329
  });
7896
8330
  }
8331
+ const notInstrumented = notInstrumentedWarning(this.notInstrumented, this.crashedTests);
8332
+ if (notInstrumented !== null) issues.push(notInstrumented);
7897
8333
  if (this.withArtifacts > 0) {
7898
8334
  issues.push({
7899
8335
  code: "RUN_CONDITIONS_CHANGED",
@@ -7932,6 +8368,10 @@ var RunSession = class {
7932
8368
  skipped: own.skipped + merged.skipped
7933
8369
  };
7934
8370
  }
8371
+ /** A measured project with request calls and no browser sample (02-REQ-42). */
8372
+ requestOnly(p) {
8373
+ return p.role === "measured" && this.projectsWithRequests.has(p.name) && !this.projectsWithBrowserRequests.has(p.name);
8374
+ }
7935
8375
  source() {
7936
8376
  const browsers = this.conditions.projects.filter((p) => p.role === "measured" && p.browserName !== null).map((p) => p.browserName);
7937
8377
  const { nodeVersion: _, ...host } = this.host.host;
@@ -7946,13 +8386,14 @@ var RunSession = class {
7946
8386
  reportInput(status, finishedAt, aggregates, evaluation, warnings, toolErrors) {
7947
8387
  return {
7948
8388
  meta: {
7949
- tool: { name: chunkBAOTUUTV_cjs.PACKAGE_NAME, version: this.settings.packageVersion },
8389
+ tool: { name: chunkIUI4AFE5_cjs.PACKAGE_NAME, version: this.settings.packageVersion },
7950
8390
  runId: this.runId,
7951
8391
  mode: this.mode,
7952
8392
  startedAt: this.startedAt.toISOString(),
7953
8393
  finishedAt: finishedAt.toISOString(),
7954
8394
  env: this.settings.config.run.env,
7955
8395
  configDir: this.configDir,
8396
+ ...this.suite === null ? {} : { suite: this.suite },
7956
8397
  ci: this.host.ci,
7957
8398
  host: this.host.host,
7958
8399
  playwright: { version: this.playwrightVersion }
@@ -7965,7 +8406,12 @@ var RunSession = class {
7965
8406
  completed: this.completedPasses,
7966
8407
  failed: [...this.failedPasses]
7967
8408
  },
7968
- runConditions: this.conditions,
8409
+ runConditions: {
8410
+ ...this.conditions,
8411
+ projects: this.conditions.projects.map(
8412
+ (p) => this.requestOnly(p) ? { ...p, requestOnly: true } : p
8413
+ )
8414
+ },
7969
8415
  tests: this.testsResult(status),
7970
8416
  aggregates,
7971
8417
  evaluation,
@@ -7985,7 +8431,6 @@ var RunSession = class {
7985
8431
  * outcome exit code is not 0, otherwise nothing, so Playwright keeps its own (01-REQ-17).
7986
8432
  */
7987
8433
  async end(result2) {
7988
- if (this.cancelled) return void 0;
7989
8434
  if (this.passIndex > 1) return this.endLaterPass(result2);
7990
8435
  if (this.testsStarted === 0) return void 0;
7991
8436
  if (this.check) return this.endCheck(result2);
@@ -7998,18 +8443,18 @@ var RunSession = class {
7998
8443
  this.recordInternalError("onEnd", error);
7999
8444
  outcome = this.fallbackOutcome({ status });
8000
8445
  for (const issue2 of outcome.toolErrors) {
8001
- this.host.stderr.write(`${chunkBAOTUUTV_cjs.PACKAGE_NAME}: ${issue2.code}: ${issue2.message}
8446
+ this.host.stderr.write(`${chunkIUI4AFE5_cjs.PACKAGE_NAME}: ${issue2.code}: ${issue2.message}
8002
8447
  `);
8003
8448
  }
8004
8449
  }
8005
8450
  const written = await this.writeOutcome(outcome);
8006
- if (this.environmentMode && written !== null) {
8451
+ if (written !== null) {
8007
8452
  this.host.stdout.write(outcomeLine(outcome, written));
8008
8453
  }
8009
8454
  if (this.next !== null) {
8010
8455
  this.host.stdout.write(nextLine(this.next, this.terminal().color));
8011
8456
  }
8012
- const testsFailed = status === "failed" && result2.status === "passed" && this.environmentMode;
8457
+ const testsFailed = status === "failed" && result2.status === "passed";
8013
8458
  return outcome.exitCode === 0 && !testsFailed ? void 0 : { status: "failed" };
8014
8459
  }
8015
8460
  /** Data of this pass for the first pass (02-REQ-36). */
@@ -8026,10 +8471,12 @@ var RunSession = class {
8026
8471
  tests: this.ownTests(),
8027
8472
  counters: {
8028
8473
  testsStarted: this.testsStarted,
8029
- notInstrumented: this.notInstrumented,
8474
+ notInstrumented: { ...this.notInstrumented },
8475
+ crashedTests: { ...this.crashedTests },
8030
8476
  withArtifacts: this.withArtifacts,
8031
8477
  instrumentedProjects: [...this.instrumentedProjects].sort(),
8032
8478
  projectsWithRequests: [...this.projectsWithRequests].sort(),
8479
+ projectsWithBrowserRequests: [...this.projectsWithBrowserRequests].sort(),
8033
8480
  pending: Object.fromEntries([...this.pending].sort((a, b) => a[0] < b[0] ? -1 : 1))
8034
8481
  },
8035
8482
  warnings: this.warnings.slice(this.beginWarnings),
@@ -8049,7 +8496,7 @@ var RunSession = class {
8049
8496
  await this.host.io.writeJsonStable(path, file);
8050
8497
  } catch (error) {
8051
8498
  this.host.stderr.write(
8052
- `${chunkBAOTUUTV_cjs.PACKAGE_NAME}: ${label}: the pass file could not be written to ${path}: ${error instanceof Error ? error.message : String(error)}
8499
+ `${chunkIUI4AFE5_cjs.PACKAGE_NAME}: ${label}: the pass file could not be written to ${path}: ${error instanceof Error ? error.message : String(error)}
8053
8500
  `
8054
8501
  );
8055
8502
  return void 0;
@@ -8072,25 +8519,32 @@ var RunSession = class {
8072
8519
  }
8073
8520
  this.aggregator.journal = null;
8074
8521
  const total = this.passes;
8075
- const command = chunkBAOTUUTV_cjs.passCommand({
8522
+ const info = io.readPackageInfo(this.host.cwd);
8523
+ const passInput = {
8076
8524
  execPath: this.host.execPath,
8077
8525
  argv: this.host.argv,
8078
8526
  env: this.host.env,
8079
- scripts: io.readPackageInfo(this.host.cwd).scripts ?? {}
8527
+ scripts: info.scripts
8528
+ };
8529
+ const command = chunkIUI4AFE5_cjs.passCommand(passInput);
8530
+ const shape = chunkIUI4AFE5_cjs.runShape(passInput);
8531
+ const pm = packageManager({
8532
+ userAgent: this.host.env["npm_config_user_agent"] ?? null,
8533
+ lockFiles: info.lockFiles
8080
8534
  });
8081
- const shown = [command.file, ...command.args].join(" ");
8535
+ const shown = userCommand(pm, shape.script?.event ?? null, shape.tail);
8082
8536
  for (let index = 2; index <= total; index += 1) {
8083
8537
  const label = `pass ${String(index)}/${String(total)}`;
8084
- this.info(`${label}: starting ${shown}`);
8538
+ this.info(`${label}: ${shown}`);
8085
8539
  const env = {
8086
8540
  ...this.host.env,
8087
- ...chunkBAOTUUTV_cjs.writeModeState({ ...this.settings.mode, runId: this.runId, pass: { index, total } })
8541
+ ...chunkIUI4AFE5_cjs.writeModeState({ ...this.settings.mode, runId: this.runId, pass: { index, total } })
8088
8542
  };
8089
8543
  const exit = await this.host.runPass(command, env);
8090
8544
  if (exit.error !== void 0) {
8091
8545
  this.toolErrors.push({
8092
8546
  code: "RUN_PASS_SPAWN_FAILED",
8093
- message: `${label} could not be started (${shown}): ${exit.error}`,
8547
+ message: `${label} could not be started (${[command.file, ...command.args].join(" ")}): ${exit.error}`,
8094
8548
  hint: "Check that the test command runs on its own; set run.passes to 1 to measure in one pass."
8095
8549
  });
8096
8550
  break;
@@ -8139,10 +8593,12 @@ var RunSession = class {
8139
8593
  }
8140
8594
  const c = file.counters;
8141
8595
  this.testsStarted += c.testsStarted;
8142
- this.notInstrumented += c.notInstrumented;
8596
+ Object.assign(this.notInstrumented, c.notInstrumented);
8597
+ Object.assign(this.crashedTests, c.crashedTests);
8143
8598
  this.withArtifacts += c.withArtifacts;
8144
8599
  for (const p of c.instrumentedProjects) this.instrumentedProjects.add(p);
8145
8600
  for (const p of c.projectsWithRequests) this.projectsWithRequests.add(p);
8601
+ for (const p of c.projectsWithBrowserRequests ?? []) this.projectsWithBrowserRequests.add(p);
8146
8602
  for (const [key2, n] of Object.entries(c.pending)) {
8147
8603
  this.pending.set(key2, (this.pending.get(key2) ?? 0) + n);
8148
8604
  }
@@ -8176,7 +8632,8 @@ var RunSession = class {
8176
8632
  dir: cfg.thresholds.dir,
8177
8633
  filePrefix: cfg.thresholds.filePrefix,
8178
8634
  env: cfg.run.env,
8179
- steps: cfg.measure.steps.enabled
8635
+ steps: cfg.measure.steps.enabled,
8636
+ api: cfg.measure.api
8180
8637
  };
8181
8638
  const loaded = await io.loadThresholds(location);
8182
8639
  const evaluation = evaluate(aggregates, loaded, cfg, {
@@ -8240,6 +8697,7 @@ var RunSession = class {
8240
8697
  }
8241
8698
  }
8242
8699
  const { width, color } = this.terminal();
8700
+ const temporary = this.settings.mode.thresholdsDir !== void 0;
8243
8701
  this.host.stdout.write(
8244
8702
  formatSummary(report, {
8245
8703
  width,
@@ -8248,19 +8706,29 @@ var RunSession = class {
8248
8706
  html: paths.reportHtml !== null
8249
8707
  })
8250
8708
  );
8709
+ const noSteps = this.steps.noStepsLine(Object.keys(aggregates.steps));
8710
+ if (noSteps !== null) this.host.stdout.write(noSteps);
8251
8711
  if (diffs.length > 0) {
8252
8712
  this.host.stdout.write(
8253
8713
  formatThresholdsDiff(diffs, {
8254
- paths: diffPaths.map((p) => io.relativeSlashPath(this.host.cwd, p)),
8714
+ // The check's temporary folder is shown absolute, not as ../../… (10, chapter 9.1).
8715
+ paths: diffPaths.map((p) => temporary ? p : io.relativeSlashPath(this.host.cwd, p)),
8255
8716
  width,
8256
8717
  color,
8257
8718
  prune: this.pruned,
8719
+ subset: chunkIUI4AFE5_cjs.testFilters(chunkIUI4AFE5_cjs.testArgsFromArgv(this.host.argv)).length > 0,
8258
8720
  // Absolute, like the Report line of the summary (10, chapter 9.1; 09-REQ-30).
8259
- diffPath: paths.thresholdsDiff
8721
+ diffPath: paths.thresholdsDiff,
8722
+ temporary
8260
8723
  })
8261
8724
  );
8262
8725
  }
8263
- this.next = nextHint({ report, commands: this.commands(), written: this.written });
8726
+ this.next = nextHint({
8727
+ report,
8728
+ commands: this.commands(),
8729
+ written: this.written,
8730
+ temporary
8731
+ });
8264
8732
  return buildOutcome(report, paths);
8265
8733
  }
8266
8734
  countCheck(test, result2, measured) {
@@ -8281,7 +8749,7 @@ var RunSession = class {
8281
8749
  const project = projectName(test);
8282
8750
  c.tests.set(project, (c.tests.get(project) ?? 0) + 1);
8283
8751
  }
8284
- /** onEnd of a check (04-REQ-50, 04-REQ-53): output, no report, no files; outcome only via the CLI. */
8752
+ /** onEnd of a check (04-REQ-50, 04-REQ-53): output, no report, no files, no outcome.json. */
8285
8753
  async endCheck(result2) {
8286
8754
  let outcome;
8287
8755
  try {
@@ -8294,11 +8762,10 @@ var RunSession = class {
8294
8762
  evaluation: { status: "error", gateEnabled: false }
8295
8763
  };
8296
8764
  }
8297
- if (!this.environmentMode) await this.writeOutcome(outcome);
8298
8765
  if (this.settings.mode.runId !== void 0) {
8299
8766
  try {
8300
8767
  this.host.io.removeFileSync(
8301
- this.host.io.tempPath(chunkBAOTUUTV_cjs.checkStateFileName(this.settings.mode.runId))
8768
+ this.host.io.tempPath(chunkIUI4AFE5_cjs.checkStateFileName(this.settings.mode.runId))
8302
8769
  );
8303
8770
  } catch {
8304
8771
  }
@@ -8360,12 +8827,12 @@ var RunSession = class {
8360
8827
  [...new Set(candidates)].filter((o) => !coveredByOrigins(keys.origins, o)).map((origin) => ({ origin, base: baseSet.has(origin) }))
8361
8828
  );
8362
8829
  if (random !== null) warnings.push(random);
8363
- const patterns = chunk2JO5HVPC_cjs.compileHostPatterns(keys.origins);
8830
+ const patterns = chunkLUA4WRIQ_cjs.compileHostPatterns(keys.origins);
8364
8831
  const exact = new Set(
8365
- Object.keys(keys.origins).filter((k) => !chunk2JO5HVPC_cjs.isHostPattern(k)).flatMap((k) => URL.canParse(k) ? [new URL(k).origin] : [])
8832
+ Object.keys(keys.origins).filter((k) => !chunkLUA4WRIQ_cjs.isHostPattern(k)).flatMap((k) => URL.canParse(k) ? [new URL(k).origin] : [])
8366
8833
  );
8367
8834
  const origins = [...aggregates.origins].sort((a, b) => b.requestCount - a.requestCount || (a.origin < b.origin ? -1 : 1)).map((o) => {
8368
- const pattern = URL.canParse(o.origin) ? chunk2JO5HVPC_cjs.matchingPattern(patterns, new URL(o.origin)) : null;
8835
+ const pattern = URL.canParse(o.origin) ? chunkLUA4WRIQ_cjs.matchingPattern(patterns, new URL(o.origin)) : null;
8369
8836
  const source = exact.has(o.origin) ? "keys.origins" : pattern !== null ? `keys.origins pattern ${pattern.canonical}` : baseSet.has(o.origin) ? "baseURL" : "host";
8370
8837
  return { origin: o.origin, label: o.label, requests: o.requestCount, source };
8371
8838
  });
@@ -8390,17 +8857,18 @@ var RunSession = class {
8390
8857
  dir: cfg.thresholds.dir,
8391
8858
  filePrefix: cfg.thresholds.filePrefix,
8392
8859
  env: cfg.run.env,
8393
- steps: cfg.measure.steps.enabled
8860
+ steps: cfg.measure.steps.enabled,
8861
+ api: cfg.measure.api
8394
8862
  };
8395
8863
  const loaded = await this.host.io.loadThresholds(location);
8396
8864
  const kindsWithKeys = {
8397
8865
  api: Object.keys(aggregates.endpoints).length > 0,
8398
8866
  step: Object.keys(aggregates.steps).length > 0
8399
8867
  };
8400
- const thresholdsFiles = ["api", "step"].filter((kind2) => kind2 === "api" || kindsWithKeys.step || !cfg.measure.steps.enabled).map((kind2) => {
8868
+ const kindOn = { api: cfg.measure.api, step: cfg.measure.steps.enabled };
8869
+ const thresholdsFiles = ["api", "step"].filter((kind2) => kind2 === "api" || kindsWithKeys.step || !kindOn.step).map((kind2) => {
8401
8870
  const file = loaded[kind2];
8402
- if (kind2 === "step" && !cfg.measure.steps.enabled)
8403
- return { kind: kind2, name: file.path, state: "not used" };
8871
+ if (!kindOn[kind2]) return { kind: kind2, name: file.path, state: "not used" };
8404
8872
  const state = file.status === "loaded" ? `${String(Object.keys(file.file.entries).length)} entries` : file.status === "missing" ? "missing" : `invalid (${file.issues[0]?.code ?? "SCHEMA_VALIDATION_FAILED"})`;
8405
8873
  return { kind: kind2, name: file.path, state };
8406
8874
  });
@@ -8425,11 +8893,11 @@ var RunSession = class {
8425
8893
  name: p.name,
8426
8894
  role: p.role,
8427
8895
  browserName: p.browserName,
8896
+ requestOnly: this.requestOnly(p),
8428
8897
  baseURL: config?.projects[i]?.use.baseURL ?? null,
8429
8898
  requests: c.requests.get(p.name) ?? 0,
8430
8899
  tests: c.tests.get(p.name) ?? 0
8431
8900
  })),
8432
- removedProjects: this.settings.runConditions.removedProjects,
8433
8901
  reporters: {
8434
8902
  kept: reporters,
8435
8903
  replaced: this.settings.runConditions.replacedReporters,
@@ -8455,7 +8923,7 @@ var RunSession = class {
8455
8923
  )
8456
8924
  );
8457
8925
  const commands = this.commands();
8458
- this.next = toolErrors.length > 0 ? null : !kindsWithKeys.api && !kindsWithKeys.step ? `nothing was measured: check use.baseURL and run.projects, then run ${commands.check}` : missingFile ? `derive thresholds on the CI machines: ${commands.thresholds}` : `run the measurement: ${commands.test}`;
8926
+ this.next = toolErrors.length > 0 ? null : !kindsWithKeys.api && !kindsWithKeys.step ? `nothing was measured: check use.baseURL and the projects of the test command, then run ${commands.check}` : missingFile ? `derive thresholds on the CI machines: ${commands.thresholds}` : `run the measurement: ${commands.test}`;
8459
8927
  return {
8460
8928
  schemaVersion: SCHEMA_VERSIONS.outcome,
8461
8929
  runId: this.runId,
@@ -8467,19 +8935,42 @@ var RunSession = class {
8467
8935
  paths: { reportJson: null, reportHtml: null, thresholds: [], thresholdsDiff: null }
8468
8936
  };
8469
8937
  }
8938
+ /** The words the run added to the test command, as for the next pass (09-REQ-32, 04-REQ-63). */
8939
+ runArgs() {
8940
+ const shape = chunkIUI4AFE5_cjs.runShape({
8941
+ execPath: this.host.execPath,
8942
+ argv: this.host.argv,
8943
+ env: this.host.env,
8944
+ scripts: this.host.io.readPackageInfo(this.host.cwd).scripts
8945
+ });
8946
+ return { script: shape.script !== null, tail: shape.tail };
8947
+ }
8948
+ /**
8949
+ * The test directory relative to INIT_CWD, the directory the package manager was called from
8950
+ * (e.g. the root of a monorepo), or null when it is the same or not below it: an INIT_CWD
8951
+ * inherited from an unrelated outer script must not send the user elsewhere (09-REQ-32, 09-D-20).
8952
+ */
8953
+ calledFrom() {
8954
+ const { INIT_CWD: from } = this.host.env;
8955
+ if (from === void 0 || from === "") return null;
8956
+ const io = this.host.io;
8957
+ const dir = io.relativeSlashPath(io.resolvePath(this.host.cwd, from), this.host.cwd);
8958
+ return dir === "." || dir === ".." || dir.startsWith("../") || /^([A-Za-z]:)?\//u.test(dir) ? null : dir;
8959
+ }
8470
8960
  /** Commands of the project for each mode, for the Next: hint (09-REQ-32). */
8471
8961
  commands() {
8472
8962
  const env = this.host.env;
8473
8963
  const info = this.host.io.readPackageInfo(this.configDir);
8474
8964
  const ctx = {
8475
- viaCli: !this.environmentMode,
8476
8965
  env: this.settings.config.run.env,
8477
8966
  lifecycleEvent: env["npm_lifecycle_event"] ?? null,
8478
8967
  lifecycleScript: env["npm_lifecycle_script"] ?? null,
8479
8968
  userAgent: env["npm_config_user_agent"] ?? null,
8480
8969
  lockFiles: info.lockFiles,
8481
8970
  scripts: info.scripts,
8482
- platform: this.host.host.platform
8971
+ platform: this.host.host.platform,
8972
+ run: this.runArgs(),
8973
+ directory: this.calledFrom()
8483
8974
  };
8484
8975
  return {
8485
8976
  test: suggestCommand("test", ctx),
@@ -8489,7 +8980,7 @@ var RunSession = class {
8489
8980
  }
8490
8981
  /**
8491
8982
  * Writes report.html next to report.json (11-REQ-04). The page is rendered from the report as
8492
- * written to JSON, so `report` renders the same HTML from report.json (11-AC-10). Returns the
8983
+ * written to JSON, so it is a function of report.json only (01-REQ-22). Returns the
8493
8984
  * HTML_RENDER_FAILED or HTML_WRITE_FAILED tool error (11, chapter 13), or null.
8494
8985
  */
8495
8986
  async writeHtml(report, path, paths) {
@@ -8512,7 +9003,7 @@ var RunSession = class {
8512
9003
  return {
8513
9004
  code: "HTML_WRITE_FAILED",
8514
9005
  message: `The HTML report could not be written to ${path}: ${error instanceof Error ? error.message : String(error)}`,
8515
- hint: `Check that report.dir is writable; \`${chunkBAOTUUTV_cjs.CLI_COMMAND} report\` renders it again from report.json.`
9006
+ hint: "Check that report.dir is writable, then run again."
8516
9007
  };
8517
9008
  }
8518
9009
  }
@@ -8599,12 +9090,11 @@ var RunSession = class {
8599
9090
  pruned = false;
8600
9091
  /**
8601
9092
  * PW_PERF_PRUNE in the environment mode with a test filter in the arguments: the files are
8602
- * written without removing entries, with RUN_PRUNE_SKIPPED (04-REQ-35). The CLI rejects the
8603
- * same case before the run.
9093
+ * written without removing entries, with RUN_PRUNE_SKIPPED (04-REQ-35).
8604
9094
  */
8605
9095
  prune(warnings) {
8606
9096
  if (this.settings.mode.prune !== true) return false;
8607
- const filters = this.environmentMode ? chunkBAOTUUTV_cjs.testFilters(chunkBAOTUUTV_cjs.testArgsFromArgv(this.host.argv)) : [];
9097
+ const filters = chunkIUI4AFE5_cjs.testFilters(chunkIUI4AFE5_cjs.testArgsFromArgv(this.host.argv));
8608
9098
  if (filters.length > 0) {
8609
9099
  warnings.push({
8610
9100
  code: "RUN_PRUNE_SKIPPED",
@@ -8616,14 +9106,8 @@ var RunSession = class {
8616
9106
  this.pruned = true;
8617
9107
  return true;
8618
9108
  }
8619
- /** Run without the CLI: the CLI sets PW_PERF_OUTCOME_FILE (04-REQ-62, D-35). */
8620
- get environmentMode() {
8621
- return this.settings.mode.outcomeFile === void 0;
8622
- }
8623
- /** PW_PERF_OUTCOME_FILE, else <report.dir>/outcome.json (02-REQ-27, 04-REQ-62). */
9109
+ /** <report.dir>/outcome.json (02-REQ-27, 04-REQ-62). */
8624
9110
  outcomePath() {
8625
- const file = this.settings.mode.outcomeFile;
8626
- if (file !== void 0) return file;
8627
9111
  const io = this.host.io;
8628
9112
  return io.resolvePath(
8629
9113
  io.resolvePath(this.configDir, this.settings.config.report.dir),
@@ -8633,19 +9117,30 @@ var RunSession = class {
8633
9117
  /** Last step of onEnd (02-REQ-27); returns the path written, or null. */
8634
9118
  async writeOutcome(outcome) {
8635
9119
  const file = this.outcomePath();
8636
- if (file === null) return null;
8637
9120
  try {
8638
9121
  await this.host.io.writeJsonStable(file, outcome);
8639
9122
  return file;
8640
9123
  } catch (error) {
8641
9124
  this.host.stderr.write(
8642
- `${chunkBAOTUUTV_cjs.PACKAGE_NAME}: OUTCOME_WRITE_FAILED: the outcome file could not be written to ${file}: ${error instanceof Error ? error.message : String(error)}
9125
+ `${chunkIUI4AFE5_cjs.PACKAGE_NAME}: OUTCOME_WRITE_FAILED: the outcome file could not be written to ${file}: ${error instanceof Error ? error.message : String(error)}
8643
9126
  `
8644
9127
  );
8645
9128
  return null;
8646
9129
  }
8647
9130
  }
8648
9131
  };
9132
+ function configFileNotPassedWarning(entries2) {
9133
+ const names2 = new Set(entries2);
9134
+ const file = chunkIUI4AFE5_cjs.CONFIG_FILE_EXTENSIONS.map((ext) => `${chunkIUI4AFE5_cjs.CONFIG_FILE_BASENAME}${ext}`).find(
9135
+ (name) => names2.has(name)
9136
+ );
9137
+ if (file === void 0) return null;
9138
+ return {
9139
+ code: "CONFIG_FILE_NOT_PASSED",
9140
+ message: `${file} is not passed to withPerf(), so the run uses the default settings.`,
9141
+ hint: "Import it in the Playwright config and pass it as the second argument: withPerf(config, perfConfig)."
9142
+ };
9143
+ }
8649
9144
  function emptyBaseUrlWarning(conditions, config) {
8650
9145
  const names2 = conditions.projects.flatMap((p, i) => {
8651
9146
  if (p.role !== "measured") return [];
@@ -8683,10 +9178,16 @@ function processHost() {
8683
9178
  relativeSlashPath,
8684
9179
  removeFileSync,
8685
9180
  readPackageInfo,
9181
+ readSuite,
8686
9182
  tempPath,
8687
9183
  readTextFile,
8688
9184
  readTextFileSync,
8689
- listDirSync
9185
+ listDirSync,
9186
+ isDirectorySync,
9187
+ realPathSync,
9188
+ homeDir,
9189
+ scanDirSync,
9190
+ emptyDirSync
8690
9191
  },
8691
9192
  stdout: process.stdout,
8692
9193
  stderr: process.stderr,
@@ -8697,9 +9198,7 @@ function processHost() {
8697
9198
  ci: readCiInfo(env),
8698
9199
  host: readHostInfo(env),
8699
9200
  execPath: process.execPath,
8700
- runPass: (command, passEnv) => runPass(command, passEnv, process.cwd()),
8701
- ask: (question) => askTerminal(question),
8702
- exit: (code2) => process.exit(code2)
9201
+ runPass: (command, passEnv) => runPass(command, passEnv, process.cwd())
8703
9202
  };
8704
9203
  }
8705
9204
  var PerfReporter = class {
@@ -8713,7 +9212,7 @@ var PerfReporter = class {
8713
9212
  let startError;
8714
9213
  try {
8715
9214
  const host = processHost();
8716
- const settings = runSettings(chunkBAOTUUTV_cjs.getRegistered(), host.env, chunkBAOTUUTV_cjs.version);
9215
+ const settings = runSettings(chunkIUI4AFE5_cjs.getRegistered(), host.env, chunkIUI4AFE5_cjs.version);
8717
9216
  session = settings === null ? null : new RunSession(host, settings);
8718
9217
  } catch (error) {
8719
9218
  startError = error;