@unotest/web 0.42.0 → 0.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,12 +10,19 @@ type Browser = z.infer<typeof BrowserSchema>;
10
10
  * Ignored for firefox / webkit browsers (Playwright has no system
11
11
  * channel for those). Chosen at init time via the browser prompt;
12
12
  * user can flip later in unotest.config.{mjs,js,ts}. */
13
- declare const BrowserChannelSchema: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"chrome">, z.ZodLiteral<"msedge">, z.ZodLiteral<"chrome-beta">, z.ZodLiteral<"chromium">, z.ZodNull]>>;
13
+ declare const SYSTEM_BROWSER_CHANNELS: readonly ["chrome", "msedge", "chrome-beta", "chromium"];
14
+ /** Every word either input accepts, in one place: this schema and the
15
+ * reader of `UNOTEST_BROWSER_CHANNEL` (`runner-env.ts`) take the same
16
+ * list. They used to keep two — `bundled` was a word the variable knew
17
+ * and the config refused, while the `.env` template promised the
18
+ * variable merely "overrides channel" (#209). */
19
+ declare const BROWSER_CHANNEL_WORDS: readonly ["chrome", "msedge", "chrome-beta", "chromium", "bundled"];
20
+ declare const BrowserChannelSchema: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["chrome", "msedge", "chrome-beta", "chromium"]>, z.ZodEffects<z.ZodLiteral<"bundled">, null, "bundled">, z.ZodNull]>>;
14
21
  type BrowserChannel = z.infer<typeof BrowserChannelSchema>;
15
22
  declare const ViewportSchema: z.ZodObject<{
16
23
  width: z.ZodNumber;
17
24
  height: z.ZodNumber;
18
- }, "strip", z.ZodTypeAny, {
25
+ }, "strict", z.ZodTypeAny, {
19
26
  width: number;
20
27
  height: number;
21
28
  }, {
@@ -28,7 +35,7 @@ type RetryReason = z.infer<typeof RetryReasonSchema>;
28
35
  declare const RetryConfigSchema: z.ZodObject<{
29
36
  count: z.ZodNumber;
30
37
  on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
31
- }, "strip", z.ZodTypeAny, {
38
+ }, "strict", z.ZodTypeAny, {
32
39
  count: number;
33
40
  on: ("network" | "transient" | "crash")[];
34
41
  }, {
@@ -44,7 +51,7 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
44
51
  tier3: z.ZodObject<{
45
52
  network: z.ZodBoolean;
46
53
  video: z.ZodBoolean;
47
- }, "strip", z.ZodTypeAny, {
54
+ }, "strict", z.ZodTypeAny, {
48
55
  network: boolean;
49
56
  video: boolean;
50
57
  }, {
@@ -54,7 +61,7 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
54
61
  retention: z.ZodObject<{
55
62
  runs: z.ZodNumber;
56
63
  days: z.ZodNumber;
57
- }, "strip", z.ZodTypeAny, {
64
+ }, "strict", z.ZodTypeAny, {
58
65
  runs: number;
59
66
  days: number;
60
67
  }, {
@@ -62,7 +69,7 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
62
69
  days: number;
63
70
  }>;
64
71
  storageDir: z.ZodString;
65
- }, "strip", z.ZodTypeAny, {
72
+ }, "strict", z.ZodTypeAny, {
66
73
  tier1: true;
67
74
  tier2: boolean;
68
75
  tier3: {
@@ -90,19 +97,19 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
90
97
  type FailureBundleConfig = z.infer<typeof FailureBundleConfigSchema>;
91
98
  declare const DialogPolicySchema: z.ZodEnum<["accept", "dismiss", "manual"]>;
92
99
  type DialogPolicy = z.infer<typeof DialogPolicySchema>;
93
- declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:one-test-per-file", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>;
100
+ declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:env-host-from-base", "lint:one-test-per-file", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>;
94
101
  type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
95
102
  declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
96
103
  type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
97
104
  declare const LinterConfigSchema: z.ZodObject<{
98
105
  enabled: z.ZodBoolean;
99
- rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:one-test-per-file", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
100
- }, "strip", z.ZodTypeAny, {
106
+ rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:env-host-from-base", "lint:one-test-per-file", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
107
+ }, "strict", z.ZodTypeAny, {
101
108
  enabled: boolean;
102
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
109
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
103
110
  }, {
104
111
  enabled: boolean;
105
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
112
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
106
113
  }>;
107
114
  type LinterConfig = z.infer<typeof LinterConfigSchema>;
108
115
  declare const QueueConfigSchema: z.ZodObject<{
@@ -112,7 +119,7 @@ declare const QueueConfigSchema: z.ZodObject<{
112
119
  /** How many runs may be in flight for one environment. 1 (the default)
113
120
  * is strict FIFO — the machine runs one thing at a time. */
114
121
  concurrency: z.ZodDefault<z.ZodNumber>;
115
- }, "strip", z.ZodTypeAny, {
122
+ }, "strict", z.ZodTypeAny, {
116
123
  enabled: boolean;
117
124
  concurrency: number;
118
125
  }, {
@@ -136,7 +143,7 @@ declare const ScheduleSchema: z.ZodObject<{
136
143
  * — seeding a database, resetting a fixture. Its failure is reported
137
144
  * as "the environment was not prepared", not as a red suite. */
138
145
  prepare: z.ZodOptional<z.ZodString>;
139
- }, "strip", z.ZodTypeAny, {
146
+ }, "strict", z.ZodTypeAny, {
140
147
  collection: string;
141
148
  cron: string;
142
149
  env?: string | undefined;
@@ -150,7 +157,7 @@ declare const ScheduleSchema: z.ZodObject<{
150
157
  type ScheduleConfig = z.infer<typeof ScheduleSchema>;
151
158
  declare const McpConfigSchema: z.ZodObject<{
152
159
  transport: z.ZodLiteral<"stdio">;
153
- }, "strip", z.ZodTypeAny, {
160
+ }, "strict", z.ZodTypeAny, {
154
161
  transport: "stdio";
155
162
  }, {
156
163
  transport: "stdio";
@@ -182,7 +189,7 @@ declare const SandboxConfigSchema: z.ZodObject<{
182
189
  * against it and may not escape it. Defaults to the project root
183
190
  * (the runner's cwd). */
184
191
  uploadDir: z.ZodOptional<z.ZodString>;
185
- }, "strip", z.ZodTypeAny, {
192
+ }, "strict", z.ZodTypeAny, {
186
193
  shellCwd?: string | undefined;
187
194
  shellTimeoutMs?: number | undefined;
188
195
  exportSecrets?: string[] | undefined;
@@ -214,7 +221,7 @@ declare const WebServerConfigSchema: z.ZodObject<{
214
221
  reuseExistingServer: z.ZodDefault<z.ZodBoolean>;
215
222
  /** How long to wait for the URL to come up after spawning. */
216
223
  timeoutMs: z.ZodDefault<z.ZodNumber>;
217
- }, "strip", z.ZodTypeAny, {
224
+ }, "strict", z.ZodTypeAny, {
218
225
  url: string;
219
226
  timeoutMs: number;
220
227
  command: string;
@@ -226,6 +233,17 @@ declare const WebServerConfigSchema: z.ZodObject<{
226
233
  reuseExistingServer?: boolean | undefined;
227
234
  }>;
228
235
  type WebServerConfig = z.infer<typeof WebServerConfigSchema>;
236
+ declare const EnvConfigSchema: z.ZodObject<{
237
+ /** Variable names whose base `.env` value is deliberately shared by
238
+ * every environment. Only names that become a HOST are checked, so
239
+ * listing anything else has no effect. */
240
+ shared: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
241
+ }, "strict", z.ZodTypeAny, {
242
+ shared: string[];
243
+ }, {
244
+ shared?: string[] | undefined;
245
+ }>;
246
+ type EnvConfig = z.infer<typeof EnvConfigSchema>;
229
247
  declare const UnotestConfigSchema: z.ZodObject<{
230
248
  baseUrl: z.ZodOptional<z.ZodString>;
231
249
  /** Dev-server lifecycle for the app under test (M-12). Unset → the app
@@ -248,7 +266,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
248
266
  reuseExistingServer: z.ZodDefault<z.ZodBoolean>;
249
267
  /** How long to wait for the URL to come up after spawning. */
250
268
  timeoutMs: z.ZodDefault<z.ZodNumber>;
251
- }, "strip", z.ZodTypeAny, {
269
+ }, "strict", z.ZodTypeAny, {
252
270
  url: string;
253
271
  timeoutMs: number;
254
272
  command: string;
@@ -260,11 +278,11 @@ declare const UnotestConfigSchema: z.ZodObject<{
260
278
  reuseExistingServer?: boolean | undefined;
261
279
  }>>;
262
280
  browsers: z.ZodArray<z.ZodEnum<["chromium", "firefox", "webkit"]>, "many">;
263
- channel: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"chrome">, z.ZodLiteral<"msedge">, z.ZodLiteral<"chrome-beta">, z.ZodLiteral<"chromium">, z.ZodNull]>>;
281
+ channel: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["chrome", "msedge", "chrome-beta", "chromium"]>, z.ZodEffects<z.ZodLiteral<"bundled">, null, "bundled">, z.ZodNull]>>;
264
282
  viewport: z.ZodObject<{
265
283
  width: z.ZodNumber;
266
284
  height: z.ZodNumber;
267
- }, "strip", z.ZodTypeAny, {
285
+ }, "strict", z.ZodTypeAny, {
268
286
  width: number;
269
287
  height: number;
270
288
  }, {
@@ -287,7 +305,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
287
305
  retry: z.ZodObject<{
288
306
  count: z.ZodNumber;
289
307
  on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
290
- }, "strip", z.ZodTypeAny, {
308
+ }, "strict", z.ZodTypeAny, {
291
309
  count: number;
292
310
  on: ("network" | "transient" | "crash")[];
293
311
  }, {
@@ -302,7 +320,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
302
320
  tier3: z.ZodObject<{
303
321
  network: z.ZodBoolean;
304
322
  video: z.ZodBoolean;
305
- }, "strip", z.ZodTypeAny, {
323
+ }, "strict", z.ZodTypeAny, {
306
324
  network: boolean;
307
325
  video: boolean;
308
326
  }, {
@@ -312,7 +330,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
312
330
  retention: z.ZodObject<{
313
331
  runs: z.ZodNumber;
314
332
  days: z.ZodNumber;
315
- }, "strip", z.ZodTypeAny, {
333
+ }, "strict", z.ZodTypeAny, {
316
334
  runs: number;
317
335
  days: number;
318
336
  }, {
@@ -320,7 +338,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
320
338
  days: number;
321
339
  }>;
322
340
  storageDir: z.ZodString;
323
- }, "strip", z.ZodTypeAny, {
341
+ }, "strict", z.ZodTypeAny, {
324
342
  tier1: true;
325
343
  tier2: boolean;
326
344
  tier3: {
@@ -366,19 +384,30 @@ declare const UnotestConfigSchema: z.ZodObject<{
366
384
  * slow-but-correct navigation.
367
385
  * Override via `UNOTEST_DEFAULT_NAVIGATION_TIMEOUT_MS`. */
368
386
  defaultNavigationTimeoutMs: z.ZodNumber;
387
+ /** Cross-environment declarations (`.env.<name>` overlays). */
388
+ env: z.ZodObject<{
389
+ /** Variable names whose base `.env` value is deliberately shared by
390
+ * every environment. Only names that become a HOST are checked, so
391
+ * listing anything else has no effect. */
392
+ shared: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
393
+ }, "strict", z.ZodTypeAny, {
394
+ shared: string[];
395
+ }, {
396
+ shared?: string[] | undefined;
397
+ }>;
369
398
  linter: z.ZodObject<{
370
399
  enabled: z.ZodBoolean;
371
- rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:one-test-per-file", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
372
- }, "strip", z.ZodTypeAny, {
400
+ rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:env-host-from-base", "lint:one-test-per-file", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:unsupported-statement", "validator:unsupported-expression", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format"]>, z.ZodEnum<["off", "warn", "error"]>>;
401
+ }, "strict", z.ZodTypeAny, {
373
402
  enabled: boolean;
374
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
403
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
375
404
  }, {
376
405
  enabled: boolean;
377
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
406
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
378
407
  }>;
379
408
  mcp: z.ZodObject<{
380
409
  transport: z.ZodLiteral<"stdio">;
381
- }, "strip", z.ZodTypeAny, {
410
+ }, "strict", z.ZodTypeAny, {
382
411
  transport: "stdio";
383
412
  }, {
384
413
  transport: "stdio";
@@ -390,7 +419,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
390
419
  /** How many runs may be in flight for one environment. 1 (the default)
391
420
  * is strict FIFO — the machine runs one thing at a time. */
392
421
  concurrency: z.ZodDefault<z.ZodNumber>;
393
- }, "strip", z.ZodTypeAny, {
422
+ }, "strict", z.ZodTypeAny, {
394
423
  enabled: boolean;
395
424
  concurrency: number;
396
425
  }, {
@@ -414,7 +443,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
414
443
  * — seeding a database, resetting a fixture. Its failure is reported
415
444
  * as "the environment was not prepared", not as a red suite. */
416
445
  prepare: z.ZodOptional<z.ZodString>;
417
- }, "strip", z.ZodTypeAny, {
446
+ }, "strict", z.ZodTypeAny, {
418
447
  collection: string;
419
448
  cron: string;
420
449
  env?: string | undefined;
@@ -451,7 +480,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
451
480
  * against it and may not escape it. Defaults to the project root
452
481
  * (the runner's cwd). */
453
482
  uploadDir: z.ZodOptional<z.ZodString>;
454
- }, "strip", z.ZodTypeAny, {
483
+ }, "strict", z.ZodTypeAny, {
455
484
  shellCwd?: string | undefined;
456
485
  shellTimeoutMs?: number | undefined;
457
486
  exportSecrets?: string[] | undefined;
@@ -466,7 +495,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
466
495
  apiBaseUrl?: string | undefined;
467
496
  uploadDir?: string | undefined;
468
497
  }>;
469
- }, "strip", z.ZodTypeAny, {
498
+ }, "strict", z.ZodTypeAny, {
470
499
  defaultTimeoutMs: number;
471
500
  defaultNavigationTimeoutMs: number;
472
501
  browsers: ("chromium" | "firefox" | "webkit")[];
@@ -494,9 +523,12 @@ declare const UnotestConfigSchema: z.ZodObject<{
494
523
  dialogPolicy: "accept" | "dismiss" | "manual";
495
524
  testDir: string;
496
525
  helpersDir: string;
526
+ env: {
527
+ shared: string[];
528
+ };
497
529
  linter: {
498
530
  enabled: boolean;
499
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
531
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
500
532
  };
501
533
  mcp: {
502
534
  transport: "stdio";
@@ -560,9 +592,12 @@ declare const UnotestConfigSchema: z.ZodObject<{
560
592
  dialogPolicy: "accept" | "dismiss" | "manual";
561
593
  testDir: string;
562
594
  helpersDir: string;
595
+ env: {
596
+ shared?: string[] | undefined;
597
+ };
563
598
  linter: {
564
599
  enabled: boolean;
565
- rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
600
+ rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:unsupported-statement" | "validator:unsupported-expression" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format", "off" | "warn" | "error">>;
566
601
  };
567
602
  mcp: {
568
603
  transport: "stdio";
@@ -586,7 +621,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
586
621
  timeoutMs?: number | undefined;
587
622
  reuseExistingServer?: boolean | undefined;
588
623
  } | undefined;
589
- channel?: "chrome" | "msedge" | "chrome-beta" | "chromium" | null | undefined;
624
+ channel?: "chrome" | "msedge" | "chrome-beta" | "chromium" | "bundled" | null | undefined;
590
625
  launch?: {
591
626
  args?: string[] | undefined;
592
627
  userDataDir?: string | undefined;
@@ -603,4 +638,4 @@ type UnotestConfig = z.infer<typeof UnotestConfigSchema>;
603
638
  type UnotestConfigInput = z.input<typeof UnotestConfigSchema>;
604
639
  declare const DEFAULT_CONFIG: UnotestConfig;
605
640
 
606
- export { type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema };
641
+ export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema };
@@ -1 +1 @@
1
- function _0x256a(){var _0x2d855b=['DMfSAwrHDg9YoMfYAxr5','BNvTyMvY','BgLUDdPZy2vUyxjPBY1PBI1YB290','D2fYBG','nJeZmte2AKDnANvL','zgLZBwLZCW','C3rYAw5N','y2HYB21PDw0','mZG1ndiWsef6D2vI','DhjHBNnPzw50','BwLU','mtm2whLjC1DY','DMfSAwrHDg9YoMLMlxnOyxbL','CMvJB3jK','mtbgvxjVq1u','DMfSAwrHDg9YoMXPC3qTyxjN','BgLUDdPLy2HVlwfZC2vYDa','BgL0zxjHBa','C3rKAw8','mte5ndbnsffUthm','zxjYB3i','lNvUB3rLC3qVzMfPBhvYzxm','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','BxnLzgDL','BwfUDwfS','DMfSAwrHDg9YoM1LDgeTC2HHCgu','Dw5VDgvZDc9LmMu','DMfSAwrHDg9YoMzVCI1ZAgfWzq','yM9VBgvHBG','BMv0D29YAW','zw51Bq','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','BNvSBa','BgLUDdPKzwvWlwnZCW','B3b0Aw9UywW','BgLUDdPNB3rVlwnVBMnHDa','BgLUDdPWyxvZzs1LEhbSAwnPDa','Aw50','Cg9ZAxrPDMu','DMfSAwrHDg9YoNzHCI1ZAgfWzq','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','Dw5PB24','zgvMyxvSDa','B2jQzwn0','ndm0mZvQCNz2z2C','BgLUDdPTDxn0ywnOzs1PBI1KC2W','oda1ndi4A0fpA1nY','BgLUDdP4Cgf0Aa','DxjS','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','D2vIA2L0','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','ntiZnty5AezftfHx','ywnJzxb0','mtK1nZLKu1DzzuK','y2HYB21LlwjLDge','yxjYyxK','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','BgLUDdPSzwDHy3KTBgf5B3v0','C3rYAwn0'];_0x256a=function(){return _0x2d855b;};return _0x256a();}var _0x4d6978=_0x9989;(function(_0x376e58,_0x23aa0d){var _0x1502ed={_0x526bfd:0x1cc,_0x4efeca:0x1b6,_0x19deee:0x1d1,_0x5a637f:0x1c6,_0x490284:0x1ae,_0x57ae97:0x1c9},_0x3400bf=_0x9989,_0x3b6b5d=_0x376e58();while(!![]){try{var _0x2269a6=parseInt(_0x3400bf(0x1b8))/0x1*(parseInt(_0x3400bf(_0x1502ed._0x526bfd))/0x2)+parseInt(_0x3400bf(_0x1502ed._0x4efeca))/0x3+parseInt(_0x3400bf(_0x1502ed._0x19deee))/0x4+-parseInt(_0x3400bf(_0x1502ed._0x5a637f))/0x5+parseInt(_0x3400bf(0x1c2))/0x6+parseInt(_0x3400bf(_0x1502ed._0x490284))/0x7*(-parseInt(_0x3400bf(_0x1502ed._0x57ae97))/0x8)+-parseInt(_0x3400bf(0x1b0))/0x9;if(_0x2269a6===_0x23aa0d)break;else _0x3b6b5d['push'](_0x3b6b5d['shift']());}catch(_0x563132){_0x3b6b5d['push'](_0x3b6b5d['shift']());}}}(_0x256a,0x19c38));import{z as _0x22039d}from'zod';function _0x9989(_0x1db101,_0x2f10b3){_0x1db101=_0x1db101-0x1a1;var _0x256a05=_0x256a();var _0x9989e2=_0x256a05[_0x1db101];if(_0x9989['HbxpAQ']===undefined){var _0x23eb16=function(_0x1980ed){var _0x4af31c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x22039d='',_0x9864f='';for(var _0x45cdba=0x0,_0x571d47,_0x305ce7,_0x1e4659=0x0;_0x305ce7=_0x1980ed['charAt'](_0x1e4659++);~_0x305ce7&&(_0x571d47=_0x45cdba%0x4?_0x571d47*0x40+_0x305ce7:_0x305ce7,_0x45cdba++%0x4)?_0x22039d+=String['fromCharCode'](0xff&_0x571d47>>(-0x2*_0x45cdba&0x6)):0x0){_0x305ce7=_0x4af31c['indexOf'](_0x305ce7);}for(var _0x46c5da=0x0,_0x17dbd9=_0x22039d['length'];_0x46c5da<_0x17dbd9;_0x46c5da++){_0x9864f+='%'+('00'+_0x22039d['charCodeAt'](_0x46c5da)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x9864f);};_0x9989['sFnunZ']=_0x23eb16,_0x9989['FgKnyf']={},_0x9989['HbxpAQ']=!![];}var _0x256e04=_0x256a05[0x0],_0x4f800b=_0x1db101+_0x256e04,_0x5ef601=_0x9989['FgKnyf'][_0x4f800b];return!_0x5ef601?(_0x9989e2=_0x9989['sFnunZ'](_0x9989e2),_0x9989['FgKnyf'][_0x4f800b]=_0x9989e2):_0x9989e2=_0x5ef601,_0x9989e2;}import{z}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=z['object']({'userDataDir':z[_0x4d6978(0x1c4)]()[_0x4d6978(0x1c8)](0x1)[_0x4d6978(0x1a4)](),'args':z[_0x4d6978(0x1ba)](z[_0x4d6978(0x1c4)]()['min'](0x1))[_0x4d6978(0x1a4)]()})[_0x4d6978(0x1bd)](),BrowserSchema=_0x22039d['enum']([_0x4d6978(0x1c5),'firefox',_0x4d6978(0x1b4)]),BrowserChannelSchema=_0x22039d[_0x4d6978(0x1ab)]([_0x22039d[_0x4d6978(0x1cf)]('chrome'),_0x22039d['literal'](_0x4d6978(0x1d7)),_0x22039d[_0x4d6978(0x1cf)](_0x4d6978(0x1b9)),_0x22039d[_0x4d6978(0x1cf)]('chromium'),_0x22039d[_0x4d6978(0x1a2)]()])[_0x4d6978(0x1a4)](),ViewportSchema=_0x22039d[_0x4d6978(0x1ad)]({'width':_0x22039d[_0x4d6978(0x1bf)]()[_0x4d6978(0x1a7)]()['positive'](),'height':_0x22039d[_0x4d6978(0x1bf)]()[_0x4d6978(0x1a7)]()[_0x4d6978(0x1a8)]()}),RetryReasonSchema=_0x22039d[_0x4d6978(0x1de)]([_0x4d6978(0x1c7),_0x4d6978(0x1dd),'crash']),RetryConfigSchema=_0x22039d['object']({'count':_0x22039d[_0x4d6978(0x1bf)]()[_0x4d6978(0x1a7)]()[_0x4d6978(0x1c8)](0x0)['max'](0xa),'on':_0x22039d['array'](RetryReasonSchema)}),FailureBundleConfigSchema=_0x22039d[_0x4d6978(0x1ad)]({'tier1':_0x22039d[_0x4d6978(0x1cf)](!![])[_0x4d6978(0x1ac)](!![]),'tier2':_0x22039d['boolean'](),'tier3':_0x22039d[_0x4d6978(0x1ad)]({'network':_0x22039d['boolean'](),'video':_0x22039d['boolean']()}),'retention':_0x22039d[_0x4d6978(0x1ad)]({'runs':_0x22039d[_0x4d6978(0x1bf)]()['int']()[_0x4d6978(0x1a8)](),'days':_0x22039d[_0x4d6978(0x1bf)]()['int']()[_0x4d6978(0x1a8)]()}),'storageDir':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1c8)](0x1)}),DialogPolicySchema=_0x22039d[_0x4d6978(0x1de)]([_0x4d6978(0x1b7),_0x4d6978(0x1c3),_0x4d6978(0x1d8)]),LinterRuleIdSchema=_0x22039d[_0x4d6978(0x1de)]([_0x4d6978(0x1a3),_0x4d6978(0x1b1),'lint:obfuscated-class',_0x4d6978(0x1a6),'lint:disambig-by-index',_0x4d6978(0x1d6),_0x4d6978(0x1c0),_0x4d6978(0x1af),_0x4d6978(0x1a5),'lint:regex-invalid',_0x4d6978(0x1ce),_0x4d6978(0x1df),'lint:lint-ok-missing-reason',_0x4d6978(0x1d4),_0x4d6978(0x1bc),_0x4d6978(0x1a1),_0x4d6978(0x1b5),'validator:unknown-function',_0x4d6978(0x1be),'validator:arg-kind',_0x4d6978(0x1bb),'validator:step-shape',_0x4d6978(0x1d9),_0x4d6978(0x1b3),_0x4d6978(0x1db),_0x4d6978(0x1ca),_0x4d6978(0x1a9),'validator:unsupported-statement',_0x4d6978(0x1aa),'validator:string-concat','validator:semantic-loss',_0x4d6978(0x1cd),_0x4d6978(0x1d5)]),LinterSeveritySchema=_0x22039d[_0x4d6978(0x1de)](['off',_0x4d6978(0x1c1),'error']),LinterConfigSchema=_0x22039d[_0x4d6978(0x1ad)]({'enabled':_0x22039d[_0x4d6978(0x1dc)](),'rules':_0x22039d[_0x4d6978(0x1cb)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=_0x22039d[_0x4d6978(0x1ad)]({'enabled':_0x22039d[_0x4d6978(0x1dc)]()['default'](!![]),'concurrency':_0x22039d['number']()[_0x4d6978(0x1a7)]()[_0x4d6978(0x1a8)]()[_0x4d6978(0x1ac)](0x1)}),ScheduleSchema=_0x22039d[_0x4d6978(0x1ad)]({'collection':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1c8)](0x1),'cron':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1c8)](0x1),'env':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1c8)](0x1)[_0x4d6978(0x1a4)](),'prepare':_0x22039d['string']()[_0x4d6978(0x1c8)](0x1)['optional']()}),McpConfigSchema=_0x22039d['object']({'transport':_0x22039d[_0x4d6978(0x1cf)]('stdio')}),SandboxConfigSchema=_0x22039d[_0x4d6978(0x1ad)]({'shellCwd':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1a4)](),'shellTimeoutMs':_0x22039d['number']()[_0x4d6978(0x1a7)]()[_0x4d6978(0x1a8)]()[_0x4d6978(0x1a4)](),'exportSecrets':_0x22039d[_0x4d6978(0x1ba)](_0x22039d['string']())[_0x4d6978(0x1a4)](),'database':_0x22039d[_0x4d6978(0x1c4)]()['optional'](),'apiBaseUrl':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1b2)]()['optional'](),'uploadDir':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1a4)]()}),WebServerConfigSchema=_0x22039d[_0x4d6978(0x1ad)]({'command':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1c8)](0x1),'url':_0x22039d['string']()['url'](),'reuseExistingServer':_0x22039d['boolean']()[_0x4d6978(0x1ac)](!![]),'timeoutMs':_0x22039d[_0x4d6978(0x1bf)]()[_0x4d6978(0x1a7)]()[_0x4d6978(0x1a8)]()[_0x4d6978(0x1ac)](0xea60)}),UnotestConfigSchema=_0x22039d[_0x4d6978(0x1ad)]({'baseUrl':_0x22039d['string']()[_0x4d6978(0x1b2)]()[_0x4d6978(0x1a4)](),'webServer':WebServerConfigSchema[_0x4d6978(0x1a4)](),'browsers':_0x22039d[_0x4d6978(0x1ba)](BrowserSchema)[_0x4d6978(0x1c8)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'launch':LaunchConfigSchema['optional'](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x22039d['string']()[_0x4d6978(0x1a4)](),'testDir':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1c8)](0x1),'helpersDir':_0x22039d[_0x4d6978(0x1c4)]()[_0x4d6978(0x1c8)](0x1),'defaultTimeoutMs':_0x22039d[_0x4d6978(0x1bf)]()[_0x4d6978(0x1a7)]()[_0x4d6978(0x1a8)](),'defaultNavigationTimeoutMs':_0x22039d[_0x4d6978(0x1bf)]()[_0x4d6978(0x1a7)]()[_0x4d6978(0x1a8)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x22039d[_0x4d6978(0x1ba)](ScheduleSchema)['default']([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x4d6978(0x1c5)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x4d6978(0x1c7)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x4d6978(0x1d3)},'dialogPolicy':_0x4d6978(0x1b7),'testDir':_0x4d6978(0x1da),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x4d6978(0x1c1),'lint:xpath':_0x4d6978(0x1c1),'lint:obfuscated-class':_0x4d6978(0x1c1),'lint:pause-explicit':'warn','lint:disambig-by-index':'off','lint:evaluate-discouraged':_0x4d6978(0x1c1),'lint:scenario-in-root':_0x4d6978(0x1d2),'lint:mustache-in-dsl':_0x4d6978(0x1d2),'lint:goto-concat':_0x4d6978(0x1c1),'lint:regex-invalid':'error','lint:echo-assert':'warn','lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x4d6978(0x1c1),'lint:legacy-layout':'warn','lint:external-variable-undeclared':_0x4d6978(0x1d2),'lint:one-test-per-file':_0x4d6978(0x1c1),'validator:unknown-function':_0x4d6978(0x1d2)}},'mcp':{'transport':_0x4d6978(0x1d0)},'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};
1
+ var _0x52f461=_0x1f4d;(function(_0x33c4f5,_0x38b2ce){var _0x4b2cf7={_0x23896e:0xf9,_0x3aae34:0xb2,_0x42185a:0xfd,_0x20c964:0xb0,_0x4bbeda:0xf2},_0x548de1=_0x1f4d,_0x4eeb90=_0x33c4f5();while(!![]){try{var _0x5c51d5=parseInt(_0x548de1(_0x4b2cf7._0x23896e))/0x1+-parseInt(_0x548de1(_0x4b2cf7._0x3aae34))/0x2*(parseInt(_0x548de1(0xfb))/0x3)+parseInt(_0x548de1(_0x4b2cf7._0x42185a))/0x4+parseInt(_0x548de1(_0x4b2cf7._0x20c964))/0x5*(-parseInt(_0x548de1(0xc1))/0x6)+-parseInt(_0x548de1(0xbe))/0x7*(parseInt(_0x548de1(0xe8))/0x8)+-parseInt(_0x548de1(0xcd))/0x9*(parseInt(_0x548de1(0xb5))/0xa)+parseInt(_0x548de1(_0x4b2cf7._0x4bbeda))/0xb*(parseInt(_0x548de1(0xab))/0xc);if(_0x5c51d5===_0x38b2ce)break;else _0x4eeb90['push'](_0x4eeb90['shift']());}catch(_0x225144){_0x4eeb90['push'](_0x4eeb90['shift']());}}}(_0x1668,0x1f310));function _0x1668(){var _0x48b6e1=['BgLUDdPSzwDHy3KTBgf5B3v0','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','C3rYAw5N','DMfSAwrHDg9YoMzVCI1ZAgfWzq','BgLUDdP4Cgf0Aa','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','zMLYzwzVEa','DMfSAwrHDg9YoMLMlxnOyxbL','nte3uLbtqxPn','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','yxjYyxK','ywnJzxb0','y2HYB21LlwjLDge','BwfW','y29Kzq','nJy3mtbVDK9ID1O','y2XVC2vZDeTLEq','mti2EuLMr0jW','BgLUDdPZy2vUyxjPBY1PBI1YB290','ote0mti0tMHOqLPv','Dg9mB3DLCKnHC2u','Cg9ZAxrPDMu','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','A2v5CW','ndKXodHOqwrkv3K','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','C3rYAwn0','BgLUDdPNB3rVlwnVBMnHDa','DMfSAwrHDg9YoM1LDgeTC2HHCgu','mte1nvLAz1vusa','lNvUB3rLC3qVzMfPBhvYzxm','odeYv1zWuvzT','BwfUDwfS','zgvMyxvSDa','ntm1mhbisxPwtW','BwLU','C3rKAw8','Dw5RBM93BKTLEu1LC3nHz2u','BxnLzgDL','iIdIGjqGzgLKihLVDsbTzwfUici','Dw5PB24','zgLZBwLZCW','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','mte5mJmXAgfRDMLR','zgvMAw5LuhjVCgvYDhK','BgLUDdPTDxn0ywnOzs1PBI1KC2W','mJG2oefQA21tuW','DMfSAwrHDg9YoMfYzY1RAw5K','D2fYBG','DhjHBNnMB3jT','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','BMv0D29YAW','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','BNvTyMvY','B2jQzwn0','B2zM','mtG5uNDlzfP0','BMfTzq','DMfSAwrHDg9YoNn0zxaTC2HHCgu','A2v5','y2HYB21L','Aw50','DMfSAwrHDg9YoMXPC3qTyxjN','B3b0Aw9UywW','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','DxjS','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','zgvMyxvSDevYCM9Y','zxjYB3jnyxa','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','yM9VBgvHBG','Dw5RBM93BIbRzxKGiG','BgLUDdPLy2HVlwfZC2vYDa','BgL0zxjHBa','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','zw51Bq','BgLUDdPKzwvWlwnZCW','y2HYB21PDw0','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','BgLUDdPWyxvZzs1LEhbSAwnPDa','zxjYB3i','mta0rfbKEKPh','Dw5YzwnVz25PEMvKx2TLExm'];_0x1668=function(){return _0x48b6e1;};return _0x1668();}var __defProp=Object[_0x52f461(0xbf)],__name=(_0x580433,_0x2d5901)=>__defProp(_0x580433,_0x52f461(0xce),{'value':_0x2d5901,'configurable':!![]});import{z as _0xcb983}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x50551d,_0x5bba8f){var _0x50f220={_0x2ddf0f:0xa7},_0x44567c=_0x52f461;let _0xdb55d7;for(const _0x12b80c of _0x5bba8f){const _0x5f09bd=levenshteinDistance(_0x50551d['toLowerCase'](),_0x12b80c[_0x44567c(_0x50f220._0x2ddf0f)]());if(_0x5f09bd>MAX_EDITS)continue;if(_0xdb55d7===void 0x0||_0x5f09bd<_0xdb55d7['distance'])_0xdb55d7={'key':_0x12b80c,'distance':_0x5f09bd};}return _0xdb55d7?.[_0x44567c(0xd0)];}function _0x1f4d(_0x50dfab,_0x38dcb4){_0x50dfab=_0x50dfab-0xa7;var _0x166846=_0x1668();var _0x1f4d16=_0x166846[_0x50dfab];if(_0x1f4d['QDEXKr']===undefined){var _0x25535b=function(_0x175497){var _0x59a6b7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xcb983='',_0x5de189='';for(var _0x580433=0x0,_0x2d5901,_0x50551d,_0x5bba8f=0x0;_0x50551d=_0x175497['charAt'](_0x5bba8f++);~_0x50551d&&(_0x2d5901=_0x580433%0x4?_0x2d5901*0x40+_0x50551d:_0x50551d,_0x580433++%0x4)?_0xcb983+=String['fromCharCode'](0xff&_0x2d5901>>(-0x2*_0x580433&0x6)):0x0){_0x50551d=_0x59a6b7['indexOf'](_0x50551d);}for(var _0xdb55d7=0x0,_0x12b80c=_0xcb983['length'];_0xdb55d7<_0x12b80c;_0xdb55d7++){_0x5de189+='%'+('00'+_0xcb983['charCodeAt'](_0xdb55d7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5de189);};_0x1f4d['NEMnxa']=_0x25535b,_0x1f4d['UpbtOK']={},_0x1f4d['QDEXKr']=!![];}var _0xceb25=_0x166846[0x0],_0x2cc72a=_0x50dfab+_0xceb25,_0x5b836d=_0x1f4d['UpbtOK'][_0x2cc72a];return!_0x5b836d?(_0x1f4d16=_0x1f4d['NEMnxa'](_0x1f4d16),_0x1f4d['UpbtOK'][_0x2cc72a]=_0x1f4d16):_0x1f4d16=_0x5b836d,_0x1f4d16;}__name(closestKey,_0x52f461(0xfa));function unknownKeyMessage(_0x4912b5,_0x3d4b58){var _0xa883dc={_0x5b5cf8:0xf7},_0x33dc56={_0xb09549:0xd6,_0x549a1b:0xba},_0x193138=_0x52f461;return _0x4912b5[_0x193138(_0xa883dc._0x5b5cf8)](_0x43c10a=>{var _0x1a028a=_0x193138;const _0x1f1ec7=closestKey(_0x43c10a,_0x3d4b58);return _0x1f1ec7===void 0x0?_0x1a028a(0xde)+_0x43c10a+_0x1a028a(_0x33dc56._0xb09549):'unknown\x20key\x20\x22'+_0x43c10a+_0x1a028a(_0x33dc56._0x549a1b)+_0x1f1ec7+'\x22?';})['join'](';\x20');}__name(unknownKeyMessage,_0x52f461(0xb8));function strictObject(_0x4b1394){var _0x35a1a0=_0x52f461;const _0x464f7f=Object[_0x35a1a0(0xaa)](_0x4b1394);return z['object'](_0x4b1394,{'errorMap':__name((_0xcb6764,_0x434ac0)=>_0xcb6764[_0x35a1a0(0xf8)]===z['ZodIssueCode'][_0x35a1a0(0xe9)]?{'message':unknownKeyMessage(_0xcb6764[_0x35a1a0(0xaa)],_0x464f7f)}:{'message':_0x434ac0[_0x35a1a0(0xda)]},_0x35a1a0(0xdb))})[_0x35a1a0(0xad)]();}__name(strictObject,'strictObject');import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x5de189}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x5de189[_0x52f461(0xcb)]({'userDataDir':_0x5de189[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)['optional'](),'args':_0x5de189[_0x52f461(0xf4)](_0x5de189[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1))[_0x52f461(0xd4)]()})['strict'](),BrowserSchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xe4),_0x52f461(0xf0),'webkit']),SYSTEM_BROWSER_CHANNELS=[_0x52f461(0xd1),_0x52f461(0xb9),_0x52f461(0xf6),_0x52f461(0xe4)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0xcb983[_0x52f461(0xbb)]([_0xcb983['enum'](SYSTEM_BROWSER_CHANNELS),_0xcb983[_0x52f461(0xe0)](BUNDLED_BROWSER_CHANNEL)[_0x52f461(0xc4)](()=>null),_0xcb983['null']()])['optional'](),ViewportSchema=strictObject({'width':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'height':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()}),RetryReasonSchema=_0xcb983['enum'](['transient',_0x52f461(0xc6),'crash']),RetryConfigSchema=strictObject({'count':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xb6)](0x0)['max'](0xa),'on':_0xcb983[_0x52f461(0xf4)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0xcb983['literal'](!![])[_0x52f461(0xb4)](!![]),'tier2':_0xcb983['boolean'](),'tier3':strictObject({'network':_0xcb983[_0x52f461(0xdd)](),'video':_0xcb983[_0x52f461(0xdd)]()}),'retention':strictObject({'runs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'days':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()}),'storageDir':_0xcb983[_0x52f461(0xec)]()['min'](0x1)}),DialogPolicySchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xf5),_0x52f461(0xbc),_0x52f461(0xb3)]),LinterRuleIdSchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xe3),_0x52f461(0xee),_0x52f461(0xef),_0x52f461(0xe6),_0x52f461(0xeb),_0x52f461(0xe5),_0x52f461(0xfc),_0x52f461(0xc0),_0x52f461(0xae),'lint:regex-invalid',_0x52f461(0xdf),'lint:api-call-file-body',_0x52f461(0xa9),_0x52f461(0xd5),_0x52f461(0xea),_0x52f461(0xc5),'lint:env-host-from-base',_0x52f461(0xc9),_0x52f461(0xdc),'validator:arity',_0x52f461(0xc2),_0x52f461(0xf3),_0x52f461(0xcf),_0x52f461(0xaf),_0x52f461(0xac),_0x52f461(0xed),_0x52f461(0xf1),'validator:var-shape',_0x52f461(0xbd),_0x52f461(0xc8),_0x52f461(0xd9),_0x52f461(0xd7),_0x52f461(0xd3),_0x52f461(0xe1)]),LinterSeveritySchema=_0xcb983[_0x52f461(0xe2)]([_0x52f461(0xcc),_0x52f461(0xc3),'error']),LinterConfigSchema=strictObject({'enabled':_0xcb983[_0x52f461(0xdd)](),'rules':_0xcb983['record'](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0xcb983['boolean']()[_0x52f461(0xb4)](!![]),'concurrency':_0xcb983[_0x52f461(0xca)]()['int']()[_0x52f461(0xa8)]()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0xcb983[_0x52f461(0xec)]()['min'](0x1),'cron':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'env':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)[_0x52f461(0xd4)](),'prepare':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1)[_0x52f461(0xd4)]()}),McpConfigSchema=strictObject({'transport':_0xcb983[_0x52f461(0xe0)](_0x52f461(0xb7))}),SandboxConfigSchema=strictObject({'shellCwd':_0xcb983['string']()[_0x52f461(0xd4)](),'shellTimeoutMs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()['positive']()[_0x52f461(0xd4)](),'exportSecrets':_0xcb983[_0x52f461(0xf4)](_0xcb983[_0x52f461(0xec)]())[_0x52f461(0xd4)](),'database':_0xcb983[_0x52f461(0xec)]()['optional'](),'apiBaseUrl':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)]()[_0x52f461(0xd4)](),'uploadDir':_0xcb983['string']()[_0x52f461(0xd4)]()}),WebServerConfigSchema=strictObject({'command':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'url':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)](),'reuseExistingServer':_0xcb983[_0x52f461(0xdd)]()[_0x52f461(0xb4)](!![]),'timeoutMs':_0xcb983[_0x52f461(0xca)]()[_0x52f461(0xd2)]()[_0x52f461(0xa8)]()[_0x52f461(0xb4)](0xea60)}),EnvConfigSchema=strictObject({'shared':_0xcb983[_0x52f461(0xf4)](_0xcb983[_0x52f461(0xec)]())[_0x52f461(0xb4)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xd8)]()[_0x52f461(0xd4)](),'webServer':WebServerConfigSchema['optional'](),'browsers':_0xcb983[_0x52f461(0xf4)](BrowserSchema)[_0x52f461(0xb6)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'launch':LaunchConfigSchema[_0x52f461(0xd4)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0xcb983['string']()[_0x52f461(0xd4)](),'testDir':_0xcb983[_0x52f461(0xec)]()[_0x52f461(0xb6)](0x1),'helpersDir':_0xcb983[_0x52f461(0xec)]()['min'](0x1),'defaultTimeoutMs':_0xcb983['number']()['int']()[_0x52f461(0xa8)](),'defaultNavigationTimeoutMs':_0xcb983['number']()[_0x52f461(0xd2)]()[_0x52f461(0xa8)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0xcb983[_0x52f461(0xf4)](ScheduleSchema)[_0x52f461(0xb4)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x52f461(0xe4)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x52f461(0xb1)},'dialogPolicy':_0x52f461(0xf5),'testDir':'unotest/e2e','helpersDir':_0x52f461(0xc7),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':'warn','lint:xpath':_0x52f461(0xc3),'lint:obfuscated-class':'warn','lint:pause-explicit':'warn','lint:disambig-by-index':'off','lint:evaluate-discouraged':_0x52f461(0xc3),'lint:scenario-in-root':_0x52f461(0xe7),'lint:mustache-in-dsl':_0x52f461(0xe7),'lint:goto-concat':_0x52f461(0xc3),'lint:regex-invalid':_0x52f461(0xe7),'lint:echo-assert':_0x52f461(0xc3),'lint:lint-ok-missing-reason':_0x52f461(0xc3),'lint:flow-returns-value':_0x52f461(0xc3),'lint:legacy-layout':_0x52f461(0xc3),'lint:external-variable-undeclared':'error','lint:env-host-from-base':_0x52f461(0xe7),'lint:one-test-per-file':'warn','validator:unknown-function':_0x52f461(0xe7)}},'env':{'shared':[]},'mcp':{'transport':'stdio'},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};
@@ -1 +1 @@
1
- const _0x26592c=_0xd816;(function(_0x26e4b4,_0x24b9c9){const _0x5cff5c={_0x4f2151:0x1d3,_0x4dfd6f:0x1c0,_0x3a6762:0x1c5,_0x4fd7ec:0x1d5,_0x194b35:0x17f,_0x474042:0x169,_0x145557:0x19a},_0x4802e2=_0xd816,_0x5566c8=_0x26e4b4();while(!![]){try{const _0x3a2eb7=-parseInt(_0x4802e2(_0x5cff5c._0x4f2151))/0x1+-parseInt(_0x4802e2(_0x5cff5c._0x4dfd6f))/0x2*(parseInt(_0x4802e2(0x16f))/0x3)+parseInt(_0x4802e2(0x1c7))/0x4*(-parseInt(_0x4802e2(_0x5cff5c._0x3a6762))/0x5)+-parseInt(_0x4802e2(_0x5cff5c._0x4fd7ec))/0x6+parseInt(_0x4802e2(_0x5cff5c._0x194b35))/0x7*(parseInt(_0x4802e2(0x184))/0x8)+parseInt(_0x4802e2(_0x5cff5c._0x474042))/0x9*(parseInt(_0x4802e2(0x1e5))/0xa)+parseInt(_0x4802e2(0x1cb))/0xb*(parseInt(_0x4802e2(_0x5cff5c._0x145557))/0xc);if(_0x3a2eb7===_0x24b9c9)break;else _0x5566c8['push'](_0x5566c8['shift']());}catch(_0x202bd9){_0x5566c8['push'](_0x5566c8['shift']());}}}(_0x4caa,0xef38e));function _0x4caa(){const _0x5e6843=['lNbHz2u','yxr0ywnOrxHPC3rPBMC','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','C3rLChm','ntbes3ryreS','y3r4','C2nYzwvUC2HVDevSzw1LBNq','D2fPDezVCLrLEhq','zMfRzsb0AxrSzq','ywrK','D2fPDezVCKXVywrtDgf0zq','mZiZnJmZn1fIqNfQva','zw50zxjgCMfTzq','Bg9JywXtDg9YywDLu3rHDgu','AxnwAxnPyMXL','ywn0AxzLugfNzq','Aw5ZCgvJDevSzw1LBNq','mtG2mZG2n2TLrNrftq','zMfRzs1WBMC','ywjVDxq6yMXHBMS','D2fPDezVCK5HDMLNyxrPB24','zxzHBhvHDgvpBKXVy2f0B3i','z2v0tg9JywXtDg9YywDL','DxjS','zNjHBwvtDgfJAW','zNjHBwvezxb0Aa','y2XPCgjVyxjKugfZDgu','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','AxneAxnHyMXLza','y2XVC2u','yMvOyxzPB3i','y2XPy2S','Aw5WDxrwywX1zq','mti4muX1zxrWEq','rhjPDMvYrxjYB3i','z29cywnR','zNvUy3rPB24','z2v0qxr0CMLIDxrL','mtuYogLssevZua','zMLSDgvY','C2nYzwvUC2HVDa','C2v0q29VA2LL','zgvMAw5LuhjVCgvYDhK','BMfTzq','D2fPDezVCLvYBa','z29gB3j3yxjK','CMvJB3jKzxi','AxneAxnHyMXLzej5rgvMyxvSDa','yxr0CMLIDxrLC0j5rgvMyxvSDa','BgvUz3rO','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','B3v0zxjive1m','DhLWzq','CMvSB2fK','DgL0Bgu','Dgv4DenVBNrLBNrcEurLzMf1Bhq','z2v0q29VA2LL','Cg9WDxbpBKnSAwnR','C2f2zvn0B3jHz2vtDgf0zq','y291BNrcEurLzMf1Bhq','mtjewMDXuum','rMfRzunVBNrLEhq','AxnwAxnPyMXLqNLezwzHDwX0','Aw5UzxjuzxH0qNLezwzHDwX0','Aw5PDgLHBfvYBa','B25ozxDqywDL','BMv3q29UDgv4Da','Bgf1BMnO','DxbSB2fKrMLSzq','y29VA2LLCW','y3vYCMvUDfvYBa','zxzHBhvHDgvszxn1Bhq','C2vSzwn0t3b0Aw9U','z290BW','y2fSBhm','y29UC29SzuvUDhjPzxm','zxzHBhvHDgu','Bwf5yMvuAhjVDW','zxjYB3jpBK5LEhrby3rPB24','y2fSBhngB3i','iJ48l2rPDJ4','zxHPDezYyw1L','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','pgrPDJ48l2rPDJ4','y2HLy2TLzfn0yxrLqNLezwzHDwX0','C3vIC2nYAwjL','Dgv4DenVBNrLBNq','zhjHz0fUzerYB3a','C2nYzwvUC2HVDej5DgvZ','Aw5UzxjuzxH0','y29UDgv4Dhm','Dw5JAgvJAW','ChvZAa','B3v0zxjiDg1SqNLszwy','zgvSzxrL','y2XVC2vgywTLugfNzq','BMv0D29YA0vUDhjPzxm','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','mKvSC3PJzG','Bwv0Ag9K','zMLSBa','zhjPDMvY','CgfNzxm','mteWnw9KyMnbDa','Ag92zxi','odiZmMfiBLH4vq','zw1PDezHA2vqB3b1Ca','y2HLy2S','Bgf1BMnOzwq','mtq3ntm5odfjv1DKzwG','C2nYB2XSsw50B1zPzxC','D2fPDezVCG','Cg9W','tg9JyxrVCKvYCM9Y','y2HLy2TLzfn0yxrL','CgfNzuXPC3q','A2LUza','ndG1otvqChP3D2K','Aw5WDxrwywX1zuj5rgvMyxvSDa','nJqXnZC5oeHHDvfhqG','zg91yMXLq2XPy2S','C2nVCgu','C3bSAwnL','y291BNq','CMvM','zNjVBq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','CMvJB3jK','ywn0AxzLswr4','B25bzNrLCKnSAwnR','rMfRzvDLyKrYAxzLCG'];_0x4caa=function(){return _0x5e6843;};return _0x4caa();}var __defProp=Object[_0x26592c(0x188)],__name=(_0x4dbe34,_0x4a6ea0)=>__defProp(_0x4dbe34,_0x26592c(0x189),{'value':_0x4a6ea0,'configurable':!![]});function subscribe(_0x5b621c,_0x315a8d){const _0x59d99f={_0x44be23:0x1bc},_0xeadc65=_0x26592c;return _0x5b621c[_0xeadc65(0x167)](_0x315a8d),()=>{const _0xb92b2f=_0xeadc65;_0x5b621c[_0xb92b2f(_0x59d99f._0x44be23)](_0x315a8d);};}__name(subscribe,_0x26592c(0x1b3));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x26592c(0x180));}},LocatorError=class extends UnotestError{static{__name(this,_0x26592c(0x1cf));}};function createRecorder(){const _0x20c04a=_0x26592c,_0x2b85a5=[];let _0x2b1f88=0x0;return{'push':__name(_0x57a817=>_0x2b85a5[_0x20c04a(0x1ba)]({..._0x57a817,'seq':_0x2b1f88++}),'push'),'calls':__name(()=>_0x2b85a5,_0x20c04a(0x1a8))};}__name(createRecorder,'createRecorder');function _0xd816(_0x6a3183,_0x3a8802){_0x6a3183=_0x6a3183-0x163;const _0x4caaf0=_0x4caa();let _0xd816d0=_0x4caaf0[_0x6a3183];if(_0xd816['nvdVzS']===undefined){var _0x4ae72b=function(_0x4d5eba){const _0xc50e46='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4dbe34='',_0x4a6ea0='';for(let _0x5b621c=0x0,_0x315a8d,_0x2b85a5,_0x2b1f88=0x0;_0x2b85a5=_0x4d5eba['charAt'](_0x2b1f88++);~_0x2b85a5&&(_0x315a8d=_0x5b621c%0x4?_0x315a8d*0x40+_0x2b85a5:_0x2b85a5,_0x5b621c++%0x4)?_0x4dbe34+=String['fromCharCode'](0xff&_0x315a8d>>(-0x2*_0x5b621c&0x6)):0x0){_0x2b85a5=_0xc50e46['indexOf'](_0x2b85a5);}for(let _0x57a817=0x0,_0x592659=_0x4dbe34['length'];_0x57a817<_0x592659;_0x57a817++){_0x4a6ea0+='%'+('00'+_0x4dbe34['charCodeAt'](_0x57a817)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a6ea0);};_0xd816['besSTE']=_0x4ae72b,_0xd816['NyOmQr']={},_0xd816['nvdVzS']=!![];}const _0x50f20a=_0x4caaf0[0x0],_0x446a10=_0x6a3183+_0x50f20a,_0x58b4e7=_0xd816['NyOmQr'][_0x446a10];return!_0x58b4e7?(_0xd816d0=_0xd816['besSTE'](_0xd816d0),_0xd816['NyOmQr'][_0x446a10]=_0xd816d0):_0xd816d0=_0x58b4e7,_0xd816d0;}var FakePage=class{constructor(_0x592659,_0x42c83b,_0x14d9b6,_0x126ea1){const _0x183222={_0x4fea3a:0x18c,_0x34255b:0x1d7,_0x55b023:0x1a4},_0x3ab7ba=_0x26592c;this[_0x3ab7ba(_0x183222._0x4fea3a)]=_0x592659,this[_0x3ab7ba(0x17c)]=_0x42c83b,this[_0x3ab7ba(_0x183222._0x34255b)]=_0x14d9b6,this[_0x3ab7ba(_0x183222._0x55b023)]=_0x126ea1;}['recorder'];[_0x26592c(0x17c)];[_0x26592c(0x1d7)];static{__name(this,'FakePage');}[_0x26592c(0x1a4)];['onAfterClick'];[_0x26592c(0x1dd)](_0x123f15,_0x1d02a1){const _0xf86024=_0x26592c;this[_0xf86024(0x18c)]['push']({'scope':this['scope'],'method':_0x123f15,'args':_0x1d02a1});}[_0x26592c(0x1ab)](){const _0x1722a8={_0x311f0c:0x1ac},_0x34ffbf=_0x26592c;if(this[_0x34ffbf(0x17c)][_0x34ffbf(_0x1722a8._0x311f0c)]){const _0x1e9290=this[_0x34ffbf(0x17c)]['errorOnNextAction'];this[_0x34ffbf(0x17c)][_0x34ffbf(_0x1722a8._0x311f0c)]=void 0x0;throw _0x1e9290;}}[_0x26592c(0x175)](){const _0x3277c4=_0x26592c;return this[_0x3277c4(0x1a4)];}async[_0x26592c(0x194)](){const _0x567a0a={_0xaa5e97:0x1dd},_0x268f17=_0x26592c;return this[_0x268f17(_0x567a0a._0xaa5e97)](_0x268f17(0x194),[]),_0x268f17(0x166);}async['click'](_0x4fdd6f,_0x58a946){const _0x17f792={_0x370ce4:0x1dd,_0x19ad6c:0x17d,_0x16e455:0x1ab},_0x4a033a=_0x26592c;this[_0x4a033a(_0x17f792._0x370ce4)](_0x4a033a(_0x17f792._0x19ad6c),[_0x4fdd6f,_0x58a946]),this[_0x4a033a(_0x17f792._0x16e455)](),this[_0x4a033a(0x1df)]?.();}async[_0x26592c(0x1d6)](_0x283a93,_0x3e5430){const _0x59aa06={_0x4a9edb:0x1dd,_0x40b7ba:0x1d6,_0x3220a0:0x1ab},_0x29ed9d=_0x26592c;this[_0x29ed9d(_0x59aa06._0x4a9edb)](_0x29ed9d(_0x59aa06._0x40b7ba),[_0x283a93,_0x3e5430]),this[_0x29ed9d(_0x59aa06._0x3220a0)]();}async[_0x26592c(0x1c2)](_0x397be6,_0x266d21,_0x5127dd){const _0x495b5a={_0x39dff9:0x1dd,_0x4a7e12:0x1c2},_0xcd36ca=_0x26592c;this[_0xcd36ca(_0x495b5a._0x39dff9)](_0xcd36ca(_0x495b5a._0x4a7e12),[_0x397be6,_0x266d21,_0x5127dd]),this['maybeThrow']();}async['press'](_0x2e8102,_0xef7dc5,_0x32f89b){const _0x363b9d=_0x26592c;this['record']('press',[_0x2e8102,_0xef7dc5,_0x32f89b]),this[_0x363b9d(0x1ab)]();}async[_0x26592c(0x1c9)](_0x5b77d4,_0x1ede18){const _0x442c83={_0x379e59:0x1dd},_0x5be3e9=_0x26592c;this[_0x5be3e9(_0x442c83._0x379e59)]('check',[_0x5b77d4,_0x1ede18]),this[_0x5be3e9(0x1ab)]();}async[_0x26592c(0x1b9)](_0x4db841,_0x544388){const _0x554e6b={_0x29d79a:0x1b9},_0x251550=_0x26592c;this[_0x251550(0x1dd)](_0x251550(_0x554e6b._0x29d79a),[_0x4db841,_0x544388]),this['maybeThrow']();}async['selectOption'](_0x2401b4,_0x3d3524,_0x50449f){const _0x1ddfac={_0x3c64ca:0x1dd},_0x53369d=_0x26592c;this[_0x53369d(_0x1ddfac._0x3c64ca)](_0x53369d(0x1a6),[_0x2401b4,_0x3d3524,_0x50449f]),this[_0x53369d(0x1ab)]();}async[_0x26592c(0x1c6)](_0x155326,_0x15c8b3){const _0x318a7d=_0x26592c;this[_0x318a7d(0x1dd)]('hover',[_0x155326,_0x15c8b3]),this[_0x318a7d(0x1ab)]();}async[_0x26592c(0x1cc)](_0x4df822){const _0x195f69=_0x26592c;this[_0x195f69(0x1dd)](_0x195f69(0x1cc),[_0x4df822]),this[_0x195f69(0x1ab)]();}async[_0x26592c(0x1b5)](_0x129b13,_0x18f333,_0x438712){const _0x2998d4={_0x80c7c9:0x1b5,_0x4eb396:0x1ab},_0x1746f9=_0x26592c;this['record'](_0x1746f9(_0x2998d4._0x80c7c9),[_0x129b13,_0x18f333,_0x438712]),this[_0x1746f9(_0x2998d4._0x4eb396)]();}async[_0x26592c(0x1a2)](_0xb2cd0d,_0x9d44e7){const _0xf74ad7={_0x566cb3:0x1dd,_0x46f94d:0x1a2,_0x356bc5:0x1ab},_0x4d8a80=_0x26592c;this[_0x4d8a80(_0xf74ad7._0x566cb3)](_0x4d8a80(_0xf74ad7._0x46f94d),[_0xb2cd0d,_0x9d44e7]),this[_0x4d8a80(_0xf74ad7._0x356bc5)]();}async[_0x26592c(0x178)](_0x48bea3,_0x1ede15){const _0x5343fb=_0x26592c;this[_0x5343fb(0x1dd)]('clipboardPaste',[_0x48bea3,_0x1ede15]),this[_0x5343fb(0x1ab)]();}async['count'](_0xf44b02){const _0x59f186={_0x86be09:0x1d9},_0x21fa38=_0x26592c;return this['record'](_0x21fa38(_0x59f186._0x86be09),[_0xf44b02]),this[_0x21fa38(0x17c)][_0x21fa38(0x199)]??0x1;}async[_0x26592c(0x1b4)](_0x22feed){const _0x5552bb={_0x16fc4e:0x195},_0x58ca5=_0x26592c;return this['record'](_0x58ca5(0x1b4),[_0x22feed]),this[_0x58ca5(0x17c)][_0x58ca5(_0x5552bb._0x16fc4e)]??'';}async['innerText'](_0x1b7324){const _0x289392={_0x1b757b:0x1b7,_0x1e8168:0x17c,_0x27ee1e:0x19d,_0x33ec89:0x17c},_0x53ad4f=_0x26592c;return this['record'](_0x53ad4f(_0x289392._0x1b757b),[_0x1b7324]),this[_0x53ad4f(_0x289392._0x1e8168)][_0x53ad4f(_0x289392._0x27ee1e)]??this[_0x53ad4f(_0x289392._0x33ec89)]['textContentByDefault']??'';}async[_0x26592c(0x17e)](_0x12b8de){const _0x53d984={_0x21919f:0x1dd},_0x2a8cd8=_0x26592c;return this[_0x2a8cd8(_0x53d984._0x21919f)](_0x2a8cd8(0x17e),[_0x12b8de]),this['behavior'][_0x2a8cd8(0x1d4)]??'';}async[_0x26592c(0x1d0)](_0x50c4d2){const _0x2640e2=_0x26592c;return this['record'](_0x2640e2(0x1d0),[_0x50c4d2]),this[_0x2640e2(0x17c)][_0x2640e2(0x1b2)]??null;}async[_0x26592c(0x16c)](_0x1a51a4){const _0x2d2da3={_0x44ac1d:0x17c,_0x39653a:0x19c},_0x8812bf=_0x26592c;return this['record'](_0x8812bf(0x16c),[_0x1a51a4]),this[_0x8812bf(_0x2d2da3._0x44ac1d)][_0x8812bf(_0x2d2da3._0x39653a)]??!![];}async[_0x26592c(0x17a)](_0x8cf678){const _0x5490e2={_0x7aafd:0x17c},_0x3a81ad=_0x26592c;return this['record'](_0x3a81ad(0x17a),[_0x8cf678]),this[_0x3a81ad(_0x5490e2._0x7aafd)][_0x3a81ad(0x18d)]??![];}async[_0x26592c(0x183)](_0x2a5f66,_0xc856b6){const _0x49c5cd=_0x26592c;return this['record'](_0x49c5cd(0x183),[_0x2a5f66,_0xc856b6]),this['behavior'][_0x49c5cd(0x18e)]?.[_0xc856b6]??null;}async[_0x26592c(0x1cd)](_0x261756,_0x57dc43){const _0x46a583=_0x26592c;this[_0x46a583(0x1dd)](_0x46a583(0x1cd),[_0x261756,_0x57dc43]);}async[_0x26592c(0x18a)](_0x566403,_0x52bb4a){const _0x572f8c={_0x37830f:0x18a},_0x2a03e9=_0x26592c;this[_0x2a03e9(0x1dd)](_0x2a03e9(_0x572f8c._0x37830f),[_0x566403,_0x52bb4a]);}async[_0x26592c(0x165)](_0x506f70,_0x44452a){const _0x20a4e0={_0x2fbead:0x1dd,_0x33bac2:0x165},_0x411cd8=_0x26592c;this[_0x411cd8(_0x20a4e0._0x2fbead)](_0x411cd8(_0x20a4e0._0x33bac2),[_0x506f70,_0x44452a]);}async[_0x26592c(0x172)](_0x357f3d){const _0x129ddf=_0x26592c;this[_0x129ddf(0x1dd)](_0x129ddf(0x172),[_0x357f3d]);}async['waitForLoadState'](_0x1619f6,_0x4d790d){const _0x32aafb={_0x29b987:0x168},_0x11d8ec=_0x26592c;this['record'](_0x11d8ec(_0x32aafb._0x29b987),[_0x1619f6,_0x4d790d]);}async['goto'](_0x19d697,_0x46e939){const _0x5496cc={_0x36a4de:0x1dd},_0x167186=_0x26592c;this[_0x167186(_0x5496cc._0x36a4de)](_0x167186(0x1a7),[_0x19d697,_0x46e939]),this['currentUrl']=_0x19d697;}async[_0x26592c(0x193)](_0x5c2f71){const _0x459ca3={_0x3be099:0x1dd,_0x3bb60b:0x193},_0x26da2c=_0x26592c;this[_0x26da2c(_0x459ca3._0x3be099)](_0x26da2c(_0x459ca3._0x3bb60b),[_0x5c2f71]);}async[_0x26592c(0x181)](_0x2759d3){const _0x339895=_0x26592c;this[_0x339895(0x1dd)]('goBack',[_0x2759d3]);}async[_0x26592c(0x18b)](_0x1296ad){const _0x234db0={_0x10ffae:0x1dd},_0x44fcd2=_0x26592c;this[_0x44fcd2(_0x234db0._0x10ffae)](_0x44fcd2(0x18b),[_0x1296ad]);}async['evaluate'](_0x29d4dd){const _0x586ebb={_0x59abff:0x1aa},_0x59d6cc=_0x26592c;return this['record'](_0x59d6cc(_0x586ebb._0x59abff),[_0x29d4dd]),this['behavior'][_0x59d6cc(0x1a5)];}async['evaluateOnLocator'](_0x4a12d4,_0x55c6cf){const _0x18b54d={_0xe7a3d4:0x173},_0x55a2b3=_0x26592c;return this[_0x55a2b3(0x1dd)](_0x55a2b3(_0x18b54d._0xe7a3d4),[_0x4a12d4,_0x55c6cf]),void 0x0;}async[_0x26592c(0x16e)](_0x2294f8){const _0x244f20={_0x13e736:0x1da,_0x4da851:0x1e4},_0x139652=_0x26592c;this[_0x139652(0x1dd)](_0x139652(0x16e),[_0x2294f8]);if(_0x2294f8['steps']['length']!==0x1||_0x2294f8[_0x139652(0x1e4)][0x0][_0x139652(0x1d2)]!==_0x139652(_0x244f20._0x13e736))return null;const _0x15cb09=_0x2294f8[_0x139652(_0x244f20._0x4da851)][0x0][_0x139652(0x1da)],_0x83d23b=this[_0x139652(0x17c)]['elementHintByRef']?.[_0x15cb09];return _0x83d23b??null;}async[_0x26592c(0x186)](_0x517571){const _0x34cafe={_0x43bc40:0x1dd,_0x10a487:0x186,_0x4b51d0:0x1b6},_0x57848c=_0x26592c;return this[_0x57848c(_0x34cafe._0x43bc40)](_0x57848c(_0x34cafe._0x10a487),[_0x517571]),this[_0x57848c(_0x34cafe._0x4b51d0)](_0x517571?.[_0x57848c(0x192)]);}async[_0x26592c(0x164)](_0x229420,_0x2cf8cc){const _0x49104a={_0x300407:0x164},_0x173456=_0x26592c;return this[_0x173456(0x1dd)](_0x173456(_0x49104a._0x300407),[_0x229420,_0x2cf8cc]),this['screenshotBytes'](_0x2cf8cc?.['type']);}[_0x26592c(0x1b6)](_0x164275){const _0x527699={_0x4751bc:0x1db},_0x50eb43=_0x26592c,_0x16b3ab=this[_0x50eb43(0x17c)][_0x50eb43(0x1b6)];if(_0x16b3ab===void 0x0)return Buffer[_0x50eb43(_0x527699._0x4751bc)](_0x50eb43(0x170));return typeof _0x16b3ab===_0x50eb43(0x182)?_0x16b3ab(_0x164275):_0x16b3ab;}async['outerHTML'](_0x3db27a){const _0x21fd32={_0x2e242c:0x1e4,_0x4208cb:0x18f,_0x45fc16:0x190,_0x3966b5:0x1ae,_0x15748a:0x1b1},_0x4eef64=_0x26592c;this[_0x4eef64(0x1dd)](_0x4eef64(0x191),[_0x3db27a]);if(_0x3db27a[_0x4eef64(_0x21fd32._0x2e242c)][_0x4eef64(_0x21fd32._0x4208cb)]===0x1&&_0x3db27a[_0x4eef64(0x1e4)][0x0][_0x4eef64(0x1d2)]===_0x4eef64(0x1da)){const _0x476421=_0x3db27a[_0x4eef64(0x1e4)][0x0][_0x4eef64(0x1da)];return this[_0x4eef64(0x17c)][_0x4eef64(0x1bb)]?.[_0x476421]??_0x4eef64(_0x21fd32._0x45fc16)+_0x476421+_0x4eef64(_0x21fd32._0x3966b5);}return _0x4eef64(_0x21fd32._0x15748a);}},FakeContext=class{constructor(_0x1760da,_0x8027e7,_0x5acc94){const _0x5dfd43={_0x480cf1:0x19e,_0xfeb96f:0x1df},_0x2b24d3=_0x26592c;this['recorder']=_0x1760da,this['behavior']=_0x8027e7,this['scope']=_0x5acc94;const _0x302b86=new FakePage(_0x1760da,_0x8027e7,_0x5acc94+'.page0',_0x8027e7[_0x2b24d3(_0x5dfd43._0x480cf1)]??_0x2b24d3(0x171));_0x8027e7[_0x2b24d3(0x197)]&&(_0x302b86[_0x2b24d3(_0x5dfd43._0xfeb96f)]=()=>{this['emitFakePopup'](_0x8027e7['popupOnClick']);}),this['pageList']=[_0x302b86],this[_0x2b24d3(0x16b)]={..._0x8027e7['localStorage']??{}},this['cookieState']={..._0x8027e7[_0x2b24d3(0x1a3)]??{}};}[_0x26592c(0x18c)];[_0x26592c(0x17c)];[_0x26592c(0x1d7)];static{__name(this,_0x26592c(0x19b));}[_0x26592c(0x1d1)];[_0x26592c(0x1de)]=0x0;[_0x26592c(0x176)]=[];[_0x26592c(0x16b)];['cookieState'];['newPageListeners']=new Set();[_0x26592c(0x1dd)](_0x44a4a8,_0x38b4a6){const _0x18ed92={_0x1a50dd:0x1d7},_0x34426e=_0x26592c;this[_0x34426e(0x18c)][_0x34426e(0x1ba)]({'scope':this[_0x34426e(_0x18ed92._0x1a50dd)],'method':_0x44a4a8,'args':_0x38b4a6});}[_0x26592c(0x1c4)](){const _0x11f540={_0x34e401:0x1d1},_0x2c6404=_0x26592c;return this[_0x2c6404(_0x11f540._0x34e401)];}[_0x26592c(0x16d)](){const _0x4bb6a0={_0x1be02c:0x1de},_0x37cc4d=_0x26592c,_0x7864ad=this['pageList'][this[_0x37cc4d(_0x4bb6a0._0x1be02c)]];if(!_0x7864ad)throw new DriverError(_0x37cc4d(0x1dc),{'activeIdx':this[_0x37cc4d(0x1de)]});return _0x7864ad;}[_0x26592c(0x1a9)](){const _0x4dd0a6=_0x26592c;return this['behavior'][_0x4dd0a6(0x1a9)]??[];}[_0x26592c(0x1be)](){const _0x317def=_0x26592c;return this[_0x317def(0x17c)]['networkEntries']??[];}async['setActivePage'](_0x542b08){const _0x62667f={_0x2ad670:0x1d1,_0x30131b:0x18f},_0x466280=_0x26592c;this[_0x466280(0x1dd)]('setActivePage',[_0x542b08]);if(_0x542b08<0x0||_0x542b08>=this[_0x466280(0x1d1)]['length'])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x542b08,'available':this[_0x466280(_0x62667f._0x2ad670)][_0x466280(0x18f)]});this['activeIdx']=_0x542b08,this[_0x466280(0x176)][_0x466280(_0x62667f._0x30131b)]=0x0;}[_0x26592c(0x19f)](_0x20e1a1){return subscribe(this['newPageListeners'],_0x20e1a1);}[_0x26592c(0x1c8)](_0x770a6c){const _0x176932={_0x4554af:0x1d1,_0x352888:0x18f,_0x51cf63:0x17c},_0x49b368=_0x26592c,_0x2cdbe7=this[_0x49b368(0x1d7)]+_0x49b368(0x1e1)+this[_0x49b368(_0x176932._0x4554af)][_0x49b368(_0x176932._0x352888)],_0x46a587=new FakePage(this[_0x49b368(0x18c)],this[_0x49b368(_0x176932._0x51cf63)],_0x2cdbe7,_0x770a6c);this['pageList'][_0x49b368(0x1ba)](_0x46a587);const _0x411590=this[_0x49b368(_0x176932._0x4554af)][_0x49b368(_0x176932._0x352888)]-0x1;for(const _0x5a1b7f of this['newPageListeners']){try{_0x5a1b7f({'index':_0x411590,'url':_0x770a6c});}catch{}}return _0x411590;}[_0x26592c(0x1bd)](_0x1da927){const _0x2bd199={_0xc9c2f2:0x1e3,_0x4b0023:0x1d8},_0x4137f4=_0x26592c;if(_0x1da927<0x0||_0x1da927>=this[_0x4137f4(0x1d1)]['length'])throw new DriverError(_0x4137f4(_0x2bd199._0xc9c2f2),{'index':_0x1da927,'available':this[_0x4137f4(0x1d1)]['length']});this[_0x4137f4(0x1d1)][_0x4137f4(_0x2bd199._0x4b0023)](_0x1da927,0x1);}async[_0x26592c(0x16a)](_0x1d3602){const _0x11f486={_0x415d11:0x1e4},_0x34f446=_0x26592c;this['record'](_0x34f446(0x16a),[_0x1d3602]);if(!_0x1d3602[_0x34f446(_0x11f486._0x415d11)][_0x34f446(0x18f)])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x1d3602});this['frameStack'][_0x34f446(0x1ba)](_0x1d3602);}async['exitFrame'](){const _0x3fa800={_0x36ed0e:0x18f,_0x443bba:0x1b0},_0x4b7c42=_0x26592c;this[_0x4b7c42(0x1dd)](_0x4b7c42(0x1af),[]);if(this[_0x4b7c42(0x176)][_0x4b7c42(_0x3fa800._0x36ed0e)]===0x0)throw new DriverError(_0x4b7c42(_0x3fa800._0x443bba),{});this[_0x4b7c42(0x176)][_0x4b7c42(0x1ce)]();}async['setLocalStorage'](_0x288508,_0x1d44e1){const _0x3810cd={_0x117a29:0x16b},_0xa65bfb=_0x26592c;this[_0xa65bfb(0x1dd)]('setLocalStorage',[_0x288508,_0x1d44e1]),this[_0xa65bfb(_0x3810cd._0x117a29)][_0x288508]=_0x1d44e1;}async[_0x26592c(0x174)](_0x3f40bf){const _0x5085c5={_0x221678:0x1dd},_0x440e48=_0x26592c;return this[_0x440e48(_0x5085c5._0x221678)](_0x440e48(0x174),[_0x3f40bf]),this[_0x440e48(0x16b)][_0x3f40bf]??null;}async['setCookie'](_0x5931f5,_0x9cf2f3,_0x56bd6a){const _0x2fd8b7={_0x3c687e:0x1dd},_0x1084b4=_0x26592c;this[_0x1084b4(_0x2fd8b7._0x3c687e)](_0x1084b4(0x187),[_0x5931f5,_0x9cf2f3,_0x56bd6a]),this['cookieState'][_0x5931f5]=_0x9cf2f3;}async[_0x26592c(0x196)](_0x5a4e57){const _0x3c59c6=_0x26592c;return this['record'](_0x3c59c6(0x196),[_0x5a4e57]),this['cookieState'][_0x5a4e57]??null;}async[_0x26592c(0x198)](_0x2b6b89){const _0x2b4183={_0x4ffa62:0x1dd},_0x329480=_0x26592c;this[_0x329480(_0x2b4183._0x4ffa62)](_0x329480(0x198),[_0x2b6b89]);}async[_0x26592c(0x1aa)](_0x3720be){const _0x1c406a={_0x3be31a:0x1aa},_0x53bbf7=_0x26592c;return this['record'](_0x53bbf7(_0x1c406a._0x3be31a),[_0x3720be]),void 0x0;}async['close'](){const _0x3ec69f=_0x26592c;this['record'](_0x3ec69f(0x17b),[]);}[_0x26592c(0x177)](){const _0x24749b={_0x5e1d95:0x176},_0xc8a89b=_0x26592c;return this[_0xc8a89b(_0x24749b._0x5e1d95)][_0xc8a89b(0x18f)];}},FakeWebDriver=class{constructor(_0x933b11={}){const _0x2a1470={_0x3e52fb:0x18c},_0x3bd456=_0x26592c;this['behavior']=_0x933b11,this[_0x3bd456(_0x2a1470._0x3e52fb)]=createRecorder();}[_0x26592c(0x17c)];static{__name(this,_0x26592c(0x1e0));}['launched']=![];[_0x26592c(0x18c)];[_0x26592c(0x1b8)]=[];async[_0x26592c(0x1a1)](_0x185b02){const _0x3a9996=_0x26592c;this['recorder'][_0x3a9996(0x1ba)]({'scope':'driver','method':'launch','args':[_0x185b02]}),this['launched']=!![];}async[_0x26592c(0x1a0)](_0x54fed5){const _0x118c7d={_0x232dda:0x1ba,_0x10559c:0x1c3,_0x3208c3:0x1a0,_0x41b155:0x1ca,_0x53fae5:0x1bf},_0x1fbfd2=_0x26592c;this[_0x1fbfd2(0x18c)][_0x1fbfd2(_0x118c7d._0x232dda)]({'scope':_0x1fbfd2(_0x118c7d._0x10559c),'method':_0x1fbfd2(_0x118c7d._0x3208c3),'args':[_0x54fed5]});if(!this[_0x1fbfd2(_0x118c7d._0x41b155)])throw new DriverError(_0x1fbfd2(_0x118c7d._0x53fae5),{});const _0x46a3e8=new FakeContext(this['recorder'],this[_0x1fbfd2(0x17c)],_0x1fbfd2(0x163)+this[_0x1fbfd2(0x1b8)][_0x1fbfd2(0x18f)]);return this['contexts'][_0x1fbfd2(_0x118c7d._0x232dda)](_0x46a3e8),_0x46a3e8;}async['close'](){const _0x4ee164={_0x24d3b9:0x1c3},_0x13f66f=_0x26592c;this[_0x13f66f(0x18c)][_0x13f66f(0x1ba)]({'scope':_0x13f66f(_0x4ee164._0x24d3b9),'method':'close','args':[]}),this['launched']=![];}['wsEndpoint'](){return void 0x0;}async['connectShared'](){const _0xb1b1ce={_0xfd4da4:0x179},_0x1f83b3=_0x26592c;throw new DriverError(_0x1f83b3(_0xb1b1ce._0xfd4da4),{});}[_0x26592c(0x1e2)](_0x40d6eb){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}['calls'](){const _0x5351c3={_0x389277:0x1a8},_0x59e0f3=_0x26592c;return this[_0x59e0f3(0x18c)][_0x59e0f3(_0x5351c3._0x389277)]();}[_0x26592c(0x1ad)](_0x3394dd){const _0x2e0b15={_0x14692e:0x18c,_0x2cb697:0x1a8,_0x315791:0x185},_0x45c76c=_0x26592c;return this[_0x45c76c(_0x2e0b15._0x14692e)][_0x45c76c(_0x2e0b15._0x2cb697)]()[_0x45c76c(_0x2e0b15._0x315791)](_0x4b952a=>_0x4b952a[_0x45c76c(0x1c1)]===_0x3394dd);}};export{FakeWebDriver};
1
+ const _0x4be305=_0x1b6f;(function(_0x1631a6,_0x1e2fd8){const _0x2b90d2={_0x280e5:0x1d9,_0x55e476:0x21f,_0x480a0b:0x22f},_0x397b75=_0x1b6f,_0xea857b=_0x1631a6();while(!![]){try{const _0x5eeb7b=-parseInt(_0x397b75(0x1be))/0x1+parseInt(_0x397b75(_0x2b90d2._0x280e5))/0x2+-parseInt(_0x397b75(0x1ff))/0x3*(-parseInt(_0x397b75(_0x2b90d2._0x55e476))/0x4)+-parseInt(_0x397b75(0x212))/0x5*(-parseInt(_0x397b75(0x1c5))/0x6)+parseInt(_0x397b75(0x1e4))/0x7+parseInt(_0x397b75(_0x2b90d2._0x480a0b))/0x8+-parseInt(_0x397b75(0x214))/0x9;if(_0x5eeb7b===_0x1e2fd8)break;else _0xea857b['push'](_0xea857b['shift']());}catch(_0xf7ef68){_0xea857b['push'](_0xea857b['shift']());}}}(_0x4d17,0x9f1bd));function _0x1b6f(_0x54c09c,_0x5a7cbc){_0x54c09c=_0x54c09c-0x1b4;const _0x4d17ac=_0x4d17();let _0x1b6ff9=_0x4d17ac[_0x54c09c];if(_0x1b6f['TUqpNk']===undefined){var _0x54c297=function(_0xf47314){const _0xbf2a5d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x38ceb5='',_0x48b3b6='';for(let _0xbe630c=0x0,_0x2b934f,_0x5108d9,_0x27cb0d=0x0;_0x5108d9=_0xf47314['charAt'](_0x27cb0d++);~_0x5108d9&&(_0x2b934f=_0xbe630c%0x4?_0x2b934f*0x40+_0x5108d9:_0x5108d9,_0xbe630c++%0x4)?_0x38ceb5+=String['fromCharCode'](0xff&_0x2b934f>>(-0x2*_0xbe630c&0x6)):0x0){_0x5108d9=_0xbf2a5d['indexOf'](_0x5108d9);}for(let _0x5b928a=0x0,_0x29938d=_0x38ceb5['length'];_0x5b928a<_0x29938d;_0x5b928a++){_0x48b3b6+='%'+('00'+_0x38ceb5['charCodeAt'](_0x5b928a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48b3b6);};_0x1b6f['eNpaTE']=_0x54c297,_0x1b6f['WcbyHb']={},_0x1b6f['TUqpNk']=!![];}const _0x349e37=_0x4d17ac[0x0],_0x1a9c51=_0x54c09c+_0x349e37,_0x59d22c=_0x1b6f['WcbyHb'][_0x1a9c51];return!_0x59d22c?(_0x1b6ff9=_0x1b6f['eNpaTE'](_0x1b6ff9),_0x1b6f['WcbyHb'][_0x1a9c51]=_0x1b6ff9):_0x1b6ff9=_0x59d22c,_0x1b6ff9;}function _0x4d17(){const _0x3f6e69=['lNbHz2u','D2fPDezVCKXVywrtDgf0zq','CMvJB3jKzxi','nZaYode5mLLntfPjzq','zNjHBwvtDgfJAW','Cg9W','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','D2fPDezVCLrLEhq','ywjVDxq6yMXHBMS','CMvSB2fK','y29UC29SzuvUDhjPzxm','z2v0q29VA2LL','Dgv4DenVBNrLBNq','zhjPDMvY','ywn0AxzLswr4','zNjHBwvezxb0Aa','mtiYmJaWnvfrrezqzG','rMfRzvDLyKrYAxzLCG','zxzHBhvHDgvpBKXVy2f0B3i','Aw5UzxjuzxH0qNLezwzHDwX0','zMfRzsb0AxrSzq','AxnwAxnPyMXL','Bg9JywXtDg9YywDL','mZa2otKZmfzwq2nXuG','zMfRzs1WBMC','y29VA2LLu3rHDgu','y29UBMvJDfnOyxjLza','CMvM','C2nYzwvUC2HVDevSzw1LBNq','y291BNq','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','y2fSBhm','C2nYzwvUC2HVDej5DgvZ','DhLWzq','BgvUz3rO','zgvSzxrL','zgvMAw5LuhjVCgvYDhK','Ag92zxi','z290BW','y3r4','Bwv0Ag9K','B25ozxDqywDL','y29VA2LLCW','mZyZndaYrvvmsfbV','Bgf1BMnO','C3rLChm','zMLSDgvY','CMvJB3jK','Aw5UzxjuzxH0','Aw5WDxrwywX1zq','C2v0tg9JywXtDg9YywDL','BMv3ugfNzuXPC3rLBMvYCW','BMfTzq','zxzHBhvHDgvszxn1Bhq','nJq5mJu2m0nfDuTWrW','C2f2zvn0B3jHz2vtDgf0zq','zNvUy3rPB24','y29UDgv4Dhm','zw50zxjgCMfTzq','y2XVC2vgywTLugfNzq','D2fPDezVCG','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','iJ48l2rPDJ4','ChvZAa','y2XPCgjVyxjKugfZDgu','C3vIC2nYAwjL','zxjYB3jpBK5LEhrby3rPB24','y3jLyxrLuMvJB3jKzxi','y2XPy2S','yxr0ywnOrxHPC3rPBMC','DxjS','yMvOyxzPB3i','y2fSBhngB3i','D2fPDezVCK5HDMLNyxrPB24','z29cywnR','ChjLC3m','y2HLy2TLzfn0yxrLqNLezwzHDwX0','Bwf5yMvuAhjVDW','D2fPDezVCLvYBa','Aw5WDxrwywX1zuj5rgvMyxvSDa','ywn0AxzLugfNzq','mtHKBLbjwM4','z29gB3j3yxjK','lNbHz2uW','B3v0zxjive1m','y291BNrcEurLzMf1Bhq','C2nYzwvUC2HVDa','Aw5ZCgvJDevSzw1LBNq','Bg9JywXtDg9YywDLu3rHDgu','AxneAxnHyMXLza','C2v0q29VA2LL','DxbSB2fKrMLSzq','B3v0zxjiDg1SqNLszwy','y2XVC2u','Cg9WDxbpBKnSAwnR','DgL0Bgu','zg91yMXLq2XPy2S','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','tg9JyxrVCKvYCM9Y','Dw5JAgvJAW','mtbYwKXQDxu','zxHPDezYyw1L','mJaZmdqZmJrhsLDRCeG','zxzHBhvHDgu','zMLSBa','y3vYCMvUDfvYBa','C2nVCgu','ywrK','Dgv4DenVBNrLBNrcEurLzMf1Bhq','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','z2v0qxr0CMLIDxrL','C3bSAwnL','nZq1oda0qKXOwuDK','Bgf1BMnOzwq','y2HLy2TLzfn0yxrL','y2HLy2S','B25bzNrLCKnSAwnR','zNjVBq','C2vSzwn0t3b0Aw9U','C2v0qwn0AxzLugfNzq','zw1PDezHA2vqB3b1Ca','CgfNzuXPC3q','pgrPDJ48l2rPDJ4','BMv0D29YA0vUDhjPzxm','Aw5PDgLHBfvYBa'];_0x4d17=function(){return _0x3f6e69;};return _0x4d17();}var __defProp=Object[_0x4be305(0x1d2)],__name=(_0x38ceb5,_0x48b3b6)=>__defProp(_0x38ceb5,_0x4be305(0x1e2),{'value':_0x48b3b6,'configurable':!![]});function subscribe(_0xbe630c,_0x2b934f){const _0x31876e={_0x1b6c8c:0x219},_0x328ef6=_0x4be305;return _0xbe630c[_0x328ef6(_0x31876e._0x1b6c8c)](_0x2b934f),()=>{const _0x2a756f=_0x328ef6;_0xbe630c[_0x2a756f(0x1d1)](_0x2b934f);};}__name(subscribe,_0x4be305(0x1ef));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0x4be305(0x210));}};function createRecorder(){const _0x18f05e={_0x194071:0x1cd},_0x100c54=_0x4be305,_0x5108d9=[];let _0x27cb0d=0x0;return{'push':__name(_0x5b928a=>_0x5108d9[_0x100c54(0x1ed)]({..._0x5b928a,'seq':_0x27cb0d++}),'push'),'calls':__name(()=>_0x5108d9,_0x100c54(_0x18f05e._0x194071))};}__name(createRecorder,_0x4be305(0x1f1));var FakePage=class{constructor(_0x29938d,_0x2d48bf,_0x20ca35,_0x4f9c7b){const _0x395b87={_0x3a153c:0x1f5},_0xfdbc3e=_0x4be305;this[_0xfdbc3e(0x22e)]=_0x29938d,this[_0xfdbc3e(_0x395b87._0x3a153c)]=_0x2d48bf,this[_0xfdbc3e(0x218)]=_0x20ca35,this['currentUrl']=_0x4f9c7b;}['recorder'];[_0x4be305(0x1f5)];['scope'];static{__name(this,'FakePage');}['currentUrl'];[_0x4be305(0x223)];[_0x4be305(0x1dd)](_0x33bdb1,_0x5119f0){const _0x14f53d={_0x7e3e9d:0x22e,_0x3bba8b:0x1ed,_0xe66f8c:0x218},_0x2b3552=_0x4be305;this[_0x2b3552(_0x14f53d._0x7e3e9d)][_0x2b3552(_0x14f53d._0x3bba8b)]({'scope':this[_0x2b3552(_0x14f53d._0xe66f8c)],'method':_0x33bdb1,'args':_0x5119f0});}['maybeThrow'](){const _0x4969f7={_0xea3bb9:0x1f5,_0x4a0118:0x1f0},_0x20a906=_0x4be305;if(this[_0x20a906(_0x4969f7._0xea3bb9)][_0x20a906(_0x4969f7._0x4a0118)]){const _0x380598=this[_0x20a906(0x1f5)][_0x20a906(0x1f0)];this[_0x20a906(0x1f5)][_0x20a906(0x1f0)]=void 0x0;throw _0x380598;}}[_0x4be305(0x1f4)](){const _0xd60f5={_0x860f87:0x217},_0x134dea=_0x4be305;return this[_0x134dea(_0xd60f5._0x860f87)];}async[_0x4be305(0x20d)](){const _0x82d975={_0x33b53a:0x1c2},_0x2ceb0f=_0x4be305;return this[_0x2ceb0f(0x1dd)](_0x2ceb0f(0x20d),[]),_0x2ceb0f(_0x82d975._0x33b53a);}async[_0x4be305(0x1f2)](_0x468918,_0x44ef05){const _0x1d0692={_0x545f6a:0x1dd,_0x36f30d:0x223},_0x5f0004=_0x4be305;this[_0x5f0004(_0x1d0692._0x545f6a)]('click',[_0x468918,_0x44ef05]),this[_0x5f0004(0x1fb)](),this[_0x5f0004(_0x1d0692._0x36f30d)]?.();}async[_0x4be305(0x20e)](_0x2a8ecf,_0x5a1a82){const _0x1d508c={_0x13c6a2:0x1fb},_0x1c6082=_0x4be305;this[_0x1c6082(0x1dd)](_0x1c6082(0x20e),[_0x2a8ecf,_0x5a1a82]),this[_0x1c6082(_0x1d508c._0x13c6a2)]();}async[_0x4be305(0x216)](_0x424fe3,_0x23fe25,_0x147a9f){const _0x34847e=_0x4be305;this[_0x34847e(0x1dd)]('fill',[_0x424fe3,_0x23fe25,_0x147a9f]),this['maybeThrow']();}async[_0x4be305(0x1f9)](_0x35a4e0,_0x2148e5,_0x3154c5){const _0x56d918={_0x52a615:0x1f9,_0x3d9e3b:0x1fb},_0x2b6946=_0x4be305;this['record'](_0x2b6946(_0x56d918._0x52a615),[_0x35a4e0,_0x2148e5,_0x3154c5]),this[_0x2b6946(_0x56d918._0x3d9e3b)]();}async[_0x4be305(0x222)](_0x5cedac,_0xbbeff){const _0xa7f7eb={_0x41ea62:0x1dd,_0x52524f:0x1fb},_0x3e73f5=_0x4be305;this[_0x3e73f5(_0xa7f7eb._0x41ea62)](_0x3e73f5(0x222),[_0x5cedac,_0xbbeff]),this[_0x3e73f5(_0xa7f7eb._0x52524f)]();}async['uncheck'](_0x3fb068,_0x406527){const _0x122a84=_0x4be305;this[_0x122a84(0x1dd)](_0x122a84(0x211),[_0x3fb068,_0x406527]),this['maybeThrow']();}async[_0x4be305(0x225)](_0x306e37,_0x59df9d,_0x3a4232){const _0x4cabf5={_0x58d004:0x1fb},_0x25722f=_0x4be305;this[_0x25722f(0x1dd)](_0x25722f(0x225),[_0x306e37,_0x59df9d,_0x3a4232]),this[_0x25722f(_0x4cabf5._0x58d004)]();}async[_0x4be305(0x1d3)](_0x4c12f4,_0x4fb87b){const _0x1073b1={_0x3e17f2:0x1dd},_0x2f0dc1=_0x4be305;this[_0x2f0dc1(_0x1073b1._0x3e17f2)](_0x2f0dc1(0x1d3),[_0x4c12f4,_0x4fb87b]),this['maybeThrow']();}async['scrollIntoView'](_0x4184ce){const _0x5e036d=_0x4be305;this[_0x5e036d(0x1dd)]('scrollIntoView',[_0x4184ce]),this[_0x5e036d(0x1fb)]();}async['dragAndDrop'](_0x1cb298,_0x2ffda0,_0x4f7aea){const _0x35f6ee={_0x4af8a5:0x1dd},_0x556f37=_0x4be305;this[_0x556f37(_0x35f6ee._0x4af8a5)]('dragAndDrop',[_0x1cb298,_0x2ffda0,_0x4f7aea]),this['maybeThrow']();}async[_0x4be305(0x209)](_0x269851,_0x1a7567){const _0x2dd911={_0x2bb17f:0x209,_0x343023:0x1fb},_0x1d024f=_0x4be305;this[_0x1d024f(0x1dd)](_0x1d024f(_0x2dd911._0x2bb17f),[_0x269851,_0x1a7567]),this[_0x1d024f(_0x2dd911._0x343023)]();}async[_0x4be305(0x1ee)](_0x2130ac,_0x39981e){const _0x2bc3e1={_0x5df7ff:0x1fb},_0x96de1d=_0x4be305;this['record']('clipboardPaste',[_0x2130ac,_0x39981e]),this[_0x96de1d(_0x2bc3e1._0x5df7ff)]();}async[_0x4be305(0x1cb)](_0x234278){const _0x4526d6={_0xdf5b19:0x203},_0xbd396e=_0x4be305;return this[_0xbd396e(0x1dd)](_0xbd396e(0x1cb),[_0x234278]),this['behavior'][_0xbd396e(_0x4526d6._0xdf5b19)]??0x1;}async[_0x4be305(0x1ba)](_0x475e55){const _0x6d99b6={_0x31df90:0x1dd},_0x175e6d=_0x4be305;return this[_0x175e6d(_0x6d99b6._0x31df90)](_0x175e6d(0x1ba),[_0x475e55]),this[_0x175e6d(0x1f5)]['textContentByDefault']??'';}async[_0x4be305(0x1de)](_0x1bc743){const _0x2fd9c1={_0x2813c7:0x1f5,_0x527ac5:0x1c1},_0x2543f9=_0x4be305;return this['record'](_0x2543f9(0x1de),[_0x1bc743]),this[_0x2543f9(_0x2fd9c1._0x2813c7)][_0x2543f9(_0x2fd9c1._0x527ac5)]??this['behavior'][_0x2543f9(0x21a)]??'';}async[_0x4be305(0x1df)](_0x354826){const _0x2c7b66={_0xf6024b:0x1f5,_0x41f833:0x1fd},_0x57f463=_0x4be305;return this[_0x57f463(0x1dd)]('inputValue',[_0x354826]),this[_0x57f463(_0x2c7b66._0xf6024b)][_0x57f463(_0x2c7b66._0x41f833)]??'';}async[_0x4be305(0x221)](_0x4e8ebe){const _0x5c9321={_0x4e7f62:0x1dd,_0x530074:0x221},_0x1304b0=_0x4be305;return this[_0x1304b0(_0x5c9321._0x4e7f62)](_0x1304b0(_0x5c9321._0x530074),[_0x4e8ebe]),this['behavior'][_0x1304b0(0x1fa)]??null;}async['isVisible'](_0x49b0ed){const _0x2db8df={_0xa6fb54:0x1f5},_0x4f69a7=_0x4be305;return this['record'](_0x4f69a7(0x1c3),[_0x49b0ed]),this[_0x4f69a7(_0x2db8df._0xa6fb54)]['isVisibleByDefault']??!![];}async[_0x4be305(0x207)](_0x34b8e0){const _0x592ca8=_0x4be305;return this[_0x592ca8(0x1dd)](_0x592ca8(0x207),[_0x34b8e0]),this[_0x592ca8(0x1f5)]['isDisabledByDefault']??![];}async[_0x4be305(0x21d)](_0x2e49f8,_0x4318aa){const _0x1e6023={_0x2ab260:0x1f5},_0x5030ad=_0x4be305;return this['record']('getAttribute',[_0x2e49f8,_0x4318aa]),this[_0x5030ad(_0x1e6023._0x2ab260)]['attributesByDefault']?.[_0x4318aa]??null;}async[_0x4be305(0x1ea)](_0x300eb0,_0x49516e){const _0x37c5f7=_0x4be305;this['record'](_0x37c5f7(0x1ea),[_0x300eb0,_0x49516e]);}async[_0x4be305(0x1fc)](_0x1cb684,_0x1a52a0){const _0x572340={_0x43fe75:0x1dd,_0x1249ae:0x1fc},_0xf88d61=_0x4be305;this[_0xf88d61(_0x572340._0x43fe75)](_0xf88d61(_0x572340._0x1249ae),[_0x1cb684,_0x1a52a0]);}async[_0x4be305(0x1b5)](_0x11d53c,_0x29ed62){const _0x25ad84={_0x295018:0x1dd},_0x81ed53=_0x4be305;this[_0x81ed53(_0x25ad84._0x295018)]('waitForText',[_0x11d53c,_0x29ed62]);}async['waitForNavigation'](_0x106019){const _0x1e306e={_0x5e9eb:0x1dd,_0x130835:0x1f7},_0x5e6c2b=_0x4be305;this[_0x5e6c2b(_0x1e306e._0x5e9eb)](_0x5e6c2b(_0x1e306e._0x130835),[_0x106019]);}async[_0x4be305(0x22d)](_0x18baef,_0x219c26){const _0x24813d={_0x23aa46:0x1dd,_0x4495d9:0x22d},_0x1185ce=_0x4be305;this[_0x1185ce(_0x24813d._0x23aa46)](_0x1185ce(_0x24813d._0x4495d9),[_0x18baef,_0x219c26]);}async[_0x4be305(0x1d4)](_0x2ddec0,_0x2c66f4){const _0x1a520c=_0x4be305;this[_0x1a520c(0x1dd)](_0x1a520c(0x1d4),[_0x2ddec0,_0x2c66f4]),this['currentUrl']=_0x2ddec0;}async[_0x4be305(0x1b7)](_0x4b5830){this['record']('reload',[_0x4b5830]);}async[_0x4be305(0x1f8)](_0x344f21){const _0x126043={_0x1b039c:0x1dd,_0x389258:0x1f8},_0x272303=_0x4be305;this[_0x272303(_0x126043._0x1b039c)](_0x272303(_0x126043._0x389258),[_0x344f21]);}async['goForward'](_0x57f8e3){const _0x2e07de=_0x4be305;this['record'](_0x2e07de(0x200),[_0x57f8e3]);}async['evaluate'](_0x2aea9f){const _0x2186a1={_0x3123c8:0x1dd,_0x2241c4:0x215,_0x532574:0x1e3},_0x5eb1f8=_0x4be305;return this[_0x5eb1f8(_0x2186a1._0x3123c8)](_0x5eb1f8(_0x2186a1._0x2241c4),[_0x2aea9f]),this['behavior'][_0x5eb1f8(_0x2186a1._0x532574)];}async[_0x4be305(0x1c0)](_0x31690b,_0x3e9e5d){const _0x7fecc8={_0x369e31:0x1dd},_0x448883=_0x4be305;return this[_0x448883(_0x7fecc8._0x369e31)]('evaluateOnLocator',[_0x31690b,_0x3e9e5d]),void 0x0;}async[_0x4be305(0x205)](_0x5e3efc){const _0x45b531={_0x3e4f39:0x1db,_0xd65e7e:0x1d0,_0x312d43:0x1db,_0x32637c:0x1f5},_0x55173a=_0x4be305;this['record'](_0x55173a(0x205),[_0x5e3efc]);if(_0x5e3efc[_0x55173a(_0x45b531._0x3e4f39)][_0x55173a(_0x45b531._0xd65e7e)]!==0x1||_0x5e3efc[_0x55173a(0x1db)][0x0]['kind']!==_0x55173a(0x1c9))return null;const _0x31bc6d=_0x5e3efc[_0x55173a(_0x45b531._0x312d43)][0x0][_0x55173a(0x1c9)],_0x3bacd9=this[_0x55173a(_0x45b531._0x32637c)]['elementHintByRef']?.[_0x31bc6d];return _0x3bacd9??null;}async[_0x4be305(0x204)](_0x19ed8b){const _0xfe2eff={_0x4e4c34:0x204},_0x4db2ad=_0x4be305;return this[_0x4db2ad(0x1dd)](_0x4db2ad(_0xfe2eff._0x4e4c34),[_0x19ed8b]),this[_0x4db2ad(0x1ce)](_0x19ed8b?.[_0x4db2ad(0x1cf)]);}async[_0x4be305(0x1ca)](_0x164956,_0x216c2a){const _0x4d1a5c={_0x38d3b6:0x1dd,_0x4833e2:0x1cf},_0x5547d9=_0x4be305;return this[_0x5547d9(_0x4d1a5c._0x38d3b6)](_0x5547d9(0x1ca),[_0x164956,_0x216c2a]),this[_0x5547d9(0x1ce)](_0x216c2a?.[_0x5547d9(_0x4d1a5c._0x4833e2)]);}[_0x4be305(0x1ce)](_0x5eb071){const _0x281562={_0x2e3a84:0x1ce,_0x4a05cc:0x1c6,_0x2f3b5b:0x1e6},_0x354dfe=_0x4be305,_0x4bbb46=this[_0x354dfe(0x1f5)][_0x354dfe(_0x281562._0x2e3a84)];if(_0x4bbb46===void 0x0)return Buffer[_0x354dfe(0x224)](_0x354dfe(_0x281562._0x4a05cc));return typeof _0x4bbb46===_0x354dfe(_0x281562._0x2f3b5b)?_0x4bbb46(_0x5eb071):_0x4bbb46;}async[_0x4be305(0x202)](_0x5518be){const _0x148f5c={_0x3eba40:0x202,_0xf1a1dd:0x1db,_0x34896c:0x1d0,_0x14fff4:0x1db,_0x3bd776:0x1c9,_0x5af643:0x20a,_0x5861ea:0x1b4,_0x5434b7:0x229},_0x15a8a9=_0x4be305;this[_0x15a8a9(0x1dd)](_0x15a8a9(_0x148f5c._0x3eba40),[_0x5518be]);if(_0x5518be[_0x15a8a9(_0x148f5c._0xf1a1dd)][_0x15a8a9(_0x148f5c._0x34896c)]===0x1&&_0x5518be['steps'][0x0]['kind']==='ref'){const _0x5ad2af=_0x5518be[_0x15a8a9(_0x148f5c._0x14fff4)][0x0][_0x15a8a9(_0x148f5c._0x3bd776)];return this[_0x15a8a9(0x1f5)][_0x15a8a9(_0x148f5c._0x5af643)]?.[_0x5ad2af]??_0x15a8a9(_0x148f5c._0x5861ea)+_0x5ad2af+_0x15a8a9(0x1ec);}return _0x15a8a9(_0x148f5c._0x5434b7);}},FakeContext=class{constructor(_0x1dcf9b,_0x5486c1,_0xc27375){const _0x1947e5={_0x390277:0x1f5,_0x38e29c:0x201,_0x4d2c5b:0x22b,_0x5c0396:0x1b6,_0x216d7f:0x20c,_0x4483a1:0x1d8},_0x1d228a={_0x57f963:0x227},_0x7bb607=_0x4be305;this[_0x7bb607(0x22e)]=_0x1dcf9b,this[_0x7bb607(_0x1947e5._0x390277)]=_0x5486c1,this['scope']=_0xc27375;const _0x598dfa=new FakePage(_0x1dcf9b,_0x5486c1,_0xc27375+_0x7bb607(_0x1947e5._0x38e29c),_0x5486c1[_0x7bb607(_0x1947e5._0x4d2c5b)]??_0x7bb607(_0x1947e5._0x5c0396));_0x5486c1[_0x7bb607(_0x1947e5._0x216d7f)]&&(_0x598dfa[_0x7bb607(0x223)]=()=>{const _0x2b69ed=_0x7bb607;this[_0x2b69ed(_0x1d228a._0x57f963)](_0x5486c1['popupOnClick']);}),this['pageList']=[_0x598dfa],this['localStorageState']={..._0x5486c1[_0x7bb607(0x1c4)]??{}},this[_0x7bb607(0x1c7)]={..._0x5486c1[_0x7bb607(_0x1947e5._0x4483a1)]??{}};}[_0x4be305(0x22e)];[_0x4be305(0x1f5)];[_0x4be305(0x218)];static{__name(this,'FakeContext');}[_0x4be305(0x228)];[_0x4be305(0x1bc)]=0x0;[_0x4be305(0x230)]=[];[_0x4be305(0x206)];[_0x4be305(0x1c7)];[_0x4be305(0x1e1)]=new Set();[_0x4be305(0x1dd)](_0x1fef26,_0x418c61){const _0x58ded4={_0x8834bf:0x22e,_0x5d9deb:0x1ed},_0x59938f=_0x4be305;this[_0x59938f(_0x58ded4._0x8834bf)][_0x59938f(_0x58ded4._0x5d9deb)]({'scope':this['scope'],'method':_0x1fef26,'args':_0x418c61});}['pages'](){const _0x2a7a74={_0x282ea5:0x228},_0x3acbc3=_0x4be305;return this[_0x3acbc3(_0x2a7a74._0x282ea5)];}[_0x4be305(0x1fe)](){const _0x562321={_0x456ccd:0x20f,_0x2a7553:0x1bc},_0x1509df=_0x4be305,_0x5e46df=this['pageList'][this[_0x1509df(0x1bc)]];if(!_0x5e46df)throw new DriverError(_0x1509df(_0x562321._0x456ccd),{'activeIdx':this[_0x1509df(_0x562321._0x2a7553)]});return _0x5e46df;}[_0x4be305(0x1b8)](){const _0xf26cec={_0x589a19:0x1b8},_0xf4f3da=_0x4be305;return this[_0xf4f3da(0x1f5)][_0xf4f3da(_0xf26cec._0x589a19)]??[];}[_0x4be305(0x22a)](){const _0x5fc8a3={_0x5e842d:0x1f5,_0x4d7db8:0x22a},_0x5e7314=_0x4be305;return this[_0x5e7314(_0x5fc8a3._0x5e842d)][_0x5e7314(_0x5fc8a3._0x4d7db8)]??[];}async[_0x4be305(0x226)](_0x3e98f0){const _0x25189f={_0x396ae5:0x1eb},_0x3a67a6=_0x4be305;this[_0x3a67a6(0x1dd)]('setActivePage',[_0x3e98f0]);if(_0x3e98f0<0x0||_0x3e98f0>=this[_0x3a67a6(0x228)][_0x3a67a6(0x1d0)])throw new DriverError(_0x3a67a6(_0x25189f._0x396ae5),{'index':_0x3e98f0,'available':this[_0x3a67a6(0x228)][_0x3a67a6(0x1d0)]});this[_0x3a67a6(0x1bc)]=_0x3e98f0,this['frameStack'][_0x3a67a6(0x1d0)]=0x0;}[_0x4be305(0x1d7)](_0x47e57b){const _0x2eda84=_0x4be305;return subscribe(this[_0x2eda84(0x1e1)],_0x47e57b);}['emitFakePopup'](_0x347745){const _0x40cdbd={_0x515e4e:0x218,_0x843b04:0x22c,_0x4f9d51:0x228,_0x1af5d6:0x1d0},_0x2d9fd7=_0x4be305,_0x5bb44e=this[_0x2d9fd7(_0x40cdbd._0x515e4e)]+_0x2d9fd7(_0x40cdbd._0x843b04)+this[_0x2d9fd7(_0x40cdbd._0x4f9d51)][_0x2d9fd7(_0x40cdbd._0x1af5d6)],_0x3bd5ea=new FakePage(this[_0x2d9fd7(0x22e)],this[_0x2d9fd7(0x1f5)],_0x5bb44e,_0x347745);this[_0x2d9fd7(0x228)]['push'](_0x3bd5ea);const _0x26cb6b=this[_0x2d9fd7(_0x40cdbd._0x4f9d51)][_0x2d9fd7(0x1d0)]-0x1;for(const _0x57bbb0 of this[_0x2d9fd7(0x1e1)]){try{_0x57bbb0({'index':_0x26cb6b,'url':_0x347745});}catch{}}return _0x26cb6b;}[_0x4be305(0x1e9)](_0x7e3bb3){const _0x1f61aa={_0x129bc3:0x228,_0x25b1f7:0x1d0,_0x4d321e:0x21e},_0x8ff500=_0x4be305;if(_0x7e3bb3<0x0||_0x7e3bb3>=this[_0x8ff500(0x228)][_0x8ff500(0x1d0)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x7e3bb3,'available':this[_0x8ff500(_0x1f61aa._0x129bc3)][_0x8ff500(_0x1f61aa._0x25b1f7)]});this['pageList'][_0x8ff500(_0x1f61aa._0x4d321e)](_0x7e3bb3,0x1);}async[_0x4be305(0x1e8)](_0x9b7152){const _0x5cb19d={_0x495b0a:0x1db,_0x58a4c8:0x1d0},_0x465aae=_0x4be305;this[_0x465aae(0x1dd)]('enterFrame',[_0x9b7152]);if(!_0x9b7152[_0x465aae(_0x5cb19d._0x495b0a)][_0x465aae(_0x5cb19d._0x58a4c8)])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x9b7152});this[_0x465aae(0x230)]['push'](_0x9b7152);}async['exitFrame'](){const _0x38e8e9={_0x30ad00:0x230},_0x416d83=_0x4be305;this['record'](_0x416d83(0x213),[]);if(this[_0x416d83(_0x38e8e9._0x30ad00)][_0x416d83(0x1d0)]===0x0)throw new DriverError(_0x416d83(0x21b),{});this[_0x416d83(_0x38e8e9._0x30ad00)][_0x416d83(0x231)]();}async[_0x4be305(0x1e0)](_0x3aed3c,_0x3c65ae){const _0x18edf7={_0x44c25f:0x1e0},_0x4fe38e=_0x4be305;this[_0x4fe38e(0x1dd)](_0x4fe38e(_0x18edf7._0x44c25f),[_0x3aed3c,_0x3c65ae]),this['localStorageState'][_0x3aed3c]=_0x3c65ae;}async['getLocalStorage'](_0x94964a){const _0x5f4615=_0x4be305;return this[_0x5f4615(0x1dd)]('getLocalStorage',[_0x94964a]),this[_0x5f4615(0x206)][_0x94964a]??null;}async[_0x4be305(0x208)](_0x5cf8d6,_0xcd1c1a,_0x849c8c){const _0x5708de=_0x4be305;this[_0x5708de(0x1dd)](_0x5708de(0x208),[_0x5cf8d6,_0xcd1c1a,_0x849c8c]),this['cookieState'][_0x5cf8d6]=_0xcd1c1a;}async[_0x4be305(0x1b9)](_0x10b7e9){const _0x4d9991=_0x4be305;return this['record'](_0x4d9991(0x1b9),[_0x10b7e9]),this['cookieState'][_0x10b7e9]??null;}async['saveStorageState'](_0x36266d){const _0x2da559={_0x5176f9:0x1e5},_0x4f67d5=_0x4be305;this[_0x4f67d5(0x1dd)](_0x4f67d5(_0x2da559._0x5176f9),[_0x36266d]);}async[_0x4be305(0x215)](_0x5f376d){const _0x2cc088=_0x4be305;return this['record'](_0x2cc088(0x215),[_0x5f376d]),void 0x0;}async[_0x4be305(0x20b)](){const _0x33086b={_0x131d32:0x1dd},_0x21811f=_0x4be305;this[_0x21811f(_0x33086b._0x131d32)](_0x21811f(0x20b),[]);}[_0x4be305(0x1bd)](){const _0x3fa6ce={_0x2caa99:0x1d0},_0x4eec81=_0x4be305;return this[_0x4eec81(0x230)][_0x4eec81(_0x3fa6ce._0x2caa99)];}},FakeWebDriver=class{constructor(_0x41725a={}){const _0x5b469f={_0x263f42:0x1f5},_0x13d13d=_0x4be305;this[_0x13d13d(_0x5b469f._0x263f42)]=_0x41725a,this['recorder']=createRecorder();}[_0x4be305(0x1f5)];static{__name(this,_0x4be305(0x1bf));}['launched']=![];['recorder'];[_0x4be305(0x1e7)]=[];async['launch'](_0x27a079){const _0x257c61={_0x340ddd:0x220},_0x4b19da=_0x4be305;this[_0x4b19da(0x22e)][_0x4b19da(0x1ed)]({'scope':'driver','method':_0x4b19da(0x1da),'args':[_0x27a079]}),this[_0x4b19da(_0x257c61._0x340ddd)]=!![];}async['newContext'](_0x19b996){const _0x319c1d={_0x4eea57:0x22e,_0x16611d:0x1d5,_0x3a5cfe:0x1e7},_0x5759bb=_0x4be305;this['recorder'][_0x5759bb(0x1ed)]({'scope':'driver','method':'newContext','args':[_0x19b996]});if(!this[_0x5759bb(0x220)])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x314327=new FakeContext(this[_0x5759bb(_0x319c1d._0x4eea57)],this['behavior'],_0x5759bb(_0x319c1d._0x16611d)+this[_0x5759bb(_0x319c1d._0x3a5cfe)]['length']);return this[_0x5759bb(_0x319c1d._0x3a5cfe)][_0x5759bb(0x1ed)](_0x314327),_0x314327;}async[_0x4be305(0x20b)](){const _0x41b72a={_0x37d1e0:0x22e,_0x5843c2:0x1ed,_0x5a2922:0x220},_0x2151d4=_0x4be305;this[_0x2151d4(_0x41b72a._0x37d1e0)][_0x2151d4(_0x41b72a._0x5843c2)]({'scope':_0x2151d4(0x1bb),'method':_0x2151d4(0x20b),'args':[]}),this[_0x2151d4(_0x41b72a._0x5a2922)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x4be305(0x1c8)](){const _0x535240=_0x4be305;throw new DriverError(_0x535240(0x1cc),{});}[_0x4be305(0x1f3)](_0x19bce8){const _0x6d8446={_0x455fbb:0x21c},_0x4e79c5=_0x4be305;throw new DriverError(_0x4e79c5(_0x6d8446._0x455fbb),{});}[_0x4be305(0x1cd)](){const _0x2d86e8={_0x485c6d:0x22e},_0x429f9f=_0x4be305;return this[_0x429f9f(_0x2d86e8._0x485c6d)]['calls']();}[_0x4be305(0x1f6)](_0x328ec2){const _0x26f1d8={_0x29d23c:0x22e},_0x46d749=_0x4be305;return this[_0x46d749(_0x26f1d8._0x29d23c)][_0x46d749(0x1cd)]()[_0x46d749(0x1dc)](_0x558884=>_0x558884[_0x46d749(0x1d6)]===_0x328ec2);}};export{FakeWebDriver};