@unotest/web 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +102 -0
- 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/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 +18 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,107 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.37.0] - 2026-09-17
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 01fdbcb: `box picker` tells you to restart your editor
|
|
8
|
+
|
|
9
|
+
The grounder's keys are read when the MCP server starts, so turning the
|
|
10
|
+
Picker on under a running editor changed nothing until that editor
|
|
11
|
+
reconnected — and from where you stand that is indistinguishable from a
|
|
12
|
+
Picker that does not work. Either way the agent has nothing to ground an
|
|
13
|
+
intent with, and the only difference is a restart nobody mentioned.
|
|
14
|
+
|
|
15
|
+
`box picker on` now says it in a line of its own, and `box picker off` says
|
|
16
|
+
it too when it removed the keys: a server still running offers grounding
|
|
17
|
+
that the cloud has already withdrawn. The line appears only when the command
|
|
18
|
+
actually wrote or removed those keys — a box already in the state you asked
|
|
19
|
+
for, or a grounder of somebody else's that was left untouched, changes
|
|
20
|
+
nothing and so says nothing.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- d80cf16: A box that only half came up is no longer called healthy.
|
|
25
|
+
|
|
26
|
+
After an update the box waits for its stack to settle before recording the release as applied. That wait only ever saw the containers docker was running, so a service that never started was not waited for at all — it could not be called unsettled, because it was not in the list. A box whose guard was stuck at `created` reported two services out of four settling, recorded the release, and served nothing; the same shape as a freshly rented box answering 502 to everything.
|
|
27
|
+
|
|
28
|
+
The wait now asks docker about every container rather than only the running ones, and counts what came back against what the project actually declares — a service the daemon never created is absent from any listing, so it can only be found by what is missing from the answer. What the project declares is asked of compose itself rather than read off a file: compose is what merges the override files and applies the profiles, so a service held back by a profile is not waited for, and the same answer says which services are one-shots — the ones another service waits on to complete. A finished one-shot still counts as settled; treating `box-init` as a service that fell over would have sent every box into a rollback on every tick.
|
|
29
|
+
|
|
30
|
+
- 3c634b6: The Picker's token is read from `unotest/.secrets`, where the command put it
|
|
31
|
+
|
|
32
|
+
`box picker on` writes the grounder's mode and address to `unotest/.env` and
|
|
33
|
+
its token to `unotest/.secrets` — and the values in `.secrets` are
|
|
34
|
+
deliberately kept out of the environment, so subprocesses and `shell()` do
|
|
35
|
+
not inherit them. The MCP server, however, looked for the token in the
|
|
36
|
+
environment alone. The command reported success, the `ground_element` tool
|
|
37
|
+
appeared, and the first intent was refused with a demand to set a variable
|
|
38
|
+
that the command had already set. The only workaround anyone could find was
|
|
39
|
+
to paste the token into the editor's MCP configuration, which commits a
|
|
40
|
+
credential to a file that is tracked.
|
|
41
|
+
|
|
42
|
+
Credentials our own commands write are now read back the way they were
|
|
43
|
+
written: the environment first (an `export`, a CI secret), then
|
|
44
|
+
`unotest/.secrets`, then `unotest/.env`. The box tokens already worked this
|
|
45
|
+
way and now share the one implementation with the Picker's.
|
|
46
|
+
|
|
47
|
+
When the token is missing everywhere, the refusal names every place that
|
|
48
|
+
was searched, the command that writes it, and the editor restart that makes
|
|
49
|
+
a running server pick it up.
|
|
50
|
+
|
|
51
|
+
The boot health check no longer disappears in that state either. Remote mode
|
|
52
|
+
with no token used to switch the check off entirely, which reads as "nothing
|
|
53
|
+
to report" — a Picker that could not ground looked exactly like a healthy
|
|
54
|
+
one until an agent called it. It now reports itself as not ok and says why.
|
|
55
|
+
|
|
56
|
+
- 51e47c6: Push tokens are scoped to the project your box actually serves
|
|
57
|
+
|
|
58
|
+
A box rented from the cabinet serves the projects you typed into the form —
|
|
59
|
+
`shop/prod`, say. The CLI, asking for a pair, used to send the BOX's name as
|
|
60
|
+
the project, because that is the only name it has. On a box created with
|
|
61
|
+
`box create` the two happen to match; on a box created in the cabinet they do
|
|
62
|
+
not, and every `bundle push` was refused with "this token is for a project
|
|
63
|
+
this box does not have" — a refusal with no command behind it, since nothing
|
|
64
|
+
told you which projects the box has.
|
|
65
|
+
|
|
66
|
+
The cloud now decides the scope, because it is the only side that knows what
|
|
67
|
+
a box serves. `box create`, `box access` and `box picker on` send no project
|
|
68
|
+
at all and get a pair scoped to the box's own. A box serving several projects
|
|
69
|
+
has no single right answer, so it refuses to invent one and names them
|
|
70
|
+
instead: `box access --project <name>` (new, and also on `box picker on`)
|
|
71
|
+
says which one the pair is for. Tokens minted before this release keep the
|
|
72
|
+
old scope until you run `box access` again — which is what the refusal now
|
|
73
|
+
tells you to do.
|
|
74
|
+
|
|
75
|
+
Two things say the names out loud, so a mismatch is yours to fix:
|
|
76
|
+
|
|
77
|
+
- `box status` lists the projects the box serves.
|
|
78
|
+
- A refused push names the project in your token, the projects on the box,
|
|
79
|
+
and the command that mints a matching pair. It no longer tells you your
|
|
80
|
+
repository maps to another project when your repository maps to nothing —
|
|
81
|
+
the two cases now print different advice, and the box says which is which.
|
|
82
|
+
|
|
83
|
+
- 4c2c744: A revoked box token is really revoked
|
|
84
|
+
|
|
85
|
+
Revoking a box's tokens — `box picker off`, `box destroy`, or a revocation
|
|
86
|
+
an operator issues — writes the cloud's revocation list first and applies it
|
|
87
|
+
in memory second. The list lived in the service's configuration directory,
|
|
88
|
+
which a hardened service mounts read-only, so the write failed, the list in
|
|
89
|
+
memory was never updated, and the signed document that boxes and the
|
|
90
|
+
grounder read never changed. The token went on working across the fleet
|
|
91
|
+
while the command reported success.
|
|
92
|
+
|
|
93
|
+
The list now lives beside the service's databases, in a directory the
|
|
94
|
+
service owns and may write to. It is state the service signs and rewrites
|
|
95
|
+
itself rather than operator configuration — the operator still signs and
|
|
96
|
+
places the first one.
|
|
97
|
+
|
|
98
|
+
- Updated dependencies [51e47c6]
|
|
99
|
+
- @unotest/protocol@0.37.0
|
|
100
|
+
- @unotest/viewer@0.37.0
|
|
101
|
+
- @unotest/core@0.37.0
|
|
102
|
+
- @unotest/dsl@0.37.0
|
|
103
|
+
- @unotest/grounder-client@0.37.0
|
|
104
|
+
|
|
3
105
|
## [0.36.0] - 2026-09-16
|
|
4
106
|
|
|
5
107
|
### Minor Changes
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x4201(){var _0xe19169=['B2zM','nta4mhr6tKnAtW','ywnJzxb0','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','zgLZBwLZCW','BwfUDwfS','BgLUDdPZy2vUyxjPBY1PBI1YB290','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','B2jQzwn0','DMfSAwrHDg9YoNzHCI1ZAgfWzq','DMfSAwrHDg9YoMfYzY1RAw5K','zw51Bq','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoMLMlxnOyxbL','DMfSAwrHDg9YoNn0zxaTC2HHCgu','lNvUB3rLC3qVzMfPBhvYzxm','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mZH2yxHiuKS','BgLUDdPWyxvZzs1LEhbSAwnPDa','y2HYB21LlwjLDge','zgvMyxvSDa','DxjS','ndKWmJG5oeztDK9LuG','BgLUDdP4Cgf0Aa','BgLUDdPNB3rVlwnVBMnHDa','y2HYB21L','BgL0zxjHBa','zxjYB3i','C3rYAw5N','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','yxjYyxK','BNvTyMvY','BgLUDdPLy2HVlwfZC2vYDa','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','Dw5VDgvZDc9LmMu','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','Aw50','nte4ndHmsKLnuu0','Cg9ZAxrPDMu','mtq2oe14zvvkuW','mtm2mde2mhz0yNjXtG','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','DMfSAwrHDg9YoM1LDgeTC2HHCgu','B3b0Aw9UywW','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','y3jHC2G','mtfXswnbCNm','Bwf4','DMfSAwrHDg9YoMXPC3qTyxjN','BgLUDdPSzwDHy3KTBgf5B3v0','BwLU','CMvJB3jK','DhjHBNnPzw50','C3rKAw8','D2fYBG','mZaYmJCYmLrowNDtta','y2HYB21PDw0','zMLYzwzVEa','yM9VBgvHBG','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','mti3odaYn3DUBuX4tG','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','mZeYndLXtLjxDvC','nJiXt21wvLzO'];_0x4201=function(){return _0xe19169;};return _0x4201();}var _0x181bcf=_0x2567;(function(_0x56bff3,_0x2e70b0){var _0x1a1215={_0x10ecb3:0x20a,_0x55d20d:0x21d,_0x5505bc:0x203},_0xefd31f=_0x2567,_0xdbca4=_0x56bff3();while(!![]){try{var _0x2ccc39=parseInt(_0xefd31f(_0x1a1215._0x10ecb3))/0x1*(-parseInt(_0xefd31f(_0x1a1215._0x55d20d))/0x2)+parseInt(_0xefd31f(0x208))/0x3+-parseInt(_0xefd31f(0x1f3))/0x4*(parseInt(_0xefd31f(0x20d))/0x5)+parseInt(_0xefd31f(_0x1a1215._0x5505bc))/0x6+parseInt(_0xefd31f(0x1e2))/0x7+-parseInt(_0xefd31f(0x1f1))/0x8*(parseInt(_0xefd31f(0x20b))/0x9)+parseInt(_0xefd31f(0x1f4))/0xa*(parseInt(_0xefd31f(0x1fa))/0xb);if(_0x2ccc39===_0x2e70b0)break;else _0xdbca4['push'](_0xdbca4['shift']());}catch(_0x5d0c70){_0xdbca4['push'](_0xdbca4['shift']());}}}(_0x4201,0x560b2));import{z}from'zod';function _0x2567(_0x3633a1,_0x5903de){_0x3633a1=_0x3633a1-0x1e1;var _0x4201f0=_0x4201();var _0x256750=_0x4201f0[_0x3633a1];if(_0x2567['LBTmYU']===undefined){var _0x5cc0ea=function(_0x555164){var _0x4c8b11='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1ac178='',_0x786f27='';for(var _0x4c8135=0x0,_0x16776f,_0x51c40b,_0x5f10eb=0x0;_0x51c40b=_0x555164['charAt'](_0x5f10eb++);~_0x51c40b&&(_0x16776f=_0x4c8135%0x4?_0x16776f*0x40+_0x51c40b:_0x51c40b,_0x4c8135++%0x4)?_0x1ac178+=String['fromCharCode'](0xff&_0x16776f>>(-0x2*_0x4c8135&0x6)):0x0){_0x51c40b=_0x4c8b11['indexOf'](_0x51c40b);}for(var _0x117088=0x0,_0x525c2c=_0x1ac178['length'];_0x117088<_0x525c2c;_0x117088++){_0x786f27+='%'+('00'+_0x1ac178['charCodeAt'](_0x117088)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x786f27);};_0x2567['tauWFy']=_0x5cc0ea,_0x2567['ExHfDb']={},_0x2567['LBTmYU']=!![];}var _0xb45f2b=_0x4201f0[0x0],_0x8209fa=_0x3633a1+_0xb45f2b,_0x248d51=_0x2567['ExHfDb'][_0x8209fa];return!_0x248d51?(_0x256750=_0x2567['tauWFy'](_0x256750),_0x2567['ExHfDb'][_0x8209fa]=_0x256750):_0x256750=_0x248d51,_0x256750;}var BrowserSchema=z[_0x181bcf(0x217)]([_0x181bcf(0x204),_0x181bcf(0x205),'webkit']),BrowserChannelSchema=z['union']([z[_0x181bcf(0x1e6)](_0x181bcf(0x1e5)),z[_0x181bcf(0x1e6)]('msedge'),z[_0x181bcf(0x1e6)](_0x181bcf(0x21f)),z['null']()])[_0x181bcf(0x1f7)](),ViewportSchema=z[_0x181bcf(0x214)]({'width':z[_0x181bcf(0x1eb)]()['int']()[_0x181bcf(0x1f2)](),'height':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)]()}),RetryReasonSchema=z[_0x181bcf(0x217)]([_0x181bcf(0x200),'network',_0x181bcf(0x1f9)]),RetryConfigSchema=z[_0x181bcf(0x214)]({'count':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()['min'](0x0)[_0x181bcf(0x1fb)](0xa),'on':z[_0x181bcf(0x1ea)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x181bcf(0x214)]({'tier1':z[_0x181bcf(0x1e6)](!![])[_0x181bcf(0x220)](!![]),'tier2':z[_0x181bcf(0x206)](),'tier3':z['object']({'network':z['boolean'](),'video':z[_0x181bcf(0x206)]()}),'retention':z['object']({'runs':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()['positive'](),'days':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)]()}),'storageDir':z[_0x181bcf(0x1e8)]()['min'](0x1)}),DialogPolicySchema=z[_0x181bcf(0x217)](['accept',_0x181bcf(0x210),_0x181bcf(0x211)]),LinterRuleIdSchema=z['enum'](['lint:deep-css',_0x181bcf(0x1e3),'lint:obfuscated-class',_0x181bcf(0x21e),_0x181bcf(0x1ef),_0x181bcf(0x20f),_0x181bcf(0x212),'lint:mustache-in-dsl',_0x181bcf(0x1e4),'lint:regex-invalid',_0x181bcf(0x1ec),'lint:api-call-file-body',_0x181bcf(0x1ed),_0x181bcf(0x1f5),_0x181bcf(0x1fd),_0x181bcf(0x207),_0x181bcf(0x213),_0x181bcf(0x1e9),'validator:arity',_0x181bcf(0x216),_0x181bcf(0x21c),_0x181bcf(0x21a),_0x181bcf(0x1f6),'validator:function-shape','validator:for-shape',_0x181bcf(0x219),_0x181bcf(0x215),_0x181bcf(0x209),'validator:unsupported-expression',_0x181bcf(0x218),_0x181bcf(0x1f8),_0x181bcf(0x1fc),'validator:wrapped-format']),LinterSeveritySchema=z[_0x181bcf(0x217)](['off',_0x181bcf(0x202),_0x181bcf(0x1e7)]),LinterConfigSchema=z[_0x181bcf(0x214)]({'enabled':z[_0x181bcf(0x206)](),'rules':z[_0x181bcf(0x1ff)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=z['object']({'enabled':z[_0x181bcf(0x206)]()[_0x181bcf(0x220)](!![]),'concurrency':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()['positive']()['default'](0x1)}),ScheduleSchema=z['object']({'collection':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1),'cron':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1),'env':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1)[_0x181bcf(0x1f7)](),'prepare':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1)['optional']()}),McpConfigSchema=z[_0x181bcf(0x214)]({'transport':z[_0x181bcf(0x1e6)]('stdio')}),SandboxConfigSchema=z[_0x181bcf(0x214)]({'shellCwd':z['string']()[_0x181bcf(0x1f7)](),'shellTimeoutMs':z['number']()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)]()['optional'](),'exportSecrets':z[_0x181bcf(0x1ea)](z[_0x181bcf(0x1e8)]())[_0x181bcf(0x1f7)](),'database':z['string']()['optional'](),'apiBaseUrl':z['string']()[_0x181bcf(0x1e1)]()[_0x181bcf(0x1f7)](),'uploadDir':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1f7)]()}),WebServerConfigSchema=z[_0x181bcf(0x214)]({'command':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1),'url':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1e1)](),'reuseExistingServer':z[_0x181bcf(0x206)]()[_0x181bcf(0x220)](!![]),'timeoutMs':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)]()[_0x181bcf(0x220)](0xea60)}),UnotestConfigSchema=z[_0x181bcf(0x214)]({'baseUrl':z['string']()[_0x181bcf(0x1e1)]()[_0x181bcf(0x1f7)](),'webServer':WebServerConfigSchema[_0x181bcf(0x1f7)](),'browsers':z[_0x181bcf(0x1ea)](BrowserSchema)[_0x181bcf(0x1fe)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1f7)](),'testDir':z[_0x181bcf(0x1e8)]()['min'](0x1),'helpersDir':z[_0x181bcf(0x1e8)]()[_0x181bcf(0x1fe)](0x1),'defaultTimeoutMs':z[_0x181bcf(0x1eb)]()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)](),'defaultNavigationTimeoutMs':z['number']()[_0x181bcf(0x1f0)]()[_0x181bcf(0x1f2)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':z[_0x181bcf(0x1ea)](ScheduleSchema)[_0x181bcf(0x220)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x181bcf(0x204)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x181bcf(0x200)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x181bcf(0x21b)},'dialogPolicy':_0x181bcf(0x20e),'testDir':_0x181bcf(0x1ee),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x181bcf(0x202),'lint:xpath':_0x181bcf(0x202),'lint:obfuscated-class':_0x181bcf(0x202),'lint:pause-explicit':_0x181bcf(0x202),'lint:disambig-by-index':_0x181bcf(0x20c),'lint:evaluate-discouraged':_0x181bcf(0x202),'lint:scenario-in-root':'error','lint:mustache-in-dsl':_0x181bcf(0x1e7),'lint:goto-concat':'warn','lint:regex-invalid':'error','lint:echo-assert':_0x181bcf(0x202),'lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x181bcf(0x202),'lint:legacy-layout':_0x181bcf(0x202),'lint:external-variable-undeclared':'error','lint:one-test-per-file':'warn','validator:unknown-function':'error'}},'mcp':{'transport':_0x181bcf(0x201)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5c6c84=_0xb7a9;(function(_0x51e34e,_0x3f992e){const _0x6fcf81={_0x572cea:0x18b,_0x4eb11e:0x186},_0x16cd2f=_0xb7a9,_0x349721=_0x51e34e();while(!![]){try{const _0x44ee88=-parseInt(_0x16cd2f(0x161))/0x1+parseInt(_0x16cd2f(0x173))/0x2*(parseInt(_0x16cd2f(0x16e))/0x3)+parseInt(_0x16cd2f(_0x6fcf81._0x572cea))/0x4+parseInt(_0x16cd2f(_0x6fcf81._0x4eb11e))/0x5*(parseInt(_0x16cd2f(0x13a))/0x6)+-parseInt(_0x16cd2f(0x12e))/0x7*(-parseInt(_0x16cd2f(0x13f))/0x8)+-parseInt(_0x16cd2f(0x159))/0x9+parseInt(_0x16cd2f(0x150))/0xa;if(_0x44ee88===_0x3f992e)break;else _0x349721['push'](_0x349721['shift']());}catch(_0x431f25){_0x349721['push'](_0x349721['shift']());}}}(_0x4173,0x493d3));function _0xb7a9(_0xe70991,_0x492c2f){_0xe70991=_0xe70991-0x11a;const _0x417371=_0x4173();let _0xb7a921=_0x417371[_0xe70991];if(_0xb7a9['AxfAVi']===undefined){var _0x4490bc=function(_0x561c7d){const _0x4dcaf0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ed2c1='',_0x2e8c2c='';for(let _0x55c5ad=0x0,_0x462187,_0x6c9867,_0x1ba077=0x0;_0x6c9867=_0x561c7d['charAt'](_0x1ba077++);~_0x6c9867&&(_0x462187=_0x55c5ad%0x4?_0x462187*0x40+_0x6c9867:_0x6c9867,_0x55c5ad++%0x4)?_0x3ed2c1+=String['fromCharCode'](0xff&_0x462187>>(-0x2*_0x55c5ad&0x6)):0x0){_0x6c9867=_0x4dcaf0['indexOf'](_0x6c9867);}for(let _0x4b89a6=0x0,_0x2f23b6=_0x3ed2c1['length'];_0x4b89a6<_0x2f23b6;_0x4b89a6++){_0x2e8c2c+='%'+('00'+_0x3ed2c1['charCodeAt'](_0x4b89a6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e8c2c);};_0xb7a9['zibEsP']=_0x4490bc,_0xb7a9['bOFLuq']={},_0xb7a9['AxfAVi']=!![];}const _0x256b91=_0x417371[0x0],_0x460db5=_0xe70991+_0x256b91,_0x1a81cb=_0xb7a9['bOFLuq'][_0x460db5];return!_0x1a81cb?(_0xb7a921=_0xb7a9['zibEsP'](_0xb7a921),_0xb7a9['bOFLuq'][_0x460db5]=_0xb7a921):_0xb7a921=_0x1a81cb,_0xb7a921;}var __defProp=Object[_0x5c6c84(0x11d)],__name=(_0x3ed2c1,_0x2e8c2c)=>__defProp(_0x3ed2c1,_0x5c6c84(0x134),{'value':_0x2e8c2c,'configurable':!![]});function subscribe(_0x55c5ad,_0x462187){const _0x1e2a14=_0x5c6c84;return _0x55c5ad[_0x1e2a14(0x174)](_0x462187),()=>{const _0xe473c2=_0x1e2a14;_0x55c5ad[_0xe473c2(0x11f)](_0x462187);};}__name(subscribe,_0x5c6c84(0x17b));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x5c6c84(0x15d));}},LocatorError=class extends UnotestError{static{__name(this,'LocatorError');}};function _0x4173(){const _0x1e91a0=['y2XVC2u','y29VA2LLu3rHDgu','iJ48l2rPDJ4','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','mtq1oteXmNjfzejHsG','z2v0qxr0CMLIDxrL','Bgf1BMnOzwq','y291BNrcEurLzMf1Bhq','zhjPDMvY','zxjYB3jpBK5LEhrby3rPB24','y2XPCgjVyxjKugfZDgu','CMvJB3jKzxi','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','A2LUza','BgvUz3rO','zw1PDezHA2vqB3b1Ca','CgfNzxm','Cg9W','zxHPDezYyw1L','BMv3q29UDgv4Da','z29gB3j3yxjK','C2f2zvn0B3jHz2vtDgf0zq','zgvMAw5LuhjVCgvYDhK','z2v0q29VA2LL','zgvSzxrL','Bgf1BMnO','y2fSBhm','Cg9WDxbpBKnSAwnR','Aw5WDxrwywX1zq','y2XVC2vgywTLugfNzq','zNjHBwvtDgfJAW','y3vYCMvUDfvYBa','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','CMvSB2fK','z2v0tg9JywXtDg9YywDL','yxr0ywnOrxHPC3rPBMC','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','zMLSBa','zNvUy3rPB24','mJqXnZi0uM5LvuXe','CgfNzuXPC3q','y291BNq','D2fPDezVCKXVywrtDgf0zq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','zg91yMXLq2XPy2S','BMfTzq','zMLSDgvY','BMv0D29YA0vUDhjPzxm','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','Dw5JAgvJAW','Bg9JywXtDg9YywDLu3rHDgu','mJK0nLDuy3veqW','zhjHz0fUzerYB3a','B25ozxDqywDL','pgrPDJ48l2rPDJ4','DgL0Bgu','mZjiDg5lyuG','ywn0AxzLswr4','C3rLChm','D2fPDezVCLrLEhq','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','y29UDgv4Dhm','y2HLy2S','zw50zxjgCMfTzq','y2HLy2TLzfn0yxrL','rMfRzunVBNrLEhq','z29cywnR','C2v0q29VA2LL','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','Aw5UzxjuzxH0','ChvZAa','C2nYzwvUC2HVDa','yMvOyxzPB3i','mtmYmtu5mfjcD0nWuW','B25bzNrLCKnSAwnR','D2fPDezVCLvYBa','C2nVCgu','C2v0qwn0AxzLugfNzq','zNjVBq','D2fPDezVCG','AxnwAxnPyMXL','zMfRzs1WBMC','nde2ota1mMDOvNDpAq','C2vSzwn0t3b0Aw9U','y2XPy2S','C3bSAwnL','rhjPDMvYrxjYB3i','B3v0zxjiDg1SqNLszwy','zwXLBwvUDeHPBNrcEvjLzG','AxneAxnHyMXLza','ndG2ode4Bgn3q2Tj','Aw5WDxrwywX1zuj5rgvMyxvSDa','y3r4','y2fSBhngB3i','C2nYB2XSsw50B1zPzxC','Bwf5yMvuAhjVDW','BMv3ugfNzuXPC3rLBMvYCW','C2nYzwvUC2HVDevSzw1LBNq','lNbHz2u','ywn0AxzLugfNzq','AxnwAxnPyMXLqNLezwzHDwX0','DhLWzq','D3nfBMrWB2LUDa','mJDrtKD5AeC','zNjHBwvezxb0Aa','CMvM','y2HLy2TLzfn0yxrLqNLezwzHDwX0','rMfRzvbHz2u','odq1ne9tB3DNyq','ywrK','y29UBMvJDfnOyxjLza','y29UC29SzuvUDhjPzxm','Aw5ZCgvJDevSzw1LBNq','Aw5UzxjuzxH0qNLezwzHDwX0','Bg9JywXtDg9YywDL','z290BW','C3vIC2nYAwjL','Aw5PDgLHBfvYBa','CMvJB3jK','zxzHBhvHDgvszxn1Bhq','zxzHBhvHDgvpBKXVy2f0B3i','AxneAxnHyMXLzej5rgvMyxvSDa','Bwv0Ag9K','C2v0tg9JywXtDg9YywDL','zxzHBhvHDgu','Ag92zxi','yxr0CMLIDxrLC0j5rgvMyxvSDa','ntG3nxbgsMHkEa'];_0x4173=function(){return _0x1e91a0;};return _0x4173();}function createRecorder(){const _0x261447={_0x1f8cb1:0x14d,_0x3f84ee:0x121},_0x113a07=_0x5c6c84,_0x6c9867=[];let _0x1ba077=0x0;return{'push':__name(_0x4b89a6=>_0x6c9867[_0x113a07(0x14d)]({..._0x4b89a6,'seq':_0x1ba077++}),_0x113a07(_0x261447._0x1f8cb1)),'calls':__name(()=>_0x6c9867,_0x113a07(_0x261447._0x3f84ee))};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x2f23b6,_0x1d667f,_0x24122d,_0x241d22){const _0x40a69e={_0xd668af:0x153,_0x28be81:0x126},_0x417068=_0x5c6c84;this['recorder']=_0x2f23b6,this['behavior']=_0x1d667f,this[_0x417068(_0x40a69e._0xd668af)]=_0x24122d,this[_0x417068(_0x40a69e._0x28be81)]=_0x241d22;}[_0x5c6c84(0x192)];['behavior'];['scope'];static{__name(this,_0x5c6c84(0x172));}['currentUrl'];[_0x5c6c84(0x151)];[_0x5c6c84(0x17d)](_0x57f97f,_0x4a1c52){const _0x1869d0={_0x5ce0a5:0x192,_0x18eac8:0x153},_0x39d416=_0x5c6c84;this[_0x39d416(_0x1869d0._0x5ce0a5)]['push']({'scope':this[_0x39d416(_0x1869d0._0x18eac8)],'method':_0x57f97f,'args':_0x4a1c52});}[_0x5c6c84(0x166)](){const _0x192056={_0x4a02d0:0x190,_0x4888d0:0x14f,_0x123523:0x190},_0x2f2ab5=_0x5c6c84;if(this[_0x2f2ab5(0x14f)][_0x2f2ab5(_0x192056._0x4a02d0)]){const _0x258d26=this[_0x2f2ab5(_0x192056._0x4888d0)][_0x2f2ab5(_0x192056._0x123523)];this['behavior']['errorOnNextAction']=void 0x0;throw _0x258d26;}}['url'](){const _0x420ce5=_0x5c6c84;return this[_0x420ce5(0x126)];}async[_0x5c6c84(0x13e)](){const _0x596cf8=_0x5c6c84;return this[_0x596cf8(0x17d)]('title',[]),'fake\x20title';}async[_0x5c6c84(0x15b)](_0x163e94,_0x28edac){const _0x5e634a={_0x5c7118:0x15b},_0x341cca=_0x5c6c84;this['record'](_0x341cca(_0x5e634a._0x5c7118),[_0x163e94,_0x28edac]),this[_0x341cca(0x166)](),this[_0x341cca(0x151)]?.();}async[_0x5c6c84(0x133)](_0x243593,_0x240c96){const _0x242c42={_0x525193:0x166},_0x538cee=_0x5c6c84;this[_0x538cee(0x17d)](_0x538cee(0x133),[_0x243593,_0x240c96]),this[_0x538cee(_0x242c42._0x525193)]();}async['fill'](_0x4e8d11,_0x318a2c,_0x2fcf59){const _0x5e5a37={_0x13698b:0x12c},_0x38bd64=_0x5c6c84;this['record'](_0x38bd64(_0x5e5a37._0x13698b),[_0x4e8d11,_0x318a2c,_0x2fcf59]),this[_0x38bd64(0x166)]();}async['press'](_0x45eeec,_0x1e2dfc,_0x3b8d04){const _0x508a13=_0x5c6c84;this[_0x508a13(0x17d)]('press',[_0x45eeec,_0x1e2dfc,_0x3b8d04]),this[_0x508a13(0x166)]();}async[_0x5c6c84(0x145)](_0x7a5590,_0x3f62b1){const _0x5debd4={_0x539b29:0x145},_0xfef888=_0x5c6c84;this['record'](_0xfef888(_0x5debd4._0x539b29),[_0x7a5590,_0x3f62b1]),this[_0xfef888(0x166)]();}async[_0x5c6c84(0x138)](_0x49f86f,_0x45971f){const _0x241a38={_0x2a639d:0x17d},_0x17a45e=_0x5c6c84;this[_0x17a45e(_0x241a38._0x2a639d)](_0x17a45e(0x138),[_0x49f86f,_0x45971f]),this[_0x17a45e(0x166)]();}async[_0x5c6c84(0x15a)](_0x349e8c,_0x5101a2,_0x266ff3){const _0x3ae0a0=_0x5c6c84;this[_0x3ae0a0(0x17d)]('selectOption',[_0x349e8c,_0x5101a2,_0x266ff3]),this[_0x3ae0a0(0x166)]();}async['hover'](_0x356e1d,_0x46e804){const _0x2e99e7=_0x5c6c84;this[_0x2e99e7(0x17d)](_0x2e99e7(0x184),[_0x356e1d,_0x46e804]),this[_0x2e99e7(0x166)]();}async[_0x5c6c84(0x165)](_0x882562){const _0x41a6e8={_0x5dc9d5:0x166},_0x463fd5=_0x5c6c84;this[_0x463fd5(0x17d)](_0x463fd5(0x165),[_0x882562]),this[_0x463fd5(_0x41a6e8._0x5dc9d5)]();}async[_0x5c6c84(0x13b)](_0x41da1a,_0x7f283d,_0x5dc78b){const _0x25b66d=_0x5c6c84;this[_0x25b66d(0x17d)](_0x25b66d(0x13b),[_0x41da1a,_0x7f283d,_0x5dc78b]),this['maybeThrow']();}async['uploadFile'](_0x1baefc,_0x5ce88a){const _0x46e94c={_0x55b7b0:0x17d},_0x4edf46=_0x5c6c84;this[_0x4edf46(_0x46e94c._0x55b7b0)]('uploadFile',[_0x1baefc,_0x5ce88a]),this['maybeThrow']();}async[_0x5c6c84(0x191)](_0x1843df,_0x53c1e9){const _0x170d81={_0x53f23b:0x166},_0x5d8029=_0x5c6c84;this[_0x5d8029(0x17d)]('clipboardPaste',[_0x1843df,_0x53c1e9]),this[_0x5d8029(_0x170d81._0x53f23b)]();}async[_0x5c6c84(0x130)](_0x87713e){const _0x5c1a19=_0x5c6c84;return this[_0x5c1a19(0x17d)](_0x5c1a19(0x130),[_0x87713e]),this[_0x5c1a19(0x14f)][_0x5c1a19(0x18e)]??0x1;}async['textContent'](_0x2202e9){const _0x48ab86={_0x260807:0x14f},_0x177732=_0x5c6c84;return this[_0x177732(0x17d)]('textContent',[_0x2202e9]),this[_0x177732(_0x48ab86._0x260807)][_0x177732(0x132)]??'';}async[_0x5c6c84(0x14c)](_0x3f25c3){const _0x4d2148={_0x514cae:0x17d,_0x2da561:0x14f,_0x176db2:0x178},_0xec864=_0x5c6c84;return this[_0xec864(_0x4d2148._0x514cae)](_0xec864(0x14c),[_0x3f25c3]),this[_0xec864(_0x4d2148._0x2da561)][_0xec864(_0x4d2148._0x176db2)]??this[_0xec864(_0x4d2148._0x2da561)][_0xec864(0x132)]??'';}async['inputValue'](_0x2cd04b){const _0x44b0b2={_0x324b91:0x17d,_0x2b6d72:0x123,_0x56b3b6:0x162},_0x3cdc33=_0x5c6c84;return this[_0x3cdc33(_0x44b0b2._0x324b91)](_0x3cdc33(_0x44b0b2._0x2b6d72),[_0x2cd04b]),this[_0x3cdc33(0x14f)][_0x3cdc33(_0x44b0b2._0x56b3b6)]??'';}async[_0x5c6c84(0x147)](_0x54d505){const _0x27e38e={_0x1b4434:0x17d,_0x2c64a8:0x14f},_0xd751ae=_0x5c6c84;return this[_0xd751ae(_0x27e38e._0x1b4434)](_0xd751ae(0x147),[_0x54d505]),this[_0xd751ae(_0x27e38e._0x2c64a8)][_0xd751ae(0x171)]??null;}async[_0x5c6c84(0x157)](_0x48781f){const _0x3b9c47={_0xbf7d9c:0x157,_0x5b71f5:0x14f},_0x3ea44a=_0x5c6c84;return this[_0x3ea44a(0x17d)](_0x3ea44a(_0x3b9c47._0xbf7d9c),[_0x48781f]),this[_0x3ea44a(_0x3b9c47._0x5b71f5)][_0x3ea44a(0x16b)]??!![];}async[_0x5c6c84(0x160)](_0x22a4da){const _0x322bd6={_0x51897f:0x17d,_0x3fb121:0x14f},_0xe1da4d=_0x5c6c84;return this[_0xe1da4d(_0x322bd6._0x51897f)](_0xe1da4d(0x160),[_0x22a4da]),this[_0xe1da4d(_0x322bd6._0x3fb121)][_0xe1da4d(0x180)]??![];}async[_0x5c6c84(0x18c)](_0x194701,_0x3be05e){const _0x12eae8={_0x2e83c4:0x18c},_0x5205fb=_0x5c6c84;return this['record'](_0x5205fb(_0x12eae8._0x2e83c4),[_0x194701,_0x3be05e]),this['behavior'][_0x5205fb(0x185)]?.[_0x3be05e]??null;}async[_0x5c6c84(0x156)](_0x55499c,_0x26b0b4){this['record']('waitFor',[_0x55499c,_0x26b0b4]);}async[_0x5c6c84(0x152)](_0x801601,_0x7d8e40){const _0x1d2ac1={_0xd8a600:0x17d,_0x42e0c5:0x152},_0x3cf77f=_0x5c6c84;this[_0x3cf77f(_0x1d2ac1._0xd8a600)](_0x3cf77f(_0x1d2ac1._0x42e0c5),[_0x801601,_0x7d8e40]);}async[_0x5c6c84(0x142)](_0x7a0fd8,_0x229135){const _0x8d7ff2=_0x5c6c84;this['record'](_0x8d7ff2(0x142),[_0x7a0fd8,_0x229135]);}async['waitForNavigation'](_0x32c49d){const _0x45e640=_0x5c6c84;this[_0x45e640(0x17d)]('waitForNavigation',[_0x32c49d]);}async[_0x5c6c84(0x131)](_0x590df8,_0x20ff23){const _0x24cab1=_0x5c6c84;this['record'](_0x24cab1(0x131),[_0x590df8,_0x20ff23]);}async['goto'](_0x389b74,_0x52d58a){const _0x17d9c6={_0x599aa3:0x17a},_0xce0f18=_0x5c6c84;this['record'](_0xce0f18(_0x17d9c6._0x599aa3),[_0x389b74,_0x52d58a]),this['currentUrl']=_0x389b74;}async[_0x5c6c84(0x128)](_0x277a8b){const _0x1c6530=_0x5c6c84;this[_0x1c6530(0x17d)](_0x1c6530(0x128),[_0x277a8b]);}async[_0x5c6c84(0x149)](_0x23c4e6){const _0x5b49df={_0x3f7567:0x149},_0x190113=_0x5c6c84;this[_0x190113(0x17d)](_0x190113(_0x5b49df._0x3f7567),[_0x23c4e6]);}async[_0x5c6c84(0x11b)](_0x3dc137){const _0x216f43=_0x5c6c84;this['record'](_0x216f43(0x11b),[_0x3dc137]);}async[_0x5c6c84(0x183)](_0x295681){const _0x4e27e6={_0x264adc:0x17e},_0x3e81b5=_0x5c6c84;return this[_0x3e81b5(0x17d)]('evaluate',[_0x295681]),this['behavior'][_0x3e81b5(_0x4e27e6._0x264adc)];}async[_0x5c6c84(0x17f)](_0x47f825,_0x15687a){const _0x584b62={_0x32d48e:0x17d,_0x311915:0x17f},_0x1d9ccb=_0x5c6c84;return this[_0x1d9ccb(_0x584b62._0x32d48e)](_0x1d9ccb(_0x584b62._0x311915),[_0x47f825,_0x15687a]),void 0x0;}async[_0x5c6c84(0x177)](_0x10e117){const _0x443432={_0x394364:0x141,_0x14ac83:0x170,_0x7382ea:0x141,_0x2e1523:0x14f,_0x1ce18c:0x15f},_0x50e531=_0x5c6c84;this['record'](_0x50e531(0x177),[_0x10e117]);if(_0x10e117[_0x50e531(0x141)][_0x50e531(0x195)]!==0x1||_0x10e117[_0x50e531(_0x443432._0x394364)][0x0]['kind']!==_0x50e531(_0x443432._0x14ac83))return null;const _0x40ac27=_0x10e117[_0x50e531(_0x443432._0x7382ea)][0x0]['ref'],_0x21e18d=this[_0x50e531(_0x443432._0x2e1523)][_0x50e531(_0x443432._0x1ce18c)]?.[_0x40ac27];return _0x21e18d??null;}async[_0x5c6c84(0x14e)](_0x23c472){const _0x34181e={_0x43fad5:0x17d,_0x42eb50:0x16c},_0x196e52=_0x5c6c84;return this[_0x196e52(_0x34181e._0x43fad5)](_0x196e52(0x14e),[_0x23c472]),this['screenshotBytes'](_0x23c472?.[_0x196e52(_0x34181e._0x42eb50)]);}async[_0x5c6c84(0x168)](_0x3472c9,_0x1d59da){const _0x74b4b3=_0x5c6c84;return this[_0x74b4b3(0x17d)](_0x74b4b3(0x168),[_0x3472c9,_0x1d59da]),this['screenshotBytes'](_0x1d59da?.[_0x74b4b3(0x16c)]);}['screenshotBytes'](_0x5ea5d5){const _0x263580={_0x278bbb:0x158,_0x347b2b:0x12d},_0x11b53b=_0x5c6c84,_0x7e2f25=this[_0x11b53b(0x14f)]['screenshotBytes'];if(_0x7e2f25===void 0x0)return Buffer[_0x11b53b(0x155)](_0x11b53b(_0x263580._0x278bbb));return typeof _0x7e2f25===_0x11b53b(_0x263580._0x347b2b)?_0x7e2f25(_0x5ea5d5):_0x7e2f25;}async['outerHTML'](_0x2ca328){const _0x1e0098={_0x50d088:0x15e,_0x453a98:0x189},_0x441826=_0x5c6c84;this[_0x441826(0x17d)]('outerHTML',[_0x2ca328]);if(_0x2ca328[_0x441826(0x141)]['length']===0x1&&_0x2ca328[_0x441826(0x141)][0x0][_0x441826(0x194)]===_0x441826(0x170)){const _0x487d0b=_0x2ca328[_0x441826(0x141)][0x0]['ref'];return this[_0x441826(0x14f)][_0x441826(_0x1e0098._0x50d088)]?.[_0x487d0b]??_0x441826(0x127)+_0x487d0b+_0x441826(_0x1e0098._0x453a98);}return _0x441826(0x13d);}},FakeContext=class{constructor(_0x20b584,_0x345ab6,_0x35b119){const _0x40c520={_0x47a423:0x122,_0x59a3d0:0x139,_0x2727ac:0x179},_0x18b193=_0x5c6c84;this['recorder']=_0x20b584,this[_0x18b193(0x14f)]=_0x345ab6,this['scope']=_0x35b119;const _0x22bb65=new FakePage(_0x20b584,_0x345ab6,_0x35b119+'.page0',_0x345ab6[_0x18b193(0x17c)]??'about:blank');_0x345ab6[_0x18b193(_0x40c520._0x47a423)]&&(_0x22bb65[_0x18b193(0x151)]=()=>{const _0x43b74f=_0x18b193;this[_0x43b74f(0x196)](_0x345ab6[_0x43b74f(0x122)]);}),this['pageList']=[_0x22bb65],this[_0x18b193(_0x40c520._0x59a3d0)]={..._0x345ab6[_0x18b193(_0x40c520._0x2727ac)]??{}},this['cookieState']={..._0x345ab6['cookies']??{}};}['recorder'];[_0x5c6c84(0x14f)];[_0x5c6c84(0x153)];static{__name(this,_0x5c6c84(0x148));}[_0x5c6c84(0x12f)];[_0x5c6c84(0x140)]=0x0;[_0x5c6c84(0x125)]=[];[_0x5c6c84(0x139)];[_0x5c6c84(0x188)];[_0x5c6c84(0x167)]=new Set();[_0x5c6c84(0x17d)](_0x39246f,_0x20d11a){const _0x1dd474=_0x5c6c84;this[_0x1dd474(0x192)]['push']({'scope':this[_0x1dd474(0x153)],'method':_0x39246f,'args':_0x20d11a});}[_0x5c6c84(0x197)](){const _0x5c53e1={_0x308efb:0x12f},_0x4f7692=_0x5c6c84;return this[_0x4f7692(_0x5c53e1._0x308efb)];}[_0x5c6c84(0x16a)](){const _0x1b720c={_0x3511e6:0x14b},_0x2e3a75=_0x5c6c84,_0x256efd=this[_0x2e3a75(0x12f)][this['activeIdx']];if(!_0x256efd)throw new DriverError(_0x2e3a75(_0x1b720c._0x3511e6),{'activeIdx':this[_0x2e3a75(0x140)]});return _0x256efd;}[_0x5c6c84(0x176)](){const _0x216dc1={_0x394366:0x176},_0x5221da=_0x5c6c84;return this[_0x5221da(0x14f)][_0x5221da(_0x216dc1._0x394366)]??[];}[_0x5c6c84(0x136)](){const _0x41e56a={_0x3c7c65:0x136},_0xc8679c=_0x5c6c84;return this[_0xc8679c(0x14f)][_0xc8679c(_0x41e56a._0x3c7c65)]??[];}async[_0x5c6c84(0x154)](_0xf84794){const _0x8e1b63={_0x4f92f5:0x17d,_0xee47d8:0x154,_0x10dc5a:0x12f,_0x58b58a:0x193,_0x1bb85d:0x195,_0x51c187:0x140,_0x26e589:0x195},_0x996cb3=_0x5c6c84;this[_0x996cb3(_0x8e1b63._0x4f92f5)](_0x996cb3(_0x8e1b63._0xee47d8),[_0xf84794]);if(_0xf84794<0x0||_0xf84794>=this[_0x996cb3(_0x8e1b63._0x10dc5a)][_0x996cb3(0x195)])throw new DriverError(_0x996cb3(_0x8e1b63._0x58b58a),{'index':_0xf84794,'available':this['pageList'][_0x996cb3(_0x8e1b63._0x1bb85d)]});this[_0x996cb3(_0x8e1b63._0x51c187)]=_0xf84794,this['frameStack'][_0x996cb3(_0x8e1b63._0x26e589)]=0x0;}[_0x5c6c84(0x13c)](_0x30932a){const _0x4929c7=_0x5c6c84;return subscribe(this[_0x4929c7(0x167)],_0x30932a);}['emitFakePopup'](_0x5aec9c){const _0x4839b3={_0x4da35b:0x192,_0x576f0b:0x14f,_0x1aaae2:0x195},_0x133628=_0x5c6c84,_0x2cdafa=this[_0x133628(0x153)]+_0x133628(0x169)+this['pageList'][_0x133628(0x195)],_0x4b6303=new FakePage(this[_0x133628(_0x4839b3._0x4da35b)],this[_0x133628(_0x4839b3._0x576f0b)],_0x2cdafa,_0x5aec9c);this['pageList'][_0x133628(0x14d)](_0x4b6303);const _0x52eedf=this['pageList'][_0x133628(_0x4839b3._0x1aaae2)]-0x1;for(const _0x3a7161 of this['newPageListeners']){try{_0x3a7161({'index':_0x52eedf,'url':_0x5aec9c});}catch{}}return _0x52eedf;}[_0x5c6c84(0x124)](_0x1f346d){const _0x5c90d7={_0x897be2:0x12f,_0x511229:0x12f,_0x3541a2:0x15c},_0x5d7969=_0x5c6c84;if(_0x1f346d<0x0||_0x1f346d>=this[_0x5d7969(0x12f)][_0x5d7969(0x195)])throw new DriverError(_0x5d7969(0x193),{'index':_0x1f346d,'available':this[_0x5d7969(_0x5c90d7._0x897be2)][_0x5d7969(0x195)]});this[_0x5d7969(_0x5c90d7._0x511229)][_0x5d7969(_0x5c90d7._0x3541a2)](_0x1f346d,0x1);}async[_0x5c6c84(0x146)](_0x46081f){const _0x365f93={_0x26b834:0x141,_0x1a679f:0x18a,_0x4e44e5:0x125},_0x24ea9b=_0x5c6c84;this['record'](_0x24ea9b(0x146),[_0x46081f]);if(!_0x46081f[_0x24ea9b(_0x365f93._0x26b834)]['length'])throw new LocatorError(_0x24ea9b(_0x365f93._0x1a679f),{'locator':_0x46081f});this[_0x24ea9b(_0x365f93._0x4e44e5)][_0x24ea9b(0x14d)](_0x46081f);}async[_0x5c6c84(0x199)](){const _0x4a56ea={_0x4ccf4b:0x199,_0x3c915e:0x12b,_0x34b6e6:0x198},_0x93bc66=_0x5c6c84;this['record'](_0x93bc66(_0x4a56ea._0x4ccf4b),[]);if(this['frameStack'][_0x93bc66(0x195)]===0x0)throw new DriverError(_0x93bc66(_0x4a56ea._0x3c915e),{});this['frameStack'][_0x93bc66(_0x4a56ea._0x34b6e6)]();}async[_0x5c6c84(0x182)](_0x36a945,_0x2f0d7e){const _0xd1a0a3=_0x5c6c84;this[_0xd1a0a3(0x17d)]('setLocalStorage',[_0x36a945,_0x2f0d7e]),this[_0xd1a0a3(0x139)][_0x36a945]=_0x2f0d7e;}async[_0x5c6c84(0x129)](_0x3ac7a0){const _0x2ef1a9={_0x7b95c5:0x17d},_0x5188d4=_0x5c6c84;return this[_0x5188d4(_0x2ef1a9._0x7b95c5)](_0x5188d4(0x129),[_0x3ac7a0]),this[_0x5188d4(0x139)][_0x3ac7a0]??null;}async[_0x5c6c84(0x14a)](_0x2b83cf,_0x2ac82a,_0x5cc8f4){const _0x165451={_0x247f47:0x17d,_0x5869df:0x14a,_0x10003:0x188},_0x13091d=_0x5c6c84;this[_0x13091d(_0x165451._0x247f47)](_0x13091d(_0x165451._0x5869df),[_0x2b83cf,_0x2ac82a,_0x5cc8f4]),this[_0x13091d(_0x165451._0x10003)][_0x2b83cf]=_0x2ac82a;}async[_0x5c6c84(0x11e)](_0x3a5b9a){const _0x581df2={_0x45f654:0x188},_0x3d4d77=_0x5c6c84;return this[_0x3d4d77(0x17d)](_0x3d4d77(0x11e),[_0x3a5b9a]),this[_0x3d4d77(_0x581df2._0x45f654)][_0x3a5b9a]??null;}async[_0x5c6c84(0x11c)](_0x3e3d1e){const _0x511acf=_0x5c6c84;this[_0x511acf(0x17d)]('saveStorageState',[_0x3e3d1e]);}async['evaluate'](_0x5c18c4){const _0x172a25={_0xf1265e:0x17d,_0x43d0fe:0x183},_0x4d39df=_0x5c6c84;return this[_0x4d39df(_0x172a25._0xf1265e)](_0x4d39df(_0x172a25._0x43d0fe),[_0x5c18c4]),void 0x0;}async[_0x5c6c84(0x187)](){const _0x133970={_0x16abfe:0x187},_0x12c4f3=_0x5c6c84;this['record'](_0x12c4f3(_0x133970._0x16abfe),[]);}[_0x5c6c84(0x16f)](){const _0x4d0d3a={_0x418c78:0x195},_0x51c19a=_0x5c6c84;return this[_0x51c19a(0x125)][_0x51c19a(_0x4d0d3a._0x418c78)];}},FakeWebDriver=class{constructor(_0x2b2d70={}){const _0x4234cd={_0x56efc4:0x192},_0x19188e=_0x5c6c84;this[_0x19188e(0x14f)]=_0x2b2d70,this[_0x19188e(_0x4234cd._0x56efc4)]=createRecorder();}[_0x5c6c84(0x14f)];static{__name(this,'FakeWebDriver');}[_0x5c6c84(0x18d)]=![];[_0x5c6c84(0x192)];['contexts']=[];async[_0x5c6c84(0x120)](_0x199813){const _0x321f00={_0x4df0a4:0x14d,_0x2f5a00:0x120,_0x4856d7:0x18d},_0x48a654=_0x5c6c84;this[_0x48a654(0x192)][_0x48a654(_0x321f00._0x4df0a4)]({'scope':'driver','method':_0x48a654(_0x321f00._0x2f5a00),'args':[_0x199813]}),this[_0x48a654(_0x321f00._0x4856d7)]=!![];}async[_0x5c6c84(0x11a)](_0x257b11){const _0x754b11={_0x310957:0x192,_0x4b77cd:0x18f,_0x25286e:0x11a,_0x45f584:0x14f,_0x4e2281:0x144,_0x5ac335:0x14d},_0x1a80a8=_0x5c6c84;this[_0x1a80a8(_0x754b11._0x310957)]['push']({'scope':_0x1a80a8(_0x754b11._0x4b77cd),'method':_0x1a80a8(_0x754b11._0x25286e),'args':[_0x257b11]});if(!this['launched'])throw new DriverError(_0x1a80a8(0x137),{});const _0x2e566e=new FakeContext(this[_0x1a80a8(0x192)],this[_0x1a80a8(_0x754b11._0x45f584)],_0x1a80a8(0x163)+this['contexts']['length']);return this[_0x1a80a8(_0x754b11._0x4e2281)][_0x1a80a8(_0x754b11._0x5ac335)](_0x2e566e),_0x2e566e;}async[_0x5c6c84(0x187)](){const _0x3e1986={_0x32ad2b:0x192,_0x37f10e:0x187},_0x32ed86=_0x5c6c84;this[_0x32ed86(_0x3e1986._0x32ad2b)]['push']({'scope':_0x32ed86(0x18f),'method':_0x32ed86(_0x3e1986._0x37f10e),'args':[]}),this['launched']=![];}[_0x5c6c84(0x16d)](){return void 0x0;}async[_0x5c6c84(0x175)](){throw new DriverError('connectShared\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x5c6c84(0x12a)](_0x2e6be5){const _0xdec9de=_0x5c6c84;throw new DriverError(_0xdec9de(0x143),{});}[_0x5c6c84(0x121)](){const _0xb42520={_0x463024:0x121},_0x444f8d=_0x5c6c84;return this[_0x444f8d(0x192)][_0x444f8d(_0xb42520._0x463024)]();}[_0x5c6c84(0x164)](_0x6319eb){const _0x1d209a={_0x418025:0x135},_0x33401e=_0x5c6c84;return this[_0x33401e(0x192)]['calls']()[_0x33401e(_0x1d209a._0x418025)](_0x2ad9ae=>_0x2ad9ae[_0x33401e(0x181)]===_0x6319eb);}};export{FakeWebDriver};
|
|
1
|
+
const _0x426ece=_0x1de0;(function(_0x33b7fd,_0x29f38f){const _0xfff5bb={_0x52fbd1:0x9f,_0x273e77:0xe0,_0x498f7f:0xdc,_0x439fcc:0x8d},_0x2259e6=_0x1de0,_0x463081=_0x33b7fd();while(!![]){try{const _0x30a4d2=-parseInt(_0x2259e6(_0xfff5bb._0x52fbd1))/0x1+-parseInt(_0x2259e6(0xc8))/0x2+parseInt(_0x2259e6(0xe3))/0x3*(parseInt(_0x2259e6(_0xfff5bb._0x273e77))/0x4)+-parseInt(_0x2259e6(_0xfff5bb._0x498f7f))/0x5+-parseInt(_0x2259e6(0x102))/0x6*(-parseInt(_0x2259e6(0x98))/0x7)+parseInt(_0x2259e6(0x109))/0x8+-parseInt(_0x2259e6(_0xfff5bb._0x439fcc))/0x9*(parseInt(_0x2259e6(0xb1))/0xa);if(_0x30a4d2===_0x29f38f)break;else _0x463081['push'](_0x463081['shift']());}catch(_0x1d6452){_0x463081['push'](_0x463081['shift']());}}}(_0x2b0f,0x33933));var __defProp=Object[_0x426ece(0x103)],__name=(_0x1e11d5,_0x58ba65)=>__defProp(_0x1e11d5,'name',{'value':_0x58ba65,'configurable':!![]});function _0x2b0f(){const _0x2ac1b6=['Aw5WDxrwywX1zq','C2f2zvn0B3jHz2vtDgf0zq','CMvJB3jKzxi','mZeXmJH0zvrUsKm','zgvMAw5LuhjVCgvYDhK','tg9JyxrVCKvYCM9Y','C3bSAwnL','DxjS','z2v0q29VA2LL','Aw5WDxrwywX1zuj5rgvMyxvSDa','mteYmdG3mKPfBgvWAG','yxr0CMLIDxrLC0j5rgvMyxvSDa','mtKXndKZouzJDKnKBa','zhjHz0fUzerYB3a','z29cywnR','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','Bg9JywXtDg9YywDLu3rHDgu','B25bzNrLCKnSAwnR','rMfRzvDLyKrYAxzLCG','D2fPDezVCLvYBa','CgfNzuXPC3q','ywn0AxzLswr4','Cg9WDxbpBKnSAwnR','mZCXrMnqEKvz','BMv3ugfNzuXPC3rLBMvYCW','zNvUy3rPB24','zhjPDMvY','y2HLy2TLzfn0yxrL','ywn0AxzLugfNzq','CgfNzxm','mte5mZmWBxDJAwrk','Dgv4DenVBNrLBNrcEurLzMf1Bhq','BgvUz3rO','AxnwAxnPyMXL','zMfRzsb0AxrSzq','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','pgrPDJ48l2rPDJ4','C2nYzwvUC2HVDa','DhLWzq','y3vYCMvUDfvYBa','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','zg91yMXLq2XPy2S','CMvSB2fK','C3rLChm','C2nVCgu','Bgf1BMnO','zxzHBhvHDgu','z2v0qxr0CMLIDxrL','mtbcvgvtEg4','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','D2fPDezVCKXVywrtDgf0zq','CMvJB3jK','y291BNrcEurLzMf1Bhq','CMvM','y2XPy2S','y29VA2LLCW','zgvSzxrL','yxr0ywnOrxHPC3rPBMC','y291BNq','C2v0q29VA2LL','zxjYB3jpBK5LEhrby3rPB24','z2v0tg9JywXtDg9YywDL','B3v0zxjive1m','C2nYzwvUC2HVDevSzw1LBNq','rhjPDMvYrxjYB3i','zMLSDgvY','C2nYzwvUC2HVDej5DgvZ','BMv3q29UDgv4Da','zw1PDezHA2vqB3b1Ca','z29gB3j3yxjK','C2v0qwn0AxzLugfNzq','otmYodzHy2TtvvK','y2XVC2u','Bgf1BMnOzwq','Bwv0Ag9K','AxneAxnHyMXLza','Aw5PDgLHBfvYBa','y2fSBhm','Dgv4DenVBNrLBNq','AxnwAxnPyMXLqNLezwzHDwX0','D3nfBMrWB2LUDa','zxzHBhvHDgvpBKXVy2f0B3i','Ag92zxi','lNbHz2u','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','zMfRzs1WBMC','y29UDgv4Dhm','z290BW','ChjLC3m','Aw5ZCgvJDevSzw1LBNq','A2LUza','mte1ndG1A1nXDevN','y29UC29SzuvUDhjPzxm','B25ozxDqywDL','yMvOyxzPB3i','nZKYmdC2ve5nB2nP','y2fSBhngB3i','zxzHBhvHDgvszxn1Bhq','m1j1uKzLqG','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','ywrK','y2HLy2TLzfn0yxrLqNLezwzHDwX0','lNbHz2uW','zNjHBwvtDgfJAW','DxbSB2fKrMLSzq','C2nYB2XSsw50B1zPzxC','y3jLyxrLuMvJB3jKzxi','C2v0tg9JywXtDg9YywDL','Aw5UzxjuzxH0qNLezwzHDwX0','y29VA2LLu3rHDgu','D2fPDezVCG','y3r4','C3vIC2nYAwjL','C2vSzwn0t3b0Aw9U','D2fPDezVCK5HDMLNyxrPB24','ChvZAa','Bwf5yMvuAhjVDW','Dw5JAgvJAW','ywjVDxq6yMXHBMS','rMfRzunVBNrLEhq','zxHPDezYyw1L','D2fPDezVCLrLEhq','y2XPCgjVyxjKugfZDgu','y2HLy2S','BMv0D29YA0vUDhjPzxm','iJ48l2rPDJ4'];_0x2b0f=function(){return _0x2ac1b6;};return _0x2b0f();}function _0x1de0(_0xcf1065,_0x5da570){_0xcf1065=_0xcf1065-0x8d;const _0x2b0f7a=_0x2b0f();let _0x1de07b=_0x2b0f7a[_0xcf1065];if(_0x1de0['KLSyLY']===undefined){var _0x5d5144=function(_0x4c43e2){const _0x168379='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e11d5='',_0x58ba65='';for(let _0x35e6d7=0x0,_0x5d279f,_0x26b6b9,_0x31213c=0x0;_0x26b6b9=_0x4c43e2['charAt'](_0x31213c++);~_0x26b6b9&&(_0x5d279f=_0x35e6d7%0x4?_0x5d279f*0x40+_0x26b6b9:_0x26b6b9,_0x35e6d7++%0x4)?_0x1e11d5+=String['fromCharCode'](0xff&_0x5d279f>>(-0x2*_0x35e6d7&0x6)):0x0){_0x26b6b9=_0x168379['indexOf'](_0x26b6b9);}for(let _0x22c5d0=0x0,_0x167954=_0x1e11d5['length'];_0x22c5d0<_0x167954;_0x22c5d0++){_0x58ba65+='%'+('00'+_0x1e11d5['charCodeAt'](_0x22c5d0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x58ba65);};_0x1de0['uJMHeI']=_0x5d5144,_0x1de0['BobIjF']={},_0x1de0['KLSyLY']=!![];}const _0x3cb3d8=_0x2b0f7a[0x0],_0x156c1e=_0xcf1065+_0x3cb3d8,_0xf6932f=_0x1de0['BobIjF'][_0x156c1e];return!_0xf6932f?(_0x1de07b=_0x1de0['uJMHeI'](_0x1de07b),_0x1de0['BobIjF'][_0x156c1e]=_0x1de07b):_0x1de07b=_0xf6932f,_0x1de07b;}function subscribe(_0x35e6d7,_0x5d279f){const _0x3be862={_0x5e3d4d:0xe5},_0x256a67={_0x446cdc:0xb9},_0x229f58=_0x426ece;return _0x35e6d7[_0x229f58(_0x3be862._0x5e3d4d)](_0x5d279f),()=>{const _0x25d04f=_0x229f58;_0x35e6d7[_0x25d04f(_0x256a67._0x446cdc)](_0x5d279f);};}__name(subscribe,_0x426ece(0xf1));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x426ece(0xc1));}},LocatorError=class extends UnotestError{static{__name(this,_0x426ece(0x104));}};function createRecorder(){const _0x2d88d9={_0x217bb3:0xf4},_0x96242c=_0x426ece,_0x26b6b9=[];let _0x31213c=0x0;return{'push':__name(_0x22c5d0=>_0x26b6b9[_0x96242c(0xf4)]({..._0x22c5d0,'seq':_0x31213c++}),_0x96242c(_0x2d88d9._0x217bb3)),'calls':__name(()=>_0x26b6b9,'calls')};}__name(createRecorder,_0x426ece(0xeb));var FakePage=class{constructor(_0x167954,_0x1d6a29,_0x163c12,_0x10e7d2){const _0x29265b={_0x1c102a:0xa8},_0x142129=_0x426ece;this['recorder']=_0x167954,this[_0x142129(0xdf)]=_0x1d6a29,this['scope']=_0x163c12,this[_0x142129(_0x29265b._0x1c102a)]=_0x10e7d2;}[_0x426ece(0x101)];['behavior'];[_0x426ece(0xad)];static{__name(this,'FakePage');}['currentUrl'];['onAfterClick'];['record'](_0x69fd1a,_0x131fbd){const _0x5ce597=_0x426ece;this['recorder']['push']({'scope':this[_0x5ce597(0xad)],'method':_0x69fd1a,'args':_0x131fbd});}['maybeThrow'](){const _0x35af42={_0x2a9ad8:0xbd,_0x178e31:0xdf},_0x2b98c6=_0x426ece;if(this[_0x2b98c6(0xdf)][_0x2b98c6(_0x35af42._0x2a9ad8)]){const _0x3f84ef=this[_0x2b98c6(0xdf)][_0x2b98c6(0xbd)];this[_0x2b98c6(_0x35af42._0x178e31)][_0x2b98c6(0xbd)]=void 0x0;throw _0x3f84ef;}}[_0x426ece(0x106)](){return this['currentUrl'];}async['title'](){const _0x378911={_0x2d198c:0xb4,_0x3184eb:0xa3},_0x335070=_0x426ece;return this[_0x335070(_0x378911._0x2d198c)]('title',[]),_0x335070(_0x378911._0x3184eb);}async[_0x426ece(0xb7)](_0x515d3f,_0x134e22){const _0x364326={_0x482a76:0xb7,_0x314cd5:0x92},_0x26464a=_0x426ece;this[_0x26464a(0xb4)](_0x26464a(_0x364326._0x482a76),[_0x515d3f,_0x134e22]),this['maybeThrow'](),this[_0x26464a(_0x364326._0x314cd5)]?.();}async[_0x426ece(0xaa)](_0x4a7647,_0x8661ea){const _0x5f16dd={_0x170634:0xaa},_0x430fab=_0x426ece;this[_0x430fab(0xb4)](_0x430fab(_0x5f16dd._0x170634),[_0x4a7647,_0x8661ea]),this['maybeThrow']();}async['fill'](_0x43a183,_0x286ee6,_0x815deb){const _0x157eaf=_0x426ece;this['record']('fill',[_0x43a183,_0x286ee6,_0x815deb]),this[_0x157eaf(0xf5)]();}async[_0x426ece(0xd9)](_0x28db79,_0x1de0f7,_0x4bb4ba){const _0x2f6f2c={_0x593a17:0xb4,_0x2148e0:0xf5},_0x1929dd=_0x426ece;this[_0x1929dd(_0x2f6f2c._0x593a17)]('press',[_0x28db79,_0x1de0f7,_0x4bb4ba]),this[_0x1929dd(_0x2f6f2c._0x2148e0)]();}async[_0x426ece(0xfc)](_0x2c6a12,_0x30521d){const _0x3608fc=_0x426ece;this['record']('check',[_0x2c6a12,_0x30521d]),this[_0x3608fc(0xf5)]();}async['uncheck'](_0x37f27b,_0x55900f){const _0x75774={_0x1233b6:0xf5},_0x2e7cf2=_0x426ece;this['record'](_0x2e7cf2(0xf6),[_0x37f27b,_0x55900f]),this[_0x2e7cf2(_0x75774._0x1233b6)]();}async[_0x426ece(0xf2)](_0xd48f0c,_0x3fb18a,_0x15d70e){const _0x5ac3b7={_0x428053:0xb4,_0xa39844:0xf2},_0x36f498=_0x426ece;this[_0x36f498(_0x5ac3b7._0x428053)](_0x36f498(_0x5ac3b7._0xa39844),[_0xd48f0c,_0x3fb18a,_0x15d70e]),this[_0x36f498(0xf5)]();}async['hover'](_0x4fd446,_0x39758c){const _0x2d2b24=_0x426ece;this[_0x2d2b24(0xb4)](_0x2d2b24(0xd3),[_0x4fd446,_0x39758c]),this['maybeThrow']();}async[_0x426ece(0xea)](_0x33dd81){const _0x5add60={_0x3b0df9:0xb4,_0x43e672:0xf5},_0x4d90c6=_0x426ece;this[_0x4d90c6(_0x5add60._0x3b0df9)]('scrollIntoView',[_0x33dd81]),this[_0x4d90c6(_0x5add60._0x43e672)]();}async[_0x426ece(0x8e)](_0x3feff0,_0x4129aa,_0x51b136){const _0x17307a={_0xd28473:0xf5},_0x11f1e6=_0x426ece;this['record'](_0x11f1e6(0x8e),[_0x3feff0,_0x4129aa,_0x51b136]),this[_0x11f1e6(_0x17307a._0xd28473)]();}async['uploadFile'](_0x2dc0ca,_0x47ab6d){const _0x5ca301={_0xed1a11:0xe9},_0x326b0c=_0x426ece;this[_0x326b0c(0xb4)](_0x326b0c(_0x5ca301._0xed1a11),[_0x2dc0ca,_0x47ab6d]),this['maybeThrow']();}async[_0x426ece(0xfb)](_0x54d74c,_0x27d233){const _0x56eca9={_0x3566bf:0xf5},_0x2f3b82=_0x426ece;this[_0x2f3b82(0xb4)]('clipboardPaste',[_0x54d74c,_0x27d233]),this[_0x2f3b82(_0x56eca9._0x3566bf)]();}async['count'](_0x21f934){const _0x5a7d3f={_0x154662:0xb4,_0x1d9c22:0xbb,_0x592e30:0xdf},_0x525b23=_0x426ece;return this[_0x525b23(_0x5a7d3f._0x154662)](_0x525b23(_0x5a7d3f._0x1d9c22),[_0x21f934]),this[_0x525b23(_0x5a7d3f._0x592e30)][_0x525b23(0xb5)]??0x1;}async[_0x426ece(0xcf)](_0x475872){const _0x60cfad={_0x3a7082:0xcf,_0x10c5a3:0xdf},_0x904da3=_0x426ece;return this[_0x904da3(0xb4)](_0x904da3(_0x60cfad._0x3a7082),[_0x475872]),this[_0x904da3(_0x60cfad._0x10c5a3)]['textContentByDefault']??'';}async['innerText'](_0x1cf3d5){const _0x2a11bf={_0x1a2309:0xed},_0x515675=_0x426ece;return this['record']('innerText',[_0x1cf3d5]),this[_0x515675(0xdf)][_0x515675(_0x2a11bf._0x1a2309)]??this['behavior'][_0x515675(0xa0)]??'';}async[_0x426ece(0xff)](_0x2cfe76){const _0x53f504={_0x4b48eb:0xdf,_0x4bed98:0x108},_0x1c7da8=_0x426ece;return this[_0x1c7da8(0xb4)](_0x1c7da8(0xff),[_0x2cfe76]),this[_0x1c7da8(_0x53f504._0x4b48eb)][_0x1c7da8(_0x53f504._0x4bed98)]??'';}async[_0x426ece(0x9c)](_0x196ca9){const _0x23ab84={_0x404f53:0x9c,_0x121539:0xdf,_0x530e16:0xe6},_0x15b785=_0x426ece;return this['record'](_0x15b785(_0x23ab84._0x404f53),[_0x196ca9]),this[_0x15b785(_0x23ab84._0x121539)][_0x15b785(_0x23ab84._0x530e16)]??null;}async[_0x426ece(0xa2)](_0x190b45){const _0x77744f=_0x426ece;return this[_0x77744f(0xb4)](_0x77744f(0xa2),[_0x190b45]),this[_0x77744f(0xdf)][_0x77744f(0xd0)]??!![];}async[_0x426ece(0xcc)](_0x291bee){const _0x3761af={_0x3c87af:0xb4},_0x10b1b5=_0x426ece;return this[_0x10b1b5(_0x3761af._0x3c87af)](_0x10b1b5(0xcc),[_0x291bee]),this[_0x10b1b5(0xdf)]['isDisabledByDefault']??![];}async[_0x426ece(0xb0)](_0x497fe9,_0x10cca3){const _0x3a0eff={_0x33f670:0x10a},_0x334b5f=_0x426ece;return this['record'](_0x334b5f(0xb0),[_0x497fe9,_0x10cca3]),this['behavior'][_0x334b5f(_0x3a0eff._0x33f670)]?.[_0x10cca3]??null;}async['waitFor'](_0x126465,_0x2d47df){const _0x172674={_0x3d7f33:0xb4,_0x503849:0xef},_0x205368=_0x426ece;this[_0x205368(_0x172674._0x3d7f33)](_0x205368(_0x172674._0x503849),[_0x126465,_0x2d47df]);}async[_0x426ece(0x94)](_0x506a4f,_0x68951){const _0x2bd1ee={_0xfa21dd:0x94},_0x484995=_0x426ece;this[_0x484995(0xb4)](_0x484995(_0x2bd1ee._0xfa21dd),[_0x506a4f,_0x68951]);}async[_0x426ece(0xfa)](_0x40866c,_0x5084c3){const _0x44d621=_0x426ece;this['record'](_0x44d621(0xfa),[_0x40866c,_0x5084c3]);}async[_0x426ece(0xf3)](_0x55a7b9){const _0x47a671=_0x426ece;this[_0x47a671(0xb4)](_0x47a671(0xf3),[_0x55a7b9]);}async[_0x426ece(0xb3)](_0x3ab04e,_0x4667bd){const _0x1d0f02={_0xa171d5:0xb4},_0x2cb8cb=_0x426ece;this[_0x2cb8cb(_0x1d0f02._0xa171d5)](_0x2cb8cb(0xb3),[_0x3ab04e,_0x4667bd]);}async[_0x426ece(0xd8)](_0x4d34f3,_0x140879){const _0x557bf5={_0x1a6d55:0xd8},_0x1fcd9c=_0x426ece;this['record'](_0x1fcd9c(_0x557bf5._0x1a6d55),[_0x4d34f3,_0x140879]),this[_0x1fcd9c(0xa8)]=_0x4d34f3;}async['reload'](_0x2c9306){const _0x4fd053={_0x4786bb:0xb4,_0x5dae18:0xab},_0x43169b=_0x426ece;this[_0x43169b(_0x4fd053._0x4786bb)](_0x43169b(_0x4fd053._0x5dae18),[_0x2c9306]);}async[_0x426ece(0x8f)](_0x397000){const _0x5a52c6=_0x426ece;this[_0x5a52c6(0xb4)](_0x5a52c6(0x8f),[_0x397000]);}async[_0x426ece(0xc6)](_0x3209ef){const _0x4205aa={_0x164761:0xb4,_0x295598:0xc6},_0x3da038=_0x426ece;this[_0x3da038(_0x4205aa._0x164761)](_0x3da038(_0x4205aa._0x295598),[_0x3209ef]);}async['evaluate'](_0x25a2c2){const _0x17a545={_0x1b2d06:0xaf,_0x12a48a:0xe2},_0x51d25c=_0x426ece;return this[_0x51d25c(0xb4)](_0x51d25c(_0x17a545._0x1b2d06),[_0x25a2c2]),this[_0x51d25c(0xdf)][_0x51d25c(_0x17a545._0x12a48a)];}async[_0x426ece(0xd2)](_0x48ce32,_0x55cbc7){const _0xcafb68={_0x14fc42:0xb4,_0x3ee9a2:0xd2},_0x4ff186=_0x426ece;return this[_0x4ff186(_0xcafb68._0x14fc42)](_0x4ff186(_0xcafb68._0x3ee9a2),[_0x48ce32,_0x55cbc7]),void 0x0;}async[_0x426ece(0xda)](_0x30195c){const _0x1602a6={_0x5d8089:0xac,_0x5477c7:0xa1,_0x288b43:0xb6},_0x2e4103=_0x426ece;this[_0x2e4103(0xb4)](_0x2e4103(0xda),[_0x30195c]);if(_0x30195c[_0x2e4103(_0x1602a6._0x5d8089)][_0x2e4103(_0x1602a6._0x5477c7)]!==0x1||_0x30195c['steps'][0x0]['kind']!==_0x2e4103(_0x1602a6._0x288b43))return null;const _0xf8034e=_0x30195c[_0x2e4103(0xac)][0x0]['ref'],_0x478cbb=this['behavior']['elementHintByRef']?.[_0xf8034e];return _0x478cbb??null;}async['screenshot'](_0x126bd4){const _0x2d5162=_0x426ece;return this['record'](_0x2d5162(0xa6),[_0x126bd4]),this['screenshotBytes'](_0x126bd4?.['type']);}async[_0x426ece(0xc0)](_0x4001cc,_0x1bf989){const _0x343fc8={_0x4102b5:0xb4,_0x138cf9:0xc0,_0x1dcdcb:0xa7},_0x45fb7a=_0x426ece;return this[_0x45fb7a(_0x343fc8._0x4102b5)](_0x45fb7a(_0x343fc8._0x138cf9),[_0x4001cc,_0x1bf989]),this[_0x45fb7a(0xc3)](_0x1bf989?.[_0x45fb7a(_0x343fc8._0x1dcdcb)]);}[_0x426ece(0xc3)](_0x10825c){const _0x415802={_0x4b1f2e:0xc3},_0x219883=_0x426ece,_0xaee301=this[_0x219883(0xdf)][_0x219883(_0x415802._0x4b1f2e)];if(_0xaee301===void 0x0)return Buffer['from'](_0x219883(0xd6));return typeof _0xaee301===_0x219883(0x9a)?_0xaee301(_0x10825c):_0xaee301;}async[_0x426ece(0xbf)](_0x6ea1e6){const _0x1b89db={_0x444cdc:0xbf,_0x683d44:0xa1,_0x4f899e:0xac,_0x53b23d:0xfe,_0x42b9bd:0xa5},_0x426b1c=_0x426ece;this['record'](_0x426b1c(_0x1b89db._0x444cdc),[_0x6ea1e6]);if(_0x6ea1e6['steps'][_0x426b1c(_0x1b89db._0x683d44)]===0x1&&_0x6ea1e6[_0x426b1c(0xac)][0x0][_0x426b1c(0xdb)]==='ref'){const _0x3d04c2=_0x6ea1e6[_0x426b1c(_0x1b89db._0x4f899e)][0x0][_0x426b1c(0xb6)];return this['behavior']['outerHtmlByRef']?.[_0x3d04c2]??'<div\x20data-unotest-ref=\x22'+_0x3d04c2+_0x426b1c(_0x1b89db._0x53b23d);}return _0x426b1c(_0x1b89db._0x42b9bd);}},FakeContext=class{constructor(_0x35001c,_0x3f50ba,_0x467e0f){const _0x475579={_0x3d7c4f:0xdf,_0x394863:0xad,_0x4e9c10:0xf7},_0x4d7fbf={_0x510551:0x97},_0x4aab17=_0x426ece;this[_0x4aab17(0x101)]=_0x35001c,this[_0x4aab17(_0x475579._0x3d7c4f)]=_0x3f50ba,this[_0x4aab17(_0x475579._0x394863)]=_0x467e0f;const _0x307ace=new FakePage(_0x35001c,_0x3f50ba,_0x467e0f+_0x4aab17(0xe7),_0x3f50ba[_0x4aab17(0xcd)]??_0x4aab17(_0x475579._0x4e9c10));_0x3f50ba[_0x4aab17(0x97)]&&(_0x307ace['onAfterClick']=()=>{const _0x55493e=_0x4aab17;this['emitFakePopup'](_0x3f50ba[_0x55493e(_0x4d7fbf._0x510551)]);}),this[_0x4aab17(0x95)]=[_0x307ace],this[_0x4aab17(0x91)]={..._0x3f50ba['localStorage']??{}},this['cookieState']={..._0x3f50ba[_0x4aab17(0xb8)]??{}};}[_0x426ece(0x101)];[_0x426ece(0xdf)];[_0x426ece(0xad)];static{__name(this,_0x426ece(0xf8));}['pageList'];[_0x426ece(0x96)]=0x0;[_0x426ece(0xe8)]=[];['localStorageState'];[_0x426ece(0xee)];[_0x426ece(0x99)]=new Set();[_0x426ece(0xb4)](_0x19ccf8,_0x5cf96b){const _0x163f58={_0x4ed95a:0xad},_0x51d924=_0x426ece;this[_0x51d924(0x101)]['push']({'scope':this[_0x51d924(_0x163f58._0x4ed95a)],'method':_0x19ccf8,'args':_0x5cf96b});}[_0x426ece(0x9e)](){const _0x4caa6e={_0x5d1c7b:0x95},_0xb89844=_0x426ece;return this[_0xb89844(_0x4caa6e._0x5d1c7b)];}[_0x426ece(0x9d)](){const _0x4e196b={_0x10b817:0x95},_0x46c4a6=_0x426ece,_0x2103e7=this[_0x46c4a6(_0x4e196b._0x10b817)][this['activeIdx']];if(!_0x2103e7)throw new DriverError(_0x46c4a6(0xd5),{'activeIdx':this[_0x46c4a6(0x96)]});return _0x2103e7;}[_0x426ece(0xdd)](){const _0x3c517a={_0x413e27:0xdd},_0x1fb29a=_0x426ece;return this[_0x1fb29a(0xdf)][_0x1fb29a(_0x3c517a._0x413e27)]??[];}[_0x426ece(0xfd)](){const _0xa75d36=_0x426ece;return this['behavior'][_0xa75d36(0xfd)]??[];}async[_0x426ece(0xc7)](_0x3fa7a2){const _0x1cf4ea={_0x1d8cdc:0x95,_0x12337e:0x96},_0x4d7e5a=_0x426ece;this['record']('setActivePage',[_0x3fa7a2]);if(_0x3fa7a2<0x0||_0x3fa7a2>=this[_0x4d7e5a(_0x1cf4ea._0x1d8cdc)][_0x4d7e5a(0xa1)])throw new DriverError(_0x4d7e5a(0xa4),{'index':_0x3fa7a2,'available':this[_0x4d7e5a(0x95)][_0x4d7e5a(0xa1)]});this[_0x4d7e5a(_0x1cf4ea._0x12337e)]=_0x3fa7a2,this[_0x4d7e5a(0xe8)]['length']=0x0;}[_0x426ece(0xde)](_0x485a51){return subscribe(this['newPageListeners'],_0x485a51);}[_0x426ece(0xc5)](_0x377a99){const _0x327b14={_0x3e8cfe:0x101,_0x434d97:0xdf,_0x317292:0x95},_0x7eba5e=_0x426ece,_0x9ad6b6=this[_0x7eba5e(0xad)]+_0x7eba5e(0xd4)+this['pageList']['length'],_0x1f8b60=new FakePage(this[_0x7eba5e(_0x327b14._0x3e8cfe)],this[_0x7eba5e(_0x327b14._0x434d97)],_0x9ad6b6,_0x377a99);this[_0x7eba5e(_0x327b14._0x317292)][_0x7eba5e(0xf4)](_0x1f8b60);const _0x20f685=this[_0x7eba5e(_0x327b14._0x317292)][_0x7eba5e(0xa1)]-0x1;for(const _0x48ef11 of this['newPageListeners']){try{_0x48ef11({'index':_0x20f685,'url':_0x377a99});}catch{}}return _0x20f685;}['closeFakePage'](_0xd9e4b1){const _0x450831={_0xaa281c:0x95,_0x1b279a:0xa4,_0x304fa9:0xa1},_0x2db312=_0x426ece;if(_0xd9e4b1<0x0||_0xd9e4b1>=this[_0x2db312(_0x450831._0xaa281c)][_0x2db312(0xa1)])throw new DriverError(_0x2db312(_0x450831._0x1b279a),{'index':_0xd9e4b1,'available':this['pageList'][_0x2db312(_0x450831._0x304fa9)]});this[_0x2db312(0x95)][_0x2db312(0x105)](_0xd9e4b1,0x1);}async['enterFrame'](_0x481cce){const _0x4e4045=_0x426ece;this[_0x4e4045(0xb4)]('enterFrame',[_0x481cce]);if(!_0x481cce['steps'][_0x4e4045(0xa1)])throw new LocatorError(_0x4e4045(0x90),{'locator':_0x481cce});this[_0x4e4045(0xe8)][_0x4e4045(0xf4)](_0x481cce);}async[_0x426ece(0xf9)](){const _0x5e94af={_0x91f292:0xf9,_0x297db0:0xe8},_0x4345af=_0x426ece;this[_0x4345af(0xb4)](_0x4345af(_0x5e94af._0x91f292),[]);if(this[_0x4345af(_0x5e94af._0x297db0)][_0x4345af(0xa1)]===0x0)throw new DriverError(_0x4345af(0xe4),{});this['frameStack']['pop']();}async[_0x426ece(0xec)](_0x55978c,_0x5aa38a){const _0x161371={_0x31a52a:0xec},_0x237f70=_0x426ece;this[_0x237f70(0xb4)](_0x237f70(_0x161371._0x31a52a),[_0x55978c,_0x5aa38a]),this['localStorageState'][_0x55978c]=_0x5aa38a;}async[_0x426ece(0xbe)](_0x46d754){const _0x22f740={_0x4ca0be:0x91},_0x32615f=_0x426ece;return this[_0x32615f(0xb4)]('getLocalStorage',[_0x46d754]),this[_0x32615f(_0x22f740._0x4ca0be)][_0x46d754]??null;}async[_0x426ece(0xbc)](_0x373d94,_0x30858f,_0x1e950e){const _0x4948de={_0x93d5b4:0xbc,_0x590584:0xee},_0x488719=_0x426ece;this['record'](_0x488719(_0x4948de._0x93d5b4),[_0x373d94,_0x30858f,_0x1e950e]),this[_0x488719(_0x4948de._0x590584)][_0x373d94]=_0x30858f;}async['getCookie'](_0x2ead88){const _0x2be80f={_0x3cbcec:0xee},_0x10fc10=_0x426ece;return this[_0x10fc10(0xb4)](_0x10fc10(0x107),[_0x2ead88]),this[_0x10fc10(_0x2be80f._0x3cbcec)][_0x2ead88]??null;}async[_0x426ece(0x100)](_0x277dc9){const _0x1e3188={_0x4bdc4e:0xb4},_0xed3040=_0x426ece;this[_0xed3040(_0x1e3188._0x4bdc4e)](_0xed3040(0x100),[_0x277dc9]);}async[_0x426ece(0xaf)](_0x5ac683){const _0xd02c77={_0x5d94c4:0xaf},_0x475dc1=_0x426ece;return this[_0x475dc1(0xb4)](_0x475dc1(_0xd02c77._0x5d94c4),[_0x5ac683]),void 0x0;}async[_0x426ece(0xc9)](){const _0x2910ae={_0x1b680d:0xb4},_0x596eeb=_0x426ece;this[_0x596eeb(_0x2910ae._0x1b680d)](_0x596eeb(0xc9),[]);}['frameDepth'](){return this['frameStack']['length'];}},FakeWebDriver=class{constructor(_0xfe3a41={}){const _0x59797e={_0x256ebb:0xdf,_0xb7512d:0x101},_0x4e4fa1=_0x426ece;this[_0x4e4fa1(_0x59797e._0x256ebb)]=_0xfe3a41,this[_0x4e4fa1(_0x59797e._0xb7512d)]=createRecorder();}[_0x426ece(0xdf)];static{__name(this,_0x426ece(0x93));}[_0x426ece(0xca)]=![];[_0x426ece(0x101)];[_0x426ece(0xd7)]=[];async[_0x426ece(0xae)](_0x2e35af){const _0x2e483c={_0x535e83:0x101,_0x234b8c:0xae},_0xb0f031=_0x426ece;this[_0xb0f031(_0x2e483c._0x535e83)]['push']({'scope':_0xb0f031(0x9b),'method':_0xb0f031(_0x2e483c._0x234b8c),'args':[_0x2e35af]}),this[_0xb0f031(0xca)]=!![];}async['newContext'](_0x417f12){const _0x3c786f={_0x3d1e54:0x101,_0x317663:0xf4,_0x41f833:0xb2,_0x2cd109:0xdf,_0x4eeb0e:0xf0},_0xe288dc=_0x426ece;this[_0xe288dc(_0x3c786f._0x3d1e54)][_0xe288dc(_0x3c786f._0x317663)]({'scope':'driver','method':_0xe288dc(0xc4),'args':[_0x417f12]});if(!this[_0xe288dc(0xca)])throw new DriverError(_0xe288dc(_0x3c786f._0x41f833),{});const _0x2d7de5=new FakeContext(this[_0xe288dc(0x101)],this[_0xe288dc(_0x3c786f._0x2cd109)],_0xe288dc(_0x3c786f._0x4eeb0e)+this['contexts']['length']);return this[_0xe288dc(0xd7)][_0xe288dc(0xf4)](_0x2d7de5),_0x2d7de5;}async[_0x426ece(0xc9)](){const _0x10e4a8={_0x2f117f:0xf4,_0x4f550d:0xc9,_0x3138c1:0xca},_0x40181a=_0x426ece;this[_0x40181a(0x101)][_0x40181a(_0x10e4a8._0x2f117f)]({'scope':'driver','method':_0x40181a(_0x10e4a8._0x4f550d),'args':[]}),this[_0x40181a(_0x10e4a8._0x3138c1)]=![];}[_0x426ece(0xd1)](){return void 0x0;}async['connectShared'](){const _0x4e1183={_0x9a4466:0xa9},_0x369bb3=_0x426ece;throw new DriverError(_0x369bb3(_0x4e1183._0x9a4466),{});}[_0x426ece(0xba)](_0x47f101){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x426ece(0xce)](){const _0xf4bff3={_0x3cf766:0x101,_0x457b47:0xce},_0x8e2315=_0x426ece;return this[_0x8e2315(_0xf4bff3._0x3cf766)][_0x8e2315(_0xf4bff3._0x457b47)]();}[_0x426ece(0xe1)](_0x29a3d6){const _0x237c9e=_0x426ece;return this['recorder'][_0x237c9e(0xce)]()[_0x237c9e(0xc2)](_0x3a94b3=>_0x3a94b3[_0x237c9e(0xcb)]===_0x29a3d6);}};export{FakeWebDriver};
|