@unotest/web 0.49.0 → 0.49.1
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 +92 -3
- package/bin/unotest-web.js +24 -8
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +8 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +8 -2
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +17 -2
- package/dist/inspection/page-inject.js +21 -0
- package/dist/{interfaces-CTMGjJIs.d.ts → interfaces-D5ePwBX6.d.ts} +13 -1
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +3 -2
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/dsl-reference.md +164 -16
- package/package.json +8 -8
- package/types/unotest-dsl.d.ts +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,94 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.49.1] - 2026-10-11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4897ede: A run of one test on a box:
|
|
8
|
+
|
|
9
|
+
- A test the file does not have is refused when the run is ordered, with the file's tests listed, the same refusal the viewer and `e2e --test` give. Before, the box accepted the run, it exited without a word and the notification said "tests failed". The check needs a bundle pushed with this version, since `bundle push` now lists each scenario file's tests in the bundle. An older bundle is not checked.
|
|
10
|
+
- `box runs`, `box run` and notifications name such a run `file › test`, as `bundle push --follow` already did. This also applies to a file with a single test, whose runs used to show only the file. `box queue` names a waiting or running run of one test the same way. `box run --json` and `box queue --json` gain a `test` field on those runs. A run of a whole file of several tests is named as before, and a file's notification series is the same whether a run played one of its tests or all of them.
|
|
11
|
+
|
|
12
|
+
- 4897ede: Box runs of one test: the box accepts a test name only as a scenario function is spelled (letters, digits, `_`, `$`, up to 128 characters) and refuses anything else before it reaches the queue; the box and the run sidecar check it by the same rule, so a name with Cyrillic letters or `$` is played instead of lost. `box queue`, `box runs` and `box run` print run labels with control characters shown as escapes, so a name written by an older box cannot drive the terminal.
|
|
13
|
+
- de529ab: A `const` assigned again (`K = 2` or `K++`) now fails the run at that line with the same message `lint` gives, as JavaScript does. Before, `lint` refused it but `e2e` and `run_test` ran the assignment and passed. `let` reassigns as before, and a `const` in a loop body is declared again on every pass.
|
|
14
|
+
- 4897ede: Scenarios can declare variables with `let` and `const`, and pass a lambda to four array methods. `let x = …` and `const x = …` work like the bare assignment, in the function's scope, and `for (let i = 0; …)` declares the loop variable; assigning a const again is a lint error (`const-assign`). At the top of a file a `const` holding a literal is visible in every function, as helper functions are. `a.filter(x => …)`, `a.map((x, i) => …)`, `a.find(x => …)` and `a.some(x => …)` take an expression or a block with `return`; the parameters live in their own scope and the body runs element by element. A lambda anywhere else is refused (`lambda-position`) — functions are not values — and `filter` with an options object is still the locator step. The viewer shows scenarios written with the new syntax.
|
|
15
|
+
- 4897ede: `lint` refuses a statement at the top level of a scenario or helper file, and the DSL's refusals of everyday JavaScript say what to write instead.
|
|
16
|
+
|
|
17
|
+
- Only function definitions run at the top level of a file. A statement there (`BASE = 'x'`, `const BASE = 'x'`, a call) was dropped without a word: `lint` passed and the test failed with `Variable "BASE" is not defined`. It is now `validator:unsupported-statement`, an error at its line, with the way out: a function that returns the value.
|
|
18
|
+
- `let x = 1` and `const x = 1` get the same answer as `var` ("use direct assignment") instead of `unexpected WORD`.
|
|
19
|
+
- An arrow with parameters (`a.map(x => x * 2)`), an arrow or a function as a value, a spread, `for…of` / `for…in`, `let` in a `for` loop, `n += 1`, `o.a = 2`, `try` / `throw` / `switch`, `typeof` and `?` (ternary, `?.`, `??`) each name the DSL way, at the token where parsing stops.
|
|
20
|
+
- `a[0] = 2` says to build a new array with `push`. `.includes()` on an array, at run time, says what an array answers.
|
|
21
|
+
- `pop`, `shift`, `unshift`, `splice`, `sort`, `reverse`, `find`, `some`, `every`, `reduce`, `Object.keys`, `Math.max` / `min` / `floor` / `ceil` and `indexOf` on an array are answered with what to write instead.
|
|
22
|
+
|
|
23
|
+
**Migration:** a file with a statement at its top level now fails `lint`. That statement never ran; move it into `test_*` or into a function.
|
|
24
|
+
|
|
25
|
+
- 4897ede: Scenarios can now write into arrays and sort them. `arr[i] = v` replaces an element (nested indexes and object keys too); an index past the end fails the step instead of leaving holes, and `arr[arr.length] = v` appends. The keys `__proto__`, `constructor` and `prototype` cannot be assigned, and an index read on an object returns its own keys only, so a scenario cannot reach a shared prototype. `arr.sortBy(key?, {desc?})` sorts an array in place by an object field, or by the values themselves without a key; the sort is stable and the values must be all numbers or all strings. The linter's hint for `a.sort()` now points to `sortBy`, and its message for a non-list `assertTexts` argument names it `expected`, as the docs do.
|
|
26
|
+
- 4897ede: `&&` and `||` in scenarios now short-circuit as in JavaScript: the right side is not evaluated once the left one decides the result. A null guard such as `x != null && x.a == 1` no longer fails with "Property access on non-object value" when `x` is null, including inside `waitUntil`. The result stays a boolean.
|
|
27
|
+
- 4897ede: The expected value of `assertTexts`, `assertText` and other assertions can now be any expression of the right kind: a variable holding a list, an index read such as `labels[i]`, or a helper's result. Previously the linter accepted only an array literal for `assertTexts` and rejected `arr[i]` as a text. A value known to be the wrong kind is still refused with the argument's name; anything else is checked when the step runs.
|
|
28
|
+
- 4897ede: Strings answer `s.split(separator)`, which returns an array of strings as in JavaScript: `"a, b".split(", ")` gives `["a", "b"]`, the parts keep their spaces, and a separator that is not there gives the whole string as the one part. The linter's hint for `split` no longer points to a shell script.
|
|
29
|
+
- 4897ede: `@expect-fail` covers a test that fails, not a script that breaks: a marked test that errors (an unknown function, a typo) is reported as errored and turns the collection red, instead of counting as failed on purpose.
|
|
30
|
+
- 5319d32: A file of several tests whose only failure is marked `@expect-fail` now reads as failed on purpose on its own line too, under `bundle push --follow` and in the run index, instead of a red `failed` above the collection's green verdict.
|
|
31
|
+
- 4897ede: `// @expect-fail` now reaches the runner, not only the viewer. A marked test that fails is reported as failed on purpose in `e2e` and in a collection (`N of M failed on purpose`, `expected=N` in the summary), and every `test_*` of a file whose leading comments carry the marker is marked. A collection whose only failures are on purpose exits 0; `e2e` of such a test still exits 1. A marked test that passes now fails with a message saying the failure it expects is gone. The run index records `expectFail` on such runs.
|
|
32
|
+
- 4897ede: `lint` knows the functions a scenario defines, and checks a call wherever it stands.
|
|
33
|
+
|
|
34
|
+
- A function defined at the top level of a scenario file is a helper of that file: the run always called it, and `lint` now does not report it as `validator:unknown-function`. Helpers in `unotest/e2e/_helpers/` work as before.
|
|
35
|
+
- A call inside an options object or a helper's argument (`apiCall('POST', '/pages', {html: page_hmtl()})`) is checked like any other call, so a misspelt name there is an error at its line instead of a failure at run time.
|
|
36
|
+
|
|
37
|
+
**Migration:** a scenario with an unknown or misspelt function inside an object argument used to pass `lint` and now fails it. That call would have failed the run.
|
|
38
|
+
|
|
39
|
+
- 4897ede: A collection whose `prepare` failed on a box is no longer just `failed (exit 94)` under `bundle push --follow`: the line says the prepare failed and the suite did not run, and where its output is. The run itself is now written (a failed collection with no scenario), so `box run <id>` finds it and gives the same reason instead of "no such run".
|
|
40
|
+
- ab0fb14: `bundle push --follow` now reads tests marked `@expect-fail` the way a local run does: a marked test that fails prints `✓ <test> — failed on purpose (@expect-fail)`, and a marked test that passes prints `✗ <test> — passed, but it is marked @expect-fail`. Previously a control collection on a box streamed its expected failures as ordinary ones. The line that ends a failed scenario in `--follow` also uses the local run's words: `✗ login — failed` instead of `✗ login (failed)`. In a local run, a test of a multi-test file that failed on purpose now carries the same `(@expect-fail)` suffix as a single test. Run lines from a box carry a new optional `expectFail` field; older clients ignore it.
|
|
41
|
+
- 4897ede: `env push` / `env set`: a box that refuses a name of the run's identity (`UNOTEST_RUN_ID` and the rest) no longer gets the advice about `APP_BASE_URL`. The box's refusal now says which kind of name it reserved, under the same `reserved` code, so older CLIs still show the box's own words. A refusal code this CLI does not know is shown as the box worded it, with exit 1, instead of "not a box's answer".
|
|
42
|
+
- 4897ede: `lint` names a scenario the way `e2e` does.
|
|
43
|
+
|
|
44
|
+
- `lint values/string-escapes` checks `unotest/e2e/values/string-escapes.js`, as `e2e values/string-escapes` runs it. It used to fail with `ENOENT` and exit 1.
|
|
45
|
+
- A folder, which failed with `EISDIR`, checks every `.js` under it — as a path or as a feature folder name (`lint values`).
|
|
46
|
+
- A file path works as before; typed from inside the suite package (`cd unotest && lint e2e/values/numbers.js`) it means what it says there.
|
|
47
|
+
- A name that is not there exits 2 and prints where it was looked for, with the closest names, the same message `e2e` gives.
|
|
48
|
+
|
|
49
|
+
- 4897ede: A run paused on a failure (`e2e --debug`, an agent's `run_test`) with nobody attached is now aborted after 30 minutes without a client command, and frees the queue — the timeout existed but was restarted by the run reading its own state every few seconds, so it never ran out. Any debug command restarts it; reading the run's state does not. `UNOTEST_PAUSE_TTL_MS` sets the timeout, and the expiry line says how long it waited.
|
|
50
|
+
- 4897ede: The DSL reference shipped with the package now links `readJson` to the "App constants in scenarios" section on docs.unotest.com instead of naming a page the package does not contain.
|
|
51
|
+
- 4897ede: `skip(reason)` can be called anywhere in a test's body, including inside a step or an `if` block, so a test can skip itself on data an earlier step read. The rest of the test does not run, registered teardown blocks still play, and the run reports skipped with the reason. `lint:skip-outside-test` now reports only a `skip()` in a helper, a flow or at the top level of a file.
|
|
52
|
+
- 4897ede: The step a test skipped itself in now shows as skipped in the viewer, not as passed; the steps before it stay passed. The run journal marks that statement and its step block with an optional `skipped: true` next to `ok: true`, so readers that do not know the field see the same events as before.
|
|
53
|
+
- 4897ede: `getImageSize(loc)` reads an image's natural size without `evaluateOnLocator`.
|
|
54
|
+
|
|
55
|
+
- It returns `{width, height}` of the `<img>` file, or `null` when the image is broken or has no `src`. An image still loading is waited for up to the action timeout, so a good image is not read as broken.
|
|
56
|
+
- An element that is not an `<img>` fails with a `LocatorError` naming its tag; an inline `<svg>` is pointed to `boundingBox`. An image that never finishes loading fails with a `TimeoutError`; for a `loading="lazy"` one the message says to `scrollIntoView()` it first.
|
|
57
|
+
- It works inside iframes, cross-origin ones included.
|
|
58
|
+
- The `lint:evaluate-discouraged` hint now names `getImageSize` for images, and `count` / `assertCount` over `.filter({...})` for counting elements by text or by a child.
|
|
59
|
+
- The DSL reference shows how to count by a condition: `.filter({...})` for text or a child, a CSS `locator(...)` for the element's own class or attribute.
|
|
60
|
+
|
|
61
|
+
- 4897ede: Viewer tree:
|
|
62
|
+
|
|
63
|
+
- A collection file that does not parse no longer hides the others. The Collections section lists the valid collections and shows the broken file as its own row, with the parse error. Before, the whole section read "no collections match". Runs of the valid collections are not affected by a broken file next to them.
|
|
64
|
+
- The section footers show only keys that do something. `R` now runs the selected scenario headless, the same as "Run again", and is shown only where the viewer may run. `⌘K` focuses the filter in every section. Hints that had no handler are removed: arrows, `N` new collection, `O` open .zip, `⌃C` abort, `⌥` reveal secret.
|
|
65
|
+
|
|
66
|
+
- 4897ede: A run no longer hangs after a failed step on a page that stopped answering. After a failure the runner reads the page for the failure bundle (screenshot, HTML, semantic DOM, outline), and a page whose main thread is busy, such as a script in an endless loop, never answered those reads, in WebKit and Chromium alike. Each read now gets 15 seconds. The first that runs out ends the reading: the test stays red with its own error, the output adds `the page gave no answer within 15s after the failed step`, and the run's `failure/screenshot-error.txt` holds the same reason. Closing the browser context has the same limit.
|
|
67
|
+
|
|
68
|
+
Killing `unotest-web` outright (`kill -9`) now stops the run it started too, with its browser. Before, only SIGTERM, SIGINT and SIGHUP reached it, and the run went on with nobody left to stop it.
|
|
69
|
+
|
|
70
|
+
- Updated dependencies [4897ede]
|
|
71
|
+
- Updated dependencies [4897ede]
|
|
72
|
+
- Updated dependencies [de529ab]
|
|
73
|
+
- Updated dependencies [4897ede]
|
|
74
|
+
- Updated dependencies [4897ede]
|
|
75
|
+
- Updated dependencies [4897ede]
|
|
76
|
+
- Updated dependencies [4897ede]
|
|
77
|
+
- Updated dependencies [4897ede]
|
|
78
|
+
- Updated dependencies [4897ede]
|
|
79
|
+
- Updated dependencies [4897ede]
|
|
80
|
+
- Updated dependencies [4897ede]
|
|
81
|
+
- Updated dependencies [4897ede]
|
|
82
|
+
- Updated dependencies [ab0fb14]
|
|
83
|
+
- Updated dependencies [4897ede]
|
|
84
|
+
- Updated dependencies [4897ede]
|
|
85
|
+
- Updated dependencies [4897ede]
|
|
86
|
+
- @unotest/protocol@0.49.1
|
|
87
|
+
- @unotest/core@0.49.1
|
|
88
|
+
- @unotest/dsl@0.49.1
|
|
89
|
+
- @unotest/viewer@0.49.1
|
|
90
|
+
- @unotest/grounder-client@0.49.1
|
|
91
|
+
|
|
3
92
|
## [0.49.0] - 2026-10-09
|
|
4
93
|
|
|
5
94
|
### Minor Changes
|
|
@@ -1724,7 +1813,7 @@ picker on` fetches this project's own access and writes the three grounder
|
|
|
1724
1813
|
|
|
1725
1814
|
That screen named one command:
|
|
1726
1815
|
|
|
1727
|
-
|
|
1816
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
1728
1817
|
|
|
1729
1818
|
In a project that has just been created, the command refuses with `no box
|
|
1730
1819
|
address` before it does anything: the project holds neither the box's address
|
|
@@ -1733,8 +1822,8 @@ address` before it does anything: the project holds neither the box's address
|
|
|
1733
1822
|
|
|
1734
1823
|
The screen now names both steps, in the order they have to happen:
|
|
1735
1824
|
|
|
1736
|
-
|
|
1737
|
-
|
|
1825
|
+
npx @unotest/web box access larch
|
|
1826
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
1738
1827
|
|
|
1739
1828
|
The box's own name is filled in when its licence carries one. `box access`
|
|
1740
1829
|
with no name refuses, and its refusal offers to create a box — to somebody who
|
package/bin/unotest-web.js
CHANGED
|
@@ -52,6 +52,12 @@ const asksForHelp = args.some((a) => a === "--help" || a === "-h");
|
|
|
52
52
|
// under src/. In published packages dist/ exists (built by prepublishOnly);
|
|
53
53
|
// in a fresh clone we fall back to running TS sources via tsx so that
|
|
54
54
|
// `unotest-web --help` works without an explicit `pnpm build` first.
|
|
55
|
+
/** The cli dispatcher's route. It stops when this wrapper is gone, through
|
|
56
|
+
* an IPC channel (see the spawn below); the other entries are not told. */
|
|
57
|
+
function cliRoute(forwardArgs) {
|
|
58
|
+
return { dist: "dist/runner/cli.js", src: "src/runner/cli.ts", forwardArgs, followsParent: true };
|
|
59
|
+
}
|
|
60
|
+
|
|
55
61
|
function dispatch(sub) {
|
|
56
62
|
// A question is not a command. Every `--help` goes to the cli dispatcher
|
|
57
63
|
// with the arguments untouched, whatever the route for that subcommand
|
|
@@ -60,13 +66,13 @@ function dispatch(sub) {
|
|
|
60
66
|
// drops the flag and runs the command — `viewer --help` started a viewer
|
|
61
67
|
// and scaffolded `unotest/` into the current directory.
|
|
62
68
|
if (asksForHelp) {
|
|
63
|
-
return
|
|
69
|
+
return cliRoute(args);
|
|
64
70
|
}
|
|
65
71
|
switch (sub) {
|
|
66
72
|
case "mcp":
|
|
67
73
|
return { dist: "dist/mcp/server.js", src: "src/mcp/server.ts", forwardArgs: [] };
|
|
68
74
|
case "e2e":
|
|
69
|
-
return
|
|
75
|
+
return cliRoute(args);
|
|
70
76
|
case "init":
|
|
71
77
|
return {
|
|
72
78
|
dist: "dist/runner/init.js",
|
|
@@ -88,9 +94,9 @@ function dispatch(sub) {
|
|
|
88
94
|
case "lint":
|
|
89
95
|
// Forwarded whole, like e2e: `--env <name>` and explicit file
|
|
90
96
|
// arguments belong to the command, not to the dispatcher.
|
|
91
|
-
return
|
|
97
|
+
return cliRoute(args);
|
|
92
98
|
case "viewer":
|
|
93
|
-
return
|
|
99
|
+
return cliRoute(["viewer"]);
|
|
94
100
|
case "prepare-fix":
|
|
95
101
|
return {
|
|
96
102
|
dist: "dist/runner/prepare-fix.js",
|
|
@@ -100,16 +106,16 @@ function dispatch(sub) {
|
|
|
100
106
|
case "--help":
|
|
101
107
|
case "-h":
|
|
102
108
|
case "--version":
|
|
103
|
-
return
|
|
109
|
+
return cliRoute(args);
|
|
104
110
|
default:
|
|
105
111
|
if (sub === undefined) {
|
|
106
112
|
return { dist: "dist/mcp/server.js", src: "src/mcp/server.ts", forwardArgs: [] };
|
|
107
113
|
}
|
|
108
|
-
return
|
|
114
|
+
return cliRoute(args);
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
117
|
|
|
112
|
-
const { dist, src, forwardArgs } = dispatch(sub);
|
|
118
|
+
const { dist, src, forwardArgs, followsParent = false } = dispatch(sub);
|
|
113
119
|
const distPath = resolve(root, dist);
|
|
114
120
|
|
|
115
121
|
// Init is interactive (browser prompt) — running it via spawn through
|
|
@@ -138,9 +144,13 @@ if (sub === "init" && !asksForHelp && existsSync(distPath)) {
|
|
|
138
144
|
// when dist/ is absent (fresh clone without `pnpm build`).
|
|
139
145
|
let cmd = process.execPath;
|
|
140
146
|
let cmdArgs;
|
|
147
|
+
// Only a cli started directly can hold the channel: under tsx it would be
|
|
148
|
+
// tsx's, not the cli's.
|
|
149
|
+
let linkParent = false;
|
|
141
150
|
if (existsSync(distPath)) {
|
|
142
151
|
// Published / built path — run compiled JS directly.
|
|
143
152
|
cmdArgs = [distPath, ...forwardArgs];
|
|
153
|
+
linkParent = followsParent;
|
|
144
154
|
} else {
|
|
145
155
|
const srcPath = resolve(root, src);
|
|
146
156
|
const haveSrc = existsSync(srcPath);
|
|
@@ -170,7 +180,13 @@ if (existsSync(distPath)) {
|
|
|
170
180
|
cmdArgs = [tsxCliPath, entryForTsx, ...forwardArgs];
|
|
171
181
|
}
|
|
172
182
|
|
|
173
|
-
|
|
183
|
+
// The cli gets an IPC channel beside the inherited stdio — fd 3, so stdin
|
|
184
|
+
// and stdout stay the caller's. `kill -9` on this wrapper forwards nothing;
|
|
185
|
+
// the channel closing is how the cli learns its parent is gone, and it
|
|
186
|
+
// stops then as it would on the SIGTERM forwarded below (#378).
|
|
187
|
+
const child = spawn(cmd, cmdArgs, {
|
|
188
|
+
stdio: linkParent ? ["inherit", "inherit", "inherit", "ipc"] : "inherit",
|
|
189
|
+
});
|
|
174
190
|
|
|
175
191
|
// Pass termination on to the child. This dispatcher is a thin wrapper: kill
|
|
176
192
|
// IT and the real process — the viewer server, a running scenario — has to
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x19cd0a=_0x65ae;(function(_0xdbced1,_0x23f9d8){var _0x171c5b={_0x429bff:0x190,_0x31effb:0x191,_0x13ccee:0x189,_0x5c0a71:0x184,_0x429d0d:0x174,_0x1d763c:0x169,_0x4705d4:0x135},_0x3715db=_0x65ae,_0x1f5c29=_0xdbced1();while(!![]){try{var _0x4d5665=parseInt(_0x3715db(_0x171c5b._0x429bff))/0x1+parseInt(_0x3715db(_0x171c5b._0x31effb))/0x2*(-parseInt(_0x3715db(0x166))/0x3)+parseInt(_0x3715db(0x17c))/0x4+-parseInt(_0x3715db(_0x171c5b._0x13ccee))/0x5*(-parseInt(_0x3715db(_0x171c5b._0x5c0a71))/0x6)+-parseInt(_0x3715db(0x197))/0x7+-parseInt(_0x3715db(_0x171c5b._0x429d0d))/0x8*(parseInt(_0x3715db(_0x171c5b._0x1d763c))/0x9)+parseInt(_0x3715db(_0x171c5b._0x4705d4))/0xa;if(_0x4d5665===_0x23f9d8)break;else _0x1f5c29['push'](_0x1f5c29['shift']());}catch(_0x361008){_0x1f5c29['push'](_0x1f5c29['shift']());}}}(_0x2333,0xea7f8));var __defProp=Object[_0x19cd0a(0x15f)],__name=(_0x13e14e,_0x57db14)=>__defProp(_0x13e14e,_0x19cd0a(0x187),{'value':_0x57db14,'configurable':!![]});import{z as _0xe0606c}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';function _0x65ae(_0x80fc18,_0x237347){_0x80fc18=_0x80fc18-0x135;var _0x2333dc=_0x2333();var _0x65ae8c=_0x2333dc[_0x80fc18];if(_0x65ae['YcneSr']===undefined){var _0x53c653=function(_0x4b3652){var _0x145cdd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xe0606c='',_0x492223='';for(var _0x13e14e=0x0,_0x57db14,_0x64d817,_0x3b8242=0x0;_0x64d817=_0x4b3652['charAt'](_0x3b8242++);~_0x64d817&&(_0x57db14=_0x13e14e%0x4?_0x57db14*0x40+_0x64d817:_0x64d817,_0x13e14e++%0x4)?_0xe0606c+=String['fromCharCode'](0xff&_0x57db14>>(-0x2*_0x13e14e&0x6)):0x0){_0x64d817=_0x145cdd['indexOf'](_0x64d817);}for(var _0x5a6973=0x0,_0x450775=_0xe0606c['length'];_0x5a6973<_0x450775;_0x5a6973++){_0x492223+='%'+('00'+_0xe0606c['charCodeAt'](_0x5a6973)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x492223);};_0x65ae['tIvdFm']=_0x53c653,_0x65ae['ohnIWg']={},_0x65ae['YcneSr']=!![];}var _0x3367cc=_0x2333dc[0x0],_0x151d05=_0x80fc18+_0x3367cc,_0x51d820=_0x65ae['ohnIWg'][_0x151d05];return!_0x51d820?(_0x65ae8c=_0x65ae['tIvdFm'](_0x65ae8c),_0x65ae['ohnIWg'][_0x151d05]=_0x65ae8c):_0x65ae8c=_0x51d820,_0x65ae8c;}var MAX_EDITS=0x2;function closestKey(_0x64d817,_0x3b8242){var _0x165bb9={_0x5c62f2:0x16b,_0x957827:0x15e},_0x2a1dfb=_0x19cd0a;let _0x5a6973;for(const _0x450775 of _0x3b8242){const _0x55c3c7=levenshteinDistance(_0x64d817[_0x2a1dfb(_0x165bb9._0x5c62f2)](),_0x450775['toLowerCase']());if(_0x55c3c7>MAX_EDITS)continue;if(_0x5a6973===void 0x0||_0x55c3c7<_0x5a6973['distance'])_0x5a6973={'key':_0x450775,'distance':_0x55c3c7};}return _0x5a6973?.[_0x2a1dfb(_0x165bb9._0x957827)];}__name(closestKey,_0x19cd0a(0x164));function unknownKeyMessage(_0x1b850b,_0x40610c){var _0x211669={_0x33aa79:0x19a},_0x7db88e=_0x19cd0a;return _0x1b850b[_0x7db88e(_0x211669._0x33aa79)](_0x4914f7=>{var _0x33a10f=_0x7db88e;const _0x503d53=closestKey(_0x4914f7,_0x40610c);return _0x503d53===void 0x0?'unknown\x20key\x20\x22'+_0x4914f7+'\x22\x20—\x20not\x20a\x20config\x20key;\x20check\x20your\x20@unotest/web\x20version\x20if\x20it\x20comes\x20from\x20a\x20newer\x20release':_0x33a10f(0x185)+_0x4914f7+_0x33a10f(0x148)+_0x503d53+'\x22?';})[_0x7db88e(0x18e)](';\x20');}__name(unknownKeyMessage,'unknownKeyMessage');function strictObject(_0x3387d5){var _0x4225d8={_0x14de1e:0x138,_0x227bdd:0x1a1},_0x1e4120=_0x19cd0a;const _0x1623d0=Object[_0x1e4120(_0x4225d8._0x14de1e)](_0x3387d5);return z['object'](_0x3387d5,{'errorMap':__name((_0x11206d,_0xe298f1)=>_0x11206d['code']===z[_0x1e4120(0x177)][_0x1e4120(0x162)]?{'message':unknownKeyMessage(_0x11206d[_0x1e4120(0x138)],_0x1623d0)}:{'message':_0xe298f1['defaultError']},_0x1e4120(_0x4225d8._0x227bdd))})[_0x1e4120(0x186)]();}__name(strictObject,_0x19cd0a(0x149));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x492223}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x492223[_0x19cd0a(0x158)]({'userDataDir':_0x492223[_0x19cd0a(0x15c)]()[_0x19cd0a(0x176)](0x1)[_0x19cd0a(0x1a0)](),'profile':_0x492223[_0x19cd0a(0x1a2)](_0x19cd0a(0x15d))[_0x19cd0a(0x1a0)](),'args':_0x492223[_0x19cd0a(0x199)](_0x492223[_0x19cd0a(0x15c)]()['min'](0x1))[_0x19cd0a(0x1a0)]()})[_0x19cd0a(0x186)](),BrowserSchema=_0xe0606c[_0x19cd0a(0x18f)]([_0x19cd0a(0x136),_0x19cd0a(0x165),_0x19cd0a(0x157)]),SYSTEM_BROWSER_CHANNELS=[_0x19cd0a(0x144),_0x19cd0a(0x17a),_0x19cd0a(0x16a),_0x19cd0a(0x136)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0xe0606c['union']([_0xe0606c[_0x19cd0a(0x18f)](SYSTEM_BROWSER_CHANNELS),_0xe0606c[_0x19cd0a(0x1a2)](BUNDLED_BROWSER_CHANNEL)[_0x19cd0a(0x188)](()=>null),_0xe0606c[_0x19cd0a(0x19f)]()])[_0x19cd0a(0x1a0)](),ViewportSchema=strictObject({'width':_0xe0606c[_0x19cd0a(0x142)]()[_0x19cd0a(0x182)]()['positive']()[_0x19cd0a(0x1a0)](),'height':_0xe0606c[_0x19cd0a(0x142)]()['int']()[_0x19cd0a(0x14f)]()[_0x19cd0a(0x1a0)](),'deviceScaleFactor':_0xe0606c['number']()[_0x19cd0a(0x14f)]()['optional']()}),ConfigViewportSchema=ViewportSchema['nullable']();function viewportDeviceConflict(_0x1792d7,_0x2b10d4,_0x5a134f=_0x19cd0a(0x180)){var _0x54a83f={_0x3c5356:0x1a3,_0x5a60df:0x139},_0x130145=_0x19cd0a;if(_0x1792d7!==null||_0x2b10d4===void 0x0)return void 0x0;return _0x5a134f+_0x130145(_0x54a83f._0x3c5356)+_0x2b10d4+_0x130145(_0x54a83f._0x5a60df);}function _0x2333(){var _0x41b60b=['BMfTzq','DhjHBNnMB3jT','nJK5mZi2meLPv1PHuq','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','BgLUDdP4Cgf0Aa','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','AM9PBG','zw51Bq','odKZmdC2rwHSrxv2','mtu4mdzIELH6qwi','zM9YrwfJAa','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','BgLUDdPNB3rVlwnVBMnHDa','iIdIGjqGzxHWzwn0zwqGysbcq1aGndCGDgfNihn1y2GGyxmGiMvZluvtiG','AxnbCNjHEq','mtmXmdyWndrtq0zAzNu','BwfUDwfS','yxjYyxK','BwfW','z2v0q2fUB25Py2fStg9JywXLCW','xs51CMWG','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','BNvSBa','B3b0Aw9UywW','zxjYB3jnyxa','BgL0zxjHBa','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','CMvMAw5L','mteYnde3mdbUv0DguvO','y2HYB21PDw0','BgLUDdPMAwX0zxiTDw5RBM93BI1VChrPB24','A2v5CW','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','rgf0zvrPBwvgB3jTyxq','C3rKAw8','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoMzVCI1ZAgfWzq','y3jHC2G','DMfSAwrHDg9YoMfYAxr5','BgLUDdPWyxvZzs1LEhbSAwnPDa','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','BNvTyMvY','zgvMyxvSDa','y2HYB21L','BgvUz3rO','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','AxnuAw1LwM9Uzq','iIdIGjqGzgLKihLVDsbTzwfUici','C3rYAwn0t2jQzwn0','Dw5PB24','AgfZ','DMfSAwrHDg9YoNn0zxaTC2HHCgu','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','BgLUDdPKzwvWlwnZCW','Cg9ZAxrPDMu','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','D2fYBG','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','y3vZDg9T','BgLUDdPLy2HVlwfZC2vYDa','DxjS','ywnJzxb0','D2vIA2L0','B2jQzwn0','DMLLD3bVCNq','zw4Tvvm','zgLZBwLZCW','C3rYAw5N','CgvYlxrLC3q','A2v5','zgvMAw5LuhjVCgvYDhK','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','zxjYB3i','Dw5YzwnVz25PEMvKx2TLExm','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','y2XVC2vZDeTLEq','zMLYzwzVEa','mJm3CvLevwDX','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mZq4ndq0uLrjy1zT','y2HYB21LlwjLDge','Dg9mB3DLCKnHC2u','AxnmB2nHBgu','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','zNvSBa','DMfSAwrHDg9YoMLMlxnOyxbL','BMv0D29YAW','B2zM','yM9VBgvHBG','mJqWruvgyNfb','ywrKsxnZDwu','BwLU','wM9KsxnZDwvdB2rL','Dw5RBM93BIb0Aw1LihPVBMuGiG','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','BxnLzgDL','CMvKywn0zwq','ndGXmdG2meTgCxHxsW','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','C3vWzxjszwzPBMu','DMLLD3bVCNq6ig51BgW','BgLUDdPSzwDHy3KTBgf5B3v0','Aw50','BgLUDdPTDxn0ywnOzs1PBI1KC2W','nKDhCePota','Dw5RBM93BIbRzxKGiG','C3rYAwn0'];_0x2333=function(){return _0x41b60b;};return _0x2333();}__name(viewportDeviceConflict,'viewportDeviceConflict');var RetryReasonSchema=_0xe0606c['enum'](['transient',_0x19cd0a(0x171),_0x19cd0a(0x13e)]),RetryConfigSchema=strictObject({'count':_0xe0606c[_0x19cd0a(0x142)]()['int']()[_0x19cd0a(0x176)](0x0)['max'](0xa),'on':_0xe0606c[_0x19cd0a(0x199)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0xe0606c[_0x19cd0a(0x1a2)](!![])[_0x19cd0a(0x143)](!![]),'tier2':_0xe0606c['boolean'](),'tier3':strictObject({'network':_0xe0606c[_0x19cd0a(0x173)](),'video':_0xe0606c['boolean']()}),'retention':strictObject({'runs':_0xe0606c[_0x19cd0a(0x142)]()[_0x19cd0a(0x182)]()[_0x19cd0a(0x14f)](),'days':_0xe0606c[_0x19cd0a(0x142)]()[_0x19cd0a(0x182)]()[_0x19cd0a(0x14f)]()}),'storageDir':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x176)](0x1),'pageHtml':_0xe0606c['enum'](['redacted',_0x19cd0a(0x16f)])}),DialogPolicySchema=_0xe0606c[_0x19cd0a(0x18f)]([_0x19cd0a(0x156),_0x19cd0a(0x15b),_0x19cd0a(0x198)]),LinterRuleIdSchema=_0xe0606c[_0x19cd0a(0x18f)]([_0x19cd0a(0x14e),_0x19cd0a(0x18b),_0x19cd0a(0x167),_0x19cd0a(0x140),_0x19cd0a(0x14d),_0x19cd0a(0x1a4),'lint:scenario-in-root',_0x19cd0a(0x183),_0x19cd0a(0x194),'lint:regex-invalid',_0x19cd0a(0x154),'lint:api-call-file-body',_0x19cd0a(0x160),_0x19cd0a(0x16d),_0x19cd0a(0x181),_0x19cd0a(0x150),_0x19cd0a(0x16e),_0x19cd0a(0x18c),_0x19cd0a(0x19e),_0x19cd0a(0x179),_0x19cd0a(0x18d),_0x19cd0a(0x137),_0x19cd0a(0x18a),_0x19cd0a(0x13f),'validator:arg-kind',_0x19cd0a(0x168),_0x19cd0a(0x14c),'validator:meta-shape',_0x19cd0a(0x163),_0x19cd0a(0x13d),_0x19cd0a(0x170),'validator:var-shape',_0x19cd0a(0x193),_0x19cd0a(0x146),_0x19cd0a(0x13c),_0x19cd0a(0x141),'validator:list-arg',_0x19cd0a(0x152)]),LinterSeveritySchema=_0xe0606c[_0x19cd0a(0x18f)](['off','warn',_0x19cd0a(0x161)]),LinterConfigSchema=strictObject({'enabled':_0xe0606c[_0x19cd0a(0x173)](),'rules':_0xe0606c['record'](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0xe0606c[_0x19cd0a(0x173)]()[_0x19cd0a(0x143)](!![]),'concurrency':_0xe0606c['number']()[_0x19cd0a(0x182)]()[_0x19cd0a(0x14f)]()[_0x19cd0a(0x143)](0x1)}),ScheduleSchema=strictObject({'collection':_0xe0606c[_0x19cd0a(0x15c)]()['min'](0x1),'cron':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x176)](0x1),'env':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x176)](0x1)['optional'](),'prepare':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x176)](0x1)[_0x19cd0a(0x1a0)]()}),McpConfigSchema=strictObject({'transport':_0xe0606c['literal'](_0x19cd0a(0x13b))}),SandboxConfigSchema=strictObject({'shellCwd':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x1a0)](),'shellTimeoutMs':_0xe0606c[_0x19cd0a(0x142)]()['int']()['positive']()[_0x19cd0a(0x1a0)](),'exportSecrets':_0xe0606c[_0x19cd0a(0x199)](_0xe0606c['string']())[_0x19cd0a(0x1a0)](),'database':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x1a0)](),'apiBaseUrl':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x155)]()[_0x19cd0a(0x1a0)](),'uploadDir':_0xe0606c[_0x19cd0a(0x15c)]()['optional'](),'readRoots':_0xe0606c[_0x19cd0a(0x199)](_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x176)](0x1))[_0x19cd0a(0x1a0)]()}),WebServerConfigSchema=strictObject({'command':_0xe0606c['string']()[_0x19cd0a(0x176)](0x1),'url':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x155)](),'reuseExistingServer':_0xe0606c[_0x19cd0a(0x173)]()[_0x19cd0a(0x143)](!![]),'timeoutMs':_0xe0606c[_0x19cd0a(0x142)]()[_0x19cd0a(0x182)]()[_0x19cd0a(0x14f)]()[_0x19cd0a(0x143)](0xea60)}),WebServersConfigSchema=_0xe0606c[_0x19cd0a(0x14a)]([WebServerConfigSchema,_0xe0606c[_0x19cd0a(0x199)](WebServerConfigSchema)[_0x19cd0a(0x176)](0x1)])[_0x19cd0a(0x188)](_0x45d9df=>Array[_0x19cd0a(0x196)](_0x45d9df)?_0x45d9df:[_0x45d9df])[_0x19cd0a(0x17f)]((_0x27043e,_0x42bb04)=>{var _0x3bbb79={_0x2d6454:0x14b,_0x331e9a:0x175,_0x16ab51:0x177,_0x468a6f:0x155},_0x49c68a=_0x19cd0a;const _0x3f70b6=new Set();_0x27043e[_0x49c68a(0x192)]((_0x2a7caf,_0xe4ea15)=>{var _0x473d35=_0x49c68a;_0x3f70b6[_0x473d35(_0x3bbb79._0x2d6454)](_0x2a7caf[_0x473d35(0x155)])&&_0x42bb04[_0x473d35(_0x3bbb79._0x331e9a)]({'code':_0xe0606c[_0x473d35(_0x3bbb79._0x16ab51)][_0x473d35(0x153)],'path':[_0xe4ea15,_0x473d35(0x155)],'message':'webServer['+_0xe4ea15+_0x473d35(0x19c)+_0x2a7caf[_0x473d35(_0x3bbb79._0x468a6f)]+_0x473d35(0x17d)}),_0x3f70b6['add'](_0x2a7caf['url']);});}),EnvConfigSchema=strictObject({'shared':_0xe0606c[_0x19cd0a(0x199)](_0xe0606c[_0x19cd0a(0x15c)]())[_0x19cd0a(0x143)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x155)]()['optional'](),'webServer':WebServersConfigSchema[_0x19cd0a(0x1a0)](),'generate':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x176)](0x1)[_0x19cd0a(0x1a0)](),'browsers':_0xe0606c[_0x19cd0a(0x199)](BrowserSchema)[_0x19cd0a(0x176)](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema['optional'](),'device':_0xe0606c['string']()[_0x19cd0a(0x176)](0x1)[_0x19cd0a(0x1a0)](),'timezone':_0xe0606c['string']()[_0x19cd0a(0x1a5)](isTimeZone,_0x926a62=>({'message':_0x19cd0a(0x178)+_0x926a62+_0x19cd0a(0x17e)}))[_0x19cd0a(0x1a0)](),'locale':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x1a5)](isLocale,_0xc9f061=>({'message':'invalid\x20locale\x20\x22'+_0xc9f061+_0x19cd0a(0x195)}))[_0x19cd0a(0x1a0)](),'maxContexts':_0xe0606c[_0x19cd0a(0x142)]()['int']()[_0x19cd0a(0x14f)]()[_0x19cd0a(0x1a0)](),'launch':LaunchConfigSchema[_0x19cd0a(0x1a0)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x1a0)](),'testDir':_0xe0606c[_0x19cd0a(0x15c)]()[_0x19cd0a(0x176)](0x1),'helpersDir':_0xe0606c['string']()[_0x19cd0a(0x176)](0x1),'defaultTimeoutMs':_0xe0606c[_0x19cd0a(0x142)]()[_0x19cd0a(0x182)]()[_0x19cd0a(0x14f)](),'defaultNavigationTimeoutMs':_0xe0606c[_0x19cd0a(0x142)]()[_0x19cd0a(0x182)]()[_0x19cd0a(0x14f)](),'teardownTimeoutMs':_0xe0606c[_0x19cd0a(0x142)]()[_0x19cd0a(0x182)]()[_0x19cd0a(0x14f)]()[_0x19cd0a(0x1a0)](),'testTimeoutMs':_0xe0606c[_0x19cd0a(0x142)]()[_0x19cd0a(0x182)]()[_0x19cd0a(0x14f)]()[_0x19cd0a(0x1a0)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0xe0606c[_0x19cd0a(0x199)](ScheduleSchema)[_0x19cd0a(0x143)]([]),'sandbox':SandboxConfigSchema})['superRefine']((_0x15d6ea,_0x42adf8)=>{var _0x10bb67={_0xef2c33:0x177},_0x381d3d=_0x19cd0a;const _0x22164e=viewportDeviceConflict(_0x15d6ea[_0x381d3d(0x159)],_0x15d6ea['device']);_0x22164e!==void 0x0&&_0x42adf8[_0x381d3d(0x175)]({'code':_0xe0606c[_0x381d3d(_0x10bb67._0xef2c33)][_0x381d3d(0x153)],'path':[_0x381d3d(0x159)],'message':_0x22164e});});function isTimeZone(_0x40063c){var _0xe0d05d={_0x30d144:0x13a,_0x4b6c43:0x15a,_0x219c10:0x145},_0x2823b0=_0x19cd0a;try{return new Intl[(_0x2823b0(_0xe0d05d._0x30d144))](_0x2823b0(_0xe0d05d._0x4b6c43),{'timeZone':_0x40063c}),_0x40063c[_0x2823b0(_0xe0d05d._0x219c10)]>0x0;}catch{return![];}}__name(isTimeZone,_0x19cd0a(0x147));function isLocale(_0x39bc67){var _0x121591={_0x14cd11:0x19b},_0x1bd91e=_0x19cd0a;try{return Intl[_0x1bd91e(_0x121591._0x14cd11)](_0x39bc67)[_0x1bd91e(0x145)]===0x1;}catch{return![];}}__name(isLocale,_0x19cd0a(0x16c));var DEFAULT_CONFIG={'browsers':[_0x19cd0a(0x136)],'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':'.unotest/failures','pageHtml':_0x19cd0a(0x17b)},'dialogPolicy':'accept','testDir':'unotest/e2e','helpersDir':_0x19cd0a(0x19d),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':'warn','lint:xpath':_0x19cd0a(0x151),'lint:obfuscated-class':'warn','lint:pause-explicit':'warn','lint:disambig-by-index':_0x19cd0a(0x172),'lint:evaluate-discouraged':_0x19cd0a(0x151),'lint:scenario-in-root':_0x19cd0a(0x161),'lint:mustache-in-dsl':'error','lint:goto-concat':'warn','lint:regex-invalid':_0x19cd0a(0x161),'lint:echo-assert':_0x19cd0a(0x151),'lint:lint-ok-missing-reason':_0x19cd0a(0x151),'lint:flow-returns-value':'warn','lint:legacy-layout':'warn','lint:external-variable-undeclared':_0x19cd0a(0x161),'lint:env-host-from-base':'error','lint:one-test-per-file':_0x19cd0a(0x151),'lint:shadows-dsl-function':_0x19cd0a(0x151),'lint:skip-outside-test':_0x19cd0a(0x161),'lint:set-test-timeout-outside-test':_0x19cd0a(0x161),'lint:filter-unknown-option':_0x19cd0a(0x161),'validator:unknown-function':'error'}},'env':{'shared':[]},'mcp':{'transport':_0x19cd0a(0x13b)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
|
1
|
+
var _0x328995=_0x3b38;(function(_0x17508c,_0x5578d0){var _0x118a28={_0x2ae2dc:0xed,_0x3df906:0xc6,_0x53e72c:0xe7,_0x479566:0xb0,_0x57d714:0xea},_0x6e890d=_0x3b38,_0x4ea66a=_0x17508c();while(!![]){try{var _0x4212b7=parseInt(_0x6e890d(_0x118a28._0x2ae2dc))/0x1+-parseInt(_0x6e890d(0xe0))/0x2+parseInt(_0x6e890d(0xb2))/0x3*(-parseInt(_0x6e890d(0xda))/0x4)+parseInt(_0x6e890d(_0x118a28._0x3df906))/0x5*(parseInt(_0x6e890d(0xa4))/0x6)+parseInt(_0x6e890d(0xde))/0x7*(parseInt(_0x6e890d(_0x118a28._0x53e72c))/0x8)+parseInt(_0x6e890d(_0x118a28._0x479566))/0x9*(-parseInt(_0x6e890d(0xc9))/0xa)+parseInt(_0x6e890d(_0x118a28._0x57d714))/0xb;if(_0x4212b7===_0x5578d0)break;else _0x4ea66a['push'](_0x4ea66a['shift']());}catch(_0x485d4d){_0x4ea66a['push'](_0x4ea66a['shift']());}}}(_0x9579,0x63ff9));var __defProp=Object[_0x328995(0xc5)],__name=(_0x42e225,_0x1c43f6)=>__defProp(_0x42e225,'name',{'value':_0x1c43f6,'configurable':!![]});import{z as _0x6719d3}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x577072,_0xa332df){var _0x438773=_0x328995;let _0x1fa843;for(const _0x2e755e of _0xa332df){const _0x5e1bba=levenshteinDistance(_0x577072[_0x438773(0xb1)](),_0x2e755e[_0x438773(0xb1)]());if(_0x5e1bba>MAX_EDITS)continue;if(_0x1fa843===void 0x0||_0x5e1bba<_0x1fa843[_0x438773(0xac)])_0x1fa843={'key':_0x2e755e,'distance':_0x5e1bba};}return _0x1fa843?.[_0x438773(0xaa)];}__name(closestKey,_0x328995(0x9f));function unknownKeyMessage(_0x2417be,_0x34fd58){var _0x363226=_0x328995;return _0x2417be[_0x363226(0xdd)](_0x163a37=>{var _0x32cf85=_0x363226;const _0x3ca6af=closestKey(_0x163a37,_0x34fd58);return _0x3ca6af===void 0x0?'unknown\x20key\x20\x22'+_0x163a37+_0x32cf85(0xc8):'unknown\x20key\x20\x22'+_0x163a37+_0x32cf85(0xe4)+_0x3ca6af+'\x22?';})[_0x363226(0xe6)](';\x20');}__name(unknownKeyMessage,_0x328995(0xb3));function strictObject(_0x9e2911){var _0x1a2119={_0x366d7f:0xc2,_0x12f37d:0xdf},_0x204b4e=_0x328995;const _0x1cc4b0=Object[_0x204b4e(_0x1a2119._0x366d7f)](_0x9e2911);return z['object'](_0x9e2911,{'errorMap':__name((_0x31278a,_0xef323)=>_0x31278a[_0x204b4e(0xd7)]===z[_0x204b4e(0xd4)]['unrecognized_keys']?{'message':unknownKeyMessage(_0x31278a[_0x204b4e(0xc2)],_0x1cc4b0)}:{'message':_0xef323['defaultError']},_0x204b4e(0xc3))})[_0x204b4e(_0x1a2119._0x12f37d)]();}function _0x9579(){var _0x4df104=['rgf0zvrPBwvgB3jTyxq','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','DxjS','iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','DhjHBNnMB3jT','BgL0zxjHBa','BgLUDdPSzwDHy3KTBgf5B3v0','BMv0D29YAW','zMLYzwzVEa','Dw5RBM93BIb0Aw1LihPVBMuGiG','BNvSBa','A2v5CW','zxjYB3jnyxa','DMfSAwrHDg9YoNn0zxaTC2HHCgu','zgvMAw5LuhjVCgvYDhK','nwLjCxL2rW','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','ndiWnZeXmeXZBNvSEq','D2fYBG','DMfSAwrHDg9YoMfYzY1RAw5K','CMvKywn0zwq','ywrKsxnZDwu','lNvUB3rLC3qVzMfPBhvYzxm','CMvMAw5L','DMfSAwrHDg9YoMXPC3qTyxjN','zNvSBa','Aw52ywXPzcbSB2nHBguGiG','ywnJzxb0','wM9KsxnZDwvdB2rL','z2v0q2fUB25Py2fStg9JywXLCW','C3vWzxjszwzPBMu','y29Kzq','BgLUDdPZy2vUyxjPBY1PBI1YB290','C3rYAwn0t2jQzwn0','odC2nZC2u2rlwMvk','BgLUDdPWyxvZzs1LEhbSAwnPDa','yM9VBgvHBG','BwfW','mZaXnZiXsM96C0zv','C3rYAwn0','mte2nZaWnMz0u0njsq','AgfZ','ywrK','D2vIA2L0','iIdIGjqGzgLKihLVDsbTzwfUici','DMfSAwrHDg9YoMzVCI1ZAgfWzq','AM9PBG','og5qD0D6EG','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','CMvJB3jK','mteYntKWmdz1qLbsEhy','Aw50','Dw5VDgvZDc9LmMu','mtCZnJC0rMrXr2T6','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','BwLU','DMLLD3bVCNq','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','zgv2AwnL','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','Bwf4','B3b0Aw9UywW','DMfSAwrHDg9YoM1LDgeTC2HHCgu','B2zM','C3rYAw5N','DMLLD3bVCNq6ig51BgW','Dw5PB24','zxjYB3i','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','zgvMyxvSDa','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','C3rKAw8','zw4Tvvm','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','D2vIu2vYDMvYwW','BgvUz3rO','Cg9ZAxrPDMu','y2XVC2vZDeTLEq','AxnbCNjHEq','BgLUDdPNB3rVlwnVBMnHDa','BgLUDdPLy2HVlwfZC2vYDa','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mZy3mtiZmNDoy0zysq','DMfSAwrHDg9YoMLMlxnOyxbL','zw51Bq','DhjHBNnPzw50','yxjYyxK','BwfUDwfS','A2v5','y3vZDg9T','zgLZDgfUy2u','BNvTyMvY','xs51CMWG','y3jHC2G','ouH2u2novq','Dg9mB3DLCKnHC2u','nNbvt3nnrW','Dw5RBM93BKTLEu1LC3nHz2u','y2HYB21LlwjLDge','BNvSBgfIBgu','BxnLzgDL'];_0x9579=function(){return _0x4df104;};return _0x9579();}__name(strictObject,_0x328995(0xd9));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x3f2e51}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x3f2e51['object']({'userDataDir':_0x3f2e51[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1)[_0x328995(0xf8)](),'profile':_0x3f2e51['literal']('per-test')[_0x328995(0xf8)](),'args':_0x3f2e51[_0x328995(0xa8)](_0x3f2e51[_0x328995(0xfb)]()['min'](0x1))[_0x328995(0xf8)]()})[_0x328995(0xdf)](),BrowserSchema=_0x6719d3[_0x328995(0xa6)](['chromium',_0x328995(0xbf),_0x328995(0xe3)]),SYSTEM_BROWSER_CHANNELS=['chrome',_0x328995(0xb6),_0x328995(0xb4),'chromium'],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x6719d3[_0x328995(0xfd)]([_0x6719d3[_0x328995(0xa6)](SYSTEM_BROWSER_CHANNELS),_0x6719d3[_0x328995(0xbc)](BUNDLED_BROWSER_CHANNEL)[_0x328995(0xbb)](()=>null),_0x6719d3[_0x328995(0xc1)]()])[_0x328995(0xf8)](),ViewportSchema=strictObject({'width':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)]()[_0x328995(0xf8)](),'height':_0x6719d3[_0x328995(0xad)]()['int']()[_0x328995(0x9e)]()[_0x328995(0xf8)](),'deviceScaleFactor':_0x6719d3[_0x328995(0xad)]()[_0x328995(0x9e)]()[_0x328995(0xf8)]()}),ConfigViewportSchema=ViewportSchema[_0x328995(0xb5)]();function viewportDeviceConflict(_0x1e2b3e,_0x12ebaf,_0x2a9565=_0x328995(0xfc)){var _0x14c125={_0xb9f81f:0xee},_0x16ebcd=_0x328995;if(_0x1e2b3e!==null||_0x12ebaf===void 0x0)return void 0x0;return _0x2a9565+_0x16ebcd(0xf5)+_0x12ebaf+_0x16ebcd(_0x14c125._0xb9f81f);}function _0x3b38(_0x2212ed,_0x433953){_0x2212ed=_0x2212ed-0x9a;var _0x957986=_0x9579();var _0x3b38fe=_0x957986[_0x2212ed];if(_0x3b38['NXbhIa']===undefined){var _0x3e9978=function(_0x4060c2){var _0x3f2f9d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x6719d3='',_0x3f2e51='';for(var _0x42e225=0x0,_0x1c43f6,_0x577072,_0xa332df=0x0;_0x577072=_0x4060c2['charAt'](_0xa332df++);~_0x577072&&(_0x1c43f6=_0x42e225%0x4?_0x1c43f6*0x40+_0x577072:_0x577072,_0x42e225++%0x4)?_0x6719d3+=String['fromCharCode'](0xff&_0x1c43f6>>(-0x2*_0x42e225&0x6)):0x0){_0x577072=_0x3f2f9d['indexOf'](_0x577072);}for(var _0x1fa843=0x0,_0x2e755e=_0x6719d3['length'];_0x1fa843<_0x2e755e;_0x1fa843++){_0x3f2e51+='%'+('00'+_0x6719d3['charCodeAt'](_0x1fa843)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f2e51);};_0x3b38['yuWtEG']=_0x3e9978,_0x3b38['OYlcmI']={},_0x3b38['NXbhIa']=!![];}var _0x50298d=_0x957986[0x0],_0x2a1017=_0x2212ed+_0x50298d,_0x1838c0=_0x3b38['OYlcmI'][_0x2a1017];return!_0x1838c0?(_0x3b38fe=_0x3b38['yuWtEG'](_0x3b38fe),_0x3b38['OYlcmI'][_0x2a1017]=_0x3b38fe):_0x3b38fe=_0x1838c0,_0x3b38fe;}__name(viewportDeviceConflict,'viewportDeviceConflict');var RetryReasonSchema=_0x6719d3['enum']([_0x328995(0xa7),_0x328995(0xbe),_0x328995(0xaf)]),RetryConfigSchema=strictObject({'count':_0x6719d3['number']()['int']()[_0x328995(0xf0)](0x0)[_0x328995(0xf7)](0xa),'on':_0x6719d3[_0x328995(0xa8)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x6719d3[_0x328995(0xbc)](!![])[_0x328995(0x100)](!![]),'tier2':_0x6719d3[_0x328995(0xdc)](),'tier3':strictObject({'network':_0x6719d3['boolean'](),'video':_0x6719d3[_0x328995(0xdc)]()}),'retention':strictObject({'runs':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)](),'days':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)]()}),'storageDir':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1),'pageHtml':_0x6719d3['enum'](['redacted',_0x328995(0xd1)])}),DialogPolicySchema=_0x6719d3[_0x328995(0xa6)]([_0x328995(0xd3),'dismiss',_0x328995(0xa9)]),LinterRuleIdSchema=_0x6719d3[_0x328995(0xa6)](['lint:deep-css','lint:xpath','lint:obfuscated-class',_0x328995(0xdb),_0x328995(0x102),_0x328995(0xb8),_0x328995(0xd8),'lint:mustache-in-dsl',_0x328995(0xa1),'lint:regex-invalid',_0x328995(0xa2),'lint:api-call-file-body',_0x328995(0x101),_0x328995(0xf2),_0x328995(0xbd),_0x328995(0xf6),_0x328995(0x9b),'lint:one-test-per-file',_0x328995(0xff),'lint:skip-outside-test','lint:set-test-timeout-outside-test','lint:filter-unknown-option','validator:unknown-function','validator:arity',_0x328995(0xcb),_0x328995(0xa3),_0x328995(0xc4),_0x328995(0xf9),_0x328995(0xc7),_0x328995(0xe5),_0x328995(0xa5),'validator:var-shape','validator:unsupported-statement','validator:unsupported-expression',_0x328995(0xe8),_0x328995(0xf3),_0x328995(0xd0),'validator:wrapped-format']),LinterSeveritySchema=_0x6719d3[_0x328995(0xa6)](['off',_0x328995(0xca),_0x328995(0xfe)]),LinterConfigSchema=strictObject({'enabled':_0x6719d3[_0x328995(0xdc)](),'rules':_0x6719d3[_0x328995(0xe9)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x6719d3['boolean']()[_0x328995(0x100)](!![]),'concurrency':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)]()[_0x328995(0x100)](0x1)}),ScheduleSchema=strictObject({'collection':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1),'cron':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1),'env':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1)[_0x328995(0xf8)](),'prepare':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1)['optional']()}),McpConfigSchema=strictObject({'transport':_0x6719d3['literal'](_0x328995(0x103))}),SandboxConfigSchema=strictObject({'shellCwd':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf8)](),'shellTimeoutMs':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)]()[_0x328995(0xf8)](),'exportSecrets':_0x6719d3[_0x328995(0xa8)](_0x6719d3[_0x328995(0xfb)]())[_0x328995(0xf8)](),'database':_0x6719d3[_0x328995(0xfb)]()['optional'](),'apiBaseUrl':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xb9)]()['optional'](),'uploadDir':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf8)](),'readRoots':_0x6719d3['array'](_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1))[_0x328995(0xf8)]()}),WebServerConfigSchema=strictObject({'command':_0x6719d3['string']()['min'](0x1),'url':_0x6719d3[_0x328995(0xfb)]()['url'](),'reuseExistingServer':_0x6719d3[_0x328995(0xdc)]()[_0x328995(0x100)](!![]),'timeoutMs':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)]()['default'](0xea60)}),WebServersConfigSchema=_0x6719d3[_0x328995(0xfd)]([WebServerConfigSchema,_0x6719d3[_0x328995(0xa8)](WebServerConfigSchema)[_0x328995(0xf0)](0x1)])['transform'](_0x4f057c=>Array[_0x328995(0xa0)](_0x4f057c)?_0x4f057c:[_0x4f057c])[_0x328995(0xd6)]((_0x502e42,_0x226710)=>{var _0x19861f={_0x2eee3c:0xe1,_0x20a514:0xab,_0x215b76:0xb9};const _0x179a21=new Set();_0x502e42['forEach']((_0x2da4f9,_0x2d864c)=>{var _0x5cf211=_0x3b38;_0x179a21[_0x5cf211(_0x19861f._0x2eee3c)](_0x2da4f9[_0x5cf211(0xb9)])&&_0x226710[_0x5cf211(0xcd)]({'code':_0x6719d3['ZodIssueCode'][_0x5cf211(_0x19861f._0x20a514)],'path':[_0x2d864c,_0x5cf211(_0x19861f._0x215b76)],'message':_0x5cf211(0x9c)+_0x2d864c+_0x5cf211(0xae)+_0x2da4f9[_0x5cf211(0xb9)]+_0x5cf211(0xef)}),_0x179a21[_0x5cf211(0xe2)](_0x2da4f9[_0x5cf211(0xb9)]);});}),EnvConfigSchema=strictObject({'shared':_0x6719d3[_0x328995(0xa8)](_0x6719d3[_0x328995(0xfb)]())[_0x328995(0x100)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x6719d3['string']()[_0x328995(0xb9)]()['optional'](),'webServer':WebServersConfigSchema[_0x328995(0xf8)](),'generate':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1)[_0x328995(0xf8)](),'browsers':_0x6719d3[_0x328995(0xa8)](BrowserSchema)[_0x328995(0xf0)](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x328995(0xf8)](),'device':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1)[_0x328995(0xf8)](),'timezone':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xcf)](isTimeZone,_0x4add3d=>({'message':_0x328995(0xc0)+_0x4add3d+_0x328995(0xba)}))[_0x328995(0xf8)](),'locale':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xcf)](isLocale,_0x1aa8cf=>({'message':_0x328995(0xd2)+_0x1aa8cf+'\x22\x20—\x20expected\x20a\x20BCP\x2047\x20tag\x20such\x20as\x20\x22es-ES\x22'}))[_0x328995(0xf8)](),'maxContexts':_0x6719d3['number']()['int']()[_0x328995(0x9e)]()['optional'](),'launch':LaunchConfigSchema[_0x328995(0xf8)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf8)](),'testDir':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1),'helpersDir':_0x6719d3[_0x328995(0xfb)]()[_0x328995(0xf0)](0x1),'defaultTimeoutMs':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)](),'defaultNavigationTimeoutMs':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()['positive'](),'teardownTimeoutMs':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)]()['optional'](),'testTimeoutMs':_0x6719d3[_0x328995(0xad)]()[_0x328995(0xeb)]()[_0x328995(0x9e)]()[_0x328995(0xf8)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x6719d3[_0x328995(0xa8)](ScheduleSchema)[_0x328995(0x100)]([]),'sandbox':SandboxConfigSchema})['superRefine']((_0x16d36d,_0x2d904b)=>{var _0xabbca9={_0x44187c:0xf1,_0x51cf7c:0xf4,_0x133ac3:0xcd,_0x2df6f4:0xd4},_0x17d272=_0x328995;const _0x1c5fc8=viewportDeviceConflict(_0x16d36d[_0x17d272(_0xabbca9._0x44187c)],_0x16d36d[_0x17d272(_0xabbca9._0x51cf7c)]);_0x1c5fc8!==void 0x0&&_0x2d904b[_0x17d272(_0xabbca9._0x133ac3)]({'code':_0x6719d3[_0x17d272(_0xabbca9._0x2df6f4)][_0x17d272(0xab)],'path':['viewport'],'message':_0x1c5fc8});});function isTimeZone(_0x5d213f){var _0x455f37={_0xf6902a:0x9a,_0x375bb6:0x9d},_0x26f7de=_0x328995;try{return new Intl[(_0x26f7de(0xb7))](_0x26f7de(_0x455f37._0xf6902a),{'timeZone':_0x5d213f}),_0x5d213f[_0x26f7de(_0x455f37._0x375bb6)]>0x0;}catch{return![];}}__name(isTimeZone,'isTimeZone');function isLocale(_0x3f7338){var _0x16b0d6=_0x328995;try{return Intl[_0x16b0d6(0xd5)](_0x3f7338)['length']===0x1;}catch{return![];}}__name(isLocale,'isLocale');var DEFAULT_CONFIG={'browsers':['chromium'],'retry':{'count':0x0,'on':[_0x328995(0xa7)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x328995(0xce),'pageHtml':_0x328995(0xcc)},'dialogPolicy':_0x328995(0xd3),'testDir':_0x328995(0xec),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x328995(0xca),'lint:xpath':_0x328995(0xca),'lint:obfuscated-class':_0x328995(0xca),'lint:pause-explicit':_0x328995(0xca),'lint:disambig-by-index':_0x328995(0xfa),'lint:evaluate-discouraged':_0x328995(0xca),'lint:scenario-in-root':'error','lint:mustache-in-dsl':'error','lint:goto-concat':_0x328995(0xca),'lint:regex-invalid':_0x328995(0xfe),'lint:echo-assert':'warn','lint:lint-ok-missing-reason':_0x328995(0xca),'lint:flow-returns-value':_0x328995(0xca),'lint:legacy-layout':_0x328995(0xca),'lint:external-variable-undeclared':'error','lint:env-host-from-base':_0x328995(0xfe),'lint:one-test-per-file':_0x328995(0xca),'lint:shadows-dsl-function':'warn','lint:skip-outside-test':_0x328995(0xfe),'lint:set-test-timeout-outside-test':'error','lint:filter-unknown-option':_0x328995(0xfe),'validator:unknown-function':_0x328995(0xfe)}},'env':{'shared':[]},'mcp':{'transport':_0x328995(0x103)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
package/dist/driver/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BoundingBox, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, N as NetworkEntry, W as WebDriver, b as LaunchOptions, c as ContextOptions, D as DriverContext, A as AttachOptions } from '../interfaces-
|
|
2
|
-
export { d as ActionTimeout, e as CheckOptions, f as ClickOptions, g as CookieOptions, h as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, i as NavigationOptions, j as PressOptions, R as ReloadOptions, k as SelectOptions, V as Viewport, l as ViewportSize, m as WaitOptions, n as WaitState } from '../interfaces-
|
|
1
|
+
import { B as BoundingBox, I as ImageSize, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, N as NetworkEntry, W as WebDriver, b as LaunchOptions, c as ContextOptions, D as DriverContext, A as AttachOptions } from '../interfaces-D5ePwBX6.js';
|
|
2
|
+
export { d as ActionTimeout, e as CheckOptions, f as ClickOptions, g as CookieOptions, h as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, i as NavigationOptions, j as PressOptions, R as ReloadOptions, k as SelectOptions, V as Viewport, l as ViewportSize, m as WaitOptions, n as WaitState } from '../interfaces-D5ePwBX6.js';
|
|
3
3
|
import '@unotest/protocol';
|
|
4
4
|
import '../config/schema.js';
|
|
5
5
|
import 'zod';
|
|
@@ -34,6 +34,9 @@ interface FakeBehavior {
|
|
|
34
34
|
boundingBoxByDefault?: BoundingBox | null;
|
|
35
35
|
/** Default isDisabled() response. Default: false. */
|
|
36
36
|
isDisabledByDefault?: boolean;
|
|
37
|
+
/** Default imageSize() response — null = broken / no src. Default: a
|
|
38
|
+
* 100×100 image. */
|
|
39
|
+
imageSizeByDefault?: ImageSize | null;
|
|
37
40
|
/** Per-property computedStyle(loc, property) response. Default: "". */
|
|
38
41
|
computedStyleByProperty?: Record<string, string>;
|
|
39
42
|
/** runningAnimations(loc) response, one per call in order; the last
|
|
@@ -64,6 +67,9 @@ interface FakeBehavior {
|
|
|
64
67
|
* when unspecified) for tests that exercise a format fallback. Default:
|
|
65
68
|
* the literal "fake-png"; tests that read dimensions seed a real PNG header. */
|
|
66
69
|
screenshotBytes?: Buffer | ((type: ScreenshotOptions["type"]) => Buffer);
|
|
70
|
+
/** What a context's close() waits on — a promise that never settles is
|
|
71
|
+
* a browser that never lets the context go. Absent: closes at once. */
|
|
72
|
+
contextCloseResult?: Promise<void>;
|
|
67
73
|
/** Where masks lie in a capture (`boxesInCapture`). Default: none. */
|
|
68
74
|
captureBoxes?: (locs: readonly LocatorValue[], frame: CaptureFrame) => CaptureRect[];
|
|
69
75
|
/** What page.evaluate() resolves to — e.g. an OutlineTree for a capture
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x573838=_0x4026;(function(_0x587d4d,_0x5ec474){const _0x6c2606={_0x47aff3:0x2a8,_0x497eca:0x287,_0x965a99:0x1f7,_0x3e6423:0x215,_0x437837:0x1e3,_0x10964a:0x286},_0x42879b=_0x4026,_0x18a303=_0x587d4d();while(!![]){try{const _0x232b49=parseInt(_0x42879b(0x2a9))/0x1+-parseInt(_0x42879b(_0x6c2606._0x47aff3))/0x2*(parseInt(_0x42879b(0x249))/0x3)+parseInt(_0x42879b(0x277))/0x4+parseInt(_0x42879b(_0x6c2606._0x497eca))/0x5*(parseInt(_0x42879b(_0x6c2606._0x965a99))/0x6)+-parseInt(_0x42879b(_0x6c2606._0x3e6423))/0x7+-parseInt(_0x42879b(0x1d7))/0x8+parseInt(_0x42879b(_0x6c2606._0x437837))/0x9*(parseInt(_0x42879b(_0x6c2606._0x10964a))/0xa);if(_0x232b49===_0x5ec474)break;else _0x18a303['push'](_0x18a303['shift']());}catch(_0x1d1e48){_0x18a303['push'](_0x18a303['shift']());}}}(_0x2be6,0x6b16f));var __defProp=Object[_0x573838(0x256)],__name=(_0x1b02e1,_0xc13def)=>__defProp(_0x1b02e1,_0x573838(0x204),{'value':_0xc13def,'configurable':!![]});import{writeFile}from'fs/promises';function subscribe(_0x3057a3,_0x3d02e9){const _0x44b2a4=_0x573838;return _0x3057a3[_0x44b2a4(0x20d)](_0x3d02e9),()=>{const _0x3fede0=_0x44b2a4;_0x3057a3[_0x3fede0(0x24b)](_0x3d02e9);};}__name(subscribe,_0x573838(0x247));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0x573838(0x233));}},TimeoutError=class extends UnotestError{static{__name(this,_0x573838(0x1d9));}},ClockNotInstalledError=class extends DriverError{static{__name(this,'ClockNotInstalledError');}constructor(){const _0x5244ba={_0x2452bb:0x22d},_0x2c77a5=_0x573838;super(_0x2c77a5(_0x5244ba._0x2452bb),{});}},NO_CLOCK={'freeze':__name(()=>Promise[_0x573838(0x217)](new ClockNotInstalledError()),_0x573838(0x218)),'tick':__name(()=>Promise['reject'](new ClockNotInstalledError()),_0x573838(0x1d0)),'run':__name(()=>Promise[_0x573838(0x217)](new ClockNotInstalledError()),_0x573838(0x22f)),'frozen':__name(()=>![],_0x573838(0x267))};function firstUnhandedPage(_0x49c6ab,_0x5ec3b3){const _0x50efd1=_0x573838;return _0x49c6ab['findIndex'](_0x44e141=>!_0x5ec3b3[_0x50efd1(0x250)](_0x44e141));}__name(firstUnhandedPage,_0x573838(0x2c7));function claimNewPage(_0x18f56e,_0x49c842,_0x1fdbfe){const _0xf946c5={_0x31441e:0x2b0,_0x3fa335:0x262,_0x50b18a:0x266},_0x4f8199=_0x573838,_0x35ecde=firstUnhandedPage(_0x18f56e,_0x49c842);if(_0x35ecde<0x0){const _0x26f396=_0x18f56e[_0x4f8199(0x1ee)];throw new TimeoutError(_0x4f8199(0x1d8)+_0x1fdbfe+_0x4f8199(_0xf946c5._0x31441e)+_0x26f396+_0x4f8199(_0xf946c5._0x3fa335)+(_0x26f396===0x1?'':'s')+_0x4f8199(_0xf946c5._0x50b18a),{'timeoutMs':_0x1fdbfe,'open':_0x26f396});}return _0x49c842[_0x4f8199(0x20d)](_0x18f56e[_0x35ecde]),_0x35ecde;}__name(claimNewPage,_0x573838(0x1d4));var PageHistory=class{static{__name(this,_0x573838(0x1f9));}['left']=[];[_0x573838(0x228)](_0x151947,_0x3fce84,_0x236e00){const _0x519863={_0x5416b9:0x1e7},_0x20fb79=_0x573838,_0x2bc770=_0x151947[_0x3fce84];if(!_0x2bc770||_0x2bc770===_0x236e00)return;const _0x4089e6=this[_0x20fb79(_0x519863._0x5416b9)]['filter'](_0x545d66=>_0x545d66!==_0x2bc770&&_0x151947[_0x20fb79(0x1f6)](_0x545d66));this[_0x20fb79(0x1e7)]['splice'](0x0,this['left'][_0x20fb79(0x1ee)],..._0x4089e6,_0x2bc770);}[_0x573838(0x230)](_0x15c0ce,_0x4a6cb7,_0x9eded2){const _0x3e16e1={_0x3b4e36:0x1ee,_0x1568a2:0x279,_0x48a684:0x1e7,_0x54ca65:0x29d,_0x462e3a:0x25f},_0x3c1a2e=_0x573838,_0x4da1c9=_0x15c0ce[_0x9eded2];if(!_0x4da1c9)throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x9eded2,'available':_0x15c0ce[_0x3c1a2e(_0x3e16e1._0x3b4e36)]});if(_0x15c0ce[_0x3c1a2e(0x1ee)]===0x1)throw new DriverError(_0x3c1a2e(0x1fb),{'index':_0x9eded2});const _0x44417a=_0x15c0ce['filter'](_0x15d4cf=>_0x15d4cf!==_0x4da1c9),_0x363884=_0x15c0ce[_0x4a6cb7],_0x5a4a63=this[_0x3c1a2e(0x1e7)][_0x3c1a2e(_0x3e16e1._0x1568a2)](_0x1305a2=>_0x1305a2!==_0x4da1c9);this[_0x3c1a2e(_0x3e16e1._0x48a684)][_0x3c1a2e(0x237)](0x0,this['left'][_0x3c1a2e(0x1ee)],..._0x5a4a63);if(_0x363884&&_0x363884!==_0x4da1c9)return{'closing':_0x4da1c9,'nextActive':_0x44417a[_0x3c1a2e(0x29d)](_0x363884)};for(let _0x5d5a7a=this[_0x3c1a2e(_0x3e16e1._0x48a684)]['length']-0x1;_0x5d5a7a>=0x0;_0x5d5a7a--){const _0x53300b=_0x44417a[_0x3c1a2e(_0x3e16e1._0x54ca65)](this[_0x3c1a2e(_0x3e16e1._0x48a684)][_0x5d5a7a]);if(_0x53300b>=0x0)return{'closing':_0x4da1c9,'nextActive':_0x53300b};}return{'closing':_0x4da1c9,'nextActive':Math[_0x3c1a2e(_0x3e16e1._0x462e3a)](_0x9eded2-0x1,0x0)};}},NotRecordingError=class extends DriverError{static{__name(this,_0x573838(0x21d));}constructor(_0x208863){const _0x44d994={_0x6b9a0d:0x2c6,_0xe625b:0x258},_0x1a04b4=_0x573838;super(_0x1a04b4(_0x44d994._0x6b9a0d)+JSON[_0x1a04b4(0x258)](_0x208863)+':\x20mock\x20it\x20first\x20with\x20mockRoute('+JSON[_0x1a04b4(_0x44d994._0xe625b)](_0x208863)+',\x20{abort:\x20true,\x20record:\x20true}).\x20Without\x20it\x20a\x20check\x20for\x20requests\x20there\x20would\x20pass\x20having\x20watched\x20nothing.',{'glob':_0x208863});}},RequestWaitTimeoutError=class extends TimeoutError{static{__name(this,_0x573838(0x227));}constructor(_0x2c3316,_0x3a4f05){const _0x52b5bb={_0x4b842a:0x258,_0x190c62:0x1ec,_0x4cd2a9:0x2cc},_0x70f92c=_0x573838;super(_0x70f92c(0x290)+JSON[_0x70f92c(_0x52b5bb._0x4b842a)](_0x2c3316)+_0x70f92c(_0x52b5bb._0x190c62)+_0x3a4f05+_0x70f92c(_0x52b5bb._0x4cd2a9),{'glob':_0x2c3316,'timeoutMs':_0x3a4f05});}},RouteJournal=class _RouteJournal{constructor(_0x503389=Date['now']){this['now']=_0x503389;}['now'];static{__name(this,_0x573838(0x289));}static ['QUEUE_MAX']=0x1f4;[_0x573838(0x20a)]=new Map();['queued']=new Map();[_0x573838(0x23d)]=new Map();[_0x573838(0x2b7)]=new Map();['set'](_0x1349c3,_0x462338){const _0x7dcf3e={_0x2657a1:0x2aa},_0x5bce5a=_0x573838;this[_0x5bce5a(0x20a)][_0x5bce5a(0x2aa)](_0x1349c3,_0x462338);if(!this['queued']['has'](_0x1349c3))this[_0x5bce5a(0x1fd)][_0x5bce5a(0x2aa)](_0x1349c3,[]);_0x462338[_0x5bce5a(0x231)]==='abort'&&_0x462338[_0x5bce5a(0x252)]&&!this[_0x5bce5a(0x2b7)][_0x5bce5a(0x250)](_0x1349c3)&&this[_0x5bce5a(0x2b7)][_0x5bce5a(_0x7dcf3e._0x2657a1)](_0x1349c3,[]);}[_0x573838(0x24b)](_0x5aae56){const _0x2f3292={_0x398d93:0x2a0,_0x39f755:0x250,_0x320177:0x24b,_0x24a05a:0x1fd,_0x1b9853:0x24b},_0xc45fa7=_0x573838,_0x451372=_0x5aae56===void 0x0?[...this[_0xc45fa7(0x20a)][_0xc45fa7(_0x2f3292._0x398d93)]()]:this[_0xc45fa7(0x20a)][_0xc45fa7(_0x2f3292._0x39f755)](_0x5aae56)?[_0x5aae56]:[];for(const _0xfc0266 of _0x451372){this[_0xc45fa7(0x20a)][_0xc45fa7(_0x2f3292._0x320177)](_0xfc0266),this[_0xc45fa7(_0x2f3292._0x24a05a)][_0xc45fa7(_0x2f3292._0x1b9853)](_0xfc0266);}return _0x451372;}[_0x573838(0x239)](_0x2dbb7f){const _0x2ee7e8=_0x573838;return this[_0x2ee7e8(0x20a)]['get'](_0x2dbb7f);}['mocked'](_0x5d4fe7){const _0xe08e8f={_0x418086:0x20a,_0x1bc4d4:0x250},_0x11550d=_0x573838;return this[_0x11550d(_0xe08e8f._0x418086)][_0x11550d(_0xe08e8f._0x1bc4d4)](_0x5d4fe7);}[_0x573838(0x26f)](_0x5296bb,_0x4a3662){const _0x2f07f1={_0x18db1e:0x23d,_0x24e4c8:0x1ee,_0x46aa6b:0x207,_0x14b99c:0x244},_0x1a5459=_0x573838,_0x2ffb47=this[_0x1a5459(_0x2f07f1._0x18db1e)][_0x1a5459(0x2af)](_0x5296bb)?.['shift']();if(_0x2ffb47){_0x2ffb47(_0x4a3662);return;}const _0x7a4b69=this[_0x1a5459(0x1fd)]['get'](_0x5296bb);if(!_0x7a4b69)return;_0x7a4b69['push'](_0x4a3662);if(_0x7a4b69[_0x1a5459(_0x2f07f1._0x24e4c8)]>_RouteJournal[_0x1a5459(_0x2f07f1._0x46aa6b)])_0x7a4b69[_0x1a5459(_0x2f07f1._0x14b99c)]();}[_0x573838(0x23c)](_0x203237,_0x178912){const _0x1f1b4c={_0x211d6b:0x1f2},_0x562386=_0x573838;this['stopped'][_0x562386(0x2af)](_0x203237)?.[_0x562386(_0x1f1b4c._0x211d6b)]({'url':_0x178912['url'],'method':_0x178912[_0x562386(0x1d6)],'at':this['now']()});}[_0x573838(0x248)](_0x454f97){const _0x2e0382={_0x1a95b2:0x2af},_0x491b28=_0x573838,_0x17480f=this['stopped'][_0x491b28(_0x2e0382._0x1a95b2)](_0x454f97);if(!_0x17480f)throw new NotRecordingError(_0x454f97);return _0x17480f;}[_0x573838(0x243)](_0x5b474c,_0x5efaae){const _0x5d57ad={_0x1caf77:0x1fd,_0x315650:0x2af},_0x4b5b3f={_0x52da7c:0x23d,_0x52b693:0x2af,_0xa3d14b:0x1f2},_0x1df531=_0x573838,_0x1951de=this[_0x1df531(_0x5d57ad._0x1caf77)][_0x1df531(_0x5d57ad._0x315650)](_0x5b474c)?.[_0x1df531(0x244)]();if(_0x1951de)return Promise[_0x1df531(0x27a)](_0x1951de);return new Promise((_0xe35811,_0x34c38b)=>{const _0x47e3e9={_0x507896:0x23d,_0x362008:0x2af,_0x52481f:0x237},_0xcbd853=_0x1df531,_0x219a0c=__name(_0x3d1065=>{clearTimeout(_0x577388),_0xe35811(_0x3d1065);},_0xcbd853(0x224)),_0x577388=setTimeout(()=>{const _0x51e465=_0xcbd853,_0x1f5eaf=this[_0x51e465(_0x47e3e9._0x507896)][_0x51e465(_0x47e3e9._0x362008)](_0x5b474c)??[];_0x1f5eaf[_0x51e465(_0x47e3e9._0x52481f)](_0x1f5eaf[_0x51e465(0x29d)](_0x219a0c),0x1),_0x34c38b(new RequestWaitTimeoutError(_0x5b474c,_0x5efaae));},_0x5efaae),_0x5108eb=this[_0xcbd853(_0x4b5b3f._0x52da7c)][_0xcbd853(_0x4b5b3f._0x52b693)](_0x5b474c)??[];_0x5108eb[_0xcbd853(_0x4b5b3f._0xa3d14b)](_0x219a0c),this[_0xcbd853(_0x4b5b3f._0x52da7c)][_0xcbd853(0x2aa)](_0x5b474c,_0x5108eb);});}},DownloadQueue=class{constructor(_0x10a2d5){const _0x5bdede={_0x58a43d:0x22e},_0x9119b3=_0x573838;this[_0x9119b3(_0x5bdede._0x58a43d)]=_0x10a2d5;}[_0x573838(0x22e)];static{__name(this,_0x573838(0x1f1));}[_0x573838(0x264)]=[];[_0x573838(0x206)]=new Set();[_0x573838(0x254)]=new Set();[_0x573838(0x1f2)](_0x83e587){const _0x412b3f={_0x148e2a:0x264,_0x3e4d39:0x1f2},_0x5b756f=_0x573838;this[_0x5b756f(_0x412b3f._0x148e2a)][_0x5b756f(_0x412b3f._0x3e4d39)](_0x83e587);for(const _0xedc22 of this[_0x5b756f(0x254)])_0xedc22();}async[_0x573838(0x24c)](_0x12a225,_0x4db9b3){const _0x87c373={_0xb537ac:0x243,_0x5534bc:0x20d,_0x445d75:0x257,_0x5f514b:0x22e,_0x2519d4:0x2ca},_0x1f92a7=_0x573838,_0x395c5a=__name(()=>this[_0x1f92a7(0x264)][_0x1f92a7(0x20f)](_0x3efafe=>!this[_0x1f92a7(0x206)][_0x1f92a7(0x250)](_0x3efafe)&&(_0x4db9b3===void 0x0||_0x4db9b3[_0x1f92a7(0x297)](_0x3efafe[_0x1f92a7(0x204)]))),_0x1f92a7(_0x87c373._0xb537ac));let _0x28c02e=_0x395c5a();if(_0x28c02e===void 0x0){let _0x194b46=__name(()=>{},_0x1f92a7(0x2cd));const _0x588fa3=new Promise(_0x2f9616=>{const _0x3555b2=_0x1f92a7;_0x194b46=__name(()=>{if(_0x395c5a()!==void 0x0)_0x2f9616();},_0x3555b2(0x2cd));});this['arrivals'][_0x1f92a7(_0x87c373._0x5534bc)](_0x194b46);try{await Promise[_0x1f92a7(_0x87c373._0x445d75)]([_0x588fa3,this[_0x1f92a7(_0x87c373._0x5f514b)](_0x12a225)]);}finally{this['arrivals'][_0x1f92a7(0x24b)](_0x194b46);}_0x28c02e=_0x395c5a();}if(_0x28c02e===void 0x0)throw this[_0x1f92a7(_0x87c373._0x2519d4)](_0x12a225,_0x4db9b3);return this[_0x1f92a7(0x206)][_0x1f92a7(_0x87c373._0x5534bc)](_0x28c02e),_0x28c02e;}[_0x573838(0x2ca)](_0x135592,_0x2e9dc5){const _0x38a9e5={_0x2f2d21:0x24f,_0x4acb7d:0x1da,_0x41dafc:0x2cc},_0x5b152e=_0x573838,_0x580392=this['seen'][_0x5b152e(0x279)](_0x235ef4=>!this[_0x5b152e(0x206)][_0x5b152e(0x250)](_0x235ef4))[_0x5b152e(0x222)](_0x444776=>_0x444776[_0x5b152e(0x204)]),_0x5a99d6=_0x2e9dc5===void 0x0?_0x5b152e(0x26e):'no\x20download\x20whose\x20name\x20would\x20'+_0x2e9dc5[_0x5b152e(0x2b2)](),_0x34777b=_0x580392[_0x5b152e(0x1ee)]>0x0?_0x5b152e(_0x38a9e5._0x2f2d21)+_0x580392[_0x5b152e(0x222)](_0xffc9a2=>JSON[_0x5b152e(0x258)](_0xffc9a2))[_0x5b152e(_0x38a9e5._0x4acb7d)](',\x20'):'';return new TimeoutError(_0x5a99d6+_0x5b152e(0x219)+_0x135592+_0x5b152e(_0x38a9e5._0x41dafc)+_0x34777b,{'timeoutMs':_0x135592,'untaken':_0x580392,..._0x2e9dc5!==void 0x0?{'name':_0x2e9dc5['describe']()}:{}});}};function matcherMatches(_0x1ebcc0,_0x162f8a,_0x36c853={}){const _0x45f88c={_0xc9a6a6:0x294},_0x3a1c0b=_0x573838;if(typeof _0x162f8a==='string')return _0x36c853['exact']??!![]?_0x1ebcc0===_0x162f8a:_0x1ebcc0[_0x3a1c0b(0x1f6)](_0x162f8a);return new RegExp(_0x162f8a[_0x3a1c0b(0x235)],_0x162f8a[_0x3a1c0b(_0x45f88c._0xc9a6a6)])['test'](_0x1ebcc0);}__name(matcherMatches,_0x573838(0x20c));var ServiceWorkerNeedsProfileError=class extends DriverError{static{__name(this,_0x573838(0x1e5));}constructor(){const _0x2932e4=_0x573838;super(_0x2932e4(0x29a),{});}},ServiceWorkerWaitTimeoutError=class extends TimeoutError{static{__name(this,_0x573838(0x23a));}constructor(_0x679df8,_0x150fd4,_0x14eba4){const _0x49c906={_0xe31c6d:0x268},_0x170766=_0x573838,_0x57057d=_0x150fd4===void 0x0?'':_0x170766(0x1ff)+JSON[_0x170766(0x258)](_0x150fd4),_0x4cb57c=_0x14eba4['length']===0x0?'':_0x170766(0x1cf)+_0x14eba4['join'](',\x20')+'.';super('no\x20service\x20worker'+_0x57057d+_0x170766(0x27c)+_0x679df8+_0x170766(_0x49c906._0xe31c6d)+_0x4cb57c,{'timeoutMs':_0x679df8,'seen':_0x14eba4});}};function _0x2be6(){const _0x5b4da0=['C2vLBG','C2nYB2XSsw50B1zPzxC','ig9Wzw4','zNjVEMvU','ig1ZlG','BMv0D29YAY53ywL0rM9YuMvXDwvZDa','y2XPy2S','zNjHBwvtDgfJAW','AxneAxnHyMXLza','D3nfBMrWB2LUDa','BM8Gzg93BMXVywq','zgvSAxzLCG','C2f2zufZ','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','Aw5UzxjuzxH0qNLezwzHDwX0','Dgv4DenVBNrLBNrcEurLzMf1Bhq','D2fPDezVCKfUAw1HDgLVBNm','y2XPCgjVyxjKugfZDgu','BMv0D29YAY5TB2nR','ndGYotq0BfHnu01g','D29YA2vYtwf0y2HLCW','zMLSDgvY','CMvZB2X2zq','zxzHBhvHDgvpBKXVy2f0B3i','ihn0yxj0zwqGD2L0AgLUia','zMfRzsb0AxrSzq','y2HLy2TLzfn0yxrLqNLezwzHDwX0','lNbHz2u','CgfNzxm','CgfNzunVBNnVBgu','D2fPDezVCLrLEhq','BMv3ugfNzq','CNvUBMLUz0fUAw1HDgLVBNm','y2XVy2TgCM96zw4','odbKyK5JEMe','ndvTBNvzCeC','Bg9JywXtDg9YywDL','uM91DgvkB3vYBMfS','zw50zxjgCMfTzq','D2fPDezVCG','Cg9WDxbpBKnSAwnR','B25tDgfYDa','y2HLy2TLzfn0yxrL','y2XVy2SUCNvU','BM8GCMvXDwvZDcb0BYa','yMvOyxzPB3i','zNvUy3rPB24','y2XVy2SUzNjLzxPL','zMXHz3m','AgfUzgvKugfNzxm','BMv3q29UDgv4Da','Bwf0y2HLCW','B25bzNrLCKnSAwnR','CMvM','BM8GzxH0zw5ZAw9UihnLCNzPy2uGD29YA2vYigHLCMu6igv4DgvUC2LVBNmGBg9HzcbVBMX5igLUDg8GysbICM93C2vYihn0yxj0zwqGD2L0AcbHihbYB2zPBguG4OcuihnLDcbSyxvUy2GUDxnLCKrHDgfeAxiGkgfUzcb0AguGls1SB2fKlwv4DgvUC2LVBIbHCMDZksbPBIb1BM90zxn0lMnVBMzPzY4GqsbYDw4GB24GysbIB3GGAgfZig5VihbYB2zPBguSihnVigL0igHHCYbUBYbLEhrLBNnPB25ZigvPDgHLCI4','BMv0D29YA0vUDhjPzxm','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','Aw5KzxHpzG','D2fPDezVCKXVywrtDgf0zq','D2fPDezVCLjLCxvLC3q','A2v5CW','AxnwAxnPyMXLqNLezwzHDwX0','zw1PDezHA2vqB3b1Ca','C2nYzwvUC2HVDej5DgvZ','zMLSBa','z29cywnR','DxbSB2fKrMLSzq','AgLZDg9YEq','mZaYmNjoB1zJtW','mZy1mJG1BM1fBNDP','C2v0','DxjS','CMvSB2fK','C2f2zvn0B3jHz2vtDgf0zq','D29YA2vYvxjSCW','z2v0','ig1Zlca','C2nVCgu','zgvZy3jPyMu','D2fPDezVCK5HDMLNyxrPB24','y29UC29SzuvUDhjPzxm','Dw5TB2nR','C29Tzq','C3rVChbLza','y2XVC2vqywDL','zw1PDezHA2vszxf1zxn0','iJ48l2rPDJ4','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','D2fPDezVCK5LD1bHz2u','Aw5PDgLHBfvYBa','DgLTzw91De1Z','y29TChv0zwrtDhLSzuj5uhjVCgvYDhK','C2v0q29VA2LL','CM91DgvZ','y2XVy2S','AxneAxnHyMXLzej5rgvMyxvSDa','Bgf1BMnOzwq','ywn0AxzLswr4','BM90AgLUzYbYzwnVCMrZihjLCxvLC3rZihrVia','zMLYC3rvBMHHBMrLzfbHz2u','zhjPDMvY','z290BW','BM9eB3DUBg9Hza','Cg9W','ig1Z','yxjYAxzLza','y2fWDhvYzujVEgvZ','y2XVC2vgywTLugfNzq','ifj1BM5PBMC6ia','DgLJAW','zMfRzs1WBMC','Aw5ZCgvJDevSzw1LBNq','C3rLChm','y2XHAw1ozxDqywDL','DgL0Bgu','Bwv0Ag9K','ntmXmtCYmeTjtxz1Ca','BM8GBMv3ihrHyIb3AxrOAw4G','vgLTzw91DevYCM9Y','AM9PBG','zw1PDezHA2vtzxj2AwnLv29YA2vY','yM94zxnjBKnHChr1CMu','Bgf1BMnO','B25ozxDqywDL','ywn0AxzLugfNzq','B3v0zxjiDg1SqNLszwy','y29VA2LLu3rHDgu','B3v0zxjive1m','nZC1mtK3Eurtquz4','yxr0CMLIDxrLC0j5rgvMyxvSDa','u2vYDMLJzvDVCMTLCK5LzwrZuhjVzMLSzuvYCM9Y','zxHPDezYyw1L','BgvMDa','AgfZq2XVy2S','zxzHBhvHDgvszxn1Bhq','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','BMv0D29YAY51BM1Vy2S','igLUia','yM91BMrPBMDcB3HcEurLzMf1Bhq','BgvUz3rO','ChjVzMLSzq','zxjYB3jpBK5LEhrby3rPB24','rg93BMXVywrrDwv1zq','ChvZAa','y291BNrcEurLzMf1Bhq','zwXLBwvUDeHPBNrcEvjLzG','rMfRzunVBNrLEhq','Aw5JBhvKzxm','nta1ndm0t29jELHQ','y2HLy2S','ugfNzuHPC3rVCNK','z2v0q29VA2LL','y2fUBM90ignSB3nLihrOzsbVBMX5ig9Wzw4GDgfIoIbUB3rOAw5NihDVDwXKigjLigXLzNqGDg8GzhjPDMu','C2v0vMLLD3bVCNq','CxvLDwvK','y2XVy2SUDgLJAW','ig1HDgnOAw5Nia','yM91BMrPBMDcB3G','Bwf5yMvuAhjVDW','y3jLyxrLuMvJB3jKzxi','C2nYzwvUC2HVDa','BMfTzq','ywn0AxzHDgu','DgfRzw4','uvvfvuvFtufy','z2v0tg9JywXtDg9YywDL','rMfRzvbHz2u','CMvZCg9UC2vZ','zMfRzvDVCMTLCG','Bwf0y2HLCK1HDgnOzxm','ywrK','BwLU','zMLUza','zNjHBwvezxb0Aa','y3vYCMvUDfvYBa','ywjVCNq','C2v0tg9JywXtDg9YywDL','ywjVDxq6yMXHBMS','mJmXmZqZn1b0rMPZAG','zg91yMXLq2XPy2S','CMvQzwn0','zNjLzxPL','ihDPDgHPBIa','Dw5JAgvJAW','Bg9JywXtDg9YywDLu3rHDgu','y2fSBhm','tM90uMvJB3jKAw5NrxjYB3i','D29YA2vYu3rHCNrLza','D2fPDezVCLvYBa','CMvJB3jKzxi','D2fPDezVCLnLCNzPy2vxB3jRzxi','BwfW','CNvUBMLUz0fUAw1HDgLVBNndywXSCW','D2fPDgvY','BMv3ugfNzuXPC3rLBMvYCW','D2fPDezVCKrVD25SB2fK','uMvXDwvZDfDHAxruAw1LB3v0rxjYB3i','C3DPDgnOAw5N','Ag92zxi','Dw50B3vJAgvK','Bw9JAW','zhjHz0fUzerYB3a','DgHLihbHz2uGy2XVy2SGAxmGBM90igLUC3rHBgXLzcbVBIb0AgLZigjYB3DZzxiG4OcuigL0igHHCYb0BYbIzsbPBIbWBgfJzsbIzwzVCMuGDgHLigzPCNn0ihbHz2uGBg9HzhmSig9YihrOzsbWywDLj3mGB3DUihrPBwvYCYbRzwvWihjLywWGDgLTzs4GqsbYDw4GAw5ZDgfSBhmGAxqGD2HLBIb0AguGC2nLBMfYAw8GB3iGAxrZigHLBhbLCNmGy2fSBcbJBg9JA0zYzwv6zsaVignSB2nRvgLJAYaVignSB2nRuNvUoYbVDMvYie1ducWGB3bLBIb0AguGyNjVD3nLCIb3AxrOig5LD19JB250zxH0ihTJBg9JAZOGDhj1zx0Gkg9Yigv4CgXVCMvFC3rHCNqGE2nSB2nRoIb0CNvLFsKU','C2XLzxa','CNvU','CgXHBKnSB3nL','A2LUza','ChjLC3m','tg9JyxrVCKvYCM9Y','yNjPBMDuB0zYB250','C291CMnL','zg93BMXVywrZ','C3bSAwnL','CgfNzuXPC3q','CMvZCg9UC2u','u2vYDMLJzvDVCMTLCLDHAxruAw1LB3v0rxjYB3i','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','yMXVy2S','D2fPDgvYCW','pgrPDJ48l2rPDJ4','D29YA2vYlMv2ywX1yxrL','DhLWzq','z29gB3j3yxjK','C2nYzwvUC2HVDevSzw1LBNq','BMv4Da','C2HPzNq','Aw5WDxrwywX1zq','rMfRzvDLyKrYAxzLCG','C3vIC2nYAwjL','yMXVy2TLza','otKZB3vlt2jV','Dgv4DenVBNrLBNq','zgvSzxrL','DgfRzq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','yNjVD3nLCKnVBNrLEhrjza','oYbUB3qGDgfRzw46ia','AgfZ','zxzHBhvHDgu','CMvJB3jK','zw11Bgf0zu1LzgLH','yxjYAxzHBhm','Aw5UzxjuzxH0','zgvMAw5LuhjVCgvYDhK','CMfJzq','C3rYAw5NAwz5','y2XVC2u','lNbHz2uW','AxnwAxnPyMXL','z2v0qxr0CMLIDxrL','BMv0D29YAW','C2HHCMvKqNjVD3nLCKnVBM5Ly3rLza','Bwf4','y2fSBhngB3i','y29UDgv4Dhm','ihrHyG','Aw5WDxrwywX1zuj5rgvMyxvSDa'];_0x2be6=function(){return _0x5b4da0;};return _0x2be6();}function workerMatches(_0x13968,_0x2a554d){return _0x2a554d===void 0x0||matcherMatches(_0x13968,_0x2a554d,{'exact':![]});}__name(workerMatches,_0x573838(0x278));function createRecorder(){const _0xfd8d8a=_0x573838,_0x5b9b0c=[];let _0x153638=0x0;return{'push':__name(_0x4b0acd=>_0x5b9b0c[_0xfd8d8a(0x1f2)]({..._0x4b0acd,'seq':_0x153638++}),'push'),'calls':__name(()=>_0x5b9b0c,_0xfd8d8a(0x21c))};}__name(createRecorder,_0x573838(0x202));function _0x4026(_0x3d7fba,_0x2f97ba){_0x3d7fba=_0x3d7fba-0x1cd;const _0x2be6df=_0x2be6();let _0x4026c6=_0x2be6df[_0x3d7fba];if(_0x4026['YwCXRm']===undefined){var _0x52fbc3=function(_0x83dcde){const _0x167dd0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b02e1='',_0xc13def='';for(let _0x3057a3=0x0,_0x3d02e9,_0x49c6ab,_0x5ec3b3=0x0;_0x49c6ab=_0x83dcde['charAt'](_0x5ec3b3++);~_0x49c6ab&&(_0x3d02e9=_0x3057a3%0x4?_0x3d02e9*0x40+_0x49c6ab:_0x49c6ab,_0x3057a3++%0x4)?_0x1b02e1+=String['fromCharCode'](0xff&_0x3d02e9>>(-0x2*_0x3057a3&0x6)):0x0){_0x49c6ab=_0x167dd0['indexOf'](_0x49c6ab);}for(let _0x44e141=0x0,_0x18f56e=_0x1b02e1['length'];_0x44e141<_0x18f56e;_0x44e141++){_0xc13def+='%'+('00'+_0x1b02e1['charCodeAt'](_0x44e141)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc13def);};_0x4026['fIAUUw']=_0x52fbc3,_0x4026['ghZjSo']={},_0x4026['YwCXRm']=!![];}const _0x4a6634=_0x2be6df[0x0],_0x157148=_0x3d7fba+_0x4a6634,_0x240197=_0x4026['ghZjSo'][_0x157148];return!_0x240197?(_0x4026c6=_0x4026['fIAUUw'](_0x4026c6),_0x4026['ghZjSo'][_0x157148]=_0x4026c6):_0x4026c6=_0x240197,_0x4026c6;}var FakePage=class{constructor(_0x237c13,_0x1fddac,_0x25109a,_0x172327){const _0x1d98ce={_0x31dbad:0x220,_0x1faa30:0x2b1},_0x3b31ca=_0x573838;this[_0x3b31ca(_0x1d98ce._0x31dbad)]=_0x237c13,this[_0x3b31ca(0x291)]=_0x1fddac,this[_0x3b31ca(_0x1d98ce._0x1faa30)]=_0x25109a,this['currentUrl']=_0x172327;}[_0x573838(0x220)];[_0x573838(0x291)];['scope'];static{__name(this,_0x573838(0x209));}[_0x573838(0x211)];[_0x573838(0x298)];[_0x573838(0x252)](_0x53ba9f,_0x500068){const _0x552690=_0x573838;this[_0x552690(0x220)][_0x552690(0x1f2)]({'scope':this['scope'],'method':_0x53ba9f,'args':_0x500068});}['maybeThrow'](){const _0x185b58={_0x22d9e0:0x1f0,_0xa3e442:0x291},_0x11ea9e=_0x573838;if(this['behavior'][_0x11ea9e(_0x185b58._0x22d9e0)]){const _0xd1dde9=this[_0x11ea9e(_0x185b58._0xa3e442)][_0x11ea9e(0x1f0)];this['behavior'][_0x11ea9e(0x1f0)]=void 0x0;throw _0xd1dde9;}}[_0x573838(0x2ab)](){const _0x3038fd=_0x573838;return this[_0x3038fd(0x211)];}async['title'](){const _0x3e9d72={_0x41dc1b:0x1d5,_0x201e66:0x27d},_0x10499d=_0x573838;return this[_0x10499d(0x252)](_0x10499d(_0x3e9d72._0x41dc1b),[]),_0x10499d(_0x3e9d72._0x201e66);}async[_0x573838(0x26a)](_0x51492c,_0x46ed57){const _0x49298a={_0x15d204:0x252,_0x60b32c:0x201,_0x48cdd7:0x298},_0x3d40e9=_0x573838;this[_0x3d40e9(_0x49298a._0x15d204)](_0x3d40e9(0x26a),[_0x51492c,_0x46ed57]),this[_0x3d40e9(_0x49298a._0x60b32c)](),this[_0x3d40e9(_0x49298a._0x48cdd7)]?.();}async[_0x573838(0x216)](_0x653f52,_0x11a692){const _0x21a5b9={_0x24700d:0x252,_0x3e70a2:0x216,_0x6328d4:0x201},_0x50c246=_0x573838;this[_0x50c246(_0x21a5b9._0x24700d)](_0x50c246(_0x21a5b9._0x3e70a2),[_0x653f52,_0x11a692]),this[_0x50c246(_0x21a5b9._0x6328d4)]();}async[_0x573838(0x2a4)](_0xd5f6f3,_0x578760,_0x2db66b){const _0x3151ac={_0x23bf0a:0x2a4},_0x3a0668=_0x573838;this['record'](_0x3a0668(_0x3151ac._0x23bf0a),[_0xd5f6f3,_0x578760,_0x2db66b]),this[_0x3a0668(0x201)]();}async[_0x573838(0x232)](_0x4dba77,_0x437c58,_0x1e2390){const _0x3fdce7=_0x573838;this['record']('press',[_0x4dba77,_0x437c58,_0x1e2390]),this[_0x3fdce7(0x201)]();}async['check'](_0x22f7c7,_0xc014c5){const _0x3e62c7=_0x573838;this[_0x3e62c7(0x252)](_0x3e62c7(0x1f8),[_0x22f7c7,_0xc014c5]),this[_0x3e62c7(0x201)]();}async['uncheck'](_0x337d8d,_0x25f4ba){const _0x56740a={_0x2db0dd:0x21a},_0x4fd6fd=_0x573838;this['record'](_0x4fd6fd(_0x56740a._0x2db0dd),[_0x337d8d,_0x25f4ba]),this[_0x4fd6fd(0x201)]();}async['selectOption'](_0x2a8005,_0x534977,_0x1ec729){const _0x4bc96b=_0x573838;this['record']('selectOption',[_0x2a8005,_0x534977,_0x1ec729]),this[_0x4bc96b(0x201)]();}async[_0x573838(0x229)](_0x43488f,_0x55e11d){const _0x35c205=_0x573838;this[_0x35c205(0x252)]('hover',[_0x43488f,_0x55e11d]),this[_0x35c205(0x201)]();}async[_0x573838(0x265)](_0x3c837c){const _0x4da9a4={_0x2c8a1b:0x252,_0x538217:0x265},_0x54b61e=_0x573838;this[_0x54b61e(_0x4da9a4._0x2c8a1b)](_0x54b61e(_0x4da9a4._0x538217),[_0x3c837c]),this['maybeThrow']();}async[_0x573838(0x22c)](_0x567669,_0x495c04,_0x4836d4){const _0x57991d={_0x501179:0x22c},_0x263eab=_0x573838;this['record'](_0x263eab(_0x57991d._0x501179),[_0x567669,_0x495c04,_0x4836d4]),this['maybeThrow']();}async[_0x573838(0x2a6)](_0x3cc202,_0x225781){const _0x227288={_0x2bddbc:0x252,_0x5d17d6:0x2a6},_0x4e2b29=_0x573838;this[_0x4e2b29(_0x227288._0x2bddbc)](_0x4e2b29(_0x227288._0x5d17d6),[_0x3cc202,_0x225781]),this['maybeThrow']();}async['clipboardPaste'](_0x5a3199,_0x5c278d){const _0x4b622b={_0x2d114c:0x275,_0x567f97:0x201},_0xd2aaee=_0x573838;this[_0xd2aaee(0x252)](_0xd2aaee(_0x4b622b._0x2d114c),[_0x5a3199,_0x5c278d]),this[_0xd2aaee(_0x4b622b._0x567f97)]();}async['count'](_0x269321){const _0x494738=_0x573838;return this[_0x494738(0x252)]('count',[_0x269321]),this[_0x494738(0x291)][_0x494738(0x1f3)]??0x1;}async['textContent'](_0x5d5a77){const _0x46a5ab={_0x6656ee:0x252,_0x69e04e:0x291},_0x4a4b85=_0x573838;return this[_0x4a4b85(_0x46a5ab._0x6656ee)](_0x4a4b85(0x24a),[_0x5d5a77]),this[_0x4a4b85(_0x46a5ab._0x69e04e)][_0x4a4b85(0x273)]??'';}async[_0x573838(0x255)](_0x2fd587){const _0x48bbb0={_0x2f200a:0x272,_0x22f246:0x291,_0x5deb7d:0x273},_0x2b850d=_0x573838;return this[_0x2b850d(0x252)](_0x2b850d(0x255),[_0x2fd587]),this[_0x2b850d(0x291)][_0x2b850d(_0x48bbb0._0x2f200a)]??this[_0x2b850d(_0x48bbb0._0x22f246)][_0x2b850d(_0x48bbb0._0x5deb7d)]??'';}async[_0x573838(0x245)](_0x1a343e){const _0x216686={_0x479249:0x291},_0x4c6935=_0x573838;return this[_0x4c6935(0x252)](_0x4c6935(0x245),[_0x1a343e]),this[_0x4c6935(_0x216686._0x479249)][_0x4c6935(0x263)]??'';}async[_0x573838(0x28e)](_0x1acfb4){const _0x396d4d={_0x3f3a81:0x252},_0x56b903=_0x573838;return this[_0x56b903(_0x396d4d._0x3f3a81)](_0x56b903(0x28e),[_0x1acfb4]),this['behavior'][_0x56b903(0x27e)]??null;}async[_0x573838(0x25b)](_0x1e650f){const _0x383787={_0x4558bc:0x291,_0x54dac1:0x2a1},_0x18690e=_0x573838;return this['record']('isVisible',[_0x1e650f]),this[_0x18690e(_0x383787._0x4558bc)][_0x18690e(_0x383787._0x54dac1)]??!![];}async['boundingBox'](_0x4160ca){const _0x44981c={_0x8da53b:0x252,_0x23db46:0x200,_0xee44cf:0x1ed},_0x200509=_0x573838;return this[_0x200509(_0x44981c._0x8da53b)](_0x200509(_0x44981c._0x23db46),[_0x4160ca]),this['behavior'][_0x200509(_0x44981c._0xee44cf)]===void 0x0?{'x':0x0,'y':0x0,'width':0x64,'height':0x14}:this[_0x200509(0x291)]['boundingBoxByDefault'];}[_0x573838(0x223)]=0x0;async['runningAnimations'](_0xe0c26f){const _0x16dac5={_0xfca7e7:0x252,_0x12af07:0x291,_0x41a29f:0x223,_0x3f9f27:0x1ee},_0x2a251a=_0x573838;this[_0x2a251a(_0x16dac5._0xfca7e7)](_0x2a251a(0x284),[_0xe0c26f]);const _0x4470a5=this[_0x2a251a(_0x16dac5._0x12af07)]['runningAnimationsSequence']??[0x0];return _0x4470a5[Math[_0x2a251a(0x20e)](this[_0x2a251a(_0x16dac5._0x41a29f)]++,_0x4470a5[_0x2a251a(_0x16dac5._0x3f9f27)]-0x1)]??0x0;}async[_0x573838(0x274)](_0x67e852,_0x926d7f){const _0x96aa9f=_0x573838;this[_0x96aa9f(0x252)]('waitForAnimations',[_0x67e852,_0x926d7f]);}async['computedStyle'](_0x186daf,_0x2f7b46){const _0x37cfd3={_0x490de1:0x252},_0x5593dc=_0x573838;return this[_0x5593dc(_0x37cfd3._0x490de1)]('computedStyle',[_0x186daf,_0x2f7b46]),this['behavior'][_0x5593dc(0x2bf)]?.[_0x2f7b46]??'';}async[_0x573838(0x26c)](_0x6482a0){const _0x468528={_0x3c4d87:0x2c3},_0x3ecd3f=_0x573838;return this[_0x3ecd3f(0x252)](_0x3ecd3f(0x26c),[_0x6482a0]),this['behavior'][_0x3ecd3f(_0x468528._0x3c4d87)]??![];}async[_0x573838(0x25c)](_0x3560ff,_0x828400){const _0x554c83={_0x53651b:0x252},_0x356612=_0x573838;return this[_0x356612(_0x554c83._0x53651b)]('getAttribute',[_0x3560ff,_0x828400]),this[_0x356612(0x291)][_0x356612(0x1e4)]?.[_0x828400]??null;}async[_0x573838(0x28b)](_0x4e2466,_0x5727c4){const _0x4cf668={_0x49a7a7:0x252,_0x34d27f:0x28b},_0x515bc1=_0x573838;this[_0x515bc1(_0x4cf668._0x49a7a7)](_0x515bc1(_0x4cf668._0x34d27f),[_0x4e2466,_0x5727c4]);}async[_0x573838(0x21f)](_0x2a3708,_0x38c662){const _0x17c114=_0x573838;this[_0x17c114(0x252)](_0x17c114(0x21f),[_0x2a3708,_0x38c662]);}async[_0x573838(0x253)](_0xf76c60){const _0x34125e={_0x50e366:0x252},_0x2e3555=_0x573838;this[_0x2e3555(_0x34125e._0x50e366)](_0x2e3555(0x253),[_0xf76c60]);}async[_0x573838(0x282)](_0x489d5b,_0x5eae95){const _0x386028={_0x42c6bf:0x282},_0x240d85=_0x573838;this[_0x240d85(0x252)](_0x240d85(_0x386028._0x42c6bf),[_0x489d5b,_0x5eae95]);}async['waitForNavigation'](_0x13fd6d){const _0x2c47c9={_0x207b5d:0x2b3},_0x4167f6=_0x573838;this[_0x4167f6(0x252)](_0x4167f6(_0x2c47c9._0x207b5d),[_0x13fd6d]);}async[_0x573838(0x29e)](_0x321340,_0x2fe267){const _0x14f668=_0x573838;this['record'](_0x14f668(0x29e),[_0x321340,_0x2fe267]);}async['goto'](_0x584da2,_0x3e8bdf){const _0x1705b5={_0xefaaad:0x252,_0x5d6adf:0x211},_0x4f6a0a=_0x573838;this[_0x4f6a0a(_0x1705b5._0xefaaad)](_0x4f6a0a(0x2c9),[_0x584da2,_0x3e8bdf]),this[_0x4f6a0a(_0x1705b5._0x5d6adf)]=_0x584da2;}async[_0x573838(0x2ac)](_0x2b6616){const _0x27dc4f={_0x18212b:0x252},_0x50eb2a=_0x573838;this[_0x50eb2a(_0x27dc4f._0x18212b)](_0x50eb2a(0x2ac),[_0x2b6616]);}async['goBack'](_0xe80db3){const _0x15a4f4={_0x26cb27:0x252,_0x3aa4b2:0x2a5},_0x8696a8=_0x573838;this[_0x8696a8(_0x15a4f4._0x26cb27)](_0x8696a8(_0x15a4f4._0x3aa4b2),[_0xe80db3]);}async[_0x573838(0x241)](_0x391014){const _0x3b0a0f={_0x46605d:0x241},_0xa02464=_0x573838;this[_0xa02464(0x252)](_0xa02464(_0x3b0a0f._0x46605d),[_0x391014]);}async['evaluate'](_0x4269cd){const _0x56cbf8={_0x194b22:0x252,_0x7cc568:0x251},_0x2f191f=_0x573838;return this[_0x2f191f(_0x56cbf8._0x194b22)](_0x2f191f(_0x56cbf8._0x7cc568),[_0x4269cd]),this[_0x2f191f(0x291)][_0x2f191f(0x1e9)];}async[_0x573838(0x27b)](_0x2980cc,_0x5be133,_0x3ca0d0){const _0x25db00={_0x5afb98:0x27b},_0x4fa6fb=_0x573838;return this[_0x4fa6fb(0x252)](_0x4fa6fb(_0x25db00._0x5afb98),[_0x2980cc,_0x5be133,_0x3ca0d0]),this[_0x4fa6fb(0x291)][_0x4fa6fb(0x1e9)];}async[_0x573838(0x1d2)](_0x322847){const _0xb12c17={_0x3a106f:0x252,_0xcce2cd:0x1ee,_0x5854e0:0x1d3,_0x3a7fe6:0x291},_0x31e2bf=_0x573838;this[_0x31e2bf(_0xb12c17._0x3a106f)](_0x31e2bf(0x1d2),[_0x322847]);if(_0x322847[_0x31e2bf(0x1d3)][_0x31e2bf(_0xb12c17._0xcce2cd)]!==0x1||_0x322847[_0x31e2bf(_0xb12c17._0x5854e0)][0x0][_0x31e2bf(0x231)]!=='ref')return null;const _0x5ce908=_0x322847['steps'][0x0]['ref'],_0x317f54=this[_0x31e2bf(_0xb12c17._0x3a7fe6)][_0x31e2bf(0x1f4)]?.[_0x5ce908];return _0x317f54??null;}async[_0x573838(0x203)](_0x2af636){const _0x21210e={_0x5598ce:0x203},_0x14749f=_0x573838;return this['record'](_0x14749f(_0x21210e._0x5598ce),[_0x2af636]),this['screenshotBytes'](_0x2af636?.[_0x14749f(0x240)]);}async['screenshotElement'](_0x3fcf51,_0x3b5f84){const _0x30f1a3={_0x2866d5:0x242,_0x4f425e:0x240},_0x3d14ad=_0x573838;return this[_0x3d14ad(0x252)](_0x3d14ad(_0x30f1a3._0x2866d5),[_0x3fcf51,_0x3b5f84]),this['screenshotBytes'](_0x3b5f84?.[_0x3d14ad(_0x30f1a3._0x4f425e)]);}async['boxesInCapture'](_0x458233,_0x35fd81){const _0x1d9ec5=_0x573838;return this['record'](_0x1d9ec5(0x1dc),[_0x458233,_0x35fd81]),this['behavior'][_0x1d9ec5(0x1cd)]?this['behavior'][_0x1d9ec5(0x1cd)](_0x458233,_0x35fd81):[];}[_0x573838(0x2a3)](_0x562c88){const _0x2f1e4d={_0x28e50a:0x291,_0x3ad03f:0x2a3},_0x124713=_0x573838,_0x43092f=this[_0x124713(_0x2f1e4d._0x28e50a)][_0x124713(_0x2f1e4d._0x3ad03f)];if(_0x43092f===void 0x0)return Buffer['from'](_0x124713(0x1d1));return typeof _0x43092f===_0x124713(0x292)?_0x43092f(_0x562c88):_0x43092f;}async[_0x573838(0x1e2)](_0x30009d){const _0x149000={_0x218ce7:0x1d3,_0x479f49:0x231,_0x5e4a99:0x299,_0x1b0f47:0x291,_0x23282a:0x1ea,_0x54b630:0x2ba,_0x22213e:0x23e},_0x5ea088=_0x573838;this['record'](_0x5ea088(0x1e2),[_0x30009d]);if(_0x30009d[_0x5ea088(_0x149000._0x218ce7)][_0x5ea088(0x1ee)]===0x1&&_0x30009d[_0x5ea088(0x1d3)][0x0][_0x5ea088(_0x149000._0x479f49)]===_0x5ea088(_0x149000._0x5e4a99)){const _0x49b8ea=_0x30009d[_0x5ea088(0x1d3)][0x0][_0x5ea088(_0x149000._0x5e4a99)];return this[_0x5ea088(_0x149000._0x1b0f47)][_0x5ea088(0x1e0)]?.[_0x49b8ea]??_0x5ea088(_0x149000._0x23282a)+_0x49b8ea+_0x5ea088(_0x149000._0x54b630);}return _0x5ea088(_0x149000._0x22213e);}},FAKE_SET_UP_CALLS=new Set([_0x573838(0x276),_0x573838(0x2c0),'setLocalStorage',_0x573838(0x293),_0x573838(0x1fe),_0x573838(0x28f),_0x573838(0x253),'newPage']),FakeContext=class{constructor(_0x1bc042,_0x185746,_0x114fb7,_0x2a8dd9=![]){const _0x57606e={_0x57d09e:0x2b1,_0x347913:0x28c,_0x263ab0:0x298,_0x349d99:0x238,_0x1edb87:0x295,_0x4c446a:0x21b,_0x36fc3e:0x288,_0x4d444e:0x1e1},_0x42a046=_0x573838;this[_0x42a046(0x220)]=_0x1bc042,this['behavior']=_0x185746,this[_0x42a046(_0x57606e._0x57d09e)]=_0x114fb7,this['hasClock']=_0x2a8dd9,this[_0x42a046(0x285)]=![];const _0x480617=new FakePage(_0x1bc042,_0x185746,_0x114fb7+_0x42a046(0x25a),_0x185746[_0x42a046(0x2bd)]??_0x42a046(0x214));_0x185746[_0x42a046(_0x57606e._0x347913)]&&(_0x480617[_0x42a046(_0x57606e._0x263ab0)]=()=>{const _0x2299fe=_0x42a046;this[_0x2299fe(0x2a2)](_0x185746[_0x2299fe(0x28c)]);}),this[_0x42a046(_0x57606e._0x349d99)]=[_0x480617],this[_0x42a046(_0x57606e._0x1edb87)]['add'](_0x480617),this[_0x42a046(0x2ae)]=[..._0x185746['serviceWorkers']??[]],this[_0x42a046(_0x57606e._0x4c446a)]={..._0x185746[_0x42a046(_0x57606e._0x36fc3e)]??{}},this[_0x42a046(_0x57606e._0x4d444e)]={..._0x185746['cookies']??{}};}[_0x573838(0x220)];['behavior'];['scope'];[_0x573838(0x1e8)];static{__name(this,_0x573838(0x1f5));}[_0x573838(0x285)];[_0x573838(0x238)];[_0x573838(0x2c5)]=0x0;[_0x573838(0x295)]=new WeakSet();[_0x573838(0x2a7)]=new PageHistory();[_0x573838(0x26b)]=[];[_0x573838(0x21b)];[_0x573838(0x1e1)];[_0x573838(0x225)]=new Set();[_0x573838(0x2c1)]=new RouteJournal();[_0x573838(0x236)]=new DownloadQueue(async()=>{});[_0x573838(0x2ae)];[_0x573838(0x21e)]=new Set();[_0x573838(0x252)](_0x42802b,_0x59f0ed){const _0x517bbe={_0x3d12c7:0x2b1},_0x8fde23=_0x573838;this[_0x8fde23(0x220)][_0x8fde23(0x1f2)]({'scope':this[_0x8fde23(_0x517bbe._0x3d12c7)],'method':_0x42802b,'args':_0x59f0ed});}[_0x573838(0x280)](){const _0x5e1723=_0x573838;return this[_0x5e1723(0x238)];}[_0x573838(0x1df)](){const _0x5677e9={_0x2f0c18:0x2c5},_0x2365e2=_0x573838,_0x2475fb=this[_0x2365e2(0x238)][this[_0x2365e2(_0x5677e9._0x2f0c18)]];if(!_0x2475fb)throw new DriverError(_0x2365e2(0x24d),{'activeIdx':this['activeIdx']});return _0x2475fb;}[_0x573838(0x2b4)](){const _0x3a4131={_0x1f786f:0x291,_0x3703d9:0x2b4},_0x2443c7=_0x573838;return this[_0x2443c7(_0x3a4131._0x1f786f)][_0x2443c7(_0x3a4131._0x3703d9)]??[];}[_0x573838(0x281)](){const _0x50304d={_0x492081:0x252,_0x30010e:0x281},_0x2ec0a0=_0x573838;return this[_0x2ec0a0(_0x50304d._0x492081)](_0x2ec0a0(0x281),[]),this[_0x2ec0a0(0x291)][_0x2ec0a0(_0x50304d._0x30010e)]??{'entries':[],'errors':[]};}[_0x573838(0x226)](_0x4ed26e={}){const _0x59e1a8={_0x291706:0x204},_0x1b379c=_0x573838;return this['record'](_0x1b379c(0x226),[_0x4ed26e[_0x1b379c(0x2be)]]),this[_0x1b379c(0x236)]['take'](_0x4ed26e[_0x1b379c(0x2be)]??0x0,_0x4ed26e[_0x1b379c(_0x59e1a8._0x291706)]);}['emitFakeDownload'](_0x408b18,_0x4f1755){const _0x4b818d={_0x21a6fb:0x236},_0x35e71b=_0x573838;this[_0x35e71b(_0x4b818d._0x21a6fb)]['push']({'name':_0x408b18,'saveAs':__name(_0x3c7d0f=>writeFile(_0x3c7d0f,_0x4f1755),_0x35e71b(0x270))});}[_0x573838(0x29b)](){const _0x3303c2={_0x56c17e:0x29b},_0xe63100=_0x573838;return this['behavior'][_0xe63100(_0x3303c2._0x56c17e)]??[];}async['setActivePage'](_0x274567,_0x5df247){const _0x2867ee={_0x898a8d:0x1ee,_0x160563:0x238,_0x1bed9b:0x2a7,_0x31a2c1:0x26b,_0x58799d:0x295,_0x18ff1e:0x234},_0x401e4b=_0x573838;this[_0x401e4b(0x252)]('setActivePage',[_0x274567,_0x5df247]);if(_0x274567<0x0||_0x274567>=this[_0x401e4b(0x238)][_0x401e4b(_0x2867ee._0x898a8d)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x274567,'available':this[_0x401e4b(_0x2867ee._0x160563)]['length']});this[_0x401e4b(_0x2867ee._0x1bed9b)][_0x401e4b(0x228)](this['pageList'],this[_0x401e4b(0x2c5)],this[_0x401e4b(0x238)][_0x274567]),this[_0x401e4b(0x2c5)]=_0x274567,this[_0x401e4b(_0x2867ee._0x31a2c1)][_0x401e4b(0x1ee)]=0x0,this[_0x401e4b(_0x2867ee._0x58799d)]['add'](this[_0x401e4b(0x238)][_0x274567]);if(_0x5df247?.[_0x401e4b(0x205)]!==![])this['record'](_0x401e4b(_0x2867ee._0x18ff1e),[_0x274567]);}async['bringToFront'](_0x331231){const _0x5b747e={_0x4be25e:0x2c5,_0x49fd09:0x238},_0x3c4e45=_0x573838,_0x4d4d21=_0x331231??this[_0x3c4e45(_0x5b747e._0x4be25e)];if(_0x4d4d21<0x0||_0x4d4d21>=this[_0x3c4e45(_0x5b747e._0x49fd09)]['length'])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x4d4d21,'available':this['pageList'][_0x3c4e45(0x1ee)]});this['record'](_0x3c4e45(0x234),[_0x4d4d21]);}async[_0x573838(0x283)](){const _0xd1a8bc=_0x573838;this[_0xd1a8bc(0x252)]('newPage',[]);const _0x18cd62=this[_0xd1a8bc(0x2a2)](_0xd1a8bc(0x214));return await this['setActivePage'](_0x18cd62),_0x18cd62;}async[_0x573838(0x2b8)](_0x15d2a8){const _0x173248={_0x1086af:0x252,_0x3eb2bb:0x2b8,_0xa10364:0x2c5,_0x263422:0x238,_0x3405be:0x238,_0x15c2a3:0x29d,_0x2b4115:0x26b},_0x34c4a6=_0x573838;this[_0x34c4a6(_0x173248._0x1086af)](_0x34c4a6(_0x173248._0x3eb2bb),[_0x15d2a8]);const {closing:_0x4ca8b7,nextActive:_0x2d985c}=this['history'][_0x34c4a6(0x230)](this[_0x34c4a6(0x238)],this[_0x34c4a6(0x2c5)],_0x15d2a8??this[_0x34c4a6(_0x173248._0xa10364)]),_0x4023a2=_0x4ca8b7===this[_0x34c4a6(_0x173248._0x263422)][this['activeIdx']];this['pageList'][_0x34c4a6(0x237)](this[_0x34c4a6(_0x173248._0x3405be)][_0x34c4a6(_0x173248._0x15c2a3)](_0x4ca8b7),0x1),this['activeIdx']=_0x2d985c;if(!_0x4023a2)return;this[_0x34c4a6(_0x173248._0x2b4115)][_0x34c4a6(0x1ee)]=0x0,this[_0x34c4a6(_0x173248._0x1086af)](_0x34c4a6(0x234),[_0x2d985c]);}[_0x573838(0x1de)](_0x518a78){const _0x11ea6d=_0x573838;return subscribe(this[_0x11ea6d(0x225)],_0x518a78);}async[_0x573838(0x2bc)](_0x5da570={}){const _0x132930={_0x5f35ed:0x252,_0x67e2ff:0x2be},_0x16f801=_0x573838;return this[_0x16f801(_0x132930._0x5f35ed)](_0x16f801(0x2bc),[_0x5da570]),claimNewPage(this['pageList'],this[_0x16f801(0x295)],_0x5da570[_0x16f801(_0x132930._0x67e2ff)]??0x0);}async[_0x573838(0x1fc)](_0x5aa354){const _0x3432c1=_0x573838;this[_0x3432c1(0x252)]('setViewport',[_0x5aa354]);}[_0x573838(0x22a)](){const _0x407584={_0x23e788:0x220,_0x267c8f:0x279,_0x111d5e:0x2b6},_0xd41bc2=_0x573838,_0x5905f8=this[_0xd41bc2(_0x407584._0x23e788)][_0xd41bc2(0x21c)]()[_0xd41bc2(_0x407584._0x267c8f)](_0xdb632=>_0xdb632['scope']===this[_0xd41bc2(0x2b1)]||_0xdb632['scope']['startsWith'](this[_0xd41bc2(0x2b1)]+_0xd41bc2(0x27f)));return this[_0xd41bc2(0x238)][_0xd41bc2(0x1ee)]===0x1&&this[_0xd41bc2(0x238)][0x0][_0xd41bc2(0x2ab)]()===_0xd41bc2(0x214)&&!_0x5905f8[_0xd41bc2(_0x407584._0x111d5e)](_0x4bcb66=>FAKE_SET_UP_CALLS[_0xd41bc2(0x250)](_0x4bcb66[_0xd41bc2(0x1d6)]));}async[_0x573838(0x24e)](){const _0x4198f0={_0x2e97e8:0x2b1},_0x13e685=_0x573838;return this[_0x13e685(_0x4198f0._0x2e97e8)];}[_0x573838(0x2c2)](){const _0x38746f={_0x4a9e2e:0x1e8,_0x1c067e:0x1d0,_0x5c19fd:0x22f},_0x414a97={_0xc8059f:0x28f},_0x234442=_0x573838;if(!this[_0x234442(_0x38746f._0x4a9e2e)])return NO_CLOCK;return{'freeze':__name(async _0x15b0ba=>{const _0x37c517=_0x234442;this['record']('clock.freeze',[_0x15b0ba]),this[_0x37c517(0x285)]=!![];},_0x234442(0x218)),'tick':__name(async _0x2d691f=>this[_0x234442(0x252)](_0x234442(0x1fe),[_0x2d691f]),_0x234442(_0x38746f._0x1c067e)),'run':__name(async()=>{const _0x1a7758=_0x234442;this['record'](_0x1a7758(_0x414a97._0xc8059f),[]),this['clockFrozen']=![];},_0x234442(_0x38746f._0x5c19fd)),'frozen':__name(()=>this[_0x234442(0x285)],'frozen')};}[_0x573838(0x25d)](){const _0x1d4bb4={_0x275984:0x2b5},_0x3f09b5={_0x3cb3e6:0x252,_0xdd2fe6:0x269,_0x2217cf:0x2c1,_0x116415:0x243},_0x42a06d={_0x3493ba:0x1eb},_0x3ed0e0={_0xeea979:0x2c1,_0x4cdd8c:0x2aa},_0x10404d=_0x573838;return{'mock':__name(async(_0x730238,_0x5a86b2)=>{const _0x191e9e=_0x4026;this['record'](_0x191e9e(0x276),[_0x730238,_0x5a86b2]),this[_0x191e9e(_0x3ed0e0._0xeea979)][_0x191e9e(_0x3ed0e0._0x4cdd8c)](_0x730238,_0x5a86b2);},_0x10404d(0x22b)),'unmock':__name(async _0x41f649=>{const _0x20492a=_0x10404d;this['record'](_0x20492a(_0x42a06d._0x3493ba),[_0x41f649]),this[_0x20492a(0x2c1)]['delete'](_0x41f649);},_0x10404d(_0x1d4bb4._0x275984)),'waitForRequest':__name((_0x4b0ab3,_0x3f4bcb)=>{const _0x487ab4=_0x10404d;return this[_0x487ab4(_0x3f09b5._0x3cb3e6)](_0x487ab4(_0x3f09b5._0xdd2fe6),[_0x4b0ab3,_0x3f4bcb]),this[_0x487ab4(_0x3f09b5._0x2217cf)][_0x487ab4(_0x3f09b5._0x116415)](_0x4b0ab3,_0x3f4bcb[_0x487ab4(0x2be)]);},_0x10404d(0x29f)),'blocked':__name(_0x2c2f13=>this[_0x10404d(0x2c1)][_0x10404d(0x248)](_0x2c2f13),_0x10404d(0x248))};}async[_0x573838(0x221)](_0x15e039){const _0x23b2e0={_0x286c9c:0x252,_0x336cf2:0x2ae},_0x473881={_0x5c8120:0x24b,_0x380e63:0x2ab},_0x45864b=_0x573838;this[_0x45864b(_0x23b2e0._0x286c9c)]('waitForServiceWorker',[_0x15e039]);const _0x445c07=this[_0x45864b(_0x23b2e0._0x336cf2)][_0x45864b(0x20f)](_0x7b5a48=>workerMatches(_0x7b5a48,_0x15e039?.[_0x45864b(0x2ab)]));if(_0x445c07!==void 0x0)return this[_0x45864b(0x20b)](_0x445c07);if(!this['behavior'][_0x45864b(0x1ef)])throw new ServiceWorkerNeedsProfileError();const _0x2db5ec=_0x15e039?.[_0x45864b(0x2be)]??0x3e8,_0x4ed54d=await new Promise((_0x353771,_0x2bb6b9)=>{const _0x9c89d0={_0x1011e9:0x2ab,_0x389e87:0x21e},_0x35b6ec=_0x45864b,_0x48bc08=__name(_0x8ba993=>{const _0x484529=_0x4026;if(!workerMatches(_0x8ba993,_0x15e039?.[_0x484529(_0x9c89d0._0x1011e9)]))return;clearTimeout(_0xa6e8f7),this[_0x484529(_0x9c89d0._0x389e87)][_0x484529(0x24b)](_0x48bc08),_0x353771(_0x8ba993);},_0x35b6ec(0x28d)),_0xa6e8f7=setTimeout(()=>{const _0x3647c0=_0x35b6ec;this[_0x3647c0(0x21e)][_0x3647c0(_0x473881._0x5c8120)](_0x48bc08),_0x2bb6b9(new ServiceWorkerWaitTimeoutError(_0x2db5ec,_0x15e039?.[_0x3647c0(_0x473881._0x380e63)],this[_0x3647c0(0x2ae)]));},_0x2db5ec);this['workerStarted'][_0x35b6ec(0x20d)](_0x48bc08);});return this[_0x45864b(0x20b)](_0x4ed54d);}['fakeWorker'](_0x339914){const _0x473a81={_0x31aa21:0x23f,_0x57c4cf:0x291},_0x4cb6b5=_0x573838;return{'url':__name(()=>_0x339914,_0x4cb6b5(0x2ab)),'evaluate':__name(async(_0x65648b,_0x4d6b90)=>{const _0x35cfc5=_0x4cb6b5;return this['record'](_0x35cfc5(_0x473a81._0x31aa21),[_0x339914,_0x65648b,_0x4d6b90]),this[_0x35cfc5(_0x473a81._0x57c4cf)]['evaluateResult'];},'evaluate')};}[_0x573838(0x1db)](_0x43f6c8){const _0x544fd2=_0x573838;this[_0x544fd2(0x2ae)][_0x544fd2(0x1f2)](_0x43f6c8);for(const _0x53e7b6 of[...this['workerStarted']])_0x53e7b6(_0x43f6c8);}[_0x573838(0x2b9)](_0x1b9915,_0xe79199){const _0x358e61={_0x778b5d:0x2c1,_0x31499c:0x212,_0x294395:0x252},_0x119fe3=_0x573838,_0x55debf=this[_0x119fe3(_0x358e61._0x778b5d)][_0x119fe3(0x239)](_0x1b9915);if(_0x55debf?.['kind']===_0x119fe3(_0x358e61._0x31499c)&&_0x55debf[_0x119fe3(_0x358e61._0x294395)])this['routes']['block'](_0x1b9915,_0xe79199);this[_0x119fe3(0x2c1)][_0x119fe3(0x26f)](_0x1b9915,_0xe79199);}[_0x573838(0x2a2)](_0x2f8d28){const _0x411494={_0x58e7a5:0x220},_0x3a09da=_0x573838,_0x330212=this[_0x3a09da(0x2b1)]+'.page'+this[_0x3a09da(0x238)]['length'],_0x2e555f=new FakePage(this[_0x3a09da(_0x411494._0x58e7a5)],this[_0x3a09da(0x291)],_0x330212,_0x2f8d28);this[_0x3a09da(0x238)][_0x3a09da(0x1f2)](_0x2e555f);const _0x117fc6=this['pageList']['length']-0x1;for(const _0x2e8880 of this[_0x3a09da(0x225)]){try{_0x2e8880({'index':_0x117fc6,'url':_0x2f8d28});}catch{}}return _0x117fc6;}[_0x573838(0x1ce)](_0x479563){const _0x41a987={_0x5eecf5:0x238},_0x23b33e=_0x573838;if(_0x479563<0x0||_0x479563>=this[_0x23b33e(_0x41a987._0x5eecf5)][_0x23b33e(0x1ee)])throw new DriverError(_0x23b33e(0x29c),{'index':_0x479563,'available':this['pageList']['length']});this['pageList']['splice'](_0x479563,0x1);}async[_0x573838(0x28a)](_0x150609){const _0x430288={_0x305914:0x271,_0x5a4262:0x1f2},_0x1b3434=_0x573838;this[_0x1b3434(0x252)]('enterFrame',[_0x150609]);if(!_0x150609['steps'][_0x1b3434(0x1ee)])throw new LocatorError(_0x1b3434(_0x430288._0x305914),{'locator':_0x150609});this['frameStack'][_0x1b3434(_0x430288._0x5a4262)](_0x150609);}async[_0x573838(0x1e6)](){const _0x364fad={_0x1b31a7:0x252,_0x42be2f:0x1e6,_0x2e1a02:0x2cb},_0x363595=_0x573838;this[_0x363595(_0x364fad._0x1b31a7)](_0x363595(_0x364fad._0x42be2f),[]);if(this[_0x363595(0x26b)]['length']===0x0)throw new DriverError('exitFrame\x20called\x20with\x20no\x20frame\x20on\x20the\x20stack',{});this[_0x363595(0x26b)][_0x363595(_0x364fad._0x2e1a02)]();}async[_0x573838(0x213)](_0x103ab9,_0x5d2f8d){const _0x90060e=_0x573838;this['record'](_0x90060e(0x213),[_0x103ab9,_0x5d2f8d]),this['localStorageState'][_0x103ab9]=_0x5d2f8d;}async[_0x573838(0x208)](_0x142420){const _0x27091c={_0x103ea0:0x21b},_0xb2efe5=_0x573838;return this[_0xb2efe5(0x252)](_0xb2efe5(0x208),[_0x142420]),this[_0xb2efe5(_0x27091c._0x103ea0)][_0x142420]??null;}async[_0x573838(0x2c0)](_0x399984,_0xd63fe8,_0x1a9f32){const _0x1dff71=_0x573838;this[_0x1dff71(0x252)](_0x1dff71(0x2c0),[_0x399984,_0xd63fe8,_0x1a9f32]),this[_0x1dff71(0x1e1)][_0x399984]=_0xd63fe8;}async[_0x573838(0x1fa)](_0x32a798){const _0x59eb80={_0x57e649:0x1fa},_0x40a2c4=_0x573838;return this['record'](_0x40a2c4(_0x59eb80._0x57e649),[_0x32a798]),this[_0x40a2c4(0x1e1)][_0x32a798]??null;}async[_0x573838(0x2ad)](_0x170c7b){const _0x46ad21=_0x573838;this[_0x46ad21(0x252)]('saveStorageState',[_0x170c7b]);}async[_0x573838(0x251)](_0x5c869a){const _0x13c07e=_0x573838;return this[_0x13c07e(0x252)]('evaluate',[_0x5c869a]),void 0x0;}async['close'](){const _0x40c48c={_0x537073:0x259},_0xea6c96=_0x573838;this[_0xea6c96(0x252)](_0xea6c96(_0x40c48c._0x537073),[]);}[_0x573838(0x210)](){const _0x1ad50c=_0x573838;return this[_0x1ad50c(0x26b)][_0x1ad50c(0x1ee)];}},FakeWebDriver=class{constructor(_0x8551a6={}){const _0x33fb74={_0x2da04b:0x220},_0x523e3f=_0x573838;this['behavior']=_0x8551a6,this[_0x523e3f(_0x33fb74._0x2da04b)]=createRecorder();}[_0x573838(0x291)];static{__name(this,_0x573838(0x246));}[_0x573838(0x2c4)]=![];[_0x573838(0x220)];[_0x573838(0x261)]=[];async['launch'](_0x4969fa){const _0x20f5e3={_0x3af729:0x2c4},_0x37ca36=_0x573838;this[_0x37ca36(0x220)]['push']({'scope':_0x37ca36(0x2c8),'method':_0x37ca36(0x1dd),'args':[_0x4969fa]}),this[_0x37ca36(_0x20f5e3._0x3af729)]=!![];}async[_0x573838(0x296)](_0x38539e){const _0x6a979a={_0x4e9e33:0x220,_0x1a8de6:0x1f2,_0x50c877:0x291,_0xb30444:0x2c2},_0x32d5f4=_0x573838;this[_0x32d5f4(_0x6a979a._0x4e9e33)][_0x32d5f4(_0x6a979a._0x1a8de6)]({'scope':_0x32d5f4(0x2c8),'method':_0x32d5f4(0x296),'args':[_0x38539e]});if(!this[_0x32d5f4(0x2c4)])throw new DriverError(_0x32d5f4(0x2bb),{});const _0x1250f9=new FakeContext(this[_0x32d5f4(0x220)],this[_0x32d5f4(_0x6a979a._0x50c877)],'ctx'+this['contexts'][_0x32d5f4(0x1ee)],_0x38539e?.[_0x32d5f4(_0x6a979a._0xb30444)]===!![]);return this[_0x32d5f4(0x261)]['push'](_0x1250f9),_0x1250f9;}async[_0x573838(0x259)](){const _0x138ceb={_0x318315:0x220,_0x522fc2:0x1f2,_0x4f9cf0:0x2c8},_0x1c8bd8=_0x573838;this[_0x1c8bd8(_0x138ceb._0x318315)][_0x1c8bd8(_0x138ceb._0x522fc2)]({'scope':_0x1c8bd8(_0x138ceb._0x4f9cf0),'method':'close','args':[]}),this[_0x1c8bd8(0x2c4)]=![];}[_0x573838(0x26d)](){return void 0x0;}async['connectShared'](){throw new DriverError('connectShared\x20not\x20supported\x20by\x20FakeWebDriver',{});}async['attachExisting'](_0x40850c){const _0x4b94cd={_0x4258bc:0x23b},_0x4aea22=_0x573838;throw new DriverError(_0x4aea22(_0x4b94cd._0x4258bc),{});}[_0x573838(0x25e)](){return![];}[_0x573838(0x21c)](){const _0x3bbb8b={_0x4362f6:0x21c},_0xe8b67e=_0x573838;return this[_0xe8b67e(0x220)][_0xe8b67e(_0x3bbb8b._0x4362f6)]();}[_0x573838(0x260)](_0x5477a8){const _0x1312d0={_0x38af38:0x220,_0x5345b9:0x21c,_0x5069ec:0x279},_0x5579bb=_0x573838;return this[_0x5579bb(_0x1312d0._0x38af38)][_0x5579bb(_0x1312d0._0x5345b9)]()[_0x5579bb(_0x1312d0._0x5069ec)](_0x2ea697=>_0x2ea697['method']===_0x5477a8);}};export{FakeWebDriver};
|
|
1
|
+
const _0x5d0b7c=_0x198e;(function(_0x360fc2,_0x14b718){const _0x945aa4={_0x1c1dbd:0x21b,_0x7e0689:0x20a,_0x55e1f3:0x27a,_0x1c343f:0x246},_0x13643b=_0x198e,_0x527364=_0x360fc2();while(!![]){try{const _0x213125=-parseInt(_0x13643b(0x199))/0x1+parseInt(_0x13643b(_0x945aa4._0x1c1dbd))/0x2*(parseInt(_0x13643b(_0x945aa4._0x7e0689))/0x3)+-parseInt(_0x13643b(0x1b0))/0x4*(parseInt(_0x13643b(0x27b))/0x5)+parseInt(_0x13643b(0x272))/0x6+-parseInt(_0x13643b(0x1c5))/0x7+-parseInt(_0x13643b(_0x945aa4._0x55e1f3))/0x8+parseInt(_0x13643b(0x1d0))/0x9*(parseInt(_0x13643b(_0x945aa4._0x1c343f))/0xa);if(_0x213125===_0x14b718)break;else _0x527364['push'](_0x527364['shift']());}catch(_0x1a63b7){_0x527364['push'](_0x527364['shift']());}}}(_0x5959,0xacfe8));function _0x5959(){const _0x13e81f=['zgvSzxrL','CNvUBMLUz0fUAw1HDgLVBNm','AgfZ','Aw5KzxHpzG','y2XHAw1ozxDqywDL','Bgf1BMnOzwq','DgLJAW','Cg9W','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','CgfNzxm','Aw1Hz2vtAxPL','Aw5UzxjuzxH0','B25bzNrLCKnSAwnR','D2fPDezVCG','yM91BMrPBMDcB3G','C2v0vMLLD3bVCNq','y29TChv0zwrtDhLSzuj5uhjVCgvYDhK','y2fSBhm','D2fPDezVCLvYBa','y2XVC2u','y291BNq','y29UC29SzuvUDhjPzxm','zgvZy3jPyMu','zw50zxjgCMfTzq','CMvQzwn0','A2v5CW','u2vYDMLJzvDVCMTLCLDHAxruAw1LB3v0rxjYB3i','zNjVEMvU','D29YA2vYvxjSCW','CMvJB3jKzxi','Bg9JywXtDg9YywDLu3rHDgu','DgL0Bgu','y29VA2LLCW','CMfJzq','D29YA2vYlMv2ywX1yxrL','CNvU','y29UDgv4Dhm','ihDPDgHPBIa','AgLZDg9YEq','Aw5JBhvKzxm','C2nYzwvUC2HVDej5DgvZ','y2XVy2SUDgLJAW','BM9eB3DUBg9Hza','ihrHyG','C2v0tg9JywXtDg9YywDL','yxr0ywnOrxHPC3rPBMC','D2fPDezVCK5LD1bHz2u','nK1iAuDLEG','Ag92zxi','CgfNzuXPC3q','BM8GC2vYDMLJzsb3B3jRzxi','zMfRzs1WBMC','zxHHy3q','y29UDgv4DenSB3nLuMvZDwX0','DhLWzq','rMfRzvbHz2u','y2XVy2SUzNjLzxPL','B25tDgfYDa','zgvSAxzLCG','BMv0D29YAY5TB2nR','zMLUzeLUzgv4','Bw9JA2vK','zhjPDMvY','C3rYAw5NAwz5','mtm4nZC4DevIuuPb','Bgf1BMnO','y2XVy2SUCNvU','D29YA2vYu3rHCNrLza','AgfUzgvKugfNzxm','C2HPzNq','C2vYDMLJzvDVCMTLCNm','D2fPDezVCKrVD25SB2fK','rhjPDMvYrxjYB3i','ywjVCNq','C2v0qwn0AxzLugfNzq','tg9JyxrVCKvYCM9Y','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','y2XVy2TgCM96zw4','B25ozxDqywDL','BwLU','BMv3ugfNzq','BMv0D29YAY51BM1Vy2S','y3r4','C3vIC2nYAwjL','DgfRzw4','zMLSDgvY','zwXLBwvUDeHPBNrcEvjLzG','C2nYB2XSsw50B1zPzxC','zMfRzvDVCMTLCG','BM90AgLUzYbYzwnVCMrZihjLCxvLC3rZihrVia','zw1PDezHA2vtzxj2AwnLv29YA2vY','ig1HDgnOAw5Nia','A2LUza','zxzHBhvHDgvszxn1Bhq','BM8GzxH0zw5ZAw9UihnLCNzPy2uGD29YA2vYigHLCMu6igv4DgvUC2LVBNmGBg9HzcbVBMX5igLUDg8GysbICM93C2vYihn0yxj0zwqGD2L0AcbHihbYB2zPBguG4OcuihnLDcbSyxvUy2GUDxnLCKrHDgfeAxiGkgfUzcb0AguGls1SB2fKlwv4DgvUC2LVBIbHCMDZksbPBIb1BM90zxn0lMnVBMzPzY4GqsbYDw4GB24GysbIB3GGAgfZig5VihbYB2zPBguSihnVigL0igHHCYbUBYbLEhrLBNnPB25ZigvPDgHLCI4','y2XVC2vgywTLugfNzq','zw11Bgf0zu1LzgLH','ihn0yxj0zwqGD2L0AgLUia','BgvUz3rO','CMvJB3jK','C2vLBG','AxnwAxnPyMXL','BMv3ugfNzuXPC3rLBMvYCW','yMXVy2S','BM8GCMvXDwvZDcb0BYa','BMfTzq','mZbzrKX0yMO','tM90uMvJB3jKAw5NrxjYB3i','ywrK','ChjLC3m','lcb7ywjVCNq6ihrYDwuSihjLy29YzdOGDhj1zx0PlIbxAxrOB3v0igL0igeGy2HLy2SGzM9YihjLCxvLC3rZihrOzxjLihDVDwXKihbHC3mGAgf2Aw5NihDHDgnOzwqGBM90AgLUzY4','D2fPDezVCKXVywrtDgf0zq','B3v0zxjive1m','C2nVCgu','u2vYDMLJzvDVCMTLCK5LzwrZuhjVzMLSzuvYCM9Y','C3rVChbLza','BgvMDa','CMvM','AxneAxnHyMXLzej5rgvMyxvSDa','D2fPDgvYCW','zg91yMXLq2XPy2S','Aw5PDgLHBfvYBa','D2fPDgvY','lNbHz2u','y2XPy2S','DxjS','zxjYB3jpBK5LEhrby3rPB24','C2f2zufZ','Aw5WDxrwywX1zuj5rgvMyxvSDa','Dw5JAgvJAW','C29Tzq','pgrPDJ48l2rPDJ4','rMfRzunVBNrLEhq','Bwf0y2HLCK1HDgnOzxm','rMfRzvDLyKrYAxzLCG','CxvLDwvK','Aw5WDxrwywX1zq','zw1PDezHA2vqB3b1Ca','CNvUBMLUz0fUAw1HDgLVBNndywXSCW','Bg9JywXtDg9YywDL','y29TChv0zwrtDhLSzq','ig9Wzw4','uMvXDwvZDfDHAxruAw1LB3v0rxjYB3i','zNvUy3rPB24','CM91DgvZ','ChvZAa','AxneAxnHyMXLza','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','zNjHBwvtDgfJAW','rg93BMXVywrrDwv1zq','odmXmZCYwLLitxrY','yxjYAxzHBhm','C3rLChm','C2HHCMvKqNjVD3nLCKnVBM5Ly3rLza','BMv0D29YAY53ywL0rM9YuMvXDwvZDa','Bwf0y2HLCW','zNjLzxPL','C3rYAw5N','ntG5mZyYnhz2B1fOvW','mJi3nvjVvevkva','C2v0q29VA2LL','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','y3vYCMvUDfvYBa','Bwf5yMvuAhjVDW','Dw5TB2nR','zxzHBhvHDgu','oYbUB3qGDgfRzw46ia','C2f2zvn0B3jHz2vtDgf0zq','ywn0AxzHDgu','Dgv4DenVBNrLBNq','BM8Gzg93BMXVywq','y3jLyxrLuMvJB3jKzxi','Aw5ZCgvJDevSzw1LBNq','D2fPDezVCKfUAw1HDgLVBNm','zMXHz3m','Dw50B3vJAgvK','yNjPBMDuB0zYB250','y2XVy2S','Bwv0Ag9K','CgfNzunVBNnVBgu','mtiXnZi2nNz6wuLLAG','zhjHz0fUzerYB3a','ywn0AxzLswr4','BwfW','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','y2HLy2S','C2v0','y2fWDhvYzujVEgvZ','y2XPCgjVyxjKugfZDgu','Dgv4DenVBNrLBNrcEurLzMf1Bhq','CMvZB2X2zq','BM93','Cg9WDxbpBKnSAwnR','yMvOyxzPB3i','yxjYAxzLza','BMv4Da','ig1Z','C3bSAwnL','y2HLy2TLzfn0yxrL','zxzHBhvHDgvpBKXVy2f0B3i','zgvMAw5LuhjVCgvYDhK','AgfZq2XVy2S','yM94zxnjBKnHChr1CMu','otq3nLfpAwHswG','yM91BMrPBMDcB3HcEurLzMf1Bhq','DgLTzw91De1Z','C2XLzxa','z29cywnR','ifj1BM5PBMC6ia','CMvZCg9UC2u','CgXHBKnSB3nL','ig1ZlG','DgvZDa','D3nfBMrWB2LUDa','C3DPDgnOAw5N','ChjVzMLSzq','y2XVC2vqywDL','zxHPDezYyw1L','zNjHBwvezxb0Aa','C2nYzwvUC2HVDevSzw1LBNq','BMv3q29UDgv4Da','D2fPDezVCK5HDMLNyxrPB24','D2fPDezVCLjLCxvLC3q','zMLYC3rvBMHHBMrLzfbHz2u','otu1ndyZnMrrze9oyW','z290BW','C2nYzwvUC2HVDa','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','DxbSB2fKrMLSzq','uvvfvuvFtufy','z2v0tg9JywXtDg9YywDL','CNvUBMLUz0fUAw1HDgLVBNntzxf1zw5Jzq','BMv0D29YA0vUDhjPzxm','BMv0D29YAW','zMLSBa','mtq0odqXnJHwvNzKrvu','zMLUza','y29VA2LLu3rHDgu','D2fPDezVCLrLEhq','D2fPDezVCLnLCNzPy2vxB3jRzxi','z2v0','yMXVy2TLza','AM9PBG','CMvZCg9UC2vZ','zw1PDezHA2vszxf1zxn0','ywjVDxq6yMXHBMS'];_0x5959=function(){return _0x13e81f;};return _0x5959();}var __defProp=Object[_0x5d0b7c(0x1ad)],__name=(_0x4fb8fb,_0x346618)=>__defProp(_0x4fb8fb,'name',{'value':_0x346618,'configurable':!![]});import{writeFile}from'fs/promises';function subscribe(_0x17e627,_0x431635){const _0x5ce4b0=_0x5d0b7c;return _0x17e627[_0x5ce4b0(0x248)](_0x431635),()=>{const _0x3c5cbd=_0x5ce4b0;_0x17e627[_0x3c5cbd(0x1db)](_0x431635);};}__name(subscribe,_0x5d0b7c(0x22f));function _0x198e(_0x35e6be,_0x3986df){_0x35e6be=_0x35e6be-0x18b;const _0x5959de=_0x5959();let _0x198e7b=_0x5959de[_0x35e6be];if(_0x198e['bgUKcS']===undefined){var _0x685b08=function(_0x1fbd6e){const _0x62e8b2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4fb8fb='',_0x346618='';for(let _0x17e627=0x0,_0x431635,_0xbbb7d3,_0xa3977f=0x0;_0xbbb7d3=_0x1fbd6e['charAt'](_0xa3977f++);~_0xbbb7d3&&(_0x431635=_0x17e627%0x4?_0x431635*0x40+_0xbbb7d3:_0xbbb7d3,_0x17e627++%0x4)?_0x4fb8fb+=String['fromCharCode'](0xff&_0x431635>>(-0x2*_0x17e627&0x6)):0x0){_0xbbb7d3=_0x62e8b2['indexOf'](_0xbbb7d3);}for(let _0x1aea6c=0x0,_0x581cd4=_0x4fb8fb['length'];_0x1aea6c<_0x581cd4;_0x1aea6c++){_0x346618+='%'+('00'+_0x4fb8fb['charCodeAt'](_0x1aea6c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x346618);};_0x198e['WnMqLa']=_0x685b08,_0x198e['pjScqV']={},_0x198e['bgUKcS']=!![];}const _0xcf1c9f=_0x5959de[0x0],_0x2b7267=_0x35e6be+_0xcf1c9f,_0x194982=_0x198e['pjScqV'][_0x2b7267];return!_0x194982?(_0x198e7b=_0x198e['WnMqLa'](_0x198e7b),_0x198e['pjScqV'][_0x2b7267]=_0x198e7b):_0x198e7b=_0x194982,_0x198e7b;}import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x5d0b7c(0x223));}},LocatorError=class extends UnotestError{static{__name(this,_0x5d0b7c(0x226));}},TimeoutError=class extends UnotestError{static{__name(this,'TimeoutError');}},ClockNotInstalledError=class extends DriverError{static{__name(this,'ClockNotInstalledError');}constructor(){super('the\x20page\x20clock\x20is\x20not\x20installed\x20on\x20this\x20browser\x20—\x20it\x20has\x20to\x20be\x20in\x20place\x20before\x20the\x20first\x20page\x20loads,\x20or\x20the\x20page\x27s\x20own\x20timers\x20keep\x20real\x20time.\x20A\x20run\x20installs\x20it\x20when\x20the\x20scenario\x20or\x20its\x20helpers\x20call\x20clockFreeze\x20/\x20clockTick\x20/\x20clockRun;\x20over\x20MCP,\x20open\x20the\x20browser\x20with\x20new_context\x20{clock:\x20true}\x20(or\x20explore_start\x20{clock:\x20true}).',{});}},NO_CLOCK={'freeze':__name(()=>Promise['reject'](new ClockNotInstalledError()),_0x5d0b7c(0x278)),'tick':__name(()=>Promise[_0x5d0b7c(0x1f3)](new ClockNotInstalledError()),_0x5d0b7c(0x1e1)),'run':__name(()=>Promise['reject'](new ClockNotInstalledError()),'run'),'frozen':__name(()=>![],'frozen')};function firstUnhandedPage(_0xbbb7d3,_0xa3977f){const _0x3e8e9e=_0x5d0b7c;return _0xbbb7d3[_0x3e8e9e(0x217)](_0x1aea6c=>!_0xa3977f['has'](_0x1aea6c));}__name(firstUnhandedPage,_0x5d0b7c(0x1c4));function claimNewPage(_0x581cd4,_0x28e908,_0x28f5d5){const _0xec8054={_0x84649d:0x23e,_0x162f35:0x206},_0x3caf24=_0x5d0b7c,_0x5f32d9=firstUnhandedPage(_0x581cd4,_0x28e908);if(_0x5f32d9<0x0){const _0xa9311a=_0x581cd4[_0x3caf24(_0xec8054._0x84649d)];throw new TimeoutError('no\x20new\x20tab\x20within\x20'+_0x28f5d5+'\x20ms,\x20'+_0xa9311a+_0x3caf24(_0xec8054._0x162f35)+(_0xa9311a===0x1?'':'s')+_0x3caf24(0x269),{'timeoutMs':_0x28f5d5,'open':_0xa9311a});}return _0x28e908['add'](_0x581cd4[_0x5f32d9]),_0x5f32d9;}__name(claimNewPage,_0x5d0b7c(0x1df));var PageHistory=class{static{__name(this,'PageHistory');}[_0x5d0b7c(0x250)]=[];[_0x5d0b7c(0x1bb)](_0x32d819,_0x59121f,_0x10b08a){const _0x4329b6={_0x462aec:0x231,_0x27f1eb:0x1aa,_0x49e24b:0x250},_0x139663=_0x5d0b7c,_0x1ffd68=_0x32d819[_0x59121f];if(!_0x1ffd68||_0x1ffd68===_0x10b08a)return;const _0x1b6e4a=this[_0x139663(0x250)][_0x139663(_0x4329b6._0x462aec)](_0x668b80=>_0x668b80!==_0x1ffd68&&_0x32d819[_0x139663(0x202)](_0x668b80));this['left'][_0x139663(_0x4329b6._0x27f1eb)](0x0,this[_0x139663(_0x4329b6._0x49e24b)][_0x139663(0x23e)],..._0x1b6e4a,_0x1ffd68);}['planClose'](_0x128a61,_0x4ed177,_0x1d4dcc){const _0x3fcb16={_0x40f822:0x23e,_0xb6aed4:0x250,_0x28a83a:0x1aa,_0x8b52ec:0x1de},_0x11bef7=_0x5d0b7c,_0x2b7f0e=_0x128a61[_0x1d4dcc];if(!_0x2b7f0e)throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x1d4dcc,'available':_0x128a61[_0x11bef7(0x23e)]});if(_0x128a61[_0x11bef7(_0x3fcb16._0x40f822)]===0x1)throw new DriverError('cannot\x20close\x20the\x20only\x20open\x20tab:\x20nothing\x20would\x20be\x20left\x20to\x20drive',{'index':_0x1d4dcc});const _0x4404c5=_0x128a61[_0x11bef7(0x231)](_0x1e4b02=>_0x1e4b02!==_0x2b7f0e),_0x32e055=_0x128a61[_0x4ed177],_0x1ee9e0=this['left']['filter'](_0x319bd2=>_0x319bd2!==_0x2b7f0e);this[_0x11bef7(_0x3fcb16._0xb6aed4)][_0x11bef7(_0x3fcb16._0x28a83a)](0x0,this['left'][_0x11bef7(_0x3fcb16._0x40f822)],..._0x1ee9e0);if(_0x32e055&&_0x32e055!==_0x2b7f0e)return{'closing':_0x2b7f0e,'nextActive':_0x4404c5[_0x11bef7(_0x3fcb16._0x8b52ec)](_0x32e055)};for(let _0xcbe6d6=this[_0x11bef7(0x250)][_0x11bef7(0x23e)]-0x1;_0xcbe6d6>=0x0;_0xcbe6d6--){const _0x1de6a7=_0x4404c5[_0x11bef7(_0x3fcb16._0x8b52ec)](this[_0x11bef7(0x250)][_0xcbe6d6]);if(_0x1de6a7>=0x0)return{'closing':_0x2b7f0e,'nextActive':_0x1de6a7};}return{'closing':_0x2b7f0e,'nextActive':Math['max'](_0x1d4dcc-0x1,0x0)};}},NotRecordingError=class extends DriverError{static{__name(this,_0x5d0b7c(0x247));}constructor(_0x30a7ba){const _0x4cbe25={_0x406baa:0x235},_0xb2a325=_0x5d0b7c;super(_0xb2a325(_0x4cbe25._0x406baa)+JSON[_0xb2a325(0x21a)](_0x30a7ba)+':\x20mock\x20it\x20first\x20with\x20mockRoute('+JSON[_0xb2a325(0x21a)](_0x30a7ba)+_0xb2a325(0x24a),{'glob':_0x30a7ba});}},RequestWaitTimeoutError=class extends TimeoutError{static{__name(this,_0x5d0b7c(0x26a));}constructor(_0x1d53a5,_0x32425f){const _0x30763f={_0x3ff403:0x1a9},_0x193c97=_0x5d0b7c;super(_0x193c97(0x244)+JSON['stringify'](_0x1d53a5)+'\x20in\x20'+_0x32425f+_0x193c97(_0x30763f._0x3ff403),{'glob':_0x1d53a5,'timeoutMs':_0x32425f});}},RouteJournal=class _RouteJournal{constructor(_0xb77ab8=Date[_0x5d0b7c(0x1a4)]){const _0x51f04f={_0x32bd29:0x1a4},_0x22a888=_0x5d0b7c;this[_0x22a888(_0x51f04f._0x32bd29)]=_0xb77ab8;}[_0x5d0b7c(0x1a4)];static{__name(this,'RouteJournal');}static [_0x5d0b7c(0x1ca)]=0x1f4;[_0x5d0b7c(0x1d8)]=new Map();['queued']=new Map();['waiters']=new Map();['stopped']=new Map();[_0x5d0b7c(0x19f)](_0x3eb3f7,_0x1b0093){const _0x4d6aef={_0x11ea2b:0x263,_0x8ab768:0x1dd,_0x4f3c52:0x263,_0x372f4d:0x24f},_0x568161=_0x5d0b7c;this[_0x568161(0x1d8)][_0x568161(0x19f)](_0x3eb3f7,_0x1b0093);if(!this[_0x568161(_0x4d6aef._0x11ea2b)][_0x568161(_0x4d6aef._0x8ab768)](_0x3eb3f7))this[_0x568161(_0x4d6aef._0x4f3c52)]['set'](_0x3eb3f7,[]);_0x1b0093['kind']===_0x568161(0x224)&&_0x1b0093['record']&&!this['stopped']['has'](_0x3eb3f7)&&this[_0x568161(_0x4d6aef._0x372f4d)][_0x568161(0x19f)](_0x3eb3f7,[]);}[_0x5d0b7c(0x1db)](_0x1b4e4a){const _0x539588={_0x238dfb:0x1db},_0x1d3a2a=_0x5d0b7c,_0x2df721=_0x1b4e4a===void 0x0?[...this[_0x1d3a2a(0x1d8)][_0x1d3a2a(0x1f4)]()]:this[_0x1d3a2a(0x1d8)][_0x1d3a2a(0x1dd)](_0x1b4e4a)?[_0x1b4e4a]:[];for(const _0x2ac9a0 of _0x2df721){this['responses']['delete'](_0x2ac9a0),this['queued'][_0x1d3a2a(_0x539588._0x238dfb)](_0x2ac9a0);}return _0x2df721;}[_0x5d0b7c(0x1b6)](_0x114b72){const _0x3caf64={_0x3b4da9:0x1d8,_0x3d2b7f:0x1d5},_0x9e345=_0x5d0b7c;return this[_0x9e345(_0x3caf64._0x3b4da9)][_0x9e345(_0x3caf64._0x3d2b7f)](_0x114b72);}[_0x5d0b7c(0x218)](_0x1deb8d){const _0x1bfd41={_0x391186:0x1d8},_0x2d85e0=_0x5d0b7c;return this[_0x2d85e0(_0x1bfd41._0x391186)][_0x2d85e0(0x1dd)](_0x1deb8d);}[_0x5d0b7c(0x215)](_0x475830,_0x24e85e){const _0x3c9dab={_0xde9e8c:0x1d5,_0x3bf62f:0x220,_0x1ff43c:0x23e,_0x39535d:0x1ca},_0x3f3516=_0x5d0b7c,_0x83a17a=this[_0x3f3516(0x253)][_0x3f3516(_0x3c9dab._0xde9e8c)](_0x475830)?.[_0x3f3516(_0x3c9dab._0x3bf62f)]();if(_0x83a17a){_0x83a17a(_0x24e85e);return;}const _0x4f3ea7=this[_0x3f3516(0x263)][_0x3f3516(0x1d5)](_0x475830);if(!_0x4f3ea7)return;_0x4f3ea7[_0x3f3516(0x26d)](_0x24e85e);if(_0x4f3ea7[_0x3f3516(_0x3c9dab._0x1ff43c)]>_RouteJournal[_0x3f3516(_0x3c9dab._0x39535d)])_0x4f3ea7['shift']();}[_0x5d0b7c(0x243)](_0x5bf75a,_0xd39041){const _0x10e1d9={_0x43544e:0x26d,_0x4ec297:0x197,_0x2ebeee:0x1a4},_0x19adae=_0x5d0b7c;this[_0x19adae(0x24f)][_0x19adae(0x1d5)](_0x5bf75a)?.[_0x19adae(_0x10e1d9._0x43544e)]({'url':_0xd39041[_0x19adae(0x259)],'method':_0xd39041[_0x19adae(_0x10e1d9._0x4ec297)],'at':this[_0x19adae(_0x10e1d9._0x2ebeee)]()});}['blocked'](_0x58048a){const _0x56e2d6={_0x3a337a:0x1d5},_0x4025c2=_0x5d0b7c,_0x1a1763=this[_0x4025c2(0x24f)][_0x4025c2(_0x56e2d6._0x3a337a)](_0x58048a);if(!_0x1a1763)throw new NotRecordingError(_0x58048a);return _0x1a1763;}[_0x5d0b7c(0x1a8)](_0xbc69db,_0x32d66b){const _0x4161b3={_0x85d2e7:0x26d},_0xb172bc=_0x5d0b7c,_0x4d84cf=this[_0xb172bc(0x263)]['get'](_0xbc69db)?.[_0xb172bc(0x220)]();if(_0x4d84cf)return Promise[_0xb172bc(0x1a3)](_0x4d84cf);return new Promise((_0x4fb5d3,_0x35758e)=>{const _0x5b2dd5=_0xb172bc,_0x5bc082=__name(_0x5dc379=>{clearTimeout(_0x298c19),_0x4fb5d3(_0x5dc379);},_0x5b2dd5(0x256)),_0x298c19=setTimeout(()=>{const _0x1b3ad7=_0x5b2dd5,_0x5f2918=this['waiters'][_0x1b3ad7(0x1d5)](_0xbc69db)??[];_0x5f2918[_0x1b3ad7(0x1aa)](_0x5f2918['indexOf'](_0x5bc082),0x1),_0x35758e(new RequestWaitTimeoutError(_0xbc69db,_0x32d66b));},_0x32d66b),_0x5b9ccf=this[_0x5b2dd5(0x253)][_0x5b2dd5(0x1d5)](_0xbc69db)??[];_0x5b9ccf[_0x5b2dd5(_0x4161b3._0x85d2e7)](_0x5bc082),this[_0x5b2dd5(0x253)]['set'](_0xbc69db,_0x5b9ccf);});}},DownloadQueue=class{constructor(_0x39df8d){const _0x2bb7cf=_0x5d0b7c;this[_0x2bb7cf(0x1b3)]=_0x39df8d;}['sleep'];static{__name(this,_0x5d0b7c(0x271));}[_0x5d0b7c(0x240)]=[];['taken']=new Set();[_0x5d0b7c(0x273)]=new Set();[_0x5d0b7c(0x26d)](_0x10c641){const _0x24652c=_0x5d0b7c;this[_0x24652c(0x240)][_0x24652c(0x26d)](_0x10c641);for(const _0xa72351 of this['arrivals'])_0xa72351();}async['take'](_0x3014c6,_0x22c643){const _0x4e3cd6={_0x23d0f3:0x273,_0x2c50f7:0x248,_0x266aae:0x1fc,_0xcaafa8:0x273},_0x45213e=_0x5d0b7c,_0x496b3e=__name(()=>this[_0x45213e(0x240)][_0x45213e(0x1d1)](_0x29ee37=>!this[_0x45213e(0x230)]['has'](_0x29ee37)&&(_0x22c643===void 0x0||_0x22c643[_0x45213e(0x277)](_0x29ee37[_0x45213e(0x245)]))),'next');let _0x4c9063=_0x496b3e();if(_0x4c9063===void 0x0){let _0x475e60=__name(()=>{},'arrived');const _0x1a0551=new Promise(_0x2a5e50=>{const _0x12c34c=_0x45213e;_0x475e60=__name(()=>{if(_0x496b3e()!==void 0x0)_0x2a5e50();},_0x12c34c(0x1a7));});this[_0x45213e(_0x4e3cd6._0x23d0f3)][_0x45213e(_0x4e3cd6._0x2c50f7)](_0x475e60);try{await Promise[_0x45213e(_0x4e3cd6._0x266aae)]([_0x1a0551,this['sleep'](_0x3014c6)]);}finally{this[_0x45213e(_0x4e3cd6._0xcaafa8)]['delete'](_0x475e60);}_0x4c9063=_0x496b3e();}if(_0x4c9063===void 0x0)throw this[_0x45213e(0x205)](_0x3014c6,_0x22c643);return this[_0x45213e(0x230)][_0x45213e(0x248)](_0x4c9063),_0x4c9063;}[_0x5d0b7c(0x205)](_0x10fcbe,_0x1b2cac){const _0x170633={_0x13c44b:0x231,_0xa246ba:0x1f1,_0x389f06:0x18b,_0x4622b7:0x200},_0x5620d5=_0x5d0b7c,_0x2d6d3a=this['seen'][_0x5620d5(_0x170633._0x13c44b)](_0x4b932c=>!this['taken'][_0x5620d5(0x1dd)](_0x4b932c))[_0x5620d5(0x19c)](_0x5ee04a=>_0x5ee04a[_0x5620d5(0x245)]),_0x2c9653=_0x1b2cac===void 0x0?_0x5620d5(0x18f):'no\x20download\x20whose\x20name\x20would\x20'+_0x1b2cac[_0x5620d5(_0x170633._0xa246ba)](),_0x400873=_0x2d6d3a[_0x5620d5(0x23e)]>0x0?_0x5620d5(_0x170633._0x389f06)+_0x2d6d3a[_0x5620d5(0x19c)](_0x1582b5=>JSON[_0x5620d5(0x21a)](_0x1582b5))[_0x5620d5(0x1d7)](',\x20'):'';return new TimeoutError(_0x2c9653+_0x5620d5(_0x170633._0x4622b7)+_0x10fcbe+_0x5620d5(0x1a9)+_0x400873,{'timeoutMs':_0x10fcbe,'untaken':_0x2d6d3a,..._0x1b2cac!==void 0x0?{'name':_0x1b2cac[_0x5620d5(0x1f1)]()}:{}});}};function matcherMatches(_0x79342e,_0x1865c6,_0x1a6540={}){const _0x363a89={_0x5cf4db:0x202,_0x17778e:0x1b9},_0x17c6c9=_0x5d0b7c;if(typeof _0x1865c6===_0x17c6c9(0x279))return _0x1a6540[_0x17c6c9(0x20f)]??!![]?_0x79342e===_0x1865c6:_0x79342e[_0x17c6c9(_0x363a89._0x5cf4db)](_0x1865c6);return new RegExp(_0x1865c6['source'],_0x1865c6[_0x17c6c9(0x193)])[_0x17c6c9(_0x363a89._0x17778e)](_0x79342e);}__name(matcherMatches,_0x5d0b7c(0x261));var ServiceWorkerNeedsProfileError=class extends DriverError{static{__name(this,_0x5d0b7c(0x24e));}constructor(){const _0x1cdcd9={_0x576e97:0x23a},_0x24eded=_0x5d0b7c;super(_0x24eded(_0x1cdcd9._0x576e97),{});}},ServiceWorkerWaitTimeoutError=class extends TimeoutError{static{__name(this,_0x5d0b7c(0x1f5));}constructor(_0x5cda1f,_0x26bc4d,_0x4aa7e7){const _0xf2258c={_0x96100a:0x21a,_0x569b3f:0x23e,_0x156df0:0x20d},_0x379b8b=_0x5d0b7c,_0x24aedb=_0x26bc4d===void 0x0?'':_0x379b8b(0x237)+JSON[_0x379b8b(_0xf2258c._0x96100a)](_0x26bc4d),_0x5d728a=_0x4aa7e7[_0x379b8b(_0xf2258c._0x569b3f)]===0x0?'':_0x379b8b(0x1b5)+_0x4aa7e7[_0x379b8b(0x1d7)](',\x20')+'.';super(_0x379b8b(_0xf2258c._0x156df0)+_0x24aedb+_0x379b8b(0x23d)+_0x5cda1f+_0x379b8b(0x1b8)+_0x5d728a,{'timeoutMs':_0x5cda1f,'seen':_0x4aa7e7});}};function workerMatches(_0x190bf8,_0x4f93cb){return _0x4f93cb===void 0x0||matcherMatches(_0x190bf8,_0x4f93cb,{'exact':![]});}__name(workerMatches,'workerMatches');function createRecorder(){const _0x11101a=_0x5d0b7c,_0x3f2e71=[];let _0x38b7fe=0x0;return{'push':__name(_0x4f7a2d=>_0x3f2e71[_0x11101a(0x26d)]({..._0x4f7a2d,'seq':_0x38b7fe++}),_0x11101a(0x26d)),'calls':__name(()=>_0x3f2e71,'calls')};}__name(createRecorder,_0x5d0b7c(0x190));var FakePage=class{constructor(_0x53608e,_0x51fdc0,_0x2f348d,_0x301249){const _0x8ffad6=_0x5d0b7c;this['recorder']=_0x53608e,this[_0x8ffad6(0x1a6)]=_0x51fdc0,this[_0x8ffad6(0x24d)]=_0x2f348d,this[_0x8ffad6(0x27e)]=_0x301249;}['recorder'];[_0x5d0b7c(0x1a6)];['scope'];static{__name(this,_0x5d0b7c(0x212));}[_0x5d0b7c(0x27e)];[_0x5d0b7c(0x1e7)];[_0x5d0b7c(0x23f)](_0x398b10,_0x48d4ea){const _0x209def={_0x20cf37:0x1f8,_0x456764:0x24d},_0x165eca=_0x5d0b7c;this[_0x165eca(_0x209def._0x20cf37)][_0x165eca(0x26d)]({'scope':this[_0x165eca(_0x209def._0x456764)],'method':_0x398b10,'args':_0x48d4ea});}[_0x5d0b7c(0x27f)](){const _0x3752bd={_0x165067:0x1a6},_0x312f1d=_0x5d0b7c;if(this['behavior']['errorOnNextAction']){const _0x413a8b=this[_0x312f1d(_0x3752bd._0x165067)]['errorOnNextAction'];this[_0x312f1d(_0x3752bd._0x165067)][_0x312f1d(0x25a)]=void 0x0;throw _0x413a8b;}}[_0x5d0b7c(0x259)](){return this['currentUrl'];}async[_0x5d0b7c(0x1fa)](){const _0x37d31c={_0xb2ffd1:0x1fa},_0x3e3752=_0x5d0b7c;return this['record'](_0x3e3752(_0x37d31c._0xb2ffd1),[]),'fake\x20title';}async['click'](_0x464119,_0x58aea6){const _0x33ee90={_0x2f36c9:0x1e7},_0x575b6b=_0x5d0b7c;this[_0x575b6b(0x23f)](_0x575b6b(0x258),[_0x464119,_0x58aea6]),this[_0x575b6b(0x27f)](),this[_0x575b6b(_0x33ee90._0x2f36c9)]?.();}async[_0x5d0b7c(0x254)](_0x54d5ea,_0x3ae70b){const _0x27019c={_0x3658e4:0x254,_0xbbb994:0x27f},_0x205dd0=_0x5d0b7c;this[_0x205dd0(0x23f)](_0x205dd0(_0x27019c._0x3658e4),[_0x54d5ea,_0x3ae70b]),this[_0x205dd0(_0x27019c._0xbbb994)]();}async[_0x5d0b7c(0x1cf)](_0x10f370,_0x56dc1d,_0x39c85d){const _0x283ec8={_0x3ac876:0x23f,_0x57174a:0x1cf,_0x36f83f:0x27f},_0x17fa6f=_0x5d0b7c;this[_0x17fa6f(_0x283ec8._0x3ac876)](_0x17fa6f(_0x283ec8._0x57174a),[_0x10f370,_0x56dc1d,_0x39c85d]),this[_0x17fa6f(_0x283ec8._0x36f83f)]();}async[_0x5d0b7c(0x249)](_0x5e3d5a,_0x341c3f,_0x3578c9){const _0x36265e={_0x3e4f01:0x23f},_0x23bf2b=_0x5d0b7c;this[_0x23bf2b(_0x36265e._0x3e4f01)]('press',[_0x5e3d5a,_0x341c3f,_0x3578c9]),this[_0x23bf2b(0x27f)]();}async[_0x5d0b7c(0x19e)](_0x2748e2,_0x3fd26f){const _0x57729b={_0x18cd51:0x19e},_0x3d232c=_0x5d0b7c;this[_0x3d232c(0x23f)](_0x3d232c(_0x57729b._0x18cd51),[_0x2748e2,_0x3fd26f]),this[_0x3d232c(0x27f)]();}async[_0x5d0b7c(0x25d)](_0xc4d0a9,_0x125d25){const _0x161d43=_0x5d0b7c;this['record']('uncheck',[_0xc4d0a9,_0x125d25]),this[_0x161d43(0x27f)]();}async['selectOption'](_0x2bc407,_0x48ec7d,_0xdb1c8e){const _0x425e22={_0x551f66:0x23f},_0x20f913=_0x5d0b7c;this[_0x20f913(_0x425e22._0x551f66)]('selectOption',[_0x2bc407,_0x48ec7d,_0xdb1c8e]),this[_0x20f913(0x27f)]();}async[_0x5d0b7c(0x20b)](_0x4d39de,_0x2887f4){const _0x1b98c5={_0x13e706:0x20b,_0x410e2d:0x27f},_0x920fc8=_0x5d0b7c;this['record'](_0x920fc8(_0x1b98c5._0x13e706),[_0x4d39de,_0x2887f4]),this[_0x920fc8(_0x1b98c5._0x410e2d)]();}async[_0x5d0b7c(0x233)](_0x59dbba){const _0x3a93d2=_0x5d0b7c;this['record'](_0x3a93d2(0x233),[_0x59dbba]),this['maybeThrow']();}async['dragAndDrop'](_0x3c51ff,_0x2bf54a,_0x3f3c10){const _0x954423={_0x30275d:0x23f},_0x54e75f=_0x5d0b7c;this[_0x54e75f(_0x954423._0x30275d)](_0x54e75f(0x19a),[_0x3c51ff,_0x2bf54a,_0x3f3c10]),this['maybeThrow']();}async['uploadFile'](_0x2482a0,_0x2f2cae){const _0x1f2483={_0x494372:0x23f,_0x20a210:0x1c9},_0x5be03e=_0x5d0b7c;this[_0x5be03e(_0x1f2483._0x494372)](_0x5be03e(_0x1f2483._0x20a210),[_0x2482a0,_0x2f2cae]),this['maybeThrow']();}async[_0x5d0b7c(0x1a1)](_0x17138c,_0x107e5a){const _0x2b1e28={_0xb3beec:0x23f,_0x280f4a:0x1a1,_0x4bc436:0x27f},_0xc05f03=_0x5d0b7c;this[_0xc05f03(_0x2b1e28._0xb3beec)](_0xc05f03(_0x2b1e28._0x280f4a),[_0x17138c,_0x107e5a]),this[_0xc05f03(_0x2b1e28._0x4bc436)]();}async[_0x5d0b7c(0x1ef)](_0x49b494){const _0x270767={_0x574919:0x1ef},_0x8eb2d3=_0x5d0b7c;return this[_0x8eb2d3(0x23f)](_0x8eb2d3(_0x270767._0x574919),[_0x49b494]),this['behavior']['countByDefault']??0x1;}async['textContent'](_0x494b21){const _0x53780b=_0x5d0b7c;return this['record'](_0x53780b(0x18e),[_0x494b21]),this['behavior'][_0x53780b(0x1a2)]??'';}async[_0x5d0b7c(0x1e6)](_0x4b5a32){const _0x3f62df={_0x3d6960:0x23f,_0x330a3a:0x1e6},_0x3a9e21=_0x5d0b7c;return this[_0x3a9e21(_0x3f62df._0x3d6960)](_0x3a9e21(_0x3f62df._0x330a3a),[_0x4b5a32]),this['behavior']['innerTextByDefault']??this[_0x3a9e21(0x1a6)][_0x3a9e21(0x1a2)]??'';}async[_0x5d0b7c(0x264)](_0x609c62){const _0x138c43={_0x5328d1:0x25c},_0x5caf93=_0x5d0b7c;return this['record'](_0x5caf93(0x264),[_0x609c62]),this[_0x5caf93(0x1a6)][_0x5caf93(_0x138c43._0x5328d1)]??'';}async[_0x5d0b7c(0x1ab)](_0x4fea0a){const _0x30ab4e=_0x5d0b7c;return this[_0x30ab4e(0x23f)](_0x30ab4e(0x1ab),[_0x4fea0a]),this[_0x30ab4e(0x1a6)]['checkedStateByDefault']??null;}async[_0x5d0b7c(0x241)](_0x28b9b8){const _0x53fd35={_0x6b5751:0x23f},_0x3d6e65=_0x5d0b7c;return this[_0x3d6e65(_0x53fd35._0x6b5751)](_0x3d6e65(0x241),[_0x28b9b8]),this['behavior']['isVisibleByDefault']??!![];}async[_0x5d0b7c(0x1e9)](_0x519015){const _0x14b868={_0x3317c8:0x23f,_0x48d46e:0x1e9,_0x36a03d:0x1a6},_0x1d321f=_0x5d0b7c;return this[_0x1d321f(_0x14b868._0x3317c8)](_0x1d321f(_0x14b868._0x48d46e),[_0x519015]),this['behavior'][_0x1d321f(0x1b1)]===void 0x0?{'x':0x0,'y':0x0,'width':0x64,'height':0x14}:this[_0x1d321f(_0x14b868._0x36a03d)]['boundingBoxByDefault'];}[_0x5d0b7c(0x266)]=0x0;async[_0x5d0b7c(0x1dc)](_0xb556e7){const _0x584616={_0x3212f8:0x1cc,_0x49c0e0:0x22b,_0x581e73:0x266},_0x244505=_0x5d0b7c;this['record']('runningAnimations',[_0xb556e7]);const _0x477ed4=this[_0x244505(0x1a6)][_0x244505(_0x584616._0x3212f8)]??[0x0];return _0x477ed4[Math[_0x244505(_0x584616._0x49c0e0)](this[_0x244505(_0x584616._0x581e73)]++,_0x477ed4[_0x244505(0x23e)]-0x1)]??0x0;}async['waitForAnimations'](_0x1ed5a3,_0x5a58d3){const _0x21fd02=_0x5d0b7c;this[_0x21fd02(0x23f)](_0x21fd02(0x192),[_0x1ed5a3,_0x5a58d3]);}async['computedStyle'](_0x178113,_0x1fac61){const _0xa381c5=_0x5d0b7c;return this['record'](_0xa381c5(0x268),[_0x178113,_0x1fac61]),this['behavior'][_0xa381c5(0x1eb)]?.[_0x1fac61]??'';}async['imageSize'](_0x1ec05a){const _0x2715f0={_0xb29be0:0x23f,_0x45c6e5:0x1a6},_0x5dbae9=_0x5d0b7c;return this[_0x5dbae9(_0x2715f0._0xb29be0)](_0x5dbae9(0x1e5),[_0x1ec05a]),this[_0x5dbae9(0x1a6)]['imageSizeByDefault']===void 0x0?{'width':0x64,'height':0x64}:this[_0x5dbae9(_0x2715f0._0x45c6e5)]['imageSizeByDefault'];}async[_0x5d0b7c(0x26e)](_0x46a600){const _0x93cca1=_0x5d0b7c;return this[_0x93cca1(0x23f)]('isDisabled',[_0x46a600]),this[_0x93cca1(0x1a6)][_0x93cca1(0x252)]??![];}async['getAttribute'](_0x167c16,_0x38dcbd){const _0x5d3a67={_0x573648:0x23f},_0x212092=_0x5d0b7c;return this[_0x212092(_0x5d3a67._0x573648)]('getAttribute',[_0x167c16,_0x38dcbd]),this[_0x212092(0x1a6)]['attributesByDefault']?.[_0x38dcbd]??null;}async[_0x5d0b7c(0x1e8)](_0x3aacdb,_0x32dcce){const _0x2dd62a={_0x405bc6:0x23f},_0x36eed2=_0x5d0b7c;this[_0x36eed2(_0x2dd62a._0x405bc6)](_0x36eed2(0x1e8),[_0x3aacdb,_0x32dcce]);}async[_0x5d0b7c(0x1ed)](_0x128d61,_0x1a4a09){const _0x11f369={_0x5be2a3:0x23f,_0x318603:0x1ed},_0x12b059=_0x5d0b7c;this[_0x12b059(_0x11f369._0x5be2a3)](_0x12b059(_0x11f369._0x318603),[_0x128d61,_0x1a4a09]);}async[_0x5d0b7c(0x23c)](_0x514cbc){const _0x55e56b={_0x341eb4:0x23f},_0x38daf4=_0x5d0b7c;this[_0x38daf4(_0x55e56b._0x341eb4)]('emulateMedia',[_0x514cbc]);}async[_0x5d0b7c(0x1d3)](_0x41a2cb,_0x3519ab){const _0x4ebd5e={_0x595c3a:0x23f},_0x36699e=_0x5d0b7c;this[_0x36699e(_0x4ebd5e._0x595c3a)](_0x36699e(0x1d3),[_0x41a2cb,_0x3519ab]);}async[_0x5d0b7c(0x1c2)](_0x4cb2f0){const _0x48f6da=_0x5d0b7c;this[_0x48f6da(0x23f)](_0x48f6da(0x1c2),[_0x4cb2f0]);}async['waitForLoadState'](_0x3407e7,_0x16c1bd){const _0x172de9={_0x2727b0:0x23f,_0x46ff22:0x24b},_0x3a4485=_0x5d0b7c;this[_0x3a4485(_0x172de9._0x2727b0)](_0x3a4485(_0x172de9._0x46ff22),[_0x3407e7,_0x16c1bd]);}async['goto'](_0x6d8369,_0x4126f2){const _0x30824b={_0x54f8e1:0x23f,_0x2b1493:0x1c6,_0x1a1f0b:0x27e},_0x39066f=_0x5d0b7c;this[_0x39066f(_0x30824b._0x54f8e1)](_0x39066f(_0x30824b._0x2b1493),[_0x6d8369,_0x4126f2]),this[_0x39066f(_0x30824b._0x1a1f0b)]=_0x6d8369;}async['reload'](_0x5490bf){const _0x35b1ab={_0xf8d1c8:0x23f},_0x35f47c=_0x5d0b7c;this[_0x35f47c(_0x35b1ab._0xf8d1c8)]('reload',[_0x5490bf]);}async[_0x5d0b7c(0x1b4)](_0x320b25){const _0x211ad3=_0x5d0b7c;this[_0x211ad3(0x23f)](_0x211ad3(0x1b4),[_0x320b25]);}async['goForward'](_0x41a475){const _0x5cecf5={_0x525bf1:0x23f},_0xe7bc8c=_0x5d0b7c;this[_0xe7bc8c(_0x5cecf5._0x525bf1)]('goForward',[_0x41a475]);}async[_0x5d0b7c(0x281)](_0x40a909){const _0xf10c5d={_0x582d88:0x23f,_0x6e2b91:0x281,_0x530708:0x1a6},_0x5025ef=_0x5d0b7c;return this[_0x5025ef(_0xf10c5d._0x582d88)](_0x5025ef(_0xf10c5d._0x6e2b91),[_0x40a909]),this[_0x5025ef(_0xf10c5d._0x530708)][_0x5025ef(0x239)];}async['evaluateOnLocator'](_0x176bd3,_0x17f1f7,_0x492aaa){const _0x35cc36={_0x52329c:0x23f,_0x46c6f3:0x1ac,_0x49fee6:0x239},_0x3081d9=_0x5d0b7c;return this[_0x3081d9(_0x35cc36._0x52329c)](_0x3081d9(_0x35cc36._0x46c6f3),[_0x176bd3,_0x17f1f7,_0x492aaa]),this[_0x3081d9(0x1a6)][_0x3081d9(_0x35cc36._0x49fee6)];}async[_0x5d0b7c(0x191)](_0x4fea9b){const _0x3b844e={_0x96ae4c:0x274,_0x30f430:0x1a6,_0x20f902:0x232},_0x4b6633=_0x5d0b7c;this[_0x4b6633(0x23f)](_0x4b6633(0x191),[_0x4fea9b]);if(_0x4fea9b[_0x4b6633(_0x3b844e._0x96ae4c)][_0x4b6633(0x23e)]!==0x1||_0x4fea9b[_0x4b6633(_0x3b844e._0x96ae4c)][0x0][_0x4b6633(0x238)]!==_0x4b6633(0x251))return null;const _0x522a06=_0x4fea9b[_0x4b6633(0x274)][0x0]['ref'],_0x3b040f=this[_0x4b6633(_0x3b844e._0x30f430)][_0x4b6633(_0x3b844e._0x20f902)]?.[_0x522a06];return _0x3b040f??null;}async[_0x5d0b7c(0x1c7)](_0x1db605){const _0x5d0db6=_0x5d0b7c;return this['record'](_0x5d0db6(0x1c7),[_0x1db605]),this[_0x5d0db6(0x203)](_0x1db605?.[_0x5d0db6(0x211)]);}async[_0x5d0b7c(0x1c0)](_0x12441a,_0x4d8027){const _0x1e762f={_0x1beee9:0x1c0},_0x5af07d=_0x5d0b7c;return this['record'](_0x5af07d(_0x1e762f._0x1beee9),[_0x12441a,_0x4d8027]),this['screenshotBytes'](_0x4d8027?.['type']);}async[_0x5d0b7c(0x1af)](_0x2e5882,_0x4010aa){const _0x50e6e4={_0x4d2441:0x23f,_0x2afc4b:0x1af,_0x4dd9c5:0x1a6,_0x5130e3:0x1a0},_0x18ade6=_0x5d0b7c;return this[_0x18ade6(_0x50e6e4._0x4d2441)](_0x18ade6(_0x50e6e4._0x2afc4b),[_0x2e5882,_0x4010aa]),this[_0x18ade6(_0x50e6e4._0x4dd9c5)][_0x18ade6(_0x50e6e4._0x5130e3)]?this[_0x18ade6(0x1a6)][_0x18ade6(0x1a0)](_0x2e5882,_0x4010aa):[];}['screenshotBytes'](_0x3b366f){const _0x490227={_0x172496:0x1a6,_0x330085:0x26b},_0x333a9a=_0x5d0b7c,_0x12b874=this[_0x333a9a(_0x490227._0x172496)][_0x333a9a(0x203)];if(_0x12b874===void 0x0)return Buffer['from'](_0x333a9a(0x20e));return typeof _0x12b874===_0x333a9a(_0x490227._0x330085)?_0x12b874(_0x3b366f):_0x12b874;}async[_0x5d0b7c(0x24c)](_0x4d255e){const _0x58ff60={_0x24ac63:0x274,_0x45a206:0x23e,_0x572dd5:0x274,_0x4bd159:0x1a6,_0x541579:0x25f},_0x206112=_0x5d0b7c;this[_0x206112(0x23f)](_0x206112(0x24c),[_0x4d255e]);if(_0x4d255e[_0x206112(_0x58ff60._0x24ac63)][_0x206112(_0x58ff60._0x45a206)]===0x1&&_0x4d255e[_0x206112(0x274)][0x0][_0x206112(0x238)]==='ref'){const _0x49a4a7=_0x4d255e[_0x206112(_0x58ff60._0x572dd5)][0x0][_0x206112(0x251)];return this[_0x206112(_0x58ff60._0x4bd159)]['outerHtmlByRef']?.[_0x49a4a7]??_0x206112(0x27d)+_0x49a4a7+'\x22></div>';}return _0x206112(_0x58ff60._0x541579);}},FAKE_SET_UP_CALLS=new Set(['network.mock',_0x5d0b7c(0x27c),_0x5d0b7c(0x207),'clock.freeze',_0x5d0b7c(0x204),_0x5d0b7c(0x21d),_0x5d0b7c(0x23c),'newPage']),FakeContext=class{constructor(_0x489e3e,_0x1c5440,_0x455017,_0x49a2e6=![]){const _0x26900c={_0x33795b:0x1ae,_0x5a76f9:0x255,_0x503188:0x1da,_0x59d6f2:0x20c,_0x1a67d0:0x21f,_0x250c7e:0x1d2,_0x577739:0x1fb},_0x4e0baa={_0x263ff1:0x1a5},_0xe43ff6=_0x5d0b7c;this['recorder']=_0x489e3e,this[_0xe43ff6(0x1a6)]=_0x1c5440,this[_0xe43ff6(0x24d)]=_0x455017,this[_0xe43ff6(_0x26900c._0x33795b)]=_0x49a2e6,this['clockFrozen']=![];const _0xafb881=new FakePage(_0x489e3e,_0x1c5440,_0x455017+'.page0',_0x1c5440[_0xe43ff6(_0x26900c._0x5a76f9)]??_0xe43ff6(_0x26900c._0x503188));_0x1c5440['popupOnClick']&&(_0xafb881[_0xe43ff6(0x1e7)]=()=>{const _0x22b085=_0xe43ff6;this[_0x22b085(0x265)](_0x1c5440[_0x22b085(_0x4e0baa._0x263ff1)]);}),this[_0xe43ff6(_0x26900c._0x59d6f2)]=[_0xafb881],this[_0xe43ff6(_0x26900c._0x1a67d0)][_0xe43ff6(0x248)](_0xafb881),this[_0xe43ff6(0x1f7)]=[..._0x1c5440[_0xe43ff6(0x221)]??[]],this[_0xe43ff6(0x1f9)]={..._0x1c5440[_0xe43ff6(0x267)]??{}},this[_0xe43ff6(_0x26900c._0x250c7e)]={..._0x1c5440[_0xe43ff6(_0x26900c._0x577739)]??{}};}['recorder'];['behavior'];[_0x5d0b7c(0x24d)];[_0x5d0b7c(0x1ae)];static{__name(this,_0x5d0b7c(0x260));}['clockFrozen'];['pageList'];['activeIdx']=0x0;[_0x5d0b7c(0x21f)]=new WeakSet();['history']=new PageHistory();[_0x5d0b7c(0x270)]=[];[_0x5d0b7c(0x1f9)];[_0x5d0b7c(0x1d2)];[_0x5d0b7c(0x242)]=new Set();[_0x5d0b7c(0x26c)]=new RouteJournal();['downloads']=new DownloadQueue(async()=>{});['workerUrls'];[_0x5d0b7c(0x21e)]=new Set();[_0x5d0b7c(0x23f)](_0x468f54,_0x351ff5){const _0x405847={_0x15cbed:0x1f8,_0xa0fe62:0x24d},_0x299367=_0x5d0b7c;this[_0x299367(_0x405847._0x15cbed)][_0x299367(0x26d)]({'scope':this[_0x299367(_0x405847._0xa0fe62)],'method':_0x468f54,'args':_0x351ff5});}[_0x5d0b7c(0x1e4)](){const _0x213d3f={_0x43ba09:0x20c},_0x43dbd6=_0x5d0b7c;return this[_0x43dbd6(_0x213d3f._0x43ba09)];}['activePage'](){const _0x44dfb9={_0x247a8d:0x19b,_0xc9403d:0x19b},_0x5a0d52=_0x5d0b7c,_0x31e8bb=this[_0x5a0d52(0x20c)][this[_0x5a0d52(_0x44dfb9._0x247a8d)]];if(!_0x31e8bb)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this[_0x5a0d52(_0x44dfb9._0xc9403d)]});return _0x31e8bb;}[_0x5d0b7c(0x1f0)](){const _0xc33fb1=_0x5d0b7c;return this['behavior'][_0xc33fb1(0x1f0)]??[];}['pageConsole'](){const _0x69cd23={_0x1e17d7:0x198},_0x23f87b=_0x5d0b7c;return this[_0x23f87b(0x23f)](_0x23f87b(0x198),[]),this[_0x23f87b(0x1a6)][_0x23f87b(_0x69cd23._0x1e17d7)]??{'entries':[],'errors':[]};}[_0x5d0b7c(0x222)](_0x372557={}){const _0x539fd4={_0x26a310:0x23f,_0x3eb1e1:0x222,_0x1812c1:0x1b2},_0x540bd=_0x5d0b7c;return this[_0x540bd(_0x539fd4._0x26a310)](_0x540bd(_0x539fd4._0x3eb1e1),[_0x372557[_0x540bd(_0x539fd4._0x1812c1)]]),this['downloads']['take'](_0x372557[_0x540bd(0x1b2)]??0x0,_0x372557['name']);}['emitFakeDownload'](_0x5d42dc,_0x115102){const _0x484d57={_0x30c991:0x26d,_0x573e45:0x25b},_0x2941cf=_0x5d0b7c;this['downloads'][_0x2941cf(_0x484d57._0x30c991)]({'name':_0x5d42dc,'saveAs':__name(_0x6eb936=>writeFile(_0x6eb936,_0x115102),_0x2941cf(_0x484d57._0x573e45))});}[_0x5d0b7c(0x1cd)](){const _0x1144b2=_0x5d0b7c;return this[_0x1144b2(0x1a6)][_0x1144b2(0x1cd)]??[];}async[_0x5d0b7c(0x225)](_0x55d11a,_0x30c397){const _0x389644={_0x29403e:0x20c,_0x58d673:0x23e,_0x41f28f:0x1bb,_0x2b3f39:0x19b,_0x43210d:0x21f,_0x7f6b75:0x248,_0x347116:0x20c},_0x3128c6=_0x5d0b7c;this['record'](_0x3128c6(0x225),[_0x55d11a,_0x30c397]);if(_0x55d11a<0x0||_0x55d11a>=this[_0x3128c6(_0x389644._0x29403e)]['length'])throw new DriverError(_0x3128c6(0x1e3),{'index':_0x55d11a,'available':this[_0x3128c6(0x20c)][_0x3128c6(_0x389644._0x58d673)]});this['history'][_0x3128c6(_0x389644._0x41f28f)](this[_0x3128c6(0x20c)],this[_0x3128c6(_0x389644._0x2b3f39)],this[_0x3128c6(0x20c)][_0x55d11a]),this[_0x3128c6(0x19b)]=_0x55d11a,this['frameStack']['length']=0x0,this[_0x3128c6(_0x389644._0x43210d)][_0x3128c6(_0x389644._0x7f6b75)](this[_0x3128c6(_0x389644._0x347116)][_0x55d11a]);if(_0x30c397?.[_0x3128c6(0x18d)]!==![])this[_0x3128c6(0x23f)](_0x3128c6(0x195),[_0x55d11a]);}async[_0x5d0b7c(0x195)](_0x52c57b){const _0xc74ec0={_0x44bcaf:0x23e,_0x4b4743:0x20c},_0x332871=_0x5d0b7c,_0x36fbe9=_0x52c57b??this['activeIdx'];if(_0x36fbe9<0x0||_0x36fbe9>=this['pageList'][_0x332871(_0xc74ec0._0x44bcaf)])throw new DriverError(_0x332871(0x1e3),{'index':_0x36fbe9,'available':this[_0x332871(_0xc74ec0._0x4b4743)]['length']});this['record'](_0x332871(0x195),[_0x36fbe9]);}async[_0x5d0b7c(0x22c)](){const _0x31f9dc={_0x2bffa4:0x23f,_0x65f8f3:0x22c},_0x519abb=_0x5d0b7c;this[_0x519abb(_0x31f9dc._0x2bffa4)](_0x519abb(_0x31f9dc._0x65f8f3),[]);const _0x4a66f3=this['emitFakePopup'](_0x519abb(0x1da));return await this[_0x519abb(0x225)](_0x4a66f3),_0x4a66f3;}async[_0x5d0b7c(0x1bd)](_0x5b8a2e){const _0x52b10b={_0x1ad552:0x1b7,_0x126a58:0x19b,_0x287913:0x20c,_0x383be2:0x23f,_0x2f538e:0x195},_0x39f1c5=_0x5d0b7c;this[_0x39f1c5(0x23f)](_0x39f1c5(0x1bd),[_0x5b8a2e]);const {closing:_0x3ce205,nextActive:_0x52e823}=this[_0x39f1c5(0x201)][_0x39f1c5(_0x52b10b._0x1ad552)](this[_0x39f1c5(0x20c)],this[_0x39f1c5(0x19b)],_0x5b8a2e??this[_0x39f1c5(_0x52b10b._0x126a58)]),_0x2a311b=_0x3ce205===this[_0x39f1c5(0x20c)][this[_0x39f1c5(0x19b)]];this[_0x39f1c5(_0x52b10b._0x287913)]['splice'](this[_0x39f1c5(0x20c)]['indexOf'](_0x3ce205),0x1),this[_0x39f1c5(0x19b)]=_0x52e823;if(!_0x2a311b)return;this[_0x39f1c5(0x270)][_0x39f1c5(0x23e)]=0x0,this[_0x39f1c5(_0x52b10b._0x383be2)](_0x39f1c5(_0x52b10b._0x2f538e),[_0x52e823]);}[_0x5d0b7c(0x22a)](_0x2d75d5){const _0x1ba4e4=_0x5d0b7c;return subscribe(this[_0x1ba4e4(0x242)],_0x2d75d5);}async[_0x5d0b7c(0x209)](_0x2a709f={}){const _0x5c790b={_0x556803:0x21f},_0x25ba16=_0x5d0b7c;return this[_0x25ba16(0x23f)](_0x25ba16(0x209),[_0x2a709f]),claimNewPage(this['pageList'],this[_0x25ba16(_0x5c790b._0x556803)],_0x2a709f['timeoutMs']??0x0);}async[_0x5d0b7c(0x1ea)](_0x29d3f3){const _0x5d9ef7={_0x3e6267:0x23f,_0x4aea3a:0x1ea},_0xb86195=_0x5d0b7c;this[_0xb86195(_0x5d9ef7._0x3e6267)](_0xb86195(_0x5d9ef7._0x4aea3a),[_0x29d3f3]);}[_0x5d0b7c(0x194)](){const _0xdbbbb7={_0x4b1513:0x1f8,_0x579c7b:0x20c,_0x3d4367:0x259,_0x45cb41:0x1da},_0x2cb0fa=_0x5d0b7c,_0x5558f5=this[_0x2cb0fa(_0xdbbbb7._0x4b1513)][_0x2cb0fa(0x1ec)]()[_0x2cb0fa(0x231)](_0x79a0d4=>_0x79a0d4[_0x2cb0fa(0x24d)]===this[_0x2cb0fa(0x24d)]||_0x79a0d4[_0x2cb0fa(0x24d)]['startsWith'](this['scope']+_0x2cb0fa(0x257)));return this[_0x2cb0fa(_0xdbbbb7._0x579c7b)][_0x2cb0fa(0x23e)]===0x1&&this[_0x2cb0fa(0x20c)][0x0][_0x2cb0fa(_0xdbbbb7._0x3d4367)]()===_0x2cb0fa(_0xdbbbb7._0x45cb41)&&!_0x5558f5[_0x2cb0fa(0x25e)](_0x157d59=>FAKE_SET_UP_CALLS[_0x2cb0fa(0x1dd)](_0x157d59[_0x2cb0fa(0x197)]));}async['browserContextId'](){return this['scope'];}[_0x5d0b7c(0x196)](){const _0x437d9e=_0x5d0b7c;if(!this['hasClock'])return NO_CLOCK;return{'freeze':__name(async _0x3078cc=>{const _0x27231d=_0x198e;this[_0x27231d(0x23f)](_0x27231d(0x213),[_0x3078cc]),this['clockFrozen']=!![];},_0x437d9e(0x278)),'tick':__name(async _0x13f6fb=>this[_0x437d9e(0x23f)](_0x437d9e(0x204),[_0x13f6fb]),'tick'),'run':__name(async()=>{const _0x6b98c4=_0x437d9e;this[_0x6b98c4(0x23f)](_0x6b98c4(0x21d),[]),this['clockFrozen']=![];},_0x437d9e(0x1fe)),'frozen':__name(()=>this[_0x437d9e(0x229)],_0x437d9e(0x1f6))};}[_0x5d0b7c(0x1ce)](){const _0xbe9a98={_0x2c3365:0x280},_0x3d60d1={_0x4cb3e2:0x23f,_0x28f5b8:0x276,_0x5eb398:0x1a8,_0x3b5423:0x1b2},_0x7ceba7={_0x3e1df2:0x22d},_0x4a1eb1={_0x2a3cd0:0x216,_0x5af95a:0x26c,_0x5b8c39:0x19f},_0x4cbab4=_0x5d0b7c;return{'mock':__name(async(_0x4d0a13,_0x238bda)=>{const _0x3b0328=_0x198e;this[_0x3b0328(0x23f)](_0x3b0328(_0x4a1eb1._0x2a3cd0),[_0x4d0a13,_0x238bda]),this[_0x3b0328(_0x4a1eb1._0x5af95a)][_0x3b0328(_0x4a1eb1._0x5b8c39)](_0x4d0a13,_0x238bda);},'mock'),'unmock':__name(async _0x4cb52c=>{const _0x4fe055=_0x198e;this[_0x4fe055(0x23f)](_0x4fe055(_0x7ceba7._0x3e1df2),[_0x4cb52c]),this[_0x4fe055(0x26c)][_0x4fe055(0x1db)](_0x4cb52c);},_0x4cbab4(_0xbe9a98._0x2c3365)),'waitForRequest':__name((_0x12fdd6,_0x2abca9)=>{const _0x49150c=_0x4cbab4;return this[_0x49150c(_0x3d60d1._0x4cb3e2)](_0x49150c(_0x3d60d1._0x28f5b8),[_0x12fdd6,_0x2abca9]),this['routes'][_0x49150c(_0x3d60d1._0x5eb398)](_0x12fdd6,_0x2abca9[_0x49150c(_0x3d60d1._0x3b5423)]);},_0x4cbab4(0x1c3)),'blocked':__name(_0x1c9685=>this['routes'][_0x4cbab4(0x1d6)](_0x1c9685),_0x4cbab4(0x1d6))};}async[_0x5d0b7c(0x1d4)](_0x45bb4a){const _0x16de70={_0x1b98f7:0x23f,_0x59f4cb:0x1d4,_0xe48c06:0x1a6},_0x3ba587=_0x5d0b7c;this[_0x3ba587(_0x16de70._0x1b98f7)](_0x3ba587(_0x16de70._0x59f4cb),[_0x45bb4a]);const _0x2734a6=this['workerUrls'][_0x3ba587(0x1d1)](_0xbbce6a=>workerMatches(_0xbbce6a,_0x45bb4a?.[_0x3ba587(0x259)]));if(_0x2734a6!==void 0x0)return this[_0x3ba587(0x234)](_0x2734a6);if(!this[_0x3ba587(_0x16de70._0xe48c06)][_0x3ba587(0x1bc)])throw new ServiceWorkerNeedsProfileError();const _0x30bc61=_0x45bb4a?.[_0x3ba587(0x1b2)]??0x3e8,_0x1520d8=await new Promise((_0x41fb45,_0x5cad49)=>{const _0x1b5943={_0x390d49:0x21e,_0x5b3ad2:0x1f7},_0x462ad6=_0x3ba587,_0x519130=__name(_0x21930d=>{const _0x391daa=_0x198e;if(!workerMatches(_0x21930d,_0x45bb4a?.[_0x391daa(0x259)]))return;clearTimeout(_0x1b3705),this['workerStarted'][_0x391daa(0x1db)](_0x519130),_0x41fb45(_0x21930d);},_0x462ad6(0x214)),_0x1b3705=setTimeout(()=>{const _0x257a1b=_0x462ad6;this[_0x257a1b(_0x1b5943._0x390d49)]['delete'](_0x519130),_0x5cad49(new ServiceWorkerWaitTimeoutError(_0x30bc61,_0x45bb4a?.[_0x257a1b(0x259)],this[_0x257a1b(_0x1b5943._0x5b3ad2)]));},_0x30bc61);this[_0x462ad6(0x21e)][_0x462ad6(0x248)](_0x519130);});return this['fakeWorker'](_0x1520d8);}['fakeWorker'](_0x1ff23c){const _0x55c2e5={_0x5299bf:0x281},_0x32c08c={_0xff8e3c:0x23f,_0x5d83af:0x1fd,_0x109cfd:0x239},_0x5f41fe=_0x5d0b7c;return{'url':__name(()=>_0x1ff23c,'url'),'evaluate':__name(async(_0x1f558f,_0x347cb0)=>{const _0x3b38ab=_0x198e;return this[_0x3b38ab(_0x32c08c._0xff8e3c)](_0x3b38ab(_0x32c08c._0x5d83af),[_0x1ff23c,_0x1f558f,_0x347cb0]),this[_0x3b38ab(0x1a6)][_0x3b38ab(_0x32c08c._0x109cfd)];},_0x5f41fe(_0x55c2e5._0x5299bf))};}[_0x5d0b7c(0x236)](_0x279053){const _0x506203={_0x165192:0x1f7,_0x239343:0x21e},_0x514506=_0x5d0b7c;this[_0x514506(_0x506203._0x165192)]['push'](_0x279053);for(const _0x46f265 of[...this[_0x514506(_0x506203._0x239343)]])_0x46f265(_0x279053);}[_0x5d0b7c(0x1d9)](_0x363c62,_0x1d2bac){const _0x31644e={_0x221568:0x1b6,_0x1ff44f:0x23f,_0x371539:0x26c,_0x58dd26:0x215},_0x215f2e=_0x5d0b7c,_0x3929e4=this[_0x215f2e(0x26c)][_0x215f2e(_0x31644e._0x221568)](_0x363c62);if(_0x3929e4?.['kind']===_0x215f2e(0x224)&&_0x3929e4[_0x215f2e(_0x31644e._0x1ff44f)])this[_0x215f2e(_0x31644e._0x371539)][_0x215f2e(0x243)](_0x363c62,_0x1d2bac);this[_0x215f2e(0x26c)][_0x215f2e(_0x31644e._0x58dd26)](_0x363c62,_0x1d2bac);}[_0x5d0b7c(0x265)](_0x5a1f3b){const _0x504163={_0x4cd7da:0x24d,_0x2b7308:0x23e},_0x35a442=_0x5d0b7c,_0x3ff776=this[_0x35a442(_0x504163._0x4cd7da)]+_0x35a442(0x257)+this[_0x35a442(0x20c)]['length'],_0x3cf384=new FakePage(this[_0x35a442(0x1f8)],this[_0x35a442(0x1a6)],_0x3ff776,_0x5a1f3b);this['pageList']['push'](_0x3cf384);const _0x217ba3=this[_0x35a442(0x20c)][_0x35a442(_0x504163._0x2b7308)]-0x1;for(const _0x1fa1df of this['newPageListeners']){try{_0x1fa1df({'index':_0x217ba3,'url':_0x5a1f3b});}catch{}}return _0x217ba3;}[_0x5d0b7c(0x23b)](_0x4ea914){const _0x2935ef={_0x2e89d5:0x23e,_0xe50375:0x1e3,_0x1f3270:0x20c},_0x78925b=_0x5d0b7c;if(_0x4ea914<0x0||_0x4ea914>=this[_0x78925b(0x20c)][_0x78925b(_0x2935ef._0x2e89d5)])throw new DriverError(_0x78925b(_0x2935ef._0xe50375),{'index':_0x4ea914,'available':this[_0x78925b(_0x2935ef._0x1f3270)][_0x78925b(0x23e)]});this['pageList']['splice'](_0x4ea914,0x1);}async[_0x5d0b7c(0x1f2)](_0x346633){const _0x5c5ea8={_0x52cbb7:0x270,_0x48d8ce:0x26d},_0x5e3f57=_0x5d0b7c;this[_0x5e3f57(0x23f)]('enterFrame',[_0x346633]);if(!_0x346633['steps']['length'])throw new LocatorError(_0x5e3f57(0x19d),{'locator':_0x346633});this[_0x5e3f57(_0x5c5ea8._0x52cbb7)][_0x5e3f57(_0x5c5ea8._0x48d8ce)](_0x346633);}async[_0x5d0b7c(0x1be)](){const _0x29551d={_0x368d38:0x23f,_0x24f2af:0x270,_0xe7d3:0x228,_0x4ddb16:0x270},_0xeaf515=_0x5d0b7c;this[_0xeaf515(_0x29551d._0x368d38)](_0xeaf515(0x1be),[]);if(this[_0xeaf515(_0x29551d._0x24f2af)][_0xeaf515(0x23e)]===0x0)throw new DriverError(_0xeaf515(_0x29551d._0xe7d3),{});this[_0xeaf515(_0x29551d._0x4ddb16)][_0xeaf515(0x1e2)]();}async[_0x5d0b7c(0x207)](_0x1ff4bf,_0x2b11a7){const _0x5bb4b9={_0x440ce0:0x207,_0x2ccdcc:0x1f9},_0x42fe20=_0x5d0b7c;this['record'](_0x42fe20(_0x5bb4b9._0x440ce0),[_0x1ff4bf,_0x2b11a7]),this[_0x42fe20(_0x5bb4b9._0x2ccdcc)][_0x1ff4bf]=_0x2b11a7;}async['getLocalStorage'](_0x124a3c){const _0x430558={_0x474b5f:0x23f,_0xaaf0cf:0x1cb,_0x55e1e4:0x1f9},_0x796f2=_0x5d0b7c;return this[_0x796f2(_0x430558._0x474b5f)](_0x796f2(_0x430558._0xaaf0cf),[_0x124a3c]),this[_0x796f2(_0x430558._0x55e1e4)][_0x124a3c]??null;}async[_0x5d0b7c(0x27c)](_0x62ffb9,_0x53d3cf,_0x322e57){const _0x45a3ec=_0x5d0b7c;this[_0x45a3ec(0x23f)](_0x45a3ec(0x27c),[_0x62ffb9,_0x53d3cf,_0x322e57]),this['cookieState'][_0x62ffb9]=_0x53d3cf;}async['getCookie'](_0x1f48fb){const _0x338136={_0x274016:0x23f},_0x2f73f6=_0x5d0b7c;return this[_0x2f73f6(_0x338136._0x274016)]('getCookie',[_0x1f48fb]),this[_0x2f73f6(0x1d2)][_0x1f48fb]??null;}async[_0x5d0b7c(0x18c)](_0x13a366){const _0x494131={_0x4d656b:0x18c},_0x24e735=_0x5d0b7c;this[_0x24e735(0x23f)](_0x24e735(_0x494131._0x4d656b),[_0x13a366]);}async[_0x5d0b7c(0x281)](_0x40ee91){const _0x13b2c5={_0x354342:0x281},_0x4a9fe5=_0x5d0b7c;return this[_0x4a9fe5(0x23f)](_0x4a9fe5(_0x13b2c5._0x354342),[_0x40ee91]),void 0x0;}async[_0x5d0b7c(0x1ee)](){const _0x29778f={_0x2feaab:0x1ee,_0x5daa60:0x210},_0x3bc198=_0x5d0b7c;this['record'](_0x3bc198(_0x29778f._0x2feaab),[]),await this['behavior'][_0x3bc198(_0x29778f._0x5daa60)];}[_0x5d0b7c(0x1bf)](){const _0x2dc1dc={_0x2bc419:0x23e},_0x590163=_0x5d0b7c;return this['frameStack'][_0x590163(_0x2dc1dc._0x2bc419)];}},FakeWebDriver=class{constructor(_0x38c897={}){const _0x1b0886={_0x33aadb:0x1f8},_0x1a6a42=_0x5d0b7c;this['behavior']=_0x38c897,this[_0x1a6a42(_0x1b0886._0x33aadb)]=createRecorder();}[_0x5d0b7c(0x1a6)];static{__name(this,_0x5d0b7c(0x262));}[_0x5d0b7c(0x1e0)]=![];[_0x5d0b7c(0x1f8)];[_0x5d0b7c(0x1ff)]=[];async[_0x5d0b7c(0x21c)](_0x1d2b42){const _0x4d3ae2={_0x15eea2:0x26d,_0x36b370:0x1e0},_0x52b82b=_0x5d0b7c;this[_0x52b82b(0x1f8)][_0x52b82b(_0x4d3ae2._0x15eea2)]({'scope':'driver','method':_0x52b82b(0x21c),'args':[_0x1d2b42]}),this[_0x52b82b(_0x4d3ae2._0x36b370)]=!![];}async[_0x5d0b7c(0x1c1)](_0x197ab0){const _0xca4f96={_0x5a1a0c:0x1f8,_0x507e99:0x26f,_0x1a2bd8:0x22e,_0x3477a7:0x1ff,_0x300a0f:0x26d},_0x241ad0=_0x5d0b7c;this[_0x241ad0(_0xca4f96._0x5a1a0c)]['push']({'scope':'driver','method':'newContext','args':[_0x197ab0]});if(!this[_0x241ad0(0x1e0)])throw new DriverError(_0x241ad0(_0xca4f96._0x507e99),{});const _0x51d566=new FakeContext(this[_0x241ad0(0x1f8)],this[_0x241ad0(0x1a6)],_0x241ad0(_0xca4f96._0x1a2bd8)+this[_0x241ad0(0x1ff)][_0x241ad0(0x23e)],_0x197ab0?.['clock']===!![]);return this[_0x241ad0(_0xca4f96._0x3477a7)][_0x241ad0(_0xca4f96._0x300a0f)](_0x51d566),_0x51d566;}async[_0x5d0b7c(0x1ee)](){const _0x4d02d0={_0x2438d0:0x26d,_0x311721:0x1ee,_0x354d9b:0x1e0},_0x197d86=_0x5d0b7c;this['recorder'][_0x197d86(_0x4d02d0._0x2438d0)]({'scope':_0x197d86(0x219),'method':_0x197d86(_0x4d02d0._0x311721),'args':[]}),this[_0x197d86(_0x4d02d0._0x354d9b)]=![];}[_0x5d0b7c(0x1ba)](){return void 0x0;}async['connectShared'](){const _0x54eee8={_0x55fd80:0x1c8},_0x199849=_0x5d0b7c;throw new DriverError(_0x199849(_0x54eee8._0x55fd80),{});}async[_0x5d0b7c(0x208)](_0x6a0e3){const _0x26c044=_0x5d0b7c;throw new DriverError(_0x26c044(0x227),{});}[_0x5d0b7c(0x275)](){return![];}[_0x5d0b7c(0x1ec)](){const _0x27a1d6=_0x5d0b7c;return this[_0x27a1d6(0x1f8)][_0x27a1d6(0x1ec)]();}['callsFor'](_0x59fec1){const _0x3e6fcd={_0x343896:0x1ec,_0x8d86a1:0x231},_0x442c70=_0x5d0b7c;return this['recorder'][_0x442c70(_0x3e6fcd._0x343896)]()[_0x442c70(_0x3e6fcd._0x8d86a1)](_0x234a19=>_0x234a19[_0x442c70(0x197)]===_0x59fec1);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LocatorValue, o as DriverDownload, D as DriverContext, W as WebDriver, h as DriverPage } from '../interfaces-
|
|
2
|
-
export { p as LocatorStep, q as appendStep, r as describeLocator, s as isLocatorValue, t as rootedAt } from '../interfaces-
|
|
1
|
+
import { L as LocatorValue, o as DriverDownload, D as DriverContext, W as WebDriver, h as DriverPage } from '../interfaces-D5ePwBX6.js';
|
|
2
|
+
export { p as LocatorStep, q as appendStep, r as describeLocator, s as isLocatorValue, t as rootedAt } from '../interfaces-D5ePwBX6.js';
|
|
3
3
|
import { Matcher, RegexLiteral, JudgeRequest, JudgeVerdict, VisualFailureRecord, SoftFailureRecord, TeardownStateRecord, TeardownFailureRecord } from '@unotest/protocol';
|
|
4
4
|
import { ExecutionWalker, ExecutionEvent, RunResult, RunOptions } from '@unotest/dsl/executor';
|
|
5
5
|
export { ExecutionError, ExecutionEvent, RunOptions, RunResult } from '@unotest/dsl/executor';
|
|
@@ -726,6 +726,12 @@ declare class TestRuntimeManager {
|
|
|
726
726
|
* Null when the runtime isn't registered. */
|
|
727
727
|
currentContext(id: string): DriverContext | null;
|
|
728
728
|
list(): RuntimeSummary[];
|
|
729
|
+
/** A client acted on the runtime — a debug command arrived. A runtime
|
|
730
|
+
* paused on a failure gets its full TTL again: somebody is there. A read
|
|
731
|
+
* (`inspect`) does not count — the run's own runtime.json writer reads
|
|
732
|
+
* every few seconds, and counting it kept a paused run nobody was
|
|
733
|
+
* attached to alive for ever, holding the queue (#387). */
|
|
734
|
+
touch(id: string): void;
|
|
729
735
|
private armTtl;
|
|
730
736
|
private clearTtl;
|
|
731
737
|
private requireActive;
|