@unotest/web 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -308,7 +308,9 @@ What's **not allowed** (parser / runtime will reject): `import` /
308
308
  loops ARE supported, and `break` is legal inside a loop body — poll with
309
309
  `for` + `if (…) { break; }` + `pause(ms) // reason: …`. Index access
310
310
  reads data (`docs[0].count`, bare variable only, never a Locator);
311
- `arr[i] = v` stays rejected.
311
+ `obj.prop[i]` does not parse — assign the member first:
312
+ `m = state.matches; last = m[m.length - 1];`. `arr[i] = v` stays
313
+ rejected.
312
314
 
313
315
  Navigation:
314
316
  - `goto(url, opts?)`, `reload(opts?)`, `getUrl()`, `goBack()`, `goForward()`.
@@ -400,9 +402,10 @@ Sandbox primitives:
400
402
  - `apiCall(method, path, body?, headers?, opts?)` — path-only against
401
403
  `sandbox.apiBaseUrl`; another host via `{base: 'API_BASE_X'}` — the
402
404
  NAME of a `unotest/.env` variable, never a URL. Multipart upload:
403
- body of the exact shape `{file: 'fixtures/doc.pdf', field?, fields?}`
405
+ pass `upload('fixtures/doc.pdf', {field?, fields?})` as the body
404
406
  (relative path inside the project / `sandbox.uploadDir`; don't set
405
- Content-Type yourself).
407
+ Content-Type yourself). A JSON body with a `file` key posts as plain
408
+ JSON — there is no key-name magic.
406
409
 
407
410
  Escape hatch:
408
411
  - `evaluate(\`js body\`, …args)` — raw backticks, no `${}`. Linter
@@ -439,7 +439,9 @@ What's **not allowed** (parser / runtime will reject): `import` /
439
439
  loops ARE supported, and `break` is legal inside a loop body — poll with
440
440
  `for` + `if (…) { break; }` + `pause(ms) // reason: …`. Index access
441
441
  reads data (`docs[0].count`, bare variable only, never a Locator);
442
- `arr[i] = v` stays rejected.
442
+ `obj.prop[i]` does not parse — assign the member first:
443
+ `m = state.matches; last = m[m.length - 1];`. `arr[i] = v` stays
444
+ rejected.
443
445
 
444
446
  Navigation:
445
447
  - `goto(url, opts?)`, `reload(opts?)`, `getUrl()`, `goBack()`, `goForward()`.
@@ -531,9 +533,10 @@ Sandbox primitives:
531
533
  - `apiCall(method, path, body?, headers?, opts?)` — path-only against
532
534
  `sandbox.apiBaseUrl`; another host via `{base: 'API_BASE_X'}` — the
533
535
  NAME of a `unotest/.env` variable, never a URL. Multipart upload:
534
- body of the exact shape `{file: 'fixtures/doc.pdf', field?, fields?}`
536
+ pass `upload('fixtures/doc.pdf', {field?, fields?})` as the body
535
537
  (relative path inside the project / `sandbox.uploadDir`; don't set
536
- Content-Type yourself).
538
+ Content-Type yourself). A JSON body with a `file` key posts as plain
539
+ JSON — there is no key-name magic.
537
540
 
538
541
  Escape hatch:
539
542
  - `evaluate(\`js body\`, …args)` — raw backticks, no `${}`. Linter
package/CHANGELOG.md CHANGED
@@ -5,6 +5,128 @@ All notable changes to `@unotest/web` are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.11.0] - 2026-08-13
9
+
10
+ ### Minor Changes
11
+
12
+ - eb568a6: `e2e` CLI argument diagnostics: extra positional arguments are rejected
13
+ instead of silently ignored (with a "did you mean: unotest-web e2e <name>"
14
+ hint for a duplicated subcommand); an argument that resolves to a
15
+ directory gets its own message instead of the misleading ".js extension"
16
+ error; unknown scenario names now suggest close matches from
17
+ `unotest/e2e/**` (new `suggestClosest` / `levenshteinDistance` utilities
18
+ in `@unotest/core`). The `collection` command also rejects extra
19
+ positionals.
20
+ - a195713: Failure artifacts are always on, and steps can carry screenshots.
21
+
22
+ - On any scenario failure the runner writes `screenshot.png` +
23
+ `page.html` (runtime DOM, open shadow roots included, secrets
24
+ redacted) to `unotest/.runs/<runId>/failure/` — no `UNOTEST_DEBUG`
25
+ needed. The `.unotest/failures/` bundle gains the same `page.html`;
26
+ its screenshot keeps honouring `failureBundle.tier2`.
27
+ - New env flag `UNOTEST_STEP_SCREENSHOTS=1` captures a PNG after every
28
+ executed step into `unotest/.runs/<runId>/screenshot/`.
29
+ - Protocol: `screenshot` events may carry the step's `file`/`line`/`col`.
30
+ - Viewer: a step row with a captured screenshot shows a camera icon and
31
+ toggles an inline preview on click (both `screenshot()` DSL captures
32
+ and per-step ones).
33
+
34
+ - d0ae620: Parse errors now carry an exact position and a caret code frame.
35
+
36
+ - Every lexer failure is a `ParseError` with `line`/`column` (previously
37
+ bare `Error` with no position).
38
+ - New `formatCodeFrame(source, line, column)` / `formatParseError`
39
+ exports in `@unotest/dsl`.
40
+ - The web runner's "parse error in <file>" message now includes
41
+ `<file>:<line>:<col>` plus the code frame — no more hunting for an
42
+ "unexpected LBRACKET" by eye.
43
+ - Token columns are now uniformly 1-based at the token start.
44
+ Previously identifier/number/string tokens were 0-based while
45
+ operators were 1-based, so carets and editor squiggles missed by one.
46
+ Migration note: `line:col` breakpoint keys stored in
47
+ `.debugger[-suffix].json` against word-initial statements shift by
48
+ +1 — re-set those breakpoints once.
49
+
50
+ - 98b0736: BREAKING: multipart uploads in `apiCall` are now opted into explicitly
51
+ with the new `upload(path, {field?, fields?})` DSL function — the
52
+ `{file, field?, fields?}` body-shape magic is removed.
53
+
54
+ A JSON body containing a `file` key now always posts as JSON (the old
55
+ key-name detection broke JSON APIs with a legitimate `file` field —
56
+ `{file: 'x.jsonl'}` tried to read a file from disk and died with
57
+ ENOENT).
58
+
59
+ Migration:
60
+
61
+ ```js
62
+ // before
63
+ apiCall("POST", "/documents", {
64
+ file: "fixtures/doc.pdf",
65
+ fields: { source: "e2e" },
66
+ });
67
+ // after
68
+ apiCall(
69
+ "POST",
70
+ "/documents",
71
+ upload("fixtures/doc.pdf", { fields: { source: "e2e" } })
72
+ );
73
+ ```
74
+
75
+ `upload()` must be the body itself (a nested `{doc: upload(...)}` is
76
+ rejected with a pointer to the correct usage). Path containment in
77
+ `sandbox.uploadDir` and the Content-Type rules are unchanged.
78
+
79
+ ### Patch Changes
80
+
81
+ - ce25926: Fixes and DX follow-ups from the real-time-polls field check:
82
+
83
+ - **Fix: `unotest/.runs/<runId>/failure/` was never written.** The
84
+ runner derived the run dir from its internal runtime id (`r-N…`)
85
+ while the on-disk dir is named by `makeRunId(scenario)`, so the
86
+ always-on failure artifacts silently skipped. The CLI now passes its
87
+ run dir into the runner (`RunJsScenarioOptions.runDir`), and the
88
+ failure screenshot + page.html land where documented.
89
+ - **`init` re-syncs tool-owned skill copies.** `.claude/skills/*` and
90
+ `.claude/hooks/*` shipped by the package are overwritten on a plain
91
+ `init` re-run when they diverge from the installed version (status
92
+ `updated`) — stale skills after a package upgrade no longer require
93
+ `--force`. User-scaffolded files keep the skip-unless-`--force`
94
+ behaviour.
95
+ - The MCP `agent-test-author` prompt caught up with the runtime:
96
+ multipart via `upload(...)` and the `obj.prop[i]` workaround are now
97
+ documented there too, and both facts are enforced by
98
+ `check-skill-prompt-sync`.
99
+
100
+ - 7ac23d5: Screenshots are no longer saved as blank white PNGs. `goto()` resolves
101
+ on the `load` event, which on any client-rendered app fires before the
102
+ first frame carries content — so a per-step capture
103
+ (`UNOTEST_STEP_SCREENSHOTS=1`) of a step that ended on `goto()`, or a
104
+ `screenshot()` call placed right after one, froze the pre-render frame.
105
+ Both paths now settle first: wait for the network to go quiet, then for
106
+ a painted frame, capped at 2s total. A page that never goes quiet
107
+ (polling, live feeds) spends the cap once per capture and is then shot
108
+ as-is; the wait never fails a run. The failure screenshot deliberately
109
+ skips the settle — it must show the page as it was at the failure.
110
+
111
+ Adds `DriverPage.waitForLoadState(state, opts?)` — diagnostics-only,
112
+ backing the settle. It is not exposed to the DSL: a test that waits on
113
+ "the network went quiet" instead of on visible app state is the flaky
114
+ pattern the linter rejects.
115
+
116
+ - Updated dependencies [eb568a6]
117
+ - Updated dependencies [a195713]
118
+ - Updated dependencies [ce25926]
119
+ - Updated dependencies [5a8e92b]
120
+ - Updated dependencies [d0ae620]
121
+ - Updated dependencies [2a68997]
122
+ - Updated dependencies [c01b72f]
123
+ - Updated dependencies [dea90e9]
124
+ - @unotest/core@0.11.0
125
+ - @unotest/protocol@0.11.0
126
+ - @unotest/viewer@0.11.0
127
+ - @unotest/dsl@0.11.0
128
+ - @unotest/grounder-client@0.11.0
129
+
8
130
  ## [0.10.0] - 2026-08-06
9
131
 
10
132
  ### Minor Changes
@@ -124,9 +124,9 @@ declare const SandboxConfigSchema: z.ZodObject<{
124
124
  * URLs are rejected at runtime. Additional bases come from env
125
125
  * variables via `apiCall(..., {base: "API_BASE_X"})`. */
126
126
  apiBaseUrl: z.ZodOptional<z.ZodString>;
127
- /** Root for `apiCall` multipart `{file}` fixtures. Relative upload
128
- * paths resolve against it and may not escape it. Defaults to the
129
- * project root (the runner's cwd). */
127
+ /** Root for `upload()` fixtures. Relative upload paths resolve
128
+ * against it and may not escape it. Defaults to the project root
129
+ * (the runner's cwd). */
130
130
  uploadDir: z.ZodOptional<z.ZodString>;
131
131
  }, "strip", z.ZodTypeAny, {
132
132
  shellCwd?: string | undefined;
@@ -323,9 +323,9 @@ declare const UnotestConfigSchema: z.ZodObject<{
323
323
  * URLs are rejected at runtime. Additional bases come from env
324
324
  * variables via `apiCall(..., {base: "API_BASE_X"})`. */
325
325
  apiBaseUrl: z.ZodOptional<z.ZodString>;
326
- /** Root for `apiCall` multipart `{file}` fixtures. Relative upload
327
- * paths resolve against it and may not escape it. Defaults to the
328
- * project root (the runner's cwd). */
326
+ /** Root for `upload()` fixtures. Relative upload paths resolve
327
+ * against it and may not escape it. Defaults to the project root
328
+ * (the runner's cwd). */
329
329
  uploadDir: z.ZodOptional<z.ZodString>;
330
330
  }, "strip", z.ZodTypeAny, {
331
331
  shellCwd?: string | undefined;
@@ -1 +1 @@
1
- var _0x2e344b=_0x8977;(function(_0x274a7d,_0xfc8b9d){var _0x244ac2={_0x4ac5bb:0xdd,_0x4ff88e:0xe4,_0x286156:0xe0,_0x4f3327:0xe8,_0x58371b:0xe1},_0x41182f=_0x8977,_0x5b93a8=_0x274a7d();while(!![]){try{var _0x1d56a7=-parseInt(_0x41182f(0xdf))/0x1*(-parseInt(_0x41182f(_0x244ac2._0x4ac5bb))/0x2)+-parseInt(_0x41182f(_0x244ac2._0x4ff88e))/0x3*(-parseInt(_0x41182f(0xc7))/0x4)+parseInt(_0x41182f(0xea))/0x5+parseInt(_0x41182f(_0x244ac2._0x286156))/0x6+-parseInt(_0x41182f(0xcc))/0x7+parseInt(_0x41182f(_0x244ac2._0x4f3327))/0x8*(parseInt(_0x41182f(0xfc))/0x9)+-parseInt(_0x41182f(_0x244ac2._0x58371b))/0xa;if(_0x1d56a7===_0xfc8b9d)break;else _0x5b93a8['push'](_0x5b93a8['shift']());}catch(_0x35c23d){_0x5b93a8['push'](_0x5b93a8['shift']());}}}(_0x19a6,0x37d44));import{z}from'zod';var BrowserSchema=z[_0x2e344b(0xfa)]([_0x2e344b(0xe3),_0x2e344b(0xcf),_0x2e344b(0xf9)]),BrowserChannelSchema=z[_0x2e344b(0xf3)]([z['literal'](_0x2e344b(0xca)),z[_0x2e344b(0xc6)](_0x2e344b(0xc9)),z[_0x2e344b(0xc6)](_0x2e344b(0xf5)),z[_0x2e344b(0xe9)]()])[_0x2e344b(0xec)](),ViewportSchema=z[_0x2e344b(0xd7)]({'width':z['number']()[_0x2e344b(0xee)]()[_0x2e344b(0xcb)](),'height':z[_0x2e344b(0xd1)]()[_0x2e344b(0xee)]()[_0x2e344b(0xcb)]()}),RetryReasonSchema=z[_0x2e344b(0xfa)](['transient',_0x2e344b(0xd6),_0x2e344b(0xef)]),RetryConfigSchema=z[_0x2e344b(0xd7)]({'count':z[_0x2e344b(0xd1)]()[_0x2e344b(0xee)]()[_0x2e344b(0x103)](0x0)['max'](0xa),'on':z[_0x2e344b(0xed)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x2e344b(0xd7)]({'tier1':z[_0x2e344b(0xc6)](!![])[_0x2e344b(0xc5)](!![]),'tier2':z[_0x2e344b(0xdc)](),'tier3':z[_0x2e344b(0xd7)]({'network':z[_0x2e344b(0xdc)](),'video':z[_0x2e344b(0xdc)]()}),'retention':z['object']({'runs':z[_0x2e344b(0xd1)]()['int']()[_0x2e344b(0xcb)](),'days':z['number']()[_0x2e344b(0xee)]()['positive']()}),'storageDir':z[_0x2e344b(0x104)]()[_0x2e344b(0x103)](0x1)}),DialogPolicySchema=z[_0x2e344b(0xfa)]([_0x2e344b(0xd0),_0x2e344b(0xf1),_0x2e344b(0xde)]),LinterRuleIdSchema=z[_0x2e344b(0xfa)]([_0x2e344b(0xd5),'lint:xpath',_0x2e344b(0xf6),_0x2e344b(0xff),_0x2e344b(0xeb),_0x2e344b(0xfd),_0x2e344b(0xfb),_0x2e344b(0xe5),_0x2e344b(0xd4),_0x2e344b(0xf2),_0x2e344b(0xd2),_0x2e344b(0xe2),_0x2e344b(0xd3),'validator:meta-shape',_0x2e344b(0xc8),_0x2e344b(0xf0),_0x2e344b(0x100),_0x2e344b(0x101),_0x2e344b(0x102),_0x2e344b(0xcd),'validator:string-concat',_0x2e344b(0xc4),_0x2e344b(0xf7),'validator:wrapped-format']),LinterSeveritySchema=z[_0x2e344b(0xfa)]([_0x2e344b(0xe6),'warn','error']),LinterConfigSchema=z[_0x2e344b(0xd7)]({'enabled':z[_0x2e344b(0xdc)](),'rules':z[_0x2e344b(0xf4)](LinterRuleIdSchema,LinterSeveritySchema)}),McpConfigSchema=z[_0x2e344b(0xd7)]({'transport':z[_0x2e344b(0xc6)](_0x2e344b(0xce))}),SandboxConfigSchema=z[_0x2e344b(0xd7)]({'shellCwd':z[_0x2e344b(0x104)]()[_0x2e344b(0xec)](),'database':z['string']()['optional'](),'apiBaseUrl':z[_0x2e344b(0x104)]()[_0x2e344b(0xda)]()[_0x2e344b(0xec)](),'uploadDir':z['string']()[_0x2e344b(0xec)]()}),WebServerConfigSchema=z[_0x2e344b(0xd7)]({'command':z[_0x2e344b(0x104)]()[_0x2e344b(0x103)](0x1),'url':z[_0x2e344b(0x104)]()['url'](),'reuseExistingServer':z[_0x2e344b(0xdc)]()[_0x2e344b(0xc5)](!![]),'timeoutMs':z[_0x2e344b(0xd1)]()[_0x2e344b(0xee)]()[_0x2e344b(0xcb)]()[_0x2e344b(0xc5)](0xea60)}),UnotestConfigSchema=z['object']({'baseUrl':z[_0x2e344b(0x104)]()['url']()[_0x2e344b(0xec)](),'webServer':WebServerConfigSchema[_0x2e344b(0xec)](),'browsers':z[_0x2e344b(0xed)](BrowserSchema)[_0x2e344b(0x103)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x2e344b(0x104)]()[_0x2e344b(0xec)](),'testDir':z[_0x2e344b(0x104)]()['min'](0x1),'helpersDir':z['string']()[_0x2e344b(0x103)](0x1),'defaultTimeoutMs':z[_0x2e344b(0xd1)]()[_0x2e344b(0xee)]()['positive'](),'defaultNavigationTimeoutMs':z['number']()[_0x2e344b(0xee)]()[_0x2e344b(0xcb)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':['chromium'],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x2e344b(0xdb)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x2e344b(0xd9)},'dialogPolicy':'accept','testDir':_0x2e344b(0xe7),'helpersDir':_0x2e344b(0xf8),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x2e344b(0xd8),'lint:xpath':'warn','lint:obfuscated-class':_0x2e344b(0xd8),'lint:pause-explicit':'warn','lint:disambig-by-index':_0x2e344b(0xe6),'lint:evaluate-discouraged':_0x2e344b(0xd8),'lint:scenario-in-root':_0x2e344b(0xfe),'lint:mustache-in-dsl':_0x2e344b(0xfe),'validator:unknown-function':_0x2e344b(0xfe)}},'mcp':{'transport':_0x2e344b(0xce)},'sandbox':{}};function _0x8977(_0x3a774f,_0x1b39aa){_0x3a774f=_0x3a774f-0xc4;var _0x19a653=_0x19a6();var _0x89776=_0x19a653[_0x3a774f];if(_0x8977['fRpWih']===undefined){var _0x38d7ef=function(_0x26bdbc){var _0x3caffa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xda4aa0='',_0x563661='';for(var _0x305f13=0x0,_0x3d29c0,_0x481c1e,_0x19b0ec=0x0;_0x481c1e=_0x26bdbc['charAt'](_0x19b0ec++);~_0x481c1e&&(_0x3d29c0=_0x305f13%0x4?_0x3d29c0*0x40+_0x481c1e:_0x481c1e,_0x305f13++%0x4)?_0xda4aa0+=String['fromCharCode'](0xff&_0x3d29c0>>(-0x2*_0x305f13&0x6)):0x0){_0x481c1e=_0x3caffa['indexOf'](_0x481c1e);}for(var _0x4792b1=0x0,_0x49dbb6=_0xda4aa0['length'];_0x4792b1<_0x49dbb6;_0x4792b1++){_0x563661+='%'+('00'+_0xda4aa0['charCodeAt'](_0x4792b1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x563661);};_0x8977['wyEdtR']=_0x38d7ef,_0x8977['cHKdQs']={},_0x8977['fRpWih']=!![];}var _0x1354e5=_0x19a653[0x0],_0x16a4bb=_0x3a774f+_0x1354e5,_0x9c7c53=_0x8977['cHKdQs'][_0x16a4bb];return!_0x9c7c53?(_0x89776=_0x8977['wyEdtR'](_0x89776),_0x8977['cHKdQs'][_0x16a4bb]=_0x89776):_0x89776=_0x9c7c53,_0x89776;}export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};function _0x19a6(){var _0x1434f7=['DMfSAwrHDg9YoMXPC3qTyxjN','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','D2vIA2L0','zw51Bq','BgLUDdPZy2vUyxjPBY1PBI1YB290','mtG3nduYCKHJsuHS','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','zxjYB3i','BgLUDdPWyxvZzs1LEhbSAwnPDa','DMfSAwrHDg9YoMLMlxnOyxbL','DMfSAwrHDg9YoNzHCI1ZAgfWzq','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','BwLU','C3rYAw5N','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','zgvMyxvSDa','BgL0zxjHBa','mJyYmdrzrev4q0K','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','BxnLzgDL','y2HYB21L','Cg9ZAxrPDMu','mtq3nZa0mLfMrgnerW','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','C3rKAw8','zMLYzwzVEa','ywnJzxb0','BNvTyMvY','DMfSAwrHDg9YoMfYzY1RAw5K','DMfSAwrHDg9YoNn0zxaTC2HHCgu','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','BgLUDdPKzwvWlwnZCW','BMv0D29YAW','B2jQzwn0','D2fYBG','lNvUB3rLC3qVzMfPBhvYzxm','DxjS','DhjHBNnPzw50','yM9VBgvHBG','mLPiC0XWDq','BwfUDwfS','mZy5ntm1tgPYrKfu','mtqWntu0offSrgvtBG','nti5mdiZmgLwwwnRDG','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','y2HYB21PDw0','m1LeDg1LzG','BgLUDdPTDxn0ywnOzs1PBI1KC2W','B2zM','Dw5VDgvZDc9LmMu','odHXD3bdzNq','BNvSBa','nJq2mJy1seL0CvP3','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','B3b0Aw9UywW','yxjYyxK','Aw50','y3jHC2G','DMfSAwrHDg9YoMzVCI1ZAgfWzq','zgLZBwLZCW','DMfSAwrHDg9YoMfYAxr5','Dw5PB24','CMvJB3jK','y2HYB21LlwjLDge','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ'];_0x19a6=function(){return _0x1434f7;};return _0x19a6();}
1
+ function _0xbf3c(){var _0x5a10e4=['zgvMyxvSDa','nZaZnZDkrwX3y0S','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mtaXnZiXm1riAMTSDG','mZnyzhzhvg4','zMLYzwzVEa','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','mtK1mZqYthPkwhPg','ohjqwxfcBa','lNvUB3rLC3qVzMfPBhvYzxm','D2fYBG','BxnLzgDL','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','DMfSAwrHDg9YoM1LDgeTC2HHCgu','Cg9ZAxrPDMu','B3b0Aw9UywW','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BNvSBa','B2jQzwn0','mJu1nZu2mffKrevZEq','BwfUDwfS','y2HYB21PDw0','yxjYyxK','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','BgLUDdPZy2vUyxjPBY1PBI1YB290','Bwf4','C3rYAw5N','nvrIEKz2uq','mJrfCe1AEee','BNvTyMvY','yM9VBgvHBG','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','mtqZwK5wBKPy','BgLUDdPTDxn0ywnOzs1PBI1KC2W','Aw50','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','DMfSAwrHDg9YoMXPC3qTyxjN','DMfSAwrHDg9YoMzVCI1ZAgfWzq','ywnJzxb0','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','C3rKAw8','B2zM','BgLUDdPWyxvZzs1LEhbSAwnPDa','ntuZzhrbsufk','DxjS','zxjYB3i','y2HYB21L','y2HYB21LlwjLDge','mtqXndq1ogLKz3rmtW','CMvJB3jK','mteWotG2ohDLv3LyBa','zw51Bq','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','nJu0nJrpt2TzrgO','y3jHC2G','BwLU','Dw5VDgvZDc9LmMu','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','BgL0zxjHBa','DMfSAwrHDg9YoNn0zxaTC2HHCgu'];_0xbf3c=function(){return _0x5a10e4;};return _0xbf3c();}var _0x5b7026=_0x4a4e;(function(_0x2f37c3,_0xd597d6){var _0x574d49={_0x201899:0x172,_0xd15309:0x171,_0x5646ca:0x158,_0x1341cf:0x15d,_0x1122e5:0x17d},_0x412659=_0x4a4e,_0x24087b=_0x2f37c3();while(!![]){try{var _0x157f85=-parseInt(_0x412659(0x16b))/0x1*(-parseInt(_0x412659(0x149))/0x2)+parseInt(_0x412659(0x16d))/0x3*(parseInt(_0x412659(_0x574d49._0x201899))/0x4)+parseInt(_0x412659(0x185))/0x5*(-parseInt(_0x412659(_0x574d49._0xd15309))/0x6)+parseInt(_0x412659(_0x574d49._0x5646ca))/0x7*(-parseInt(_0x412659(0x162))/0x8)+-parseInt(_0x412659(_0x574d49._0x1341cf))/0x9+parseInt(_0x412659(_0x574d49._0x1122e5))/0xa*(parseInt(_0x412659(0x16e))/0xb)+parseInt(_0x412659(0x15f))/0xc*(-parseInt(_0x412659(0x14d))/0xd);if(_0x157f85===_0xd597d6)break;else _0x24087b['push'](_0x24087b['shift']());}catch(_0x5c5156){_0x24087b['push'](_0x24087b['shift']());}}}(_0xbf3c,0x6a89b));import{z}from'zod';var BrowserSchema=z[_0x5b7026(0x160)](['chromium',_0x5b7026(0x16f),'webkit']),BrowserChannelSchema=z['union']([z['literal'](_0x5b7026(0x15b)),z[_0x5b7026(0x168)](_0x5b7026(0x175)),z[_0x5b7026(0x168)](_0x5b7026(0x15c)),z[_0x5b7026(0x17b)]()])[_0x5b7026(0x179)](),ViewportSchema=z[_0x5b7026(0x17c)]({'width':z[_0x5b7026(0x14a)]()[_0x5b7026(0x14f)]()[_0x5b7026(0x178)](),'height':z[_0x5b7026(0x14a)]()['int']()[_0x5b7026(0x178)]()}),RetryReasonSchema=z[_0x5b7026(0x160)](['transient','network',_0x5b7026(0x163)]),RetryConfigSchema=z[_0x5b7026(0x17c)]({'count':z[_0x5b7026(0x14a)]()[_0x5b7026(0x14f)]()[_0x5b7026(0x164)](0x0)[_0x5b7026(0x183)](0xa),'on':z[_0x5b7026(0x180)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x5b7026(0x17c)]({'tier1':z[_0x5b7026(0x168)](!![])[_0x5b7026(0x16a)](!![]),'tier2':z['boolean'](),'tier3':z[_0x5b7026(0x17c)]({'network':z[_0x5b7026(0x14b)](),'video':z[_0x5b7026(0x14b)]()}),'retention':z[_0x5b7026(0x17c)]({'runs':z[_0x5b7026(0x14a)]()[_0x5b7026(0x14f)]()[_0x5b7026(0x178)](),'days':z[_0x5b7026(0x14a)]()[_0x5b7026(0x14f)]()[_0x5b7026(0x178)]()}),'storageDir':z[_0x5b7026(0x184)]()['min'](0x1)}),DialogPolicySchema=z[_0x5b7026(0x160)]([_0x5b7026(0x153),'dismiss',_0x5b7026(0x17e)]),LinterRuleIdSchema=z[_0x5b7026(0x160)](['lint:deep-css','lint:xpath',_0x5b7026(0x176),_0x5b7026(0x157),_0x5b7026(0x154),_0x5b7026(0x167),_0x5b7026(0x182),_0x5b7026(0x14e),_0x5b7026(0x14c),'validator:arity','validator:arg-kind',_0x5b7026(0x16c),_0x5b7026(0x169),_0x5b7026(0x177),'validator:function-shape',_0x5b7026(0x152),'validator:if-shape',_0x5b7026(0x17a),_0x5b7026(0x150),_0x5b7026(0x161),_0x5b7026(0x170),'validator:semantic-loss',_0x5b7026(0x151),_0x5b7026(0x181)]),LinterSeveritySchema=z[_0x5b7026(0x160)]([_0x5b7026(0x156),_0x5b7026(0x174),_0x5b7026(0x15a)]),LinterConfigSchema=z[_0x5b7026(0x17c)]({'enabled':z[_0x5b7026(0x14b)](),'rules':z[_0x5b7026(0x15e)](LinterRuleIdSchema,LinterSeveritySchema)}),McpConfigSchema=z[_0x5b7026(0x17c)]({'transport':z['literal'](_0x5b7026(0x155))}),SandboxConfigSchema=z[_0x5b7026(0x17c)]({'shellCwd':z['string']()['optional'](),'database':z[_0x5b7026(0x184)]()[_0x5b7026(0x179)](),'apiBaseUrl':z[_0x5b7026(0x184)]()['url']()[_0x5b7026(0x179)](),'uploadDir':z[_0x5b7026(0x184)]()['optional']()}),WebServerConfigSchema=z[_0x5b7026(0x17c)]({'command':z[_0x5b7026(0x184)]()[_0x5b7026(0x164)](0x1),'url':z['string']()[_0x5b7026(0x159)](),'reuseExistingServer':z[_0x5b7026(0x14b)]()[_0x5b7026(0x16a)](!![]),'timeoutMs':z[_0x5b7026(0x14a)]()[_0x5b7026(0x14f)]()['positive']()[_0x5b7026(0x16a)](0xea60)}),UnotestConfigSchema=z['object']({'baseUrl':z[_0x5b7026(0x184)]()['url']()[_0x5b7026(0x179)](),'webServer':WebServerConfigSchema[_0x5b7026(0x179)](),'browsers':z[_0x5b7026(0x180)](BrowserSchema)[_0x5b7026(0x164)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x5b7026(0x184)]()[_0x5b7026(0x179)](),'testDir':z['string']()['min'](0x1),'helpersDir':z[_0x5b7026(0x184)]()['min'](0x1),'defaultTimeoutMs':z[_0x5b7026(0x14a)]()[_0x5b7026(0x14f)]()[_0x5b7026(0x178)](),'defaultNavigationTimeoutMs':z[_0x5b7026(0x14a)]()[_0x5b7026(0x14f)]()[_0x5b7026(0x178)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x5b7026(0x17f)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x5b7026(0x173)},'dialogPolicy':_0x5b7026(0x153),'testDir':_0x5b7026(0x165),'helpersDir':_0x5b7026(0x166),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x5b7026(0x174),'lint:xpath':_0x5b7026(0x174),'lint:obfuscated-class':'warn','lint:pause-explicit':_0x5b7026(0x174),'lint:disambig-by-index':_0x5b7026(0x156),'lint:evaluate-discouraged':'warn','lint:scenario-in-root':_0x5b7026(0x15a),'lint:mustache-in-dsl':_0x5b7026(0x15a),'validator:unknown-function':_0x5b7026(0x15a)}},'mcp':{'transport':_0x5b7026(0x155)},'sandbox':{}};function _0x4a4e(_0x5a0c8d,_0x24a94e){_0x5a0c8d=_0x5a0c8d-0x149;var _0xbf3c28=_0xbf3c();var _0x4a4e14=_0xbf3c28[_0x5a0c8d];if(_0x4a4e['ZZiVPP']===undefined){var _0x3cbfd6=function(_0x5b8e52){var _0x1d90b9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x23a664='',_0x5dd330='';for(var _0x54bc48=0x0,_0x2de8ed,_0xc5f58c,_0x271a4b=0x0;_0xc5f58c=_0x5b8e52['charAt'](_0x271a4b++);~_0xc5f58c&&(_0x2de8ed=_0x54bc48%0x4?_0x2de8ed*0x40+_0xc5f58c:_0xc5f58c,_0x54bc48++%0x4)?_0x23a664+=String['fromCharCode'](0xff&_0x2de8ed>>(-0x2*_0x54bc48&0x6)):0x0){_0xc5f58c=_0x1d90b9['indexOf'](_0xc5f58c);}for(var _0x599abd=0x0,_0x439dac=_0x23a664['length'];_0x599abd<_0x439dac;_0x599abd++){_0x5dd330+='%'+('00'+_0x23a664['charCodeAt'](_0x599abd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5dd330);};_0x4a4e['BLwFta']=_0x3cbfd6,_0x4a4e['JKObLm']={},_0x4a4e['ZZiVPP']=!![];}var _0x25b54b=_0xbf3c28[0x0],_0x2f5e17=_0x5a0c8d+_0x25b54b,_0x298485=_0x4a4e['JKObLm'][_0x2f5e17];return!_0x298485?(_0x4a4e14=_0x4a4e['BLwFta'](_0x4a4e14),_0x4a4e['JKObLm'][_0x2f5e17]=_0x4a4e14):_0x4a4e14=_0x298485,_0x4a4e14;}export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
@@ -1,5 +1,5 @@
1
- import { E as ElementHint, N as NetworkEntry, W as WebDriver, L as LaunchOptions, C as ContextOptions, D as DriverContext } from '../interfaces-BxviHxnr.js';
2
- export { A as ActionTimeout, a as CheckOptions, b as ClickOptions, c as CookieOptions, d as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, e as NavigationOptions, P as PressOptions, R as ReloadOptions, S as ScreenshotOptions, f as SelectOptions, V as Viewport, g as WaitOptions, h as WaitState } from '../interfaces-BxviHxnr.js';
1
+ import { E as ElementHint, N as NetworkEntry, W as WebDriver, L as LaunchOptions, C as ContextOptions, D as DriverContext } from '../interfaces-MxHi1Air.js';
2
+ export { A as ActionTimeout, a as CheckOptions, b as ClickOptions, c as CookieOptions, d as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, e as NavigationOptions, P as PressOptions, R as ReloadOptions, S as ScreenshotOptions, f as SelectOptions, V as Viewport, g as WaitOptions, h as WaitState } from '../interfaces-MxHi1Air.js';
3
3
  import '@unotest/protocol';
4
4
  import '../config/schema.js';
5
5
  import 'zod';
@@ -1 +1 @@
1
- const _0x442b96=_0x1ca0;function _0x1ca0(_0x4c67ac,_0xf4652e){_0x4c67ac=_0x4c67ac-0x9a;const _0x4293ca=_0x4293();let _0x1ca095=_0x4293ca[_0x4c67ac];if(_0x1ca0['oaAEoG']===undefined){var _0x2b836e=function(_0x15d77b){const _0x38ab5d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x548e83='',_0x3c0340='';for(let _0x3950d8=0x0,_0xbbaf3c,_0x52dacf,_0x16f176=0x0;_0x52dacf=_0x15d77b['charAt'](_0x16f176++);~_0x52dacf&&(_0xbbaf3c=_0x3950d8%0x4?_0xbbaf3c*0x40+_0x52dacf:_0x52dacf,_0x3950d8++%0x4)?_0x548e83+=String['fromCharCode'](0xff&_0xbbaf3c>>(-0x2*_0x3950d8&0x6)):0x0){_0x52dacf=_0x38ab5d['indexOf'](_0x52dacf);}for(let _0x3d9fc2=0x0,_0x41df41=_0x548e83['length'];_0x3d9fc2<_0x41df41;_0x3d9fc2++){_0x3c0340+='%'+('00'+_0x548e83['charCodeAt'](_0x3d9fc2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c0340);};_0x1ca0['cUKaDl']=_0x2b836e,_0x1ca0['YJBGVf']={},_0x1ca0['oaAEoG']=!![];}const _0x572062=_0x4293ca[0x0],_0x5af799=_0x4c67ac+_0x572062,_0x49e0e2=_0x1ca0['YJBGVf'][_0x5af799];return!_0x49e0e2?(_0x1ca095=_0x1ca0['cUKaDl'](_0x1ca095),_0x1ca0['YJBGVf'][_0x5af799]=_0x1ca095):_0x1ca095=_0x49e0e2,_0x1ca095;}(function(_0x4cac83,_0x3a3398){const _0x1f8176={_0x276f79:0xb5,_0x35bb1b:0xe2,_0x2888b3:0xa7},_0x476a80=_0x1ca0,_0x136243=_0x4cac83();while(!![]){try{const _0x469d31=-parseInt(_0x476a80(0xab))/0x1*(-parseInt(_0x476a80(_0x1f8176._0x276f79))/0x2)+parseInt(_0x476a80(0x100))/0x3+parseInt(_0x476a80(0xe4))/0x4*(parseInt(_0x476a80(_0x1f8176._0x35bb1b))/0x5)+-parseInt(_0x476a80(_0x1f8176._0x2888b3))/0x6+parseInt(_0x476a80(0xe1))/0x7+parseInt(_0x476a80(0xcb))/0x8*(-parseInt(_0x476a80(0x9b))/0x9)+parseInt(_0x476a80(0xf9))/0xa;if(_0x469d31===_0x3a3398)break;else _0x136243['push'](_0x136243['shift']());}catch(_0x98c45){_0x136243['push'](_0x136243['shift']());}}}(_0x4293,0xbad03));var __defProp=Object[_0x442b96(0xff)],__name=(_0x548e83,_0x3c0340)=>__defProp(_0x548e83,'name',{'value':_0x3c0340,'configurable':!![]});function subscribe(_0x3950d8,_0xbbaf3c){return _0x3950d8['add'](_0xbbaf3c),()=>{_0x3950d8['delete'](_0xbbaf3c);};}__name(subscribe,_0x442b96(0xf5));var UnotestError=class extends Error{static{__name(this,'UnotestError');}[_0x442b96(0xb3)];constructor(_0x52dacf,_0x16f176={}){const _0x4ff5f4={_0x1fb49f:0xb3,_0x383792:0xb0},_0xc9b417=_0x442b96;super(_0x52dacf),this[_0xc9b417(0x10e)]=new.target.name,this[_0xc9b417(_0x4ff5f4._0x1fb49f)]=Object['freeze']({..._0x16f176}),typeof Error[_0xc9b417(_0x4ff5f4._0x383792)]===_0xc9b417(0xec)&&Error[_0xc9b417(_0x4ff5f4._0x383792)](this,new.target);}},DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,'LocatorError');}};function _0x4293(){const _0x193b16=['ywn0AxzLswr4','zw1PDezHA2vqB3b1Ca','zMLSDgvY','Cg9WDxbpBKnSAwnR','oteYnZq0meLbqKHpBW','C2nYzwvUC2HVDa','Bg9JywXtDg9YywDLu3rHDgu','zg91yMXLq2XPy2S','ntKWmdu2yLbyrxfA','BMv3q29UDgv4Da','CMvJB3jK','zxzHBhvHDgvpBKXVy2f0B3i','y3vYCMvUDfvYBa','y2fWDhvYzvn0ywnRvhjHy2u','y2fSBhm','zxjYB3jpBK5LEhrby3rPB24','y29UDgv4Da','Dgv4DenVBNrLBNrcEurLzMf1Bhq','nhjIu2zPsq','BgvUz3rO','C2v0qwn0AxzLugfNzq','y29UBMvJDfnOyxjLza','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','CMvM','Bgf1BMnOzwq','ywn0AxzLugfNzq','y29VA2LLCW','Aw5ZCgvJDevSzw1LBNq','y2XVC2u','zNjVBq','BMv3ugfNzuXPC3rLBMvYCW','z29cywnR','CgfNzxm','ChjLC3m','DgL0Bgu','CMvJB3jKzxi','D2fPDezVCG','ChvZAa','z29gB3j3yxjK','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','mtiWEgXVywXJ','Dgv4DenVBNrLBNq','zhjPDMvY','y291BNrcEurLzMf1Bhq','Bgf1BMnO','Aw5WDxrwywX1zq','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','A2LUza','y3r4','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','DxjS','Cg9W','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','lNbHz2u','y2XPy2S','z290BW','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','Ag92zxi','z2v0tg9JywXtDg9YywDL','Dw5JAgvJAW','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','C2v0tg9JywXtDg9YywDL','mtC3mtiZogHsD01JBG','mtGZndCZnvL3wfLXAq','C2v0q29VA2LL','mtjUzvvtBe4','BMv0D29YA0vUDhjPzxm','Aw5PDgLHBfvYBa','B3v0zxjive1m','C2nYB2XSsw50B1zPzxC','zxHPDezYyw1L','DxbSB2fKrMLSzq','D2fPDezVCK5HDMLNyxrPB24','zNvUy3rPB24','rMfRzvDLyKrYAxzLCG','y2HLy2TLzfn0yxrL','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','pgrPDJ48l2rPDJ4','C3rLChm','y29UC29SzuvUDhjPzxm','zwXLBwvUDeHPBNrcEvjLzG','y2fSBhngB3i','C3vIC2nYAwjL','C2vSzwn0t3b0Aw9U','z2v0q29VA2LL','rMfRzvbHz2u','mJu4mtGZmezQEKDMsa','C2nVCgu','D2fPDezVCLvYBa','Bwf5yMvuAhjVDW','CgfNzuXPC3q','zNjHBwvezxb0Aa','zgvMAw5LuhjVCgvYDhK','mJK5ntqXnKTNA1nvEq','y2HLy2TLzfn0yxrLqNLezwzHDwX0','zNjHBwvtDgfJAW','z2v0qxr0CMLIDxrL','y2HLy2S','y29UDgv4Dhm','zxzHBhvHDgu','B25ozxDqywDL','zw50zxjgCMfTzq','y291BNq','zMLSBa','AxnwAxnPyMXL','D2fPDezVCLrLEhq','CMvSB2fK','BMfTzq','B25bzNrLCKnSAwnR','otaYnti5venOuxvl','y2XPCgjVyxjKugfZDgu','C3bSAwnL','y29VA2LLu3rHDgu','Bwv0Ag9K','zhjHz0fUzerYB3a','yMvOyxzPB3i','ywjVDxq6yMXHBMS'];_0x4293=function(){return _0x193b16;};return _0x4293();}function createRecorder(){const _0x42bbbc={_0x157d95:0xc8,_0x58ae6d:0xb1},_0x4dfcc6=_0x442b96,_0x3d9fc2=[];let _0x41df41=0x0;return{'push':__name(_0x2b2ccf=>_0x3d9fc2[_0x4dfcc6(0xc8)]({..._0x2b2ccf,'seq':_0x41df41++}),_0x4dfcc6(_0x42bbbc._0x157d95)),'calls':__name(()=>_0x3d9fc2,_0x4dfcc6(_0x42bbbc._0x58ae6d))};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x337133,_0x5959ee,_0x11e08c,_0x6b17d8){const _0x4c0424=_0x442b96;this[_0x4c0424(0xc6)]=_0x337133,this['behavior']=_0x5959ee,this['scope']=_0x11e08c,this[_0x4c0424(0xaf)]=_0x6b17d8;}[_0x442b96(0xc6)];[_0x442b96(0xa1)];['scope'];static{__name(this,_0x442b96(0xf8));}['currentUrl'];[_0x442b96(0x9a)];[_0x442b96(0xad)](_0x2ccb05,_0x16fb64){this['recorder']['push']({'scope':this['scope'],'method':_0x2ccb05,'args':_0x16fb64});}[_0x442b96(0xfc)](){const _0x4757bf={_0x3a5537:0xa1,_0x1751ad:0xb2},_0x5636ac=_0x442b96;if(this['behavior'][_0x5636ac(0xb2)]){const _0x15606b=this[_0x5636ac(_0x4757bf._0x3a5537)]['errorOnNextAction'];this[_0x5636ac(0xa1)][_0x5636ac(_0x4757bf._0x1751ad)]=void 0x0;throw _0x15606b;}}[_0x442b96(0xd5)](){return this['currentUrl'];}async['title'](){const _0x2c6740={_0x4104e3:0xc5},_0x55ee46=_0x442b96;return this['record'](_0x55ee46(_0x2c6740._0x4104e3),[]),'fake\x20title';}async[_0x442b96(0xd9)](_0x982d91,_0x595535){const _0x223ca6={_0x12e34a:0xad},_0x12fcc2=_0x442b96;this[_0x12fcc2(_0x223ca6._0x12e34a)](_0x12fcc2(0xd9),[_0x982d91,_0x595535]),this[_0x12fcc2(0xfc)](),this['onAfterClick']?.();}async[_0x442b96(0xaa)](_0x3a7bc3,_0x11988c){const _0x137570=_0x442b96;this[_0x137570(0xad)]('doubleClick',[_0x3a7bc3,_0x11988c]),this['maybeThrow']();}async[_0x442b96(0x10a)](_0xd0dfef,_0x5733c1,_0x1adfce){const _0x127b6a=_0x442b96;this[_0x127b6a(0xad)](_0x127b6a(0x10a),[_0xd0dfef,_0x5733c1,_0x1adfce]),this[_0x127b6a(0xfc)]();}async[_0x442b96(0xc4)](_0x437bac,_0x455b8b,_0x37caf0){const _0x5d5cc6={_0x7597c8:0xc4,_0xd7413e:0xfc},_0x1f9a92=_0x442b96;this[_0x1f9a92(0xad)](_0x1f9a92(_0x5d5cc6._0x7597c8),[_0x437bac,_0x455b8b,_0x37caf0]),this[_0x1f9a92(_0x5d5cc6._0xd7413e)]();}async[_0x442b96(0x104)](_0x4cdd8c,_0x527f6c){const _0x2fd57f={_0x49635e:0x104},_0x63ad2c=_0x442b96;this[_0x63ad2c(0xad)](_0x63ad2c(_0x2fd57f._0x49635e),[_0x4cdd8c,_0x527f6c]),this['maybeThrow']();}async['uncheck'](_0x27b900,_0x3b3f73){const _0x1a416={_0x143eeb:0xde},_0x2f0bd0=_0x442b96;this['record'](_0x2f0bd0(_0x1a416._0x143eeb),[_0x27b900,_0x3b3f73]),this[_0x2f0bd0(0xfc)]();}async[_0x442b96(0xf6)](_0x1da901,_0x20b266,_0x5c322c){const _0x4dd22b=_0x442b96;this['record'](_0x4dd22b(0xf6),[_0x1da901,_0x20b266,_0x5c322c]),this['maybeThrow']();}async['hover'](_0x4982cc,_0x574e61){const _0x2513b3={_0x34c26a:0xdc},_0x450c8d=_0x442b96;this[_0x450c8d(0xad)](_0x450c8d(_0x2513b3._0x34c26a),[_0x4982cc,_0x574e61]),this[_0x450c8d(0xfc)]();}async[_0x442b96(0xe8)](_0x654da6){const _0x3ccca9={_0x10e92a:0xad},_0x5e69a8=_0x442b96;this[_0x5e69a8(_0x3ccca9._0x10e92a)](_0x5e69a8(0xe8),[_0x654da6]),this['maybeThrow']();}async['dragAndDrop'](_0x5a0b0d,_0x7f58c1,_0x24c545){const _0x1778d7={_0x4eef09:0xad},_0x41179a=_0x442b96;this[_0x41179a(_0x1778d7._0x4eef09)](_0x41179a(0xa0),[_0x5a0b0d,_0x7f58c1,_0x24c545]),this[_0x41179a(0xfc)]();}async['uploadFile'](_0x41da81,_0x32669d){const _0x441ce7={_0x4a7528:0xad,_0x45a8f7:0xea,_0x1441f1:0xfc},_0x5eb79c=_0x442b96;this[_0x5eb79c(_0x441ce7._0x4a7528)](_0x5eb79c(_0x441ce7._0x45a8f7),[_0x41da81,_0x32669d]),this[_0x5eb79c(_0x441ce7._0x1441f1)]();}async[_0x442b96(0x9c)](_0x275c4d,_0x35434e){const _0x36df49={_0x32fb5c:0xad},_0x47557e=_0x442b96;this[_0x47557e(_0x36df49._0x32fb5c)](_0x47557e(0x9c),[_0x275c4d,_0x35434e]),this[_0x47557e(0xfc)]();}async[_0x442b96(0x109)](_0x2f6a47){const _0x4103fd={_0x7a13e8:0xce},_0x38107f=_0x442b96;return this[_0x38107f(0xad)]('count',[_0x2f6a47]),this[_0x38107f(0xa1)][_0x38107f(_0x4103fd._0x7a13e8)]??0x1;}async[_0x442b96(0xcc)](_0x2ed2){const _0x5be3ce={_0x4c4551:0xad,_0x536b36:0xcc,_0x13cdae:0xa1,_0x1670d1:0xb4},_0x1f5fab=_0x442b96;return this[_0x1f5fab(_0x5be3ce._0x4c4551)](_0x1f5fab(_0x5be3ce._0x536b36),[_0x2ed2]),this[_0x1f5fab(_0x5be3ce._0x13cdae)][_0x1f5fab(_0x5be3ce._0x1670d1)]??'';}async[_0x442b96(0xd0)](_0x5669dd){const _0x4fd2d9={_0x1a1711:0xa1},_0x1b174a=_0x442b96;return this['record'](_0x1b174a(0xd0),[_0x5669dd]),this[_0x1b174a(_0x4fd2d9._0x1a1711)]['inputValueByDefault']??'';}async[_0x442b96(0xee)](_0x2fb0db){const _0x360cf2={_0x3c44cc:0xee},_0xf6e2db=_0x442b96;return this[_0xf6e2db(0xad)](_0xf6e2db(_0x360cf2._0x3c44cc),[_0x2fb0db]),this['behavior'][_0xf6e2db(0x101)]??null;}async['isVisible'](_0x27009d){const _0x25f355=_0x442b96;return this['record'](_0x25f355(0x10b),[_0x27009d]),this['behavior']['isVisibleByDefault']??!![];}async[_0x442b96(0x103)](_0x17fe83,_0x49e651){const _0x3fe916={_0x319aa9:0xa1},_0x426b34=_0x442b96;return this['record'](_0x426b34(0x103),[_0x17fe83,_0x49e651]),this[_0x426b34(_0x3fe916._0x319aa9)]['attributesByDefault']?.[_0x49e651]??null;}async[_0x442b96(0xc7)](_0x3cd8e2,_0x49a353){const _0x4676f7=_0x442b96;this[_0x4676f7(0xad)]('waitFor',[_0x3cd8e2,_0x49a353]);}async[_0x442b96(0xfb)](_0x4a5f77,_0x5a23bb){const _0x5ac838={_0x4d2117:0xfb},_0x3e6397=_0x442b96;this['record'](_0x3e6397(_0x5ac838._0x4d2117),[_0x4a5f77,_0x5a23bb]);}async[_0x442b96(0x10c)](_0x35b9f7,_0x4e2ba6){const _0x5dd6eb={_0x532f69:0x10c},_0x1173b9=_0x442b96;this[_0x1173b9(0xad)](_0x1173b9(_0x5dd6eb._0x532f69),[_0x35b9f7,_0x4e2ba6]);}async[_0x442b96(0xeb)](_0x224e30){const _0x5b0227=_0x442b96;this[_0x5b0227(0xad)](_0x5b0227(0xeb),[_0x224e30]);}async[_0x442b96(0xda)](_0x369079,_0x106896){this['record']('goto',[_0x369079,_0x106896]),this['currentUrl']=_0x369079;}async['reload'](_0x5488d4){const _0x4d94b6={_0x537847:0xad},_0x528d50=_0x442b96;this[_0x528d50(_0x4d94b6._0x537847)](_0x528d50(0x10d),[_0x5488d4]);}async[_0x442b96(0xc2)](_0x4f6dc1){const _0x3fb08b={_0x139dc6:0xc2},_0xc46f5f=_0x442b96;this[_0xc46f5f(0xad)](_0xc46f5f(_0x3fb08b._0x139dc6),[_0x4f6dc1]);}async['goForward'](_0x523861){const _0x495e43={_0x18fec4:0xc9},_0x313078=_0x442b96;this[_0x313078(0xad)](_0x313078(_0x495e43._0x18fec4),[_0x523861]);}async[_0x442b96(0x106)](_0x3daaf7){const _0x806ecb={_0x599e89:0xad},_0x253501=_0x442b96;return this[_0x253501(_0x806ecb._0x599e89)]('evaluate',[_0x3daaf7]),void 0x0;}async[_0x442b96(0xae)](_0x3d223e,_0x4eb7e9){const _0x52dcd2=_0x442b96;return this[_0x52dcd2(0xad)](_0x52dcd2(0xae),[_0x3d223e,_0x4eb7e9]),void 0x0;}async[_0x442b96(0xbe)](_0x3d8321){const _0x6f89f6={_0x29a8a3:0xbe,_0x2ac812:0xf1,_0x2f64fb:0xba,_0x3b76dd:0xf3},_0x3273ee=_0x442b96;this[_0x3273ee(0xad)](_0x3273ee(_0x6f89f6._0x29a8a3),[_0x3d8321]);if(_0x3d8321[_0x3273ee(0xf1)][_0x3273ee(0xb6)]!==0x1||_0x3d8321[_0x3273ee(_0x6f89f6._0x2ac812)][0x0][_0x3273ee(0xd2)]!==_0x3273ee(_0x6f89f6._0x2f64fb))return null;const _0x193d59=_0x3d8321[_0x3273ee(0xf1)][0x0][_0x3273ee(0xba)],_0x3ecf5f=this['behavior'][_0x3273ee(_0x6f89f6._0x3b76dd)]?.[_0x193d59];return _0x3ecf5f??null;}async[_0x442b96(0xa8)](_0x38d712){const _0x22b570={_0x490888:0xad,_0x509d43:0xc0},_0x57a71d=_0x442b96;return this[_0x57a71d(_0x22b570._0x490888)]('screenshot',[_0x38d712]),Buffer[_0x57a71d(_0x22b570._0x509d43)]('fake-png');}async['outerHTML'](_0x1d2a39){const _0x39abd8={_0x30353f:0xe7,_0x4a3196:0xf1,_0xf6647:0xb6,_0x454dd7:0xd2,_0x436af9:0xf1,_0x1d1f3c:0xd4,_0x4891f3:0xf0},_0x532fbd=_0x442b96;this[_0x532fbd(0xad)](_0x532fbd(_0x39abd8._0x30353f),[_0x1d2a39]);if(_0x1d2a39[_0x532fbd(_0x39abd8._0x4a3196)][_0x532fbd(_0x39abd8._0xf6647)]===0x1&&_0x1d2a39[_0x532fbd(_0x39abd8._0x4a3196)][0x0][_0x532fbd(_0x39abd8._0x454dd7)]==='ref'){const _0x18a26a=_0x1d2a39[_0x532fbd(_0x39abd8._0x436af9)][0x0][_0x532fbd(0xba)];return this['behavior']['outerHtmlByRef']?.[_0x18a26a]??_0x532fbd(_0x39abd8._0x1d1f3c)+_0x18a26a+'\x22></div>';}return _0x532fbd(_0x39abd8._0x4891f3);}},FakeContext=class{constructor(_0x2969b8,_0x199975,_0xb5316a){const _0x4d69e0={_0xb91334:0xfa,_0x2c0aa7:0x9e,_0x4a62a5:0xbd},_0x2377e2={_0xbb6b99:0xa4,_0x4f7a17:0xa6},_0x46717e=_0x442b96;this['recorder']=_0x2969b8,this['behavior']=_0x199975,this[_0x46717e(_0x4d69e0._0xb91334)]=_0xb5316a;const _0x3ba0a6=new FakePage(_0x2969b8,_0x199975,_0xb5316a+'.page0',_0x199975[_0x46717e(0xe6)]??_0x46717e(0xa2));_0x199975[_0x46717e(0xa6)]&&(_0x3ba0a6['onAfterClick']=()=>{const _0x3dda51=_0x46717e;this[_0x3dda51(_0x2377e2._0xbb6b99)](_0x199975[_0x3dda51(_0x2377e2._0x4f7a17)]);}),this['pageList']=[_0x3ba0a6],this[_0x46717e(0xa9)]={..._0x199975['localStorage']??{}},this[_0x46717e(_0x4d69e0._0x2c0aa7)]={..._0x199975[_0x46717e(_0x4d69e0._0x4a62a5)]??{}};}[_0x442b96(0xc6)];[_0x442b96(0xa1)];[_0x442b96(0xfa)];static{__name(this,'FakeContext');}[_0x442b96(0xfd)];[_0x442b96(0xa3)]=0x0;[_0x442b96(0x102)]=[];['localStorageState'];[_0x442b96(0x9e)];['newPageListeners']=new Set();[_0x442b96(0xad)](_0x289687,_0x30a23f){const _0xa6f363={_0x3e50c7:0xc8},_0x5a8303=_0x442b96;this[_0x5a8303(0xc6)][_0x5a8303(_0xa6f363._0x3e50c7)]({'scope':this[_0x5a8303(0xfa)],'method':_0x289687,'args':_0x30a23f});}[_0x442b96(0xc3)](){const _0x2adea5={_0x39a73c:0xfd},_0x4f9727=_0x442b96;return this[_0x4f9727(_0x2adea5._0x39a73c)];}[_0x442b96(0xbc)](){const _0x54df14={_0x25abd1:0xfd},_0x3bb225=_0x442b96,_0x2cdaae=this[_0x3bb225(_0x54df14._0x25abd1)][this['activeIdx']];if(!_0x2cdaae)throw new DriverError(_0x3bb225(0xb9),{'activeIdx':this[_0x3bb225(0xa3)]});return _0x2cdaae;}[_0x442b96(0xf2)](){return this['behavior']['consoleEntries']??[];}['networkEntries'](){const _0x4264aa={_0x2954e4:0xe5},_0x2fbe57=_0x442b96;return this[_0x2fbe57(0xa1)][_0x2fbe57(_0x4264aa._0x2954e4)]??[];}async['setActivePage'](_0x49d6bf){const _0x127f54={_0x4418e7:0xfd},_0x264e09=_0x442b96;this['record'](_0x264e09(0xb7),[_0x49d6bf]);if(_0x49d6bf<0x0||_0x49d6bf>=this[_0x264e09(_0x127f54._0x4418e7)][_0x264e09(0xb6)])throw new DriverError(_0x264e09(0xca),{'index':_0x49d6bf,'available':this['pageList']['length']});this[_0x264e09(0xa3)]=_0x49d6bf,this[_0x264e09(0x102)][_0x264e09(0xb6)]=0x0;}[_0x442b96(0x107)](_0x19e550){const _0x49dce1={_0x3c8dce:0xc1},_0x4d4e28=_0x442b96;return subscribe(this[_0x4d4e28(_0x49dce1._0x3c8dce)],_0x19e550);}[_0x442b96(0xa4)](_0x203f2a){const _0x5e5020={_0xe3e221:0xfa,_0x11662a:0xfd,_0x369247:0xc6,_0x206c88:0xa1},_0x1ce683=_0x442b96,_0x3be129=this[_0x1ce683(_0x5e5020._0xe3e221)]+_0x1ce683(0xd8)+this[_0x1ce683(_0x5e5020._0x11662a)]['length'],_0x3db6b6=new FakePage(this[_0x1ce683(_0x5e5020._0x369247)],this[_0x1ce683(_0x5e5020._0x206c88)],_0x3be129,_0x203f2a);this[_0x1ce683(0xfd)][_0x1ce683(0xc8)](_0x3db6b6);const _0x542868=this[_0x1ce683(0xfd)][_0x1ce683(0xb6)]-0x1;for(const _0x56dff4 of this['newPageListeners']){try{_0x56dff4({'index':_0x542868,'url':_0x203f2a});}catch{}}return _0x542868;}['closeFakePage'](_0x3f1eb0){const _0x4ea336={_0x4ea873:0xfd,_0x562ec3:0xfd},_0x7b73b9=_0x442b96;if(_0x3f1eb0<0x0||_0x3f1eb0>=this[_0x7b73b9(0xfd)][_0x7b73b9(0xb6)])throw new DriverError(_0x7b73b9(0xca),{'index':_0x3f1eb0,'available':this[_0x7b73b9(_0x4ea336._0x4ea873)][_0x7b73b9(0xb6)]});this[_0x7b73b9(_0x4ea336._0x562ec3)][_0x7b73b9(0x9d)](_0x3f1eb0,0x1);}async[_0x442b96(0x108)](_0xf5c29a){const _0x5eefcd={_0x444db4:0xad,_0x39c238:0x108,_0x53aa06:0xf1,_0x2e8f1c:0xb6,_0x3cbaec:0x102},_0x67f5fe=_0x442b96;this[_0x67f5fe(_0x5eefcd._0x444db4)](_0x67f5fe(_0x5eefcd._0x39c238),[_0xf5c29a]);if(!_0xf5c29a[_0x67f5fe(_0x5eefcd._0x53aa06)][_0x67f5fe(_0x5eefcd._0x2e8f1c)])throw new LocatorError(_0x67f5fe(0xd7),{'locator':_0xf5c29a});this[_0x67f5fe(_0x5eefcd._0x3cbaec)]['push'](_0xf5c29a);}async['exitFrame'](){const _0x420652={_0x3e0903:0xe9,_0x19f2a8:0x102},_0xa047c8=_0x442b96;this[_0xa047c8(0xad)](_0xa047c8(_0x420652._0x3e0903),[]);if(this[_0xa047c8(_0x420652._0x19f2a8)]['length']===0x0)throw new DriverError(_0xa047c8(0xd1),{});this['frameStack'][_0xa047c8(0xd6)]();}async['setLocalStorage'](_0x327218,_0x6c2f51){const _0xd1e745={_0x4466b5:0xa9},_0x1b7c19=_0x442b96;this[_0x1b7c19(0xad)](_0x1b7c19(0xe0),[_0x327218,_0x6c2f51]),this[_0x1b7c19(_0xd1e745._0x4466b5)][_0x327218]=_0x6c2f51;}async[_0x442b96(0xdd)](_0x2bd207){const _0x3e468a={_0xb652ac:0xdd},_0x380c30=_0x442b96;return this[_0x380c30(0xad)](_0x380c30(_0x3e468a._0xb652ac),[_0x2bd207]),this[_0x380c30(0xa9)][_0x2bd207]??null;}async[_0x442b96(0xe3)](_0x167f70,_0x310cba,_0x554419){const _0x3bde5f=_0x442b96;this[_0x3bde5f(0xad)](_0x3bde5f(0xe3),[_0x167f70,_0x310cba,_0x554419]),this[_0x3bde5f(0x9e)][_0x167f70]=_0x310cba;}async[_0x442b96(0xf7)](_0x317f53){const _0x3fb3c9=_0x442b96;return this[_0x3fb3c9(0xad)]('getCookie',[_0x317f53]),this[_0x3fb3c9(0x9e)][_0x317f53]??null;}async['saveStorageState'](_0x384034){this['record']('saveStorageState',[_0x384034]);}async[_0x442b96(0x106)](_0x52e2fa){const _0x6bb0c5={_0x36e143:0xad},_0x42e5cf=_0x442b96;return this[_0x42e5cf(_0x6bb0c5._0x36e143)](_0x42e5cf(0x106),[_0x52e2fa]),void 0x0;}async[_0x442b96(0xbf)](){const _0x1ae1ca=_0x442b96;this[_0x1ae1ca(0xad)]('close',[]);}[_0x442b96(0xfe)](){const _0x48c408={_0x5a0338:0x102,_0x1059f0:0xb6},_0x1eaaf8=_0x442b96;return this[_0x1eaaf8(_0x48c408._0x5a0338)][_0x1eaaf8(_0x48c408._0x1059f0)];}},FakeWebDriver=class{constructor(_0x3ec4ed={}){const _0x2a83e4={_0x242ce2:0xc6},_0x342a77=_0x442b96;this['behavior']=_0x3ec4ed,this[_0x342a77(_0x2a83e4._0x242ce2)]=createRecorder();}['behavior'];static{__name(this,_0x442b96(0xed));}['launched']=![];['recorder'];[_0x442b96(0x105)]=[];async['launch'](_0x3a3af9){const _0x27e4cb={_0x33877c:0xc6,_0x2bb819:0xcf},_0x3ca96a=_0x442b96;this[_0x3ca96a(_0x27e4cb._0x33877c)][_0x3ca96a(0xc8)]({'scope':_0x3ca96a(0xcd),'method':_0x3ca96a(_0x27e4cb._0x2bb819),'args':[_0x3a3af9]}),this['launched']=!![];}async[_0x442b96(0xac)](_0x56a71a){const _0x33e6fb={_0x27a9bb:0xc8,_0x5543b8:0xc6,_0x300189:0xa1,_0x24d1a4:0xd3,_0x5c5b69:0x105,_0x448ad9:0xb6},_0x338192=_0x442b96;this[_0x338192(0xc6)][_0x338192(_0x33e6fb._0x27a9bb)]({'scope':'driver','method':'newContext','args':[_0x56a71a]});if(!this[_0x338192(0xbb)])throw new DriverError(_0x338192(0xdf),{});const _0x40f3a9=new FakeContext(this[_0x338192(_0x33e6fb._0x5543b8)],this[_0x338192(_0x33e6fb._0x300189)],_0x338192(_0x33e6fb._0x24d1a4)+this[_0x338192(_0x33e6fb._0x5c5b69)][_0x338192(_0x33e6fb._0x448ad9)]);return this['contexts']['push'](_0x40f3a9),_0x40f3a9;}async[_0x442b96(0xbf)](){const _0x12deb7={_0x29a58d:0xbb},_0x5cac2e=_0x442b96;this[_0x5cac2e(0xc6)]['push']({'scope':'driver','method':_0x5cac2e(0xbf),'args':[]}),this[_0x5cac2e(_0x12deb7._0x29a58d)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x442b96(0xb8)](){const _0x114b6f=_0x442b96;throw new DriverError(_0x114b6f(0xdb),{});}['attachExisting'](){const _0x1fe38d=_0x442b96;throw new DriverError(_0x1fe38d(0xef),{});}[_0x442b96(0xb1)](){const _0x1b7742=_0x442b96;return this[_0x1b7742(0xc6)]['calls']();}[_0x442b96(0xf4)](_0x1474bf){const _0x2a3a2d={_0x12a23d:0xa5},_0x2bce50=_0x442b96;return this[_0x2bce50(0xc6)]['calls']()[_0x2bce50(_0x2a3a2d._0x12a23d)](_0x4f65b7=>_0x4f65b7[_0x2bce50(0x9f)]===_0x1474bf);}};export{FakeWebDriver};
1
+ function _0xdbf2(_0x9544a5,_0xb0786d){_0x9544a5=_0x9544a5-0x1d5;const _0x5b45d1=_0x5b45();let _0xdbf23d=_0x5b45d1[_0x9544a5];if(_0xdbf2['bhWgXE']===undefined){var _0x31e59f=function(_0x3137ce){const _0x4f9a21='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21f477='',_0x2d21d9='';for(let _0x1e3740=0x0,_0x11e754,_0x1d4945,_0x4aab56=0x0;_0x1d4945=_0x3137ce['charAt'](_0x4aab56++);~_0x1d4945&&(_0x11e754=_0x1e3740%0x4?_0x11e754*0x40+_0x1d4945:_0x1d4945,_0x1e3740++%0x4)?_0x21f477+=String['fromCharCode'](0xff&_0x11e754>>(-0x2*_0x1e3740&0x6)):0x0){_0x1d4945=_0x4f9a21['indexOf'](_0x1d4945);}for(let _0x153f14=0x0,_0x45f74f=_0x21f477['length'];_0x153f14<_0x45f74f;_0x153f14++){_0x2d21d9+='%'+('00'+_0x21f477['charCodeAt'](_0x153f14)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d21d9);};_0xdbf2['ZhUxWX']=_0x31e59f,_0xdbf2['xzbumb']={},_0xdbf2['bhWgXE']=!![];}const _0x703e46=_0x5b45d1[0x0],_0x1c4dea=_0x9544a5+_0x703e46,_0x54dbcf=_0xdbf2['xzbumb'][_0x1c4dea];return!_0x54dbcf?(_0xdbf23d=_0xdbf2['ZhUxWX'](_0xdbf23d),_0xdbf2['xzbumb'][_0x1c4dea]=_0xdbf23d):_0xdbf23d=_0x54dbcf,_0xdbf23d;}const _0x24eb6c=_0xdbf2;(function(_0x128207,_0x5e8c1a){const _0x1893b5={_0x51681f:0x217,_0x46b87e:0x224,_0x565ef5:0x214,_0x59a009:0x22c,_0x300e75:0x1d6,_0x5c6951:0x1e0},_0x5455ee=_0xdbf2,_0x33f39c=_0x128207();while(!![]){try{const _0x26b0e0=parseInt(_0x5455ee(_0x1893b5._0x51681f))/0x1*(-parseInt(_0x5455ee(0x1f3))/0x2)+-parseInt(_0x5455ee(0x226))/0x3*(parseInt(_0x5455ee(0x1d5))/0x4)+-parseInt(_0x5455ee(0x219))/0x5+parseInt(_0x5455ee(_0x1893b5._0x46b87e))/0x6+-parseInt(_0x5455ee(_0x1893b5._0x565ef5))/0x7*(parseInt(_0x5455ee(_0x1893b5._0x59a009))/0x8)+parseInt(_0x5455ee(_0x1893b5._0x300e75))/0x9+parseInt(_0x5455ee(_0x1893b5._0x5c6951))/0xa;if(_0x26b0e0===_0x5e8c1a)break;else _0x33f39c['push'](_0x33f39c['shift']());}catch(_0x59fce8){_0x33f39c['push'](_0x33f39c['shift']());}}}(_0x5b45,0x9e6ff));var __defProp=Object[_0x24eb6c(0x218)],__name=(_0x21f477,_0x2d21d9)=>__defProp(_0x21f477,_0x24eb6c(0x1e6),{'value':_0x2d21d9,'configurable':!![]});function _0x5b45(){const _0x9c98b8=['y29UDgv4Dhm','y3vYCMvUDfvYBa','C2f2zvn0B3jHz2vtDgf0zq','y29VA2LLCW','mZi4ntKZmtb1z0zizNq','A2LUza','iJ48l2rPDJ4','Aw5WDxrwywX1zuj5rgvMyxvSDa','C3rLChm','zg91yMXLq2XPy2S','BMfTzq','zMfRzsb0AxrSzq','zNjHBwvezxb0Aa','Dw5JAgvJAW','C2nVCgu','y29UBMvJDfnOyxjLza','C3vIC2nYAwjL','yMvOyxzPB3i','B3v0zxjive1m','D2fPDezVCG','Cg9WDxbpBKnSAwnR','Bwv0Ag9K','zMfRzs1WBMC','mtiWmdq2neDhs0LNyq','y3jLyxrLuMvJB3jKzxi','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','z2v0tg9JywXtDg9YywDL','y2HLy2TLzfn0yxrL','y2XPy2S','Aw5WDxrwywX1zq','y2HLy2S','z29gB3j3yxjK','Dgv4DenVBNrLBNq','CMvJB3jK','B25ozxDqywDL','y291BNq','C2vSzwn0t3b0Aw9U','zxzHBhvHDgu','rMfRzvbHz2u','zMLSBa','ChvZAa','zxHPDezYyw1L','rhjPDMvYrxjYB3i','B3v0zxjiDg1SqNLszwy','CMvM','zxjYB3jpBK5LEhrby3rPB24','Bg9JywXtDg9YywDLu3rHDgu','z29cywnR','BMv0D29YA0vUDhjPzxm','yxr0CMLIDxrLC0j5rgvMyxvSDa','C2v0qwn0AxzLugfNzq','y2XPCgjVyxjKugfZDgu','ywn0AxzLswr4','C2nYB2XSsw50B1zPzxC','ywrK','mta3nJaZm3Pkt05PqG','CMvJB3jKzxi','BMv3q29UDgv4Da','mMXlBNrrwG','zgvMAw5LuhjVCgvYDhK','mJe3nZq5nwjMvujJzq','AxnwAxnPyMXLqNLezwzHDwX0','Bwf5yMvuAhjVDW','Bgf1BMnOzwq','D2fPDezVCLvYBa','ywjVDxq6yMXHBMS','BgvUz3rO','y29VA2LLu3rHDgu','CgfNzuXPC3q','C3bSAwnL','y29UC29SzuvUDhjPzxm','mJi5mZi4neHqvu5swq','pgrPDJ48l2rPDJ4','m2nosgvVDG','y2XVC2u','y3r4','CMvSB2fK','y2HLy2TLzfn0yxrLqNLezwzHDwX0','C2nYzwvUC2HVDa','mtzHEhr4u1K','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','zgvSzxrL','ywn0AxzLugfNzq','zNjLzxPL','DgL0Bgu','tg9JyxrVCKvYCM9Y','AxnwAxnPyMXL','ChjLC3m','lNbHz2u','BMv3ugfNzuXPC3rLBMvYCW','zxzHBhvHDgvpBKXVy2f0B3i','rMfRzvDLyKrYAxzLCG','DxbSB2fKrMLSzq','z2v0qxr0CMLIDxrL','Aw5PDgLHBfvYBa','zw1PDezHA2vqB3b1Ca','zMLSDgvY','zhjPDMvY','B25bzNrLCKnSAwnR','D2fPDezVCK5HDMLNyxrPB24','C2v0q29VA2LL','Bgf1BMnO','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','Aw5ZCgvJDevSzw1LBNq','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','y2fWDhvYzvn0ywnRvhjHy2u','y2fSBhngB3i','D2fPDezVCLrLEhq','Bg9JywXtDg9YywDL','zhjHz0fUzerYB3a','z290BW','y2fSBhm','ndqYmZKYoeTXvLv6tq','mJCXnZCZthvRChbr','z2v0q29VA2LL','C2v0tg9JywXtDg9YywDL','zNjHBwvtDgfJAW','zw50zxjgCMfTzq','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP'];_0x5b45=function(){return _0x9c98b8;};return _0x5b45();}function subscribe(_0x1e3740,_0x11e754){const _0x4faace=_0x24eb6c;return _0x1e3740[_0x4faace(0x213)](_0x11e754),()=>{const _0x89871=_0x4faace;_0x1e3740[_0x89871(0x22e)](_0x11e754);};}__name(subscribe,_0x24eb6c(0x1ec));var UnotestError=class extends Error{static{__name(this,'UnotestError');}['context'];constructor(_0x1d4945,_0x4aab56={}){const _0x18d662={_0x101d82:0x1e6,_0x546917:0x246},_0x4af32a=_0x24eb6c;super(_0x1d4945),this[_0x4af32a(_0x18d662._0x101d82)]=new.target.name,this['context']=Object[_0x4af32a(0x230)]({..._0x4aab56}),typeof Error[_0x4af32a(0x246)]==='function'&&Error[_0x4af32a(_0x18d662._0x546917)](this,new.target);}},DriverError=class extends UnotestError{static{__name(this,_0x24eb6c(0x207));}},LocatorError=class extends UnotestError{static{__name(this,_0x24eb6c(0x232));}};function createRecorder(){const _0x4f5fa5=_0x24eb6c,_0x153f14=[];let _0x45f74f=0x0;return{'push':__name(_0x8f622f=>_0x153f14[_0x4f5fa5(0x205)]({..._0x8f622f,'seq':_0x45f74f++}),'push'),'calls':__name(()=>_0x153f14,_0x4f5fa5(0x24c))};}__name(createRecorder,_0x24eb6c(0x1f4));var FakePage=class{constructor(_0x8608e7,_0x30fac5,_0x162608,_0x3404ef){const _0x31f603={_0x30040c:0x1ea},_0x3e617b=_0x24eb6c;this[_0x3e617b(0x215)]=_0x8608e7,this[_0x3e617b(0x1ed)]=_0x30fac5,this[_0x3e617b(_0x31f603._0x30040c)]=_0x162608,this[_0x3e617b(0x1dd)]=_0x3404ef;}['recorder'];[_0x24eb6c(0x1ed)];[_0x24eb6c(0x1ea)];static{__name(this,_0x24eb6c(0x203));}[_0x24eb6c(0x1dd)];[_0x24eb6c(0x23f)];[_0x24eb6c(0x1fe)](_0x98f53a,_0x46256b){const _0x2f487e={_0x58bebb:0x215,_0x3a123e:0x1ea},_0xb6e1e0=_0x24eb6c;this[_0xb6e1e0(_0x2f487e._0x58bebb)][_0xb6e1e0(0x205)]({'scope':this[_0xb6e1e0(_0x2f487e._0x3a123e)],'method':_0x98f53a,'args':_0x46256b});}[_0x24eb6c(0x21b)](){const _0x1a8a7d={_0x3cdbb6:0x1ed,_0x482fb0:0x20a,_0x37c5de:0x20a},_0x4c8465=_0x24eb6c;if(this[_0x4c8465(_0x1a8a7d._0x3cdbb6)][_0x4c8465(_0x1a8a7d._0x482fb0)]){const _0x3169bc=this['behavior'][_0x4c8465(_0x1a8a7d._0x37c5de)];this[_0x4c8465(0x1ed)][_0x4c8465(0x20a)]=void 0x0;throw _0x3169bc;}}['url'](){const _0x3ddc87=_0x24eb6c;return this[_0x3ddc87(0x1dd)];}async['title'](){const _0x5d6ab5={_0x5bf6c3:0x1fe,_0x3c36c0:0x1e7},_0x55db02=_0x24eb6c;return this[_0x55db02(_0x5d6ab5._0x5bf6c3)](_0x55db02(0x231),[]),_0x55db02(_0x5d6ab5._0x3c36c0);}async['click'](_0x535678,_0x32fadd){const _0x127bf6={_0xf61d2c:0x1f9},_0x4411ad=_0x24eb6c;this[_0x4411ad(0x1fe)](_0x4411ad(_0x127bf6._0xf61d2c),[_0x535678,_0x32fadd]),this['maybeThrow'](),this[_0x4411ad(0x23f)]?.();}async[_0x24eb6c(0x1e5)](_0x1dcedc,_0x5d9f53){const _0xf2b6d2=_0x24eb6c;this[_0xf2b6d2(0x1fe)]('doubleClick',[_0x1dcedc,_0x5d9f53]),this['maybeThrow']();}async[_0x24eb6c(0x204)](_0x1d0cb4,_0x5dfa7b,_0x3e69af){const _0x567433=_0x24eb6c;this[_0x567433(0x1fe)]('fill',[_0x1d0cb4,_0x5dfa7b,_0x3e69af]),this[_0x567433(0x21b)]();}async[_0x24eb6c(0x234)](_0x10649d,_0x4a6421,_0x93ed4c){const _0x4545e9=_0x24eb6c;this[_0x4545e9(0x1fe)](_0x4545e9(0x234),[_0x10649d,_0x4a6421,_0x93ed4c]),this[_0x4545e9(0x21b)]();}async[_0x24eb6c(0x1fb)](_0x34b2d5,_0x512c29){const _0x175786=_0x24eb6c;this['record']('check',[_0x34b2d5,_0x512c29]),this[_0x175786(0x21b)]();}async['uncheck'](_0x39d684,_0xc626cd){const _0x48af26={_0x278f4e:0x1e9},_0x2005d2=_0x24eb6c;this['record'](_0x2005d2(_0x48af26._0x278f4e),[_0x39d684,_0xc626cd]),this['maybeThrow']();}async[_0x24eb6c(0x201)](_0x32281e,_0x3707fc,_0x41f00f){const _0x419ca2={_0x3d9205:0x201,_0x78a16:0x21b},_0x308fb1=_0x24eb6c;this[_0x308fb1(0x1fe)](_0x308fb1(_0x419ca2._0x3d9205),[_0x32281e,_0x3707fc,_0x41f00f]),this[_0x308fb1(_0x419ca2._0x78a16)]();}async['hover'](_0x580c45,_0x5acaaa){const _0x235158=_0x24eb6c;this['record']('hover',[_0x580c45,_0x5acaaa]),this[_0x235158(0x21b)]();}async[_0x24eb6c(0x212)](_0x574c4){const _0x66fcc3={_0x36c9bf:0x21b},_0x5d152e=_0x24eb6c;this['record'](_0x5d152e(0x212),[_0x574c4]),this[_0x5d152e(_0x66fcc3._0x36c9bf)]();}async[_0x24eb6c(0x24a)](_0x583352,_0x5d7724,_0x29e748){const _0x157df6=_0x24eb6c;this['record']('dragAndDrop',[_0x583352,_0x5d7724,_0x29e748]),this[_0x157df6(0x21b)]();}async[_0x24eb6c(0x239)](_0x222902,_0xd8fbef){const _0x1bcd34=_0x24eb6c;this[_0x1bcd34(0x1fe)](_0x1bcd34(0x239),[_0x222902,_0xd8fbef]),this['maybeThrow']();}async[_0x24eb6c(0x210)](_0xc9e8b5,_0x20526d){const _0x46ef9d={_0x4ba593:0x1fe},_0xa05dbc=_0x24eb6c;this[_0xa05dbc(_0x46ef9d._0x4ba593)](_0xa05dbc(0x210),[_0xc9e8b5,_0x20526d]),this[_0xa05dbc(0x21b)]();}async[_0x24eb6c(0x200)](_0x4b2f3d){const _0x9c26b2={_0x50dd65:0x1fe,_0x118a57:0x1ed},_0x16276e=_0x24eb6c;return this[_0x16276e(_0x9c26b2._0x50dd65)]('count',[_0x4b2f3d]),this[_0x16276e(_0x9c26b2._0x118a57)]['countByDefault']??0x1;}async[_0x24eb6c(0x1fd)](_0x15a918){const _0x46a582=_0x24eb6c;return this[_0x46a582(0x1fe)](_0x46a582(0x1fd),[_0x15a918]),this[_0x46a582(0x1ed)]['textContentByDefault']??'';}async['inputValue'](_0x15f989){const _0x57ff10={_0x461aef:0x1e3},_0x19fd7e=_0x24eb6c;return this['record'](_0x19fd7e(0x1fa),[_0x15f989]),this[_0x19fd7e(0x1ed)][_0x19fd7e(_0x57ff10._0x461aef)]??'';}async['checkedState'](_0x165671){const _0x814455={_0xb94005:0x1ed},_0x434763=_0x24eb6c;return this[_0x434763(0x1fe)](_0x434763(0x1f8),[_0x165671]),this[_0x434763(_0x814455._0xb94005)][_0x434763(0x22a)]??null;}async[_0x24eb6c(0x233)](_0x5b1624){const _0xabc6c4={_0x4dec31:0x1fe,_0x5cbcd9:0x1ed},_0x5d516a=_0x24eb6c;return this[_0x5d516a(_0xabc6c4._0x4dec31)]('isVisible',[_0x5b1624]),this[_0x5d516a(_0xabc6c4._0x5cbcd9)][_0x5d516a(0x21a)]??!![];}async['getAttribute'](_0x56af15,_0x3d2336){const _0x158d49={_0x229f2e:0x20e},_0x2d415b=_0x24eb6c;return this['record'](_0x2d415b(0x23a),[_0x56af15,_0x3d2336]),this['behavior'][_0x2d415b(_0x158d49._0x229f2e)]?.[_0x3d2336]??null;}async[_0x24eb6c(0x1ef)](_0x25b749,_0x2271f2){const _0xb60979={_0x51a2be:0x1fe},_0x18f219=_0x24eb6c;this[_0x18f219(_0xb60979._0x51a2be)]('waitFor',[_0x25b749,_0x2271f2]);}async[_0x24eb6c(0x21d)](_0x5b0954,_0x2bd7e4){const _0x4aaa9d={_0x2550b6:0x1fe},_0x415c99=_0x24eb6c;this[_0x415c99(_0x4aaa9d._0x2550b6)]('waitForUrl',[_0x5b0954,_0x2bd7e4]);}async['waitForText'](_0x3cd73a,_0x29598f){const _0x45d064={_0x396315:0x1fe},_0x53e344=_0x24eb6c;this[_0x53e344(_0x45d064._0x396315)](_0x53e344(0x248),[_0x3cd73a,_0x29598f]);}async[_0x24eb6c(0x240)](_0x1b00ed){const _0x2fc2c0={_0x43f8a1:0x1fe},_0x88972d=_0x24eb6c;this[_0x88972d(_0x2fc2c0._0x43f8a1)](_0x88972d(0x240),[_0x1b00ed]);}async['waitForLoadState'](_0x5124ae,_0x5bef2a){const _0x2c36a8=_0x24eb6c;this[_0x2c36a8(0x1fe)]('waitForLoadState',[_0x5124ae,_0x5bef2a]);}async[_0x24eb6c(0x24b)](_0x271e1e,_0x4c2c58){this['record']('goto',[_0x271e1e,_0x4c2c58]),this['currentUrl']=_0x271e1e;}async['reload'](_0x50927f){const _0x4bdb49=_0x24eb6c;this[_0x4bdb49(0x1fe)](_0x4bdb49(0x229),[_0x50927f]);}async[_0x24eb6c(0x20c)](_0x47bd99){const _0x134dc6=_0x24eb6c;this[_0x134dc6(0x1fe)](_0x134dc6(0x20c),[_0x47bd99]);}async[_0x24eb6c(0x1fc)](_0x2d0f82){const _0x1d996f=_0x24eb6c;this[_0x1d996f(0x1fe)](_0x1d996f(0x1fc),[_0x2d0f82]);}async[_0x24eb6c(0x202)](_0x2c4184){const _0x2c6875={_0x992085:0x202},_0x35d9a0=_0x24eb6c;return this[_0x35d9a0(0x1fe)](_0x35d9a0(_0x2c6875._0x992085),[_0x2c4184]),void 0x0;}async[_0x24eb6c(0x237)](_0x5c6015,_0x31e840){const _0x22d37d={_0x1fa7f2:0x1fe},_0x293a0a=_0x24eb6c;return this[_0x293a0a(_0x22d37d._0x1fa7f2)](_0x293a0a(0x237),[_0x5c6015,_0x31e840]),void 0x0;}async[_0x24eb6c(0x244)](_0x5a01d9){const _0x2f8896={_0x4b4abb:0x1e1,_0x27838c:0x209},_0x118bf8=_0x24eb6c;this['record']('inspectElement',[_0x5a01d9]);if(_0x5a01d9[_0x118bf8(0x1e4)][_0x118bf8(0x21f)]!==0x1||_0x5a01d9[_0x118bf8(0x1e4)][0x0][_0x118bf8(_0x2f8896._0x4b4abb)]!==_0x118bf8(0x209))return null;const _0xfc18d0=_0x5a01d9[_0x118bf8(0x1e4)][0x0][_0x118bf8(_0x2f8896._0x27838c)],_0x5af36d=this[_0x118bf8(0x1ed)]['elementHintByRef']?.[_0xfc18d0];return _0x5af36d??null;}async['screenshot'](_0x427995){const _0x157150={_0xcb03d2:0x1fe,_0xcb396c:0x1f2},_0x57f108=_0x24eb6c;return this[_0x57f108(_0x157150._0xcb03d2)](_0x57f108(0x22b),[_0x427995]),Buffer['from'](_0x57f108(_0x157150._0xcb396c));}async['outerHTML'](_0x2c00aa){const _0x40b6e0={_0x39ff2f:0x21f,_0x53c6a2:0x1e1,_0x5ed824:0x208,_0xc9a98b:0x22d,_0xcce565:0x225},_0x3c09e2=_0x24eb6c;this['record'](_0x3c09e2(0x1ee),[_0x2c00aa]);if(_0x2c00aa['steps'][_0x3c09e2(_0x40b6e0._0x39ff2f)]===0x1&&_0x2c00aa['steps'][0x0][_0x3c09e2(_0x40b6e0._0x53c6a2)]==='ref'){const _0x3fff3d=_0x2c00aa[_0x3c09e2(0x1e4)][0x0][_0x3c09e2(0x209)];return this[_0x3c09e2(0x1ed)][_0x3c09e2(_0x40b6e0._0x5ed824)]?.[_0x3fff3d]??_0x3c09e2(_0x40b6e0._0xc9a98b)+_0x3fff3d+_0x3c09e2(0x1e2);}return _0x3c09e2(_0x40b6e0._0xcce565);}},FakeContext=class{constructor(_0x3b8f76,_0x4b2e65,_0x51d789){const _0x4e8b0a={_0x5d6e10:0x1ea,_0x1735c3:0x23b,_0x4b8786:0x1f0,_0x105394:0x20b,_0x4607b8:0x249},_0x1a40c6={_0x1b4dc2:0x23c},_0x130a89=_0x24eb6c;this['recorder']=_0x3b8f76,this['behavior']=_0x4b2e65,this[_0x130a89(_0x4e8b0a._0x5d6e10)]=_0x51d789;const _0x12128d=new FakePage(_0x3b8f76,_0x4b2e65,_0x51d789+'.page0',_0x4b2e65[_0x130a89(_0x4e8b0a._0x1735c3)]??_0x130a89(0x21e));_0x4b2e65[_0x130a89(_0x4e8b0a._0x4b8786)]&&(_0x12128d[_0x130a89(0x23f)]=()=>{const _0x43e691=_0x130a89;this[_0x43e691(_0x1a40c6._0x1b4dc2)](_0x4b2e65['popupOnClick']);}),this['pageList']=[_0x12128d],this[_0x130a89(_0x4e8b0a._0x105394)]={..._0x4b2e65[_0x130a89(_0x4e8b0a._0x4607b8)]??{}},this[_0x130a89(0x220)]={..._0x4b2e65[_0x130a89(0x1df)]??{}};}[_0x24eb6c(0x215)];[_0x24eb6c(0x1ed)];[_0x24eb6c(0x1ea)];static{__name(this,'FakeContext');}[_0x24eb6c(0x221)];[_0x24eb6c(0x211)]=0x0;['frameStack']=[];[_0x24eb6c(0x20b)];[_0x24eb6c(0x220)];['newPageListeners']=new Set();[_0x24eb6c(0x1fe)](_0x139aac,_0x130703){const _0x108d40=_0x24eb6c;this[_0x108d40(0x215)][_0x108d40(0x205)]({'scope':this['scope'],'method':_0x139aac,'args':_0x130703});}['pages'](){const _0x6dd6ca={_0x52adf1:0x221},_0x1b3a4d=_0x24eb6c;return this[_0x1b3a4d(_0x6dd6ca._0x52adf1)];}[_0x24eb6c(0x22f)](){const _0x1476f9={_0x515d85:0x211},_0x4d60ac=_0x24eb6c,_0x1a651d=this[_0x4d60ac(0x221)][this[_0x4d60ac(_0x1476f9._0x515d85)]];if(!_0x1a651d)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this[_0x4d60ac(0x211)]});return _0x1a651d;}[_0x24eb6c(0x223)](){const _0x1e8dbf={_0x34e11a:0x1ed},_0x5f2fb7=_0x24eb6c;return this[_0x5f2fb7(_0x1e8dbf._0x34e11a)][_0x5f2fb7(0x223)]??[];}[_0x24eb6c(0x20d)](){const _0x402aac={_0x2c01fa:0x1ed},_0xb74bf3=_0x24eb6c;return this[_0xb74bf3(_0x402aac._0x2c01fa)][_0xb74bf3(0x20d)]??[];}async['setActivePage'](_0x27d940){const _0xb4aca8={_0xf2f070:0x221,_0x1f39e6:0x211,_0x27fbe1:0x21f},_0x1da57d=_0x24eb6c;this[_0x1da57d(0x1fe)](_0x1da57d(0x20f),[_0x27d940]);if(_0x27d940<0x0||_0x27d940>=this[_0x1da57d(_0xb4aca8._0xf2f070)][_0x1da57d(0x21f)])throw new DriverError(_0x1da57d(0x245),{'index':_0x27d940,'available':this[_0x1da57d(0x221)][_0x1da57d(0x21f)]});this[_0x1da57d(_0xb4aca8._0x1f39e6)]=_0x27d940,this['frameStack'][_0x1da57d(_0xb4aca8._0x27fbe1)]=0x0;}[_0x24eb6c(0x1ff)](_0x584606){const _0x528863={_0x37e146:0x236},_0x5ddc6e=_0x24eb6c;return subscribe(this[_0x5ddc6e(_0x528863._0x37e146)],_0x584606);}['emitFakePopup'](_0x9b6332){const _0x71a880={_0x4e05f1:0x235,_0x4b2dc2:0x221,_0x57b16d:0x236},_0x383042=_0x24eb6c,_0x4ece96=this[_0x383042(0x1ea)]+_0x383042(_0x71a880._0x4e05f1)+this['pageList'][_0x383042(0x21f)],_0xe2c612=new FakePage(this[_0x383042(0x215)],this[_0x383042(0x1ed)],_0x4ece96,_0x9b6332);this[_0x383042(0x221)][_0x383042(0x205)](_0xe2c612);const _0x5cc53e=this[_0x383042(_0x71a880._0x4b2dc2)][_0x383042(0x21f)]-0x1;for(const _0x2a8a47 of this[_0x383042(_0x71a880._0x57b16d)]){try{_0x2a8a47({'index':_0x5cc53e,'url':_0x9b6332});}catch{}}return _0x5cc53e;}['closeFakePage'](_0x2b561e){const _0x200b30={_0x3cc602:0x21f,_0x6bd3ca:0x245,_0x40b8e8:0x221},_0x50f740=_0x24eb6c;if(_0x2b561e<0x0||_0x2b561e>=this['pageList'][_0x50f740(_0x200b30._0x3cc602)])throw new DriverError(_0x50f740(_0x200b30._0x6bd3ca),{'index':_0x2b561e,'available':this[_0x50f740(_0x200b30._0x40b8e8)]['length']});this['pageList'][_0x50f740(0x222)](_0x2b561e,0x1);}async[_0x24eb6c(0x1da)](_0x5bb1d2){const _0x9f45ca={_0x479de6:0x1fe,_0x34486d:0x1e4},_0x20a0ff=_0x24eb6c;this[_0x20a0ff(_0x9f45ca._0x479de6)](_0x20a0ff(0x1da),[_0x5bb1d2]);if(!_0x5bb1d2[_0x20a0ff(_0x9f45ca._0x34486d)]['length'])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x5bb1d2});this[_0x20a0ff(0x1d9)][_0x20a0ff(0x205)](_0x5bb1d2);}async['exitFrame'](){const _0x433f29={_0x3f95de:0x1d9,_0x592f0f:0x243},_0x3d424a=_0x24eb6c;this['record'](_0x3d424a(0x206),[]);if(this[_0x3d424a(_0x433f29._0x3f95de)]['length']===0x0)throw new DriverError(_0x3d424a(_0x433f29._0x592f0f),{});this['frameStack']['pop']();}async['setLocalStorage'](_0x45c7fb,_0x48d44f){const _0x40a59d={_0x3d4d4a:0x1fe},_0x407222=_0x24eb6c;this[_0x407222(_0x40a59d._0x3d4d4a)](_0x407222(0x1d8),[_0x45c7fb,_0x48d44f]),this['localStorageState'][_0x45c7fb]=_0x48d44f;}async[_0x24eb6c(0x1f7)](_0x14c8fa){const _0x210ab8=_0x24eb6c;return this['record'](_0x210ab8(0x1f7),[_0x14c8fa]),this[_0x210ab8(0x20b)][_0x14c8fa]??null;}async[_0x24eb6c(0x241)](_0x5e2f68,_0x1718f2,_0x35f6d2){const _0x42f6de=_0x24eb6c;this['record']('setCookie',[_0x5e2f68,_0x1718f2,_0x35f6d2]),this[_0x42f6de(0x220)][_0x5e2f68]=_0x1718f2;}async[_0x24eb6c(0x1d7)](_0x226e82){const _0x14b7c1={_0x4618f7:0x1d7,_0x52ef62:0x220},_0x4987cd=_0x24eb6c;return this['record'](_0x4987cd(_0x14b7c1._0x4618f7),[_0x226e82]),this[_0x4987cd(_0x14b7c1._0x52ef62)][_0x226e82]??null;}async[_0x24eb6c(0x1de)](_0x4b111c){const _0x49dd04={_0x110355:0x1fe,_0x543fcf:0x1de},_0x308abd=_0x24eb6c;this[_0x308abd(_0x49dd04._0x110355)](_0x308abd(_0x49dd04._0x543fcf),[_0x4b111c]);}async[_0x24eb6c(0x202)](_0x5a9ac1){const _0x3bb395=_0x24eb6c;return this[_0x3bb395(0x1fe)]('evaluate',[_0x5a9ac1]),void 0x0;}async[_0x24eb6c(0x227)](){this['record']('close',[]);}[_0x24eb6c(0x1e8)](){const _0x36e471={_0x1b1e67:0x1d9,_0x4db52a:0x21f},_0x27648f=_0x24eb6c;return this[_0x27648f(_0x36e471._0x1b1e67)][_0x27648f(_0x36e471._0x4db52a)];}},FakeWebDriver=class{constructor(_0x1c3cab={}){const _0x3ae429={_0x1884e8:0x215},_0x3338fe=_0x24eb6c;this['behavior']=_0x1c3cab,this[_0x3338fe(_0x3ae429._0x1884e8)]=createRecorder();}[_0x24eb6c(0x1ed)];static{__name(this,_0x24eb6c(0x238));}[_0x24eb6c(0x21c)]=![];[_0x24eb6c(0x215)];['contexts']=[];async[_0x24eb6c(0x242)](_0x1d60eb){const _0x3b0aee={_0x2c1a8e:0x23e,_0x7c2383:0x242},_0x219ce1=_0x24eb6c;this[_0x219ce1(0x215)]['push']({'scope':_0x219ce1(_0x3b0aee._0x2c1a8e),'method':_0x219ce1(_0x3b0aee._0x7c2383),'args':[_0x1d60eb]}),this[_0x219ce1(0x21c)]=!![];}async[_0x24eb6c(0x216)](_0x1d5c28){const _0x337879={_0x447921:0x215,_0x248a16:0x205,_0x1acfc7:0x21c,_0x2c79d1:0x1dc,_0x119b4d:0x21f},_0x31e5d8=_0x24eb6c;this[_0x31e5d8(_0x337879._0x447921)][_0x31e5d8(_0x337879._0x248a16)]({'scope':_0x31e5d8(0x23e),'method':_0x31e5d8(0x216),'args':[_0x1d5c28]});if(!this[_0x31e5d8(_0x337879._0x1acfc7)])throw new DriverError(_0x31e5d8(0x1db),{});const _0x31ce42=new FakeContext(this[_0x31e5d8(0x215)],this[_0x31e5d8(0x1ed)],_0x31e5d8(0x228)+this[_0x31e5d8(_0x337879._0x2c79d1)][_0x31e5d8(_0x337879._0x119b4d)]);return this[_0x31e5d8(0x1dc)]['push'](_0x31ce42),_0x31ce42;}async[_0x24eb6c(0x227)](){const _0x3ae219={_0x4bf993:0x23e,_0x3feac1:0x227},_0x3c5a66=_0x24eb6c;this[_0x3c5a66(0x215)][_0x3c5a66(0x205)]({'scope':_0x3c5a66(_0x3ae219._0x4bf993),'method':_0x3c5a66(_0x3ae219._0x3feac1),'args':[]}),this[_0x3c5a66(0x21c)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x24eb6c(0x1eb)](){const _0x447a21={_0x2d4cc5:0x1f5},_0x7312a9=_0x24eb6c;throw new DriverError(_0x7312a9(_0x447a21._0x2d4cc5),{});}['attachExisting'](){const _0xbeb883={_0x1dadf3:0x1f6},_0x84439d=_0x24eb6c;throw new DriverError(_0x84439d(_0xbeb883._0x1dadf3),{});}[_0x24eb6c(0x24c)](){const _0x2f499f=_0x24eb6c;return this['recorder'][_0x2f499f(0x24c)]();}[_0x24eb6c(0x247)](_0x20f672){const _0x11fa73={_0x490cbf:0x23d},_0x55feeb=_0x24eb6c;return this[_0x55feeb(0x215)][_0x55feeb(0x24c)]()[_0x55feeb(_0x11fa73._0x490cbf)](_0x5c9348=>_0x5c9348[_0x55feeb(0x1f1)]===_0x20f672);}};export{FakeWebDriver};
@@ -1,5 +1,5 @@
1
- import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-BxviHxnr.js';
2
- export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-BxviHxnr.js';
1
+ import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-MxHi1Air.js';
2
+ export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-MxHi1Air.js';
3
3
  import { Matcher, RegexLiteral } 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';