@unotest/web 0.43.0 → 0.43.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 +57 -3
- package/dist/config/schema.d.ts +34 -34
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.js +27 -3
- package/dist/mcp/server.js +1 -1
- 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/agent-integration.md +19 -1
- package/guides/dsl-reference.md +8 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.43.1] - 2026-09-29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 10e03e9: A debug command written a moment after another is no longer lost. The runner read `commands.jsonl` only on file-change events, and two appends a millisecond apart (`take_wheel`, then `abort_runtime`) could arrive as one event that fired before the second write landed: the second command waited, unread, until the file changed again. The paused run was never stopped, and it kept holding the project. The runner now keeps reading while the file grows, and it also checks the file size every 250 ms.
|
|
8
|
+
- 75799c8: `abort_runtime` no longer answers ok for a stop the runner never took. It used to answer ok as soon as the command was written, so an agent was told a paused run had stopped while the run went on holding the project, and the next `run_test` could not start. It now answers ok once the runner has acted on the stop. A runner that is alive but does not act within ten seconds gets a `stop-not-accepted` error naming the state it is stuck in and what to do next.
|
|
9
|
+
|
|
10
|
+
What changes for you: `abort_runtime` may now answer `stop-not-accepted`
|
|
11
|
+
instead of `ok`; when it does, do what its `next` says.
|
|
12
|
+
|
|
13
|
+
- fd8a8b6: `box runs`, `box run`, `box queue`, `box screenshot` and `bundle push --run` no longer need `--env` when the box serves a single environment: that one is used. With several, the refusal lists them and asks for `--env <project>/<environment>`; an explicit `--env` works as before. The MCP tools `box_runs`, `box_run`, `box_run_download`, `box_queue` and `box_screenshot` follow the same rule: `environment` may be left out on a box with one environment, and calls that pass it work unchanged.
|
|
14
|
+
- cf3bed9: The page captured on a failure no longer holds what a `<noscript>` element contains. With JavaScript on, a browser keeps that content as plain text, so a value a page repeated there for readers without JavaScript — a secret field's included — reached the capture past the rule that hides secret fields. The element itself is kept, empty, so the page's structure is still visible.
|
|
15
|
+
- 6d83fe9: After `run_test` pauses and auto-attaches, `explore_start` now opens the agent's own browser instead of recording into the run's (which answered every step with `not_your_turn`), and after `release_wheel` the agent can still take screenshots, assert and wait on the run's page.
|
|
16
|
+
- 5433bab: Secret field values no longer leak into failures and replies. An
|
|
17
|
+
`assertValue` failure on a field marked as a credential (`type="password"`,
|
|
18
|
+
or `autocomplete` of `current-password`, `new-password` or `one-time-code`)
|
|
19
|
+
reports only the lengths of the two values, for example
|
|
20
|
+
`expected ‹hidden, 12 chars›, got ‹hidden, 32 chars›`. The same fields are
|
|
21
|
+
no longer read by the grounding capture, and show as `‹hidden, N chars›` in
|
|
22
|
+
a failure's page HTML and in a fill recorded by the viewer. MCP replies now
|
|
23
|
+
mask registered secrets as `‹secret:NAME›`, as the session journal already
|
|
24
|
+
did: text, structured content and tool error messages.
|
|
25
|
+
|
|
26
|
+
**What to check if you ran 0.43.0 or earlier.** The value of a password or
|
|
27
|
+
one-time-code field, and the value of a secret from `unotest/.secrets`, could
|
|
28
|
+
appear in plain text in MCP tool replies (for example `assert_text`,
|
|
29
|
+
`check_locator`, `assert_value` and the `get_failure_*` tools), in the text
|
|
30
|
+
of an `assertValue` failure, and in the `page.html` and `failure.json` saved
|
|
31
|
+
with a failed run. Search your MCP client's transcripts and your saved run
|
|
32
|
+
failures for your secrets and credentials; if one is there, rotate it.
|
|
33
|
+
|
|
34
|
+
- 30e45a2: `take_wheel` and `release_wheel` now answer `ok` only once the paused run has
|
|
35
|
+
actually handed the wheel over; before, they answered as soon as the request
|
|
36
|
+
was written, and on a busy machine an agent could still click in a run it had
|
|
37
|
+
just given back. When the run does not apply it, the tools answer
|
|
38
|
+
`wheel-not-accepted` with what to do next. From the moment `release_wheel` is
|
|
39
|
+
called, the agent's page-changing steps answer `not_your_turn` until
|
|
40
|
+
`take_wheel` succeeds again.
|
|
41
|
+
|
|
42
|
+
What changes for you: an agent that waited for `ok` from `take_wheel` or
|
|
43
|
+
`release_wheel` may now get `wheel-not-accepted` instead, and should do what
|
|
44
|
+
its `next` says — the wheel may simply have gone back to the human, which
|
|
45
|
+
`inspect_runtime` shows in its `wheel` field. A run with no runner left now
|
|
46
|
+
answers `no-runner` instead of `ok`. Both are marked as errors, like
|
|
47
|
+
`abort_runtime`'s `stop-not-accepted`.
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [10e03e9]
|
|
50
|
+
- Updated dependencies [5433bab]
|
|
51
|
+
- @unotest/core@0.43.1
|
|
52
|
+
- @unotest/grounder-client@0.43.1
|
|
53
|
+
- @unotest/dsl@0.43.1
|
|
54
|
+
- @unotest/protocol@0.43.1
|
|
55
|
+
- @unotest/viewer@0.43.1
|
|
56
|
+
|
|
3
57
|
## [0.43.0] - 2026-09-27
|
|
4
58
|
|
|
5
59
|
### Minor Changes
|
|
@@ -1238,7 +1292,7 @@ picker on` fetches this project's own access and writes the three grounder
|
|
|
1238
1292
|
|
|
1239
1293
|
That screen named one command:
|
|
1240
1294
|
|
|
1241
|
-
|
|
1295
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
1242
1296
|
|
|
1243
1297
|
In a project that has just been created, the command refuses with `no box
|
|
1244
1298
|
address` before it does anything: the project holds neither the box's address
|
|
@@ -1247,8 +1301,8 @@ address` before it does anything: the project holds neither the box's address
|
|
|
1247
1301
|
|
|
1248
1302
|
The screen now names both steps, in the order they have to happen:
|
|
1249
1303
|
|
|
1250
|
-
|
|
1251
|
-
|
|
1304
|
+
npx @unotest/web box access larch
|
|
1305
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
1252
1306
|
|
|
1253
1307
|
The box's own name is filled in when its licence carries one. `box access`
|
|
1254
1308
|
with no name refuses, and its refusal offers to create a box — to somebody who
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -37,10 +37,10 @@ declare const RetryConfigSchema: z.ZodObject<{
|
|
|
37
37
|
on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
|
|
38
38
|
}, "strict", z.ZodTypeAny, {
|
|
39
39
|
count: number;
|
|
40
|
-
on: ("
|
|
40
|
+
on: ("network" | "transient" | "crash")[];
|
|
41
41
|
}, {
|
|
42
42
|
count: number;
|
|
43
|
-
on: ("
|
|
43
|
+
on: ("network" | "transient" | "crash")[];
|
|
44
44
|
}>;
|
|
45
45
|
type RetryConfig = z.infer<typeof RetryConfigSchema>;
|
|
46
46
|
declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
@@ -222,15 +222,15 @@ declare const WebServerConfigSchema: z.ZodObject<{
|
|
|
222
222
|
/** How long to wait for the URL to come up after spawning. */
|
|
223
223
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
224
224
|
}, "strict", z.ZodTypeAny, {
|
|
225
|
-
command: string;
|
|
226
225
|
url: string;
|
|
227
|
-
reuseExistingServer: boolean;
|
|
228
226
|
timeoutMs: number;
|
|
229
|
-
}, {
|
|
230
227
|
command: string;
|
|
228
|
+
reuseExistingServer: boolean;
|
|
229
|
+
}, {
|
|
231
230
|
url: string;
|
|
232
|
-
|
|
231
|
+
command: string;
|
|
233
232
|
timeoutMs?: number | undefined;
|
|
233
|
+
reuseExistingServer?: boolean | undefined;
|
|
234
234
|
}>;
|
|
235
235
|
type WebServerConfig = z.infer<typeof WebServerConfigSchema>;
|
|
236
236
|
declare const EnvConfigSchema: z.ZodObject<{
|
|
@@ -267,15 +267,15 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
267
267
|
/** How long to wait for the URL to come up after spawning. */
|
|
268
268
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
269
269
|
}, "strict", z.ZodTypeAny, {
|
|
270
|
-
command: string;
|
|
271
270
|
url: string;
|
|
272
|
-
reuseExistingServer: boolean;
|
|
273
271
|
timeoutMs: number;
|
|
274
|
-
}, {
|
|
275
272
|
command: string;
|
|
273
|
+
reuseExistingServer: boolean;
|
|
274
|
+
}, {
|
|
276
275
|
url: string;
|
|
277
|
-
|
|
276
|
+
command: string;
|
|
278
277
|
timeoutMs?: number | undefined;
|
|
278
|
+
reuseExistingServer?: boolean | undefined;
|
|
279
279
|
}>>;
|
|
280
280
|
browsers: z.ZodArray<z.ZodEnum<["chromium", "firefox", "webkit"]>, "many">;
|
|
281
281
|
channel: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["chrome", "msedge", "chrome-beta", "chromium"]>, z.ZodEffects<z.ZodLiteral<"bundled">, null, "bundled">, z.ZodNull]>>;
|
|
@@ -296,21 +296,21 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
296
296
|
userDataDir: z.ZodOptional<z.ZodString>;
|
|
297
297
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
298
298
|
}, "strict", z.ZodTypeAny, {
|
|
299
|
-
userDataDir?: string | undefined;
|
|
300
299
|
args?: string[] | undefined;
|
|
301
|
-
}, {
|
|
302
300
|
userDataDir?: string | undefined;
|
|
301
|
+
}, {
|
|
303
302
|
args?: string[] | undefined;
|
|
303
|
+
userDataDir?: string | undefined;
|
|
304
304
|
}>>;
|
|
305
305
|
retry: z.ZodObject<{
|
|
306
306
|
count: z.ZodNumber;
|
|
307
307
|
on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
|
|
308
308
|
}, "strict", z.ZodTypeAny, {
|
|
309
309
|
count: number;
|
|
310
|
-
on: ("
|
|
310
|
+
on: ("network" | "transient" | "crash")[];
|
|
311
311
|
}, {
|
|
312
312
|
count: number;
|
|
313
|
-
on: ("
|
|
313
|
+
on: ("network" | "transient" | "crash")[];
|
|
314
314
|
}>;
|
|
315
315
|
failureBundle: z.ZodObject<{
|
|
316
316
|
/** Tier 1 is always on by D-16. Schema lock — not user-toggleable. */
|
|
@@ -496,9 +496,8 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
496
496
|
uploadDir?: string | undefined;
|
|
497
497
|
}>;
|
|
498
498
|
}, "strict", z.ZodTypeAny, {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
};
|
|
499
|
+
defaultTimeoutMs: number;
|
|
500
|
+
defaultNavigationTimeoutMs: number;
|
|
502
501
|
browsers: ("chromium" | "firefox" | "webkit")[];
|
|
503
502
|
viewport: {
|
|
504
503
|
width: number;
|
|
@@ -506,7 +505,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
506
505
|
};
|
|
507
506
|
retry: {
|
|
508
507
|
count: number;
|
|
509
|
-
on: ("
|
|
508
|
+
on: ("network" | "transient" | "crash")[];
|
|
510
509
|
};
|
|
511
510
|
failureBundle: {
|
|
512
511
|
tier1: true;
|
|
@@ -524,8 +523,9 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
524
523
|
dialogPolicy: "accept" | "dismiss" | "manual";
|
|
525
524
|
testDir: string;
|
|
526
525
|
helpersDir: string;
|
|
527
|
-
|
|
528
|
-
|
|
526
|
+
env: {
|
|
527
|
+
shared: string[];
|
|
528
|
+
};
|
|
529
529
|
linter: {
|
|
530
530
|
enabled: boolean;
|
|
531
531
|
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
@@ -553,21 +553,20 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
553
553
|
};
|
|
554
554
|
baseUrl?: string | undefined;
|
|
555
555
|
webServer?: {
|
|
556
|
-
command: string;
|
|
557
556
|
url: string;
|
|
558
|
-
reuseExistingServer: boolean;
|
|
559
557
|
timeoutMs: number;
|
|
558
|
+
command: string;
|
|
559
|
+
reuseExistingServer: boolean;
|
|
560
560
|
} | undefined;
|
|
561
|
-
channel?: "
|
|
561
|
+
channel?: "chrome" | "msedge" | "chrome-beta" | "chromium" | null | undefined;
|
|
562
562
|
launch?: {
|
|
563
|
-
userDataDir?: string | undefined;
|
|
564
563
|
args?: string[] | undefined;
|
|
564
|
+
userDataDir?: string | undefined;
|
|
565
565
|
} | undefined;
|
|
566
566
|
storageState?: string | undefined;
|
|
567
567
|
}, {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
};
|
|
568
|
+
defaultTimeoutMs: number;
|
|
569
|
+
defaultNavigationTimeoutMs: number;
|
|
571
570
|
browsers: ("chromium" | "firefox" | "webkit")[];
|
|
572
571
|
viewport: {
|
|
573
572
|
width: number;
|
|
@@ -575,7 +574,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
575
574
|
};
|
|
576
575
|
retry: {
|
|
577
576
|
count: number;
|
|
578
|
-
on: ("
|
|
577
|
+
on: ("network" | "transient" | "crash")[];
|
|
579
578
|
};
|
|
580
579
|
failureBundle: {
|
|
581
580
|
tier2: boolean;
|
|
@@ -593,8 +592,9 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
593
592
|
dialogPolicy: "accept" | "dismiss" | "manual";
|
|
594
593
|
testDir: string;
|
|
595
594
|
helpersDir: string;
|
|
596
|
-
|
|
597
|
-
|
|
595
|
+
env: {
|
|
596
|
+
shared?: string[] | undefined;
|
|
597
|
+
};
|
|
598
598
|
linter: {
|
|
599
599
|
enabled: boolean;
|
|
600
600
|
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
|
|
@@ -616,15 +616,15 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
616
616
|
};
|
|
617
617
|
baseUrl?: string | undefined;
|
|
618
618
|
webServer?: {
|
|
619
|
-
command: string;
|
|
620
619
|
url: string;
|
|
621
|
-
|
|
620
|
+
command: string;
|
|
622
621
|
timeoutMs?: number | undefined;
|
|
622
|
+
reuseExistingServer?: boolean | undefined;
|
|
623
623
|
} | undefined;
|
|
624
|
-
channel?: "
|
|
624
|
+
channel?: "chrome" | "msedge" | "chrome-beta" | "chromium" | "bundled" | null | undefined;
|
|
625
625
|
launch?: {
|
|
626
|
-
userDataDir?: string | undefined;
|
|
627
626
|
args?: string[] | undefined;
|
|
627
|
+
userDataDir?: string | undefined;
|
|
628
628
|
} | undefined;
|
|
629
629
|
storageState?: string | undefined;
|
|
630
630
|
schedules?: {
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x35f08b=_0x7b5c;(function(_0x3900aa,_0x651d58){var _0x520f7d={_0x45de20:0xbf,_0x2347bd:0x96,_0x2f1497:0xc0,_0x442d3a:0x97,_0x54c77c:0xab,_0x5f9c1d:0xa8},_0x475de5=_0x7b5c,_0xb9069f=_0x3900aa();while(!![]){try{var _0x310fed=parseInt(_0x475de5(0xcb))/0x1*(-parseInt(_0x475de5(_0x520f7d._0x45de20))/0x2)+-parseInt(_0x475de5(_0x520f7d._0x2347bd))/0x3+-parseInt(_0x475de5(0x88))/0x4*(-parseInt(_0x475de5(_0x520f7d._0x2f1497))/0x5)+-parseInt(_0x475de5(0x87))/0x6+parseInt(_0x475de5(0xb3))/0x7+parseInt(_0x475de5(_0x520f7d._0x442d3a))/0x8*(-parseInt(_0x475de5(0xc8))/0x9)+parseInt(_0x475de5(_0x520f7d._0x54c77c))/0xa*(parseInt(_0x475de5(_0x520f7d._0x5f9c1d))/0xb);if(_0x310fed===_0x651d58)break;else _0xb9069f['push'](_0xb9069f['shift']());}catch(_0x4295da){_0xb9069f['push'](_0xb9069f['shift']());}}}(_0x2812,0x7d199));var __defProp=Object[_0x35f08b(0x95)],__name=(_0x30e000,_0x2700d4)=>__defProp(_0x30e000,_0x35f08b(0x8b),{'value':_0x2700d4,'configurable':!![]});function _0x7b5c(_0x3dece4,_0x17b132){_0x3dece4=_0x3dece4-0x86;var _0x281288=_0x2812();var _0x7b5ccb=_0x281288[_0x3dece4];if(_0x7b5c['kaiKbm']===undefined){var _0x3d5535=function(_0x2ddd68){var _0x390cca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5661df='',_0x44e8fb='';for(var _0x30e000=0x0,_0x2700d4,_0x15c8ac,_0x57d7dc=0x0;_0x15c8ac=_0x2ddd68['charAt'](_0x57d7dc++);~_0x15c8ac&&(_0x2700d4=_0x30e000%0x4?_0x2700d4*0x40+_0x15c8ac:_0x15c8ac,_0x30e000++%0x4)?_0x5661df+=String['fromCharCode'](0xff&_0x2700d4>>(-0x2*_0x30e000&0x6)):0x0){_0x15c8ac=_0x390cca['indexOf'](_0x15c8ac);}for(var _0x37c423=0x0,_0x2fe3da=_0x5661df['length'];_0x37c423<_0x2fe3da;_0x37c423++){_0x44e8fb+='%'+('00'+_0x5661df['charCodeAt'](_0x37c423)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x44e8fb);};_0x7b5c['PMKyob']=_0x3d5535,_0x7b5c['IyQLRU']={},_0x7b5c['kaiKbm']=!![];}var _0x8655f0=_0x281288[0x0],_0x57828f=_0x3dece4+_0x8655f0,_0x1862e9=_0x7b5c['IyQLRU'][_0x57828f];return!_0x1862e9?(_0x7b5ccb=_0x7b5c['PMKyob'](_0x7b5ccb),_0x7b5c['IyQLRU'][_0x57828f]=_0x7b5ccb):_0x7b5ccb=_0x1862e9,_0x7b5ccb;}import{z as _0x5661df}from'zod';import{z}from'zod';function _0x2812(){var _0x5e448c=['DMfSAwrHDg9YoNn0zxaTC2HHCgu','iIdIGjqGzgLKihLVDsbTzwfUici','y2HYB21PDw0','BgLUDdPNB3rVlwnVBMnHDa','Dg9mB3DLCKnHC2u','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','BgLUDdPTDxn0ywnOzs1PBI1KC2W','D2fYBG','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','C3rYAw5N','A2v5','DxjS','zw51Bq','Cg9ZAxrPDMu','mtyXmda5mdLYtKveyxC','BwfUDwfS','BNvTyMvY','mtbVs1fQrNC','yxjYyxK','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','zgLZDgfUy2u','y2HYB21L','Dw5RBM93BKTLEu1LC3nHz2u','ywnJzxb0','C3rYAwn0','mZC3mZeYnKLcr1npwG','zMLYzwzVEa','CMvJB3jK','A2v5CW','BgL0zxjHBa','DhjHBNnMB3jT','DMfSAwrHDg9YoM1LDgeTC2HHCgu','DMfSAwrHDg9YoNzHCI1ZAgfWzq','B3b0Aw9UywW','Dw5VDgvZDc9LmMu','BMv0D29YAW','B2zM','nJC0v1DtCKzU','mtyZmtvQA0zmyKi','zxjYB3i','y3jHC2G','AM9PBG','BgLUDdPWyxvZzs1LEhbSAwnPDa','Dw5PB24','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','DMfSAwrHDg9YoMfYAxr5','ovb3CKrjuW','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','zgvMyxvSDa','mtG1ohL3C2TLDG','wM9KsxnZDwvdB2rL','C3rYAwn0t2jQzwn0','zgvMyxvSDevYCM9Y','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','Dw5RBM93BIbRzxKGiG','y2XVC2vZDeTLEq','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','B2jQzwn0','BgLUDdP4Cgf0Aa','Aw50','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','DMfSAwrHDg9YoMLMlxnOyxbL','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','lNvUB3rLC3qVzMfPBhvYzxm','mtiWmdKXmNDrtg9nDG','otiWvKveDxjf','BgLUDdPSzwDHy3KTBgf5B3v0','y2HYB21LlwjLDge','BMfTzq','zgLZBwLZCW','BwLU','DMfSAwrHDg9YoMfYzY1RAw5K','C3rKAw8','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','BwfW','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','yM9VBgvHBG','Dw5YzwnVz25PEMvKx2TLExm','zgvMAw5LuhjVCgvYDhK','mJq0mJm4n1rICwfzua','ndGWmZeYogTLBKzPAq','DhjHBNnPzw50'];_0x2812=function(){return _0x5e448c;};return _0x2812();}import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x15c8ac,_0x57d7dc){var _0x5262b6={_0x332b2b:0xae},_0x239085=_0x35f08b;let _0x37c423;for(const _0x2fe3da of _0x57d7dc){const _0x3252b9=levenshteinDistance(_0x15c8ac[_0x239085(0x9d)](),_0x2fe3da['toLowerCase']());if(_0x3252b9>MAX_EDITS)continue;if(_0x37c423===void 0x0||_0x3252b9<_0x37c423[_0x239085(_0x5262b6._0x332b2b)])_0x37c423={'key':_0x2fe3da,'distance':_0x3252b9};}return _0x37c423?.[_0x239085(0xa4)];}__name(closestKey,_0x35f08b(0xd2));function unknownKeyMessage(_0x31285d,_0x1d6e68){var _0x30a5cc={_0x229a78:0x91},_0x29f31f={_0x5dc2b9:0xd1,_0x5d6059:0xd9},_0x4f978a=_0x35f08b;return _0x31285d[_0x4f978a(_0x30a5cc._0x229a78)](_0x5e4c63=>{var _0x2aa1e6=_0x4f978a;const _0x52c28f=closestKey(_0x5e4c63,_0x1d6e68);return _0x52c28f===void 0x0?_0x2aa1e6(_0x29f31f._0x5dc2b9)+_0x5e4c63+_0x2aa1e6(_0x29f31f._0x5d6059):_0x2aa1e6(_0x29f31f._0x5dc2b9)+_0x5e4c63+_0x2aa1e6(0x9a)+_0x52c28f+'\x22?';})[_0x4f978a(0xc3)](';\x20');}__name(unknownKeyMessage,_0x35f08b(0xb0));function strictObject(_0x22229c){var _0x155f9a=_0x35f08b;const _0x1b9138=Object['keys'](_0x22229c);return z['object'](_0x22229c,{'errorMap':__name((_0x2204d5,_0x32e550)=>_0x2204d5['code']===z[_0x155f9a(0xcc)][_0x155f9a(0x94)]?{'message':unknownKeyMessage(_0x2204d5[_0x155f9a(0xb6)],_0x1b9138)}:{'message':_0x32e550[_0x155f9a(0xce)]},'errorMap')})[_0x155f9a(0xb2)]();}__name(strictObject,_0x35f08b(0xcd));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x44e8fb}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x44e8fb[_0x35f08b(0xd4)]({'userDataDir':_0x44e8fb[_0x35f08b(0xa3)]()['min'](0x1)[_0x35f08b(0xbb)](),'args':_0x44e8fb['array'](_0x44e8fb[_0x35f08b(0xa3)]()[_0x35f08b(0x8d)](0x1))[_0x35f08b(0xbb)]()})['strict'](),BrowserSchema=_0x5661df[_0x35f08b(0xa6)]([_0x35f08b(0x9b),_0x35f08b(0xb4),'webkit']),SYSTEM_BROWSER_CHANNELS=[_0x35f08b(0xaf),'msedge',_0x35f08b(0x8a),_0x35f08b(0x9b)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x5661df[_0x35f08b(0xc5)]([_0x5661df[_0x35f08b(0xa6)](SYSTEM_BROWSER_CHANNELS),_0x5661df['literal'](BUNDLED_BROWSER_CHANNEL)[_0x35f08b(0xb8)](()=>null),_0x5661df['null']()])['optional'](),ViewportSchema=strictObject({'width':_0x5661df[_0x35f08b(0xaa)]()[_0x35f08b(0xd6)]()['positive'](),'height':_0x5661df[_0x35f08b(0xaa)]()[_0x35f08b(0xd6)]()[_0x35f08b(0xa7)]()}),RetryReasonSchema=_0x5661df[_0x35f08b(0xa6)]([_0x35f08b(0x98),_0x35f08b(0xbd),_0x35f08b(0xc2)]),RetryConfigSchema=strictObject({'count':_0x5661df[_0x35f08b(0xaa)]()['int']()[_0x35f08b(0x8d)](0x0)['max'](0xa),'on':_0x5661df[_0x35f08b(0xac)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x5661df[_0x35f08b(0xb7)](!![])['default'](!![]),'tier2':_0x5661df['boolean'](),'tier3':strictObject({'network':_0x5661df[_0x35f08b(0x93)](),'video':_0x5661df['boolean']()}),'retention':strictObject({'runs':_0x5661df['number']()[_0x35f08b(0xd6)]()[_0x35f08b(0xa7)](),'days':_0x5661df[_0x35f08b(0xaa)]()[_0x35f08b(0xd6)]()[_0x35f08b(0xa7)]()}),'storageDir':_0x5661df[_0x35f08b(0xa3)]()['min'](0x1)}),DialogPolicySchema=_0x5661df[_0x35f08b(0xa6)](['accept',_0x35f08b(0x8c),_0x35f08b(0xa9)]),LinterRuleIdSchema=_0x5661df[_0x35f08b(0xa6)](['lint:deep-css',_0x35f08b(0xd5),_0x35f08b(0xd0),_0x35f08b(0xc4),'lint:disambig-by-index','lint:evaluate-discouraged','lint:scenario-in-root',_0x35f08b(0x9f),_0x35f08b(0x9c),'lint:regex-invalid','lint:echo-assert',_0x35f08b(0xc6),'lint:lint-ok-missing-reason','lint:flow-returns-value',_0x35f08b(0x89),_0x35f08b(0xa2),_0x35f08b(0xad),_0x35f08b(0xd3),_0x35f08b(0x92),_0x35f08b(0xc7),_0x35f08b(0x8e),_0x35f08b(0xd7),_0x35f08b(0x99),_0x35f08b(0xb9),_0x35f08b(0xc9),'validator:for-shape',_0x35f08b(0xd8),_0x35f08b(0xba),_0x35f08b(0x9e),_0x35f08b(0xa1),_0x35f08b(0xcf),_0x35f08b(0x90),'validator:list-arg',_0x35f08b(0xda)]),LinterSeveritySchema=_0x5661df[_0x35f08b(0xa6)](['off',_0x35f08b(0xa0),_0x35f08b(0xc1)]),LinterConfigSchema=strictObject({'enabled':_0x5661df['boolean'](),'rules':_0x5661df[_0x35f08b(0xb5)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x5661df[_0x35f08b(0x93)]()[_0x35f08b(0xca)](!![]),'concurrency':_0x5661df['number']()[_0x35f08b(0xd6)]()[_0x35f08b(0xa7)]()[_0x35f08b(0xca)](0x1)}),ScheduleSchema=strictObject({'collection':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0x8d)](0x1),'cron':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0x8d)](0x1),'env':_0x5661df['string']()[_0x35f08b(0x8d)](0x1)[_0x35f08b(0xbb)](),'prepare':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0x8d)](0x1)[_0x35f08b(0xbb)]()}),McpConfigSchema=strictObject({'transport':_0x5661df[_0x35f08b(0xb7)](_0x35f08b(0x8f))}),SandboxConfigSchema=strictObject({'shellCwd':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0xbb)](),'shellTimeoutMs':_0x5661df[_0x35f08b(0xaa)]()[_0x35f08b(0xd6)]()[_0x35f08b(0xa7)]()[_0x35f08b(0xbb)](),'exportSecrets':_0x5661df[_0x35f08b(0xac)](_0x5661df[_0x35f08b(0xa3)]())['optional'](),'database':_0x5661df[_0x35f08b(0xa3)]()['optional'](),'apiBaseUrl':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0xa5)]()['optional'](),'uploadDir':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0xbb)]()}),WebServerConfigSchema=strictObject({'command':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0x8d)](0x1),'url':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0xa5)](),'reuseExistingServer':_0x5661df[_0x35f08b(0x93)]()[_0x35f08b(0xca)](!![]),'timeoutMs':_0x5661df[_0x35f08b(0xaa)]()[_0x35f08b(0xd6)]()[_0x35f08b(0xa7)]()[_0x35f08b(0xca)](0xea60)}),EnvConfigSchema=strictObject({'shared':_0x5661df[_0x35f08b(0xac)](_0x5661df['string']())[_0x35f08b(0xca)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x5661df[_0x35f08b(0xa3)]()[_0x35f08b(0xa5)]()[_0x35f08b(0xbb)](),'webServer':WebServerConfigSchema[_0x35f08b(0xbb)](),'browsers':_0x5661df['array'](BrowserSchema)[_0x35f08b(0x8d)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'launch':LaunchConfigSchema[_0x35f08b(0xbb)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x5661df['string']()[_0x35f08b(0xbb)](),'testDir':_0x5661df['string']()[_0x35f08b(0x8d)](0x1),'helpersDir':_0x5661df[_0x35f08b(0xa3)]()['min'](0x1),'defaultTimeoutMs':_0x5661df[_0x35f08b(0xaa)]()[_0x35f08b(0xd6)]()['positive'](),'defaultNavigationTimeoutMs':_0x5661df[_0x35f08b(0xaa)]()[_0x35f08b(0xd6)]()[_0x35f08b(0xa7)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x5661df[_0x35f08b(0xac)](ScheduleSchema)[_0x35f08b(0xca)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':['chromium'],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x35f08b(0x86)},'dialogPolicy':_0x35f08b(0xb1),'testDir':_0x35f08b(0xbc),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x35f08b(0xa0),'lint:xpath':_0x35f08b(0xa0),'lint:obfuscated-class':_0x35f08b(0xa0),'lint:pause-explicit':'warn','lint:disambig-by-index':_0x35f08b(0xbe),'lint:evaluate-discouraged':_0x35f08b(0xa0),'lint:scenario-in-root':_0x35f08b(0xc1),'lint:mustache-in-dsl':'error','lint:goto-concat':_0x35f08b(0xa0),'lint:regex-invalid':_0x35f08b(0xc1),'lint:echo-assert':_0x35f08b(0xa0),'lint:lint-ok-missing-reason':_0x35f08b(0xa0),'lint:flow-returns-value':_0x35f08b(0xa0),'lint:legacy-layout':_0x35f08b(0xa0),'lint:external-variable-undeclared':'error','lint:env-host-from-base':_0x35f08b(0xc1),'lint:one-test-per-file':'warn','validator:unknown-function':'error'}},'env':{'shared':[]},'mcp':{'transport':'stdio'},'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};
|
|
1
|
+
var _0x52f461=_0x1f4d;(function(_0x33c4f5,_0x38b2ce){var _0x4b2cf7={_0x23896e:0xf9,_0x3aae34:0xb2,_0x42185a:0xfd,_0x20c964:0xb0,_0x4bbeda:0xf2},_0x548de1=_0x1f4d,_0x4eeb90=_0x33c4f5();while(!![]){try{var _0x5c51d5=parseInt(_0x548de1(_0x4b2cf7._0x23896e))/0x1+-parseInt(_0x548de1(_0x4b2cf7._0x3aae34))/0x2*(parseInt(_0x548de1(0xfb))/0x3)+parseInt(_0x548de1(_0x4b2cf7._0x42185a))/0x4+parseInt(_0x548de1(_0x4b2cf7._0x20c964))/0x5*(-parseInt(_0x548de1(0xc1))/0x6)+-parseInt(_0x548de1(0xbe))/0x7*(parseInt(_0x548de1(0xe8))/0x8)+-parseInt(_0x548de1(0xcd))/0x9*(parseInt(_0x548de1(0xb5))/0xa)+parseInt(_0x548de1(_0x4b2cf7._0x4bbeda))/0xb*(parseInt(_0x548de1(0xab))/0xc);if(_0x5c51d5===_0x38b2ce)break;else _0x4eeb90['push'](_0x4eeb90['shift']());}catch(_0x225144){_0x4eeb90['push'](_0x4eeb90['shift']());}}}(_0x1668,0x1f310));function _0x1668(){var _0x48b6e1=['BgLUDdPSzwDHy3KTBgf5B3v0','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','C3rYAw5N','DMfSAwrHDg9YoMzVCI1ZAgfWzq','BgLUDdP4Cgf0Aa','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','zMLYzwzVEa','DMfSAwrHDg9YoMLMlxnOyxbL','nte3uLbtqxPn','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','yxjYyxK','ywnJzxb0','y2HYB21LlwjLDge','BwfW','y29Kzq','nJy3mtbVDK9ID1O','y2XVC2vZDeTLEq','mti2EuLMr0jW','BgLUDdPZy2vUyxjPBY1PBI1YB290','ote0mti0tMHOqLPv','Dg9mB3DLCKnHC2u','Cg9ZAxrPDMu','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','A2v5CW','ndKXodHOqwrkv3K','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','C3rYAwn0','BgLUDdPNB3rVlwnVBMnHDa','DMfSAwrHDg9YoM1LDgeTC2HHCgu','mte1nvLAz1vusa','lNvUB3rLC3qVzMfPBhvYzxm','odeYv1zWuvzT','BwfUDwfS','zgvMyxvSDa','ntm1mhbisxPwtW','BwLU','C3rKAw8','Dw5RBM93BKTLEu1LC3nHz2u','BxnLzgDL','iIdIGjqGzgLKihLVDsbTzwfUici','Dw5PB24','zgLZBwLZCW','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','mte5mJmXAgfRDMLR','zgvMAw5LuhjVCgvYDhK','BgLUDdPTDxn0ywnOzs1PBI1KC2W','mJG2oefQA21tuW','DMfSAwrHDg9YoMfYzY1RAw5K','D2fYBG','DhjHBNnMB3jT','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','BMv0D29YAW','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','BNvTyMvY','B2jQzwn0','B2zM','mtG5uNDlzfP0','BMfTzq','DMfSAwrHDg9YoNn0zxaTC2HHCgu','A2v5','y2HYB21L','Aw50','DMfSAwrHDg9YoMXPC3qTyxjN','B3b0Aw9UywW','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','DxjS','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','zgvMyxvSDevYCM9Y','zxjYB3jnyxa','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','yM9VBgvHBG','Dw5RBM93BIbRzxKGiG','BgLUDdPLy2HVlwfZC2vYDa','BgL0zxjHBa','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','zw51Bq','BgLUDdPKzwvWlwnZCW','y2HYB21PDw0','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','BgLUDdPWyxvZzs1LEhbSAwnPDa','zxjYB3i','mta0rfbKEKPh','Dw5YzwnVz25PEMvKx2TLExm'];_0x1668=function(){return _0x48b6e1;};return _0x1668();}var __defProp=Object[_0x52f461(0xbf)],__name=(_0x580433,_0x2d5901)=>__defProp(_0x580433,_0x52f461(0xce),{'value':_0x2d5901,'configurable':!![]});import{z as _0xcb983}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x50551d,_0x5bba8f){var _0x50f220={_0x2ddf0f:0xa7},_0x44567c=_0x52f461;let _0xdb55d7;for(const _0x12b80c of _0x5bba8f){const _0x5f09bd=levenshteinDistance(_0x50551d['toLowerCase'](),_0x12b80c[_0x44567c(_0x50f220._0x2ddf0f)]());if(_0x5f09bd>MAX_EDITS)continue;if(_0xdb55d7===void 0x0||_0x5f09bd<_0xdb55d7['distance'])_0xdb55d7={'key':_0x12b80c,'distance':_0x5f09bd};}return _0xdb55d7?.[_0x44567c(0xd0)];}function _0x1f4d(_0x50dfab,_0x38dcb4){_0x50dfab=_0x50dfab-0xa7;var _0x166846=_0x1668();var _0x1f4d16=_0x166846[_0x50dfab];if(_0x1f4d['QDEXKr']===undefined){var _0x25535b=function(_0x175497){var _0x59a6b7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xcb983='',_0x5de189='';for(var _0x580433=0x0,_0x2d5901,_0x50551d,_0x5bba8f=0x0;_0x50551d=_0x175497['charAt'](_0x5bba8f++);~_0x50551d&&(_0x2d5901=_0x580433%0x4?_0x2d5901*0x40+_0x50551d:_0x50551d,_0x580433++%0x4)?_0xcb983+=String['fromCharCode'](0xff&_0x2d5901>>(-0x2*_0x580433&0x6)):0x0){_0x50551d=_0x59a6b7['indexOf'](_0x50551d);}for(var _0xdb55d7=0x0,_0x12b80c=_0xcb983['length'];_0xdb55d7<_0x12b80c;_0xdb55d7++){_0x5de189+='%'+('00'+_0xcb983['charCodeAt'](_0xdb55d7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5de189);};_0x1f4d['NEMnxa']=_0x25535b,_0x1f4d['UpbtOK']={},_0x1f4d['QDEXKr']=!![];}var _0xceb25=_0x166846[0x0],_0x2cc72a=_0x50dfab+_0xceb25,_0x5b836d=_0x1f4d['UpbtOK'][_0x2cc72a];return!_0x5b836d?(_0x1f4d16=_0x1f4d['NEMnxa'](_0x1f4d16),_0x1f4d['UpbtOK'][_0x2cc72a]=_0x1f4d16):_0x1f4d16=_0x5b836d,_0x1f4d16;}__name(closestKey,_0x52f461(0xfa));function unknownKeyMessage(_0x4912b5,_0x3d4b58){var _0xa883dc={_0x5b5cf8:0xf7},_0x33dc56={_0xb09549:0xd6,_0x549a1b:0xba},_0x193138=_0x52f461;return _0x4912b5[_0x193138(_0xa883dc._0x5b5cf8)](_0x43c10a=>{var _0x1a028a=_0x193138;const _0x1f1ec7=closestKey(_0x43c10a,_0x3d4b58);return _0x1f1ec7===void 0x0?_0x1a028a(0xde)+_0x43c10a+_0x1a028a(_0x33dc56._0xb09549):'unknown\x20key\x20\x22'+_0x43c10a+_0x1a028a(_0x33dc56._0x549a1b)+_0x1f1ec7+'\x22?';})['join'](';\x20');}__name(unknownKeyMessage,_0x52f461(0xb8));function strictObject(_0x4b1394){var _0x35a1a0=_0x52f461;const _0x464f7f=Object[_0x35a1a0(0xaa)](_0x4b1394);return z['object'](_0x4b1394,{'errorMap':__name((_0xcb6764,_0x434ac0)=>_0xcb6764[_0x35a1a0(0xf8)]===z['ZodIssueCode'][_0x35a1a0(0xe9)]?{'message':unknownKeyMessage(_0xcb6764[_0x35a1a0(0xaa)],_0x464f7f)}:{'message':_0x434ac0[_0x35a1a0(0xda)]},_0x35a1a0(0xdb))})[_0x35a1a0(0xad)]();}__name(strictObject,'strictObject');import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x5de189}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x5de189[_0x52f461(0xcb)]({'userDataDir':_0x5de189[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)['optional'](),'args':_0x5de189[_0x52f461(0xf4)](_0x5de189[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1))[_0x52f461(0xd4)]()})['strict'](),BrowserSchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xe4),_0x52f461(0xf0),'webkit']),SYSTEM_BROWSER_CHANNELS=[_0x52f461(0xd1),_0x52f461(0xb9),_0x52f461(0xf6),_0x52f461(0xe4)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0xcb983[_0x52f461(0xbb)]([_0xcb983['enum'](SYSTEM_BROWSER_CHANNELS),_0xcb983[_0x52f461(0xe0)](BUNDLED_BROWSER_CHANNEL)[_0x52f461(0xc4)](()=>null),_0xcb983['null']()])['optional'](),ViewportSchema=strictObject({'width':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'height':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()}),RetryReasonSchema=_0xcb983['enum'](['transient',_0x52f461(0xc6),'crash']),RetryConfigSchema=strictObject({'count':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xb6)](0x0)['max'](0xa),'on':_0xcb983[_0x52f461(0xf4)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0xcb983['literal'](!![])[_0x52f461(0xb4)](!![]),'tier2':_0xcb983['boolean'](),'tier3':strictObject({'network':_0xcb983[_0x52f461(0xdd)](),'video':_0xcb983[_0x52f461(0xdd)]()}),'retention':strictObject({'runs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'days':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()}),'storageDir':_0xcb983[_0x52f461(0xec)]()['min'](0x1)}),DialogPolicySchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xf5),_0x52f461(0xbc),_0x52f461(0xb3)]),LinterRuleIdSchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xe3),_0x52f461(0xee),_0x52f461(0xef),_0x52f461(0xe6),_0x52f461(0xeb),_0x52f461(0xe5),_0x52f461(0xfc),_0x52f461(0xc0),_0x52f461(0xae),'lint:regex-invalid',_0x52f461(0xdf),'lint:api-call-file-body',_0x52f461(0xa9),_0x52f461(0xd5),_0x52f461(0xea),_0x52f461(0xc5),'lint:env-host-from-base',_0x52f461(0xc9),_0x52f461(0xdc),'validator:arity',_0x52f461(0xc2),_0x52f461(0xf3),_0x52f461(0xcf),_0x52f461(0xaf),_0x52f461(0xac),_0x52f461(0xed),_0x52f461(0xf1),'validator:var-shape',_0x52f461(0xbd),_0x52f461(0xc8),_0x52f461(0xd9),_0x52f461(0xd7),_0x52f461(0xd3),_0x52f461(0xe1)]),LinterSeveritySchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xcc),_0x52f461(0xc3),'error']),LinterConfigSchema=strictObject({'enabled':_0xcb983[_0x52f461(0xdd)](),'rules':_0xcb983['record'](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0xcb983['boolean']()[_0x52f461(0xb4)](!![]),'concurrency':_0xcb983[_0x52f461(0xca)]()['int']()[_0x52f461(0xa8)]()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0xcb983[_0x52f461(0xec)]()['min'](0x1),'cron':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'env':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)[_0x52f461(0xd4)](),'prepare':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)[_0x52f461(0xd4)]()}),McpConfigSchema=strictObject({'transport':_0xcb983[_0x52f461(0xe0)](_0x52f461(0xb7))}),SandboxConfigSchema=strictObject({'shellCwd':_0xcb983['string']()[_0x52f461(0xd4)](),'shellTimeoutMs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()['positive']()[_0x52f461(0xd4)](),'exportSecrets':_0xcb983[_0x52f461(0xf4)](_0xcb983[_0x52f461(0xec)]())[_0x52f461(0xd4)](),'database':_0xcb983[_0x52f461(0xec)]()['optional'](),'apiBaseUrl':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)]()[_0x52f461(0xd4)](),'uploadDir':_0xcb983['string']()[_0x52f461(0xd4)]()}),WebServerConfigSchema=strictObject({'command':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'url':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)](),'reuseExistingServer':_0xcb983[_0x52f461(0xdd)]()[_0x52f461(0xb4)](!![]),'timeoutMs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()[_0x52f461(0xb4)](0xea60)}),EnvConfigSchema=strictObject({'shared':_0xcb983[_0x52f461(0xf4)](_0xcb983[_0x52f461(0xec)]())[_0x52f461(0xb4)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)]()[_0x52f461(0xd4)](),'webServer':WebServerConfigSchema['optional'](),'browsers':_0xcb983[_0x52f461(0xf4)](BrowserSchema)[_0x52f461(0xb6)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'launch':LaunchConfigSchema[_0x52f461(0xd4)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0xcb983['string']()[_0x52f461(0xd4)](),'testDir':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'helpersDir':_0xcb983[_0x52f461(0xec)]()['min'](0x1),'defaultTimeoutMs':_0xcb983['number']()['int']()[_0x52f461(0xa8)](),'defaultNavigationTimeoutMs':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0xcb983[_0x52f461(0xf4)](ScheduleSchema)[_0x52f461(0xb4)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x52f461(0xe4)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x52f461(0xb1)},'dialogPolicy':_0x52f461(0xf5),'testDir':'unotest/e2e','helpersDir':_0x52f461(0xc7),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':'warn','lint:xpath':_0x52f461(0xc3),'lint:obfuscated-class':'warn','lint:pause-explicit':'warn','lint:disambig-by-index':'off','lint:evaluate-discouraged':_0x52f461(0xc3),'lint:scenario-in-root':_0x52f461(0xe7),'lint:mustache-in-dsl':_0x52f461(0xe7),'lint:goto-concat':_0x52f461(0xc3),'lint:regex-invalid':_0x52f461(0xe7),'lint:echo-assert':_0x52f461(0xc3),'lint:lint-ok-missing-reason':_0x52f461(0xc3),'lint:flow-returns-value':_0x52f461(0xc3),'lint:legacy-layout':_0x52f461(0xc3),'lint:external-variable-undeclared':'error','lint:env-host-from-base':_0x52f461(0xe7),'lint:one-test-per-file':'warn','validator:unknown-function':_0x52f461(0xe7)}},'env':{'shared':[]},'mcp':{'transport':'stdio'},'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};
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x36c638=_0x259f;(function(_0x19efe8,_0x15e9a1){const _0x17611f={_0x527417:0x17d,_0x58afc6:0x167,_0x2f84d9:0x13f,_0x5670ca:0x168,_0x28140f:0x15c},_0x4d2156=_0x259f,_0x26c1bd=_0x19efe8();while(!![]){try{const _0x204a0f=parseInt(_0x4d2156(0x146))/0x1+parseInt(_0x4d2156(_0x17611f._0x527417))/0x2+parseInt(_0x4d2156(_0x17611f._0x58afc6))/0x3+-parseInt(_0x4d2156(_0x17611f._0x2f84d9))/0x4+parseInt(_0x4d2156(_0x17611f._0x5670ca))/0x5*(-parseInt(_0x4d2156(0x174))/0x6)+-parseInt(_0x4d2156(0x19b))/0x7*(parseInt(_0x4d2156(0x15f))/0x8)+parseInt(_0x4d2156(_0x17611f._0x28140f))/0x9;if(_0x204a0f===_0x15e9a1)break;else _0x26c1bd['push'](_0x26c1bd['shift']());}catch(_0x3c11b9){_0x26c1bd['push'](_0x26c1bd['shift']());}}}(_0x4c32,0x44af3));var __defProp=Object['defineProperty'],__name=(_0x5e421b,_0x2ab47c)=>__defProp(_0x5e421b,_0x36c638(0x15a),{'value':_0x2ab47c,'configurable':!![]});function _0x4c32(){const _0x3f188e=['nZmZmJy2s0n0zKvf','mtiXmJvZDNLSCu8','z290BW','C2nYzwvUC2HVDevSzw1LBNq','AxnwAxnPyMXL','C2v0q29VA2LL','Dw5JAgvJAW','Dgv4DenVBNrLBNrcEurLzMf1Bhq','CMvJB3jKzxi','z2v0q29VA2LL','zNjHBwvezxb0Aa','y2HLy2S','C3vIC2nYAwjL','ntqWqLzNr3np','y2HLy2TLzfn0yxrL','Ag92zxi','lNbHz2uW','rMfRzvbHz2u','AxneAxnHyMXLza','y2XPy2S','y2fSBhngB3i','C3rLChm','mta1nZuWnNPICfbjCW','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','zMLSBa','y2fSBhm','zxzHBhvHDgvpBKXVy2f0B3i','Bgf1BMnOzwq','CgfNzxm','D2fPDezVCLrLEhq','y2HLy2TLzfn0yxrLqNLezwzHDwX0','z29cywnR','C2f2zvn0B3jHz2vtDgf0zq','z2v0tg9JywXtDg9YywDL','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','iJ48l2rPDJ4','CgfNzuXPC3q','Aw5UzxjuzxH0','AxneAxnHyMXLzej5rgvMyxvSDa','Bgf1BMnO','y2XVC2vgywTLugfNzq','yxr0CMLIDxrLC0j5rgvMyxvSDa','zw1PDezHA2vqB3b1Ca','C2v0qwn0AxzLugfNzq','yxr0ywnOrxHPC3rPBMC','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','zxzHBhvHDgu','zxjYB3jpBK5LEhrby3rPB24','C2nVCgu','Bg9JywXtDg9YywDLu3rHDgu','DgL0Bgu','Dgv4DenVBNrLBNq','mJC0otC3nvfTAMHbrW','zhjHz0fUzerYB3a','rMfRzunVBNrLEhq','pgrPDJ48l2rPDJ4','ywn0AxzLswr4','DxjS','lNbHz2u','BMv0D29YA0vUDhjPzxm','y29UC29SzuvUDhjPzxm','C2nYzwvUC2HVDej5DgvZ','BgvUz3rO','BMv3q29UDgv4Da','D3nfBMrWB2LUDa','Cg9W','Bwf5yMvuAhjVDW','y29VA2LLu3rHDgu','D2fPDezVCLvYBa','Aw5WDxrwywX1zuj5rgvMyxvSDa','DhLWzq','CMvJB3jK','B25ozxDqywDL','zNjHBwvtDgfJAW','zxzHBhvHDgvszxn1Bhq','C2v0tg9JywXtDg9YywDL','rhjPDMvYrxjYB3i','A2LUza','mty5nJe5mNrRvvLzwa','Aw5WDxrwywX1zq','C3bSAwnL','zMfRzs1WBMC','CMvM','CMvSB2fK','y2XPCgjVyxjKugfZDgu','mZKYndqZveznEuX6','zgvSzxrL','Cg9WDxbpBKnSAwnR','y29VA2LLCW','zg91yMXLq2XPy2S','C2vSzwn0t3b0Aw9U','yMvOyxzPB3i','z29gB3j3yxjK','y29UDgv4Dhm','B3v0zxjiDg1SqNLszwy','zNvUy3rPB24','B25bzNrLCKnSAwnR','B3v0zxjive1m','C2nYB2XSsw50B1zPzxC','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','DxbSB2fKrMLSzq','y291BNq','Aw5ZCgvJDevSzw1LBNq','ChvZAa','BMv3ugfNzuXPC3rLBMvYCW','BMfTzq','zhjPDMvY','mtm1nZuYnefxAMnwrq','y2XVC2u','zw50zxjgCMfTzq','oeLkCuXbBG','D2fPDezVCG','D2fPDezVCKXVywrtDgf0zq','zxHPDezYyw1L','y3vYCMvUDfvYBa','C2nYzwvUC2HVDa','tg9JyxrVCKvYCM9Y','z2v0qxr0CMLIDxrL'];_0x4c32=function(){return _0x3f188e;};return _0x4c32();}function subscribe(_0x14dec1,_0x86dc39){const _0x18e6dc={_0x35d235:0x147};return _0x14dec1['add'](_0x86dc39),()=>{const _0x352cb7=_0x259f;_0x14dec1[_0x352cb7(_0x18e6dc._0x35d235)](_0x86dc39);};}function _0x259f(_0x378a54,_0x2823ec){_0x378a54=_0x378a54-0x13f;const _0x4c32cd=_0x4c32();let _0x259f30=_0x4c32cd[_0x378a54];if(_0x259f['fqsYRa']===undefined){var _0x3d1fcf=function(_0x5adf40){const _0x4bbdc7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e421b='',_0x2ab47c='';for(let _0x14dec1=0x0,_0x86dc39,_0x39cc01,_0x391e50=0x0;_0x39cc01=_0x5adf40['charAt'](_0x391e50++);~_0x39cc01&&(_0x86dc39=_0x14dec1%0x4?_0x86dc39*0x40+_0x39cc01:_0x39cc01,_0x14dec1++%0x4)?_0x5e421b+=String['fromCharCode'](0xff&_0x86dc39>>(-0x2*_0x14dec1&0x6)):0x0){_0x39cc01=_0x4bbdc7['indexOf'](_0x39cc01);}for(let _0xe45d0=0x0,_0x2acf36=_0x5e421b['length'];_0xe45d0<_0x2acf36;_0xe45d0++){_0x2ab47c+='%'+('00'+_0x5e421b['charCodeAt'](_0xe45d0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ab47c);};_0x259f['swvlrN']=_0x3d1fcf,_0x259f['OnhmPU']={},_0x259f['fqsYRa']=!![];}const _0x36c961=_0x4c32cd[0x0],_0x145f24=_0x378a54+_0x36c961,_0x41b508=_0x259f['OnhmPU'][_0x145f24];return!_0x41b508?(_0x259f30=_0x259f['swvlrN'](_0x259f30),_0x259f['OnhmPU'][_0x145f24]=_0x259f30):_0x259f30=_0x41b508,_0x259f30;}__name(subscribe,_0x36c638(0x173));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x36c638(0x1b3));}},LocatorError=class extends UnotestError{static{__name(this,_0x36c638(0x165));}};function createRecorder(){const _0x54a8c2={_0x3525fc:0x158,_0x699e1f:0x180},_0x320230=_0x36c638,_0x39cc01=[];let _0x391e50=0x0;return{'push':__name(_0xe45d0=>_0x39cc01[_0x320230(0x158)]({..._0xe45d0,'seq':_0x391e50++}),_0x320230(_0x54a8c2._0x3525fc)),'calls':__name(()=>_0x39cc01,_0x320230(_0x54a8c2._0x699e1f))};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x2acf36,_0x313a84,_0x42270a,_0x73cc5b){const _0x31244a={_0x3d62ca:0x14c},_0x2c4160=_0x36c638;this['recorder']=_0x2acf36,this[_0x2c4160(_0x31244a._0x3d62ca)]=_0x313a84,this[_0x2c4160(0x197)]=_0x42270a,this[_0x2c4160(0x163)]=_0x73cc5b;}['recorder'];['behavior'];[_0x36c638(0x197)];static{__name(this,_0x36c638(0x178));}[_0x36c638(0x163)];[_0x36c638(0x151)];[_0x36c638(0x1ae)](_0x2e98c8,_0xf1f5d0){const _0x3ff3b2=_0x36c638;this[_0x3ff3b2(0x16f)]['push']({'scope':this[_0x3ff3b2(0x197)],'method':_0x2e98c8,'args':_0xf1f5d0});}[_0x36c638(0x1a9)](){const _0x395895={_0xdb0db5:0x196},_0x5c8b7b=_0x36c638;if(this[_0x5c8b7b(0x14c)][_0x5c8b7b(_0x395895._0xdb0db5)]){const _0x548301=this[_0x5c8b7b(0x14c)]['errorOnNextAction'];this[_0x5c8b7b(0x14c)]['errorOnNextAction']=void 0x0;throw _0x548301;}}[_0x36c638(0x1a0)](){return this['currentUrl'];}async['title'](){const _0x4fef64={_0x5d7264:0x199},_0x521e1e=_0x36c638;return this[_0x521e1e(0x1ae)](_0x521e1e(_0x4fef64._0x5d7264),[]),'fake\x20title';}async['click'](_0x17bbb6,_0x1f37da){const _0x407dce=_0x36c638;this[_0x407dce(0x1ae)](_0x407dce(0x17a),[_0x17bbb6,_0x1f37da]),this['maybeThrow'](),this['onAfterClick']?.();}async[_0x36c638(0x14a)](_0x3e22c7,_0x5ee158){const _0x1c5cb9={_0x1da36f:0x1ae,_0xd03507:0x14a,_0xa80635:0x1a9},_0xfeae57=_0x36c638;this[_0xfeae57(_0x1c5cb9._0x1da36f)](_0xfeae57(_0x1c5cb9._0xd03507),[_0x3e22c7,_0x5ee158]),this[_0xfeae57(_0x1c5cb9._0xa80635)]();}async[_0x36c638(0x17f)](_0x11e365,_0x58354a,_0x148dfd){const _0x417f2e={_0xa5c179:0x17f},_0xa8b55a=_0x36c638;this[_0xa8b55a(0x1ae)](_0xa8b55a(_0x417f2e._0xa5c179),[_0x11e365,_0x58354a,_0x148dfd]),this[_0xa8b55a(0x1a9)]();}async['press'](_0x4cc1e1,_0x1292c9,_0xc54ad2){const _0x1fcbc7={_0x9cadf:0x1ae,_0x1ac15d:0x1a9},_0x2ad744=_0x36c638;this[_0x2ad744(_0x1fcbc7._0x9cadf)]('press',[_0x4cc1e1,_0x1292c9,_0xc54ad2]),this[_0x2ad744(_0x1fcbc7._0x1ac15d)]();}async[_0x36c638(0x172)](_0x5b5fdb,_0x232280){const _0x3e4a7d={_0xf00eae:0x1a9},_0xf3bf83=_0x36c638;this['record'](_0xf3bf83(0x172),[_0x5b5fdb,_0x232280]),this[_0xf3bf83(_0x3e4a7d._0xf00eae)]();}async[_0x36c638(0x16d)](_0x2dea48,_0x5e4c89){const _0x49d6b6=_0x36c638;this['record']('uncheck',[_0x2dea48,_0x5e4c89]),this[_0x49d6b6(0x1a9)]();}async['selectOption'](_0x4efc92,_0x195c56,_0x3ffcb6){const _0x330e70={_0x463000:0x1ae},_0x552724=_0x36c638;this[_0x552724(_0x330e70._0x463000)](_0x552724(0x14b),[_0x4efc92,_0x195c56,_0x3ffcb6]),this['maybeThrow']();}async['hover'](_0x32a414,_0x106dd4){const _0xf28ca9={_0x34b2ef:0x1a9},_0x58d18b=_0x36c638;this[_0x58d18b(0x1ae)](_0x58d18b(0x176),[_0x32a414,_0x106dd4]),this[_0x58d18b(_0xf28ca9._0x34b2ef)]();}async[_0x36c638(0x153)](_0x2f0cc1){const _0x387b91={_0x51275f:0x1ae,_0x164309:0x153},_0x10c12c=_0x36c638;this[_0x10c12c(_0x387b91._0x51275f)](_0x10c12c(_0x387b91._0x164309),[_0x2f0cc1]),this[_0x10c12c(0x1a9)]();}async[_0x36c638(0x19c)](_0x451340,_0x57e3d8,_0x1292b5){const _0x5f2cf2=_0x36c638;this[_0x5f2cf2(0x1ae)](_0x5f2cf2(0x19c),[_0x451340,_0x57e3d8,_0x1292b5]),this[_0x5f2cf2(0x1a9)]();}async['uploadFile'](_0x320407,_0x12336d){const _0x27d651={_0x7cd10c:0x155},_0x55fdda=_0x36c638;this['record'](_0x55fdda(_0x27d651._0x7cd10c),[_0x320407,_0x12336d]),this[_0x55fdda(0x1a9)]();}async[_0x36c638(0x145)](_0x474524,_0x13fef4){const _0x27a6e3={_0x1a115d:0x145},_0x3ac11d=_0x36c638;this[_0x3ac11d(0x1ae)](_0x3ac11d(_0x27a6e3._0x1a115d),[_0x474524,_0x13fef4]),this['maybeThrow']();}async['count'](_0xadd5a8){const _0x4bc562={_0x1a7308:0x14c},_0x110166=_0x36c638;return this[_0x110166(0x1ae)](_0x110166(0x156),[_0xadd5a8]),this[_0x110166(_0x4bc562._0x1a7308)]['countByDefault']??0x1;}async['textContent'](_0x5d9ac7){const _0x369d90={_0x428aa9:0x1ae,_0x575c1a:0x19a,_0x168aa9:0x16e},_0x4ab72=_0x36c638;return this[_0x4ab72(_0x369d90._0x428aa9)](_0x4ab72(_0x369d90._0x575c1a),[_0x5d9ac7]),this[_0x4ab72(0x14c)][_0x4ab72(_0x369d90._0x168aa9)]??'';}async[_0x36c638(0x18c)](_0x3483d0){const _0x209767={_0x49f49a:0x1ae,_0x2f725b:0x16e},_0x49edd0=_0x36c638;return this[_0x49edd0(_0x209767._0x49f49a)]('innerText',[_0x3483d0]),this[_0x49edd0(0x14c)]['innerTextByDefault']??this[_0x49edd0(0x14c)][_0x49edd0(_0x209767._0x2f725b)]??'';}async['inputValue'](_0xf7a228){const _0x18ed43={_0x3be16f:0x140,_0x58d206:0x14c,_0x3d26cf:0x1ac},_0x4f05d2=_0x36c638;return this['record'](_0x4f05d2(_0x18ed43._0x3be16f),[_0xf7a228]),this[_0x4f05d2(_0x18ed43._0x58d206)][_0x4f05d2(_0x18ed43._0x3d26cf)]??'';}async['checkedState'](_0x4a879d){const _0x5bfd7c={_0x4d5fda:0x1ae},_0xfdcbc5=_0x36c638;return this[_0xfdcbc5(_0x5bfd7c._0x4d5fda)](_0xfdcbc5(0x175),[_0x4a879d]),this[_0xfdcbc5(0x14c)][_0xfdcbc5(0x185)]??null;}async[_0x36c638(0x16b)](_0x2bd56c){const _0x4f1ea7=_0x36c638;return this[_0x4f1ea7(0x1ae)](_0x4f1ea7(0x16b),[_0x2bd56c]),this[_0x4f1ea7(0x14c)]['isVisibleByDefault']??!![];}async[_0x36c638(0x179)](_0x29052){const _0x2a8c2c=_0x36c638;return this['record'](_0x2a8c2c(0x179),[_0x29052]),this['behavior'][_0x2a8c2c(0x18d)]??![];}async[_0x36c638(0x166)](_0x19b5f6,_0x5810d4){const _0x213233={_0x1a61b8:0x1ae},_0x5b5f0a=_0x36c638;return this[_0x5b5f0a(_0x213233._0x1a61b8)]('getAttribute',[_0x19b5f6,_0x5810d4]),this['behavior'][_0x5b5f0a(0x190)]?.[_0x5810d4]??null;}async['waitFor'](_0x315c2a,_0x18a03f){const _0x5af48b={_0x49b27e:0x160},_0x1240a0=_0x36c638;this[_0x1240a0(0x1ae)](_0x1240a0(_0x5af48b._0x49b27e),[_0x315c2a,_0x18a03f]);}async[_0x36c638(0x1ab)](_0x50888d,_0x5cb3fb){const _0x429f55={_0x638c7f:0x1ae},_0x2b364e=_0x36c638;this[_0x2b364e(_0x429f55._0x638c7f)](_0x2b364e(0x1ab),[_0x50888d,_0x5cb3fb]);}async[_0x36c638(0x184)](_0x2845d6,_0x390e70){const _0x2aec20={_0x2dda8d:0x1ae,_0x415690:0x184},_0x157ace=_0x36c638;this[_0x157ace(_0x2aec20._0x2dda8d)](_0x157ace(_0x2aec20._0x415690),[_0x2845d6,_0x390e70]);}async['waitForNavigation'](_0x2f1cea){const _0x15715c={_0x468631:0x1ae},_0x5c9076=_0x36c638;this[_0x5c9076(_0x15715c._0x468631)]('waitForNavigation',[_0x2f1cea]);}async[_0x36c638(0x161)](_0x228b9b,_0x4c6174){const _0x1d8d16=_0x36c638;this[_0x1d8d16(0x1ae)]('waitForLoadState',[_0x228b9b,_0x4c6174]);}async[_0x36c638(0x169)](_0x588644,_0x270684){const _0x3c5d96={_0x5d46ed:0x163},_0x495004=_0x36c638;this[_0x495004(0x1ae)](_0x495004(0x169),[_0x588644,_0x270684]),this[_0x495004(_0x3c5d96._0x5d46ed)]=_0x588644;}async[_0x36c638(0x144)](_0x48d13a){const _0x46a63f={_0x27fa71:0x1ae,_0x17e0ea:0x144},_0x39c6fa=_0x36c638;this[_0x39c6fa(_0x46a63f._0x27fa71)](_0x39c6fa(_0x46a63f._0x17e0ea),[_0x48d13a]);}async[_0x36c638(0x186)](_0x3a82f1){const _0x15eaab={_0x4fbb94:0x186},_0x4e495c=_0x36c638;this['record'](_0x4e495c(_0x15eaab._0x4fbb94),[_0x3a82f1]);}async[_0x36c638(0x14d)](_0x3e7656){const _0xbc016=_0x36c638;this[_0xbc016(0x1ae)]('goForward',[_0x3e7656]);}async[_0x36c638(0x195)](_0x36cb3d){const _0x278003={_0x19b14e:0x195,_0x3a469b:0x1b1},_0x52d5a1=_0x36c638;return this['record'](_0x52d5a1(_0x278003._0x19b14e),[_0x36cb3d]),this[_0x52d5a1(0x14c)][_0x52d5a1(_0x278003._0x3a469b)];}async[_0x36c638(0x181)](_0x4341f6,_0x1d9c3c){const _0x440032={_0x3d8fc3:0x181},_0x4f4447=_0x36c638;return this[_0x4f4447(0x1ae)](_0x4f4447(_0x440032._0x3d8fc3),[_0x4341f6,_0x1d9c3c]),void 0x0;}async[_0x36c638(0x157)](_0x2e086b){const _0x284709={_0xd22fc1:0x1b4,_0x3e58f2:0x143,_0x1494b7:0x17c,_0x1911c7:0x143},_0x3af6f5=_0x36c638;this[_0x3af6f5(0x1ae)](_0x3af6f5(0x157),[_0x2e086b]);if(_0x2e086b[_0x3af6f5(0x17c)][_0x3af6f5(0x1a5)]!==0x1||_0x2e086b[_0x3af6f5(0x17c)][0x0][_0x3af6f5(_0x284709._0xd22fc1)]!==_0x3af6f5(_0x284709._0x3e58f2))return null;const _0x35b037=_0x2e086b[_0x3af6f5(_0x284709._0x1494b7)][0x0][_0x3af6f5(_0x284709._0x1911c7)],_0x29d9d8=this['behavior']['elementHintByRef']?.[_0x35b037];return _0x29d9d8??null;}async[_0x36c638(0x164)](_0x18cf38){const _0x1faba5={_0x4b21f3:0x1a4},_0x427556=_0x36c638;return this[_0x427556(0x1ae)]('screenshot',[_0x18cf38]),this[_0x427556(_0x1faba5._0x4b21f3)](_0x18cf38?.[_0x427556(0x1ad)]);}async['screenshotElement'](_0x595a0d,_0x374230){const _0xcd959f={_0x2a80d4:0x1ae,_0x4c1230:0x1a4},_0x3c1116=_0x36c638;return this[_0x3c1116(_0xcd959f._0x2a80d4)](_0x3c1116(0x16a),[_0x595a0d,_0x374230]),this[_0x3c1116(_0xcd959f._0x4c1230)](_0x374230?.[_0x3c1116(0x1ad)]);}[_0x36c638(0x1a4)](_0x2679c8){const _0x18665a={_0x2a93a7:0x14c,_0x4ed823:0x1a4,_0x2eba8d:0x142},_0xd724e=_0x36c638,_0x4de5e7=this[_0xd724e(_0x18665a._0x2a93a7)][_0xd724e(_0x18665a._0x4ed823)];if(_0x4de5e7===void 0x0)return Buffer['from'](_0xd724e(_0x18665a._0x2eba8d));return typeof _0x4de5e7===_0xd724e(0x150)?_0x4de5e7(_0x2679c8):_0x4de5e7;}async[_0x36c638(0x152)](_0x5b9db5){const _0x2d5668={_0x36f2fb:0x1ae,_0x58b02d:0x17c,_0x3d4567:0x143,_0x2efd68:0x19e},_0x3aff96=_0x36c638;this[_0x3aff96(_0x2d5668._0x36f2fb)]('outerHTML',[_0x5b9db5]);if(_0x5b9db5[_0x3aff96(0x17c)][_0x3aff96(0x1a5)]===0x1&&_0x5b9db5[_0x3aff96(0x17c)][0x0][_0x3aff96(0x1b4)]==='ref'){const _0x196609=_0x5b9db5[_0x3aff96(_0x2d5668._0x58b02d)][0x0][_0x3aff96(_0x2d5668._0x3d4567)];return this['behavior'][_0x3aff96(0x14f)]?.[_0x196609]??'<div\x20data-unotest-ref=\x22'+_0x196609+_0x3aff96(0x18a);}return _0x3aff96(_0x2d5668._0x2efd68);}},FakeContext=class{constructor(_0x1a9970,_0x57e946,_0x2d9524){const _0x1ab4eb={_0x49fab9:0x16f,_0x5f1fc8:0x197,_0x1a7b6a:0x148,_0x272475:0x149},_0x284691={_0x172287:0x191,_0xe93f6f:0x148},_0x5f26c=_0x36c638;this[_0x5f26c(_0x1ab4eb._0x49fab9)]=_0x1a9970,this[_0x5f26c(0x14c)]=_0x57e946,this[_0x5f26c(_0x1ab4eb._0x5f1fc8)]=_0x2d9524;const _0x146016=new FakePage(_0x1a9970,_0x57e946,_0x2d9524+_0x5f26c(0x177),_0x57e946['initialUrl']??'about:blank');_0x57e946[_0x5f26c(_0x1ab4eb._0x1a7b6a)]&&(_0x146016[_0x5f26c(0x151)]=()=>{const _0x42513d=_0x5f26c;this[_0x42513d(_0x284691._0x172287)](_0x57e946[_0x42513d(_0x284691._0xe93f6f)]);}),this[_0x5f26c(0x18b)]=[_0x146016],this[_0x5f26c(0x198)]={..._0x57e946['localStorage']??{}},this['cookieState']={..._0x57e946[_0x5f26c(_0x1ab4eb._0x272475)]??{}};}[_0x36c638(0x16f)];[_0x36c638(0x14c)];[_0x36c638(0x197)];static{__name(this,_0x36c638(0x19d));}[_0x36c638(0x18b)];[_0x36c638(0x19f)]=0x0;['frameStack']=[];[_0x36c638(0x198)];[_0x36c638(0x1aa)];[_0x36c638(0x159)]=new Set();[_0x36c638(0x1ae)](_0x1c5192,_0xc79ec3){const _0xdd3db4={_0x1befc4:0x158},_0xe9df8=_0x36c638;this[_0xe9df8(0x16f)][_0xe9df8(_0xdd3db4._0x1befc4)]({'scope':this['scope'],'method':_0x1c5192,'args':_0xc79ec3});}[_0x36c638(0x183)](){const _0x1da9e2=_0x36c638;return this[_0x1da9e2(0x18b)];}['activePage'](){const _0xf6d37e={_0x2fc1d9:0x19f,_0x574b47:0x19f},_0x92fdb7=_0x36c638,_0x2f9d17=this[_0x92fdb7(0x18b)][this[_0x92fdb7(_0xf6d37e._0x2fc1d9)]];if(!_0x2f9d17)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this[_0x92fdb7(_0xf6d37e._0x574b47)]});return _0x2f9d17;}['consoleEntries'](){const _0x48b8d5={_0xebc485:0x14c},_0x32750e=_0x36c638;return this[_0x32750e(_0x48b8d5._0xebc485)][_0x32750e(0x1a3)]??[];}['networkEntries'](){const _0x840bcd={_0x9e562f:0x14c},_0x326875=_0x36c638;return this[_0x326875(_0x840bcd._0x9e562f)][_0x326875(0x1a2)]??[];}async['setActivePage'](_0x2c15e9){const _0x4b6086={_0x226e5d:0x192,_0xf1e6b8:0x18b,_0x5aa071:0x1a5,_0xf9a768:0x19f,_0x4e1485:0x1b0},_0x18f6dc=_0x36c638;this[_0x18f6dc(0x1ae)](_0x18f6dc(_0x4b6086._0x226e5d),[_0x2c15e9]);if(_0x2c15e9<0x0||_0x2c15e9>=this[_0x18f6dc(_0x4b6086._0xf1e6b8)][_0x18f6dc(_0x4b6086._0x5aa071)])throw new DriverError(_0x18f6dc(0x154),{'index':_0x2c15e9,'available':this['pageList'][_0x18f6dc(0x1a5)]});this[_0x18f6dc(_0x4b6086._0xf9a768)]=_0x2c15e9,this[_0x18f6dc(_0x4b6086._0x4e1485)][_0x18f6dc(0x1a5)]=0x0;}[_0x36c638(0x1af)](_0x2c06bf){const _0x2cd6d4={_0x217a3e:0x159},_0x1089e0=_0x36c638;return subscribe(this[_0x1089e0(_0x2cd6d4._0x217a3e)],_0x2c06bf);}[_0x36c638(0x191)](_0x19e4a2){const _0xf8695={_0x3ffb37:0x197,_0x293c25:0x1a1,_0x3ecd2d:0x18b,_0x5a2e26:0x1a5,_0x34733d:0x158},_0x125f4e=_0x36c638,_0x3e7005=this[_0x125f4e(_0xf8695._0x3ffb37)]+_0x125f4e(_0xf8695._0x293c25)+this[_0x125f4e(_0xf8695._0x3ecd2d)][_0x125f4e(_0xf8695._0x5a2e26)],_0xcd09f9=new FakePage(this[_0x125f4e(0x16f)],this[_0x125f4e(0x14c)],_0x3e7005,_0x19e4a2);this['pageList'][_0x125f4e(_0xf8695._0x34733d)](_0xcd09f9);const _0x17f92f=this[_0x125f4e(0x18b)][_0x125f4e(_0xf8695._0x5a2e26)]-0x1;for(const _0x185ef6 of this['newPageListeners']){try{_0x185ef6({'index':_0x17f92f,'url':_0x19e4a2});}catch{}}return _0x17f92f;}[_0x36c638(0x18f)](_0x4be16b){const _0x3dd4e3={_0x27f17c:0x1a5,_0x5e986a:0x154,_0x2660ef:0x18b},_0x270ea3=_0x36c638;if(_0x4be16b<0x0||_0x4be16b>=this['pageList'][_0x270ea3(_0x3dd4e3._0x27f17c)])throw new DriverError(_0x270ea3(_0x3dd4e3._0x5e986a),{'index':_0x4be16b,'available':this['pageList'][_0x270ea3(0x1a5)]});this[_0x270ea3(_0x3dd4e3._0x2660ef)][_0x270ea3(0x141)](_0x4be16b,0x1);}async[_0x36c638(0x15e)](_0x577c7d){const _0xfd4911={_0x34ce2b:0x1a5,_0x38d8a0:0x158},_0x2eb6f9=_0x36c638;this[_0x2eb6f9(0x1ae)]('enterFrame',[_0x577c7d]);if(!_0x577c7d[_0x2eb6f9(0x17c)][_0x2eb6f9(_0xfd4911._0x34ce2b)])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x577c7d});this[_0x2eb6f9(0x1b0)][_0x2eb6f9(_0xfd4911._0x38d8a0)](_0x577c7d);}async['exitFrame'](){const _0x16c43d={_0x427376:0x1ae,_0x47c119:0x162,_0x21b448:0x1a8},_0x504f32=_0x36c638;this[_0x504f32(_0x16c43d._0x427376)](_0x504f32(_0x16c43d._0x47c119),[]);if(this[_0x504f32(0x1b0)]['length']===0x0)throw new DriverError('exitFrame\x20called\x20with\x20no\x20frame\x20on\x20the\x20stack',{});this[_0x504f32(0x1b0)][_0x504f32(_0x16c43d._0x21b448)]();}async[_0x36c638(0x1b2)](_0x1efa16,_0xf23c06){const _0x1a02d8={_0x398898:0x1ae},_0x5889a9=_0x36c638;this[_0x5889a9(_0x1a02d8._0x398898)](_0x5889a9(0x1b2),[_0x1efa16,_0xf23c06]),this[_0x5889a9(0x198)][_0x1efa16]=_0xf23c06;}async[_0x36c638(0x188)](_0x42c7da){const _0x29b5f7={_0x552855:0x188,_0x528983:0x198},_0x18f389=_0x36c638;return this[_0x18f389(0x1ae)](_0x18f389(_0x29b5f7._0x552855),[_0x42c7da]),this[_0x18f389(_0x29b5f7._0x528983)][_0x42c7da]??null;}async['setCookie'](_0x117ef0,_0x44010b,_0x30f9bf){const _0x3156a8={_0x40df95:0x1aa},_0x31b2a2=_0x36c638;this[_0x31b2a2(0x1ae)](_0x31b2a2(0x16c),[_0x117ef0,_0x44010b,_0x30f9bf]),this[_0x31b2a2(_0x3156a8._0x40df95)][_0x117ef0]=_0x44010b;}async[_0x36c638(0x170)](_0x575dfb){const _0x579d48={_0xf68eba:0x1ae,_0x30d947:0x170,_0x20310f:0x1aa},_0x201cab=_0x36c638;return this[_0x201cab(_0x579d48._0xf68eba)](_0x201cab(_0x579d48._0x30d947),[_0x575dfb]),this[_0x201cab(_0x579d48._0x20310f)][_0x575dfb]??null;}async['saveStorageState'](_0x32bd17){const _0x3365cc={_0x1fbc9a:0x1ae,_0x394682:0x187},_0xfee9c9=_0x36c638;this[_0xfee9c9(_0x3365cc._0x1fbc9a)](_0xfee9c9(_0x3365cc._0x394682),[_0x32bd17]);}async[_0x36c638(0x195)](_0x4d858d){const _0x505317=_0x36c638;return this[_0x505317(0x1ae)](_0x505317(0x195),[_0x4d858d]),void 0x0;}async[_0x36c638(0x15d)](){const _0xdf473a={_0x3401d2:0x1ae},_0x58011b=_0x36c638;this[_0x58011b(_0xdf473a._0x3401d2)]('close',[]);}[_0x36c638(0x171)](){const _0xa74616={_0x165e5b:0x1b0},_0x43e345=_0x36c638;return this[_0x43e345(_0xa74616._0x165e5b)][_0x43e345(0x1a5)];}},FakeWebDriver=class{constructor(_0xbedb01={}){const _0x5ef28e={_0x28e4b6:0x14c},_0x6d3de7=_0x36c638;this[_0x6d3de7(_0x5ef28e._0x28e4b6)]=_0xbedb01,this[_0x6d3de7(0x16f)]=createRecorder();}[_0x36c638(0x14c)];static{__name(this,'FakeWebDriver');}[_0x36c638(0x182)]=![];[_0x36c638(0x16f)];[_0x36c638(0x14e)]=[];async[_0x36c638(0x18e)](_0x3c419c){const _0x3d4634={_0xc08c23:0x15b},_0x697f0a=_0x36c638;this[_0x697f0a(0x16f)][_0x697f0a(0x158)]({'scope':_0x697f0a(_0x3d4634._0xc08c23),'method':_0x697f0a(0x18e),'args':[_0x3c419c]}),this[_0x697f0a(0x182)]=!![];}async[_0x36c638(0x1a6)](_0x35d4be){const _0x50ecb2={_0x4dfedf:0x1a6,_0x904437:0x194,_0x51a7ea:0x16f,_0x1375e4:0x1a5},_0x49fbc0=_0x36c638;this['recorder'][_0x49fbc0(0x158)]({'scope':_0x49fbc0(0x15b),'method':_0x49fbc0(_0x50ecb2._0x4dfedf),'args':[_0x35d4be]});if(!this['launched'])throw new DriverError(_0x49fbc0(_0x50ecb2._0x904437),{});const _0x4057db=new FakeContext(this[_0x49fbc0(_0x50ecb2._0x51a7ea)],this[_0x49fbc0(0x14c)],'ctx'+this['contexts'][_0x49fbc0(_0x50ecb2._0x1375e4)]);return this[_0x49fbc0(0x14e)]['push'](_0x4057db),_0x4057db;}async[_0x36c638(0x15d)](){const _0x4d8198={_0x51be77:0x182},_0x211d53=_0x36c638;this[_0x211d53(0x16f)][_0x211d53(0x158)]({'scope':_0x211d53(0x15b),'method':'close','args':[]}),this[_0x211d53(_0x4d8198._0x51be77)]=![];}[_0x36c638(0x1a7)](){return void 0x0;}async['connectShared'](){const _0x47320e={_0x46d810:0x17e},_0x1513f9=_0x36c638;throw new DriverError(_0x1513f9(_0x47320e._0x46d810),{});}[_0x36c638(0x193)](_0x370cad){const _0x3b1354=_0x36c638;throw new DriverError(_0x3b1354(0x189),{});}[_0x36c638(0x180)](){const _0x56b513={_0x3d6edb:0x180},_0xd7c8d1=_0x36c638;return this['recorder'][_0xd7c8d1(_0x56b513._0x3d6edb)]();}[_0x36c638(0x17b)](_0x335696){const _0x18351f=_0x36c638;return this[_0x18351f(0x16f)][_0x18351f(0x180)]()['filter'](_0x28ae5b=>_0x28ae5b['method']===_0x335696);}};export{FakeWebDriver};
|
|
1
|
+
const _0x4be305=_0x1b6f;(function(_0x1631a6,_0x1e2fd8){const _0x2b90d2={_0x280e5:0x1d9,_0x55e476:0x21f,_0x480a0b:0x22f},_0x397b75=_0x1b6f,_0xea857b=_0x1631a6();while(!![]){try{const _0x5eeb7b=-parseInt(_0x397b75(0x1be))/0x1+parseInt(_0x397b75(_0x2b90d2._0x280e5))/0x2+-parseInt(_0x397b75(0x1ff))/0x3*(-parseInt(_0x397b75(_0x2b90d2._0x55e476))/0x4)+-parseInt(_0x397b75(0x212))/0x5*(-parseInt(_0x397b75(0x1c5))/0x6)+parseInt(_0x397b75(0x1e4))/0x7+parseInt(_0x397b75(_0x2b90d2._0x480a0b))/0x8+-parseInt(_0x397b75(0x214))/0x9;if(_0x5eeb7b===_0x1e2fd8)break;else _0xea857b['push'](_0xea857b['shift']());}catch(_0xf7ef68){_0xea857b['push'](_0xea857b['shift']());}}}(_0x4d17,0x9f1bd));function _0x1b6f(_0x54c09c,_0x5a7cbc){_0x54c09c=_0x54c09c-0x1b4;const _0x4d17ac=_0x4d17();let _0x1b6ff9=_0x4d17ac[_0x54c09c];if(_0x1b6f['TUqpNk']===undefined){var _0x54c297=function(_0xf47314){const _0xbf2a5d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x38ceb5='',_0x48b3b6='';for(let _0xbe630c=0x0,_0x2b934f,_0x5108d9,_0x27cb0d=0x0;_0x5108d9=_0xf47314['charAt'](_0x27cb0d++);~_0x5108d9&&(_0x2b934f=_0xbe630c%0x4?_0x2b934f*0x40+_0x5108d9:_0x5108d9,_0xbe630c++%0x4)?_0x38ceb5+=String['fromCharCode'](0xff&_0x2b934f>>(-0x2*_0xbe630c&0x6)):0x0){_0x5108d9=_0xbf2a5d['indexOf'](_0x5108d9);}for(let _0x5b928a=0x0,_0x29938d=_0x38ceb5['length'];_0x5b928a<_0x29938d;_0x5b928a++){_0x48b3b6+='%'+('00'+_0x38ceb5['charCodeAt'](_0x5b928a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48b3b6);};_0x1b6f['eNpaTE']=_0x54c297,_0x1b6f['WcbyHb']={},_0x1b6f['TUqpNk']=!![];}const _0x349e37=_0x4d17ac[0x0],_0x1a9c51=_0x54c09c+_0x349e37,_0x59d22c=_0x1b6f['WcbyHb'][_0x1a9c51];return!_0x59d22c?(_0x1b6ff9=_0x1b6f['eNpaTE'](_0x1b6ff9),_0x1b6f['WcbyHb'][_0x1a9c51]=_0x1b6ff9):_0x1b6ff9=_0x59d22c,_0x1b6ff9;}function _0x4d17(){const _0x3f6e69=['lNbHz2u','D2fPDezVCKXVywrtDgf0zq','CMvJB3jKzxi','nZaYode5mLLntfPjzq','zNjHBwvtDgfJAW','Cg9W','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','D2fPDezVCLrLEhq','ywjVDxq6yMXHBMS','CMvSB2fK','y29UC29SzuvUDhjPzxm','z2v0q29VA2LL','Dgv4DenVBNrLBNq','zhjPDMvY','ywn0AxzLswr4','zNjHBwvezxb0Aa','mtiYmJaWnvfrrezqzG','rMfRzvDLyKrYAxzLCG','zxzHBhvHDgvpBKXVy2f0B3i','Aw5UzxjuzxH0qNLezwzHDwX0','zMfRzsb0AxrSzq','AxnwAxnPyMXL','Bg9JywXtDg9YywDL','mZa2otKZmfzwq2nXuG','zMfRzs1WBMC','y29VA2LLu3rHDgu','y29UBMvJDfnOyxjLza','CMvM','C2nYzwvUC2HVDevSzw1LBNq','y291BNq','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','y2fSBhm','C2nYzwvUC2HVDej5DgvZ','DhLWzq','BgvUz3rO','zgvSzxrL','zgvMAw5LuhjVCgvYDhK','Ag92zxi','z290BW','y3r4','Bwv0Ag9K','B25ozxDqywDL','y29VA2LLCW','mZyZndaYrvvmsfbV','Bgf1BMnO','C3rLChm','zMLSDgvY','CMvJB3jK','Aw5UzxjuzxH0','Aw5WDxrwywX1zq','C2v0tg9JywXtDg9YywDL','BMv3ugfNzuXPC3rLBMvYCW','BMfTzq','zxzHBhvHDgvszxn1Bhq','nJq5mJu2m0nfDuTWrW','C2f2zvn0B3jHz2vtDgf0zq','zNvUy3rPB24','y29UDgv4Dhm','zw50zxjgCMfTzq','y2XVC2vgywTLugfNzq','D2fPDezVCG','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','iJ48l2rPDJ4','ChvZAa','y2XPCgjVyxjKugfZDgu','C3vIC2nYAwjL','zxjYB3jpBK5LEhrby3rPB24','y3jLyxrLuMvJB3jKzxi','y2XPy2S','yxr0ywnOrxHPC3rPBMC','DxjS','yMvOyxzPB3i','y2fSBhngB3i','D2fPDezVCK5HDMLNyxrPB24','z29cywnR','ChjLC3m','y2HLy2TLzfn0yxrLqNLezwzHDwX0','Bwf5yMvuAhjVDW','D2fPDezVCLvYBa','Aw5WDxrwywX1zuj5rgvMyxvSDa','ywn0AxzLugfNzq','mtHKBLbjwM4','z29gB3j3yxjK','lNbHz2uW','B3v0zxjive1m','y291BNrcEurLzMf1Bhq','C2nYzwvUC2HVDa','Aw5ZCgvJDevSzw1LBNq','Bg9JywXtDg9YywDLu3rHDgu','AxneAxnHyMXLza','C2v0q29VA2LL','DxbSB2fKrMLSzq','B3v0zxjiDg1SqNLszwy','y2XVC2u','Cg9WDxbpBKnSAwnR','DgL0Bgu','zg91yMXLq2XPy2S','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','tg9JyxrVCKvYCM9Y','Dw5JAgvJAW','mtbYwKXQDxu','zxHPDezYyw1L','mJaZmdqZmJrhsLDRCeG','zxzHBhvHDgu','zMLSBa','y3vYCMvUDfvYBa','C2nVCgu','ywrK','Dgv4DenVBNrLBNrcEurLzMf1Bhq','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','z2v0qxr0CMLIDxrL','C3bSAwnL','nZq1oda0qKXOwuDK','Bgf1BMnOzwq','y2HLy2TLzfn0yxrL','y2HLy2S','B25bzNrLCKnSAwnR','zNjVBq','C2vSzwn0t3b0Aw9U','C2v0qwn0AxzLugfNzq','zw1PDezHA2vqB3b1Ca','CgfNzuXPC3q','pgrPDJ48l2rPDJ4','BMv0D29YA0vUDhjPzxm','Aw5PDgLHBfvYBa'];_0x4d17=function(){return _0x3f6e69;};return _0x4d17();}var __defProp=Object[_0x4be305(0x1d2)],__name=(_0x38ceb5,_0x48b3b6)=>__defProp(_0x38ceb5,_0x4be305(0x1e2),{'value':_0x48b3b6,'configurable':!![]});function subscribe(_0xbe630c,_0x2b934f){const _0x31876e={_0x1b6c8c:0x219},_0x328ef6=_0x4be305;return _0xbe630c[_0x328ef6(_0x31876e._0x1b6c8c)](_0x2b934f),()=>{const _0x2a756f=_0x328ef6;_0xbe630c[_0x2a756f(0x1d1)](_0x2b934f);};}__name(subscribe,_0x4be305(0x1ef));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0x4be305(0x210));}};function createRecorder(){const _0x18f05e={_0x194071:0x1cd},_0x100c54=_0x4be305,_0x5108d9=[];let _0x27cb0d=0x0;return{'push':__name(_0x5b928a=>_0x5108d9[_0x100c54(0x1ed)]({..._0x5b928a,'seq':_0x27cb0d++}),'push'),'calls':__name(()=>_0x5108d9,_0x100c54(_0x18f05e._0x194071))};}__name(createRecorder,_0x4be305(0x1f1));var FakePage=class{constructor(_0x29938d,_0x2d48bf,_0x20ca35,_0x4f9c7b){const _0x395b87={_0x3a153c:0x1f5},_0xfdbc3e=_0x4be305;this[_0xfdbc3e(0x22e)]=_0x29938d,this[_0xfdbc3e(_0x395b87._0x3a153c)]=_0x2d48bf,this[_0xfdbc3e(0x218)]=_0x20ca35,this['currentUrl']=_0x4f9c7b;}['recorder'];[_0x4be305(0x1f5)];['scope'];static{__name(this,'FakePage');}['currentUrl'];[_0x4be305(0x223)];[_0x4be305(0x1dd)](_0x33bdb1,_0x5119f0){const _0x14f53d={_0x7e3e9d:0x22e,_0x3bba8b:0x1ed,_0xe66f8c:0x218},_0x2b3552=_0x4be305;this[_0x2b3552(_0x14f53d._0x7e3e9d)][_0x2b3552(_0x14f53d._0x3bba8b)]({'scope':this[_0x2b3552(_0x14f53d._0xe66f8c)],'method':_0x33bdb1,'args':_0x5119f0});}['maybeThrow'](){const _0x4969f7={_0xea3bb9:0x1f5,_0x4a0118:0x1f0},_0x20a906=_0x4be305;if(this[_0x20a906(_0x4969f7._0xea3bb9)][_0x20a906(_0x4969f7._0x4a0118)]){const _0x380598=this[_0x20a906(0x1f5)][_0x20a906(0x1f0)];this[_0x20a906(0x1f5)][_0x20a906(0x1f0)]=void 0x0;throw _0x380598;}}[_0x4be305(0x1f4)](){const _0xd60f5={_0x860f87:0x217},_0x134dea=_0x4be305;return this[_0x134dea(_0xd60f5._0x860f87)];}async[_0x4be305(0x20d)](){const _0x82d975={_0x33b53a:0x1c2},_0x2ceb0f=_0x4be305;return this[_0x2ceb0f(0x1dd)](_0x2ceb0f(0x20d),[]),_0x2ceb0f(_0x82d975._0x33b53a);}async[_0x4be305(0x1f2)](_0x468918,_0x44ef05){const _0x1d0692={_0x545f6a:0x1dd,_0x36f30d:0x223},_0x5f0004=_0x4be305;this[_0x5f0004(_0x1d0692._0x545f6a)]('click',[_0x468918,_0x44ef05]),this[_0x5f0004(0x1fb)](),this[_0x5f0004(_0x1d0692._0x36f30d)]?.();}async[_0x4be305(0x20e)](_0x2a8ecf,_0x5a1a82){const _0x1d508c={_0x13c6a2:0x1fb},_0x1c6082=_0x4be305;this[_0x1c6082(0x1dd)](_0x1c6082(0x20e),[_0x2a8ecf,_0x5a1a82]),this[_0x1c6082(_0x1d508c._0x13c6a2)]();}async[_0x4be305(0x216)](_0x424fe3,_0x23fe25,_0x147a9f){const _0x34847e=_0x4be305;this[_0x34847e(0x1dd)]('fill',[_0x424fe3,_0x23fe25,_0x147a9f]),this['maybeThrow']();}async[_0x4be305(0x1f9)](_0x35a4e0,_0x2148e5,_0x3154c5){const _0x56d918={_0x52a615:0x1f9,_0x3d9e3b:0x1fb},_0x2b6946=_0x4be305;this['record'](_0x2b6946(_0x56d918._0x52a615),[_0x35a4e0,_0x2148e5,_0x3154c5]),this[_0x2b6946(_0x56d918._0x3d9e3b)]();}async[_0x4be305(0x222)](_0x5cedac,_0xbbeff){const _0xa7f7eb={_0x41ea62:0x1dd,_0x52524f:0x1fb},_0x3e73f5=_0x4be305;this[_0x3e73f5(_0xa7f7eb._0x41ea62)](_0x3e73f5(0x222),[_0x5cedac,_0xbbeff]),this[_0x3e73f5(_0xa7f7eb._0x52524f)]();}async['uncheck'](_0x3fb068,_0x406527){const _0x122a84=_0x4be305;this[_0x122a84(0x1dd)](_0x122a84(0x211),[_0x3fb068,_0x406527]),this['maybeThrow']();}async[_0x4be305(0x225)](_0x306e37,_0x59df9d,_0x3a4232){const _0x4cabf5={_0x58d004:0x1fb},_0x25722f=_0x4be305;this[_0x25722f(0x1dd)](_0x25722f(0x225),[_0x306e37,_0x59df9d,_0x3a4232]),this[_0x25722f(_0x4cabf5._0x58d004)]();}async[_0x4be305(0x1d3)](_0x4c12f4,_0x4fb87b){const _0x1073b1={_0x3e17f2:0x1dd},_0x2f0dc1=_0x4be305;this[_0x2f0dc1(_0x1073b1._0x3e17f2)](_0x2f0dc1(0x1d3),[_0x4c12f4,_0x4fb87b]),this['maybeThrow']();}async['scrollIntoView'](_0x4184ce){const _0x5e036d=_0x4be305;this[_0x5e036d(0x1dd)]('scrollIntoView',[_0x4184ce]),this[_0x5e036d(0x1fb)]();}async['dragAndDrop'](_0x1cb298,_0x2ffda0,_0x4f7aea){const _0x35f6ee={_0x4af8a5:0x1dd},_0x556f37=_0x4be305;this[_0x556f37(_0x35f6ee._0x4af8a5)]('dragAndDrop',[_0x1cb298,_0x2ffda0,_0x4f7aea]),this['maybeThrow']();}async[_0x4be305(0x209)](_0x269851,_0x1a7567){const _0x2dd911={_0x2bb17f:0x209,_0x343023:0x1fb},_0x1d024f=_0x4be305;this[_0x1d024f(0x1dd)](_0x1d024f(_0x2dd911._0x2bb17f),[_0x269851,_0x1a7567]),this[_0x1d024f(_0x2dd911._0x343023)]();}async[_0x4be305(0x1ee)](_0x2130ac,_0x39981e){const _0x2bc3e1={_0x5df7ff:0x1fb},_0x96de1d=_0x4be305;this['record']('clipboardPaste',[_0x2130ac,_0x39981e]),this[_0x96de1d(_0x2bc3e1._0x5df7ff)]();}async[_0x4be305(0x1cb)](_0x234278){const _0x4526d6={_0xdf5b19:0x203},_0xbd396e=_0x4be305;return this[_0xbd396e(0x1dd)](_0xbd396e(0x1cb),[_0x234278]),this['behavior'][_0xbd396e(_0x4526d6._0xdf5b19)]??0x1;}async[_0x4be305(0x1ba)](_0x475e55){const _0x6d99b6={_0x31df90:0x1dd},_0x175e6d=_0x4be305;return this[_0x175e6d(_0x6d99b6._0x31df90)](_0x175e6d(0x1ba),[_0x475e55]),this[_0x175e6d(0x1f5)]['textContentByDefault']??'';}async[_0x4be305(0x1de)](_0x1bc743){const _0x2fd9c1={_0x2813c7:0x1f5,_0x527ac5:0x1c1},_0x2543f9=_0x4be305;return this['record'](_0x2543f9(0x1de),[_0x1bc743]),this[_0x2543f9(_0x2fd9c1._0x2813c7)][_0x2543f9(_0x2fd9c1._0x527ac5)]??this['behavior'][_0x2543f9(0x21a)]??'';}async[_0x4be305(0x1df)](_0x354826){const _0x2c7b66={_0xf6024b:0x1f5,_0x41f833:0x1fd},_0x57f463=_0x4be305;return this[_0x57f463(0x1dd)]('inputValue',[_0x354826]),this[_0x57f463(_0x2c7b66._0xf6024b)][_0x57f463(_0x2c7b66._0x41f833)]??'';}async[_0x4be305(0x221)](_0x4e8ebe){const _0x5c9321={_0x4e7f62:0x1dd,_0x530074:0x221},_0x1304b0=_0x4be305;return this[_0x1304b0(_0x5c9321._0x4e7f62)](_0x1304b0(_0x5c9321._0x530074),[_0x4e8ebe]),this['behavior'][_0x1304b0(0x1fa)]??null;}async['isVisible'](_0x49b0ed){const _0x2db8df={_0xa6fb54:0x1f5},_0x4f69a7=_0x4be305;return this['record'](_0x4f69a7(0x1c3),[_0x49b0ed]),this[_0x4f69a7(_0x2db8df._0xa6fb54)]['isVisibleByDefault']??!![];}async[_0x4be305(0x207)](_0x34b8e0){const _0x592ca8=_0x4be305;return this[_0x592ca8(0x1dd)](_0x592ca8(0x207),[_0x34b8e0]),this[_0x592ca8(0x1f5)]['isDisabledByDefault']??![];}async[_0x4be305(0x21d)](_0x2e49f8,_0x4318aa){const _0x1e6023={_0x2ab260:0x1f5},_0x5030ad=_0x4be305;return this['record']('getAttribute',[_0x2e49f8,_0x4318aa]),this[_0x5030ad(_0x1e6023._0x2ab260)]['attributesByDefault']?.[_0x4318aa]??null;}async[_0x4be305(0x1ea)](_0x300eb0,_0x49516e){const _0x37c5f7=_0x4be305;this['record'](_0x37c5f7(0x1ea),[_0x300eb0,_0x49516e]);}async[_0x4be305(0x1fc)](_0x1cb684,_0x1a52a0){const _0x572340={_0x43fe75:0x1dd,_0x1249ae:0x1fc},_0xf88d61=_0x4be305;this[_0xf88d61(_0x572340._0x43fe75)](_0xf88d61(_0x572340._0x1249ae),[_0x1cb684,_0x1a52a0]);}async[_0x4be305(0x1b5)](_0x11d53c,_0x29ed62){const _0x25ad84={_0x295018:0x1dd},_0x81ed53=_0x4be305;this[_0x81ed53(_0x25ad84._0x295018)]('waitForText',[_0x11d53c,_0x29ed62]);}async['waitForNavigation'](_0x106019){const _0x1e306e={_0x5e9eb:0x1dd,_0x130835:0x1f7},_0x5e6c2b=_0x4be305;this[_0x5e6c2b(_0x1e306e._0x5e9eb)](_0x5e6c2b(_0x1e306e._0x130835),[_0x106019]);}async[_0x4be305(0x22d)](_0x18baef,_0x219c26){const _0x24813d={_0x23aa46:0x1dd,_0x4495d9:0x22d},_0x1185ce=_0x4be305;this[_0x1185ce(_0x24813d._0x23aa46)](_0x1185ce(_0x24813d._0x4495d9),[_0x18baef,_0x219c26]);}async[_0x4be305(0x1d4)](_0x2ddec0,_0x2c66f4){const _0x1a520c=_0x4be305;this[_0x1a520c(0x1dd)](_0x1a520c(0x1d4),[_0x2ddec0,_0x2c66f4]),this['currentUrl']=_0x2ddec0;}async[_0x4be305(0x1b7)](_0x4b5830){this['record']('reload',[_0x4b5830]);}async[_0x4be305(0x1f8)](_0x344f21){const _0x126043={_0x1b039c:0x1dd,_0x389258:0x1f8},_0x272303=_0x4be305;this[_0x272303(_0x126043._0x1b039c)](_0x272303(_0x126043._0x389258),[_0x344f21]);}async['goForward'](_0x57f8e3){const _0x2e07de=_0x4be305;this['record'](_0x2e07de(0x200),[_0x57f8e3]);}async['evaluate'](_0x2aea9f){const _0x2186a1={_0x3123c8:0x1dd,_0x2241c4:0x215,_0x532574:0x1e3},_0x5eb1f8=_0x4be305;return this[_0x5eb1f8(_0x2186a1._0x3123c8)](_0x5eb1f8(_0x2186a1._0x2241c4),[_0x2aea9f]),this['behavior'][_0x5eb1f8(_0x2186a1._0x532574)];}async[_0x4be305(0x1c0)](_0x31690b,_0x3e9e5d){const _0x7fecc8={_0x369e31:0x1dd},_0x448883=_0x4be305;return this[_0x448883(_0x7fecc8._0x369e31)]('evaluateOnLocator',[_0x31690b,_0x3e9e5d]),void 0x0;}async[_0x4be305(0x205)](_0x5e3efc){const _0x45b531={_0x3e4f39:0x1db,_0xd65e7e:0x1d0,_0x312d43:0x1db,_0x32637c:0x1f5},_0x55173a=_0x4be305;this['record'](_0x55173a(0x205),[_0x5e3efc]);if(_0x5e3efc[_0x55173a(_0x45b531._0x3e4f39)][_0x55173a(_0x45b531._0xd65e7e)]!==0x1||_0x5e3efc[_0x55173a(0x1db)][0x0]['kind']!==_0x55173a(0x1c9))return null;const _0x31bc6d=_0x5e3efc[_0x55173a(_0x45b531._0x312d43)][0x0][_0x55173a(0x1c9)],_0x3bacd9=this[_0x55173a(_0x45b531._0x32637c)]['elementHintByRef']?.[_0x31bc6d];return _0x3bacd9??null;}async[_0x4be305(0x204)](_0x19ed8b){const _0xfe2eff={_0x4e4c34:0x204},_0x4db2ad=_0x4be305;return this[_0x4db2ad(0x1dd)](_0x4db2ad(_0xfe2eff._0x4e4c34),[_0x19ed8b]),this[_0x4db2ad(0x1ce)](_0x19ed8b?.[_0x4db2ad(0x1cf)]);}async[_0x4be305(0x1ca)](_0x164956,_0x216c2a){const _0x4d1a5c={_0x38d3b6:0x1dd,_0x4833e2:0x1cf},_0x5547d9=_0x4be305;return this[_0x5547d9(_0x4d1a5c._0x38d3b6)](_0x5547d9(0x1ca),[_0x164956,_0x216c2a]),this[_0x5547d9(0x1ce)](_0x216c2a?.[_0x5547d9(_0x4d1a5c._0x4833e2)]);}[_0x4be305(0x1ce)](_0x5eb071){const _0x281562={_0x2e3a84:0x1ce,_0x4a05cc:0x1c6,_0x2f3b5b:0x1e6},_0x354dfe=_0x4be305,_0x4bbb46=this[_0x354dfe(0x1f5)][_0x354dfe(_0x281562._0x2e3a84)];if(_0x4bbb46===void 0x0)return Buffer[_0x354dfe(0x224)](_0x354dfe(_0x281562._0x4a05cc));return typeof _0x4bbb46===_0x354dfe(_0x281562._0x2f3b5b)?_0x4bbb46(_0x5eb071):_0x4bbb46;}async[_0x4be305(0x202)](_0x5518be){const _0x148f5c={_0x3eba40:0x202,_0xf1a1dd:0x1db,_0x34896c:0x1d0,_0x14fff4:0x1db,_0x3bd776:0x1c9,_0x5af643:0x20a,_0x5861ea:0x1b4,_0x5434b7:0x229},_0x15a8a9=_0x4be305;this[_0x15a8a9(0x1dd)](_0x15a8a9(_0x148f5c._0x3eba40),[_0x5518be]);if(_0x5518be[_0x15a8a9(_0x148f5c._0xf1a1dd)][_0x15a8a9(_0x148f5c._0x34896c)]===0x1&&_0x5518be['steps'][0x0]['kind']==='ref'){const _0x5ad2af=_0x5518be[_0x15a8a9(_0x148f5c._0x14fff4)][0x0][_0x15a8a9(_0x148f5c._0x3bd776)];return this[_0x15a8a9(0x1f5)][_0x15a8a9(_0x148f5c._0x5af643)]?.[_0x5ad2af]??_0x15a8a9(_0x148f5c._0x5861ea)+_0x5ad2af+_0x15a8a9(0x1ec);}return _0x15a8a9(_0x148f5c._0x5434b7);}},FakeContext=class{constructor(_0x1dcf9b,_0x5486c1,_0xc27375){const _0x1947e5={_0x390277:0x1f5,_0x38e29c:0x201,_0x4d2c5b:0x22b,_0x5c0396:0x1b6,_0x216d7f:0x20c,_0x4483a1:0x1d8},_0x1d228a={_0x57f963:0x227},_0x7bb607=_0x4be305;this[_0x7bb607(0x22e)]=_0x1dcf9b,this[_0x7bb607(_0x1947e5._0x390277)]=_0x5486c1,this['scope']=_0xc27375;const _0x598dfa=new FakePage(_0x1dcf9b,_0x5486c1,_0xc27375+_0x7bb607(_0x1947e5._0x38e29c),_0x5486c1[_0x7bb607(_0x1947e5._0x4d2c5b)]??_0x7bb607(_0x1947e5._0x5c0396));_0x5486c1[_0x7bb607(_0x1947e5._0x216d7f)]&&(_0x598dfa[_0x7bb607(0x223)]=()=>{const _0x2b69ed=_0x7bb607;this[_0x2b69ed(_0x1d228a._0x57f963)](_0x5486c1['popupOnClick']);}),this['pageList']=[_0x598dfa],this['localStorageState']={..._0x5486c1[_0x7bb607(0x1c4)]??{}},this[_0x7bb607(0x1c7)]={..._0x5486c1[_0x7bb607(_0x1947e5._0x4483a1)]??{}};}[_0x4be305(0x22e)];[_0x4be305(0x1f5)];[_0x4be305(0x218)];static{__name(this,'FakeContext');}[_0x4be305(0x228)];[_0x4be305(0x1bc)]=0x0;[_0x4be305(0x230)]=[];[_0x4be305(0x206)];[_0x4be305(0x1c7)];[_0x4be305(0x1e1)]=new Set();[_0x4be305(0x1dd)](_0x1fef26,_0x418c61){const _0x58ded4={_0x8834bf:0x22e,_0x5d9deb:0x1ed},_0x59938f=_0x4be305;this[_0x59938f(_0x58ded4._0x8834bf)][_0x59938f(_0x58ded4._0x5d9deb)]({'scope':this['scope'],'method':_0x1fef26,'args':_0x418c61});}['pages'](){const _0x2a7a74={_0x282ea5:0x228},_0x3acbc3=_0x4be305;return this[_0x3acbc3(_0x2a7a74._0x282ea5)];}[_0x4be305(0x1fe)](){const _0x562321={_0x456ccd:0x20f,_0x2a7553:0x1bc},_0x1509df=_0x4be305,_0x5e46df=this['pageList'][this[_0x1509df(0x1bc)]];if(!_0x5e46df)throw new DriverError(_0x1509df(_0x562321._0x456ccd),{'activeIdx':this[_0x1509df(_0x562321._0x2a7553)]});return _0x5e46df;}[_0x4be305(0x1b8)](){const _0xf26cec={_0x589a19:0x1b8},_0xf4f3da=_0x4be305;return this[_0xf4f3da(0x1f5)][_0xf4f3da(_0xf26cec._0x589a19)]??[];}[_0x4be305(0x22a)](){const _0x5fc8a3={_0x5e842d:0x1f5,_0x4d7db8:0x22a},_0x5e7314=_0x4be305;return this[_0x5e7314(_0x5fc8a3._0x5e842d)][_0x5e7314(_0x5fc8a3._0x4d7db8)]??[];}async[_0x4be305(0x226)](_0x3e98f0){const _0x25189f={_0x396ae5:0x1eb},_0x3a67a6=_0x4be305;this[_0x3a67a6(0x1dd)]('setActivePage',[_0x3e98f0]);if(_0x3e98f0<0x0||_0x3e98f0>=this[_0x3a67a6(0x228)][_0x3a67a6(0x1d0)])throw new DriverError(_0x3a67a6(_0x25189f._0x396ae5),{'index':_0x3e98f0,'available':this[_0x3a67a6(0x228)][_0x3a67a6(0x1d0)]});this[_0x3a67a6(0x1bc)]=_0x3e98f0,this['frameStack'][_0x3a67a6(0x1d0)]=0x0;}[_0x4be305(0x1d7)](_0x47e57b){const _0x2eda84=_0x4be305;return subscribe(this[_0x2eda84(0x1e1)],_0x47e57b);}['emitFakePopup'](_0x347745){const _0x40cdbd={_0x515e4e:0x218,_0x843b04:0x22c,_0x4f9d51:0x228,_0x1af5d6:0x1d0},_0x2d9fd7=_0x4be305,_0x5bb44e=this[_0x2d9fd7(_0x40cdbd._0x515e4e)]+_0x2d9fd7(_0x40cdbd._0x843b04)+this[_0x2d9fd7(_0x40cdbd._0x4f9d51)][_0x2d9fd7(_0x40cdbd._0x1af5d6)],_0x3bd5ea=new FakePage(this[_0x2d9fd7(0x22e)],this[_0x2d9fd7(0x1f5)],_0x5bb44e,_0x347745);this[_0x2d9fd7(0x228)]['push'](_0x3bd5ea);const _0x26cb6b=this[_0x2d9fd7(_0x40cdbd._0x4f9d51)][_0x2d9fd7(0x1d0)]-0x1;for(const _0x57bbb0 of this[_0x2d9fd7(0x1e1)]){try{_0x57bbb0({'index':_0x26cb6b,'url':_0x347745});}catch{}}return _0x26cb6b;}[_0x4be305(0x1e9)](_0x7e3bb3){const _0x1f61aa={_0x129bc3:0x228,_0x25b1f7:0x1d0,_0x4d321e:0x21e},_0x8ff500=_0x4be305;if(_0x7e3bb3<0x0||_0x7e3bb3>=this[_0x8ff500(0x228)][_0x8ff500(0x1d0)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x7e3bb3,'available':this[_0x8ff500(_0x1f61aa._0x129bc3)][_0x8ff500(_0x1f61aa._0x25b1f7)]});this['pageList'][_0x8ff500(_0x1f61aa._0x4d321e)](_0x7e3bb3,0x1);}async[_0x4be305(0x1e8)](_0x9b7152){const _0x5cb19d={_0x495b0a:0x1db,_0x58a4c8:0x1d0},_0x465aae=_0x4be305;this[_0x465aae(0x1dd)]('enterFrame',[_0x9b7152]);if(!_0x9b7152[_0x465aae(_0x5cb19d._0x495b0a)][_0x465aae(_0x5cb19d._0x58a4c8)])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x9b7152});this[_0x465aae(0x230)]['push'](_0x9b7152);}async['exitFrame'](){const _0x38e8e9={_0x30ad00:0x230},_0x416d83=_0x4be305;this['record'](_0x416d83(0x213),[]);if(this[_0x416d83(_0x38e8e9._0x30ad00)][_0x416d83(0x1d0)]===0x0)throw new DriverError(_0x416d83(0x21b),{});this[_0x416d83(_0x38e8e9._0x30ad00)][_0x416d83(0x231)]();}async[_0x4be305(0x1e0)](_0x3aed3c,_0x3c65ae){const _0x18edf7={_0x44c25f:0x1e0},_0x4fe38e=_0x4be305;this[_0x4fe38e(0x1dd)](_0x4fe38e(_0x18edf7._0x44c25f),[_0x3aed3c,_0x3c65ae]),this['localStorageState'][_0x3aed3c]=_0x3c65ae;}async['getLocalStorage'](_0x94964a){const _0x5f4615=_0x4be305;return this[_0x5f4615(0x1dd)]('getLocalStorage',[_0x94964a]),this[_0x5f4615(0x206)][_0x94964a]??null;}async[_0x4be305(0x208)](_0x5cf8d6,_0xcd1c1a,_0x849c8c){const _0x5708de=_0x4be305;this[_0x5708de(0x1dd)](_0x5708de(0x208),[_0x5cf8d6,_0xcd1c1a,_0x849c8c]),this['cookieState'][_0x5cf8d6]=_0xcd1c1a;}async[_0x4be305(0x1b9)](_0x10b7e9){const _0x4d9991=_0x4be305;return this['record'](_0x4d9991(0x1b9),[_0x10b7e9]),this['cookieState'][_0x10b7e9]??null;}async['saveStorageState'](_0x36266d){const _0x2da559={_0x5176f9:0x1e5},_0x4f67d5=_0x4be305;this[_0x4f67d5(0x1dd)](_0x4f67d5(_0x2da559._0x5176f9),[_0x36266d]);}async[_0x4be305(0x215)](_0x5f376d){const _0x2cc088=_0x4be305;return this['record'](_0x2cc088(0x215),[_0x5f376d]),void 0x0;}async[_0x4be305(0x20b)](){const _0x33086b={_0x131d32:0x1dd},_0x21811f=_0x4be305;this[_0x21811f(_0x33086b._0x131d32)](_0x21811f(0x20b),[]);}[_0x4be305(0x1bd)](){const _0x3fa6ce={_0x2caa99:0x1d0},_0x4eec81=_0x4be305;return this[_0x4eec81(0x230)][_0x4eec81(_0x3fa6ce._0x2caa99)];}},FakeWebDriver=class{constructor(_0x41725a={}){const _0x5b469f={_0x263f42:0x1f5},_0x13d13d=_0x4be305;this[_0x13d13d(_0x5b469f._0x263f42)]=_0x41725a,this['recorder']=createRecorder();}[_0x4be305(0x1f5)];static{__name(this,_0x4be305(0x1bf));}['launched']=![];['recorder'];[_0x4be305(0x1e7)]=[];async['launch'](_0x27a079){const _0x257c61={_0x340ddd:0x220},_0x4b19da=_0x4be305;this[_0x4b19da(0x22e)][_0x4b19da(0x1ed)]({'scope':'driver','method':_0x4b19da(0x1da),'args':[_0x27a079]}),this[_0x4b19da(_0x257c61._0x340ddd)]=!![];}async['newContext'](_0x19b996){const _0x319c1d={_0x4eea57:0x22e,_0x16611d:0x1d5,_0x3a5cfe:0x1e7},_0x5759bb=_0x4be305;this['recorder'][_0x5759bb(0x1ed)]({'scope':'driver','method':'newContext','args':[_0x19b996]});if(!this[_0x5759bb(0x220)])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x314327=new FakeContext(this[_0x5759bb(_0x319c1d._0x4eea57)],this['behavior'],_0x5759bb(_0x319c1d._0x16611d)+this[_0x5759bb(_0x319c1d._0x3a5cfe)]['length']);return this[_0x5759bb(_0x319c1d._0x3a5cfe)][_0x5759bb(0x1ed)](_0x314327),_0x314327;}async[_0x4be305(0x20b)](){const _0x41b72a={_0x37d1e0:0x22e,_0x5843c2:0x1ed,_0x5a2922:0x220},_0x2151d4=_0x4be305;this[_0x2151d4(_0x41b72a._0x37d1e0)][_0x2151d4(_0x41b72a._0x5843c2)]({'scope':_0x2151d4(0x1bb),'method':_0x2151d4(0x20b),'args':[]}),this[_0x2151d4(_0x41b72a._0x5a2922)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x4be305(0x1c8)](){const _0x535240=_0x4be305;throw new DriverError(_0x535240(0x1cc),{});}[_0x4be305(0x1f3)](_0x19bce8){const _0x6d8446={_0x455fbb:0x21c},_0x4e79c5=_0x4be305;throw new DriverError(_0x4e79c5(_0x6d8446._0x455fbb),{});}[_0x4be305(0x1cd)](){const _0x2d86e8={_0x485c6d:0x22e},_0x429f9f=_0x4be305;return this[_0x429f9f(_0x2d86e8._0x485c6d)]['calls']();}[_0x4be305(0x1f6)](_0x328ec2){const _0x26f1d8={_0x29d23c:0x22e},_0x46d749=_0x4be305;return this[_0x46d749(_0x26f1d8._0x29d23c)][_0x46d749(0x1cd)]()[_0x46d749(0x1dc)](_0x558884=>_0x558884[_0x46d749(0x1d6)]===_0x328ec2);}};export{FakeWebDriver};
|