@nathapp/nax 0.51.2 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1304 -88
- package/README.md +98 -987
- package/dist/nax.js +886 -860
- package/package.json +6 -1
package/dist/nax.js
CHANGED
|
@@ -5,25 +5,43 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
8
13
|
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
9
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
10
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
11
23
|
for (let key of __getOwnPropNames(mod))
|
|
12
24
|
if (!__hasOwnProp.call(to, key))
|
|
13
25
|
__defProp(to, key, {
|
|
14
|
-
get: (
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
15
27
|
enumerable: true
|
|
16
28
|
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
17
31
|
return to;
|
|
18
32
|
};
|
|
19
33
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
+
var __returnValue = (v) => v;
|
|
35
|
+
function __exportSetter(name, newValue) {
|
|
36
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
37
|
+
}
|
|
20
38
|
var __export = (target, all) => {
|
|
21
39
|
for (var name in all)
|
|
22
40
|
__defProp(target, name, {
|
|
23
41
|
get: all[name],
|
|
24
42
|
enumerable: true,
|
|
25
43
|
configurable: true,
|
|
26
|
-
set: (
|
|
44
|
+
set: __exportSetter.bind(all, name)
|
|
27
45
|
});
|
|
28
46
|
};
|
|
29
47
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -22399,7 +22417,7 @@ var package_default;
|
|
|
22399
22417
|
var init_package = __esm(() => {
|
|
22400
22418
|
package_default = {
|
|
22401
22419
|
name: "@nathapp/nax",
|
|
22402
|
-
version: "0.
|
|
22420
|
+
version: "0.52.0",
|
|
22403
22421
|
description: "AI Coding Agent Orchestrator \u2014 loops until done",
|
|
22404
22422
|
type: "module",
|
|
22405
22423
|
bin: {
|
|
@@ -22460,6 +22478,11 @@ var init_package = __esm(() => {
|
|
|
22460
22478
|
homepage: "https://github.com/nathapp-io/nax",
|
|
22461
22479
|
bugs: {
|
|
22462
22480
|
url: "https://github.com/nathapp-io/nax/issues"
|
|
22481
|
+
},
|
|
22482
|
+
publishConfig: {
|
|
22483
|
+
access: "public",
|
|
22484
|
+
registry: "https://registry.npmjs.org/",
|
|
22485
|
+
provenance: true
|
|
22463
22486
|
}
|
|
22464
22487
|
};
|
|
22465
22488
|
});
|
|
@@ -22471,8 +22494,8 @@ var init_version = __esm(() => {
|
|
|
22471
22494
|
NAX_VERSION = package_default.version;
|
|
22472
22495
|
NAX_COMMIT = (() => {
|
|
22473
22496
|
try {
|
|
22474
|
-
if (/^[0-9a-f]{6,10}$/.test("
|
|
22475
|
-
return "
|
|
22497
|
+
if (/^[0-9a-f]{6,10}$/.test("08db523"))
|
|
22498
|
+
return "08db523";
|
|
22476
22499
|
} catch {}
|
|
22477
22500
|
try {
|
|
22478
22501
|
const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
|
|
@@ -24541,6 +24564,128 @@ var init_event_bus = __esm(() => {
|
|
|
24541
24564
|
pipelineEventBus = new PipelineEventBus;
|
|
24542
24565
|
});
|
|
24543
24566
|
|
|
24567
|
+
// src/utils/git.ts
|
|
24568
|
+
async function gitWithTimeout(args, workdir) {
|
|
24569
|
+
const proc = _gitDeps.spawn(["git", ...args], {
|
|
24570
|
+
cwd: workdir,
|
|
24571
|
+
stdout: "pipe",
|
|
24572
|
+
stderr: "pipe"
|
|
24573
|
+
});
|
|
24574
|
+
let timedOut = false;
|
|
24575
|
+
const timerId = setTimeout(() => {
|
|
24576
|
+
timedOut = true;
|
|
24577
|
+
try {
|
|
24578
|
+
proc.kill("SIGKILL");
|
|
24579
|
+
} catch {}
|
|
24580
|
+
}, GIT_TIMEOUT_MS);
|
|
24581
|
+
const exitCode = await proc.exited;
|
|
24582
|
+
clearTimeout(timerId);
|
|
24583
|
+
if (timedOut) {
|
|
24584
|
+
return { stdout: "", exitCode: 1 };
|
|
24585
|
+
}
|
|
24586
|
+
const stdout = await new Response(proc.stdout).text();
|
|
24587
|
+
return { stdout, exitCode };
|
|
24588
|
+
}
|
|
24589
|
+
async function captureGitRef(workdir) {
|
|
24590
|
+
try {
|
|
24591
|
+
const { stdout, exitCode } = await gitWithTimeout(["rev-parse", "HEAD"], workdir);
|
|
24592
|
+
if (exitCode !== 0)
|
|
24593
|
+
return;
|
|
24594
|
+
return stdout.trim() || undefined;
|
|
24595
|
+
} catch {
|
|
24596
|
+
return;
|
|
24597
|
+
}
|
|
24598
|
+
}
|
|
24599
|
+
async function hasCommitsForStory(workdir, storyId, maxCommits = 20) {
|
|
24600
|
+
try {
|
|
24601
|
+
const { stdout, exitCode } = await gitWithTimeout(["log", `-${maxCommits}`, "--oneline", "--grep", storyId], workdir);
|
|
24602
|
+
if (exitCode !== 0)
|
|
24603
|
+
return false;
|
|
24604
|
+
return stdout.trim().length > 0;
|
|
24605
|
+
} catch {
|
|
24606
|
+
return false;
|
|
24607
|
+
}
|
|
24608
|
+
}
|
|
24609
|
+
function detectMergeConflict(output) {
|
|
24610
|
+
return output.includes("CONFLICT") || output.includes("conflict");
|
|
24611
|
+
}
|
|
24612
|
+
async function autoCommitIfDirty(workdir, stage, role, storyId) {
|
|
24613
|
+
const logger = getSafeLogger();
|
|
24614
|
+
try {
|
|
24615
|
+
const topLevelProc = _gitDeps.spawn(["git", "rev-parse", "--show-toplevel"], {
|
|
24616
|
+
cwd: workdir,
|
|
24617
|
+
stdout: "pipe",
|
|
24618
|
+
stderr: "pipe"
|
|
24619
|
+
});
|
|
24620
|
+
const gitRoot = (await new Response(topLevelProc.stdout).text()).trim();
|
|
24621
|
+
await topLevelProc.exited;
|
|
24622
|
+
const { realpathSync: realpathSync4 } = await import("fs");
|
|
24623
|
+
const realWorkdir = (() => {
|
|
24624
|
+
try {
|
|
24625
|
+
return realpathSync4(workdir);
|
|
24626
|
+
} catch {
|
|
24627
|
+
return workdir;
|
|
24628
|
+
}
|
|
24629
|
+
})();
|
|
24630
|
+
const realGitRoot = (() => {
|
|
24631
|
+
try {
|
|
24632
|
+
return realpathSync4(gitRoot);
|
|
24633
|
+
} catch {
|
|
24634
|
+
return gitRoot;
|
|
24635
|
+
}
|
|
24636
|
+
})();
|
|
24637
|
+
const isAtRoot = realWorkdir === realGitRoot;
|
|
24638
|
+
const isSubdir = realGitRoot && realWorkdir.startsWith(`${realGitRoot}/`);
|
|
24639
|
+
if (!isAtRoot && !isSubdir)
|
|
24640
|
+
return;
|
|
24641
|
+
const statusProc = _gitDeps.spawn(["git", "status", "--porcelain"], {
|
|
24642
|
+
cwd: workdir,
|
|
24643
|
+
stdout: "pipe",
|
|
24644
|
+
stderr: "pipe"
|
|
24645
|
+
});
|
|
24646
|
+
const statusOutput = await new Response(statusProc.stdout).text();
|
|
24647
|
+
await statusProc.exited;
|
|
24648
|
+
if (!statusOutput.trim())
|
|
24649
|
+
return;
|
|
24650
|
+
logger?.warn(stage, `Agent did not commit after ${role} session \u2014 auto-committing`, {
|
|
24651
|
+
role,
|
|
24652
|
+
storyId,
|
|
24653
|
+
dirtyFiles: statusOutput.trim().split(`
|
|
24654
|
+
`).length
|
|
24655
|
+
});
|
|
24656
|
+
const addArgs = isSubdir ? ["git", "add", "."] : ["git", "add", "-A"];
|
|
24657
|
+
const addProc = _gitDeps.spawn(addArgs, { cwd: workdir, stdout: "pipe", stderr: "pipe" });
|
|
24658
|
+
await addProc.exited;
|
|
24659
|
+
const commitProc = _gitDeps.spawn(["git", "commit", "-m", `chore(${storyId}): auto-commit after ${role} session`], {
|
|
24660
|
+
cwd: workdir,
|
|
24661
|
+
stdout: "pipe",
|
|
24662
|
+
stderr: "pipe"
|
|
24663
|
+
});
|
|
24664
|
+
await commitProc.exited;
|
|
24665
|
+
} catch {}
|
|
24666
|
+
}
|
|
24667
|
+
async function captureOutputFiles(workdir, baseRef, scopePrefix) {
|
|
24668
|
+
if (!baseRef)
|
|
24669
|
+
return [];
|
|
24670
|
+
try {
|
|
24671
|
+
const args = ["diff", "--name-only", `${baseRef}..HEAD`];
|
|
24672
|
+
if (scopePrefix)
|
|
24673
|
+
args.push("--", `${scopePrefix}/`);
|
|
24674
|
+
const proc = _gitDeps.spawn(["git", ...args], { cwd: workdir, stdout: "pipe", stderr: "pipe" });
|
|
24675
|
+
const output = await new Response(proc.stdout).text();
|
|
24676
|
+
await proc.exited;
|
|
24677
|
+
return output.trim().split(`
|
|
24678
|
+
`).filter(Boolean);
|
|
24679
|
+
} catch {
|
|
24680
|
+
return [];
|
|
24681
|
+
}
|
|
24682
|
+
}
|
|
24683
|
+
var _gitDeps, GIT_TIMEOUT_MS = 1e4;
|
|
24684
|
+
var init_git = __esm(() => {
|
|
24685
|
+
init_logger2();
|
|
24686
|
+
_gitDeps = { spawn: Bun.spawn };
|
|
24687
|
+
});
|
|
24688
|
+
|
|
24544
24689
|
// src/review/runner.ts
|
|
24545
24690
|
var {spawn } = globalThis.Bun;
|
|
24546
24691
|
async function loadPackageJson(workdir) {
|
|
@@ -24673,11 +24818,12 @@ async function getUncommittedFilesImpl(workdir) {
|
|
|
24673
24818
|
return [];
|
|
24674
24819
|
}
|
|
24675
24820
|
}
|
|
24676
|
-
async function runReview(config2, workdir, executionConfig, qualityCommands) {
|
|
24821
|
+
async function runReview(config2, workdir, executionConfig, qualityCommands, storyId) {
|
|
24677
24822
|
const startTime = Date.now();
|
|
24678
24823
|
const logger = getSafeLogger();
|
|
24679
24824
|
const checks3 = [];
|
|
24680
24825
|
let firstFailure;
|
|
24826
|
+
await autoCommitIfDirty(workdir, "review", "agent", storyId ?? "review");
|
|
24681
24827
|
const allUncommittedFiles = await _deps4.getUncommittedFiles(workdir);
|
|
24682
24828
|
const NAX_RUNTIME_PATTERNS = [
|
|
24683
24829
|
/nax\.lock$/,
|
|
@@ -24736,6 +24882,7 @@ Stage and commit these files before running review.`
|
|
|
24736
24882
|
var _reviewRunnerDeps, REVIEW_CHECK_TIMEOUT_MS = 120000, SIGKILL_GRACE_PERIOD_MS2 = 5000, _deps4;
|
|
24737
24883
|
var init_runner2 = __esm(() => {
|
|
24738
24884
|
init_logger2();
|
|
24885
|
+
init_git();
|
|
24739
24886
|
_reviewRunnerDeps = { spawn, file: Bun.file };
|
|
24740
24887
|
_deps4 = {
|
|
24741
24888
|
getUncommittedFiles: getUncommittedFilesImpl
|
|
@@ -24775,7 +24922,7 @@ async function getChangedFiles(workdir, baseRef) {
|
|
|
24775
24922
|
class ReviewOrchestrator {
|
|
24776
24923
|
async review(reviewConfig, workdir, executionConfig, plugins, storyGitRef, scopePrefix, qualityCommands) {
|
|
24777
24924
|
const logger = getSafeLogger();
|
|
24778
|
-
const builtIn = await runReview(reviewConfig, workdir, executionConfig, qualityCommands);
|
|
24925
|
+
const builtIn = await runReview(reviewConfig, workdir, executionConfig, qualityCommands, storyGitRef);
|
|
24779
24926
|
if (!builtIn.success) {
|
|
24780
24927
|
return { builtIn, success: false, failureReason: builtIn.failureReason, pluginFailed: false };
|
|
24781
24928
|
}
|
|
@@ -25263,7 +25410,7 @@ var init_constitution = __esm(() => {
|
|
|
25263
25410
|
});
|
|
25264
25411
|
|
|
25265
25412
|
// src/pipeline/stages/constitution.ts
|
|
25266
|
-
import { dirname as
|
|
25413
|
+
import { dirname as dirname4 } from "path";
|
|
25267
25414
|
var constitutionStage;
|
|
25268
25415
|
var init_constitution2 = __esm(() => {
|
|
25269
25416
|
init_constitution();
|
|
@@ -25273,7 +25420,7 @@ var init_constitution2 = __esm(() => {
|
|
|
25273
25420
|
enabled: (ctx) => ctx.config.constitution.enabled,
|
|
25274
25421
|
async execute(ctx) {
|
|
25275
25422
|
const logger = getLogger();
|
|
25276
|
-
const ngentDir = ctx.featureDir ?
|
|
25423
|
+
const ngentDir = ctx.featureDir ? dirname4(dirname4(ctx.featureDir)) : `${ctx.workdir}/nax`;
|
|
25277
25424
|
const result = await loadConstitution(ngentDir, ctx.config.constitution);
|
|
25278
25425
|
if (result) {
|
|
25279
25426
|
ctx.constitution = result;
|
|
@@ -26420,128 +26567,6 @@ async function isGreenfieldStory(story, workdir, testPattern = "**/*.{test,spec}
|
|
|
26420
26567
|
}
|
|
26421
26568
|
}
|
|
26422
26569
|
var init_greenfield = () => {};
|
|
26423
|
-
|
|
26424
|
-
// src/utils/git.ts
|
|
26425
|
-
async function gitWithTimeout(args, workdir) {
|
|
26426
|
-
const proc = _gitDeps.spawn(["git", ...args], {
|
|
26427
|
-
cwd: workdir,
|
|
26428
|
-
stdout: "pipe",
|
|
26429
|
-
stderr: "pipe"
|
|
26430
|
-
});
|
|
26431
|
-
let timedOut = false;
|
|
26432
|
-
const timerId = setTimeout(() => {
|
|
26433
|
-
timedOut = true;
|
|
26434
|
-
try {
|
|
26435
|
-
proc.kill("SIGKILL");
|
|
26436
|
-
} catch {}
|
|
26437
|
-
}, GIT_TIMEOUT_MS);
|
|
26438
|
-
const exitCode = await proc.exited;
|
|
26439
|
-
clearTimeout(timerId);
|
|
26440
|
-
if (timedOut) {
|
|
26441
|
-
return { stdout: "", exitCode: 1 };
|
|
26442
|
-
}
|
|
26443
|
-
const stdout = await new Response(proc.stdout).text();
|
|
26444
|
-
return { stdout, exitCode };
|
|
26445
|
-
}
|
|
26446
|
-
async function captureGitRef(workdir) {
|
|
26447
|
-
try {
|
|
26448
|
-
const { stdout, exitCode } = await gitWithTimeout(["rev-parse", "HEAD"], workdir);
|
|
26449
|
-
if (exitCode !== 0)
|
|
26450
|
-
return;
|
|
26451
|
-
return stdout.trim() || undefined;
|
|
26452
|
-
} catch {
|
|
26453
|
-
return;
|
|
26454
|
-
}
|
|
26455
|
-
}
|
|
26456
|
-
async function hasCommitsForStory(workdir, storyId, maxCommits = 20) {
|
|
26457
|
-
try {
|
|
26458
|
-
const { stdout, exitCode } = await gitWithTimeout(["log", `-${maxCommits}`, "--oneline", "--grep", storyId], workdir);
|
|
26459
|
-
if (exitCode !== 0)
|
|
26460
|
-
return false;
|
|
26461
|
-
return stdout.trim().length > 0;
|
|
26462
|
-
} catch {
|
|
26463
|
-
return false;
|
|
26464
|
-
}
|
|
26465
|
-
}
|
|
26466
|
-
function detectMergeConflict(output) {
|
|
26467
|
-
return output.includes("CONFLICT") || output.includes("conflict");
|
|
26468
|
-
}
|
|
26469
|
-
async function autoCommitIfDirty(workdir, stage, role, storyId) {
|
|
26470
|
-
const logger = getSafeLogger();
|
|
26471
|
-
try {
|
|
26472
|
-
const topLevelProc = _gitDeps.spawn(["git", "rev-parse", "--show-toplevel"], {
|
|
26473
|
-
cwd: workdir,
|
|
26474
|
-
stdout: "pipe",
|
|
26475
|
-
stderr: "pipe"
|
|
26476
|
-
});
|
|
26477
|
-
const gitRoot = (await new Response(topLevelProc.stdout).text()).trim();
|
|
26478
|
-
await topLevelProc.exited;
|
|
26479
|
-
const { realpathSync: realpathSync4 } = await import("fs");
|
|
26480
|
-
const realWorkdir = (() => {
|
|
26481
|
-
try {
|
|
26482
|
-
return realpathSync4(workdir);
|
|
26483
|
-
} catch {
|
|
26484
|
-
return workdir;
|
|
26485
|
-
}
|
|
26486
|
-
})();
|
|
26487
|
-
const realGitRoot = (() => {
|
|
26488
|
-
try {
|
|
26489
|
-
return realpathSync4(gitRoot);
|
|
26490
|
-
} catch {
|
|
26491
|
-
return gitRoot;
|
|
26492
|
-
}
|
|
26493
|
-
})();
|
|
26494
|
-
const isAtRoot = realWorkdir === realGitRoot;
|
|
26495
|
-
const isSubdir = realGitRoot && realWorkdir.startsWith(`${realGitRoot}/`);
|
|
26496
|
-
if (!isAtRoot && !isSubdir)
|
|
26497
|
-
return;
|
|
26498
|
-
const statusProc = _gitDeps.spawn(["git", "status", "--porcelain"], {
|
|
26499
|
-
cwd: workdir,
|
|
26500
|
-
stdout: "pipe",
|
|
26501
|
-
stderr: "pipe"
|
|
26502
|
-
});
|
|
26503
|
-
const statusOutput = await new Response(statusProc.stdout).text();
|
|
26504
|
-
await statusProc.exited;
|
|
26505
|
-
if (!statusOutput.trim())
|
|
26506
|
-
return;
|
|
26507
|
-
logger?.warn(stage, `Agent did not commit after ${role} session \u2014 auto-committing`, {
|
|
26508
|
-
role,
|
|
26509
|
-
storyId,
|
|
26510
|
-
dirtyFiles: statusOutput.trim().split(`
|
|
26511
|
-
`).length
|
|
26512
|
-
});
|
|
26513
|
-
const addArgs = isSubdir ? ["git", "add", "."] : ["git", "add", "-A"];
|
|
26514
|
-
const addProc = _gitDeps.spawn(addArgs, { cwd: workdir, stdout: "pipe", stderr: "pipe" });
|
|
26515
|
-
await addProc.exited;
|
|
26516
|
-
const commitProc = _gitDeps.spawn(["git", "commit", "-m", `chore(${storyId}): auto-commit after ${role} session`], {
|
|
26517
|
-
cwd: workdir,
|
|
26518
|
-
stdout: "pipe",
|
|
26519
|
-
stderr: "pipe"
|
|
26520
|
-
});
|
|
26521
|
-
await commitProc.exited;
|
|
26522
|
-
} catch {}
|
|
26523
|
-
}
|
|
26524
|
-
async function captureOutputFiles(workdir, baseRef, scopePrefix) {
|
|
26525
|
-
if (!baseRef)
|
|
26526
|
-
return [];
|
|
26527
|
-
try {
|
|
26528
|
-
const args = ["diff", "--name-only", `${baseRef}..HEAD`];
|
|
26529
|
-
if (scopePrefix)
|
|
26530
|
-
args.push("--", `${scopePrefix}/`);
|
|
26531
|
-
const proc = _gitDeps.spawn(["git", ...args], { cwd: workdir, stdout: "pipe", stderr: "pipe" });
|
|
26532
|
-
const output = await new Response(proc.stdout).text();
|
|
26533
|
-
await proc.exited;
|
|
26534
|
-
return output.trim().split(`
|
|
26535
|
-
`).filter(Boolean);
|
|
26536
|
-
} catch {
|
|
26537
|
-
return [];
|
|
26538
|
-
}
|
|
26539
|
-
}
|
|
26540
|
-
var _gitDeps, GIT_TIMEOUT_MS = 1e4;
|
|
26541
|
-
var init_git = __esm(() => {
|
|
26542
|
-
init_logger2();
|
|
26543
|
-
_gitDeps = { spawn: Bun.spawn };
|
|
26544
|
-
});
|
|
26545
26570
|
// src/verification/executor.ts
|
|
26546
26571
|
async function drainWithDeadline(proc, deadlineMs) {
|
|
26547
26572
|
const EMPTY = Symbol("timeout");
|
|
@@ -29558,8 +29583,8 @@ async function importGrepFallback(sourceFiles, workdir, testFilePatterns) {
|
|
|
29558
29583
|
async function mapSourceToTests(sourceFiles, workdir) {
|
|
29559
29584
|
const result = [];
|
|
29560
29585
|
for (const sourceFile of sourceFiles) {
|
|
29561
|
-
const
|
|
29562
|
-
const candidates = [`${workdir}/test/unit/${
|
|
29586
|
+
const relative2 = sourceFile.replace(/^src\//, "").replace(/\.ts$/, ".test.ts");
|
|
29587
|
+
const candidates = [`${workdir}/test/unit/${relative2}`, `${workdir}/test/integration/${relative2}`];
|
|
29563
29588
|
for (const candidate of candidates) {
|
|
29564
29589
|
if (await _bunDeps.file(candidate).exists()) {
|
|
29565
29590
|
result.push(candidate);
|
|
@@ -36732,14 +36757,14 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
36732
36757
|
if (opts && opts.alwaysLast) {
|
|
36733
36758
|
ev = "afterexit";
|
|
36734
36759
|
}
|
|
36735
|
-
var
|
|
36760
|
+
var remove2 = function() {
|
|
36736
36761
|
emitter.removeListener(ev, cb);
|
|
36737
36762
|
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
36738
36763
|
unload();
|
|
36739
36764
|
}
|
|
36740
36765
|
};
|
|
36741
36766
|
emitter.on(ev, cb);
|
|
36742
|
-
return
|
|
36767
|
+
return remove2;
|
|
36743
36768
|
};
|
|
36744
36769
|
unload = function unload2() {
|
|
36745
36770
|
if (!loaded || !processOk(global.process)) {
|
|
@@ -36930,16 +36955,16 @@ var require_scheduler_development = __commonJS((exports) => {
|
|
|
36930
36955
|
function pop(heap) {
|
|
36931
36956
|
if (heap.length === 0)
|
|
36932
36957
|
return null;
|
|
36933
|
-
var first = heap[0],
|
|
36934
|
-
if (
|
|
36935
|
-
heap[0] =
|
|
36958
|
+
var first = heap[0], last2 = heap.pop();
|
|
36959
|
+
if (last2 !== first) {
|
|
36960
|
+
heap[0] = last2;
|
|
36936
36961
|
a:
|
|
36937
36962
|
for (var index = 0, length = heap.length, halfLength = length >>> 1;index < halfLength; ) {
|
|
36938
36963
|
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
36939
|
-
if (0 > compare(left,
|
|
36940
|
-
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] =
|
|
36941
|
-
else if (rightIndex < length && 0 > compare(right,
|
|
36942
|
-
heap[index] = right, heap[rightIndex] =
|
|
36964
|
+
if (0 > compare(left, last2))
|
|
36965
|
+
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last2, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last2, index = leftIndex);
|
|
36966
|
+
else if (rightIndex < length && 0 > compare(right, last2))
|
|
36967
|
+
heap[index] = right, heap[rightIndex] = last2, index = rightIndex;
|
|
36943
36968
|
else
|
|
36944
36969
|
break a;
|
|
36945
36970
|
}
|
|
@@ -37132,7 +37157,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
37132
37157
|
function copyWithSetImpl(obj, path19, index, value) {
|
|
37133
37158
|
if (index >= path19.length)
|
|
37134
37159
|
return value;
|
|
37135
|
-
var key = path19[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
37160
|
+
var key = path19[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
|
|
37136
37161
|
updated[key] = copyWithSetImpl(obj[key], path19, index + 1, value);
|
|
37137
37162
|
return updated;
|
|
37138
37163
|
}
|
|
@@ -37149,12 +37174,12 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
37149
37174
|
}
|
|
37150
37175
|
}
|
|
37151
37176
|
function copyWithRenameImpl(obj, oldPath, newPath, index) {
|
|
37152
|
-
var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
37177
|
+
var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
|
|
37153
37178
|
index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl(obj[oldKey], oldPath, newPath, index + 1);
|
|
37154
37179
|
return updated;
|
|
37155
37180
|
}
|
|
37156
37181
|
function copyWithDeleteImpl(obj, path19, index) {
|
|
37157
|
-
var key = path19[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
37182
|
+
var key = path19[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
|
|
37158
37183
|
if (index + 1 === path19.length)
|
|
37159
37184
|
return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated;
|
|
37160
37185
|
updated[key] = copyWithDeleteImpl(obj[key], path19, index + 1);
|
|
@@ -37172,12 +37197,12 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
37172
37197
|
function scheduleRoot(root, element) {
|
|
37173
37198
|
root.context === emptyContextObject && (updateContainerSync(element, root, null, null), flushSyncWork());
|
|
37174
37199
|
}
|
|
37175
|
-
function scheduleRefresh(root,
|
|
37200
|
+
function scheduleRefresh(root, update2) {
|
|
37176
37201
|
if (resolveFamily !== null) {
|
|
37177
|
-
var staleFamilies =
|
|
37178
|
-
|
|
37202
|
+
var staleFamilies = update2.staleFamilies;
|
|
37203
|
+
update2 = update2.updatedFamilies;
|
|
37179
37204
|
flushPendingEffects();
|
|
37180
|
-
scheduleFibersWithFamiliesRecursively(root.current,
|
|
37205
|
+
scheduleFibersWithFamiliesRecursively(root.current, update2, staleFamilies);
|
|
37181
37206
|
flushSyncWork();
|
|
37182
37207
|
}
|
|
37183
37208
|
}
|
|
@@ -37190,11 +37215,11 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
37190
37215
|
function warnInvalidContextAccess() {
|
|
37191
37216
|
console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
|
|
37192
37217
|
}
|
|
37193
|
-
function
|
|
37218
|
+
function noop2() {}
|
|
37194
37219
|
function warnForMissingKey() {}
|
|
37195
|
-
function setToSortedString(
|
|
37220
|
+
function setToSortedString(set3) {
|
|
37196
37221
|
var array2 = [];
|
|
37197
|
-
|
|
37222
|
+
set3.forEach(function(value) {
|
|
37198
37223
|
array2.push(value);
|
|
37199
37224
|
});
|
|
37200
37225
|
return array2.sort().join(", ");
|
|
@@ -37566,9 +37591,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
37566
37591
|
(nextRetryLane & 62914560) === 0 && (nextRetryLane = 4194304);
|
|
37567
37592
|
return lane;
|
|
37568
37593
|
}
|
|
37569
|
-
function createLaneMap(
|
|
37594
|
+
function createLaneMap(initial2) {
|
|
37570
37595
|
for (var laneMap = [], i = 0;31 > i; i++)
|
|
37571
|
-
laneMap.push(
|
|
37596
|
+
laneMap.push(initial2);
|
|
37572
37597
|
return laneMap;
|
|
37573
37598
|
}
|
|
37574
37599
|
function markRootUpdated$1(root, updateLane) {
|
|
@@ -37593,8 +37618,8 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
37593
37618
|
var hiddenUpdatesForLane = hiddenUpdates[index];
|
|
37594
37619
|
if (hiddenUpdatesForLane !== null)
|
|
37595
37620
|
for (hiddenUpdates[index] = null, index = 0;index < hiddenUpdatesForLane.length; index++) {
|
|
37596
|
-
var
|
|
37597
|
-
|
|
37621
|
+
var update2 = hiddenUpdatesForLane[index];
|
|
37622
|
+
update2 !== null && (update2.lane &= -536870913);
|
|
37598
37623
|
}
|
|
37599
37624
|
remainingLanes &= ~lane;
|
|
37600
37625
|
}
|
|
@@ -38079,13 +38104,13 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
38079
38104
|
if (disabledDepth === 0) {
|
|
38080
38105
|
var props = { configurable: true, enumerable: true, writable: true };
|
|
38081
38106
|
Object.defineProperties(console, {
|
|
38082
|
-
log:
|
|
38083
|
-
info:
|
|
38084
|
-
warn:
|
|
38085
|
-
error:
|
|
38086
|
-
group:
|
|
38087
|
-
groupCollapsed:
|
|
38088
|
-
groupEnd:
|
|
38107
|
+
log: assign2({}, props, { value: prevLog }),
|
|
38108
|
+
info: assign2({}, props, { value: prevInfo }),
|
|
38109
|
+
warn: assign2({}, props, { value: prevWarn }),
|
|
38110
|
+
error: assign2({}, props, { value: prevError }),
|
|
38111
|
+
group: assign2({}, props, { value: prevGroup }),
|
|
38112
|
+
groupCollapsed: assign2({}, props, { value: prevGroupCollapsed }),
|
|
38113
|
+
groupEnd: assign2({}, props, { value: prevGroupEnd })
|
|
38089
38114
|
});
|
|
38090
38115
|
}
|
|
38091
38116
|
0 > disabledDepth && console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
@@ -38171,9 +38196,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
38171
38196
|
}
|
|
38172
38197
|
(Fake = fn()) && typeof Fake.catch === "function" && Fake.catch(function() {});
|
|
38173
38198
|
}
|
|
38174
|
-
} catch (
|
|
38175
|
-
if (
|
|
38176
|
-
return [
|
|
38199
|
+
} catch (sample2) {
|
|
38200
|
+
if (sample2 && control && typeof sample2.stack === "string")
|
|
38201
|
+
return [sample2.stack, control.stack];
|
|
38177
38202
|
}
|
|
38178
38203
|
return [null, null];
|
|
38179
38204
|
}
|
|
@@ -38502,7 +38527,7 @@ Error generating stack: ` + x.message + `
|
|
|
38502
38527
|
`;
|
|
38503
38528
|
}
|
|
38504
38529
|
function describePropertiesDiff(clientObject, serverObject, indent) {
|
|
38505
|
-
var properties = "", remainingServerProperties =
|
|
38530
|
+
var properties = "", remainingServerProperties = assign2({}, serverObject), propName;
|
|
38506
38531
|
for (propName in clientObject)
|
|
38507
38532
|
if (clientObject.hasOwnProperty(propName)) {
|
|
38508
38533
|
delete remainingServerProperties[propName];
|
|
@@ -39004,21 +39029,21 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39004
39029
|
cache.controller.abort();
|
|
39005
39030
|
});
|
|
39006
39031
|
}
|
|
39007
|
-
function startUpdateTimerByLane(lane,
|
|
39032
|
+
function startUpdateTimerByLane(lane, method2, fiber) {
|
|
39008
39033
|
if ((lane & 127) !== 0)
|
|
39009
|
-
0 > blockingUpdateTime && (blockingUpdateTime =
|
|
39010
|
-
else if ((lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime =
|
|
39034
|
+
0 > blockingUpdateTime && (blockingUpdateTime = now2(), blockingUpdateTask = createTask(method2), blockingUpdateMethodName = method2, fiber != null && (blockingUpdateComponentName = getComponentNameFromFiber(fiber)), isAlreadyRendering() && (componentEffectSpawnedUpdate = true, blockingUpdateType = 1), lane = resolveEventTimeStamp(), method2 = resolveEventType(), lane !== blockingEventRepeatTime || method2 !== blockingEventType ? blockingEventRepeatTime = -1.1 : method2 !== null && (blockingUpdateType = 1), blockingEventTime = lane, blockingEventType = method2);
|
|
39035
|
+
else if ((lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime = now2(), transitionUpdateTask = createTask(method2), transitionUpdateMethodName = method2, fiber != null && (transitionUpdateComponentName = getComponentNameFromFiber(fiber)), 0 > transitionStartTime)) {
|
|
39011
39036
|
lane = resolveEventTimeStamp();
|
|
39012
|
-
|
|
39013
|
-
if (lane !== transitionEventRepeatTime ||
|
|
39037
|
+
method2 = resolveEventType();
|
|
39038
|
+
if (lane !== transitionEventRepeatTime || method2 !== transitionEventType)
|
|
39014
39039
|
transitionEventRepeatTime = -1.1;
|
|
39015
39040
|
transitionEventTime = lane;
|
|
39016
|
-
transitionEventType =
|
|
39041
|
+
transitionEventType = method2;
|
|
39017
39042
|
}
|
|
39018
39043
|
}
|
|
39019
39044
|
function startHostActionTimer(fiber) {
|
|
39020
39045
|
if (0 > blockingUpdateTime) {
|
|
39021
|
-
blockingUpdateTime =
|
|
39046
|
+
blockingUpdateTime = now2();
|
|
39022
39047
|
blockingUpdateTask = fiber._debugTask != null ? fiber._debugTask : null;
|
|
39023
39048
|
isAlreadyRendering() && (blockingUpdateType = 1);
|
|
39024
39049
|
var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType();
|
|
@@ -39026,7 +39051,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39026
39051
|
blockingEventTime = newEventTime;
|
|
39027
39052
|
blockingEventType = newEventType;
|
|
39028
39053
|
}
|
|
39029
|
-
if (0 > transitionUpdateTime && (transitionUpdateTime =
|
|
39054
|
+
if (0 > transitionUpdateTime && (transitionUpdateTime = now2(), transitionUpdateTask = fiber._debugTask != null ? fiber._debugTask : null, 0 > transitionStartTime)) {
|
|
39030
39055
|
fiber = resolveEventTimeStamp();
|
|
39031
39056
|
newEventTime = resolveEventType();
|
|
39032
39057
|
if (fiber !== transitionEventRepeatTime || newEventTime !== transitionEventType)
|
|
@@ -39080,12 +39105,12 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39080
39105
|
return prev;
|
|
39081
39106
|
}
|
|
39082
39107
|
function startProfilerTimer(fiber) {
|
|
39083
|
-
profilerStartTime =
|
|
39108
|
+
profilerStartTime = now2();
|
|
39084
39109
|
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
|
|
39085
39110
|
}
|
|
39086
39111
|
function stopProfilerTimerIfRunningAndRecordDuration(fiber) {
|
|
39087
39112
|
if (0 <= profilerStartTime) {
|
|
39088
|
-
var elapsedTime =
|
|
39113
|
+
var elapsedTime = now2() - profilerStartTime;
|
|
39089
39114
|
fiber.actualDuration += elapsedTime;
|
|
39090
39115
|
fiber.selfBaseDuration = elapsedTime;
|
|
39091
39116
|
profilerStartTime = -1;
|
|
@@ -39093,14 +39118,14 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39093
39118
|
}
|
|
39094
39119
|
function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) {
|
|
39095
39120
|
if (0 <= profilerStartTime) {
|
|
39096
|
-
var elapsedTime =
|
|
39121
|
+
var elapsedTime = now2() - profilerStartTime;
|
|
39097
39122
|
fiber.actualDuration += elapsedTime;
|
|
39098
39123
|
profilerStartTime = -1;
|
|
39099
39124
|
}
|
|
39100
39125
|
}
|
|
39101
39126
|
function recordEffectDuration() {
|
|
39102
39127
|
if (0 <= profilerStartTime) {
|
|
39103
|
-
var endTime =
|
|
39128
|
+
var endTime = now2(), elapsedTime = endTime - profilerStartTime;
|
|
39104
39129
|
profilerStartTime = -1;
|
|
39105
39130
|
profilerEffectDuration += elapsedTime;
|
|
39106
39131
|
componentEffectDuration += elapsedTime;
|
|
@@ -39114,7 +39139,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39114
39139
|
commitErrors.push(errorInfo);
|
|
39115
39140
|
}
|
|
39116
39141
|
function startEffectTimer() {
|
|
39117
|
-
profilerStartTime =
|
|
39142
|
+
profilerStartTime = now2();
|
|
39118
39143
|
0 > componentEffectStartTime && (componentEffectStartTime = profilerStartTime);
|
|
39119
39144
|
}
|
|
39120
39145
|
function transferActualDuration(fiber) {
|
|
@@ -39291,7 +39316,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39291
39316
|
(0, listeners[i])();
|
|
39292
39317
|
}
|
|
39293
39318
|
}
|
|
39294
|
-
function chainThenableValue(thenable,
|
|
39319
|
+
function chainThenableValue(thenable, result2) {
|
|
39295
39320
|
var listeners = [], thenableWithOverride = {
|
|
39296
39321
|
status: "pending",
|
|
39297
39322
|
value: null,
|
|
@@ -39302,9 +39327,9 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39302
39327
|
};
|
|
39303
39328
|
thenable.then(function() {
|
|
39304
39329
|
thenableWithOverride.status = "fulfilled";
|
|
39305
|
-
thenableWithOverride.value =
|
|
39330
|
+
thenableWithOverride.value = result2;
|
|
39306
39331
|
for (var i = 0;i < listeners.length; i++)
|
|
39307
|
-
(0, listeners[i])(
|
|
39332
|
+
(0, listeners[i])(result2);
|
|
39308
39333
|
}, function(error48) {
|
|
39309
39334
|
thenableWithOverride.status = "rejected";
|
|
39310
39335
|
thenableWithOverride.reason = error48;
|
|
@@ -39446,8 +39471,8 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39446
39471
|
return null;
|
|
39447
39472
|
}
|
|
39448
39473
|
function validateFragmentProps(element, fiber, returnFiber) {
|
|
39449
|
-
for (var
|
|
39450
|
-
var key =
|
|
39474
|
+
for (var keys2 = Object.keys(element.props), i = 0;i < keys2.length; i++) {
|
|
39475
|
+
var key = keys2[i];
|
|
39451
39476
|
if (key !== "children" && key !== "key") {
|
|
39452
39477
|
fiber === null && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber);
|
|
39453
39478
|
runWithFiberInDEV(fiber, function(erroredKey) {
|
|
@@ -39894,43 +39919,43 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39894
39919
|
concurrentQueues[i++] = null;
|
|
39895
39920
|
var queue = concurrentQueues[i];
|
|
39896
39921
|
concurrentQueues[i++] = null;
|
|
39897
|
-
var
|
|
39922
|
+
var update2 = concurrentQueues[i];
|
|
39898
39923
|
concurrentQueues[i++] = null;
|
|
39899
39924
|
var lane = concurrentQueues[i];
|
|
39900
39925
|
concurrentQueues[i++] = null;
|
|
39901
|
-
if (queue !== null &&
|
|
39926
|
+
if (queue !== null && update2 !== null) {
|
|
39902
39927
|
var pending = queue.pending;
|
|
39903
|
-
pending === null ?
|
|
39904
|
-
queue.pending =
|
|
39928
|
+
pending === null ? update2.next = update2 : (update2.next = pending.next, pending.next = update2);
|
|
39929
|
+
queue.pending = update2;
|
|
39905
39930
|
}
|
|
39906
|
-
lane !== 0 && markUpdateLaneFromFiberToRoot(fiber,
|
|
39931
|
+
lane !== 0 && markUpdateLaneFromFiberToRoot(fiber, update2, lane);
|
|
39907
39932
|
}
|
|
39908
39933
|
}
|
|
39909
|
-
function enqueueUpdate$1(fiber, queue,
|
|
39934
|
+
function enqueueUpdate$1(fiber, queue, update2, lane) {
|
|
39910
39935
|
concurrentQueues[concurrentQueuesIndex++] = fiber;
|
|
39911
39936
|
concurrentQueues[concurrentQueuesIndex++] = queue;
|
|
39912
|
-
concurrentQueues[concurrentQueuesIndex++] =
|
|
39937
|
+
concurrentQueues[concurrentQueuesIndex++] = update2;
|
|
39913
39938
|
concurrentQueues[concurrentQueuesIndex++] = lane;
|
|
39914
39939
|
concurrentlyUpdatedLanes |= lane;
|
|
39915
39940
|
fiber.lanes |= lane;
|
|
39916
39941
|
fiber = fiber.alternate;
|
|
39917
39942
|
fiber !== null && (fiber.lanes |= lane);
|
|
39918
39943
|
}
|
|
39919
|
-
function enqueueConcurrentHookUpdate(fiber, queue,
|
|
39920
|
-
enqueueUpdate$1(fiber, queue,
|
|
39944
|
+
function enqueueConcurrentHookUpdate(fiber, queue, update2, lane) {
|
|
39945
|
+
enqueueUpdate$1(fiber, queue, update2, lane);
|
|
39921
39946
|
return getRootForUpdatedFiber(fiber);
|
|
39922
39947
|
}
|
|
39923
39948
|
function enqueueConcurrentRenderForLane(fiber, lane) {
|
|
39924
39949
|
enqueueUpdate$1(fiber, null, null, lane);
|
|
39925
39950
|
return getRootForUpdatedFiber(fiber);
|
|
39926
39951
|
}
|
|
39927
|
-
function markUpdateLaneFromFiberToRoot(sourceFiber,
|
|
39952
|
+
function markUpdateLaneFromFiberToRoot(sourceFiber, update2, lane) {
|
|
39928
39953
|
sourceFiber.lanes |= lane;
|
|
39929
39954
|
var alternate = sourceFiber.alternate;
|
|
39930
39955
|
alternate !== null && (alternate.lanes |= lane);
|
|
39931
39956
|
for (var isHidden = false, parent = sourceFiber.return;parent !== null; )
|
|
39932
39957
|
parent.childLanes |= lane, alternate = parent.alternate, alternate !== null && (alternate.childLanes |= lane), parent.tag === 22 && (sourceFiber = parent.stateNode, sourceFiber === null || sourceFiber._visibility & OffscreenVisible || (isHidden = true)), sourceFiber = parent, parent = parent.return;
|
|
39933
|
-
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden &&
|
|
39958
|
+
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden && update2 !== null && (isHidden = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden], alternate === null ? sourceFiber[isHidden] = [update2] : alternate.push(update2), update2.lane = lane | 536870912), parent) : null;
|
|
39934
39959
|
}
|
|
39935
39960
|
function getRootForUpdatedFiber(sourceFiber) {
|
|
39936
39961
|
if (nestedUpdateCount > NESTED_UPDATE_LIMIT)
|
|
@@ -39969,7 +39994,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
39969
39994
|
next: null
|
|
39970
39995
|
};
|
|
39971
39996
|
}
|
|
39972
|
-
function enqueueUpdate(fiber,
|
|
39997
|
+
function enqueueUpdate(fiber, update2, lane) {
|
|
39973
39998
|
var updateQueue = fiber.updateQueue;
|
|
39974
39999
|
if (updateQueue === null)
|
|
39975
40000
|
return null;
|
|
@@ -39982,8 +40007,8 @@ Please update the following component: %s`, componentName2);
|
|
|
39982
40007
|
didWarnUpdateInsideUpdate = true;
|
|
39983
40008
|
}
|
|
39984
40009
|
if ((executionContext & RenderContext) !== NoContext)
|
|
39985
|
-
return componentName2 = updateQueue.pending, componentName2 === null ?
|
|
39986
|
-
enqueueUpdate$1(fiber, updateQueue,
|
|
40010
|
+
return componentName2 = updateQueue.pending, componentName2 === null ? update2.next = update2 : (update2.next = componentName2.next, componentName2.next = update2), updateQueue.pending = update2, update2 = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update2;
|
|
40011
|
+
enqueueUpdate$1(fiber, updateQueue, update2, lane);
|
|
39987
40012
|
return getRootForUpdatedFiber(fiber);
|
|
39988
40013
|
}
|
|
39989
40014
|
function entangleTransitions(root, fiber, lane) {
|
|
@@ -40003,14 +40028,14 @@ Please update the following component: %s`, componentName2);
|
|
|
40003
40028
|
queue = queue.firstBaseUpdate;
|
|
40004
40029
|
if (queue !== null) {
|
|
40005
40030
|
do {
|
|
40006
|
-
var
|
|
40031
|
+
var clone3 = {
|
|
40007
40032
|
lane: queue.lane,
|
|
40008
40033
|
tag: queue.tag,
|
|
40009
40034
|
payload: queue.payload,
|
|
40010
40035
|
callback: null,
|
|
40011
40036
|
next: null
|
|
40012
40037
|
};
|
|
40013
|
-
newLast === null ? newFirst = newLast =
|
|
40038
|
+
newLast === null ? newFirst = newLast = clone3 : newLast = newLast.next = clone3;
|
|
40014
40039
|
queue = queue.next;
|
|
40015
40040
|
} while (queue !== null);
|
|
40016
40041
|
newLast === null ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
|
|
@@ -40112,7 +40137,7 @@ Please update the following component: %s`, componentName2);
|
|
|
40112
40137
|
partialState = nextState;
|
|
40113
40138
|
if (partialState === null || partialState === undefined)
|
|
40114
40139
|
break a;
|
|
40115
|
-
newState =
|
|
40140
|
+
newState = assign2({}, newState, partialState);
|
|
40116
40141
|
break a;
|
|
40117
40142
|
case ForceUpdate:
|
|
40118
40143
|
hasForceUpdate = true;
|
|
@@ -40448,7 +40473,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40448
40473
|
}
|
|
40449
40474
|
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
40450
40475
|
}
|
|
40451
|
-
function useMemoCache(
|
|
40476
|
+
function useMemoCache(size2) {
|
|
40452
40477
|
var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue;
|
|
40453
40478
|
updateQueue !== null && (memoCache = updateQueue.memoCache);
|
|
40454
40479
|
if (memoCache == null) {
|
|
@@ -40465,10 +40490,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40465
40490
|
updateQueue.memoCache = memoCache;
|
|
40466
40491
|
updateQueue = memoCache.data[memoCache.index];
|
|
40467
40492
|
if (updateQueue === undefined || ignorePreviousDependencies)
|
|
40468
|
-
for (updateQueue = memoCache.data[memoCache.index] = Array(
|
|
40493
|
+
for (updateQueue = memoCache.data[memoCache.index] = Array(size2), current2 = 0;current2 < size2; current2++)
|
|
40469
40494
|
updateQueue[current2] = REACT_MEMO_CACHE_SENTINEL;
|
|
40470
40495
|
else
|
|
40471
|
-
updateQueue.length !==
|
|
40496
|
+
updateQueue.length !== size2 && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", updateQueue.length, size2);
|
|
40472
40497
|
memoCache.index++;
|
|
40473
40498
|
return updateQueue;
|
|
40474
40499
|
}
|
|
@@ -40526,50 +40551,50 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40526
40551
|
hook.memoizedState = pendingQueue;
|
|
40527
40552
|
else {
|
|
40528
40553
|
current2 = baseQueue.next;
|
|
40529
|
-
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null,
|
|
40554
|
+
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update2 = current2, didReadFromEntangledAsyncAction2 = false;
|
|
40530
40555
|
do {
|
|
40531
|
-
var updateLane =
|
|
40532
|
-
if (updateLane !==
|
|
40533
|
-
var revertLane =
|
|
40556
|
+
var updateLane = update2.lane & -536870913;
|
|
40557
|
+
if (updateLane !== update2.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
|
|
40558
|
+
var revertLane = update2.revertLane;
|
|
40534
40559
|
if (revertLane === 0)
|
|
40535
40560
|
newBaseQueueLast !== null && (newBaseQueueLast = newBaseQueueLast.next = {
|
|
40536
40561
|
lane: 0,
|
|
40537
40562
|
revertLane: 0,
|
|
40538
40563
|
gesture: null,
|
|
40539
|
-
action:
|
|
40540
|
-
hasEagerState:
|
|
40541
|
-
eagerState:
|
|
40564
|
+
action: update2.action,
|
|
40565
|
+
hasEagerState: update2.hasEagerState,
|
|
40566
|
+
eagerState: update2.eagerState,
|
|
40542
40567
|
next: null
|
|
40543
40568
|
}), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true);
|
|
40544
40569
|
else if ((renderLanes & revertLane) === revertLane) {
|
|
40545
|
-
|
|
40570
|
+
update2 = update2.next;
|
|
40546
40571
|
revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true);
|
|
40547
40572
|
continue;
|
|
40548
40573
|
} else
|
|
40549
40574
|
updateLane = {
|
|
40550
40575
|
lane: 0,
|
|
40551
|
-
revertLane:
|
|
40576
|
+
revertLane: update2.revertLane,
|
|
40552
40577
|
gesture: null,
|
|
40553
|
-
action:
|
|
40554
|
-
hasEagerState:
|
|
40555
|
-
eagerState:
|
|
40578
|
+
action: update2.action,
|
|
40579
|
+
hasEagerState: update2.hasEagerState,
|
|
40580
|
+
eagerState: update2.eagerState,
|
|
40556
40581
|
next: null
|
|
40557
40582
|
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane;
|
|
40558
|
-
updateLane =
|
|
40583
|
+
updateLane = update2.action;
|
|
40559
40584
|
shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane);
|
|
40560
|
-
pendingQueue =
|
|
40585
|
+
pendingQueue = update2.hasEagerState ? update2.eagerState : reducer(pendingQueue, updateLane);
|
|
40561
40586
|
} else
|
|
40562
40587
|
revertLane = {
|
|
40563
40588
|
lane: updateLane,
|
|
40564
|
-
revertLane:
|
|
40565
|
-
gesture:
|
|
40566
|
-
action:
|
|
40567
|
-
hasEagerState:
|
|
40568
|
-
eagerState:
|
|
40589
|
+
revertLane: update2.revertLane,
|
|
40590
|
+
gesture: update2.gesture,
|
|
40591
|
+
action: update2.action,
|
|
40592
|
+
hasEagerState: update2.hasEagerState,
|
|
40593
|
+
eagerState: update2.eagerState,
|
|
40569
40594
|
next: null
|
|
40570
40595
|
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane;
|
|
40571
|
-
|
|
40572
|
-
} while (
|
|
40596
|
+
update2 = update2.next;
|
|
40597
|
+
} while (update2 !== null && update2 !== current2);
|
|
40573
40598
|
newBaseQueueLast === null ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst;
|
|
40574
40599
|
if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = true, didReadFromEntangledAsyncAction2 && (reducer = currentEntangledActionThenable, reducer !== null)))
|
|
40575
40600
|
throw reducer;
|
|
@@ -40589,10 +40614,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40589
40614
|
var { dispatch, pending: lastRenderPhaseUpdate } = queue, newState = hook.memoizedState;
|
|
40590
40615
|
if (lastRenderPhaseUpdate !== null) {
|
|
40591
40616
|
queue.pending = null;
|
|
40592
|
-
var
|
|
40617
|
+
var update2 = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
|
|
40593
40618
|
do
|
|
40594
|
-
newState = reducer(newState,
|
|
40595
|
-
while (
|
|
40619
|
+
newState = reducer(newState, update2.action), update2 = update2.next;
|
|
40620
|
+
while (update2 !== lastRenderPhaseUpdate);
|
|
40596
40621
|
objectIs(newState, hook.memoizedState) || (didReceiveUpdate = true);
|
|
40597
40622
|
hook.memoizedState = newState;
|
|
40598
40623
|
hook.baseQueue === null && (hook.baseState = newState);
|
|
@@ -40635,8 +40660,8 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40635
40660
|
if (cachedSnapshot = !objectIs((currentHook || hook).memoizedState, getServerSnapshot))
|
|
40636
40661
|
hook.memoizedState = getServerSnapshot, didReceiveUpdate = true;
|
|
40637
40662
|
hook = hook.queue;
|
|
40638
|
-
var
|
|
40639
|
-
updateEffectImpl(2048, Passive,
|
|
40663
|
+
var create3 = subscribeToStore.bind(null, fiber, hook, subscribe);
|
|
40664
|
+
updateEffectImpl(2048, Passive, create3, [subscribe]);
|
|
40640
40665
|
if (hook.getSnapshot !== getSnapshot || cachedSnapshot || workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
|
|
40641
40666
|
fiber.flags |= 2048;
|
|
40642
40667
|
pushSimpleEffect(HasEffect | Passive, { destroy: undefined }, updateStoreInstance.bind(null, fiber, hook, getServerSnapshot, getSnapshot), null);
|
|
@@ -40798,13 +40823,13 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40798
40823
|
actionNode !== null && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState)));
|
|
40799
40824
|
}
|
|
40800
40825
|
function onActionError(actionQueue, actionNode, error48) {
|
|
40801
|
-
var
|
|
40826
|
+
var last2 = actionQueue.pending;
|
|
40802
40827
|
actionQueue.pending = null;
|
|
40803
|
-
if (
|
|
40804
|
-
|
|
40828
|
+
if (last2 !== null) {
|
|
40829
|
+
last2 = last2.next;
|
|
40805
40830
|
do
|
|
40806
40831
|
actionNode.status = "rejected", actionNode.reason = error48, notifyActionListeners(actionNode), actionNode = actionNode.next;
|
|
40807
|
-
while (actionNode !==
|
|
40832
|
+
while (actionNode !== last2);
|
|
40808
40833
|
}
|
|
40809
40834
|
actionQueue.action = null;
|
|
40810
40835
|
}
|
|
@@ -40901,12 +40926,12 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40901
40926
|
currentStateHook.memoizedState = action;
|
|
40902
40927
|
return [stateHook, dispatch, false];
|
|
40903
40928
|
}
|
|
40904
|
-
function pushSimpleEffect(tag, inst,
|
|
40905
|
-
tag = { tag, create:
|
|
40929
|
+
function pushSimpleEffect(tag, inst, create3, deps) {
|
|
40930
|
+
tag = { tag, create: create3, deps, inst, next: null };
|
|
40906
40931
|
inst = currentlyRenderingFiber.updateQueue;
|
|
40907
40932
|
inst === null && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst);
|
|
40908
|
-
|
|
40909
|
-
|
|
40933
|
+
create3 = inst.lastEffect;
|
|
40934
|
+
create3 === null ? inst.lastEffect = tag.next = tag : (deps = create3.next, create3.next = tag, tag.next = deps, inst.lastEffect = tag);
|
|
40910
40935
|
return tag;
|
|
40911
40936
|
}
|
|
40912
40937
|
function mountRef(initialValue) {
|
|
@@ -40914,19 +40939,19 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40914
40939
|
initialValue = { current: initialValue };
|
|
40915
40940
|
return hook.memoizedState = initialValue;
|
|
40916
40941
|
}
|
|
40917
|
-
function mountEffectImpl(fiberFlags, hookFlags,
|
|
40942
|
+
function mountEffectImpl(fiberFlags, hookFlags, create3, deps) {
|
|
40918
40943
|
var hook = mountWorkInProgressHook();
|
|
40919
40944
|
currentlyRenderingFiber.flags |= fiberFlags;
|
|
40920
|
-
hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: undefined },
|
|
40945
|
+
hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: undefined }, create3, deps === undefined ? null : deps);
|
|
40921
40946
|
}
|
|
40922
|
-
function updateEffectImpl(fiberFlags, hookFlags,
|
|
40947
|
+
function updateEffectImpl(fiberFlags, hookFlags, create3, deps) {
|
|
40923
40948
|
var hook = updateWorkInProgressHook();
|
|
40924
40949
|
deps = deps === undefined ? null : deps;
|
|
40925
40950
|
var inst = hook.memoizedState.inst;
|
|
40926
|
-
currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst,
|
|
40951
|
+
currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create3, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, inst, create3, deps));
|
|
40927
40952
|
}
|
|
40928
|
-
function mountEffect(
|
|
40929
|
-
(currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive,
|
|
40953
|
+
function mountEffect(create3, deps) {
|
|
40954
|
+
(currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive, create3, deps) : mountEffectImpl(8390656, Passive, create3, deps);
|
|
40930
40955
|
}
|
|
40931
40956
|
function useEffectEventImpl(payload) {
|
|
40932
40957
|
currentlyRenderingFiber.flags |= 4;
|
|
@@ -40956,35 +40981,35 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
40956
40981
|
return ref.impl.apply(undefined, arguments);
|
|
40957
40982
|
};
|
|
40958
40983
|
}
|
|
40959
|
-
function mountLayoutEffect(
|
|
40984
|
+
function mountLayoutEffect(create3, deps) {
|
|
40960
40985
|
var fiberFlags = 4194308;
|
|
40961
40986
|
(currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728);
|
|
40962
|
-
return mountEffectImpl(fiberFlags, Layout,
|
|
40987
|
+
return mountEffectImpl(fiberFlags, Layout, create3, deps);
|
|
40963
40988
|
}
|
|
40964
|
-
function imperativeHandleEffect(
|
|
40989
|
+
function imperativeHandleEffect(create3, ref) {
|
|
40965
40990
|
if (typeof ref === "function") {
|
|
40966
|
-
|
|
40967
|
-
var refCleanup = ref(
|
|
40991
|
+
create3 = create3();
|
|
40992
|
+
var refCleanup = ref(create3);
|
|
40968
40993
|
return function() {
|
|
40969
40994
|
typeof refCleanup === "function" ? refCleanup() : ref(null);
|
|
40970
40995
|
};
|
|
40971
40996
|
}
|
|
40972
40997
|
if (ref !== null && ref !== undefined)
|
|
40973
|
-
return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"),
|
|
40998
|
+
return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"), create3 = create3(), ref.current = create3, function() {
|
|
40974
40999
|
ref.current = null;
|
|
40975
41000
|
};
|
|
40976
41001
|
}
|
|
40977
|
-
function mountImperativeHandle(ref,
|
|
40978
|
-
typeof
|
|
41002
|
+
function mountImperativeHandle(ref, create3, deps) {
|
|
41003
|
+
typeof create3 !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create3 !== null ? typeof create3 : "null");
|
|
40979
41004
|
deps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
40980
41005
|
var fiberFlags = 4194308;
|
|
40981
41006
|
(currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728);
|
|
40982
|
-
mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null,
|
|
41007
|
+
mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create3, ref), deps);
|
|
40983
41008
|
}
|
|
40984
|
-
function updateImperativeHandle(ref,
|
|
40985
|
-
typeof
|
|
41009
|
+
function updateImperativeHandle(ref, create3, deps) {
|
|
41010
|
+
typeof create3 !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create3 !== null ? typeof create3 : "null");
|
|
40986
41011
|
deps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
40987
|
-
updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null,
|
|
41012
|
+
updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null, create3, ref), deps);
|
|
40988
41013
|
}
|
|
40989
41014
|
function mountCallback(callback, deps) {
|
|
40990
41015
|
mountWorkInProgressHook().memoizedState = [
|
|
@@ -41189,7 +41214,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41189
41214
|
var args = arguments;
|
|
41190
41215
|
typeof args[3] === "function" && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");
|
|
41191
41216
|
args = requestUpdateLane(fiber);
|
|
41192
|
-
var
|
|
41217
|
+
var update2 = {
|
|
41193
41218
|
lane: args,
|
|
41194
41219
|
revertLane: 0,
|
|
41195
41220
|
gesture: null,
|
|
@@ -41198,7 +41223,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41198
41223
|
eagerState: null,
|
|
41199
41224
|
next: null
|
|
41200
41225
|
};
|
|
41201
|
-
isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue,
|
|
41226
|
+
isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update2) : (update2 = enqueueConcurrentHookUpdate(fiber, queue, update2, args), update2 !== null && (startUpdateTimerByLane(args, "dispatch()", fiber), scheduleUpdateOnFiber(update2, fiber, args), entangleTransitionUpdate(update2, queue, args)));
|
|
41202
41227
|
}
|
|
41203
41228
|
function dispatchSetState(fiber, queue, action) {
|
|
41204
41229
|
var args = arguments;
|
|
@@ -41207,7 +41232,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41207
41232
|
dispatchSetStateInternal(fiber, queue, action, args) && startUpdateTimerByLane(args, "setState()", fiber);
|
|
41208
41233
|
}
|
|
41209
41234
|
function dispatchSetStateInternal(fiber, queue, action, lane) {
|
|
41210
|
-
var
|
|
41235
|
+
var update2 = {
|
|
41211
41236
|
lane,
|
|
41212
41237
|
revertLane: 0,
|
|
41213
41238
|
gesture: null,
|
|
@@ -41217,7 +41242,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41217
41242
|
next: null
|
|
41218
41243
|
};
|
|
41219
41244
|
if (isRenderPhaseUpdate(fiber))
|
|
41220
|
-
enqueueRenderPhaseUpdate(queue,
|
|
41245
|
+
enqueueRenderPhaseUpdate(queue, update2);
|
|
41221
41246
|
else {
|
|
41222
41247
|
var alternate = fiber.alternate;
|
|
41223
41248
|
if (fiber.lanes === 0 && (alternate === null || alternate.lanes === 0) && (alternate = queue.lastRenderedReducer, alternate !== null)) {
|
|
@@ -41225,15 +41250,15 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41225
41250
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
41226
41251
|
try {
|
|
41227
41252
|
var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action);
|
|
41228
|
-
|
|
41229
|
-
|
|
41253
|
+
update2.hasEagerState = true;
|
|
41254
|
+
update2.eagerState = eagerState;
|
|
41230
41255
|
if (objectIs(eagerState, currentState))
|
|
41231
|
-
return enqueueUpdate$1(fiber, queue,
|
|
41256
|
+
return enqueueUpdate$1(fiber, queue, update2, 0), workInProgressRoot === null && finishQueueingConcurrentUpdates(), false;
|
|
41232
41257
|
} catch (error48) {} finally {
|
|
41233
41258
|
ReactSharedInternals.H = prevDispatcher;
|
|
41234
41259
|
}
|
|
41235
41260
|
}
|
|
41236
|
-
action = enqueueConcurrentHookUpdate(fiber, queue,
|
|
41261
|
+
action = enqueueConcurrentHookUpdate(fiber, queue, update2, lane);
|
|
41237
41262
|
if (action !== null)
|
|
41238
41263
|
return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), true;
|
|
41239
41264
|
}
|
|
@@ -41261,11 +41286,11 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41261
41286
|
var alternate = fiber.alternate;
|
|
41262
41287
|
return fiber === currentlyRenderingFiber || alternate !== null && alternate === currentlyRenderingFiber;
|
|
41263
41288
|
}
|
|
41264
|
-
function enqueueRenderPhaseUpdate(queue,
|
|
41289
|
+
function enqueueRenderPhaseUpdate(queue, update2) {
|
|
41265
41290
|
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
|
|
41266
41291
|
var pending = queue.pending;
|
|
41267
|
-
pending === null ?
|
|
41268
|
-
queue.pending =
|
|
41292
|
+
pending === null ? update2.next = update2 : (update2.next = pending.next, pending.next = update2);
|
|
41293
|
+
queue.pending = update2;
|
|
41269
41294
|
}
|
|
41270
41295
|
function entangleTransitionUpdate(root, queue, lane) {
|
|
41271
41296
|
if ((lane & 4194048) !== 0) {
|
|
@@ -41293,7 +41318,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41293
41318
|
}
|
|
41294
41319
|
}
|
|
41295
41320
|
partialState === undefined && (ctor = getComponentNameFromType(ctor) || "Component", didWarnAboutUndefinedDerivedState.has(ctor) || (didWarnAboutUndefinedDerivedState.add(ctor), console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", ctor)));
|
|
41296
|
-
prevState = partialState === null || partialState === undefined ? prevState :
|
|
41321
|
+
prevState = partialState === null || partialState === undefined ? prevState : assign2({}, prevState, partialState);
|
|
41297
41322
|
workInProgress2.memoizedState = prevState;
|
|
41298
41323
|
workInProgress2.lanes === 0 && (workInProgress2.updateQueue.baseState = prevState);
|
|
41299
41324
|
}
|
|
@@ -41328,7 +41353,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41328
41353
|
propName !== "ref" && (newProps[propName] = baseProps[propName]);
|
|
41329
41354
|
}
|
|
41330
41355
|
if (Component = Component.defaultProps) {
|
|
41331
|
-
newProps === baseProps && (newProps =
|
|
41356
|
+
newProps === baseProps && (newProps = assign2({}, newProps));
|
|
41332
41357
|
for (var _propName in Component)
|
|
41333
41358
|
newProps[_propName] === undefined && (newProps[_propName] = Component[_propName]);
|
|
41334
41359
|
}
|
|
@@ -41380,20 +41405,20 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
41380
41405
|
lane.tag = CaptureUpdate;
|
|
41381
41406
|
return lane;
|
|
41382
41407
|
}
|
|
41383
|
-
function initializeClassErrorUpdate(
|
|
41408
|
+
function initializeClassErrorUpdate(update2, root, fiber, errorInfo) {
|
|
41384
41409
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
41385
41410
|
if (typeof getDerivedStateFromError === "function") {
|
|
41386
41411
|
var error48 = errorInfo.value;
|
|
41387
|
-
|
|
41412
|
+
update2.payload = function() {
|
|
41388
41413
|
return getDerivedStateFromError(error48);
|
|
41389
41414
|
};
|
|
41390
|
-
|
|
41415
|
+
update2.callback = function() {
|
|
41391
41416
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
41392
41417
|
runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo);
|
|
41393
41418
|
};
|
|
41394
41419
|
}
|
|
41395
41420
|
var inst = fiber.stateNode;
|
|
41396
|
-
inst !== null && typeof inst.componentDidCatch === "function" && (
|
|
41421
|
+
inst !== null && typeof inst.componentDidCatch === "function" && (update2.callback = function() {
|
|
41397
41422
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
41398
41423
|
runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo);
|
|
41399
41424
|
typeof getDerivedStateFromError !== "function" && (legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
|
|
@@ -41954,17 +41979,17 @@ https://react.dev/link/unsafe-component-lifecycles`, _instance, newApiName, stat
|
|
|
41954
41979
|
alternate !== null && (alternate.lanes |= renderLanes2);
|
|
41955
41980
|
scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
|
|
41956
41981
|
}
|
|
41957
|
-
function initSuspenseListRenderState(workInProgress2, isBackwards,
|
|
41982
|
+
function initSuspenseListRenderState(workInProgress2, isBackwards, tail2, lastContentRow, tailMode, treeForkCount2) {
|
|
41958
41983
|
var renderState = workInProgress2.memoizedState;
|
|
41959
41984
|
renderState === null ? workInProgress2.memoizedState = {
|
|
41960
41985
|
isBackwards,
|
|
41961
41986
|
rendering: null,
|
|
41962
41987
|
renderingStartTime: 0,
|
|
41963
41988
|
last: lastContentRow,
|
|
41964
|
-
tail,
|
|
41989
|
+
tail: tail2,
|
|
41965
41990
|
tailMode,
|
|
41966
41991
|
treeForkCount: treeForkCount2
|
|
41967
|
-
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail =
|
|
41992
|
+
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail2, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
|
|
41968
41993
|
}
|
|
41969
41994
|
function updateSuspenseListComponent(current2, workInProgress2, renderLanes2) {
|
|
41970
41995
|
var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail, newChildren = nextProps.children, suspenseContext = suspenseStackCursor.current;
|
|
@@ -43081,21 +43106,21 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
43081
43106
|
return fiber.stateNode;
|
|
43082
43107
|
}
|
|
43083
43108
|
}
|
|
43084
|
-
function insertOrAppendPlacementNodeIntoContainer(node,
|
|
43109
|
+
function insertOrAppendPlacementNodeIntoContainer(node, before2, parent) {
|
|
43085
43110
|
var tag = node.tag;
|
|
43086
43111
|
if (tag === 5 || tag === 6)
|
|
43087
|
-
node = node.stateNode,
|
|
43088
|
-
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode,
|
|
43089
|
-
for (insertOrAppendPlacementNodeIntoContainer(node,
|
|
43090
|
-
insertOrAppendPlacementNodeIntoContainer(node,
|
|
43112
|
+
node = node.stateNode, before2 ? insertInContainerBefore(parent, node, before2) : appendChildToContainer(parent, node);
|
|
43113
|
+
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before2 = null), node = node.child, node !== null))
|
|
43114
|
+
for (insertOrAppendPlacementNodeIntoContainer(node, before2, parent), node = node.sibling;node !== null; )
|
|
43115
|
+
insertOrAppendPlacementNodeIntoContainer(node, before2, parent), node = node.sibling;
|
|
43091
43116
|
}
|
|
43092
|
-
function insertOrAppendPlacementNode(node,
|
|
43117
|
+
function insertOrAppendPlacementNode(node, before2, parent) {
|
|
43093
43118
|
var tag = node.tag;
|
|
43094
43119
|
if (tag === 5 || tag === 6)
|
|
43095
|
-
node = node.stateNode,
|
|
43120
|
+
node = node.stateNode, before2 ? insertBefore(parent, node, before2) : appendChild(parent, node);
|
|
43096
43121
|
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, node !== null))
|
|
43097
|
-
for (insertOrAppendPlacementNode(node,
|
|
43098
|
-
insertOrAppendPlacementNode(node,
|
|
43122
|
+
for (insertOrAppendPlacementNode(node, before2, parent), node = node.sibling;node !== null; )
|
|
43123
|
+
insertOrAppendPlacementNode(node, before2, parent), node = node.sibling;
|
|
43099
43124
|
}
|
|
43100
43125
|
function commitPlacement(finishedWork) {
|
|
43101
43126
|
for (var hostParentFiber, parentFiber = finishedWork.return;parentFiber !== null; ) {
|
|
@@ -44370,7 +44395,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
44370
44395
|
if (startTime === RootInProgress) {
|
|
44371
44396
|
workInProgressRootIsPrerendering && !forceSync && markRootSuspended(root, lanes, 0, false);
|
|
44372
44397
|
lanes = workInProgressSuspendedReason;
|
|
44373
|
-
yieldStartTime =
|
|
44398
|
+
yieldStartTime = now2();
|
|
44374
44399
|
yieldReason = lanes;
|
|
44375
44400
|
break;
|
|
44376
44401
|
} else {
|
|
@@ -44559,7 +44584,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
44559
44584
|
function prepareFreshStack(root, lanes) {
|
|
44560
44585
|
supportsUserTiming && (console.timeStamp("Blocking Track", 0.003, 0.003, "Blocking", "Scheduler \u269B", "primary-light"), console.timeStamp("Transition Track", 0.003, 0.003, "Transition", "Scheduler \u269B", "primary-light"), console.timeStamp("Suspense Track", 0.003, 0.003, "Suspense", "Scheduler \u269B", "primary-light"), console.timeStamp("Idle Track", 0.003, 0.003, "Idle", "Scheduler \u269B", "primary-light"));
|
|
44561
44586
|
var previousRenderStartTime = renderStartTime;
|
|
44562
|
-
renderStartTime =
|
|
44587
|
+
renderStartTime = now2();
|
|
44563
44588
|
if (workInProgressRootRenderLanes !== 0 && 0 < previousRenderStartTime) {
|
|
44564
44589
|
setCurrentTrackFromLanes(workInProgressRootRenderLanes);
|
|
44565
44590
|
if (workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootSuspendedWithDelay)
|
|
@@ -44614,7 +44639,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
44614
44639
|
blockingSuspendedTime = -1.1;
|
|
44615
44640
|
blockingEventRepeatTime = blockingEventTime;
|
|
44616
44641
|
blockingEventTime = -1.1;
|
|
44617
|
-
blockingClampTime =
|
|
44642
|
+
blockingClampTime = now2();
|
|
44618
44643
|
}
|
|
44619
44644
|
(lanes & 4194048) !== 0 && (workInProgressUpdateTask = transitionUpdateTask, debugTask = 0 <= transitionStartTime && transitionStartTime < transitionClampTime ? transitionClampTime : transitionStartTime, previousRenderStartTime = 0 <= transitionUpdateTime && transitionUpdateTime < transitionClampTime ? transitionClampTime : transitionUpdateTime, endTime = 0 <= transitionEventTime && transitionEventTime < transitionClampTime ? transitionClampTime : transitionEventTime, color = 0 <= endTime ? endTime : 0 <= previousRenderStartTime ? previousRenderStartTime : renderStartTime, 0 <= transitionSuspendedTime && (setCurrentTrackFromLanes(256), logSuspendedWithDelayPhase(transitionSuspendedTime, color, lanes, workInProgressUpdateTask)), isPingedUpdate = endTime, eventTime = transitionEventType, eventType = 0 < transitionEventRepeatTime, eventIsRepeat = transitionUpdateType === 2, color = renderStartTime, endTime = transitionUpdateTask, label = transitionUpdateMethodName, isSpawnedUpdate = transitionUpdateComponentName, supportsUserTiming && (currentTrack = "Transition", 0 < previousRenderStartTime ? previousRenderStartTime > color && (previousRenderStartTime = color) : previousRenderStartTime = color, 0 < debugTask ? debugTask > previousRenderStartTime && (debugTask = previousRenderStartTime) : debugTask = previousRenderStartTime, 0 < isPingedUpdate ? isPingedUpdate > debugTask && (isPingedUpdate = debugTask) : isPingedUpdate = debugTask, debugTask > isPingedUpdate && eventTime !== null && (color$jscomp$0 = eventType ? "secondary-light" : "warning", endTime ? endTime.run(console.timeStamp.bind(console, eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, "Scheduler \u269B", color$jscomp$0)) : console.timeStamp(eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, "Scheduler \u269B", color$jscomp$0)), previousRenderStartTime > debugTask && (endTime ? endTime.run(console.timeStamp.bind(console, "Action", debugTask, previousRenderStartTime, currentTrack, "Scheduler \u269B", "primary-dark")) : console.timeStamp("Action", debugTask, previousRenderStartTime, currentTrack, "Scheduler \u269B", "primary-dark")), color > previousRenderStartTime && (debugTask = eventIsRepeat ? "Promise Resolved" : 5 < color - previousRenderStartTime ? "Update Blocked" : "Update", isPingedUpdate = [], isSpawnedUpdate != null && isPingedUpdate.push(["Component name", isSpawnedUpdate]), label != null && isPingedUpdate.push(["Method name", label]), previousRenderStartTime = {
|
|
44620
44645
|
start: previousRenderStartTime,
|
|
@@ -44627,7 +44652,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
44627
44652
|
color: "primary-light"
|
|
44628
44653
|
}
|
|
44629
44654
|
}
|
|
44630
|
-
}, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime =
|
|
44655
|
+
}, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime = now2());
|
|
44631
44656
|
previousRenderStartTime = root.timeoutHandle;
|
|
44632
44657
|
previousRenderStartTime !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(previousRenderStartTime));
|
|
44633
44658
|
previousRenderStartTime = root.cancelPendingCommit;
|
|
@@ -45012,7 +45037,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
45012
45037
|
return null;
|
|
45013
45038
|
})) : (root.callbackNode = null, root.callbackPriority = 0);
|
|
45014
45039
|
commitErrors = null;
|
|
45015
|
-
commitStartTime =
|
|
45040
|
+
commitStartTime = now2();
|
|
45016
45041
|
suspendedCommitReason !== null && logSuspendedCommitPhase(completedRenderEndTime, commitStartTime, suspendedCommitReason, workInProgressUpdateTask);
|
|
45017
45042
|
recoverableErrors = (finishedWork.flags & 13878) !== 0;
|
|
45018
45043
|
if ((finishedWork.subtreeFlags & 13878) !== 0 || recoverableErrors) {
|
|
@@ -45060,7 +45085,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
45060
45085
|
pendingEffectsStatus = NO_PENDING_EFFECTS;
|
|
45061
45086
|
var suspendedViewTransitionReason = pendingSuspendedViewTransitionReason;
|
|
45062
45087
|
if (suspendedViewTransitionReason !== null) {
|
|
45063
|
-
commitStartTime =
|
|
45088
|
+
commitStartTime = now2();
|
|
45064
45089
|
var startTime = commitEndTime, endTime = commitStartTime;
|
|
45065
45090
|
!supportsUserTiming || endTime <= startTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, suspendedViewTransitionReason, startTime, endTime, currentTrack, "Scheduler \u269B", "secondary-light")) : console.timeStamp(suspendedViewTransitionReason, startTime, endTime, currentTrack, "Scheduler \u269B", "secondary-light"));
|
|
45066
45091
|
}
|
|
@@ -45083,7 +45108,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
45083
45108
|
}
|
|
45084
45109
|
suspendedViewTransitionReason = pendingEffectsRenderEndTime;
|
|
45085
45110
|
startTime = pendingSuspendedCommitReason;
|
|
45086
|
-
commitEndTime =
|
|
45111
|
+
commitEndTime = now2();
|
|
45087
45112
|
suspendedViewTransitionReason = startTime === null ? suspendedViewTransitionReason : commitStartTime;
|
|
45088
45113
|
startTime = commitEndTime;
|
|
45089
45114
|
endTime = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
|
|
@@ -45096,7 +45121,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
45096
45121
|
if (pendingEffectsStatus === PENDING_SPAWNED_WORK || pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE) {
|
|
45097
45122
|
if (pendingEffectsStatus === PENDING_SPAWNED_WORK) {
|
|
45098
45123
|
var startViewTransitionStartTime = commitEndTime;
|
|
45099
|
-
commitEndTime =
|
|
45124
|
+
commitEndTime = now2();
|
|
45100
45125
|
var endTime = commitEndTime, abortedViewTransition = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
|
|
45101
45126
|
!supportsUserTiming || endTime <= startViewTransitionStartTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, "Scheduler \u269B", abortedViewTransition ? "error" : "secondary-light")) : console.timeStamp(abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, "Scheduler \u269B", abortedViewTransition ? " error" : "secondary-light"));
|
|
45102
45127
|
pendingDelayedCommitReason !== ABORTED_VIEW_TRANSITION_COMMIT && (pendingDelayedCommitReason = ANIMATION_STARTED_COMMIT);
|
|
@@ -45301,7 +45326,7 @@ Error message:
|
|
|
45301
45326
|
pingCache !== null && pingCache.delete(wakeable);
|
|
45302
45327
|
root.pingedLanes |= root.suspendedLanes & pingedLanes;
|
|
45303
45328
|
root.warmLanes &= ~pingedLanes;
|
|
45304
|
-
(pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime =
|
|
45329
|
+
(pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime = now2(), blockingUpdateTask = createTask("Promise Resolved"), blockingUpdateType = 2) : (pingedLanes & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionClampTime = transitionUpdateTime = now2(), transitionUpdateTask = createTask("Promise Resolved"), transitionUpdateType = 2);
|
|
45305
45330
|
isConcurrentActEnvironment() && ReactSharedInternals.actQueue === null && console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
45306
45331
|
|
|
45307
45332
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
@@ -45736,7 +45761,7 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
45736
45761
|
return current;
|
|
45737
45762
|
}
|
|
45738
45763
|
var exports2 = {};
|
|
45739
|
-
var
|
|
45764
|
+
var assign2 = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
45740
45765
|
Symbol.for("react.scope");
|
|
45741
45766
|
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
45742
45767
|
Symbol.for("react.legacy_hidden");
|
|
@@ -45854,14 +45879,14 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
45854
45879
|
_threadCount: 0,
|
|
45855
45880
|
_currentRenderer: null,
|
|
45856
45881
|
_currentRenderer2: null
|
|
45857
|
-
},
|
|
45882
|
+
}, now2 = Scheduler.unstable_now, createTask = console.createTask ? console.createTask : function() {
|
|
45858
45883
|
return null;
|
|
45859
45884
|
}, renderStartTime = -0, commitStartTime = -0, commitEndTime = -0, commitErrors = null, profilerStartTime = -1.1, profilerEffectDuration = -0, componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, componentEffectErrors = null, componentEffectSpawnedUpdate = false, blockingClampTime = -0, blockingUpdateTime = -1.1, blockingUpdateTask = null, blockingUpdateType = 0, blockingUpdateMethodName = null, blockingUpdateComponentName = null, blockingEventTime = -1.1, blockingEventType = null, blockingEventRepeatTime = -1.1, blockingSuspendedTime = -1.1, transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionUpdateType = 0, transitionUpdateTask = null, transitionUpdateMethodName = null, transitionUpdateComponentName = null, transitionEventTime = -1.1, transitionEventType = null, transitionEventRepeatTime = -1.1, transitionSuspendedTime = -1.1, animatingTask = null, yieldReason = 0, yieldStartTime = -1.1, currentUpdateIsNested = false, nestedUpdateScheduled = false, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = false, didScheduleMicrotask_act = false, mightHavePendingSyncWork = false, isFlushingWork = false, currentEventTransitionLane = 0, fakeActCallbackNode$1 = {}, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S;
|
|
45860
45885
|
ReactSharedInternals.S = function(transition, returnValue) {
|
|
45861
45886
|
globalMostRecentTransitionTime = now$1();
|
|
45862
45887
|
if (typeof returnValue === "object" && returnValue !== null && typeof returnValue.then === "function") {
|
|
45863
45888
|
if (0 > transitionStartTime && 0 > transitionUpdateTime) {
|
|
45864
|
-
transitionStartTime =
|
|
45889
|
+
transitionStartTime = now2();
|
|
45865
45890
|
var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType();
|
|
45866
45891
|
if (newEventTime !== transitionEventRepeatTime || newEventType !== transitionEventType)
|
|
45867
45892
|
transitionEventRepeatTime = -1.1;
|
|
@@ -46042,10 +46067,10 @@ Learn more about this warning here: https://react.dev/link/legacy-context`, sort
|
|
|
46042
46067
|
}
|
|
46043
46068
|
}, callComponentWillUnmountInDEV = callComponentWillUnmount.react_stack_bottom_frame.bind(callComponentWillUnmount), callCreate = {
|
|
46044
46069
|
react_stack_bottom_frame: function(effect) {
|
|
46045
|
-
var
|
|
46070
|
+
var create3 = effect.create;
|
|
46046
46071
|
effect = effect.inst;
|
|
46047
|
-
|
|
46048
|
-
return effect.destroy =
|
|
46072
|
+
create3 = create3();
|
|
46073
|
+
return effect.destroy = create3;
|
|
46049
46074
|
}
|
|
46050
46075
|
}, callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate), callDestroy = {
|
|
46051
46076
|
react_stack_bottom_frame: function(current2, nearestMountedAncestor, destroy) {
|
|
@@ -46145,38 +46170,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46145
46170
|
mountHookTypesDev();
|
|
46146
46171
|
return readContext(context);
|
|
46147
46172
|
},
|
|
46148
|
-
useEffect: function(
|
|
46173
|
+
useEffect: function(create3, deps) {
|
|
46149
46174
|
currentHookNameInDev = "useEffect";
|
|
46150
46175
|
mountHookTypesDev();
|
|
46151
46176
|
checkDepsAreArrayDev(deps);
|
|
46152
|
-
return mountEffect(
|
|
46177
|
+
return mountEffect(create3, deps);
|
|
46153
46178
|
},
|
|
46154
|
-
useImperativeHandle: function(ref,
|
|
46179
|
+
useImperativeHandle: function(ref, create3, deps) {
|
|
46155
46180
|
currentHookNameInDev = "useImperativeHandle";
|
|
46156
46181
|
mountHookTypesDev();
|
|
46157
46182
|
checkDepsAreArrayDev(deps);
|
|
46158
|
-
return mountImperativeHandle(ref,
|
|
46183
|
+
return mountImperativeHandle(ref, create3, deps);
|
|
46159
46184
|
},
|
|
46160
|
-
useInsertionEffect: function(
|
|
46185
|
+
useInsertionEffect: function(create3, deps) {
|
|
46161
46186
|
currentHookNameInDev = "useInsertionEffect";
|
|
46162
46187
|
mountHookTypesDev();
|
|
46163
46188
|
checkDepsAreArrayDev(deps);
|
|
46164
|
-
mountEffectImpl(4, Insertion,
|
|
46189
|
+
mountEffectImpl(4, Insertion, create3, deps);
|
|
46165
46190
|
},
|
|
46166
|
-
useLayoutEffect: function(
|
|
46191
|
+
useLayoutEffect: function(create3, deps) {
|
|
46167
46192
|
currentHookNameInDev = "useLayoutEffect";
|
|
46168
46193
|
mountHookTypesDev();
|
|
46169
46194
|
checkDepsAreArrayDev(deps);
|
|
46170
|
-
return mountLayoutEffect(
|
|
46195
|
+
return mountLayoutEffect(create3, deps);
|
|
46171
46196
|
},
|
|
46172
|
-
useMemo: function(
|
|
46197
|
+
useMemo: function(create3, deps) {
|
|
46173
46198
|
currentHookNameInDev = "useMemo";
|
|
46174
46199
|
mountHookTypesDev();
|
|
46175
46200
|
checkDepsAreArrayDev(deps);
|
|
46176
46201
|
var prevDispatcher = ReactSharedInternals.H;
|
|
46177
46202
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
46178
46203
|
try {
|
|
46179
|
-
return mountMemo(
|
|
46204
|
+
return mountMemo(create3, deps);
|
|
46180
46205
|
} finally {
|
|
46181
46206
|
ReactSharedInternals.H = prevDispatcher;
|
|
46182
46207
|
}
|
|
@@ -46276,33 +46301,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46276
46301
|
updateHookTypesDev();
|
|
46277
46302
|
return readContext(context);
|
|
46278
46303
|
},
|
|
46279
|
-
useEffect: function(
|
|
46304
|
+
useEffect: function(create3, deps) {
|
|
46280
46305
|
currentHookNameInDev = "useEffect";
|
|
46281
46306
|
updateHookTypesDev();
|
|
46282
|
-
return mountEffect(
|
|
46307
|
+
return mountEffect(create3, deps);
|
|
46283
46308
|
},
|
|
46284
|
-
useImperativeHandle: function(ref,
|
|
46309
|
+
useImperativeHandle: function(ref, create3, deps) {
|
|
46285
46310
|
currentHookNameInDev = "useImperativeHandle";
|
|
46286
46311
|
updateHookTypesDev();
|
|
46287
|
-
return mountImperativeHandle(ref,
|
|
46312
|
+
return mountImperativeHandle(ref, create3, deps);
|
|
46288
46313
|
},
|
|
46289
|
-
useInsertionEffect: function(
|
|
46314
|
+
useInsertionEffect: function(create3, deps) {
|
|
46290
46315
|
currentHookNameInDev = "useInsertionEffect";
|
|
46291
46316
|
updateHookTypesDev();
|
|
46292
|
-
mountEffectImpl(4, Insertion,
|
|
46317
|
+
mountEffectImpl(4, Insertion, create3, deps);
|
|
46293
46318
|
},
|
|
46294
|
-
useLayoutEffect: function(
|
|
46319
|
+
useLayoutEffect: function(create3, deps) {
|
|
46295
46320
|
currentHookNameInDev = "useLayoutEffect";
|
|
46296
46321
|
updateHookTypesDev();
|
|
46297
|
-
return mountLayoutEffect(
|
|
46322
|
+
return mountLayoutEffect(create3, deps);
|
|
46298
46323
|
},
|
|
46299
|
-
useMemo: function(
|
|
46324
|
+
useMemo: function(create3, deps) {
|
|
46300
46325
|
currentHookNameInDev = "useMemo";
|
|
46301
46326
|
updateHookTypesDev();
|
|
46302
46327
|
var prevDispatcher = ReactSharedInternals.H;
|
|
46303
46328
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
46304
46329
|
try {
|
|
46305
|
-
return mountMemo(
|
|
46330
|
+
return mountMemo(create3, deps);
|
|
46306
46331
|
} finally {
|
|
46307
46332
|
ReactSharedInternals.H = prevDispatcher;
|
|
46308
46333
|
}
|
|
@@ -46402,33 +46427,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46402
46427
|
updateHookTypesDev();
|
|
46403
46428
|
return readContext(context);
|
|
46404
46429
|
},
|
|
46405
|
-
useEffect: function(
|
|
46430
|
+
useEffect: function(create3, deps) {
|
|
46406
46431
|
currentHookNameInDev = "useEffect";
|
|
46407
46432
|
updateHookTypesDev();
|
|
46408
|
-
updateEffectImpl(2048, Passive,
|
|
46433
|
+
updateEffectImpl(2048, Passive, create3, deps);
|
|
46409
46434
|
},
|
|
46410
|
-
useImperativeHandle: function(ref,
|
|
46435
|
+
useImperativeHandle: function(ref, create3, deps) {
|
|
46411
46436
|
currentHookNameInDev = "useImperativeHandle";
|
|
46412
46437
|
updateHookTypesDev();
|
|
46413
|
-
return updateImperativeHandle(ref,
|
|
46438
|
+
return updateImperativeHandle(ref, create3, deps);
|
|
46414
46439
|
},
|
|
46415
|
-
useInsertionEffect: function(
|
|
46440
|
+
useInsertionEffect: function(create3, deps) {
|
|
46416
46441
|
currentHookNameInDev = "useInsertionEffect";
|
|
46417
46442
|
updateHookTypesDev();
|
|
46418
|
-
return updateEffectImpl(4, Insertion,
|
|
46443
|
+
return updateEffectImpl(4, Insertion, create3, deps);
|
|
46419
46444
|
},
|
|
46420
|
-
useLayoutEffect: function(
|
|
46445
|
+
useLayoutEffect: function(create3, deps) {
|
|
46421
46446
|
currentHookNameInDev = "useLayoutEffect";
|
|
46422
46447
|
updateHookTypesDev();
|
|
46423
|
-
return updateEffectImpl(4, Layout,
|
|
46448
|
+
return updateEffectImpl(4, Layout, create3, deps);
|
|
46424
46449
|
},
|
|
46425
|
-
useMemo: function(
|
|
46450
|
+
useMemo: function(create3, deps) {
|
|
46426
46451
|
currentHookNameInDev = "useMemo";
|
|
46427
46452
|
updateHookTypesDev();
|
|
46428
46453
|
var prevDispatcher = ReactSharedInternals.H;
|
|
46429
46454
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
46430
46455
|
try {
|
|
46431
|
-
return updateMemo(
|
|
46456
|
+
return updateMemo(create3, deps);
|
|
46432
46457
|
} finally {
|
|
46433
46458
|
ReactSharedInternals.H = prevDispatcher;
|
|
46434
46459
|
}
|
|
@@ -46528,33 +46553,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46528
46553
|
updateHookTypesDev();
|
|
46529
46554
|
return readContext(context);
|
|
46530
46555
|
},
|
|
46531
|
-
useEffect: function(
|
|
46556
|
+
useEffect: function(create3, deps) {
|
|
46532
46557
|
currentHookNameInDev = "useEffect";
|
|
46533
46558
|
updateHookTypesDev();
|
|
46534
|
-
updateEffectImpl(2048, Passive,
|
|
46559
|
+
updateEffectImpl(2048, Passive, create3, deps);
|
|
46535
46560
|
},
|
|
46536
|
-
useImperativeHandle: function(ref,
|
|
46561
|
+
useImperativeHandle: function(ref, create3, deps) {
|
|
46537
46562
|
currentHookNameInDev = "useImperativeHandle";
|
|
46538
46563
|
updateHookTypesDev();
|
|
46539
|
-
return updateImperativeHandle(ref,
|
|
46564
|
+
return updateImperativeHandle(ref, create3, deps);
|
|
46540
46565
|
},
|
|
46541
|
-
useInsertionEffect: function(
|
|
46566
|
+
useInsertionEffect: function(create3, deps) {
|
|
46542
46567
|
currentHookNameInDev = "useInsertionEffect";
|
|
46543
46568
|
updateHookTypesDev();
|
|
46544
|
-
return updateEffectImpl(4, Insertion,
|
|
46569
|
+
return updateEffectImpl(4, Insertion, create3, deps);
|
|
46545
46570
|
},
|
|
46546
|
-
useLayoutEffect: function(
|
|
46571
|
+
useLayoutEffect: function(create3, deps) {
|
|
46547
46572
|
currentHookNameInDev = "useLayoutEffect";
|
|
46548
46573
|
updateHookTypesDev();
|
|
46549
|
-
return updateEffectImpl(4, Layout,
|
|
46574
|
+
return updateEffectImpl(4, Layout, create3, deps);
|
|
46550
46575
|
},
|
|
46551
|
-
useMemo: function(
|
|
46576
|
+
useMemo: function(create3, deps) {
|
|
46552
46577
|
currentHookNameInDev = "useMemo";
|
|
46553
46578
|
updateHookTypesDev();
|
|
46554
46579
|
var prevDispatcher = ReactSharedInternals.H;
|
|
46555
46580
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
46556
46581
|
try {
|
|
46557
|
-
return updateMemo(
|
|
46582
|
+
return updateMemo(create3, deps);
|
|
46558
46583
|
} finally {
|
|
46559
46584
|
ReactSharedInternals.H = prevDispatcher;
|
|
46560
46585
|
}
|
|
@@ -46660,38 +46685,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46660
46685
|
mountHookTypesDev();
|
|
46661
46686
|
return readContext(context);
|
|
46662
46687
|
},
|
|
46663
|
-
useEffect: function(
|
|
46688
|
+
useEffect: function(create3, deps) {
|
|
46664
46689
|
currentHookNameInDev = "useEffect";
|
|
46665
46690
|
warnInvalidHookAccess();
|
|
46666
46691
|
mountHookTypesDev();
|
|
46667
|
-
return mountEffect(
|
|
46692
|
+
return mountEffect(create3, deps);
|
|
46668
46693
|
},
|
|
46669
|
-
useImperativeHandle: function(ref,
|
|
46694
|
+
useImperativeHandle: function(ref, create3, deps) {
|
|
46670
46695
|
currentHookNameInDev = "useImperativeHandle";
|
|
46671
46696
|
warnInvalidHookAccess();
|
|
46672
46697
|
mountHookTypesDev();
|
|
46673
|
-
return mountImperativeHandle(ref,
|
|
46698
|
+
return mountImperativeHandle(ref, create3, deps);
|
|
46674
46699
|
},
|
|
46675
|
-
useInsertionEffect: function(
|
|
46700
|
+
useInsertionEffect: function(create3, deps) {
|
|
46676
46701
|
currentHookNameInDev = "useInsertionEffect";
|
|
46677
46702
|
warnInvalidHookAccess();
|
|
46678
46703
|
mountHookTypesDev();
|
|
46679
|
-
mountEffectImpl(4, Insertion,
|
|
46704
|
+
mountEffectImpl(4, Insertion, create3, deps);
|
|
46680
46705
|
},
|
|
46681
|
-
useLayoutEffect: function(
|
|
46706
|
+
useLayoutEffect: function(create3, deps) {
|
|
46682
46707
|
currentHookNameInDev = "useLayoutEffect";
|
|
46683
46708
|
warnInvalidHookAccess();
|
|
46684
46709
|
mountHookTypesDev();
|
|
46685
|
-
return mountLayoutEffect(
|
|
46710
|
+
return mountLayoutEffect(create3, deps);
|
|
46686
46711
|
},
|
|
46687
|
-
useMemo: function(
|
|
46712
|
+
useMemo: function(create3, deps) {
|
|
46688
46713
|
currentHookNameInDev = "useMemo";
|
|
46689
46714
|
warnInvalidHookAccess();
|
|
46690
46715
|
mountHookTypesDev();
|
|
46691
46716
|
var prevDispatcher = ReactSharedInternals.H;
|
|
46692
46717
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
46693
46718
|
try {
|
|
46694
|
-
return mountMemo(
|
|
46719
|
+
return mountMemo(create3, deps);
|
|
46695
46720
|
} finally {
|
|
46696
46721
|
ReactSharedInternals.H = prevDispatcher;
|
|
46697
46722
|
}
|
|
@@ -46773,9 +46798,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46773
46798
|
mountHookTypesDev();
|
|
46774
46799
|
return mountOptimistic(passthrough);
|
|
46775
46800
|
},
|
|
46776
|
-
useMemoCache: function(
|
|
46801
|
+
useMemoCache: function(size2) {
|
|
46777
46802
|
warnInvalidHookAccess();
|
|
46778
|
-
return useMemoCache(
|
|
46803
|
+
return useMemoCache(size2);
|
|
46779
46804
|
},
|
|
46780
46805
|
useHostTransitionStatus,
|
|
46781
46806
|
useCacheRefresh: function() {
|
|
@@ -46811,38 +46836,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46811
46836
|
updateHookTypesDev();
|
|
46812
46837
|
return readContext(context);
|
|
46813
46838
|
},
|
|
46814
|
-
useEffect: function(
|
|
46839
|
+
useEffect: function(create3, deps) {
|
|
46815
46840
|
currentHookNameInDev = "useEffect";
|
|
46816
46841
|
warnInvalidHookAccess();
|
|
46817
46842
|
updateHookTypesDev();
|
|
46818
|
-
updateEffectImpl(2048, Passive,
|
|
46843
|
+
updateEffectImpl(2048, Passive, create3, deps);
|
|
46819
46844
|
},
|
|
46820
|
-
useImperativeHandle: function(ref,
|
|
46845
|
+
useImperativeHandle: function(ref, create3, deps) {
|
|
46821
46846
|
currentHookNameInDev = "useImperativeHandle";
|
|
46822
46847
|
warnInvalidHookAccess();
|
|
46823
46848
|
updateHookTypesDev();
|
|
46824
|
-
return updateImperativeHandle(ref,
|
|
46849
|
+
return updateImperativeHandle(ref, create3, deps);
|
|
46825
46850
|
},
|
|
46826
|
-
useInsertionEffect: function(
|
|
46851
|
+
useInsertionEffect: function(create3, deps) {
|
|
46827
46852
|
currentHookNameInDev = "useInsertionEffect";
|
|
46828
46853
|
warnInvalidHookAccess();
|
|
46829
46854
|
updateHookTypesDev();
|
|
46830
|
-
return updateEffectImpl(4, Insertion,
|
|
46855
|
+
return updateEffectImpl(4, Insertion, create3, deps);
|
|
46831
46856
|
},
|
|
46832
|
-
useLayoutEffect: function(
|
|
46857
|
+
useLayoutEffect: function(create3, deps) {
|
|
46833
46858
|
currentHookNameInDev = "useLayoutEffect";
|
|
46834
46859
|
warnInvalidHookAccess();
|
|
46835
46860
|
updateHookTypesDev();
|
|
46836
|
-
return updateEffectImpl(4, Layout,
|
|
46861
|
+
return updateEffectImpl(4, Layout, create3, deps);
|
|
46837
46862
|
},
|
|
46838
|
-
useMemo: function(
|
|
46863
|
+
useMemo: function(create3, deps) {
|
|
46839
46864
|
currentHookNameInDev = "useMemo";
|
|
46840
46865
|
warnInvalidHookAccess();
|
|
46841
46866
|
updateHookTypesDev();
|
|
46842
46867
|
var prevDispatcher = ReactSharedInternals.H;
|
|
46843
46868
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
46844
46869
|
try {
|
|
46845
|
-
return updateMemo(
|
|
46870
|
+
return updateMemo(create3, deps);
|
|
46846
46871
|
} finally {
|
|
46847
46872
|
ReactSharedInternals.H = prevDispatcher;
|
|
46848
46873
|
}
|
|
@@ -46924,9 +46949,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46924
46949
|
updateHookTypesDev();
|
|
46925
46950
|
return updateOptimistic(passthrough, reducer);
|
|
46926
46951
|
},
|
|
46927
|
-
useMemoCache: function(
|
|
46952
|
+
useMemoCache: function(size2) {
|
|
46928
46953
|
warnInvalidHookAccess();
|
|
46929
|
-
return useMemoCache(
|
|
46954
|
+
return useMemoCache(size2);
|
|
46930
46955
|
},
|
|
46931
46956
|
useHostTransitionStatus,
|
|
46932
46957
|
useCacheRefresh: function() {
|
|
@@ -46962,38 +46987,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
46962
46987
|
updateHookTypesDev();
|
|
46963
46988
|
return readContext(context);
|
|
46964
46989
|
},
|
|
46965
|
-
useEffect: function(
|
|
46990
|
+
useEffect: function(create3, deps) {
|
|
46966
46991
|
currentHookNameInDev = "useEffect";
|
|
46967
46992
|
warnInvalidHookAccess();
|
|
46968
46993
|
updateHookTypesDev();
|
|
46969
|
-
updateEffectImpl(2048, Passive,
|
|
46994
|
+
updateEffectImpl(2048, Passive, create3, deps);
|
|
46970
46995
|
},
|
|
46971
|
-
useImperativeHandle: function(ref,
|
|
46996
|
+
useImperativeHandle: function(ref, create3, deps) {
|
|
46972
46997
|
currentHookNameInDev = "useImperativeHandle";
|
|
46973
46998
|
warnInvalidHookAccess();
|
|
46974
46999
|
updateHookTypesDev();
|
|
46975
|
-
return updateImperativeHandle(ref,
|
|
47000
|
+
return updateImperativeHandle(ref, create3, deps);
|
|
46976
47001
|
},
|
|
46977
|
-
useInsertionEffect: function(
|
|
47002
|
+
useInsertionEffect: function(create3, deps) {
|
|
46978
47003
|
currentHookNameInDev = "useInsertionEffect";
|
|
46979
47004
|
warnInvalidHookAccess();
|
|
46980
47005
|
updateHookTypesDev();
|
|
46981
|
-
return updateEffectImpl(4, Insertion,
|
|
47006
|
+
return updateEffectImpl(4, Insertion, create3, deps);
|
|
46982
47007
|
},
|
|
46983
|
-
useLayoutEffect: function(
|
|
47008
|
+
useLayoutEffect: function(create3, deps) {
|
|
46984
47009
|
currentHookNameInDev = "useLayoutEffect";
|
|
46985
47010
|
warnInvalidHookAccess();
|
|
46986
47011
|
updateHookTypesDev();
|
|
46987
|
-
return updateEffectImpl(4, Layout,
|
|
47012
|
+
return updateEffectImpl(4, Layout, create3, deps);
|
|
46988
47013
|
},
|
|
46989
|
-
useMemo: function(
|
|
47014
|
+
useMemo: function(create3, deps) {
|
|
46990
47015
|
currentHookNameInDev = "useMemo";
|
|
46991
47016
|
warnInvalidHookAccess();
|
|
46992
47017
|
updateHookTypesDev();
|
|
46993
47018
|
var prevDispatcher = ReactSharedInternals.H;
|
|
46994
47019
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
46995
47020
|
try {
|
|
46996
|
-
return updateMemo(
|
|
47021
|
+
return updateMemo(create3, deps);
|
|
46997
47022
|
} finally {
|
|
46998
47023
|
ReactSharedInternals.H = prevDispatcher;
|
|
46999
47024
|
}
|
|
@@ -47075,9 +47100,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
47075
47100
|
updateHookTypesDev();
|
|
47076
47101
|
return rerenderOptimistic(passthrough, reducer);
|
|
47077
47102
|
},
|
|
47078
|
-
useMemoCache: function(
|
|
47103
|
+
useMemoCache: function(size2) {
|
|
47079
47104
|
warnInvalidHookAccess();
|
|
47080
|
-
return useMemoCache(
|
|
47105
|
+
return useMemoCache(size2);
|
|
47081
47106
|
},
|
|
47082
47107
|
useHostTransitionStatus,
|
|
47083
47108
|
useCacheRefresh: function() {
|
|
@@ -47107,27 +47132,27 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
47107
47132
|
var classComponentUpdater = {
|
|
47108
47133
|
enqueueSetState: function(inst, payload, callback) {
|
|
47109
47134
|
inst = inst._reactInternals;
|
|
47110
|
-
var lane = requestUpdateLane(inst),
|
|
47111
|
-
|
|
47112
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
47113
|
-
payload = enqueueUpdate(inst,
|
|
47135
|
+
var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
|
|
47136
|
+
update2.payload = payload;
|
|
47137
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
|
|
47138
|
+
payload = enqueueUpdate(inst, update2, lane);
|
|
47114
47139
|
payload !== null && (startUpdateTimerByLane(lane, "this.setState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
|
|
47115
47140
|
},
|
|
47116
47141
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
47117
47142
|
inst = inst._reactInternals;
|
|
47118
|
-
var lane = requestUpdateLane(inst),
|
|
47119
|
-
|
|
47120
|
-
|
|
47121
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
47122
|
-
payload = enqueueUpdate(inst,
|
|
47143
|
+
var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
|
|
47144
|
+
update2.tag = ReplaceState;
|
|
47145
|
+
update2.payload = payload;
|
|
47146
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
|
|
47147
|
+
payload = enqueueUpdate(inst, update2, lane);
|
|
47123
47148
|
payload !== null && (startUpdateTimerByLane(lane, "this.replaceState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
|
|
47124
47149
|
},
|
|
47125
47150
|
enqueueForceUpdate: function(inst, callback) {
|
|
47126
47151
|
inst = inst._reactInternals;
|
|
47127
|
-
var lane = requestUpdateLane(inst),
|
|
47128
|
-
|
|
47129
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
47130
|
-
callback = enqueueUpdate(inst,
|
|
47152
|
+
var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
|
|
47153
|
+
update2.tag = ForceUpdate;
|
|
47154
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
|
|
47155
|
+
callback = enqueueUpdate(inst, update2, lane);
|
|
47131
47156
|
callback !== null && (startUpdateTimerByLane(lane, "this.forceUpdate()", inst), scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
|
|
47132
47157
|
}
|
|
47133
47158
|
}, componentName = null, errorBoundaryName = null, SelectiveHydrationException = Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."), didReceiveUpdate = false;
|
|
@@ -47182,15 +47207,15 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
47182
47207
|
var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, scheduleRetry = null, setErrorHandler = null, setSuspenseHandler = null;
|
|
47183
47208
|
overrideHookState = function(fiber, id, path19, value) {
|
|
47184
47209
|
id = findHook(fiber, id);
|
|
47185
|
-
id !== null && (path19 = copyWithSetImpl(id.memoizedState, path19, 0, value), id.memoizedState = path19, id.baseState = path19, fiber.memoizedProps =
|
|
47210
|
+
id !== null && (path19 = copyWithSetImpl(id.memoizedState, path19, 0, value), id.memoizedState = path19, id.baseState = path19, fiber.memoizedProps = assign2({}, fiber.memoizedProps), path19 = enqueueConcurrentRenderForLane(fiber, 2), path19 !== null && scheduleUpdateOnFiber(path19, fiber, 2));
|
|
47186
47211
|
};
|
|
47187
47212
|
overrideHookStateDeletePath = function(fiber, id, path19) {
|
|
47188
47213
|
id = findHook(fiber, id);
|
|
47189
|
-
id !== null && (path19 = copyWithDeleteImpl(id.memoizedState, path19, 0), id.memoizedState = path19, id.baseState = path19, fiber.memoizedProps =
|
|
47214
|
+
id !== null && (path19 = copyWithDeleteImpl(id.memoizedState, path19, 0), id.memoizedState = path19, id.baseState = path19, fiber.memoizedProps = assign2({}, fiber.memoizedProps), path19 = enqueueConcurrentRenderForLane(fiber, 2), path19 !== null && scheduleUpdateOnFiber(path19, fiber, 2));
|
|
47190
47215
|
};
|
|
47191
47216
|
overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
|
|
47192
47217
|
id = findHook(fiber, id);
|
|
47193
|
-
id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps =
|
|
47218
|
+
id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign2({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), oldPath !== null && scheduleUpdateOnFiber(oldPath, fiber, 2));
|
|
47194
47219
|
};
|
|
47195
47220
|
overrideProps = function(fiber, path19, value) {
|
|
47196
47221
|
fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path19, 0, value);
|
|
@@ -47551,7 +47576,7 @@ No matching component was found for:
|
|
|
47551
47576
|
throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");
|
|
47552
47577
|
var queue = ensureFormComponentIsStateful(formFiber).queue;
|
|
47553
47578
|
startHostActionTimer(formFiber);
|
|
47554
|
-
startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ?
|
|
47579
|
+
startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ? noop2 : function() {
|
|
47555
47580
|
ReactSharedInternals.T === null && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");
|
|
47556
47581
|
var stateHook = ensureFormComponentIsStateful(formFiber);
|
|
47557
47582
|
stateHook.next === null && (stateHook = formFiber.alternate.memoizedState);
|
|
@@ -47653,7 +47678,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
47653
47678
|
return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
47654
47679
|
}, _typeof(o);
|
|
47655
47680
|
}
|
|
47656
|
-
var ErrorStackParser = __webpack_require__2(206), React = __webpack_require__2(189),
|
|
47681
|
+
var ErrorStackParser = __webpack_require__2(206), React = __webpack_require__2(189), assign2 = Object.assign, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), hasOwnProperty = Object.prototype.hasOwnProperty, hookLog = [], primitiveStackCache = null;
|
|
47657
47682
|
function getPrimitiveStackCache() {
|
|
47658
47683
|
if (primitiveStackCache === null) {
|
|
47659
47684
|
var cache3 = new Map;
|
|
@@ -47809,13 +47834,13 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
47809
47834
|
});
|
|
47810
47835
|
return value;
|
|
47811
47836
|
},
|
|
47812
|
-
useEffect: function useEffect(
|
|
47837
|
+
useEffect: function useEffect(create3) {
|
|
47813
47838
|
nextHook();
|
|
47814
47839
|
hookLog.push({
|
|
47815
47840
|
displayName: null,
|
|
47816
47841
|
primitive: "Effect",
|
|
47817
47842
|
stackError: Error(),
|
|
47818
|
-
value:
|
|
47843
|
+
value: create3,
|
|
47819
47844
|
debugInfo: null,
|
|
47820
47845
|
dispatcherHookName: "Effect"
|
|
47821
47846
|
});
|
|
@@ -47833,24 +47858,24 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
47833
47858
|
dispatcherHookName: "ImperativeHandle"
|
|
47834
47859
|
});
|
|
47835
47860
|
},
|
|
47836
|
-
useLayoutEffect: function useLayoutEffect(
|
|
47861
|
+
useLayoutEffect: function useLayoutEffect(create3) {
|
|
47837
47862
|
nextHook();
|
|
47838
47863
|
hookLog.push({
|
|
47839
47864
|
displayName: null,
|
|
47840
47865
|
primitive: "LayoutEffect",
|
|
47841
47866
|
stackError: Error(),
|
|
47842
|
-
value:
|
|
47867
|
+
value: create3,
|
|
47843
47868
|
debugInfo: null,
|
|
47844
47869
|
dispatcherHookName: "LayoutEffect"
|
|
47845
47870
|
});
|
|
47846
47871
|
},
|
|
47847
|
-
useInsertionEffect: function useInsertionEffect(
|
|
47872
|
+
useInsertionEffect: function useInsertionEffect(create3) {
|
|
47848
47873
|
nextHook();
|
|
47849
47874
|
hookLog.push({
|
|
47850
47875
|
displayName: null,
|
|
47851
47876
|
primitive: "InsertionEffect",
|
|
47852
47877
|
stackError: Error(),
|
|
47853
|
-
value:
|
|
47878
|
+
value: create3,
|
|
47854
47879
|
debugInfo: null,
|
|
47855
47880
|
dispatcherHookName: "InsertionEffect"
|
|
47856
47881
|
});
|
|
@@ -48070,7 +48095,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48070
48095
|
});
|
|
48071
48096
|
return [passthrough, function() {}];
|
|
48072
48097
|
},
|
|
48073
|
-
useMemoCache: function useMemoCache(
|
|
48098
|
+
useMemoCache: function useMemoCache(size2) {
|
|
48074
48099
|
var fiber = currentFiber;
|
|
48075
48100
|
if (fiber == null)
|
|
48076
48101
|
return [];
|
|
@@ -48079,8 +48104,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48079
48104
|
return [];
|
|
48080
48105
|
var data = fiber.data[fiber.index];
|
|
48081
48106
|
if (data === undefined) {
|
|
48082
|
-
data = fiber.data[fiber.index] = Array(
|
|
48083
|
-
for (var i = 0;i <
|
|
48107
|
+
data = fiber.data[fiber.index] = Array(size2);
|
|
48108
|
+
for (var i = 0;i < size2; i++)
|
|
48084
48109
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
48085
48110
|
}
|
|
48086
48111
|
fiber.index++;
|
|
@@ -48111,7 +48136,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48111
48136
|
return callback;
|
|
48112
48137
|
}
|
|
48113
48138
|
}, DispatcherProxyHandler = {
|
|
48114
|
-
get: function
|
|
48139
|
+
get: function get2(target, prop) {
|
|
48115
48140
|
if (target.hasOwnProperty(prop))
|
|
48116
48141
|
return target[prop];
|
|
48117
48142
|
target = Error("Missing method in Dispatcher: " + prop);
|
|
@@ -48305,7 +48330,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48305
48330
|
thenableState = fiber.type;
|
|
48306
48331
|
var props = fiber.memoizedProps;
|
|
48307
48332
|
if (thenableState !== fiber.elementType && thenableState && thenableState.defaultProps) {
|
|
48308
|
-
props =
|
|
48333
|
+
props = assign2({}, props);
|
|
48309
48334
|
var defaultProps = thenableState.defaultProps;
|
|
48310
48335
|
for (propName in defaultProps)
|
|
48311
48336
|
props[propName] === undefined && (props[propName] = defaultProps[propName]);
|
|
@@ -48376,7 +48401,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48376
48401
|
enqueueForceUpdate: function enqueueForceUpdate() {},
|
|
48377
48402
|
enqueueReplaceState: function enqueueReplaceState() {},
|
|
48378
48403
|
enqueueSetState: function enqueueSetState() {}
|
|
48379
|
-
},
|
|
48404
|
+
}, assign2 = Object.assign, emptyObject = {};
|
|
48380
48405
|
function Component(props, context, updater) {
|
|
48381
48406
|
this.props = props;
|
|
48382
48407
|
this.context = context;
|
|
@@ -48402,10 +48427,10 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48402
48427
|
}
|
|
48403
48428
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy;
|
|
48404
48429
|
pureComponentPrototype.constructor = PureComponent;
|
|
48405
|
-
|
|
48430
|
+
assign2(pureComponentPrototype, Component.prototype);
|
|
48406
48431
|
pureComponentPrototype.isPureReactComponent = true;
|
|
48407
48432
|
var isArrayImpl = Array.isArray;
|
|
48408
|
-
function
|
|
48433
|
+
function noop2() {}
|
|
48409
48434
|
var ReactSharedInternals = {
|
|
48410
48435
|
H: null,
|
|
48411
48436
|
A: null,
|
|
@@ -48429,7 +48454,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48429
48454
|
function isValidElement(object2) {
|
|
48430
48455
|
return _typeof(object2) === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
|
|
48431
48456
|
}
|
|
48432
|
-
function
|
|
48457
|
+
function escape2(key) {
|
|
48433
48458
|
var escaperLookup = {
|
|
48434
48459
|
"=": "=0",
|
|
48435
48460
|
":": "=2"
|
|
@@ -48440,7 +48465,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48440
48465
|
}
|
|
48441
48466
|
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
48442
48467
|
function getElementKey(element, index) {
|
|
48443
|
-
return _typeof(element) === "object" && element !== null && element.key != null ?
|
|
48468
|
+
return _typeof(element) === "object" && element !== null && element.key != null ? escape2("" + element.key) : index.toString(36);
|
|
48444
48469
|
}
|
|
48445
48470
|
function resolveThenable(thenable) {
|
|
48446
48471
|
switch (thenable.status) {
|
|
@@ -48449,7 +48474,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48449
48474
|
case "rejected":
|
|
48450
48475
|
throw thenable.reason;
|
|
48451
48476
|
default:
|
|
48452
|
-
switch (typeof thenable.status === "string" ? thenable.then(
|
|
48477
|
+
switch (typeof thenable.status === "string" ? thenable.then(noop2, noop2) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
48453
48478
|
thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
48454
48479
|
}, function(error48) {
|
|
48455
48480
|
thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error48);
|
|
@@ -48509,11 +48534,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48509
48534
|
function mapChildren(children, func, context) {
|
|
48510
48535
|
if (children == null)
|
|
48511
48536
|
return children;
|
|
48512
|
-
var
|
|
48513
|
-
mapIntoArray(children,
|
|
48537
|
+
var result2 = [], count = 0;
|
|
48538
|
+
mapIntoArray(children, result2, "", "", function(child) {
|
|
48514
48539
|
return func.call(context, child, count++);
|
|
48515
48540
|
});
|
|
48516
|
-
return
|
|
48541
|
+
return result2;
|
|
48517
48542
|
}
|
|
48518
48543
|
function lazyInitializer(payload) {
|
|
48519
48544
|
if (payload._status === -1) {
|
|
@@ -48559,7 +48584,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48559
48584
|
try {
|
|
48560
48585
|
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
48561
48586
|
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue);
|
|
48562
|
-
_typeof(returnValue) === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(
|
|
48587
|
+
_typeof(returnValue) === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(noop2, reportGlobalError);
|
|
48563
48588
|
} catch (error48) {
|
|
48564
48589
|
reportGlobalError(error48);
|
|
48565
48590
|
} finally {
|
|
@@ -48576,7 +48601,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48576
48601
|
}
|
|
48577
48602
|
var Children = {
|
|
48578
48603
|
map: mapChildren,
|
|
48579
|
-
forEach: function
|
|
48604
|
+
forEach: function forEach3(children, forEachFunc, forEachContext) {
|
|
48580
48605
|
mapChildren(children, function() {
|
|
48581
48606
|
forEachFunc.apply(this, arguments);
|
|
48582
48607
|
}, forEachContext);
|
|
@@ -48588,7 +48613,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48588
48613
|
});
|
|
48589
48614
|
return n;
|
|
48590
48615
|
},
|
|
48591
|
-
toArray: function
|
|
48616
|
+
toArray: function toArray2(children) {
|
|
48592
48617
|
return mapChildren(children, function(child) {
|
|
48593
48618
|
return child;
|
|
48594
48619
|
}) || [];
|
|
@@ -48611,8 +48636,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48611
48636
|
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
48612
48637
|
exports2.__COMPILER_RUNTIME = {
|
|
48613
48638
|
__proto__: null,
|
|
48614
|
-
c: function c(
|
|
48615
|
-
return ReactSharedInternals.H.useMemoCache(
|
|
48639
|
+
c: function c(size2) {
|
|
48640
|
+
return ReactSharedInternals.H.useMemoCache(size2);
|
|
48616
48641
|
}
|
|
48617
48642
|
};
|
|
48618
48643
|
exports2.addTransitionType = addTransitionType;
|
|
@@ -48627,7 +48652,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48627
48652
|
exports2.cloneElement = function(element, config2, children) {
|
|
48628
48653
|
if (element === null || element === undefined)
|
|
48629
48654
|
throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
48630
|
-
var props =
|
|
48655
|
+
var props = assign2({}, element.props), key = element.key;
|
|
48631
48656
|
if (config2 != null)
|
|
48632
48657
|
for (propName in config2.key !== undefined && (key = "" + config2.key), config2)
|
|
48633
48658
|
!hasOwnProperty.call(config2, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config2.ref === undefined || (props[propName] = config2[propName]);
|
|
@@ -48737,7 +48762,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48737
48762
|
} finally {
|
|
48738
48763
|
ReactSharedInternals.T = prevTransition;
|
|
48739
48764
|
}
|
|
48740
|
-
return
|
|
48765
|
+
return noop2;
|
|
48741
48766
|
};
|
|
48742
48767
|
exports2.unstable_useCacheRefresh = function() {
|
|
48743
48768
|
return ReactSharedInternals.H.useCacheRefresh();
|
|
@@ -48758,8 +48783,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48758
48783
|
exports2.useDeferredValue = function(value, initialValue) {
|
|
48759
48784
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
48760
48785
|
};
|
|
48761
|
-
exports2.useEffect = function(
|
|
48762
|
-
return ReactSharedInternals.H.useEffect(
|
|
48786
|
+
exports2.useEffect = function(create3, deps) {
|
|
48787
|
+
return ReactSharedInternals.H.useEffect(create3, deps);
|
|
48763
48788
|
};
|
|
48764
48789
|
exports2.useEffectEvent = function(callback) {
|
|
48765
48790
|
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
@@ -48767,17 +48792,17 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48767
48792
|
exports2.useId = function() {
|
|
48768
48793
|
return ReactSharedInternals.H.useId();
|
|
48769
48794
|
};
|
|
48770
|
-
exports2.useImperativeHandle = function(ref,
|
|
48771
|
-
return ReactSharedInternals.H.useImperativeHandle(ref,
|
|
48795
|
+
exports2.useImperativeHandle = function(ref, create3, deps) {
|
|
48796
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create3, deps);
|
|
48772
48797
|
};
|
|
48773
|
-
exports2.useInsertionEffect = function(
|
|
48774
|
-
return ReactSharedInternals.H.useInsertionEffect(
|
|
48798
|
+
exports2.useInsertionEffect = function(create3, deps) {
|
|
48799
|
+
return ReactSharedInternals.H.useInsertionEffect(create3, deps);
|
|
48775
48800
|
};
|
|
48776
|
-
exports2.useLayoutEffect = function(
|
|
48777
|
-
return ReactSharedInternals.H.useLayoutEffect(
|
|
48801
|
+
exports2.useLayoutEffect = function(create3, deps) {
|
|
48802
|
+
return ReactSharedInternals.H.useLayoutEffect(create3, deps);
|
|
48778
48803
|
};
|
|
48779
|
-
exports2.useMemo = function(
|
|
48780
|
-
return ReactSharedInternals.H.useMemo(
|
|
48804
|
+
exports2.useMemo = function(create3, deps) {
|
|
48805
|
+
return ReactSharedInternals.H.useMemo(create3, deps);
|
|
48781
48806
|
};
|
|
48782
48807
|
exports2.useOptimistic = useOptimistic;
|
|
48783
48808
|
exports2.useReducer = function(reducer, initialArg, init) {
|
|
@@ -48880,8 +48905,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48880
48905
|
});
|
|
48881
48906
|
} else {
|
|
48882
48907
|
var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;
|
|
48883
|
-
var
|
|
48884
|
-
var functionName =
|
|
48908
|
+
var matches2 = line.match(functionNameRegex);
|
|
48909
|
+
var functionName = matches2 && matches2[1] ? matches2[1] : undefined;
|
|
48885
48910
|
var locationParts = this.extractLocation(line.replace(functionNameRegex, ""));
|
|
48886
48911
|
return new StackFrame({
|
|
48887
48912
|
functionName,
|
|
@@ -48909,28 +48934,28 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48909
48934
|
var lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
|
|
48910
48935
|
var lines = e.message.split(`
|
|
48911
48936
|
`);
|
|
48912
|
-
var
|
|
48937
|
+
var result2 = [];
|
|
48913
48938
|
for (var i = 2, len = lines.length;i < len; i += 2) {
|
|
48914
48939
|
var match = lineRE.exec(lines[i]);
|
|
48915
48940
|
if (match) {
|
|
48916
|
-
|
|
48941
|
+
result2.push(new StackFrame({
|
|
48917
48942
|
fileName: match[2],
|
|
48918
48943
|
lineNumber: match[1],
|
|
48919
48944
|
source: lines[i]
|
|
48920
48945
|
}));
|
|
48921
48946
|
}
|
|
48922
48947
|
}
|
|
48923
|
-
return
|
|
48948
|
+
return result2;
|
|
48924
48949
|
},
|
|
48925
48950
|
parseOpera10: function ErrorStackParser$$parseOpera10(e) {
|
|
48926
48951
|
var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i;
|
|
48927
48952
|
var lines = e.stacktrace.split(`
|
|
48928
48953
|
`);
|
|
48929
|
-
var
|
|
48954
|
+
var result2 = [];
|
|
48930
48955
|
for (var i = 0, len = lines.length;i < len; i += 2) {
|
|
48931
48956
|
var match = lineRE.exec(lines[i]);
|
|
48932
48957
|
if (match) {
|
|
48933
|
-
|
|
48958
|
+
result2.push(new StackFrame({
|
|
48934
48959
|
functionName: match[3] || undefined,
|
|
48935
48960
|
fileName: match[2],
|
|
48936
48961
|
lineNumber: match[1],
|
|
@@ -48938,7 +48963,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
48938
48963
|
}));
|
|
48939
48964
|
}
|
|
48940
48965
|
}
|
|
48941
|
-
return
|
|
48966
|
+
return result2;
|
|
48942
48967
|
},
|
|
48943
48968
|
parseOpera11: function ErrorStackParser$$parseOpera11(error48) {
|
|
48944
48969
|
var filtered = error48.stack.split(`
|
|
@@ -49041,7 +49066,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49041
49066
|
options = {};
|
|
49042
49067
|
if (options.max && (typeof options.max !== "number" || options.max < 0))
|
|
49043
49068
|
throw new TypeError("max must be a non-negative number");
|
|
49044
|
-
var
|
|
49069
|
+
var max2 = this[MAX] = options.max || Infinity;
|
|
49045
49070
|
var lc = options.length || naiveLength;
|
|
49046
49071
|
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
|
49047
49072
|
this[ALLOW_STALE] = options.stale || false;
|
|
@@ -49055,40 +49080,40 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49055
49080
|
}
|
|
49056
49081
|
return _createClass(LRUCache2, [{
|
|
49057
49082
|
key: "max",
|
|
49058
|
-
get: function
|
|
49083
|
+
get: function get2() {
|
|
49059
49084
|
return this[MAX];
|
|
49060
49085
|
},
|
|
49061
|
-
set: function
|
|
49086
|
+
set: function set3(mL) {
|
|
49062
49087
|
if (typeof mL !== "number" || mL < 0)
|
|
49063
49088
|
throw new TypeError("max must be a non-negative number");
|
|
49064
49089
|
this[MAX] = mL || Infinity;
|
|
49065
|
-
|
|
49090
|
+
trim2(this);
|
|
49066
49091
|
}
|
|
49067
49092
|
}, {
|
|
49068
49093
|
key: "allowStale",
|
|
49069
|
-
get: function
|
|
49094
|
+
get: function get2() {
|
|
49070
49095
|
return this[ALLOW_STALE];
|
|
49071
49096
|
},
|
|
49072
|
-
set: function
|
|
49097
|
+
set: function set3(allowStale) {
|
|
49073
49098
|
this[ALLOW_STALE] = !!allowStale;
|
|
49074
49099
|
}
|
|
49075
49100
|
}, {
|
|
49076
49101
|
key: "maxAge",
|
|
49077
|
-
get: function
|
|
49102
|
+
get: function get2() {
|
|
49078
49103
|
return this[MAX_AGE];
|
|
49079
49104
|
},
|
|
49080
|
-
set: function
|
|
49105
|
+
set: function set3(mA) {
|
|
49081
49106
|
if (typeof mA !== "number")
|
|
49082
49107
|
throw new TypeError("maxAge must be a non-negative number");
|
|
49083
49108
|
this[MAX_AGE] = mA;
|
|
49084
|
-
|
|
49109
|
+
trim2(this);
|
|
49085
49110
|
}
|
|
49086
49111
|
}, {
|
|
49087
49112
|
key: "lengthCalculator",
|
|
49088
|
-
get: function
|
|
49113
|
+
get: function get2() {
|
|
49089
49114
|
return this[LENGTH_CALCULATOR];
|
|
49090
49115
|
},
|
|
49091
|
-
set: function
|
|
49116
|
+
set: function set3(lC) {
|
|
49092
49117
|
var _this = this;
|
|
49093
49118
|
if (typeof lC !== "function")
|
|
49094
49119
|
lC = naiveLength;
|
|
@@ -49100,16 +49125,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49100
49125
|
_this[LENGTH] += hit.length;
|
|
49101
49126
|
});
|
|
49102
49127
|
}
|
|
49103
|
-
|
|
49128
|
+
trim2(this);
|
|
49104
49129
|
}
|
|
49105
49130
|
}, {
|
|
49106
49131
|
key: "length",
|
|
49107
|
-
get: function
|
|
49132
|
+
get: function get2() {
|
|
49108
49133
|
return this[LENGTH];
|
|
49109
49134
|
}
|
|
49110
49135
|
}, {
|
|
49111
49136
|
key: "itemCount",
|
|
49112
|
-
get: function
|
|
49137
|
+
get: function get2() {
|
|
49113
49138
|
return this[LRU_LIST].length;
|
|
49114
49139
|
}
|
|
49115
49140
|
}, {
|
|
@@ -49124,7 +49149,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49124
49149
|
}
|
|
49125
49150
|
}, {
|
|
49126
49151
|
key: "forEach",
|
|
49127
|
-
value: function
|
|
49152
|
+
value: function forEach3(fn, thisp) {
|
|
49128
49153
|
thisp = thisp || this;
|
|
49129
49154
|
for (var walker = this[LRU_LIST].head;walker !== null; ) {
|
|
49130
49155
|
var next = walker.next;
|
|
@@ -49134,14 +49159,14 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49134
49159
|
}
|
|
49135
49160
|
}, {
|
|
49136
49161
|
key: "keys",
|
|
49137
|
-
value: function
|
|
49162
|
+
value: function keys2() {
|
|
49138
49163
|
return this[LRU_LIST].toArray().map(function(k) {
|
|
49139
49164
|
return k.key;
|
|
49140
49165
|
});
|
|
49141
49166
|
}
|
|
49142
49167
|
}, {
|
|
49143
49168
|
key: "values",
|
|
49144
|
-
value: function
|
|
49169
|
+
value: function values2() {
|
|
49145
49170
|
return this[LRU_LIST].toArray().map(function(k) {
|
|
49146
49171
|
return k.value;
|
|
49147
49172
|
});
|
|
@@ -49180,11 +49205,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49180
49205
|
}
|
|
49181
49206
|
}, {
|
|
49182
49207
|
key: "set",
|
|
49183
|
-
value: function
|
|
49208
|
+
value: function set3(key, value, maxAge) {
|
|
49184
49209
|
maxAge = maxAge || this[MAX_AGE];
|
|
49185
49210
|
if (maxAge && typeof maxAge !== "number")
|
|
49186
49211
|
throw new TypeError("maxAge must be a number");
|
|
49187
|
-
var
|
|
49212
|
+
var now2 = maxAge ? Date.now() : 0;
|
|
49188
49213
|
var len = this[LENGTH_CALCULATOR](value, key);
|
|
49189
49214
|
if (this[CACHE].has(key)) {
|
|
49190
49215
|
if (len > this[MAX]) {
|
|
@@ -49197,16 +49222,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49197
49222
|
if (!this[NO_DISPOSE_ON_SET])
|
|
49198
49223
|
this[DISPOSE](key, item.value);
|
|
49199
49224
|
}
|
|
49200
|
-
item.now =
|
|
49225
|
+
item.now = now2;
|
|
49201
49226
|
item.maxAge = maxAge;
|
|
49202
49227
|
item.value = value;
|
|
49203
49228
|
this[LENGTH] += len - item.length;
|
|
49204
49229
|
item.length = len;
|
|
49205
49230
|
this.get(key);
|
|
49206
|
-
|
|
49231
|
+
trim2(this);
|
|
49207
49232
|
return true;
|
|
49208
49233
|
}
|
|
49209
|
-
var hit = new Entry(key, value, len,
|
|
49234
|
+
var hit = new Entry(key, value, len, now2, maxAge);
|
|
49210
49235
|
if (hit.length > this[MAX]) {
|
|
49211
49236
|
if (this[DISPOSE])
|
|
49212
49237
|
this[DISPOSE](key, value);
|
|
@@ -49215,12 +49240,12 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49215
49240
|
this[LENGTH] += hit.length;
|
|
49216
49241
|
this[LRU_LIST].unshift(hit);
|
|
49217
49242
|
this[CACHE].set(key, this[LRU_LIST].head);
|
|
49218
|
-
|
|
49243
|
+
trim2(this);
|
|
49219
49244
|
return true;
|
|
49220
49245
|
}
|
|
49221
49246
|
}, {
|
|
49222
49247
|
key: "has",
|
|
49223
|
-
value: function
|
|
49248
|
+
value: function has2(key) {
|
|
49224
49249
|
if (!this[CACHE].has(key))
|
|
49225
49250
|
return false;
|
|
49226
49251
|
var hit = this[CACHE].get(key).value;
|
|
@@ -49228,7 +49253,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49228
49253
|
}
|
|
49229
49254
|
}, {
|
|
49230
49255
|
key: "get",
|
|
49231
|
-
value: function
|
|
49256
|
+
value: function get2(key) {
|
|
49232
49257
|
return _get(this, key, true);
|
|
49233
49258
|
}
|
|
49234
49259
|
}, {
|
|
@@ -49254,14 +49279,14 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49254
49279
|
key: "load",
|
|
49255
49280
|
value: function load(arr) {
|
|
49256
49281
|
this.reset();
|
|
49257
|
-
var
|
|
49282
|
+
var now2 = Date.now();
|
|
49258
49283
|
for (var l = arr.length - 1;l >= 0; l--) {
|
|
49259
49284
|
var hit = arr[l];
|
|
49260
49285
|
var expiresAt = hit.e || 0;
|
|
49261
49286
|
if (expiresAt === 0)
|
|
49262
49287
|
this.set(hit.k, hit.v);
|
|
49263
49288
|
else {
|
|
49264
|
-
var maxAge = expiresAt -
|
|
49289
|
+
var maxAge = expiresAt - now2;
|
|
49265
49290
|
if (maxAge > 0) {
|
|
49266
49291
|
this.set(hit.k, hit.v, maxAge);
|
|
49267
49292
|
}
|
|
@@ -49302,7 +49327,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49302
49327
|
var diff = Date.now() - hit.now;
|
|
49303
49328
|
return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE];
|
|
49304
49329
|
};
|
|
49305
|
-
var
|
|
49330
|
+
var trim2 = function trim3(self2) {
|
|
49306
49331
|
if (self2[LENGTH] > self2[MAX]) {
|
|
49307
49332
|
for (var walker = self2[LRU_LIST].tail;self2[LENGTH] > self2[MAX] && walker !== null; ) {
|
|
49308
49333
|
var prev = walker.prev;
|
|
@@ -49321,12 +49346,12 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49321
49346
|
self2[LRU_LIST].removeNode(node);
|
|
49322
49347
|
}
|
|
49323
49348
|
};
|
|
49324
|
-
var Entry = /* @__PURE__ */ _createClass(function Entry2(key, value, length,
|
|
49349
|
+
var Entry = /* @__PURE__ */ _createClass(function Entry2(key, value, length, now2, maxAge) {
|
|
49325
49350
|
_classCallCheck(this, Entry2);
|
|
49326
49351
|
this.key = key;
|
|
49327
49352
|
this.value = value;
|
|
49328
49353
|
this.length = length;
|
|
49329
|
-
this.now =
|
|
49354
|
+
this.now = now2;
|
|
49330
49355
|
this.maxAge = maxAge || 0;
|
|
49331
49356
|
});
|
|
49332
49357
|
var forEachStep = function forEachStep2(self2, fn, node, thisp) {
|
|
@@ -49472,16 +49497,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49472
49497
|
process6.argv = [];
|
|
49473
49498
|
process6.version = "";
|
|
49474
49499
|
process6.versions = {};
|
|
49475
|
-
function
|
|
49476
|
-
process6.on =
|
|
49477
|
-
process6.addListener =
|
|
49478
|
-
process6.once =
|
|
49479
|
-
process6.off =
|
|
49480
|
-
process6.removeListener =
|
|
49481
|
-
process6.removeAllListeners =
|
|
49482
|
-
process6.emit =
|
|
49483
|
-
process6.prependListener =
|
|
49484
|
-
process6.prependOnceListener =
|
|
49500
|
+
function noop2() {}
|
|
49501
|
+
process6.on = noop2;
|
|
49502
|
+
process6.addListener = noop2;
|
|
49503
|
+
process6.once = noop2;
|
|
49504
|
+
process6.off = noop2;
|
|
49505
|
+
process6.removeListener = noop2;
|
|
49506
|
+
process6.removeAllListeners = noop2;
|
|
49507
|
+
process6.emit = noop2;
|
|
49508
|
+
process6.prependListener = noop2;
|
|
49509
|
+
process6.prependOnceListener = noop2;
|
|
49485
49510
|
process6.listeners = function(name) {
|
|
49486
49511
|
return [];
|
|
49487
49512
|
};
|
|
@@ -49560,7 +49585,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49560
49585
|
throw new TypeError("Eval Origin must be an Object or StackFrame");
|
|
49561
49586
|
}
|
|
49562
49587
|
},
|
|
49563
|
-
toString: function
|
|
49588
|
+
toString: function toString2() {
|
|
49564
49589
|
var fileName = this.getFileName() || "";
|
|
49565
49590
|
var lineNumber = this.getLineNumber() || "";
|
|
49566
49591
|
var columnNumber = this.getColumnNumber() || "";
|
|
@@ -49654,7 +49679,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49654
49679
|
return t3[e2] = r2;
|
|
49655
49680
|
};
|
|
49656
49681
|
}
|
|
49657
|
-
function
|
|
49682
|
+
function wrap2(t2, e2, r2, n2) {
|
|
49658
49683
|
var i2 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i2.prototype), c2 = new Context(n2 || []);
|
|
49659
49684
|
return o(a2, "_invoke", { value: makeInvokeMethod(t2, r2, c2) }), a2;
|
|
49660
49685
|
}
|
|
@@ -49665,7 +49690,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49665
49690
|
return { type: "throw", arg: t3 };
|
|
49666
49691
|
}
|
|
49667
49692
|
}
|
|
49668
|
-
e.wrap =
|
|
49693
|
+
e.wrap = wrap2;
|
|
49669
49694
|
var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
|
|
49670
49695
|
function Generator() {}
|
|
49671
49696
|
function GeneratorFunction() {}
|
|
@@ -49674,7 +49699,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49674
49699
|
define2(p, a, function() {
|
|
49675
49700
|
return this;
|
|
49676
49701
|
});
|
|
49677
|
-
var d = Object.getPrototypeOf, v = d && d(d(
|
|
49702
|
+
var d = Object.getPrototypeOf, v = d && d(d(values2([])));
|
|
49678
49703
|
v && v !== r && n.call(v, a) && (p = v);
|
|
49679
49704
|
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
49680
49705
|
function defineIteratorMethods(t2) {
|
|
@@ -49685,18 +49710,18 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49685
49710
|
});
|
|
49686
49711
|
}
|
|
49687
49712
|
function AsyncIterator(t2, e2) {
|
|
49688
|
-
function
|
|
49713
|
+
function invoke2(r3, o2, i2, a2) {
|
|
49689
49714
|
var c2 = tryCatch(t2[r3], t2, o2);
|
|
49690
49715
|
if (c2.type !== "throw") {
|
|
49691
49716
|
var u2 = c2.arg, h2 = u2.value;
|
|
49692
49717
|
return h2 && _typeof(h2) == "object" && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
|
|
49693
|
-
|
|
49718
|
+
invoke2("next", t3, i2, a2);
|
|
49694
49719
|
}, function(t3) {
|
|
49695
|
-
|
|
49720
|
+
invoke2("throw", t3, i2, a2);
|
|
49696
49721
|
}) : e2.resolve(h2).then(function(t3) {
|
|
49697
49722
|
u2.value = t3, i2(u2);
|
|
49698
49723
|
}, function(t3) {
|
|
49699
|
-
return
|
|
49724
|
+
return invoke2("throw", t3, i2, a2);
|
|
49700
49725
|
});
|
|
49701
49726
|
}
|
|
49702
49727
|
a2(c2.arg);
|
|
@@ -49705,7 +49730,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49705
49730
|
o(this, "_invoke", { value: function value(t3, n2) {
|
|
49706
49731
|
function callInvokeWithMethodAndArg() {
|
|
49707
49732
|
return new e2(function(e3, r3) {
|
|
49708
|
-
|
|
49733
|
+
invoke2(t3, n2, e3, r3);
|
|
49709
49734
|
});
|
|
49710
49735
|
}
|
|
49711
49736
|
return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
@@ -49771,7 +49796,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49771
49796
|
function Context(t2) {
|
|
49772
49797
|
this.tryEntries = [{ tryLoc: "root" }], t2.forEach(pushTryEntry, this), this.reset(true);
|
|
49773
49798
|
}
|
|
49774
|
-
function
|
|
49799
|
+
function values2(e2) {
|
|
49775
49800
|
if (e2 || e2 === "") {
|
|
49776
49801
|
var r2 = e2[a];
|
|
49777
49802
|
if (r2)
|
|
@@ -49801,7 +49826,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49801
49826
|
return this;
|
|
49802
49827
|
}), e.AsyncIterator = AsyncIterator, e.async = function(t2, r2, n2, o2, i2) {
|
|
49803
49828
|
i2 === undefined && (i2 = Promise);
|
|
49804
|
-
var a2 = new AsyncIterator(
|
|
49829
|
+
var a2 = new AsyncIterator(wrap2(t2, r2, n2, o2), i2);
|
|
49805
49830
|
return e.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
|
|
49806
49831
|
return t3.done ? t3.value : a2.next();
|
|
49807
49832
|
});
|
|
@@ -49821,7 +49846,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49821
49846
|
}
|
|
49822
49847
|
return next.done = true, next;
|
|
49823
49848
|
};
|
|
49824
|
-
}, e.values =
|
|
49849
|
+
}, e.values = values2, Context.prototype = { constructor: Context, reset: function reset(e2) {
|
|
49825
49850
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e2)
|
|
49826
49851
|
for (var r2 in this)
|
|
49827
49852
|
r2.charAt(0) === "t" && n.call(this, r2) && !isNaN(+r2.slice(1)) && (this[r2] = t);
|
|
@@ -49895,7 +49920,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49895
49920
|
}
|
|
49896
49921
|
throw Error("illegal catch attempt");
|
|
49897
49922
|
}, delegateYield: function delegateYield(e2, r2, n2) {
|
|
49898
|
-
return this.delegate = { iterator:
|
|
49923
|
+
return this.delegate = { iterator: values2(e2), resultName: r2, nextLoc: n2 }, this.method === "next" && (this.arg = t), y;
|
|
49899
49924
|
} }, e;
|
|
49900
49925
|
}
|
|
49901
49926
|
module2.exports = function(Yallist) {
|
|
@@ -49979,11 +50004,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49979
50004
|
if (node.list) {
|
|
49980
50005
|
node.list.removeNode(node);
|
|
49981
50006
|
}
|
|
49982
|
-
var
|
|
50007
|
+
var head3 = this.head;
|
|
49983
50008
|
node.list = this;
|
|
49984
|
-
node.next =
|
|
49985
|
-
if (
|
|
49986
|
-
|
|
50009
|
+
node.next = head3;
|
|
50010
|
+
if (head3) {
|
|
50011
|
+
head3.prev = node;
|
|
49987
50012
|
}
|
|
49988
50013
|
this.head = node;
|
|
49989
50014
|
if (!this.tail) {
|
|
@@ -49998,11 +50023,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
49998
50023
|
if (node.list) {
|
|
49999
50024
|
node.list.removeNode(node);
|
|
50000
50025
|
}
|
|
50001
|
-
var
|
|
50026
|
+
var tail2 = this.tail;
|
|
50002
50027
|
node.list = this;
|
|
50003
|
-
node.prev =
|
|
50004
|
-
if (
|
|
50005
|
-
|
|
50028
|
+
node.prev = tail2;
|
|
50029
|
+
if (tail2) {
|
|
50030
|
+
tail2.next = node;
|
|
50006
50031
|
}
|
|
50007
50032
|
this.tail = node;
|
|
50008
50033
|
if (!this.head) {
|
|
@@ -50098,11 +50123,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
50098
50123
|
}
|
|
50099
50124
|
return res;
|
|
50100
50125
|
};
|
|
50101
|
-
Yallist.prototype.reduce = function(fn,
|
|
50126
|
+
Yallist.prototype.reduce = function(fn, initial2) {
|
|
50102
50127
|
var acc;
|
|
50103
50128
|
var walker = this.head;
|
|
50104
50129
|
if (arguments.length > 1) {
|
|
50105
|
-
acc =
|
|
50130
|
+
acc = initial2;
|
|
50106
50131
|
} else if (this.head) {
|
|
50107
50132
|
walker = this.head.next;
|
|
50108
50133
|
acc = this.head.value;
|
|
@@ -50115,11 +50140,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
50115
50140
|
}
|
|
50116
50141
|
return acc;
|
|
50117
50142
|
};
|
|
50118
|
-
Yallist.prototype.reduceReverse = function(fn,
|
|
50143
|
+
Yallist.prototype.reduceReverse = function(fn, initial2) {
|
|
50119
50144
|
var acc;
|
|
50120
50145
|
var walker = this.tail;
|
|
50121
50146
|
if (arguments.length > 1) {
|
|
50122
|
-
acc =
|
|
50147
|
+
acc = initial2;
|
|
50123
50148
|
} else if (this.tail) {
|
|
50124
50149
|
walker = this.tail.prev;
|
|
50125
50150
|
acc = this.tail.value;
|
|
@@ -50229,15 +50254,15 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
50229
50254
|
return ret;
|
|
50230
50255
|
};
|
|
50231
50256
|
Yallist.prototype.reverse = function() {
|
|
50232
|
-
var
|
|
50233
|
-
var
|
|
50234
|
-
for (var walker =
|
|
50257
|
+
var head3 = this.head;
|
|
50258
|
+
var tail2 = this.tail;
|
|
50259
|
+
for (var walker = head3;walker !== null; walker = walker.prev) {
|
|
50235
50260
|
var p = walker.prev;
|
|
50236
50261
|
walker.prev = walker.next;
|
|
50237
50262
|
walker.next = p;
|
|
50238
50263
|
}
|
|
50239
|
-
this.head =
|
|
50240
|
-
this.tail =
|
|
50264
|
+
this.head = tail2;
|
|
50265
|
+
this.tail = head3;
|
|
50241
50266
|
return this;
|
|
50242
50267
|
};
|
|
50243
50268
|
function insert(self2, node, value) {
|
|
@@ -50589,13 +50614,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
50589
50614
|
var res = compareVersions(v1, v2);
|
|
50590
50615
|
return operatorResMap[operator].includes(res);
|
|
50591
50616
|
};
|
|
50592
|
-
var satisfies = function satisfies2(version2,
|
|
50593
|
-
var m =
|
|
50617
|
+
var satisfies = function satisfies2(version2, range2) {
|
|
50618
|
+
var m = range2.match(/^([<>=~^]+)/);
|
|
50594
50619
|
var op = m ? m[1] : "=";
|
|
50595
50620
|
if (op !== "^" && op !== "~")
|
|
50596
|
-
return compare(version2,
|
|
50621
|
+
return compare(version2, range2, op);
|
|
50597
50622
|
var _validateAndParse = validateAndParse(version2), _validateAndParse2 = _slicedToArray(_validateAndParse, 5), v1 = _validateAndParse2[0], v2 = _validateAndParse2[1], v3 = _validateAndParse2[2], vp = _validateAndParse2[4];
|
|
50598
|
-
var _validateAndParse3 = validateAndParse(
|
|
50623
|
+
var _validateAndParse3 = validateAndParse(range2), _validateAndParse4 = _slicedToArray(_validateAndParse3, 5), r1 = _validateAndParse4[0], r2 = _validateAndParse4[1], r3 = _validateAndParse4[2], rp = _validateAndParse4[4];
|
|
50599
50624
|
var v = [v1, v2, v3];
|
|
50600
50625
|
var r = [r1, r2 !== null && r2 !== undefined ? r2 : "x", r3 !== null && r3 !== undefined ? r3 : "x"];
|
|
50601
50626
|
if (rp) {
|
|
@@ -50795,8 +50820,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
50795
50820
|
var ComponentFilterHOC = 4;
|
|
50796
50821
|
var ComponentFilterEnvironmentName = 5;
|
|
50797
50822
|
var StrictMode = 1;
|
|
50798
|
-
var
|
|
50799
|
-
const src_isArray =
|
|
50823
|
+
var isArray2 = Array.isArray;
|
|
50824
|
+
const src_isArray = isArray2;
|
|
50800
50825
|
var process6 = __webpack_require__(169);
|
|
50801
50826
|
function ownKeys(e, r) {
|
|
50802
50827
|
var t = Object.keys(e);
|
|
@@ -50903,14 +50928,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
50903
50928
|
}
|
|
50904
50929
|
}
|
|
50905
50930
|
function getAllEnumerableKeys(obj) {
|
|
50906
|
-
var
|
|
50931
|
+
var keys2 = new Set;
|
|
50907
50932
|
var current = obj;
|
|
50908
50933
|
var _loop = function _loop2() {
|
|
50909
50934
|
var currentKeys = [].concat(_toConsumableArray(Object.keys(current)), _toConsumableArray(Object.getOwnPropertySymbols(current)));
|
|
50910
50935
|
var descriptors = Object.getOwnPropertyDescriptors(current);
|
|
50911
50936
|
currentKeys.forEach(function(key) {
|
|
50912
50937
|
if (descriptors[key].enumerable) {
|
|
50913
|
-
|
|
50938
|
+
keys2.add(key);
|
|
50914
50939
|
}
|
|
50915
50940
|
});
|
|
50916
50941
|
current = Object.getPrototypeOf(current);
|
|
@@ -50918,7 +50943,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
50918
50943
|
while (current != null) {
|
|
50919
50944
|
_loop();
|
|
50920
50945
|
}
|
|
50921
|
-
return
|
|
50946
|
+
return keys2;
|
|
50922
50947
|
}
|
|
50923
50948
|
function getWrappedDisplayName(outerType, innerType, wrapperName, fallbackName) {
|
|
50924
50949
|
var displayName = outerType === null || outerType === undefined ? undefined : outerType.displayName;
|
|
@@ -51228,10 +51253,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51228
51253
|
case ElementTypeMemo:
|
|
51229
51254
|
case ElementTypeVirtual:
|
|
51230
51255
|
if (displayName.indexOf("(") >= 0) {
|
|
51231
|
-
var
|
|
51232
|
-
if (
|
|
51233
|
-
displayName =
|
|
51234
|
-
hocDisplayNames =
|
|
51256
|
+
var matches2 = displayName.match(/[^()]+/g);
|
|
51257
|
+
if (matches2 != null) {
|
|
51258
|
+
displayName = matches2.pop();
|
|
51259
|
+
hocDisplayNames = matches2;
|
|
51235
51260
|
}
|
|
51236
51261
|
}
|
|
51237
51262
|
break;
|
|
@@ -51272,14 +51297,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51272
51297
|
}
|
|
51273
51298
|
function deletePathInObject(object2, path19) {
|
|
51274
51299
|
var length = path19.length;
|
|
51275
|
-
var
|
|
51300
|
+
var last2 = path19[length - 1];
|
|
51276
51301
|
if (object2 != null) {
|
|
51277
51302
|
var parent = utils_getInObject(object2, path19.slice(0, length - 1));
|
|
51278
51303
|
if (parent) {
|
|
51279
51304
|
if (src_isArray(parent)) {
|
|
51280
|
-
parent.splice(
|
|
51305
|
+
parent.splice(last2, 1);
|
|
51281
51306
|
} else {
|
|
51282
|
-
delete parent[
|
|
51307
|
+
delete parent[last2];
|
|
51283
51308
|
}
|
|
51284
51309
|
}
|
|
51285
51310
|
}
|
|
@@ -51302,15 +51327,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51302
51327
|
}
|
|
51303
51328
|
function utils_setInObject(object2, path19, value) {
|
|
51304
51329
|
var length = path19.length;
|
|
51305
|
-
var
|
|
51330
|
+
var last2 = path19[length - 1];
|
|
51306
51331
|
if (object2 != null) {
|
|
51307
51332
|
var parent = utils_getInObject(object2, path19.slice(0, length - 1));
|
|
51308
51333
|
if (parent) {
|
|
51309
|
-
parent[
|
|
51334
|
+
parent[last2] = value;
|
|
51310
51335
|
}
|
|
51311
51336
|
}
|
|
51312
51337
|
}
|
|
51313
|
-
function
|
|
51338
|
+
function isError2(data) {
|
|
51314
51339
|
if ("name" in data && "message" in data) {
|
|
51315
51340
|
while (data) {
|
|
51316
51341
|
if (Object.prototype.toString.call(data) === "[object Error]") {
|
|
@@ -51369,7 +51394,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51369
51394
|
return "regexp";
|
|
51370
51395
|
} else if (typeof data.then === "function") {
|
|
51371
51396
|
return "thenable";
|
|
51372
|
-
} else if (
|
|
51397
|
+
} else if (isError2(data)) {
|
|
51373
51398
|
return "error";
|
|
51374
51399
|
} else {
|
|
51375
51400
|
var toStringValue = Object.prototype.toString.call(data);
|
|
@@ -51379,7 +51404,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51379
51404
|
return "html_all_collection";
|
|
51380
51405
|
}
|
|
51381
51406
|
}
|
|
51382
|
-
if (!
|
|
51407
|
+
if (!isPlainObject4(data)) {
|
|
51383
51408
|
return "class_instance";
|
|
51384
51409
|
}
|
|
51385
51410
|
return "object";
|
|
@@ -51638,7 +51663,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51638
51663
|
}
|
|
51639
51664
|
case "thenable":
|
|
51640
51665
|
var displayName;
|
|
51641
|
-
if (
|
|
51666
|
+
if (isPlainObject4(data)) {
|
|
51642
51667
|
displayName = "Thenable";
|
|
51643
51668
|
} else {
|
|
51644
51669
|
var _resolvedConstructorName = data.constructor.name;
|
|
@@ -51673,10 +51698,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51673
51698
|
}
|
|
51674
51699
|
case "object":
|
|
51675
51700
|
if (showFormattedValue) {
|
|
51676
|
-
var
|
|
51701
|
+
var keys2 = Array.from(getAllEnumerableKeys(data)).sort(alphaSortKeys);
|
|
51677
51702
|
var _formatted9 = "";
|
|
51678
|
-
for (var _i3 = 0;_i3 <
|
|
51679
|
-
var _key =
|
|
51703
|
+
for (var _i3 = 0;_i3 < keys2.length; _i3++) {
|
|
51704
|
+
var _key = keys2[_i3];
|
|
51680
51705
|
if (_i3 > 0) {
|
|
51681
51706
|
_formatted9 += ", ";
|
|
51682
51707
|
}
|
|
@@ -51706,7 +51731,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51706
51731
|
}
|
|
51707
51732
|
}
|
|
51708
51733
|
}
|
|
51709
|
-
var
|
|
51734
|
+
var isPlainObject4 = function isPlainObject5(object2) {
|
|
51710
51735
|
var objectPrototype = Object.getPrototypeOf(object2);
|
|
51711
51736
|
if (!objectPrototype)
|
|
51712
51737
|
return true;
|
|
@@ -51756,19 +51781,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
51756
51781
|
sessionStorageRemoveItem(SESSION_STORAGE_RECORD_TIMELINE_KEY);
|
|
51757
51782
|
}
|
|
51758
51783
|
function unionOfTwoArrays(a, b) {
|
|
51759
|
-
var
|
|
51784
|
+
var result2 = a;
|
|
51760
51785
|
for (var i = 0;i < b.length; i++) {
|
|
51761
51786
|
var value = b[i];
|
|
51762
51787
|
if (a.indexOf(value) === -1) {
|
|
51763
|
-
if (
|
|
51764
|
-
|
|
51788
|
+
if (result2 === a) {
|
|
51789
|
+
result2 = a.slice(0);
|
|
51765
51790
|
}
|
|
51766
|
-
|
|
51791
|
+
result2.push(value);
|
|
51767
51792
|
}
|
|
51768
51793
|
}
|
|
51769
|
-
return
|
|
51794
|
+
return result2;
|
|
51770
51795
|
}
|
|
51771
|
-
function
|
|
51796
|
+
function noop2() {}
|
|
51772
51797
|
function hydration_ownKeys(e, r) {
|
|
51773
51798
|
var t = Object.keys(e);
|
|
51774
51799
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -52038,7 +52063,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52038
52063
|
};
|
|
52039
52064
|
}
|
|
52040
52065
|
if (data.status === "resolved_model" || data.status === "resolve_module") {
|
|
52041
|
-
data.then(
|
|
52066
|
+
data.then(noop2);
|
|
52042
52067
|
}
|
|
52043
52068
|
switch (data.status) {
|
|
52044
52069
|
case "fulfilled": {
|
|
@@ -52180,14 +52205,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52180
52205
|
}
|
|
52181
52206
|
if (value !== null && data.unserializable.length > 0) {
|
|
52182
52207
|
var unserializablePath = data.unserializable[0];
|
|
52183
|
-
var
|
|
52208
|
+
var isMatch2 = unserializablePath.length === path19.length;
|
|
52184
52209
|
for (var i = 0;i < path19.length; i++) {
|
|
52185
52210
|
if (path19[i] !== unserializablePath[i]) {
|
|
52186
|
-
|
|
52211
|
+
isMatch2 = false;
|
|
52187
52212
|
break;
|
|
52188
52213
|
}
|
|
52189
52214
|
}
|
|
52190
|
-
if (
|
|
52215
|
+
if (isMatch2) {
|
|
52191
52216
|
upgradeUnserializable(value, value);
|
|
52192
52217
|
}
|
|
52193
52218
|
}
|
|
@@ -52196,20 +52221,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52196
52221
|
function hydrate(object2, cleaned, unserializable) {
|
|
52197
52222
|
cleaned.forEach(function(path19) {
|
|
52198
52223
|
var length = path19.length;
|
|
52199
|
-
var
|
|
52224
|
+
var last2 = path19[length - 1];
|
|
52200
52225
|
var parent = getInObject(object2, path19.slice(0, length - 1));
|
|
52201
|
-
if (!parent || !parent.hasOwnProperty(
|
|
52226
|
+
if (!parent || !parent.hasOwnProperty(last2)) {
|
|
52202
52227
|
return;
|
|
52203
52228
|
}
|
|
52204
|
-
var value = parent[
|
|
52229
|
+
var value = parent[last2];
|
|
52205
52230
|
if (!value) {
|
|
52206
52231
|
return;
|
|
52207
52232
|
} else if (value.type === "infinity") {
|
|
52208
|
-
parent[
|
|
52233
|
+
parent[last2] = Infinity;
|
|
52209
52234
|
} else if (value.type === "nan") {
|
|
52210
|
-
parent[
|
|
52235
|
+
parent[last2] = NaN;
|
|
52211
52236
|
} else if (value.type === "undefined") {
|
|
52212
|
-
parent[
|
|
52237
|
+
parent[last2] = undefined;
|
|
52213
52238
|
} else {
|
|
52214
52239
|
var replaced = {};
|
|
52215
52240
|
replaced[meta3.inspectable] = !!value.inspectable;
|
|
@@ -52220,20 +52245,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52220
52245
|
replaced[meta3.size] = value.size;
|
|
52221
52246
|
replaced[meta3.readonly] = !!value.readonly;
|
|
52222
52247
|
replaced[meta3.type] = value.type;
|
|
52223
|
-
parent[
|
|
52248
|
+
parent[last2] = replaced;
|
|
52224
52249
|
}
|
|
52225
52250
|
});
|
|
52226
52251
|
unserializable.forEach(function(path19) {
|
|
52227
52252
|
var length = path19.length;
|
|
52228
|
-
var
|
|
52253
|
+
var last2 = path19[length - 1];
|
|
52229
52254
|
var parent = getInObject(object2, path19.slice(0, length - 1));
|
|
52230
|
-
if (!parent || !parent.hasOwnProperty(
|
|
52255
|
+
if (!parent || !parent.hasOwnProperty(last2)) {
|
|
52231
52256
|
return;
|
|
52232
52257
|
}
|
|
52233
|
-
var node = parent[
|
|
52258
|
+
var node = parent[last2];
|
|
52234
52259
|
var replacement = hydration_objectSpread({}, node);
|
|
52235
52260
|
upgradeUnserializable(replacement, node);
|
|
52236
|
-
parent[
|
|
52261
|
+
parent[last2] = replacement;
|
|
52237
52262
|
});
|
|
52238
52263
|
return object2;
|
|
52239
52264
|
}
|
|
@@ -52344,7 +52369,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52344
52369
|
if (version2 == null || version2 === "") {
|
|
52345
52370
|
return false;
|
|
52346
52371
|
}
|
|
52347
|
-
return
|
|
52372
|
+
return gte2(version2, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER);
|
|
52348
52373
|
}
|
|
52349
52374
|
function cleanForBridge(data, isPathAllowed) {
|
|
52350
52375
|
var path19 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
@@ -52492,12 +52517,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52492
52517
|
function isSynchronousXHRSupported() {
|
|
52493
52518
|
return !!(window.document && window.document.featurePolicy && window.document.featurePolicy.allowsFeature("sync-xhr"));
|
|
52494
52519
|
}
|
|
52495
|
-
function
|
|
52520
|
+
function gt2() {
|
|
52496
52521
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
52497
52522
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
52498
52523
|
return compareVersions(a, b) === 1;
|
|
52499
52524
|
}
|
|
52500
|
-
function
|
|
52525
|
+
function gte2() {
|
|
52501
52526
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
52502
52527
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
52503
52528
|
return compareVersions(a, b) > -1;
|
|
@@ -52736,14 +52761,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52736
52761
|
}
|
|
52737
52762
|
return Overlay_createClass(OverlayRect2, [{
|
|
52738
52763
|
key: "remove",
|
|
52739
|
-
value: function
|
|
52764
|
+
value: function remove2() {
|
|
52740
52765
|
if (this.node.parentNode) {
|
|
52741
52766
|
this.node.parentNode.removeChild(this.node);
|
|
52742
52767
|
}
|
|
52743
52768
|
}
|
|
52744
52769
|
}, {
|
|
52745
52770
|
key: "update",
|
|
52746
|
-
value: function
|
|
52771
|
+
value: function update2(box, dims) {
|
|
52747
52772
|
boxWrap(dims, "margin", this.node);
|
|
52748
52773
|
boxWrap(dims, "border", this.border);
|
|
52749
52774
|
boxWrap(dims, "padding", this.padding);
|
|
@@ -52793,7 +52818,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52793
52818
|
}
|
|
52794
52819
|
return Overlay_createClass(OverlayTip2, [{
|
|
52795
52820
|
key: "remove",
|
|
52796
|
-
value: function
|
|
52821
|
+
value: function remove2() {
|
|
52797
52822
|
if (this.tip.parentNode) {
|
|
52798
52823
|
this.tip.parentNode.removeChild(this.tip);
|
|
52799
52824
|
}
|
|
@@ -52833,7 +52858,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
52833
52858
|
}
|
|
52834
52859
|
return Overlay_createClass(Overlay2, [{
|
|
52835
52860
|
key: "remove",
|
|
52836
|
-
value: function
|
|
52861
|
+
value: function remove2() {
|
|
52837
52862
|
this.tip.remove();
|
|
52838
52863
|
this.rects.forEach(function(rect) {
|
|
52839
52864
|
rect.remove();
|
|
@@ -53497,11 +53522,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
53497
53522
|
return;
|
|
53498
53523
|
nodes.forEach(function(node) {
|
|
53499
53524
|
var data = nodeToData.get(node);
|
|
53500
|
-
var
|
|
53525
|
+
var now2 = getCurrentTime();
|
|
53501
53526
|
var lastMeasuredAt = data != null ? data.lastMeasuredAt : 0;
|
|
53502
53527
|
var rect = data != null ? data.rect : null;
|
|
53503
|
-
if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION <
|
|
53504
|
-
lastMeasuredAt =
|
|
53528
|
+
if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION < now2) {
|
|
53529
|
+
lastMeasuredAt = now2;
|
|
53505
53530
|
rect = measureNode(node);
|
|
53506
53531
|
}
|
|
53507
53532
|
var displayName = agent.getComponentNameForHostInstance(node);
|
|
@@ -53515,7 +53540,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
53515
53540
|
}
|
|
53516
53541
|
nodeToData.set(node, {
|
|
53517
53542
|
count: data != null ? data.count + 1 : 1,
|
|
53518
|
-
expirationTime: data != null ? Math.min(
|
|
53543
|
+
expirationTime: data != null ? Math.min(now2 + MAX_DISPLAY_DURATION, data.expirationTime + DISPLAY_DURATION) : now2 + DISPLAY_DURATION,
|
|
53519
53544
|
lastMeasuredAt,
|
|
53520
53545
|
rect,
|
|
53521
53546
|
displayName
|
|
@@ -53532,10 +53557,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
53532
53557
|
function prepareToDraw() {
|
|
53533
53558
|
drawAnimationFrameID = null;
|
|
53534
53559
|
redrawTimeoutID = null;
|
|
53535
|
-
var
|
|
53560
|
+
var now2 = getCurrentTime();
|
|
53536
53561
|
var earliestExpiration = Number.MAX_VALUE;
|
|
53537
53562
|
nodeToData.forEach(function(data, node) {
|
|
53538
|
-
if (data.expirationTime <
|
|
53563
|
+
if (data.expirationTime < now2) {
|
|
53539
53564
|
nodeToData.delete(node);
|
|
53540
53565
|
} else {
|
|
53541
53566
|
earliestExpiration = Math.min(earliestExpiration, data.expirationTime);
|
|
@@ -53543,7 +53568,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
53543
53568
|
});
|
|
53544
53569
|
draw(nodeToData, agent);
|
|
53545
53570
|
if (earliestExpiration !== Number.MAX_VALUE) {
|
|
53546
|
-
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration -
|
|
53571
|
+
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now2);
|
|
53547
53572
|
}
|
|
53548
53573
|
}
|
|
53549
53574
|
function measureNode(node) {
|
|
@@ -53780,7 +53805,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
53780
53805
|
_inherits(Bridge2, _EventEmitter);
|
|
53781
53806
|
return bridge_createClass(Bridge2, [{
|
|
53782
53807
|
key: "wall",
|
|
53783
|
-
get: function
|
|
53808
|
+
get: function get2() {
|
|
53784
53809
|
return this._wall;
|
|
53785
53810
|
}
|
|
53786
53811
|
}, {
|
|
@@ -54571,7 +54596,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54571
54596
|
agent_inherits(Agent2, _EventEmitter);
|
|
54572
54597
|
return agent_createClass(Agent2, [{
|
|
54573
54598
|
key: "rendererInterfaces",
|
|
54574
|
-
get: function
|
|
54599
|
+
get: function get2() {
|
|
54575
54600
|
return this._rendererInterfaces;
|
|
54576
54601
|
}
|
|
54577
54602
|
}, {
|
|
@@ -54663,7 +54688,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54663
54688
|
var renderer = rendererInterface.renderer;
|
|
54664
54689
|
if (renderer !== null) {
|
|
54665
54690
|
var devRenderer = renderer.bundleType === 1;
|
|
54666
|
-
var enableSuspenseTab = devRenderer &&
|
|
54691
|
+
var enableSuspenseTab = devRenderer && gte2(renderer.version, "19.3.0-canary");
|
|
54667
54692
|
if (enableSuspenseTab) {
|
|
54668
54693
|
this._bridge.send("enableSuspenseTab");
|
|
54669
54694
|
}
|
|
@@ -54920,7 +54945,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54920
54945
|
throw Error();
|
|
54921
54946
|
};
|
|
54922
54947
|
Object.defineProperty(Fake.prototype, "props", {
|
|
54923
|
-
set: function
|
|
54948
|
+
set: function set3() {
|
|
54924
54949
|
throw Error();
|
|
54925
54950
|
}
|
|
54926
54951
|
});
|
|
@@ -54950,9 +54975,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54950
54975
|
maybePromise.catch(function() {});
|
|
54951
54976
|
}
|
|
54952
54977
|
}
|
|
54953
|
-
} catch (
|
|
54954
|
-
if (
|
|
54955
|
-
return [
|
|
54978
|
+
} catch (sample2) {
|
|
54979
|
+
if (sample2 && control && typeof sample2.stack === "string") {
|
|
54980
|
+
return [sample2.stack, control.stack];
|
|
54956
54981
|
}
|
|
54957
54982
|
}
|
|
54958
54983
|
return [null, null];
|
|
@@ -55407,29 +55432,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
55407
55432
|
var typeName = callSite.getTypeName();
|
|
55408
55433
|
var methodName = callSite.getMethodName();
|
|
55409
55434
|
var functionName = callSite.getFunctionName();
|
|
55410
|
-
var
|
|
55435
|
+
var result2 = "";
|
|
55411
55436
|
if (functionName) {
|
|
55412
55437
|
if (typeName && identifierRegExp.test(functionName) && functionName !== typeName) {
|
|
55413
|
-
|
|
55438
|
+
result2 += typeName + ".";
|
|
55414
55439
|
}
|
|
55415
|
-
|
|
55440
|
+
result2 += functionName;
|
|
55416
55441
|
if (methodName && functionName !== methodName && !functionName.endsWith("." + methodName) && !functionName.endsWith(" " + methodName)) {
|
|
55417
|
-
|
|
55442
|
+
result2 += " [as " + methodName + "]";
|
|
55418
55443
|
}
|
|
55419
55444
|
} else {
|
|
55420
55445
|
if (typeName) {
|
|
55421
|
-
|
|
55446
|
+
result2 += typeName + ".";
|
|
55422
55447
|
}
|
|
55423
55448
|
if (methodName) {
|
|
55424
|
-
|
|
55449
|
+
result2 += methodName;
|
|
55425
55450
|
} else {
|
|
55426
|
-
|
|
55451
|
+
result2 += "<anonymous>";
|
|
55427
55452
|
}
|
|
55428
55453
|
}
|
|
55429
|
-
return
|
|
55454
|
+
return result2;
|
|
55430
55455
|
}
|
|
55431
55456
|
function collectStackTrace(error48, structuredStackTrace) {
|
|
55432
|
-
var
|
|
55457
|
+
var result2 = [];
|
|
55433
55458
|
for (var i = framesToSkip;i < structuredStackTrace.length; i++) {
|
|
55434
55459
|
var callSite = structuredStackTrace[i];
|
|
55435
55460
|
var _name = callSite.getFunctionName() || "<anonymous>";
|
|
@@ -55437,7 +55462,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
55437
55462
|
break;
|
|
55438
55463
|
} else if (callSite.isNative()) {
|
|
55439
55464
|
var isAsync = callSite.isAsync();
|
|
55440
|
-
|
|
55465
|
+
result2.push([_name, "", 0, 0, 0, 0, isAsync]);
|
|
55441
55466
|
} else {
|
|
55442
55467
|
if (callSite.isConstructor()) {
|
|
55443
55468
|
_name = "new " + _name;
|
|
@@ -55462,10 +55487,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
55462
55487
|
var enclosingLine = typeof callSite.getEnclosingLineNumber === "function" ? callSite.getEnclosingLineNumber() || 0 : 0;
|
|
55463
55488
|
var enclosingCol = typeof callSite.getEnclosingColumnNumber === "function" ? callSite.getEnclosingColumnNumber() || 0 : 0;
|
|
55464
55489
|
var _isAsync = callSite.isAsync();
|
|
55465
|
-
|
|
55490
|
+
result2.push([_name, filename, line, col, enclosingLine, enclosingCol, _isAsync]);
|
|
55466
55491
|
}
|
|
55467
55492
|
}
|
|
55468
|
-
collectedStackTrace =
|
|
55493
|
+
collectedStackTrace = result2;
|
|
55469
55494
|
var name = error48.name || "Error";
|
|
55470
55495
|
var message = error48.message || "";
|
|
55471
55496
|
var stack = name + ": " + message;
|
|
@@ -55493,10 +55518,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
55493
55518
|
Error.prepareStackTrace = previousPrepare;
|
|
55494
55519
|
}
|
|
55495
55520
|
if (collectedStackTrace !== null) {
|
|
55496
|
-
var
|
|
55521
|
+
var result2 = collectedStackTrace;
|
|
55497
55522
|
collectedStackTrace = null;
|
|
55498
|
-
stackTraceCache.set(error48,
|
|
55499
|
-
return
|
|
55523
|
+
stackTraceCache.set(error48, result2);
|
|
55524
|
+
return result2;
|
|
55500
55525
|
}
|
|
55501
55526
|
var parsedFrames = parseStackTraceFromString(stack, skipFrames);
|
|
55502
55527
|
stackTraceCache.set(error48, parsedFrames);
|
|
@@ -55794,8 +55819,8 @@ Error generating stack: ` + x.message + `
|
|
|
55794
55819
|
resolvedStyles = Object.fromEntries(Object.entries(resolvedStyles).sort());
|
|
55795
55820
|
}
|
|
55796
55821
|
function crawlObjectProperties(entry, sources, resolvedStyles) {
|
|
55797
|
-
var
|
|
55798
|
-
|
|
55822
|
+
var keys2 = Object.keys(entry);
|
|
55823
|
+
keys2.forEach(function(key) {
|
|
55799
55824
|
var value = entry[key];
|
|
55800
55825
|
if (typeof value === "string") {
|
|
55801
55826
|
if (key === value) {
|
|
@@ -55835,8 +55860,8 @@ Error generating stack: ` + x.message + `
|
|
|
55835
55860
|
if (selectorText.startsWith(".".concat(styleName))) {
|
|
55836
55861
|
var match = cssText.match(/{ *([a-z\-]+):/);
|
|
55837
55862
|
if (match !== null) {
|
|
55838
|
-
var
|
|
55839
|
-
var value = style.getPropertyValue(
|
|
55863
|
+
var property2 = match[1];
|
|
55864
|
+
var value = style.getPropertyValue(property2);
|
|
55840
55865
|
cachedStyleNameToValueMap.set(styleName, value);
|
|
55841
55866
|
return value;
|
|
55842
55867
|
} else {
|
|
@@ -56256,11 +56281,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
56256
56281
|
var CHECK_V3_MARK = "__v3";
|
|
56257
56282
|
var markOptions = {};
|
|
56258
56283
|
Object.defineProperty(markOptions, "startTime", {
|
|
56259
|
-
get: function
|
|
56284
|
+
get: function get2() {
|
|
56260
56285
|
supportsUserTimingV3 = true;
|
|
56261
56286
|
return 0;
|
|
56262
56287
|
},
|
|
56263
|
-
set: function
|
|
56288
|
+
set: function set3() {}
|
|
56264
56289
|
});
|
|
56265
56290
|
try {
|
|
56266
56291
|
performance.mark(CHECK_V3_MARK, markOptions);
|
|
@@ -56330,8 +56355,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
56330
56355
|
var ranges = getInternalModuleRanges();
|
|
56331
56356
|
if (ranges) {
|
|
56332
56357
|
for (var i = 0;i < ranges.length; i++) {
|
|
56333
|
-
var
|
|
56334
|
-
if (shared_isArray(
|
|
56358
|
+
var range2 = ranges[i];
|
|
56359
|
+
if (shared_isArray(range2) && range2.length === 2) {
|
|
56335
56360
|
var _ranges$i = profilingHooks_slicedToArray(ranges[i], 2), startStackFrame = _ranges$i[0], stopStackFrame = _ranges$i[1];
|
|
56336
56361
|
markAndClear("--react-internal-module-start-".concat(startStackFrame));
|
|
56337
56362
|
markAndClear("--react-internal-module-stop-".concat(stopStackFrame));
|
|
@@ -56793,8 +56818,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
56793
56818
|
var ranges = getInternalModuleRanges();
|
|
56794
56819
|
if (ranges) {
|
|
56795
56820
|
for (var i = 0;i < ranges.length; i++) {
|
|
56796
|
-
var
|
|
56797
|
-
if (shared_isArray(
|
|
56821
|
+
var range2 = ranges[i];
|
|
56822
|
+
if (shared_isArray(range2) && range2.length === 2) {
|
|
56798
56823
|
var _ranges$i2 = profilingHooks_slicedToArray(ranges[i], 2), startStackFrame = _ranges$i2[0], stopStackFrame = _ranges$i2[1];
|
|
56799
56824
|
markAndClear("--react-internal-module-start-".concat(startStackFrame));
|
|
56800
56825
|
markAndClear("--react-internal-module-stop-".concat(stopStackFrame));
|
|
@@ -57145,7 +57170,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57145
57170
|
IdlePriority: 95,
|
|
57146
57171
|
NoPriority: 90
|
|
57147
57172
|
};
|
|
57148
|
-
if (
|
|
57173
|
+
if (gt2(version2, "17.0.2")) {
|
|
57149
57174
|
ReactPriorityLevels = {
|
|
57150
57175
|
ImmediatePriority: 1,
|
|
57151
57176
|
UserBlockingPriority: 2,
|
|
@@ -57156,16 +57181,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57156
57181
|
};
|
|
57157
57182
|
}
|
|
57158
57183
|
var StrictModeBits = 0;
|
|
57159
|
-
if (
|
|
57184
|
+
if (gte2(version2, "18.0.0-alpha")) {
|
|
57160
57185
|
StrictModeBits = 24;
|
|
57161
|
-
} else if (
|
|
57186
|
+
} else if (gte2(version2, "16.9.0")) {
|
|
57162
57187
|
StrictModeBits = 1;
|
|
57163
|
-
} else if (
|
|
57188
|
+
} else if (gte2(version2, "16.3.0")) {
|
|
57164
57189
|
StrictModeBits = 2;
|
|
57165
57190
|
}
|
|
57166
57191
|
var SuspenseyImagesMode = 32;
|
|
57167
57192
|
var ReactTypeOfWork = null;
|
|
57168
|
-
if (
|
|
57193
|
+
if (gt2(version2, "17.0.1")) {
|
|
57169
57194
|
ReactTypeOfWork = {
|
|
57170
57195
|
CacheComponent: 24,
|
|
57171
57196
|
ClassComponent: 1,
|
|
@@ -57202,7 +57227,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57202
57227
|
ViewTransitionComponent: 30,
|
|
57203
57228
|
ActivityComponent: 31
|
|
57204
57229
|
};
|
|
57205
|
-
} else if (
|
|
57230
|
+
} else if (gte2(version2, "17.0.0-alpha")) {
|
|
57206
57231
|
ReactTypeOfWork = {
|
|
57207
57232
|
CacheComponent: -1,
|
|
57208
57233
|
ClassComponent: 1,
|
|
@@ -57239,7 +57264,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57239
57264
|
ViewTransitionComponent: -1,
|
|
57240
57265
|
ActivityComponent: -1
|
|
57241
57266
|
};
|
|
57242
|
-
} else if (
|
|
57267
|
+
} else if (gte2(version2, "16.6.0-beta.0")) {
|
|
57243
57268
|
ReactTypeOfWork = {
|
|
57244
57269
|
CacheComponent: -1,
|
|
57245
57270
|
ClassComponent: 1,
|
|
@@ -57276,7 +57301,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57276
57301
|
ViewTransitionComponent: -1,
|
|
57277
57302
|
ActivityComponent: -1
|
|
57278
57303
|
};
|
|
57279
|
-
} else if (
|
|
57304
|
+
} else if (gte2(version2, "16.4.3-alpha")) {
|
|
57280
57305
|
ReactTypeOfWork = {
|
|
57281
57306
|
CacheComponent: -1,
|
|
57282
57307
|
ClassComponent: 2,
|
|
@@ -57571,7 +57596,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
57571
57596
|
var { getLaneLabelMap, injectProfilingHooks, overrideHookState, overrideHookStateDeletePath, overrideHookStateRenamePath, overrideProps, overridePropsDeletePath, overridePropsRenamePath, scheduleRefresh, setErrorHandler, setSuspenseHandler, scheduleUpdate, scheduleRetry, getCurrentFiber } = renderer;
|
|
57572
57597
|
var supportsTogglingError = typeof setErrorHandler === "function" && typeof scheduleUpdate === "function";
|
|
57573
57598
|
var supportsTogglingSuspense = typeof setSuspenseHandler === "function" && typeof scheduleUpdate === "function";
|
|
57574
|
-
var supportsPerformanceTracks =
|
|
57599
|
+
var supportsPerformanceTracks = gte2(version2, "19.2.0");
|
|
57575
57600
|
if (typeof scheduleRefresh === "function") {
|
|
57576
57601
|
renderer.scheduleRefresh = function() {
|
|
57577
57602
|
try {
|
|
@@ -58176,9 +58201,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58176
58201
|
if (prev == null || next == null) {
|
|
58177
58202
|
return null;
|
|
58178
58203
|
}
|
|
58179
|
-
var
|
|
58204
|
+
var keys2 = new Set([].concat(fiber_renderer_toConsumableArray(Object.keys(prev)), fiber_renderer_toConsumableArray(Object.keys(next))));
|
|
58180
58205
|
var changedKeys = [];
|
|
58181
|
-
var _iterator6 = _createForOfIteratorHelper(
|
|
58206
|
+
var _iterator6 = _createForOfIteratorHelper(keys2), _step6;
|
|
58182
58207
|
try {
|
|
58183
58208
|
for (_iterator6.s();!(_step6 = _iterator6.n()).done; ) {
|
|
58184
58209
|
var key = _step6.value;
|
|
@@ -58350,7 +58375,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58350
58375
|
height: instance2.scrollHeight
|
|
58351
58376
|
}];
|
|
58352
58377
|
}
|
|
58353
|
-
var
|
|
58378
|
+
var result2 = [];
|
|
58354
58379
|
var win = doc2 && doc2.defaultView;
|
|
58355
58380
|
var scrollX = win ? win.scrollX : 0;
|
|
58356
58381
|
var scrollY = win ? win.scrollY : 0;
|
|
@@ -58359,25 +58384,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58359
58384
|
if (typeof doc2.createRange !== "function") {
|
|
58360
58385
|
return null;
|
|
58361
58386
|
}
|
|
58362
|
-
var
|
|
58363
|
-
if (typeof
|
|
58387
|
+
var range2 = doc2.createRange();
|
|
58388
|
+
if (typeof range2.getClientRects !== "function") {
|
|
58364
58389
|
return null;
|
|
58365
58390
|
}
|
|
58366
|
-
|
|
58367
|
-
rects =
|
|
58391
|
+
range2.selectNodeContents(instance2);
|
|
58392
|
+
rects = range2.getClientRects();
|
|
58368
58393
|
} else {
|
|
58369
58394
|
rects = instance2.getClientRects();
|
|
58370
58395
|
}
|
|
58371
58396
|
for (var i = 0;i < rects.length; i++) {
|
|
58372
58397
|
var rect = rects[i];
|
|
58373
|
-
|
|
58398
|
+
result2.push({
|
|
58374
58399
|
x: rect.x + scrollX,
|
|
58375
58400
|
y: rect.y + scrollY,
|
|
58376
58401
|
width: rect.width,
|
|
58377
58402
|
height: rect.height
|
|
58378
58403
|
});
|
|
58379
58404
|
}
|
|
58380
|
-
return
|
|
58405
|
+
return result2;
|
|
58381
58406
|
}
|
|
58382
58407
|
if (instance2.canonical) {
|
|
58383
58408
|
var publicInstance = instance2.canonical.publicInstance;
|
|
@@ -58395,18 +58420,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
58395
58420
|
}
|
|
58396
58421
|
function measureInstance(instance2) {
|
|
58397
58422
|
var hostInstances = findAllCurrentHostInstances(instance2);
|
|
58398
|
-
var
|
|
58423
|
+
var result2 = null;
|
|
58399
58424
|
for (var i = 0;i < hostInstances.length; i++) {
|
|
58400
58425
|
var childResult = measureHostInstance(hostInstances[i]);
|
|
58401
58426
|
if (childResult !== null) {
|
|
58402
|
-
if (
|
|
58403
|
-
|
|
58427
|
+
if (result2 === null) {
|
|
58428
|
+
result2 = childResult;
|
|
58404
58429
|
} else {
|
|
58405
|
-
|
|
58430
|
+
result2 = result2.concat(childResult);
|
|
58406
58431
|
}
|
|
58407
58432
|
}
|
|
58408
58433
|
}
|
|
58409
|
-
return
|
|
58434
|
+
return result2;
|
|
58410
58435
|
}
|
|
58411
58436
|
function getStringID(string4) {
|
|
58412
58437
|
if (string4 === null) {
|
|
@@ -60641,10 +60666,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60641
60666
|
}
|
|
60642
60667
|
function inspectHooks(fiber) {
|
|
60643
60668
|
var originalConsoleMethods = {};
|
|
60644
|
-
for (var
|
|
60669
|
+
for (var method2 in console) {
|
|
60645
60670
|
try {
|
|
60646
|
-
originalConsoleMethods[
|
|
60647
|
-
console[
|
|
60671
|
+
originalConsoleMethods[method2] = console[method2];
|
|
60672
|
+
console[method2] = function() {};
|
|
60648
60673
|
} catch (error48) {}
|
|
60649
60674
|
}
|
|
60650
60675
|
try {
|
|
@@ -60658,14 +60683,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60658
60683
|
}
|
|
60659
60684
|
}
|
|
60660
60685
|
function getSuspendedByOfSuspenseNode(suspenseNode, filterByChildInstance) {
|
|
60661
|
-
var
|
|
60686
|
+
var result2 = [];
|
|
60662
60687
|
if (!suspenseNode.hasUniqueSuspenders) {
|
|
60663
|
-
return
|
|
60688
|
+
return result2;
|
|
60664
60689
|
}
|
|
60665
60690
|
var hooksCacheKey = null;
|
|
60666
60691
|
var hooksCache = null;
|
|
60667
60692
|
var streamEntries = new Map;
|
|
60668
|
-
suspenseNode.suspendedBy.forEach(function(
|
|
60693
|
+
suspenseNode.suspendedBy.forEach(function(set3, ioInfo) {
|
|
60669
60694
|
var parentNode = suspenseNode.parent;
|
|
60670
60695
|
while (parentNode !== null) {
|
|
60671
60696
|
if (parentNode.suspendedBy.has(ioInfo)) {
|
|
@@ -60673,14 +60698,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60673
60698
|
}
|
|
60674
60699
|
parentNode = parentNode.parent;
|
|
60675
60700
|
}
|
|
60676
|
-
if (
|
|
60701
|
+
if (set3.size === 0) {
|
|
60677
60702
|
return;
|
|
60678
60703
|
}
|
|
60679
60704
|
var firstInstance = null;
|
|
60680
60705
|
if (filterByChildInstance === null) {
|
|
60681
|
-
firstInstance =
|
|
60706
|
+
firstInstance = set3.values().next().value;
|
|
60682
60707
|
} else {
|
|
60683
|
-
var _iterator7 = _createForOfIteratorHelper(
|
|
60708
|
+
var _iterator7 = _createForOfIteratorHelper(set3.values()), _step7;
|
|
60684
60709
|
try {
|
|
60685
60710
|
for (_iterator7.s();!(_step7 = _iterator7.n()).done; ) {
|
|
60686
60711
|
var childInstance = _step7.value;
|
|
@@ -60731,16 +60756,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60731
60756
|
}
|
|
60732
60757
|
}
|
|
60733
60758
|
} else {
|
|
60734
|
-
|
|
60759
|
+
result2.push(serializeAsyncInfo(asyncInfo, firstInstance, hooks));
|
|
60735
60760
|
}
|
|
60736
60761
|
}
|
|
60737
60762
|
}
|
|
60738
60763
|
});
|
|
60739
60764
|
streamEntries.forEach(function(_ref) {
|
|
60740
60765
|
var { asyncInfo, instance: instance2, hooks } = _ref;
|
|
60741
|
-
|
|
60766
|
+
result2.push(serializeAsyncInfo(asyncInfo, instance2, hooks));
|
|
60742
60767
|
});
|
|
60743
|
-
return
|
|
60768
|
+
return result2;
|
|
60744
60769
|
}
|
|
60745
60770
|
function getSuspendedByOfInstance(devtoolsInstance, hooks) {
|
|
60746
60771
|
var suspendedBy = devtoolsInstance.suspendedBy;
|
|
@@ -60749,7 +60774,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60749
60774
|
}
|
|
60750
60775
|
var foundIOEntries = new Set;
|
|
60751
60776
|
var streamEntries = new Map;
|
|
60752
|
-
var
|
|
60777
|
+
var result2 = [];
|
|
60753
60778
|
for (var i = 0;i < suspendedBy.length; i++) {
|
|
60754
60779
|
var asyncInfo = suspendedBy[i];
|
|
60755
60780
|
var ioInfo = asyncInfo.awaited;
|
|
@@ -60769,13 +60794,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60769
60794
|
}
|
|
60770
60795
|
}
|
|
60771
60796
|
} else {
|
|
60772
|
-
|
|
60797
|
+
result2.push(serializeAsyncInfo(asyncInfo, devtoolsInstance, hooks));
|
|
60773
60798
|
}
|
|
60774
60799
|
}
|
|
60775
60800
|
streamEntries.forEach(function(asyncInfo2) {
|
|
60776
|
-
|
|
60801
|
+
result2.push(serializeAsyncInfo(asyncInfo2, devtoolsInstance, hooks));
|
|
60777
60802
|
});
|
|
60778
|
-
return
|
|
60803
|
+
return result2;
|
|
60779
60804
|
}
|
|
60780
60805
|
function getSuspendedByOfInstanceSubtree(devtoolsInstance) {
|
|
60781
60806
|
var suspenseParentInstance = devtoolsInstance;
|
|
@@ -60790,14 +60815,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60790
60815
|
}
|
|
60791
60816
|
var FALLBACK_THROTTLE_MS = 300;
|
|
60792
60817
|
function getSuspendedByRange(suspenseNode) {
|
|
60793
|
-
var
|
|
60794
|
-
var
|
|
60818
|
+
var min2 = Infinity;
|
|
60819
|
+
var max2 = -Infinity;
|
|
60795
60820
|
suspenseNode.suspendedBy.forEach(function(_, ioInfo) {
|
|
60796
|
-
if (ioInfo.end >
|
|
60797
|
-
|
|
60821
|
+
if (ioInfo.end > max2) {
|
|
60822
|
+
max2 = ioInfo.end;
|
|
60798
60823
|
}
|
|
60799
|
-
if (ioInfo.start <
|
|
60800
|
-
|
|
60824
|
+
if (ioInfo.start < min2) {
|
|
60825
|
+
min2 = ioInfo.start;
|
|
60801
60826
|
}
|
|
60802
60827
|
});
|
|
60803
60828
|
var parentSuspenseNode = suspenseNode.parent;
|
|
@@ -60809,19 +60834,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60809
60834
|
}
|
|
60810
60835
|
});
|
|
60811
60836
|
var throttleTime = parentMax + FALLBACK_THROTTLE_MS;
|
|
60812
|
-
if (throttleTime >
|
|
60813
|
-
|
|
60837
|
+
if (throttleTime > max2) {
|
|
60838
|
+
max2 = throttleTime;
|
|
60814
60839
|
}
|
|
60815
|
-
var startTime =
|
|
60840
|
+
var startTime = max2 - FALLBACK_THROTTLE_MS;
|
|
60816
60841
|
if (parentMax > startTime) {
|
|
60817
60842
|
startTime = parentMax;
|
|
60818
60843
|
}
|
|
60819
|
-
if (startTime <
|
|
60820
|
-
|
|
60844
|
+
if (startTime < min2) {
|
|
60845
|
+
min2 = startTime;
|
|
60821
60846
|
}
|
|
60822
60847
|
}
|
|
60823
|
-
if (
|
|
60824
|
-
return [
|
|
60848
|
+
if (min2 < Infinity && max2 > -Infinity) {
|
|
60849
|
+
return [min2, max2];
|
|
60825
60850
|
}
|
|
60826
60851
|
return null;
|
|
60827
60852
|
}
|
|
@@ -61498,8 +61523,8 @@ The error thrown in the component is:
|
|
|
61498
61523
|
return inspectedRoots;
|
|
61499
61524
|
}
|
|
61500
61525
|
function logElementToConsole(id) {
|
|
61501
|
-
var
|
|
61502
|
-
if (
|
|
61526
|
+
var result2 = isMostRecentlyInspectedElementCurrent(id) ? mostRecentlyInspectedElement : inspectElementRaw(id);
|
|
61527
|
+
if (result2 === null) {
|
|
61503
61528
|
console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
|
|
61504
61529
|
return;
|
|
61505
61530
|
}
|
|
@@ -61508,14 +61533,14 @@ The error thrown in the component is:
|
|
|
61508
61533
|
if (supportsGroup) {
|
|
61509
61534
|
console.groupCollapsed("[Click to expand] %c<".concat(displayName || "Component", " />"), "color: var(--dom-tag-name-color); font-weight: normal;");
|
|
61510
61535
|
}
|
|
61511
|
-
if (
|
|
61512
|
-
console.log("Props:",
|
|
61536
|
+
if (result2.props !== null) {
|
|
61537
|
+
console.log("Props:", result2.props);
|
|
61513
61538
|
}
|
|
61514
|
-
if (
|
|
61515
|
-
console.log("State:",
|
|
61539
|
+
if (result2.state !== null) {
|
|
61540
|
+
console.log("State:", result2.state);
|
|
61516
61541
|
}
|
|
61517
|
-
if (
|
|
61518
|
-
console.log("Hooks:",
|
|
61542
|
+
if (result2.hooks !== null) {
|
|
61543
|
+
console.log("Hooks:", result2.hooks);
|
|
61519
61544
|
}
|
|
61520
61545
|
var hostInstances = findHostInstancesForElementID(id);
|
|
61521
61546
|
if (hostInstances !== null) {
|
|
@@ -61731,8 +61756,8 @@ The error thrown in the component is:
|
|
|
61731
61756
|
if (typeof getTimelineData === "function") {
|
|
61732
61757
|
var currentTimelineData = getTimelineData();
|
|
61733
61758
|
if (currentTimelineData) {
|
|
61734
|
-
var { batchUIDToMeasuresMap, internalModuleSourceToRanges, laneToLabelMap, laneToReactMeasureMap } = currentTimelineData,
|
|
61735
|
-
timelineData = renderer_objectSpread(renderer_objectSpread({},
|
|
61759
|
+
var { batchUIDToMeasuresMap, internalModuleSourceToRanges, laneToLabelMap, laneToReactMeasureMap } = currentTimelineData, rest2 = _objectWithoutProperties(currentTimelineData, _excluded);
|
|
61760
|
+
timelineData = renderer_objectSpread(renderer_objectSpread({}, rest2), {}, {
|
|
61736
61761
|
batchUIDToMeasuresKeyValueArray: Array.from(batchUIDToMeasuresMap.entries()),
|
|
61737
61762
|
internalModuleSourceToRanges: Array.from(internalModuleSourceToRanges.entries()),
|
|
61738
61763
|
laneToLabelKeyValueArray: Array.from(laneToLabelMap.entries()),
|
|
@@ -62471,9 +62496,9 @@ The error thrown in the component is:
|
|
|
62471
62496
|
parentIDStack.push(id);
|
|
62472
62497
|
internalInstanceToRootIDMap.set(internalInstance, getID(hostContainerInfo._topLevelWrapper));
|
|
62473
62498
|
try {
|
|
62474
|
-
var
|
|
62499
|
+
var result2 = fn.apply(this, args);
|
|
62475
62500
|
parentIDStack.pop();
|
|
62476
|
-
return
|
|
62501
|
+
return result2;
|
|
62477
62502
|
} catch (err) {
|
|
62478
62503
|
parentIDStack = [];
|
|
62479
62504
|
throw err;
|
|
@@ -62496,13 +62521,13 @@ The error thrown in the component is:
|
|
|
62496
62521
|
parentIDStack.push(id);
|
|
62497
62522
|
var prevChildren = getChildren(internalInstance);
|
|
62498
62523
|
try {
|
|
62499
|
-
var
|
|
62524
|
+
var result2 = fn.apply(this, args);
|
|
62500
62525
|
var nextChildren = getChildren(internalInstance);
|
|
62501
62526
|
if (!areEqualArrays(prevChildren, nextChildren)) {
|
|
62502
62527
|
recordReorder(internalInstance, id, nextChildren);
|
|
62503
62528
|
}
|
|
62504
62529
|
parentIDStack.pop();
|
|
62505
|
-
return
|
|
62530
|
+
return result2;
|
|
62506
62531
|
} catch (err) {
|
|
62507
62532
|
parentIDStack = [];
|
|
62508
62533
|
throw err;
|
|
@@ -62525,13 +62550,13 @@ The error thrown in the component is:
|
|
|
62525
62550
|
parentIDStack.push(id);
|
|
62526
62551
|
var prevChildren = getChildren(internalInstance);
|
|
62527
62552
|
try {
|
|
62528
|
-
var
|
|
62553
|
+
var result2 = fn.apply(this, args);
|
|
62529
62554
|
var nextChildren = getChildren(internalInstance);
|
|
62530
62555
|
if (!areEqualArrays(prevChildren, nextChildren)) {
|
|
62531
62556
|
recordReorder(internalInstance, id, nextChildren);
|
|
62532
62557
|
}
|
|
62533
62558
|
parentIDStack.pop();
|
|
62534
|
-
return
|
|
62559
|
+
return result2;
|
|
62535
62560
|
} catch (err) {
|
|
62536
62561
|
parentIDStack = [];
|
|
62537
62562
|
throw err;
|
|
@@ -62553,10 +62578,10 @@ The error thrown in the component is:
|
|
|
62553
62578
|
var id = getID(internalInstance);
|
|
62554
62579
|
parentIDStack.push(id);
|
|
62555
62580
|
try {
|
|
62556
|
-
var
|
|
62581
|
+
var result2 = fn.apply(this, args);
|
|
62557
62582
|
parentIDStack.pop();
|
|
62558
62583
|
recordUnmount(internalInstance, id);
|
|
62559
|
-
return
|
|
62584
|
+
return result2;
|
|
62560
62585
|
} catch (err) {
|
|
62561
62586
|
parentIDStack = [];
|
|
62562
62587
|
throw err;
|
|
@@ -63001,8 +63026,8 @@ The error thrown in the component is:
|
|
|
63001
63026
|
return inspectedRoots;
|
|
63002
63027
|
}
|
|
63003
63028
|
function logElementToConsole(id) {
|
|
63004
|
-
var
|
|
63005
|
-
if (
|
|
63029
|
+
var result2 = inspectElementRaw(id);
|
|
63030
|
+
if (result2 === null) {
|
|
63006
63031
|
console.warn('Could not find element with id "'.concat(id, '"'));
|
|
63007
63032
|
return;
|
|
63008
63033
|
}
|
|
@@ -63011,14 +63036,14 @@ The error thrown in the component is:
|
|
|
63011
63036
|
if (supportsGroup) {
|
|
63012
63037
|
console.groupCollapsed("[Click to expand] %c<".concat(displayName || "Component", " />"), "color: var(--dom-tag-name-color); font-weight: normal;");
|
|
63013
63038
|
}
|
|
63014
|
-
if (
|
|
63015
|
-
console.log("Props:",
|
|
63039
|
+
if (result2.props !== null) {
|
|
63040
|
+
console.log("Props:", result2.props);
|
|
63016
63041
|
}
|
|
63017
|
-
if (
|
|
63018
|
-
console.log("State:",
|
|
63042
|
+
if (result2.state !== null) {
|
|
63043
|
+
console.log("State:", result2.state);
|
|
63019
63044
|
}
|
|
63020
|
-
if (
|
|
63021
|
-
console.log("Context:",
|
|
63045
|
+
if (result2.context !== null) {
|
|
63046
|
+
console.log("Context:", result2.context);
|
|
63022
63047
|
}
|
|
63023
63048
|
var hostInstance = findHostInstanceForInternalID(id);
|
|
63024
63049
|
if (hostInstance !== null) {
|
|
@@ -63325,12 +63350,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63325
63350
|
return [maybeMessage].concat(inputArgs);
|
|
63326
63351
|
}
|
|
63327
63352
|
var args = inputArgs.slice();
|
|
63328
|
-
var
|
|
63353
|
+
var template2 = "";
|
|
63329
63354
|
var argumentsPointer = 0;
|
|
63330
63355
|
for (var i = 0;i < maybeMessage.length; ++i) {
|
|
63331
63356
|
var currentChar = maybeMessage[i];
|
|
63332
63357
|
if (currentChar !== "%") {
|
|
63333
|
-
|
|
63358
|
+
template2 += currentChar;
|
|
63334
63359
|
continue;
|
|
63335
63360
|
}
|
|
63336
63361
|
var nextChar = maybeMessage[i + 1];
|
|
@@ -63340,30 +63365,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63340
63365
|
case "O":
|
|
63341
63366
|
case "o": {
|
|
63342
63367
|
++argumentsPointer;
|
|
63343
|
-
|
|
63368
|
+
template2 += "%".concat(nextChar);
|
|
63344
63369
|
break;
|
|
63345
63370
|
}
|
|
63346
63371
|
case "d":
|
|
63347
63372
|
case "i": {
|
|
63348
63373
|
var _args$splice = args.splice(argumentsPointer, 1), _args$splice2 = formatConsoleArguments_slicedToArray(_args$splice, 1), arg = _args$splice2[0];
|
|
63349
|
-
|
|
63374
|
+
template2 += parseInt(arg, 10).toString();
|
|
63350
63375
|
break;
|
|
63351
63376
|
}
|
|
63352
63377
|
case "f": {
|
|
63353
63378
|
var _args$splice3 = args.splice(argumentsPointer, 1), _args$splice4 = formatConsoleArguments_slicedToArray(_args$splice3, 1), _arg = _args$splice4[0];
|
|
63354
|
-
|
|
63379
|
+
template2 += parseFloat(_arg).toString();
|
|
63355
63380
|
break;
|
|
63356
63381
|
}
|
|
63357
63382
|
case "s": {
|
|
63358
63383
|
var _args$splice5 = args.splice(argumentsPointer, 1), _args$splice6 = formatConsoleArguments_slicedToArray(_args$splice5, 1), _arg2 = _args$splice6[0];
|
|
63359
|
-
|
|
63384
|
+
template2 += String(_arg2);
|
|
63360
63385
|
break;
|
|
63361
63386
|
}
|
|
63362
63387
|
default:
|
|
63363
|
-
|
|
63388
|
+
template2 += "%".concat(nextChar);
|
|
63364
63389
|
}
|
|
63365
63390
|
}
|
|
63366
|
-
return [
|
|
63391
|
+
return [template2].concat(formatConsoleArguments_toConsumableArray(args));
|
|
63367
63392
|
}
|
|
63368
63393
|
function hook_createForOfIteratorHelper(o, allowArrayLike) {
|
|
63369
63394
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
@@ -63621,8 +63646,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63621
63646
|
}
|
|
63622
63647
|
var consoleMethodsToOverrideForStrictMode = ["group", "groupCollapsed", "info", "log"];
|
|
63623
63648
|
var _loop = function _loop2() {
|
|
63624
|
-
var
|
|
63625
|
-
var originalMethod = targetConsole[
|
|
63649
|
+
var method2 = _consoleMethodsToOver[_i];
|
|
63650
|
+
var originalMethod = targetConsole[method2];
|
|
63626
63651
|
var overrideMethod = function overrideMethod2() {
|
|
63627
63652
|
var settings = hook.settings;
|
|
63628
63653
|
for (var _len = arguments.length, args = new Array(_len), _key = 0;_key < _len; _key++) {
|
|
@@ -63639,9 +63664,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63639
63664
|
originalMethod.apply(undefined, [ANSI_STYLE_DIMMING_TEMPLATE].concat(hook_toConsumableArray(formatConsoleArguments.apply(undefined, args))));
|
|
63640
63665
|
}
|
|
63641
63666
|
};
|
|
63642
|
-
targetConsole[
|
|
63667
|
+
targetConsole[method2] = overrideMethod;
|
|
63643
63668
|
unpatchConsoleCallbacks.push(function() {
|
|
63644
|
-
targetConsole[
|
|
63669
|
+
targetConsole[method2] = originalMethod;
|
|
63645
63670
|
});
|
|
63646
63671
|
};
|
|
63647
63672
|
for (var _i = 0, _consoleMethodsToOver = consoleMethodsToOverrideForStrictMode;_i < _consoleMethodsToOver.length; _i++) {
|
|
@@ -63686,8 +63711,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63686
63711
|
}
|
|
63687
63712
|
var consoleMethodsToOverrideForErrorsAndWarnings = ["error", "trace", "warn"];
|
|
63688
63713
|
var _loop2 = function _loop22() {
|
|
63689
|
-
var
|
|
63690
|
-
var originalMethod = targetConsole[
|
|
63714
|
+
var method2 = _consoleMethodsToOver2[_i2];
|
|
63715
|
+
var originalMethod = targetConsole[method2];
|
|
63691
63716
|
var overrideMethod = function overrideMethod2() {
|
|
63692
63717
|
var settings = hook.settings;
|
|
63693
63718
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;_key2 < _len2; _key2++) {
|
|
@@ -63706,7 +63731,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63706
63731
|
var lastArg = args.length > 0 ? args[args.length - 1] : null;
|
|
63707
63732
|
alreadyHasComponentStack = typeof lastArg === "string" && isStringComponentStack(lastArg);
|
|
63708
63733
|
}
|
|
63709
|
-
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (
|
|
63734
|
+
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (method2 === "error" || method2 === "warn");
|
|
63710
63735
|
var _iterator = hook_createForOfIteratorHelper(hook.rendererInterfaces.values()), _step;
|
|
63711
63736
|
try {
|
|
63712
63737
|
var _loop3 = function _loop32() {
|
|
@@ -63715,7 +63740,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63715
63740
|
try {
|
|
63716
63741
|
if (shouldShowInlineWarningsAndErrors) {
|
|
63717
63742
|
if (onErrorOrWarning != null) {
|
|
63718
|
-
onErrorOrWarning(
|
|
63743
|
+
onErrorOrWarning(method2, args.slice());
|
|
63719
63744
|
}
|
|
63720
63745
|
}
|
|
63721
63746
|
} catch (error48) {
|
|
@@ -63780,7 +63805,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63780
63805
|
originalMethod.apply(undefined, args);
|
|
63781
63806
|
}
|
|
63782
63807
|
};
|
|
63783
|
-
targetConsole[
|
|
63808
|
+
targetConsole[method2] = overrideMethod;
|
|
63784
63809
|
};
|
|
63785
63810
|
for (var _i2 = 0, _consoleMethodsToOver2 = consoleMethodsToOverrideForErrorsAndWarnings;_i2 < _consoleMethodsToOver2.length; _i2++) {
|
|
63786
63811
|
_loop2();
|
|
@@ -63834,7 +63859,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63834
63859
|
Object.defineProperty(target, "__REACT_DEVTOOLS_GLOBAL_HOOK__", {
|
|
63835
63860
|
configurable: false,
|
|
63836
63861
|
enumerable: false,
|
|
63837
|
-
get: function
|
|
63862
|
+
get: function get2() {
|
|
63838
63863
|
return hook;
|
|
63839
63864
|
}
|
|
63840
63865
|
});
|
|
@@ -63893,7 +63918,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63893
63918
|
}
|
|
63894
63919
|
function resolveBoxStyle(prefix2, style) {
|
|
63895
63920
|
var hasParts = false;
|
|
63896
|
-
var
|
|
63921
|
+
var result2 = {
|
|
63897
63922
|
bottom: 0,
|
|
63898
63923
|
left: 0,
|
|
63899
63924
|
right: 0,
|
|
@@ -63901,57 +63926,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
63901
63926
|
};
|
|
63902
63927
|
var styleForAll = style[prefix2];
|
|
63903
63928
|
if (styleForAll != null) {
|
|
63904
|
-
for (var _i = 0, _Object$keys = Object.keys(
|
|
63929
|
+
for (var _i = 0, _Object$keys = Object.keys(result2);_i < _Object$keys.length; _i++) {
|
|
63905
63930
|
var key = _Object$keys[_i];
|
|
63906
|
-
|
|
63931
|
+
result2[key] = styleForAll;
|
|
63907
63932
|
}
|
|
63908
63933
|
hasParts = true;
|
|
63909
63934
|
}
|
|
63910
63935
|
var styleForHorizontal = style[prefix2 + "Horizontal"];
|
|
63911
63936
|
if (styleForHorizontal != null) {
|
|
63912
|
-
|
|
63913
|
-
|
|
63937
|
+
result2.left = styleForHorizontal;
|
|
63938
|
+
result2.right = styleForHorizontal;
|
|
63914
63939
|
hasParts = true;
|
|
63915
63940
|
} else {
|
|
63916
63941
|
var styleForLeft = style[prefix2 + "Left"];
|
|
63917
63942
|
if (styleForLeft != null) {
|
|
63918
|
-
|
|
63943
|
+
result2.left = styleForLeft;
|
|
63919
63944
|
hasParts = true;
|
|
63920
63945
|
}
|
|
63921
63946
|
var styleForRight = style[prefix2 + "Right"];
|
|
63922
63947
|
if (styleForRight != null) {
|
|
63923
|
-
|
|
63948
|
+
result2.right = styleForRight;
|
|
63924
63949
|
hasParts = true;
|
|
63925
63950
|
}
|
|
63926
63951
|
var styleForEnd = style[prefix2 + "End"];
|
|
63927
63952
|
if (styleForEnd != null) {
|
|
63928
|
-
|
|
63953
|
+
result2.right = styleForEnd;
|
|
63929
63954
|
hasParts = true;
|
|
63930
63955
|
}
|
|
63931
63956
|
var styleForStart = style[prefix2 + "Start"];
|
|
63932
63957
|
if (styleForStart != null) {
|
|
63933
|
-
|
|
63958
|
+
result2.left = styleForStart;
|
|
63934
63959
|
hasParts = true;
|
|
63935
63960
|
}
|
|
63936
63961
|
}
|
|
63937
63962
|
var styleForVertical = style[prefix2 + "Vertical"];
|
|
63938
63963
|
if (styleForVertical != null) {
|
|
63939
|
-
|
|
63940
|
-
|
|
63964
|
+
result2.bottom = styleForVertical;
|
|
63965
|
+
result2.top = styleForVertical;
|
|
63941
63966
|
hasParts = true;
|
|
63942
63967
|
} else {
|
|
63943
63968
|
var styleForBottom = style[prefix2 + "Bottom"];
|
|
63944
63969
|
if (styleForBottom != null) {
|
|
63945
|
-
|
|
63970
|
+
result2.bottom = styleForBottom;
|
|
63946
63971
|
hasParts = true;
|
|
63947
63972
|
}
|
|
63948
63973
|
var styleForTop = style[prefix2 + "Top"];
|
|
63949
63974
|
if (styleForTop != null) {
|
|
63950
|
-
|
|
63975
|
+
result2.top = styleForTop;
|
|
63951
63976
|
hasParts = true;
|
|
63952
63977
|
}
|
|
63953
63978
|
}
|
|
63954
|
-
return hasParts ?
|
|
63979
|
+
return hasParts ? result2 : null;
|
|
63955
63980
|
}
|
|
63956
63981
|
function setupNativeStyleEditor_typeof(o) {
|
|
63957
63982
|
"@babel/helpers - typeof";
|
|
@@ -64308,10 +64333,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64308
64333
|
if (!hook.hasOwnProperty("resolveRNStyle")) {
|
|
64309
64334
|
Object.defineProperty(hook, "resolveRNStyle", {
|
|
64310
64335
|
enumerable: false,
|
|
64311
|
-
get: function
|
|
64336
|
+
get: function get2() {
|
|
64312
64337
|
return lazyResolveRNStyle;
|
|
64313
64338
|
},
|
|
64314
|
-
set: function
|
|
64339
|
+
set: function set3(value) {
|
|
64315
64340
|
lazyResolveRNStyle = value;
|
|
64316
64341
|
initAfterTick();
|
|
64317
64342
|
}
|
|
@@ -64320,10 +64345,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64320
64345
|
if (!hook.hasOwnProperty("nativeStyleEditorValidAttributes")) {
|
|
64321
64346
|
Object.defineProperty(hook, "nativeStyleEditorValidAttributes", {
|
|
64322
64347
|
enumerable: false,
|
|
64323
|
-
get: function
|
|
64348
|
+
get: function get2() {
|
|
64324
64349
|
return lazyNativeStyleEditorValidAttributes;
|
|
64325
64350
|
},
|
|
64326
|
-
set: function
|
|
64351
|
+
set: function set3(value) {
|
|
64327
64352
|
lazyNativeStyleEditorValidAttributes = value;
|
|
64328
64353
|
initAfterTick();
|
|
64329
64354
|
}
|
|
@@ -64621,7 +64646,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
64621
64646
|
}
|
|
64622
64647
|
let outdent = false;
|
|
64623
64648
|
let lastNonAtLine = null;
|
|
64624
|
-
const
|
|
64649
|
+
const result2 = [];
|
|
64625
64650
|
stack.forEach((st) => {
|
|
64626
64651
|
st = st.replace(/\\/g, "/");
|
|
64627
64652
|
if (this._internals.some((internal) => internal.test(st))) {
|
|
@@ -64640,17 +64665,17 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
64640
64665
|
if (st) {
|
|
64641
64666
|
if (isAtLine) {
|
|
64642
64667
|
if (lastNonAtLine) {
|
|
64643
|
-
|
|
64668
|
+
result2.push(lastNonAtLine);
|
|
64644
64669
|
lastNonAtLine = null;
|
|
64645
64670
|
}
|
|
64646
|
-
|
|
64671
|
+
result2.push(st);
|
|
64647
64672
|
} else {
|
|
64648
64673
|
outdent = true;
|
|
64649
64674
|
lastNonAtLine = st;
|
|
64650
64675
|
}
|
|
64651
64676
|
}
|
|
64652
64677
|
});
|
|
64653
|
-
return
|
|
64678
|
+
return result2.map((line) => `${indent}${line}
|
|
64654
64679
|
`).join("");
|
|
64655
64680
|
}
|
|
64656
64681
|
captureString(limit, fn = this.captureString) {
|
|
@@ -64744,7 +64769,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
64744
64769
|
const col = match[9];
|
|
64745
64770
|
const native = match[10] === "native";
|
|
64746
64771
|
const closeParen = match[11] === ")";
|
|
64747
|
-
let
|
|
64772
|
+
let method2;
|
|
64748
64773
|
const res = {};
|
|
64749
64774
|
if (lnum) {
|
|
64750
64775
|
res.line = Number(lnum);
|
|
@@ -64760,10 +64785,10 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
64760
64785
|
} else if (file2.charAt(i) === "(" && file2.charAt(i - 1) === " ") {
|
|
64761
64786
|
closes--;
|
|
64762
64787
|
if (closes === -1 && file2.charAt(i - 1) === " ") {
|
|
64763
|
-
const
|
|
64764
|
-
const
|
|
64765
|
-
file2 =
|
|
64766
|
-
fname += ` (${
|
|
64788
|
+
const before2 = file2.slice(0, i - 1);
|
|
64789
|
+
const after2 = file2.slice(i + 1);
|
|
64790
|
+
file2 = after2;
|
|
64791
|
+
fname += ` (${before2}`;
|
|
64767
64792
|
break;
|
|
64768
64793
|
}
|
|
64769
64794
|
}
|
|
@@ -64773,7 +64798,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
64773
64798
|
const methodMatch = fname.match(methodRe);
|
|
64774
64799
|
if (methodMatch) {
|
|
64775
64800
|
fname = methodMatch[1];
|
|
64776
|
-
|
|
64801
|
+
method2 = methodMatch[2];
|
|
64777
64802
|
}
|
|
64778
64803
|
}
|
|
64779
64804
|
setFile(res, file2, this._cwd);
|
|
@@ -64795,19 +64820,19 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
64795
64820
|
if (fname) {
|
|
64796
64821
|
res.function = fname;
|
|
64797
64822
|
}
|
|
64798
|
-
if (
|
|
64799
|
-
res.method =
|
|
64823
|
+
if (method2 && fname !== method2) {
|
|
64824
|
+
res.method = method2;
|
|
64800
64825
|
}
|
|
64801
64826
|
return res;
|
|
64802
64827
|
}
|
|
64803
64828
|
}
|
|
64804
|
-
function setFile(
|
|
64829
|
+
function setFile(result2, filename, cwd2) {
|
|
64805
64830
|
if (filename) {
|
|
64806
64831
|
filename = filename.replace(/\\/g, "/");
|
|
64807
64832
|
if (filename.startsWith(`${cwd2}/`)) {
|
|
64808
64833
|
filename = filename.slice(cwd2.length + 1);
|
|
64809
64834
|
}
|
|
64810
|
-
|
|
64835
|
+
result2.file = filename;
|
|
64811
64836
|
}
|
|
64812
64837
|
}
|
|
64813
64838
|
function ignoredPackagesRegExp(ignoredPackages) {
|
|
@@ -66627,16 +66652,16 @@ var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
|
66627
66652
|
validateChildKeys(children);
|
|
66628
66653
|
if (hasOwnProperty.call(config2, "key")) {
|
|
66629
66654
|
children = getComponentNameFromType(type);
|
|
66630
|
-
var
|
|
66655
|
+
var keys2 = Object.keys(config2).filter(function(k) {
|
|
66631
66656
|
return k !== "key";
|
|
66632
66657
|
});
|
|
66633
|
-
isStaticChildren = 0 <
|
|
66634
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (
|
|
66658
|
+
isStaticChildren = 0 < keys2.length ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
66659
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys2 = 0 < keys2.length ? "{" + keys2.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
66635
66660
|
let props = %s;
|
|
66636
66661
|
<%s {...props} />
|
|
66637
66662
|
React keys must be passed directly to JSX without using spread:
|
|
66638
66663
|
let props = %s;
|
|
66639
|
-
<%s key={someKey} {...props} />`, isStaticChildren, children,
|
|
66664
|
+
<%s key={someKey} {...props} />`, isStaticChildren, children, keys2, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
66640
66665
|
}
|
|
66641
66666
|
children = null;
|
|
66642
66667
|
maybeKey !== undefined && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
@@ -66689,7 +66714,7 @@ var require_jsx_dev_runtime = __commonJS((exports, module) => {
|
|
|
66689
66714
|
init_source();
|
|
66690
66715
|
import { existsSync as existsSync34, mkdirSync as mkdirSync6 } from "fs";
|
|
66691
66716
|
import { homedir as homedir10 } from "os";
|
|
66692
|
-
import { join as
|
|
66717
|
+
import { join as join54 } from "path";
|
|
66693
66718
|
|
|
66694
66719
|
// node_modules/commander/esm.mjs
|
|
66695
66720
|
var import__ = __toESM(require_commander(), 1);
|
|
@@ -67182,7 +67207,7 @@ init_test_strategy();
|
|
|
67182
67207
|
// src/context/generator.ts
|
|
67183
67208
|
init_path_security2();
|
|
67184
67209
|
import { existsSync as existsSync10, readFileSync } from "fs";
|
|
67185
|
-
import { join as join11 } from "path";
|
|
67210
|
+
import { join as join11, relative } from "path";
|
|
67186
67211
|
|
|
67187
67212
|
// src/context/injector.ts
|
|
67188
67213
|
import { existsSync as existsSync9 } from "fs";
|
|
@@ -67663,8 +67688,10 @@ async function discoverWorkspacePackages(repoRoot) {
|
|
|
67663
67688
|
}
|
|
67664
67689
|
return results.sort();
|
|
67665
67690
|
}
|
|
67666
|
-
async function generateForPackage(packageDir, config2, dryRun = false) {
|
|
67667
|
-
const
|
|
67691
|
+
async function generateForPackage(packageDir, config2, dryRun = false, repoRoot) {
|
|
67692
|
+
const resolvedRepoRoot = repoRoot ?? packageDir;
|
|
67693
|
+
const relativePkgPath = relative(resolvedRepoRoot, packageDir);
|
|
67694
|
+
const contextPath = join11(resolvedRepoRoot, ".nax", "mono", relativePkgPath, "context.md");
|
|
67668
67695
|
if (!existsSync10(contextPath)) {
|
|
67669
67696
|
return [
|
|
67670
67697
|
{
|
|
@@ -69580,7 +69607,7 @@ async function generateCommand(options) {
|
|
|
69580
69607
|
console.log(source_default.blue(`\u2192 Generating agent files for ${packages.length} package(s)...`));
|
|
69581
69608
|
let errorCount = 0;
|
|
69582
69609
|
for (const pkgDir of packages) {
|
|
69583
|
-
const results = await generateForPackage(pkgDir, config2, dryRun);
|
|
69610
|
+
const results = await generateForPackage(pkgDir, config2, dryRun, workdir);
|
|
69584
69611
|
for (const result of results) {
|
|
69585
69612
|
if (result.error) {
|
|
69586
69613
|
console.error(source_default.red(`\u2717 ${pkgDir}: ${result.error}`));
|
|
@@ -69604,7 +69631,7 @@ async function generateCommand(options) {
|
|
|
69604
69631
|
console.log(source_default.yellow("\u26A0 Dry run \u2014 no files will be written"));
|
|
69605
69632
|
}
|
|
69606
69633
|
console.log(source_default.blue(`\u2192 Generating agent files for package: ${options.package}`));
|
|
69607
|
-
const pkgResults = await generateForPackage(packageDir, config2, dryRun);
|
|
69634
|
+
const pkgResults = await generateForPackage(packageDir, config2, dryRun, workdir);
|
|
69608
69635
|
let pkgHasError = false;
|
|
69609
69636
|
for (const result of pkgResults) {
|
|
69610
69637
|
if (result.error) {
|
|
@@ -69693,7 +69720,7 @@ async function generateCommand(options) {
|
|
|
69693
69720
|
\u2192 Discovered ${packages.length} package(s) with context.md \u2014 generating agent files...`));
|
|
69694
69721
|
let pkgErrorCount = 0;
|
|
69695
69722
|
for (const pkgDir of packages) {
|
|
69696
|
-
const pkgResults = await generateForPackage(pkgDir, config2, dryRun);
|
|
69723
|
+
const pkgResults = await generateForPackage(pkgDir, config2, dryRun, workdir);
|
|
69697
69724
|
for (const result of pkgResults) {
|
|
69698
69725
|
if (result.error) {
|
|
69699
69726
|
console.error(source_default.red(`\u2717 ${pkgDir}: ${result.error}`));
|
|
@@ -71193,7 +71220,6 @@ import process14 from "process";
|
|
|
71193
71220
|
// node_modules/ink/build/ink.js
|
|
71194
71221
|
var import_react15 = __toESM(require_react(), 1);
|
|
71195
71222
|
import process13 from "process";
|
|
71196
|
-
|
|
71197
71223
|
// node_modules/es-toolkit/dist/function/debounce.mjs
|
|
71198
71224
|
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
71199
71225
|
let pendingThis = undefined;
|
|
@@ -71527,7 +71553,7 @@ var getAllProperties = (object2) => {
|
|
|
71527
71553
|
return properties;
|
|
71528
71554
|
};
|
|
71529
71555
|
function autoBind(self2, { include, exclude } = {}) {
|
|
71530
|
-
const
|
|
71556
|
+
const filter2 = (key) => {
|
|
71531
71557
|
const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
71532
71558
|
if (include) {
|
|
71533
71559
|
return include.some(match);
|
|
@@ -71538,7 +71564,7 @@ function autoBind(self2, { include, exclude } = {}) {
|
|
|
71538
71564
|
return true;
|
|
71539
71565
|
};
|
|
71540
71566
|
for (const [object2, key] of getAllProperties(self2.constructor.prototype)) {
|
|
71541
|
-
if (key === "constructor" || !
|
|
71567
|
+
if (key === "constructor" || !filter2(key)) {
|
|
71542
71568
|
continue;
|
|
71543
71569
|
}
|
|
71544
71570
|
const descriptor = Reflect.getOwnPropertyDescriptor(object2, key);
|
|
@@ -71585,13 +71611,13 @@ var patchConsole = (callback) => {
|
|
|
71585
71611
|
callback("stderr", data);
|
|
71586
71612
|
};
|
|
71587
71613
|
const internalConsole = new console.Console(stdout, stderr);
|
|
71588
|
-
for (const
|
|
71589
|
-
originalMethods[
|
|
71590
|
-
console[
|
|
71614
|
+
for (const method2 of consoleMethods) {
|
|
71615
|
+
originalMethods[method2] = console[method2];
|
|
71616
|
+
console[method2] = internalConsole[method2];
|
|
71591
71617
|
}
|
|
71592
71618
|
return () => {
|
|
71593
|
-
for (const
|
|
71594
|
-
console[
|
|
71619
|
+
for (const method2 of consoleMethods) {
|
|
71620
|
+
console[method2] = originalMethods[method2];
|
|
71595
71621
|
}
|
|
71596
71622
|
originalMethods = {};
|
|
71597
71623
|
};
|
|
@@ -73419,11 +73445,11 @@ function assembleStyles2() {
|
|
|
73419
73445
|
},
|
|
73420
73446
|
hexToRgb: {
|
|
73421
73447
|
value(hex3) {
|
|
73422
|
-
const
|
|
73423
|
-
if (!
|
|
73448
|
+
const matches2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex3.toString(16));
|
|
73449
|
+
if (!matches2) {
|
|
73424
73450
|
return [0, 0, 0];
|
|
73425
73451
|
}
|
|
73426
|
-
let [colorString] =
|
|
73452
|
+
let [colorString] = matches2;
|
|
73427
73453
|
if (colorString.length === 3) {
|
|
73428
73454
|
colorString = [...colorString].map((character) => character + character).join("");
|
|
73429
73455
|
}
|
|
@@ -73466,11 +73492,11 @@ function assembleStyles2() {
|
|
|
73466
73492
|
if (value === 0) {
|
|
73467
73493
|
return 30;
|
|
73468
73494
|
}
|
|
73469
|
-
let
|
|
73495
|
+
let result2 = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
73470
73496
|
if (value === 2) {
|
|
73471
|
-
|
|
73497
|
+
result2 += 60;
|
|
73472
73498
|
}
|
|
73473
|
-
return
|
|
73499
|
+
return result2;
|
|
73474
73500
|
},
|
|
73475
73501
|
enumerable: false
|
|
73476
73502
|
},
|
|
@@ -73542,18 +73568,18 @@ var wrapWord = (rows, word, columns) => {
|
|
|
73542
73568
|
}
|
|
73543
73569
|
};
|
|
73544
73570
|
var stringVisibleTrimSpacesRight = (string4) => {
|
|
73545
|
-
const
|
|
73546
|
-
let
|
|
73547
|
-
while (
|
|
73548
|
-
if (stringWidth(
|
|
73571
|
+
const words2 = string4.split(" ");
|
|
73572
|
+
let last2 = words2.length;
|
|
73573
|
+
while (last2 > 0) {
|
|
73574
|
+
if (stringWidth(words2[last2 - 1]) > 0) {
|
|
73549
73575
|
break;
|
|
73550
73576
|
}
|
|
73551
|
-
|
|
73577
|
+
last2--;
|
|
73552
73578
|
}
|
|
73553
|
-
if (
|
|
73579
|
+
if (last2 === words2.length) {
|
|
73554
73580
|
return string4;
|
|
73555
73581
|
}
|
|
73556
|
-
return
|
|
73582
|
+
return words2.slice(0, last2).join(" ") + words2.slice(last2).join("");
|
|
73557
73583
|
};
|
|
73558
73584
|
var exec = (string4, columns, options = {}) => {
|
|
73559
73585
|
if (options.trim !== false && string4.trim() === "") {
|
|
@@ -73664,12 +73690,12 @@ var exec2 = (command, arguments_, { shell, env: env3 } = {}) => execFileSync(com
|
|
|
73664
73690
|
shell,
|
|
73665
73691
|
env: env3
|
|
73666
73692
|
}).trim();
|
|
73667
|
-
var
|
|
73693
|
+
var create2 = (columns, rows) => ({
|
|
73668
73694
|
columns: Number.parseInt(columns, 10),
|
|
73669
73695
|
rows: Number.parseInt(rows, 10)
|
|
73670
73696
|
});
|
|
73671
73697
|
var createIfNotDefault = (maybeColumns, maybeRows) => {
|
|
73672
|
-
const { columns, rows } =
|
|
73698
|
+
const { columns, rows } = create2(maybeColumns, maybeRows);
|
|
73673
73699
|
if (Number.isNaN(columns) || Number.isNaN(rows)) {
|
|
73674
73700
|
return;
|
|
73675
73701
|
}
|
|
@@ -73705,13 +73731,13 @@ var isForegroundProcess = () => {
|
|
|
73705
73731
|
function terminalSize() {
|
|
73706
73732
|
const { env: env3, stdout, stderr } = process5;
|
|
73707
73733
|
if (stdout?.columns && stdout?.rows) {
|
|
73708
|
-
return
|
|
73734
|
+
return create2(stdout.columns, stdout.rows);
|
|
73709
73735
|
}
|
|
73710
73736
|
if (stderr?.columns && stderr?.rows) {
|
|
73711
|
-
return
|
|
73737
|
+
return create2(stderr.columns, stderr.rows);
|
|
73712
73738
|
}
|
|
73713
73739
|
if (env3.COLUMNS && env3.LINES) {
|
|
73714
|
-
return
|
|
73740
|
+
return create2(env3.COLUMNS, env3.LINES);
|
|
73715
73741
|
}
|
|
73716
73742
|
const fallback = {
|
|
73717
73743
|
columns: defaultColumns,
|
|
@@ -73746,9 +73772,9 @@ var resize = () => {
|
|
|
73746
73772
|
if (!isForegroundProcess()) {
|
|
73747
73773
|
return;
|
|
73748
73774
|
}
|
|
73749
|
-
const
|
|
73750
|
-
if (
|
|
73751
|
-
return createIfNotDefault(
|
|
73775
|
+
const size2 = exec2("resize", ["-u"]).match(/\d+/g);
|
|
73776
|
+
if (size2.length === 2) {
|
|
73777
|
+
return createIfNotDefault(size2[0], size2[1]);
|
|
73752
73778
|
}
|
|
73753
73779
|
} catch {}
|
|
73754
73780
|
};
|
|
@@ -74522,26 +74548,26 @@ $ npm install --save-dev react-devtools-core
|
|
|
74522
74548
|
}
|
|
74523
74549
|
}
|
|
74524
74550
|
}
|
|
74525
|
-
var diff = (
|
|
74526
|
-
if (
|
|
74551
|
+
var diff = (before2, after2) => {
|
|
74552
|
+
if (before2 === after2) {
|
|
74527
74553
|
return;
|
|
74528
74554
|
}
|
|
74529
|
-
if (!
|
|
74530
|
-
return
|
|
74555
|
+
if (!before2) {
|
|
74556
|
+
return after2;
|
|
74531
74557
|
}
|
|
74532
74558
|
const changed = {};
|
|
74533
74559
|
let isChanged = false;
|
|
74534
|
-
for (const key of Object.keys(
|
|
74535
|
-
const isDeleted =
|
|
74560
|
+
for (const key of Object.keys(before2)) {
|
|
74561
|
+
const isDeleted = after2 ? !Object.hasOwn(after2, key) : true;
|
|
74536
74562
|
if (isDeleted) {
|
|
74537
74563
|
changed[key] = undefined;
|
|
74538
74564
|
isChanged = true;
|
|
74539
74565
|
}
|
|
74540
74566
|
}
|
|
74541
|
-
if (
|
|
74542
|
-
for (const key of Object.keys(
|
|
74543
|
-
if (
|
|
74544
|
-
changed[key] =
|
|
74567
|
+
if (after2) {
|
|
74568
|
+
for (const key of Object.keys(after2)) {
|
|
74569
|
+
if (after2[key] !== before2[key]) {
|
|
74570
|
+
changed[key] = after2[key];
|
|
74545
74571
|
isChanged = true;
|
|
74546
74572
|
}
|
|
74547
74573
|
}
|
|
@@ -74799,21 +74825,21 @@ var colorize = (str, color, type) => {
|
|
|
74799
74825
|
return type === "foreground" ? source_default.hex(color)(str) : source_default.bgHex(color)(str);
|
|
74800
74826
|
}
|
|
74801
74827
|
if (color.startsWith("ansi256")) {
|
|
74802
|
-
const
|
|
74803
|
-
if (!
|
|
74828
|
+
const matches2 = ansiRegex2.exec(color);
|
|
74829
|
+
if (!matches2) {
|
|
74804
74830
|
return str;
|
|
74805
74831
|
}
|
|
74806
|
-
const value = Number(
|
|
74832
|
+
const value = Number(matches2[1]);
|
|
74807
74833
|
return type === "foreground" ? source_default.ansi256(value)(str) : source_default.bgAnsi256(value)(str);
|
|
74808
74834
|
}
|
|
74809
74835
|
if (color.startsWith("rgb")) {
|
|
74810
|
-
const
|
|
74811
|
-
if (!
|
|
74836
|
+
const matches2 = rgbRegex.exec(color);
|
|
74837
|
+
if (!matches2) {
|
|
74812
74838
|
return str;
|
|
74813
74839
|
}
|
|
74814
|
-
const firstValue = Number(
|
|
74815
|
-
const secondValue = Number(
|
|
74816
|
-
const thirdValue = Number(
|
|
74840
|
+
const firstValue = Number(matches2[1]);
|
|
74841
|
+
const secondValue = Number(matches2[2]);
|
|
74842
|
+
const thirdValue = Number(matches2[3]);
|
|
74817
74843
|
return type === "foreground" ? source_default.rgb(firstValue, secondValue, thirdValue)(str) : source_default.bgRgb(firstValue, secondValue, thirdValue)(str);
|
|
74818
74844
|
}
|
|
74819
74845
|
return str;
|
|
@@ -75748,13 +75774,13 @@ var createIncremental = (stream, { showCursor = false } = {}) => {
|
|
|
75748
75774
|
render.willRender = (str) => hasChanges(str, getActiveCursor());
|
|
75749
75775
|
return render;
|
|
75750
75776
|
};
|
|
75751
|
-
var
|
|
75777
|
+
var create3 = (stream, { showCursor = false, incremental = false } = {}) => {
|
|
75752
75778
|
if (incremental) {
|
|
75753
75779
|
return createIncremental(stream, { showCursor });
|
|
75754
75780
|
}
|
|
75755
75781
|
return createStandard(stream, { showCursor });
|
|
75756
75782
|
};
|
|
75757
|
-
var logUpdate = { create:
|
|
75783
|
+
var logUpdate = { create: create3 };
|
|
75758
75784
|
var log_update_default = logUpdate;
|
|
75759
75785
|
|
|
75760
75786
|
// node_modules/ink/build/write-synchronized.js
|
|
@@ -75858,9 +75884,9 @@ var dist_default2 = convertToSpaces;
|
|
|
75858
75884
|
// node_modules/code-excerpt/dist/index.js
|
|
75859
75885
|
var generateLineNumbers = (line, around) => {
|
|
75860
75886
|
const lineNumbers = [];
|
|
75861
|
-
const
|
|
75862
|
-
const
|
|
75863
|
-
for (let lineNumber =
|
|
75887
|
+
const min2 = line - around;
|
|
75888
|
+
const max2 = line + around;
|
|
75889
|
+
for (let lineNumber = min2;lineNumber <= max2; lineNumber++) {
|
|
75864
75890
|
lineNumbers.push(lineNumber);
|
|
75865
75891
|
}
|
|
75866
75892
|
return lineNumbers;
|
|
@@ -75925,14 +75951,14 @@ var Box_default = Box;
|
|
|
75925
75951
|
// node_modules/ink/build/components/Text.js
|
|
75926
75952
|
init_source();
|
|
75927
75953
|
var import_react11 = __toESM(require_react(), 1);
|
|
75928
|
-
function Text({ color, backgroundColor, dimColor = false, bold = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = false }) {
|
|
75954
|
+
function Text({ color, backgroundColor, dimColor = false, bold = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap: wrap2 = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = false }) {
|
|
75929
75955
|
const { isScreenReaderEnabled } = import_react11.useContext(accessibilityContext);
|
|
75930
75956
|
const inheritedBackgroundColor = import_react11.useContext(backgroundContext);
|
|
75931
75957
|
const childrenOrAriaLabel = isScreenReaderEnabled && ariaLabel ? ariaLabel : children;
|
|
75932
75958
|
if (childrenOrAriaLabel === undefined || childrenOrAriaLabel === null) {
|
|
75933
75959
|
return null;
|
|
75934
75960
|
}
|
|
75935
|
-
const
|
|
75961
|
+
const transform3 = (children2) => {
|
|
75936
75962
|
if (dimColor) {
|
|
75937
75963
|
children2 = source_default.dim(children2);
|
|
75938
75964
|
}
|
|
@@ -75963,7 +75989,7 @@ function Text({ color, backgroundColor, dimColor = false, bold = false, italic =
|
|
|
75963
75989
|
if (isScreenReaderEnabled && ariaHidden) {
|
|
75964
75990
|
return null;
|
|
75965
75991
|
}
|
|
75966
|
-
return import_react11.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap:
|
|
75992
|
+
return import_react11.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap2 }, internal_transform: transform3 }, isScreenReaderEnabled && ariaLabel ? ariaLabel : children);
|
|
75967
75993
|
}
|
|
75968
75994
|
|
|
75969
75995
|
// node_modules/ink/build/components/ErrorOverview.js
|
|
@@ -76023,7 +76049,7 @@ class ErrorBoundary extends import_react13.PureComponent {
|
|
|
76023
76049
|
// node_modules/ink/build/components/App.js
|
|
76024
76050
|
var tab = "\t";
|
|
76025
76051
|
var shiftTab = "\x1B[Z";
|
|
76026
|
-
var
|
|
76052
|
+
var escape2 = "\x1B";
|
|
76027
76053
|
function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, exitOnCtrlC, onExit, setCursorPosition }) {
|
|
76028
76054
|
const [isFocusEnabled, setIsFocusEnabled] = import_react14.useState(true);
|
|
76029
76055
|
const [activeFocusId, setActiveFocusId] = import_react14.useState(undefined);
|
|
@@ -76051,7 +76077,7 @@ function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, ex
|
|
|
76051
76077
|
handleExit();
|
|
76052
76078
|
return;
|
|
76053
76079
|
}
|
|
76054
|
-
if (input ===
|
|
76080
|
+
if (input === escape2) {
|
|
76055
76081
|
setActiveFocusId((currentActiveFocusId) => {
|
|
76056
76082
|
if (currentActiveFocusId) {
|
|
76057
76083
|
return;
|
|
@@ -76061,10 +76087,10 @@ function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, ex
|
|
|
76061
76087
|
}
|
|
76062
76088
|
}, [exitOnCtrlC, handleExit]);
|
|
76063
76089
|
const handleReadable = import_react14.useCallback(() => {
|
|
76064
|
-
let
|
|
76065
|
-
while ((
|
|
76066
|
-
handleInput(
|
|
76067
|
-
internal_eventEmitter.current.emit("input",
|
|
76090
|
+
let chunk2;
|
|
76091
|
+
while ((chunk2 = stdin.read()) !== null) {
|
|
76092
|
+
handleInput(chunk2);
|
|
76093
|
+
internal_eventEmitter.current.emit("input", chunk2);
|
|
76068
76094
|
}
|
|
76069
76095
|
}, [stdin, handleInput]);
|
|
76070
76096
|
const handleSetRawMode = import_react14.useCallback((isEnabled) => {
|
|
@@ -76307,11 +76333,11 @@ var kittyFlags = {
|
|
|
76307
76333
|
reportAssociatedText: 16
|
|
76308
76334
|
};
|
|
76309
76335
|
function resolveFlags(flags) {
|
|
76310
|
-
let
|
|
76336
|
+
let result2 = 0;
|
|
76311
76337
|
for (const flag of flags) {
|
|
76312
|
-
|
|
76338
|
+
result2 |= kittyFlags[flag];
|
|
76313
76339
|
}
|
|
76314
|
-
return
|
|
76340
|
+
return result2;
|
|
76315
76341
|
}
|
|
76316
76342
|
var kittyModifiers = {
|
|
76317
76343
|
shift: 1,
|
|
@@ -76325,7 +76351,7 @@ var kittyModifiers = {
|
|
|
76325
76351
|
};
|
|
76326
76352
|
|
|
76327
76353
|
// node_modules/ink/build/ink.js
|
|
76328
|
-
var
|
|
76354
|
+
var noop2 = () => {};
|
|
76329
76355
|
|
|
76330
76356
|
class Ink {
|
|
76331
76357
|
isConcurrent;
|
|
@@ -76420,8 +76446,8 @@ class Ink {
|
|
|
76420
76446
|
if (this.options.stdout.columns) {
|
|
76421
76447
|
return this.options.stdout.columns;
|
|
76422
76448
|
}
|
|
76423
|
-
const
|
|
76424
|
-
return
|
|
76449
|
+
const size2 = terminalSize();
|
|
76450
|
+
return size2?.columns ?? 80;
|
|
76425
76451
|
};
|
|
76426
76452
|
resized = () => {
|
|
76427
76453
|
const currentWidth = this.getTerminalWidth();
|
|
@@ -76555,9 +76581,9 @@ class Ink {
|
|
|
76555
76581
|
render(node) {
|
|
76556
76582
|
const tree = import_react15.default.createElement(accessibilityContext.Provider, { value: { isScreenReaderEnabled: this.isScreenReaderEnabled } }, import_react15.default.createElement(App_default, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, exitOnCtrlC: this.options.exitOnCtrlC, writeToStdout: this.writeToStdout, writeToStderr: this.writeToStderr, setCursorPosition: this.setCursorPosition, onExit: this.unmount }, node));
|
|
76557
76583
|
if (this.options.concurrent) {
|
|
76558
|
-
reconciler_default.updateContainer(tree, this.container, null,
|
|
76584
|
+
reconciler_default.updateContainer(tree, this.container, null, noop2);
|
|
76559
76585
|
} else {
|
|
76560
|
-
reconciler_default.updateContainerSync(tree, this.container, null,
|
|
76586
|
+
reconciler_default.updateContainerSync(tree, this.container, null, noop2);
|
|
76561
76587
|
reconciler_default.flushSyncWork();
|
|
76562
76588
|
}
|
|
76563
76589
|
}
|
|
@@ -76649,9 +76675,9 @@ class Ink {
|
|
|
76649
76675
|
}
|
|
76650
76676
|
this.isUnmounted = true;
|
|
76651
76677
|
if (this.options.concurrent) {
|
|
76652
|
-
reconciler_default.updateContainer(null, this.container, null,
|
|
76678
|
+
reconciler_default.updateContainer(null, this.container, null, noop2);
|
|
76653
76679
|
} else {
|
|
76654
|
-
reconciler_default.updateContainerSync(null, this.container, null,
|
|
76680
|
+
reconciler_default.updateContainerSync(null, this.container, null, noop2);
|
|
76655
76681
|
reconciler_default.flushSyncWork();
|
|
76656
76682
|
}
|
|
76657
76683
|
instances_default.delete(this.options.stdout);
|
|
@@ -76672,9 +76698,9 @@ class Ink {
|
|
|
76672
76698
|
}
|
|
76673
76699
|
}
|
|
76674
76700
|
async waitUntilExit() {
|
|
76675
|
-
this.exitPromise ||= new Promise((resolve9,
|
|
76701
|
+
this.exitPromise ||= new Promise((resolve9, reject2) => {
|
|
76676
76702
|
this.resolveExitPromise = resolve9;
|
|
76677
|
-
this.rejectExitPromise =
|
|
76703
|
+
this.rejectExitPromise = reject2;
|
|
76678
76704
|
});
|
|
76679
76705
|
if (!this.beforeExitHandler) {
|
|
76680
76706
|
this.beforeExitHandler = () => {
|
|
@@ -77843,8 +77869,8 @@ function formatElapsedTime(ms) {
|
|
|
77843
77869
|
const seconds = totalSeconds % 60;
|
|
77844
77870
|
return `${minutes}m ${seconds}s`;
|
|
77845
77871
|
}
|
|
77846
|
-
function StoriesPanel({ stories, totalCost, elapsedMs, width, compact = false, maxHeight }) {
|
|
77847
|
-
const maxVisible =
|
|
77872
|
+
function StoriesPanel({ stories, totalCost, elapsedMs, width, compact: compact2 = false, maxHeight }) {
|
|
77873
|
+
const maxVisible = compact2 ? COMPACT_MAX_VISIBLE_STORIES : MAX_VISIBLE_STORIES;
|
|
77848
77874
|
const needsScrolling = stories.length > maxVisible;
|
|
77849
77875
|
const [scrollOffset, setScrollOffset] = import_react31.useState(0);
|
|
77850
77876
|
import_react31.useEffect(() => {
|
|
@@ -77905,7 +77931,7 @@ function StoriesPanel({ stories, totalCost, elapsedMs, width, compact = false, m
|
|
|
77905
77931
|
flexGrow: 1,
|
|
77906
77932
|
children: visibleStories.map((s) => {
|
|
77907
77933
|
const icon = getStatusIcon(s.status);
|
|
77908
|
-
if (
|
|
77934
|
+
if (compact2) {
|
|
77909
77935
|
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Box_default, {
|
|
77910
77936
|
children: /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Text, {
|
|
77911
77937
|
children: [
|
|
@@ -77951,7 +77977,7 @@ function StoriesPanel({ stories, totalCost, elapsedMs, width, compact = false, m
|
|
|
77951
77977
|
borderTop: true,
|
|
77952
77978
|
borderColor: "gray",
|
|
77953
77979
|
children: [
|
|
77954
|
-
!
|
|
77980
|
+
!compact2 && /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(jsx_dev_runtime5.Fragment, {
|
|
77955
77981
|
children: [
|
|
77956
77982
|
/* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Text, {
|
|
77957
77983
|
children: [
|
|
@@ -77976,7 +78002,7 @@ function StoriesPanel({ stories, totalCost, elapsedMs, width, compact = false, m
|
|
|
77976
78002
|
}, undefined, true, undefined, this)
|
|
77977
78003
|
]
|
|
77978
78004
|
}, undefined, true, undefined, this),
|
|
77979
|
-
|
|
78005
|
+
compact2 && /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Text, {
|
|
77980
78006
|
children: [
|
|
77981
78007
|
"$",
|
|
77982
78008
|
totalCost.toFixed(2),
|
|
@@ -78080,27 +78106,27 @@ function usePipelineEvents(events, initialStories) {
|
|
|
78080
78106
|
stories: prev.stories.map((s) => s.story.id === story.id ? { ...s, status: "running" } : s)
|
|
78081
78107
|
}));
|
|
78082
78108
|
};
|
|
78083
|
-
const onStoryComplete = (story,
|
|
78109
|
+
const onStoryComplete = (story, result2) => {
|
|
78084
78110
|
stopTimer();
|
|
78085
78111
|
setState((prev) => {
|
|
78086
78112
|
const newStories = prev.stories.map((s) => {
|
|
78087
78113
|
if (s.story.id === story.id) {
|
|
78088
78114
|
let status = "pending";
|
|
78089
|
-
if (
|
|
78115
|
+
if (result2.action === "continue") {
|
|
78090
78116
|
status = "passed";
|
|
78091
|
-
} else if (
|
|
78117
|
+
} else if (result2.action === "fail") {
|
|
78092
78118
|
status = "failed";
|
|
78093
|
-
} else if (
|
|
78119
|
+
} else if (result2.action === "skip") {
|
|
78094
78120
|
status = "skipped";
|
|
78095
|
-
} else if (
|
|
78121
|
+
} else if (result2.action === "pause") {
|
|
78096
78122
|
status = "paused";
|
|
78097
78123
|
}
|
|
78098
|
-
const storyCost = (s.cost || 0) + (
|
|
78124
|
+
const storyCost = (s.cost || 0) + (result2.cost || 0);
|
|
78099
78125
|
return { ...s, status, cost: storyCost };
|
|
78100
78126
|
}
|
|
78101
78127
|
return s;
|
|
78102
78128
|
});
|
|
78103
|
-
const totalCost = newStories.reduce((
|
|
78129
|
+
const totalCost = newStories.reduce((sum2, s) => sum2 + (s.cost || 0), 0);
|
|
78104
78130
|
return {
|
|
78105
78131
|
...prev,
|
|
78106
78132
|
stories: newStories,
|
|
@@ -78175,8 +78201,8 @@ function usePty(options) {
|
|
|
78175
78201
|
setState((prev) => ({ ...prev, isRunning: true }));
|
|
78176
78202
|
(async () => {
|
|
78177
78203
|
let currentLine = "";
|
|
78178
|
-
for await (const
|
|
78179
|
-
const data = Buffer.from(
|
|
78204
|
+
for await (const chunk2 of proc.stdout) {
|
|
78205
|
+
const data = Buffer.from(chunk2).toString();
|
|
78180
78206
|
const lines = (currentLine + data).split(`
|
|
78181
78207
|
`);
|
|
78182
78208
|
currentLine = lines.pop() || "";
|
|
@@ -78529,15 +78555,15 @@ Next: nax generate --package ${options.package}`));
|
|
|
78529
78555
|
}
|
|
78530
78556
|
return;
|
|
78531
78557
|
}
|
|
78532
|
-
const naxDir =
|
|
78558
|
+
const naxDir = join54(workdir, "nax");
|
|
78533
78559
|
if (existsSync34(naxDir) && !options.force) {
|
|
78534
78560
|
console.log(source_default.yellow("nax already initialized. Use --force to overwrite."));
|
|
78535
78561
|
return;
|
|
78536
78562
|
}
|
|
78537
|
-
mkdirSync6(
|
|
78538
|
-
mkdirSync6(
|
|
78539
|
-
await Bun.write(
|
|
78540
|
-
await Bun.write(
|
|
78563
|
+
mkdirSync6(join54(naxDir, "features"), { recursive: true });
|
|
78564
|
+
mkdirSync6(join54(naxDir, "hooks"), { recursive: true });
|
|
78565
|
+
await Bun.write(join54(naxDir, "config.json"), JSON.stringify(DEFAULT_CONFIG, null, 2));
|
|
78566
|
+
await Bun.write(join54(naxDir, "hooks.json"), JSON.stringify({
|
|
78541
78567
|
hooks: {
|
|
78542
78568
|
"on-start": { command: 'echo "nax started: $NAX_FEATURE"', enabled: false },
|
|
78543
78569
|
"on-complete": { command: 'echo "nax complete: $NAX_FEATURE"', enabled: false },
|
|
@@ -78545,12 +78571,12 @@ Next: nax generate --package ${options.package}`));
|
|
|
78545
78571
|
"on-error": { command: 'echo "nax error: $NAX_REASON"', enabled: false }
|
|
78546
78572
|
}
|
|
78547
78573
|
}, null, 2));
|
|
78548
|
-
await Bun.write(
|
|
78574
|
+
await Bun.write(join54(naxDir, ".gitignore"), `# nax temp files
|
|
78549
78575
|
*.tmp
|
|
78550
78576
|
.paused.json
|
|
78551
78577
|
.nax-verifier-verdict.json
|
|
78552
78578
|
`);
|
|
78553
|
-
await Bun.write(
|
|
78579
|
+
await Bun.write(join54(naxDir, "context.md"), `# Project Context
|
|
78554
78580
|
|
|
78555
78581
|
This document defines coding standards, architectural decisions, and forbidden patterns for this project.
|
|
78556
78582
|
Run \`nax generate\` to regenerate agent config files (CLAUDE.md, AGENTS.md, .cursorrules, etc.) from this file.
|
|
@@ -78676,8 +78702,8 @@ program2.command("run").description("Run the orchestration loop for a feature").
|
|
|
78676
78702
|
console.error(source_default.red("nax not initialized. Run: nax init"));
|
|
78677
78703
|
process.exit(1);
|
|
78678
78704
|
}
|
|
78679
|
-
const featureDir =
|
|
78680
|
-
const prdPath =
|
|
78705
|
+
const featureDir = join54(naxDir, "features", options.feature);
|
|
78706
|
+
const prdPath = join54(featureDir, "prd.json");
|
|
78681
78707
|
if (options.plan && options.from) {
|
|
78682
78708
|
if (existsSync34(prdPath) && !options.force) {
|
|
78683
78709
|
console.error(source_default.red(`Error: prd.json already exists for feature "${options.feature}".`));
|
|
@@ -78699,10 +78725,10 @@ program2.command("run").description("Run the orchestration loop for a feature").
|
|
|
78699
78725
|
}
|
|
78700
78726
|
}
|
|
78701
78727
|
try {
|
|
78702
|
-
const planLogDir =
|
|
78728
|
+
const planLogDir = join54(featureDir, "plan");
|
|
78703
78729
|
mkdirSync6(planLogDir, { recursive: true });
|
|
78704
78730
|
const planLogId = new Date().toISOString().replace(/:/g, "-").replace(/\..+/, "");
|
|
78705
|
-
const planLogPath =
|
|
78731
|
+
const planLogPath = join54(planLogDir, `${planLogId}.jsonl`);
|
|
78706
78732
|
initLogger({ level: "info", filePath: planLogPath, useChalk: false, headless: true });
|
|
78707
78733
|
console.log(source_default.dim(` [Plan log: ${planLogPath}]`));
|
|
78708
78734
|
console.log(source_default.dim(" [Planning phase: generating PRD from spec]"));
|
|
@@ -78740,10 +78766,10 @@ program2.command("run").description("Run the orchestration loop for a feature").
|
|
|
78740
78766
|
process.exit(1);
|
|
78741
78767
|
}
|
|
78742
78768
|
resetLogger();
|
|
78743
|
-
const runsDir =
|
|
78769
|
+
const runsDir = join54(featureDir, "runs");
|
|
78744
78770
|
mkdirSync6(runsDir, { recursive: true });
|
|
78745
78771
|
const runId = new Date().toISOString().replace(/:/g, "-").replace(/\..+/, "");
|
|
78746
|
-
const logFilePath =
|
|
78772
|
+
const logFilePath = join54(runsDir, `${runId}.jsonl`);
|
|
78747
78773
|
const isTTY = process.stdout.isTTY ?? false;
|
|
78748
78774
|
const headlessFlag = options.headless ?? false;
|
|
78749
78775
|
const headlessEnv = process.env.NAX_HEADLESS === "1";
|
|
@@ -78759,7 +78785,7 @@ program2.command("run").description("Run the orchestration loop for a feature").
|
|
|
78759
78785
|
config2.autoMode.defaultAgent = options.agent;
|
|
78760
78786
|
}
|
|
78761
78787
|
config2.execution.maxIterations = Number.parseInt(options.maxIterations, 10);
|
|
78762
|
-
const globalNaxDir =
|
|
78788
|
+
const globalNaxDir = join54(homedir10(), ".nax");
|
|
78763
78789
|
const hooks = await loadHooksConfig(naxDir, globalNaxDir);
|
|
78764
78790
|
const eventEmitter = new PipelineEventEmitter;
|
|
78765
78791
|
let tuiInstance;
|
|
@@ -78782,7 +78808,7 @@ program2.command("run").description("Run the orchestration loop for a feature").
|
|
|
78782
78808
|
} else {
|
|
78783
78809
|
console.log(source_default.dim(" [Headless mode \u2014 pipe output]"));
|
|
78784
78810
|
}
|
|
78785
|
-
const statusFilePath =
|
|
78811
|
+
const statusFilePath = join54(workdir, "nax", "status.json");
|
|
78786
78812
|
let parallel;
|
|
78787
78813
|
if (options.parallel !== undefined) {
|
|
78788
78814
|
parallel = Number.parseInt(options.parallel, 10);
|
|
@@ -78791,7 +78817,7 @@ program2.command("run").description("Run the orchestration loop for a feature").
|
|
|
78791
78817
|
process.exit(1);
|
|
78792
78818
|
}
|
|
78793
78819
|
}
|
|
78794
|
-
const
|
|
78820
|
+
const result2 = await run({
|
|
78795
78821
|
prdPath,
|
|
78796
78822
|
workdir,
|
|
78797
78823
|
config: config2,
|
|
@@ -78808,7 +78834,7 @@ program2.command("run").description("Run the orchestration loop for a feature").
|
|
|
78808
78834
|
headless: useHeadless,
|
|
78809
78835
|
skipPrecheck: options.skipPrecheck ?? false
|
|
78810
78836
|
});
|
|
78811
|
-
const latestSymlink =
|
|
78837
|
+
const latestSymlink = join54(runsDir, "latest.jsonl");
|
|
78812
78838
|
try {
|
|
78813
78839
|
if (existsSync34(latestSymlink)) {
|
|
78814
78840
|
Bun.spawnSync(["rm", latestSymlink]);
|
|
@@ -78825,12 +78851,12 @@ program2.command("run").description("Run the orchestration loop for a feature").
|
|
|
78825
78851
|
if (useHeadless) {
|
|
78826
78852
|
console.log(source_default.dim(`
|
|
78827
78853
|
\u2500\u2500 Summary \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500`));
|
|
78828
|
-
console.log(source_default.dim(` Iterations: ${
|
|
78829
|
-
console.log(source_default.dim(` Completed: ${
|
|
78830
|
-
console.log(source_default.dim(` Cost: $${
|
|
78831
|
-
console.log(source_default.dim(` Duration: ${(
|
|
78854
|
+
console.log(source_default.dim(` Iterations: ${result2.iterations}`));
|
|
78855
|
+
console.log(source_default.dim(` Completed: ${result2.storiesCompleted}`));
|
|
78856
|
+
console.log(source_default.dim(` Cost: $${result2.totalCost.toFixed(4)}`));
|
|
78857
|
+
console.log(source_default.dim(` Duration: ${(result2.durationMs / 1000 / 60).toFixed(1)} min`));
|
|
78832
78858
|
}
|
|
78833
|
-
process.exit(
|
|
78859
|
+
process.exit(result2.success ? 0 : 1);
|
|
78834
78860
|
});
|
|
78835
78861
|
var features = program2.command("features").description("Manage features");
|
|
78836
78862
|
features.command("create <name>").description("Create a new feature").option("-d, --dir <path>", "Project directory", process.cwd()).action(async (name, options) => {
|
|
@@ -78846,9 +78872,9 @@ features.command("create <name>").description("Create a new feature").option("-d
|
|
|
78846
78872
|
console.error(source_default.red("nax not initialized. Run: nax init"));
|
|
78847
78873
|
process.exit(1);
|
|
78848
78874
|
}
|
|
78849
|
-
const featureDir =
|
|
78875
|
+
const featureDir = join54(naxDir, "features", name);
|
|
78850
78876
|
mkdirSync6(featureDir, { recursive: true });
|
|
78851
|
-
await Bun.write(
|
|
78877
|
+
await Bun.write(join54(featureDir, "spec.md"), `# Feature: ${name}
|
|
78852
78878
|
|
|
78853
78879
|
## Overview
|
|
78854
78880
|
|
|
@@ -78881,7 +78907,7 @@ features.command("create <name>").description("Create a new feature").option("-d
|
|
|
78881
78907
|
|
|
78882
78908
|
<!-- What this feature explicitly does NOT cover. -->
|
|
78883
78909
|
`);
|
|
78884
|
-
await Bun.write(
|
|
78910
|
+
await Bun.write(join54(featureDir, "progress.txt"), `# Progress: ${name}
|
|
78885
78911
|
|
|
78886
78912
|
Created: ${new Date().toISOString()}
|
|
78887
78913
|
|
|
@@ -78907,7 +78933,7 @@ features.command("list").description("List all features").option("-d, --dir <pat
|
|
|
78907
78933
|
console.error(source_default.red("nax not initialized."));
|
|
78908
78934
|
process.exit(1);
|
|
78909
78935
|
}
|
|
78910
|
-
const featuresDir =
|
|
78936
|
+
const featuresDir = join54(naxDir, "features");
|
|
78911
78937
|
if (!existsSync34(featuresDir)) {
|
|
78912
78938
|
console.log(source_default.dim("No features yet."));
|
|
78913
78939
|
return;
|
|
@@ -78922,7 +78948,7 @@ features.command("list").description("List all features").option("-d, --dir <pat
|
|
|
78922
78948
|
Features:
|
|
78923
78949
|
`));
|
|
78924
78950
|
for (const name of entries) {
|
|
78925
|
-
const prdPath =
|
|
78951
|
+
const prdPath = join54(featuresDir, name, "prd.json");
|
|
78926
78952
|
if (existsSync34(prdPath)) {
|
|
78927
78953
|
const prd = await loadPRD(prdPath);
|
|
78928
78954
|
const c = countStories(prd);
|
|
@@ -78953,10 +78979,10 @@ Use: nax plan -f <feature> --from <spec>`));
|
|
|
78953
78979
|
process.exit(1);
|
|
78954
78980
|
}
|
|
78955
78981
|
const config2 = await loadConfig(workdir);
|
|
78956
|
-
const featureLogDir =
|
|
78982
|
+
const featureLogDir = join54(naxDir, "features", options.feature, "plan");
|
|
78957
78983
|
mkdirSync6(featureLogDir, { recursive: true });
|
|
78958
78984
|
const planLogId = new Date().toISOString().replace(/:/g, "-").replace(/\..+/, "");
|
|
78959
|
-
const planLogPath =
|
|
78985
|
+
const planLogPath = join54(featureLogDir, `${planLogId}.jsonl`);
|
|
78960
78986
|
initLogger({ level: "info", filePath: planLogPath, useChalk: false, headless: true });
|
|
78961
78987
|
console.log(source_default.dim(` [Plan log: ${planLogPath}]`));
|
|
78962
78988
|
try {
|
|
@@ -78993,7 +79019,7 @@ program2.command("analyze").description("(deprecated) Parse spec.md into prd.jso
|
|
|
78993
79019
|
console.error(source_default.red("nax not initialized. Run: nax init"));
|
|
78994
79020
|
process.exit(1);
|
|
78995
79021
|
}
|
|
78996
|
-
const featureDir =
|
|
79022
|
+
const featureDir = join54(naxDir, "features", options.feature);
|
|
78997
79023
|
if (!existsSync34(featureDir)) {
|
|
78998
79024
|
console.error(source_default.red(`Feature "${options.feature}" not found.`));
|
|
78999
79025
|
process.exit(1);
|
|
@@ -79009,7 +79035,7 @@ program2.command("analyze").description("(deprecated) Parse spec.md into prd.jso
|
|
|
79009
79035
|
specPath: options.from,
|
|
79010
79036
|
reclassify: options.reclassify
|
|
79011
79037
|
});
|
|
79012
|
-
const prdPath =
|
|
79038
|
+
const prdPath = join54(featureDir, "prd.json");
|
|
79013
79039
|
await Bun.write(prdPath, JSON.stringify(prd, null, 2));
|
|
79014
79040
|
const c = countStories(prd);
|
|
79015
79041
|
console.log(source_default.green(`
|