Socket
Socket
Sign inDemoInstall

puppeteer-core

Package Overview
Dependencies
6
Maintainers
2
Versions
222
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 21.3.5 to 21.3.6

4

lib/cjs/puppeteer/api/Browser.d.ts

@@ -17,4 +17,4 @@ /**

/// <reference types="node" />
import { type ChildProcess } from 'child_process';
import { type Protocol } from 'devtools-protocol';
import type { ChildProcess } from 'child_process';
import type { Protocol } from 'devtools-protocol';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';

@@ -21,0 +21,0 @@ import { asyncDisposeSymbol, disposeSymbol } from '../util/disposable.js';

@@ -19,3 +19,3 @@ /**

import type { Browser, Permission } from './Browser.js';
import { type Page } from './Page.js';
import type { Page } from './Page.js';
import type { Target } from './Target.js';

@@ -22,0 +22,0 @@ /**

@@ -16,3 +16,3 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import type { Protocol } from 'devtools-protocol';
/**

@@ -19,0 +19,0 @@ * Dialog instances are dispatched by the {@link Page} via the `dialog` event.

@@ -17,9 +17,9 @@ /**

/// <reference types="node" />
import { type Protocol } from 'devtools-protocol';
import { type Frame } from '../api/Frame.js';
import { type ElementFor, type EvaluateFuncWith, type HandleFor, type HandleOr, type NodeFor } from '../common/types.js';
import { type KeyInput } from '../common/USKeyboardLayout.js';
import { type KeyboardTypeOptions, type KeyPressOptions, type MouseClickOptions } from './Input.js';
import type { Protocol } from 'devtools-protocol';
import type { Frame } from '../api/Frame.js';
import type { ElementFor, EvaluateFuncWith, HandleFor, HandleOr, NodeFor } from '../common/types.js';
import type { KeyInput } from '../common/USKeyboardLayout.js';
import type { KeyboardTypeOptions, KeyPressOptions, MouseClickOptions } from './Input.js';
import { JSHandle } from './JSHandle.js';
import { type ScreenshotOptions, type WaitForSelectorOptions } from './Page.js';
import type { ScreenshotOptions, WaitForSelectorOptions } from './Page.js';
/**

@@ -26,0 +26,0 @@ * @public

@@ -16,4 +16,4 @@ /**

*/
import { type CDPSession } from './CDPSession.js';
import { type Realm } from './Realm.js';
import type { CDPSession } from './CDPSession.js';
import type { Realm } from './Realm.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -17,14 +17,14 @@ /**

import type Protocol from 'devtools-protocol';
import { type ClickOptions, type ElementHandle } from '../api/ElementHandle.js';
import { type HTTPResponse } from '../api/HTTPResponse.js';
import { type Page, type WaitForSelectorOptions, type WaitTimeoutOptions } from '../api/Page.js';
import { type DeviceRequestPrompt } from '../cdp/DeviceRequestPrompt.js';
import { type IsolatedWorldChart } from '../cdp/IsolatedWorld.js';
import { type PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import type { ClickOptions, ElementHandle } from '../api/ElementHandle.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
import type { Page, WaitForSelectorOptions, WaitTimeoutOptions } from '../api/Page.js';
import type { DeviceRequestPrompt } from '../cdp/DeviceRequestPrompt.js';
import type { IsolatedWorldChart } from '../cdp/IsolatedWorld.js';
import type { PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type Awaitable, type EvaluateFunc, type EvaluateFuncWith, type HandleFor, type NodeFor } from '../common/types.js';
import { type CDPSession } from './CDPSession.js';
import { type KeyboardTypeOptions } from './Input.js';
import type { Awaitable, EvaluateFunc, EvaluateFuncWith, HandleFor, NodeFor } from '../common/types.js';
import type { CDPSession } from './CDPSession.js';
import type { KeyboardTypeOptions } from './Input.js';
import { type Locator } from './locators/locators.js';
import { type Realm } from './Realm.js';
import type { Realm } from './Realm.js';
/**

@@ -31,0 +31,0 @@ * @public

@@ -17,6 +17,6 @@ /// <reference types="node" />

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from './CDPSession.js';
import { type Frame } from './Frame.js';
import { type HTTPResponse } from './HTTPResponse.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from './CDPSession.js';
import type { Frame } from './Frame.js';
import type { HTTPResponse } from './HTTPResponse.js';
/**

@@ -23,0 +23,0 @@ * @public

@@ -18,5 +18,5 @@ /**

import type Protocol from 'devtools-protocol';
import { type SecurityDetails } from '../common/SecurityDetails.js';
import { type Frame } from './Frame.js';
import { type HTTPRequest } from './HTTPRequest.js';
import type { SecurityDetails } from '../common/SecurityDetails.js';
import type { Frame } from './Frame.js';
import type { HTTPRequest } from './HTTPRequest.js';
/**

@@ -23,0 +23,0 @@ * @public

@@ -16,5 +16,5 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type KeyInput } from '../common/USKeyboardLayout.js';
import { type Point } from './ElementHandle.js';
import type { Protocol } from 'devtools-protocol';
import type { KeyInput } from '../common/USKeyboardLayout.js';
import type { Point } from './ElementHandle.js';
/**

@@ -21,0 +21,0 @@ * @public

@@ -17,6 +17,6 @@ /**

import type Protocol from 'devtools-protocol';
import { type EvaluateFuncWith, type HandleFor, type HandleOr } from '../common/types.js';
import type { EvaluateFuncWith, HandleFor, HandleOr } from '../common/types.js';
import { disposeSymbol, asyncDisposeSymbol } from '../util/disposable.js';
import { type ElementHandle } from './ElementHandle.js';
import { type Realm } from './Realm.js';
import type { ElementHandle } from './ElementHandle.js';
import type { Realm } from './Realm.js';
/**

@@ -23,0 +23,0 @@ * Represents a reference to a JavaScript object. Instances can be created using

@@ -16,4 +16,4 @@ /**

*/
import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type HandleFor } from '../../common/types.js';
import type { Observable } from '../../../third_party/rxjs/rxjs.js';
import type { HandleFor } from '../../common/types.js';
import { Locator, type VisibilityOption } from './locators.js';

@@ -20,0 +20,0 @@ /**

@@ -17,5 +17,5 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type Awaitable, type HandleFor } from '../../common/types.js';
import type { Awaitable, HandleFor } from '../../common/types.js';
import { DelegatedLocator } from './DelegatedLocator.js';
import { type ActionOptions, type Locator } from './locators.js';
import type { ActionOptions, Locator } from './locators.js';
/**

@@ -22,0 +22,0 @@ * @public

@@ -17,5 +17,5 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type Awaitable, type HandleFor } from '../../common/types.js';
import { type Frame } from '../Frame.js';
import { type Page } from '../Page.js';
import type { Awaitable, HandleFor } from '../../common/types.js';
import type { Frame } from '../Frame.js';
import type { Page } from '../Page.js';
import { type ActionOptions, Locator } from './locators.js';

@@ -22,0 +22,0 @@ /**

@@ -18,4 +18,4 @@ /**

import { EventEmitter, type EventType } from '../../common/EventEmitter.js';
import { type HandleFor } from '../../common/types.js';
import { type ClickOptions } from '../ElementHandle.js';
import type { HandleFor } from '../../common/types.js';
import type { ClickOptions } from '../ElementHandle.js';
import { type Action, type AwaitedLocator, type HandleMapper, type Mapper, type Predicate } from './locators.js';

@@ -110,3 +110,3 @@ /**

}
export {
export type {
/**

@@ -113,0 +113,0 @@ * @deprecated Use {@link LocatorEvents}.

@@ -17,3 +17,3 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type Awaitable, type HandleFor } from '../../common/types.js';
import type { Awaitable, HandleFor } from '../../common/types.js';
import { type ActionOptions, DelegatedLocator, type Locator } from './locators.js';

@@ -20,0 +20,0 @@ /**

@@ -17,5 +17,5 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type HandleFor, type NodeFor } from '../../common/types.js';
import { type Frame } from '../Frame.js';
import { type Page } from '../Page.js';
import type { HandleFor, NodeFor } from '../../common/types.js';
import type { Frame } from '../Frame.js';
import type { Page } from '../Page.js';
import { type ActionOptions, Locator } from './locators.js';

@@ -22,0 +22,0 @@ /**

@@ -17,3 +17,3 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type HandleFor } from '../../common/types.js';
import type { HandleFor } from '../../common/types.js';
import { type ActionOptions, Locator } from './locators.js';

@@ -20,0 +20,0 @@ /**

@@ -16,9 +16,9 @@ /**

*/
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import { type EvaluateFunc, type HandleFor, type InnerLazyParams } from '../common/types.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import type { EvaluateFunc, HandleFor, InnerLazyParams } from '../common/types.js';
import { TaskManager } from '../common/WaitTask.js';
import { disposeSymbol } from '../util/disposable.js';
import { type ElementHandle } from './ElementHandle.js';
import { type Environment } from './Environment.js';
import { type JSHandle } from './JSHandle.js';
import type { ElementHandle } from './ElementHandle.js';
import type { Environment } from './Environment.js';
import type { JSHandle } from './JSHandle.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -18,5 +18,5 @@ /**

import type { BrowserContext } from '../api/BrowserContext.js';
import { type Page } from '../api/Page.js';
import { type WebWorker } from '../cdp/WebWorker.js';
import { type CDPSession } from './CDPSession.js';
import type { Page } from '../api/Page.js';
import type { WebWorker } from '../cdp/WebWorker.js';
import type { CDPSession } from './CDPSession.js';
/**

@@ -23,0 +23,0 @@ * @public

@@ -16,3 +16,3 @@ /**

*/
import { type Connection as CdpConnection } from '../cdp/Connection.js';
import type { Connection as CdpConnection } from '../cdp/Connection.js';
import { BidiConnection } from './Connection.js';

@@ -19,0 +19,0 @@ /**

@@ -17,10 +17,10 @@ /**

/// <reference types="node" />
import { type ChildProcess } from 'child_process';
import type { ChildProcess } from 'child_process';
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { Browser, type BrowserCloseCallback, type BrowserContextOptions } from '../api/Browser.js';
import { type Page } from '../api/Page.js';
import { type Target } from '../api/Target.js';
import { type Viewport } from '../common/Viewport.js';
import type { Page } from '../api/Page.js';
import type { Target } from '../api/Target.js';
import type { Viewport } from '../common/Viewport.js';
import { BidiBrowserContext } from './BrowserContext.js';
import { type BidiConnection } from './Connection.js';
import type { BidiConnection } from './Connection.js';
import { type BidiTarget } from './Target.js';

@@ -27,0 +27,0 @@ /**

@@ -20,6 +20,6 @@ "use strict";

const Browser_js_1 = require("../api/Browser.js");
const util_js_1 = require("../common/util.js");
const BrowserContext_js_1 = require("./BrowserContext.js");
const BrowsingContext_js_1 = require("./BrowsingContext.js");
const Target_js_1 = require("./Target.js");
const util_js_1 = require("./util.js");
/**

@@ -26,0 +26,0 @@ * @internal

@@ -17,8 +17,8 @@ /**

import { BrowserContext } from '../api/BrowserContext.js';
import { type Page } from '../api/Page.js';
import { type Target } from '../api/Target.js';
import { type Viewport } from '../common/Viewport.js';
import { type BidiBrowser } from './Browser.js';
import { type BidiConnection } from './Connection.js';
import { type BidiPage } from './Page.js';
import type { Page } from '../api/Page.js';
import type { Target } from '../api/Target.js';
import type { Viewport } from '../common/Viewport.js';
import type { BidiBrowser } from './Browser.js';
import type { BidiConnection } from './Connection.js';
import type { BidiPage } from './Page.js';
/**

@@ -25,0 +25,0 @@ * @internal

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import type ProtocolMapping from 'devtools-protocol/types/protocol-mapping.js';
import { CDPSession } from '../api/CDPSession.js';
import { type Connection as CdpConnection } from '../cdp/Connection.js';
import { type PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import { type EventType } from '../common/EventEmitter.js';
import { type BidiConnection } from './Connection.js';
import type { Connection as CdpConnection } from '../cdp/Connection.js';
import type { PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import type { EventType } from '../common/EventEmitter.js';
import type { BidiConnection } from './Connection.js';
import { BidiRealm } from './Realm.js';

@@ -9,0 +9,0 @@ /**

@@ -6,6 +6,6 @@ "use strict";

const Errors_js_1 = require("../common/Errors.js");
const util_js_1 = require("../common/util.js");
const assert_js_1 = require("../util/assert.js");
const Deferred_js_1 = require("../util/Deferred.js");
const Realm_js_1 = require("./Realm.js");
const util_js_1 = require("./util.js");
/**

@@ -12,0 +12,0 @@ * @internal

@@ -17,3 +17,3 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type ConnectionTransport } from '../common/ConnectionTransport.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
import { EventEmitter } from '../common/EventEmitter.js';

@@ -20,0 +20,0 @@ import { type BrowsingContext } from './BrowsingContext.js';

@@ -22,4 +22,4 @@ "use strict";

const EventEmitter_js_1 = require("../common/EventEmitter.js");
const util_js_1 = require("../common/util.js");
const BrowsingContext_js_1 = require("./BrowsingContext.js");
const util_js_1 = require("./util.js");
const debugProtocolSend = (0, Debug_js_1.debug)('puppeteer:webDriverBiDi:SEND ►');

@@ -26,0 +26,0 @@ const debugProtocolReceive = (0, Debug_js_1.debug)('puppeteer:webDriverBiDi:RECV ◀');

@@ -18,3 +18,3 @@ /**

import { Dialog } from '../api/Dialog.js';
import { type BrowsingContext } from './BrowsingContext.js';
import type { BrowsingContext } from './BrowsingContext.js';
/**

@@ -21,0 +21,0 @@ * @internal

@@ -18,6 +18,6 @@ /**

import { type AutofillData, ElementHandle } from '../api/ElementHandle.js';
import { type BidiFrame } from './Frame.js';
import type { BidiFrame } from './Frame.js';
import { BidiJSHandle } from './JSHandle.js';
import { type BidiRealm } from './Realm.js';
import { type Sandbox } from './Sandbox.js';
import type { BidiRealm } from './Realm.js';
import type { Sandbox } from './Sandbox.js';
/**

@@ -24,0 +24,0 @@ * @internal

@@ -17,3 +17,3 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type BrowsingContext } from './BrowsingContext.js';
import type { BrowsingContext } from './BrowsingContext.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -16,4 +16,4 @@ /**

*/
import { type Awaitable } from '../common/types.js';
import { type BidiFrame } from './Frame.js';
import type { Awaitable } from '../common/types.js';
import type { BidiFrame } from './Frame.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -43,2 +43,3 @@ "use strict";

const Bidi = __importStar(require("chromium-bidi/lib/cjs/protocol/protocol.js"));
const util_js_1 = require("../common/util.js");
const assert_js_1 = require("../util/assert.js");

@@ -48,3 +49,2 @@ const Deferred_js_1 = require("../util/Deferred.js");

const Serializer_js_1 = require("./Serializer.js");
const util_js_1 = require("./util.js");
/**

@@ -51,0 +51,0 @@ * @internal

@@ -17,11 +17,11 @@ /**

import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type CDPSession } from '../api/CDPSession.js';
import type { CDPSession } from '../api/CDPSession.js';
import { Frame, type GoToOptions, type WaitForOptions } from '../api/Frame.js';
import { type PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import { type Awaitable } from '../common/types.js';
import type { PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import type { Awaitable } from '../common/types.js';
import { disposeSymbol } from '../util/disposable.js';
import { type BrowsingContext } from './BrowsingContext.js';
import { type BidiHTTPResponse } from './HTTPResponse.js';
import { type BidiPage } from './Page.js';
import type { BidiHTTPResponse } from './HTTPResponse.js';
import type { BidiPage } from './Page.js';
import { Sandbox, type SandboxChart } from './Sandbox.js';

@@ -28,0 +28,0 @@ /**

@@ -77,5 +77,7 @@ "use strict";

const Bidi = __importStar(require("chromium-bidi/lib/cjs/protocol/protocol.js"));
const rxjs_js_1 = require("../../third_party/rxjs/rxjs.js");
const Frame_js_1 = require("../api/Frame.js");
const Errors_js_1 = require("../common/Errors.js");
const util_js_1 = require("../common/util.js");
const util_js_2 = require("../common/util.js");
const Deferred_js_1 = require("../util/Deferred.js");

@@ -188,21 +190,7 @@ const disposable_js_1 = require("../util/disposable.js");

async waitForNavigation(options = {}) {
const { waitUntil = 'load', timeout = this.#timeoutSettings.navigationTimeout(), } = options;
const { waitUntil = 'load', timeout: ms = this.#timeoutSettings.navigationTimeout(), } = options;
const waitUntilEvent = BrowsingContext_js_1.lifeCycleToSubscribedEvent.get((0, BrowsingContext_js_1.getWaitUntilSingle)(waitUntil));
const [info] = await Deferred_js_1.Deferred.race([
// TODO(lightning00blade): Should also keep tack of
// navigationAborted and navigationFailed
Promise.all([
(0, util_js_1.waitForEvent)(this.#context, waitUntilEvent, () => {
return true;
}, timeout, this.#abortDeferred.valueOrThrow()),
(0, util_js_1.waitForEvent)(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted, () => {
return true;
}, timeout, this.#abortDeferred.valueOrThrow()),
]),
(0, util_js_1.waitForEvent)(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated, () => {
return true;
}, timeout, this.#abortDeferred.valueOrThrow()).then(info => {
return [info, undefined];
}),
]);
const info = await (0, rxjs_js_1.firstValueFrom)((0, rxjs_js_1.merge)((0, rxjs_js_1.fromEvent)(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted).pipe((0, rxjs_js_1.switchMap)(() => {
return (0, rxjs_js_1.fromEvent)(this.#context, waitUntilEvent);
})), (0, rxjs_js_1.fromEvent)(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated)).pipe((0, rxjs_js_1.raceWith)((0, util_js_2.timeout)(ms), (0, rxjs_js_1.from)(this.#abortDeferred.valueOrThrow()))));
return this.#page.getNavigationResponse(info.navigation);

@@ -209,0 +197,0 @@ }

@@ -17,5 +17,5 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type Frame } from '../api/Frame.js';
import type { Frame } from '../api/Frame.js';
import { HTTPRequest, type ResourceType } from '../api/HTTPRequest.js';
import { type BidiHTTPResponse } from './HTTPResponse.js';
import type { BidiHTTPResponse } from './HTTPResponse.js';
/**

@@ -22,0 +22,0 @@ * @internal

@@ -18,5 +18,5 @@ /**

import type Protocol from 'devtools-protocol';
import { type Frame } from '../api/Frame.js';
import type { Frame } from '../api/Frame.js';
import { HTTPResponse as HTTPResponse, type RemoteAddress } from '../api/HTTPResponse.js';
import { type BidiHTTPRequest } from './HTTPRequest.js';
import type { BidiHTTPRequest } from './HTTPRequest.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -18,5 +18,5 @@ /**

import { Keyboard, Mouse, Touchscreen, type KeyDownOptions, type KeyPressOptions, type KeyboardTypeOptions, type MouseClickOptions, type MouseMoveOptions, type MouseOptions, type MouseWheelOptions } from '../api/Input.js';
import { type KeyInput } from '../common/USKeyboardLayout.js';
import { type BrowsingContext } from './BrowsingContext.js';
import { type BidiPage } from './Page.js';
import type { KeyInput } from '../common/USKeyboardLayout.js';
import type { BrowsingContext } from './BrowsingContext.js';
import type { BidiPage } from './Page.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -17,6 +17,6 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type ElementHandle } from '../api/ElementHandle.js';
import type { ElementHandle } from '../api/ElementHandle.js';
import { JSHandle } from '../api/JSHandle.js';
import { type BidiRealm } from './Realm.js';
import { type Sandbox } from './Sandbox.js';
import type { BidiRealm } from './Realm.js';
import type { Sandbox } from './Sandbox.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -18,7 +18,7 @@ /**

import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type BidiConnection } from './Connection.js';
import { type BidiFrame } from './Frame.js';
import type { BidiConnection } from './Connection.js';
import type { BidiFrame } from './Frame.js';
import { BidiHTTPRequest } from './HTTPRequest.js';
import { BidiHTTPResponse } from './HTTPResponse.js';
import { type BidiPage } from './Page.js';
import type { BidiPage } from './Page.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -20,4 +20,4 @@ /**

import type Protocol from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type WaitForOptions } from '../api/Frame.js';
import type { CDPSession } from '../api/CDPSession.js';
import type { WaitForOptions } from '../api/Frame.js';
import { Page, type GeolocationOptions, type MediaFeature, type NewDocumentScriptEvaluation, type ScreenshotOptions } from '../api/Page.js';

@@ -27,14 +27,14 @@ import { Accessibility } from '../cdp/Accessibility.js';

import { Tracing } from '../cdp/Tracing.js';
import { type PDFOptions } from '../common/PDFOptions.js';
import { type Awaitable } from '../common/types.js';
import { type Viewport } from '../common/Viewport.js';
import { type BidiBrowser } from './Browser.js';
import { type BidiBrowserContext } from './BrowserContext.js';
import type { PDFOptions } from '../common/PDFOptions.js';
import type { Awaitable } from '../common/types.js';
import type { Viewport } from '../common/Viewport.js';
import type { BidiBrowser } from './Browser.js';
import type { BidiBrowserContext } from './BrowserContext.js';
import { type BrowsingContext } from './BrowsingContext.js';
import { type BidiConnection } from './Connection.js';
import type { BidiConnection } from './Connection.js';
import { BidiFrame } from './Frame.js';
import { type BidiHTTPRequest } from './HTTPRequest.js';
import { type BidiHTTPResponse } from './HTTPResponse.js';
import type { BidiHTTPRequest } from './HTTPRequest.js';
import type { BidiHTTPResponse } from './HTTPResponse.js';
import { BidiKeyboard, BidiMouse, BidiTouchscreen } from './Input.js';
import { type BidiJSHandle } from './JSHandle.js';
import type { BidiJSHandle } from './JSHandle.js';
/**

@@ -41,0 +41,0 @@ * @internal

import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import type PuppeteerUtil from '../injected/injected.js';
import { disposeSymbol } from '../util/disposable.js';
import { type BidiConnection } from './Connection.js';
import type { BidiConnection } from './Connection.js';
import { BidiElementHandle } from './ElementHandle.js';
import { BidiJSHandle } from './JSHandle.js';
import { type Sandbox } from './Sandbox.js';
import type { Sandbox } from './Sandbox.js';
/**

@@ -11,0 +11,0 @@ * @internal

@@ -16,9 +16,9 @@ /**

*/
import { type JSHandle } from '../api/JSHandle.js';
import type { JSHandle } from '../api/JSHandle.js';
import { Realm } from '../api/Realm.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import { type BrowsingContext } from './BrowsingContext.js';
import { type BidiFrame } from './Frame.js';
import { type BidiRealm as BidiRealm } from './Realm.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import type { BrowsingContext } from './BrowsingContext.js';
import type { BidiFrame } from './Frame.js';
import type { BidiRealm as BidiRealm } from './Realm.js';
/**

@@ -25,0 +25,0 @@ * A unique key for {@link SandboxChart} to denote the default world.

@@ -17,3 +17,3 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type Sandbox } from './Sandbox.js';
import type { Sandbox } from './Sandbox.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -16,6 +16,6 @@ /**

*/
import { type CDPSession } from '../api/CDPSession.js';
import type { CDPSession } from '../api/CDPSession.js';
import { Target, TargetType } from '../api/Target.js';
import { type BidiBrowser } from './Browser.js';
import { type BidiBrowserContext } from './BrowserContext.js';
import type { BidiBrowser } from './Browser.js';
import type { BidiBrowserContext } from './BrowserContext.js';
import { type BrowsingContext } from './BrowsingContext.js';

@@ -22,0 +22,0 @@ import { BidiPage } from './Page.js';

@@ -17,10 +17,6 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type BidiRealm } from './Realm.js';
import type { BidiRealm } from './Realm.js';
/**
* @internal
*/
export declare const debugError: (...args: unknown[]) => void;
/**
* @internal
*/
export declare function releaseReference(client: BidiRealm, remoteReference: Bidi.Script.RemoteReference): Promise<void>;

@@ -27,0 +23,0 @@ /**

@@ -18,4 +18,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.createEvaluationError = exports.releaseReference = exports.debugError = void 0;
const Debug_js_1 = require("../common/Debug.js");
exports.createEvaluationError = exports.releaseReference = void 0;
const util_js_1 = require("../common/util.js");

@@ -26,6 +25,2 @@ const Serializer_js_1 = require("./Serializer.js");

*/
exports.debugError = (0, Debug_js_1.debug)('puppeteer:error');
/**
* @internal
*/
async function releaseReference(client, remoteReference) {

@@ -43,3 +38,3 @@ if (!remoteReference.handle) {

// Swallow these since they are harmless and we don't leak anything in this case.
(0, exports.debugError)(error);
(0, util_js_1.debugError)(error);
});

@@ -46,0 +41,0 @@ }

@@ -16,4 +16,4 @@ /**

*/
import { type CDPSession } from '../api/CDPSession.js';
import { type ElementHandle } from '../api/ElementHandle.js';
import type { CDPSession } from '../api/CDPSession.js';
import type { ElementHandle } from '../api/ElementHandle.js';
/**

@@ -20,0 +20,0 @@ * Represents a Node and the properties of it that are relevant to Accessibility.

@@ -16,5 +16,5 @@ /**

*/
import { type ElementHandle } from '../api/ElementHandle.js';
import type { ElementHandle } from '../api/ElementHandle.js';
import { QueryHandler, type QuerySelector } from '../common/QueryHandler.js';
import { type AwaitableIterable } from '../common/types.js';
import type { AwaitableIterable } from '../common/types.js';
/**

@@ -21,0 +21,0 @@ * @internal

@@ -1,2 +0,2 @@

import { type ExecutionContext } from './ExecutionContext.js';
import type { ExecutionContext } from './ExecutionContext.js';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -17,9 +17,9 @@ /**

/// <reference types="node" />
import { type ChildProcess } from 'child_process';
import type { ChildProcess } from 'child_process';
import { Browser as BrowserBase, type BrowserCloseCallback, type BrowserContextOptions, type IsPageTargetCallback, type Permission, type TargetFilterCallback } from '../api/Browser.js';
import { BrowserContext } from '../api/BrowserContext.js';
import { type Page } from '../api/Page.js';
import { type Target } from '../api/Target.js';
import { type Viewport } from '../common/Viewport.js';
import { type Connection } from './Connection.js';
import type { Page } from '../api/Page.js';
import type { Target } from '../api/Target.js';
import type { Viewport } from '../common/Viewport.js';
import type { Connection } from './Connection.js';
import { type CdpTarget } from './Target.js';

@@ -26,0 +26,0 @@ import { type TargetManager } from './TargetManager.js';

@@ -16,4 +16,4 @@ /**

*/
import { type IsPageTargetCallback, type TargetFilterCallback } from '../api/Browser.js';
import { type Viewport } from '../common/Viewport.js';
import type { IsPageTargetCallback, TargetFilterCallback } from '../api/Browser.js';
import type { Viewport } from '../common/Viewport.js';
import { CdpBrowser } from './Browser.js';

@@ -20,0 +20,0 @@ import type { ConnectOptions } from './Puppeteer.js';

@@ -1,5 +0,5 @@

import { type ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import { type CDPEvents, CDPSession } from '../api/CDPSession.js';
import { type Connection } from './Connection.js';
import { type CdpTarget } from './Target.js';
import type { CdpTarget } from './Target.js';
/**

@@ -6,0 +6,0 @@ * @internal

@@ -16,5 +16,5 @@ /**

*/
import { type TargetFilterCallback } from '../api/Browser.js';
import type { TargetFilterCallback } from '../api/Browser.js';
import { EventEmitter } from '../common/EventEmitter.js';
import { type Connection } from './Connection.js';
import type { Connection } from './Connection.js';
import { CdpTarget } from './Target.js';

@@ -21,0 +21,0 @@ import { type TargetFactory, type TargetManager, type TargetManagerEvents } from './TargetManager.js';

@@ -16,6 +16,6 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import type { Protocol } from 'devtools-protocol';
import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import { type CDPSession, type CDPSessionEvents } from '../api/CDPSession.js';
import { ConnectionTransport } from '../common/ConnectionTransport.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
import { ProtocolError } from '../common/Errors.js';

@@ -27,3 +27,3 @@ import { EventEmitter } from '../common/EventEmitter.js';

*/
export { ConnectionTransport, ProtocolMapping };
export type { ConnectionTransport, ProtocolMapping };
/**

@@ -30,0 +30,0 @@ * @internal

@@ -16,4 +16,4 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
/**

@@ -20,0 +20,0 @@ * The CoverageEntry class represents one entry of the coverage report.

@@ -17,5 +17,5 @@ /**

import type Protocol from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type WaitTimeoutOptions } from '../api/Page.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import type { CDPSession } from '../api/CDPSession.js';
import type { WaitTimeoutOptions } from '../api/Page.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
/**

@@ -22,0 +22,0 @@ * Device in a request prompt.

@@ -16,4 +16,4 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import { Dialog } from '../api/Dialog.js';

@@ -20,0 +20,0 @@ /**

@@ -16,7 +16,7 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import { ElementHandle, type AutofillData } from '../api/ElementHandle.js';
import { type CdpFrame } from './Frame.js';
import { type IsolatedWorld } from './IsolatedWorld.js';
import type { CdpFrame } from './Frame.js';
import type { IsolatedWorld } from './IsolatedWorld.js';
import { CdpJSHandle } from './JSHandle.js';

@@ -23,0 +23,0 @@ /**

@@ -16,6 +16,6 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import type { Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type GeolocationOptions, type MediaFeature } from '../api/Page.js';
import { type Viewport } from '../common/Viewport.js';
import type { GeolocationOptions, MediaFeature } from '../api/Page.js';
import type { Viewport } from '../common/Viewport.js';
/**

@@ -22,0 +22,0 @@ * @internal

@@ -16,9 +16,9 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { ElementHandle } from '../api/ElementHandle.js';
import { type JSHandle } from '../api/JSHandle.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import type { JSHandle } from '../api/JSHandle.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import type PuppeteerUtil from '../injected/injected.js';
import { type IsolatedWorld } from './IsolatedWorld.js';
import type { IsolatedWorld } from './IsolatedWorld.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -16,7 +16,7 @@ /**

*/
import { type TargetFilterCallback } from '../api/Browser.js';
import type { TargetFilterCallback } from '../api/Browser.js';
import { type CDPSession } from '../api/CDPSession.js';
import { EventEmitter } from '../common/EventEmitter.js';
import { type Connection } from './Connection.js';
import { type CdpTarget } from './Target.js';
import type { Connection } from './Connection.js';
import type { CdpTarget } from './Target.js';
import { type TargetFactory, type TargetManager, type TargetManagerEvents } from './TargetManager.js';

@@ -23,0 +23,0 @@ /**

@@ -16,10 +16,10 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import { Frame } from '../api/Frame.js';
import { type HTTPResponse } from '../api/HTTPResponse.js';
import { type Page, type WaitTimeoutOptions } from '../api/Page.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
import type { Page, WaitTimeoutOptions } from '../api/Page.js';
import { disposeSymbol } from '../util/disposable.js';
import { type DeviceRequestPrompt } from './DeviceRequestPrompt.js';
import { type FrameManager } from './FrameManager.js';
import type { DeviceRequestPrompt } from './DeviceRequestPrompt.js';
import type { FrameManager } from './FrameManager.js';
import { IsolatedWorld } from './IsolatedWorld.js';

@@ -26,0 +26,0 @@ import { type PuppeteerLifeCycleEvent } from './LifecycleWatcher.js';

@@ -17,5 +17,5 @@ /**

import { type CDPSession } from '../api/CDPSession.js';
import { type Page } from '../api/Page.js';
import type { Page } from '../api/Page.js';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import { CdpCDPSession } from './CDPSession.js';

@@ -27,3 +27,3 @@ import { DeviceRequestPromptManager } from './DeviceRequestPrompt.js';

import { NetworkManager } from './NetworkManager.js';
import { type CdpTarget } from './Target.js';
import type { CdpTarget } from './Target.js';
/**

@@ -30,0 +30,0 @@ * We use symbols to prevent external parties listening to these events.

@@ -16,3 +16,3 @@ /**

*/
import { type Frame } from '../api/Frame.js';
import type { Frame } from '../api/Frame.js';
/**

@@ -19,0 +19,0 @@ * Keeps track of the page frame tree and it's is managed by

@@ -16,7 +16,7 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type Frame } from '../api/Frame.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { Frame } from '../api/Frame.js';
import { type ContinueRequestOverrides, type ErrorCode, HTTPRequest, type InterceptResolutionState, type ResourceType, type ResponseForRequest } from '../api/HTTPRequest.js';
import { type HTTPResponse } from '../api/HTTPResponse.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -17,8 +17,8 @@ /// <reference types="node" />

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type Frame } from '../api/Frame.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { Frame } from '../api/Frame.js';
import { HTTPResponse, type RemoteAddress } from '../api/HTTPResponse.js';
import { SecurityDetails } from '../common/SecurityDetails.js';
import { type CdpHTTPRequest } from './HTTPRequest.js';
import type { CdpHTTPRequest } from './HTTPRequest.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -16,5 +16,5 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type Point } from '../api/ElementHandle.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { Point } from '../api/ElementHandle.js';
import { Keyboard, type KeyDownOptions, type KeyPressOptions, Mouse, type MouseClickOptions, type MouseMoveOptions, type MouseOptions, type MouseWheelOptions, Touchscreen, type KeyboardTypeOptions } from '../api/Input.js';

@@ -21,0 +21,0 @@ import { type KeyInput } from '../common/USKeyboardLayout.js';

@@ -16,14 +16,14 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type JSHandle } from '../api/JSHandle.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { JSHandle } from '../api/JSHandle.js';
import { Realm } from '../api/Realm.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import { disposeSymbol } from '../util/disposable.js';
import { type Binding } from './Binding.js';
import type { Binding } from './Binding.js';
import { type ExecutionContext } from './ExecutionContext.js';
import { CdpFrame } from './Frame.js';
import { type MAIN_WORLD, type PUPPETEER_WORLD } from './IsolatedWorlds.js';
import { type WebWorker } from './WebWorker.js';
import type { MAIN_WORLD, PUPPETEER_WORLD } from './IsolatedWorlds.js';
import type { WebWorker } from './WebWorker.js';
/**

@@ -30,0 +30,0 @@ * @internal

@@ -16,7 +16,7 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import { JSHandle } from '../api/JSHandle.js';
import type { CdpElementHandle } from './ElementHandle.js';
import { type IsolatedWorld } from './IsolatedWorld.js';
import type { IsolatedWorld } from './IsolatedWorld.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -16,5 +16,5 @@ /**

*/
import { type HTTPResponse } from '../api/HTTPResponse.js';
import { type TimeoutError } from '../common/Errors.js';
import { type CdpFrame } from './Frame.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
import type { TimeoutError } from '../common/Errors.js';
import type { CdpFrame } from './Frame.js';
import { type NetworkManager } from './NetworkManager.js';

@@ -21,0 +21,0 @@ /**

@@ -16,4 +16,4 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CdpHTTPRequest } from './HTTPRequest.js';
import type { Protocol } from 'devtools-protocol';
import type { CdpHTTPRequest } from './HTTPRequest.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -19,21 +19,21 @@ /**

import type { Readable } from 'stream';
import { type Protocol } from 'devtools-protocol';
import { type Browser } from '../api/Browser.js';
import type { Protocol } from 'devtools-protocol';
import type { Browser } from '../api/Browser.js';
import type { BrowserContext } from '../api/BrowserContext.js';
import { type CDPSession } from '../api/CDPSession.js';
import { type Frame, type WaitForOptions } from '../api/Frame.js';
import { type HTTPRequest } from '../api/HTTPRequest.js';
import { type HTTPResponse } from '../api/HTTPResponse.js';
import { type JSHandle } from '../api/JSHandle.js';
import type { Frame, WaitForOptions } from '../api/Frame.js';
import type { HTTPRequest } from '../api/HTTPRequest.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
import type { JSHandle } from '../api/JSHandle.js';
import { Page, type GeolocationOptions, type MediaFeature, type Metrics, type NewDocumentScriptEvaluation, type ScreenshotOptions, type WaitTimeoutOptions } from '../api/Page.js';
import { FileChooser } from '../common/FileChooser.js';
import { type PDFOptions } from '../common/PDFOptions.js';
import { type Viewport } from '../common/Viewport.js';
import type { PDFOptions } from '../common/PDFOptions.js';
import type { Viewport } from '../common/Viewport.js';
import { Accessibility } from './Accessibility.js';
import { Coverage } from './Coverage.js';
import { type DeviceRequestPrompt } from './DeviceRequestPrompt.js';
import { type CdpFrame } from './Frame.js';
import type { DeviceRequestPrompt } from './DeviceRequestPrompt.js';
import type { CdpFrame } from './Frame.js';
import { CdpKeyboard, CdpMouse, CdpTouchscreen } from './Input.js';
import { type Credentials, type NetworkConditions } from './NetworkManager.js';
import { type CdpTarget } from './Target.js';
import type { CdpTarget } from './Target.js';
import { Tracing } from './Tracing.js';

@@ -40,0 +40,0 @@ import { WebWorker } from './WebWorker.js';

@@ -16,3 +16,3 @@ /**

*/
import { type NetworkConditions } from './NetworkManager.js';
import type { NetworkConditions } from './NetworkManager.js';
/**

@@ -19,0 +19,0 @@ * A list of network conditions to be used with

@@ -16,4 +16,4 @@ /**

*/
import { type Browser } from '../api/Browser.js';
import { type ConnectionTransport } from '../common/ConnectionTransport.js';
import type { Browser } from '../api/Browser.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
import { type CustomQueryHandler } from '../common/CustomQueryHandler.js';

@@ -20,0 +20,0 @@ import { type BrowserConnectOptions } from './BrowserConnector.js';

@@ -16,11 +16,11 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import type { Protocol } from 'devtools-protocol';
import type { Browser } from '../api/Browser.js';
import type { BrowserContext } from '../api/BrowserContext.js';
import { type CDPSession } from '../api/CDPSession.js';
import type { CDPSession } from '../api/CDPSession.js';
import { type Page } from '../api/Page.js';
import { Target, TargetType } from '../api/Target.js';
import { type Viewport } from '../common/Viewport.js';
import type { Viewport } from '../common/Viewport.js';
import { Deferred } from '../util/Deferred.js';
import { type TargetManager } from './TargetManager.js';
import type { TargetManager } from './TargetManager.js';
import { WebWorker } from './WebWorker.js';

@@ -27,0 +27,0 @@ /**

@@ -16,6 +16,6 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type CdpTarget } from './Target.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { EventEmitter, EventType } from '../common/EventEmitter.js';
import type { CdpTarget } from './Target.js';
/**

@@ -22,0 +22,0 @@ * @internal

@@ -17,3 +17,3 @@ /// <reference types="node" />

*/
import { type CDPSession } from '../api/CDPSession.js';
import type { CDPSession } from '../api/CDPSession.js';
/**

@@ -20,0 +20,0 @@ * @public

@@ -16,9 +16,9 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type Realm } from '../api/Realm.js';
import { type ConsoleMessageType } from '../common/ConsoleMessage.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { Realm } from '../api/Realm.js';
import type { ConsoleMessageType } from '../common/ConsoleMessage.js';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { TimeoutSettings } from '../common/TimeoutSettings.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import { CdpJSHandle } from './JSHandle.js';

@@ -25,0 +25,0 @@ /**

@@ -16,3 +16,3 @@ /**

*/
import { type ConnectionTransport } from './ConnectionTransport.js';
import type { ConnectionTransport } from './ConnectionTransport.js';
/**

@@ -19,0 +19,0 @@ * @internal

@@ -16,3 +16,3 @@ /**

*/
import { type Product } from './Product.js';
import type { Product } from './Product.js';
/**

@@ -19,0 +19,0 @@ * Defines experiment options for Puppeteer.

@@ -16,3 +16,3 @@ /**

*/
import { type JSHandle } from '../api/JSHandle.js';
import type { JSHandle } from '../api/JSHandle.js';
/**

@@ -19,0 +19,0 @@ * @public

@@ -16,2 +16,3 @@ /**

*/
import type Debug from 'debug';
declare global {

@@ -23,3 +24,3 @@ var __PUPPETEER_DEBUG: string;

*/
export declare function importDebug(): Promise<typeof import('debug')>;
export declare function importDebug(): Promise<typeof Debug>;
/**

@@ -26,0 +27,0 @@ * A debug function that can be used in any environment.

@@ -16,3 +16,3 @@ /**

*/
import { type Viewport } from './Viewport.js';
import type { Viewport } from './Viewport.js';
/**

@@ -19,0 +19,0 @@ * @public

@@ -18,3 +18,3 @@ /**

import { disposeSymbol } from '../util/disposable.js';
export {
export type {
/**

@@ -21,0 +21,0 @@ * @public

@@ -16,4 +16,4 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type ElementHandle } from '../api/ElementHandle.js';
import type { Protocol } from 'devtools-protocol';
import type { ElementHandle } from '../api/ElementHandle.js';
/**

@@ -20,0 +20,0 @@ * File choosers let you react to the page requesting for a file.

@@ -16,4 +16,4 @@ /**

*/
import { type JSHandle } from '../api/JSHandle.js';
import { type AwaitableIterable, type HandleFor } from './types.js';
import type { JSHandle } from '../api/JSHandle.js';
import type { AwaitableIterable, HandleFor } from './types.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -16,3 +16,3 @@ /**

*/
import { type JSHandle } from '../api/JSHandle.js';
import type { JSHandle } from '../api/JSHandle.js';
import type PuppeteerUtil from '../injected/injected.js';

@@ -19,0 +19,0 @@ /**

@@ -16,3 +16,3 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import type { Protocol } from 'devtools-protocol';
/**

@@ -19,0 +19,0 @@ * The SecurityDetails class represents the security details of a

@@ -19,2 +19,4 @@ /**

/// <reference types="node" />
/// <reference types="node" />
import type FS from 'fs/promises';
import type { Readable } from 'stream';

@@ -24,5 +26,5 @@ import type { Protocol } from 'devtools-protocol';

import type { CDPSession } from '../api/CDPSession.js';
import { type Page } from '../api/Page.js';
import type { Page } from '../api/Page.js';
import { Deferred } from '../util/Deferred.js';
import { type Awaitable } from './types.js';
import type { Awaitable } from './types.js';
/**

@@ -108,3 +110,3 @@ * @internal

*/
export declare function importFSPromises(): Promise<typeof import('fs/promises')>;
export declare function importFSPromises(): Promise<typeof FS>;
/**

@@ -111,0 +113,0 @@ * @internal

@@ -16,5 +16,5 @@ /**

*/
import { type ElementHandle } from '../api/ElementHandle.js';
import { type Realm } from '../api/Realm.js';
import { type HandleFor } from './types.js';
import type { ElementHandle } from '../api/ElementHandle.js';
import type { Realm } from '../api/Realm.js';
import type { HandleFor } from './types.js';
/**

@@ -21,0 +21,0 @@ * @internal

@@ -8,3 +8,3 @@ /**

*/
export declare const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>\u00B6*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>\u00B6*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var j={};u(j,{xpathQuerySelectorAll:()=>U});var U=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*U(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...j,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
export declare const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>\u00B6*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>\u00B6*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...U,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
//# sourceMappingURL=injected.d.ts.map

@@ -11,3 +11,3 @@ "use strict";

*/
exports.source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var j={};u(j,{xpathQuerySelectorAll:()=>U});var U=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*U(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...j,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
exports.source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...U,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
//# sourceMappingURL=injected.js.map
/**
* @internal
*/
export declare const packageVersion = "21.3.5";
export declare const packageVersion = "21.3.6";
//# sourceMappingURL=version.d.ts.map

@@ -7,3 +7,3 @@ "use strict";

*/
exports.packageVersion = '21.3.5';
exports.packageVersion = '21.3.6';
//# sourceMappingURL=version.js.map

@@ -40,3 +40,3 @@ /**

customQuerySelectors: {
"__#48671@#selectors": Map<string, CustomQuerySelectors.CustomQuerySelector>;
"__#48675@#selectors": Map<string, CustomQuerySelectors.CustomQuerySelector>;
register(name: string, handler: import("../puppeteer-core.js").CustomQueryHandler): void;

@@ -43,0 +43,0 @@ unregister(name: string): void;

@@ -16,6 +16,6 @@ /**

*/
import { type Browser } from '../api/Browser.js';
import { type BrowserLaunchArgumentOptions, type ChromeReleaseChannel, type PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import type { Browser } from '../api/Browser.js';
import type { BrowserLaunchArgumentOptions, ChromeReleaseChannel, PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import { ProductLauncher, type ResolvedLaunchArgs } from './ProductLauncher.js';
import { type PuppeteerNode } from './PuppeteerNode.js';
import type { PuppeteerNode } from './PuppeteerNode.js';
/**

@@ -22,0 +22,0 @@ * @internal

@@ -132,3 +132,2 @@ "use strict";

disabledFeatures.push('Prerender2');
disabledFeatures.push('BackForwardCache');
}

@@ -135,0 +134,0 @@ const chromeArguments = [

@@ -16,5 +16,5 @@ /**

*/
import { type BrowserLaunchArgumentOptions, type PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import type { BrowserLaunchArgumentOptions, PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import { ProductLauncher, type ResolvedLaunchArgs } from './ProductLauncher.js';
import { type PuppeteerNode } from './PuppeteerNode.js';
import type { PuppeteerNode } from './PuppeteerNode.js';
/**

@@ -21,0 +21,0 @@ * @internal

@@ -16,4 +16,4 @@ /**

*/
import { type BrowserConnectOptions } from '../cdp/BrowserConnector.js';
import { type Product } from '../common/Product.js';
import type { BrowserConnectOptions } from '../cdp/BrowserConnector.js';
import type { Product } from '../common/Product.js';
/**

@@ -20,0 +20,0 @@ * Launcher options that only apply to Chrome.

@@ -17,3 +17,3 @@ /**

import NodeWebSocket from 'ws';
import { type ConnectionTransport } from '../common/ConnectionTransport.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -17,3 +17,3 @@ /// <reference types="node" />

*/
import { type ConnectionTransport } from '../common/ConnectionTransport.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
/**

@@ -20,0 +20,0 @@ * @internal

import { launch } from '@puppeteer/browsers';
import { type Browser, type BrowserCloseCallback } from '../api/Browser.js';
import type { Browser, BrowserCloseCallback } from '../api/Browser.js';
import { Connection } from '../cdp/Connection.js';
import { type Product } from '../common/Product.js';
import { type Viewport } from '../common/Viewport.js';
import { type BrowserLaunchArgumentOptions, type ChromeReleaseChannel, type PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import { type PuppeteerNode } from './PuppeteerNode.js';
import type { Product } from '../common/Product.js';
import type { Viewport } from '../common/Viewport.js';
import type { BrowserLaunchArgumentOptions, ChromeReleaseChannel, PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import type { PuppeteerNode } from './PuppeteerNode.js';
/**

@@ -9,0 +9,0 @@ * @internal

@@ -16,8 +16,8 @@ /**

*/
import { type Browser } from '../api/Browser.js';
import { type BrowserConnectOptions } from '../cdp/BrowserConnector.js';
import type { Browser } from '../api/Browser.js';
import type { BrowserConnectOptions } from '../cdp/BrowserConnector.js';
import { type CommonPuppeteerSettings, type ConnectOptions, Puppeteer } from '../cdp/Puppeteer.js';
import { type Configuration } from '../common/Configuration.js';
import { type Product } from '../common/Product.js';
import { type BrowserLaunchArgumentOptions, type ChromeReleaseChannel, type LaunchOptions } from './LaunchOptions.js';
import type { Configuration } from '../common/Configuration.js';
import type { Product } from '../common/Product.js';
import type { BrowserLaunchArgumentOptions, ChromeReleaseChannel, LaunchOptions } from './LaunchOptions.js';
/**

@@ -24,0 +24,0 @@ * @public

@@ -16,3 +16,3 @@ /**

*/
export { Protocol } from 'devtools-protocol';
export type { Protocol } from 'devtools-protocol';
export * from './api/api.js';

@@ -19,0 +19,0 @@ export * from './cdp/cdp.js';

@@ -16,3 +16,3 @@ /**

*/
import { type AwaitableIterable } from '../common/types.js';
import type { AwaitableIterable } from '../common/types.js';
/**

@@ -19,0 +19,0 @@ * @internal

@@ -16,3 +16,3 @@ /**

*/
import { type Disposed, type Moveable } from '../common/types.js';
import type { Disposed, Moveable } from '../common/types.js';
export declare function moveable<Class extends abstract new (...args: never[]) => Moveable>(Class: Class, _: ClassDecoratorContext<Class>): Class;

@@ -19,0 +19,0 @@ export declare function throwIfDisposed<This extends Disposed>(message?: (value: This) => string): (target: (this: This, ...args: any[]) => any, _: unknown) => (this: This, ...args: any[]) => any;

@@ -9,3 +9,3 @@ import { disposeSymbol } from './disposable.js';

new (mutex: Mutex): {
"__#48661@#mutex": Mutex;
"__#48665@#mutex": Mutex;
[Symbol.dispose](): void;

@@ -12,0 +12,0 @@ };

@@ -17,4 +17,4 @@ /**

/// <reference types="node" />
import { type ChildProcess } from 'child_process';
import { type Protocol } from 'devtools-protocol';
import type { ChildProcess } from 'child_process';
import type { Protocol } from 'devtools-protocol';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';

@@ -21,0 +21,0 @@ import { asyncDisposeSymbol, disposeSymbol } from '../util/disposable.js';

@@ -19,3 +19,3 @@ /**

import type { Browser, Permission } from './Browser.js';
import { type Page } from './Page.js';
import type { Page } from './Page.js';
import type { Target } from './Target.js';

@@ -22,0 +22,0 @@ /**

@@ -16,3 +16,3 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import type { Protocol } from 'devtools-protocol';
/**

@@ -19,0 +19,0 @@ * Dialog instances are dispatched by the {@link Page} via the `dialog` event.

@@ -17,9 +17,9 @@ /**

/// <reference types="node" />
import { type Protocol } from 'devtools-protocol';
import { type Frame } from '../api/Frame.js';
import { type ElementFor, type EvaluateFuncWith, type HandleFor, type HandleOr, type NodeFor } from '../common/types.js';
import { type KeyInput } from '../common/USKeyboardLayout.js';
import { type KeyboardTypeOptions, type KeyPressOptions, type MouseClickOptions } from './Input.js';
import type { Protocol } from 'devtools-protocol';
import type { Frame } from '../api/Frame.js';
import type { ElementFor, EvaluateFuncWith, HandleFor, HandleOr, NodeFor } from '../common/types.js';
import type { KeyInput } from '../common/USKeyboardLayout.js';
import type { KeyboardTypeOptions, KeyPressOptions, MouseClickOptions } from './Input.js';
import { JSHandle } from './JSHandle.js';
import { type ScreenshotOptions, type WaitForSelectorOptions } from './Page.js';
import type { ScreenshotOptions, WaitForSelectorOptions } from './Page.js';
/**

@@ -26,0 +26,0 @@ * @public

@@ -16,4 +16,4 @@ /**

*/
import { type CDPSession } from './CDPSession.js';
import { type Realm } from './Realm.js';
import type { CDPSession } from './CDPSession.js';
import type { Realm } from './Realm.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -17,14 +17,14 @@ /**

import type Protocol from 'devtools-protocol';
import { type ClickOptions, type ElementHandle } from '../api/ElementHandle.js';
import { type HTTPResponse } from '../api/HTTPResponse.js';
import { type Page, type WaitForSelectorOptions, type WaitTimeoutOptions } from '../api/Page.js';
import { type DeviceRequestPrompt } from '../cdp/DeviceRequestPrompt.js';
import { type IsolatedWorldChart } from '../cdp/IsolatedWorld.js';
import { type PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import type { ClickOptions, ElementHandle } from '../api/ElementHandle.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
import type { Page, WaitForSelectorOptions, WaitTimeoutOptions } from '../api/Page.js';
import type { DeviceRequestPrompt } from '../cdp/DeviceRequestPrompt.js';
import type { IsolatedWorldChart } from '../cdp/IsolatedWorld.js';
import type { PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type Awaitable, type EvaluateFunc, type EvaluateFuncWith, type HandleFor, type NodeFor } from '../common/types.js';
import { type CDPSession } from './CDPSession.js';
import { type KeyboardTypeOptions } from './Input.js';
import type { Awaitable, EvaluateFunc, EvaluateFuncWith, HandleFor, NodeFor } from '../common/types.js';
import type { CDPSession } from './CDPSession.js';
import type { KeyboardTypeOptions } from './Input.js';
import { type Locator } from './locators/locators.js';
import { type Realm } from './Realm.js';
import type { Realm } from './Realm.js';
/**

@@ -31,0 +31,0 @@ * @public

@@ -17,6 +17,6 @@ /// <reference types="node" />

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from './CDPSession.js';
import { type Frame } from './Frame.js';
import { type HTTPResponse } from './HTTPResponse.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from './CDPSession.js';
import type { Frame } from './Frame.js';
import type { HTTPResponse } from './HTTPResponse.js';
/**

@@ -23,0 +23,0 @@ * @public

@@ -18,5 +18,5 @@ /**

import type Protocol from 'devtools-protocol';
import { type SecurityDetails } from '../common/SecurityDetails.js';
import { type Frame } from './Frame.js';
import { type HTTPRequest } from './HTTPRequest.js';
import type { SecurityDetails } from '../common/SecurityDetails.js';
import type { Frame } from './Frame.js';
import type { HTTPRequest } from './HTTPRequest.js';
/**

@@ -23,0 +23,0 @@ * @public

@@ -16,5 +16,5 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type KeyInput } from '../common/USKeyboardLayout.js';
import { type Point } from './ElementHandle.js';
import type { Protocol } from 'devtools-protocol';
import type { KeyInput } from '../common/USKeyboardLayout.js';
import type { Point } from './ElementHandle.js';
/**

@@ -21,0 +21,0 @@ * @public

@@ -17,6 +17,6 @@ /**

import type Protocol from 'devtools-protocol';
import { type EvaluateFuncWith, type HandleFor, type HandleOr } from '../common/types.js';
import type { EvaluateFuncWith, HandleFor, HandleOr } from '../common/types.js';
import { disposeSymbol, asyncDisposeSymbol } from '../util/disposable.js';
import { type ElementHandle } from './ElementHandle.js';
import { type Realm } from './Realm.js';
import type { ElementHandle } from './ElementHandle.js';
import type { Realm } from './Realm.js';
/**

@@ -23,0 +23,0 @@ * Represents a reference to a JavaScript object. Instances can be created using

@@ -16,4 +16,4 @@ /**

*/
import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type HandleFor } from '../../common/types.js';
import type { Observable } from '../../../third_party/rxjs/rxjs.js';
import type { HandleFor } from '../../common/types.js';
import { Locator, type VisibilityOption } from './locators.js';

@@ -20,0 +20,0 @@ /**

@@ -17,5 +17,5 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type Awaitable, type HandleFor } from '../../common/types.js';
import type { Awaitable, HandleFor } from '../../common/types.js';
import { DelegatedLocator } from './DelegatedLocator.js';
import { type ActionOptions, type Locator } from './locators.js';
import type { ActionOptions, Locator } from './locators.js';
/**

@@ -22,0 +22,0 @@ * @public

@@ -17,5 +17,5 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type Awaitable, type HandleFor } from '../../common/types.js';
import { type Frame } from '../Frame.js';
import { type Page } from '../Page.js';
import type { Awaitable, HandleFor } from '../../common/types.js';
import type { Frame } from '../Frame.js';
import type { Page } from '../Page.js';
import { type ActionOptions, Locator } from './locators.js';

@@ -22,0 +22,0 @@ /**

@@ -18,4 +18,4 @@ /**

import { EventEmitter, type EventType } from '../../common/EventEmitter.js';
import { type HandleFor } from '../../common/types.js';
import { type ClickOptions } from '../ElementHandle.js';
import type { HandleFor } from '../../common/types.js';
import type { ClickOptions } from '../ElementHandle.js';
import { type Action, type AwaitedLocator, type HandleMapper, type Mapper, type Predicate } from './locators.js';

@@ -110,3 +110,3 @@ /**

}
export {
export type {
/**

@@ -113,0 +113,0 @@ * @deprecated Use {@link LocatorEvents}.

@@ -17,3 +17,3 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type Awaitable, type HandleFor } from '../../common/types.js';
import type { Awaitable, HandleFor } from '../../common/types.js';
import { type ActionOptions, DelegatedLocator, type Locator } from './locators.js';

@@ -20,0 +20,0 @@ /**

@@ -17,5 +17,5 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type HandleFor, type NodeFor } from '../../common/types.js';
import { type Frame } from '../Frame.js';
import { type Page } from '../Page.js';
import type { HandleFor, NodeFor } from '../../common/types.js';
import type { Frame } from '../Frame.js';
import type { Page } from '../Page.js';
import { type ActionOptions, Locator } from './locators.js';

@@ -22,0 +22,0 @@ /**

@@ -17,3 +17,3 @@ /**

import { type Observable } from '../../../third_party/rxjs/rxjs.js';
import { type HandleFor } from '../../common/types.js';
import type { HandleFor } from '../../common/types.js';
import { type ActionOptions, Locator } from './locators.js';

@@ -20,0 +20,0 @@ /**

@@ -16,9 +16,9 @@ /**

*/
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import { type EvaluateFunc, type HandleFor, type InnerLazyParams } from '../common/types.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import type { EvaluateFunc, HandleFor, InnerLazyParams } from '../common/types.js';
import { TaskManager } from '../common/WaitTask.js';
import { disposeSymbol } from '../util/disposable.js';
import { type ElementHandle } from './ElementHandle.js';
import { type Environment } from './Environment.js';
import { type JSHandle } from './JSHandle.js';
import type { ElementHandle } from './ElementHandle.js';
import type { Environment } from './Environment.js';
import type { JSHandle } from './JSHandle.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -18,5 +18,5 @@ /**

import type { BrowserContext } from '../api/BrowserContext.js';
import { type Page } from '../api/Page.js';
import { type WebWorker } from '../cdp/WebWorker.js';
import { type CDPSession } from './CDPSession.js';
import type { Page } from '../api/Page.js';
import type { WebWorker } from '../cdp/WebWorker.js';
import type { CDPSession } from './CDPSession.js';
/**

@@ -23,0 +23,0 @@ * @public

@@ -16,3 +16,3 @@ /**

*/
import { type Connection as CdpConnection } from '../cdp/Connection.js';
import type { Connection as CdpConnection } from '../cdp/Connection.js';
import { BidiConnection } from './Connection.js';

@@ -19,0 +19,0 @@ /**

@@ -17,10 +17,10 @@ /**

/// <reference types="node" />
import { type ChildProcess } from 'child_process';
import type { ChildProcess } from 'child_process';
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { Browser, type BrowserCloseCallback, type BrowserContextOptions } from '../api/Browser.js';
import { type Page } from '../api/Page.js';
import { type Target } from '../api/Target.js';
import { type Viewport } from '../common/Viewport.js';
import type { Page } from '../api/Page.js';
import type { Target } from '../api/Target.js';
import type { Viewport } from '../common/Viewport.js';
import { BidiBrowserContext } from './BrowserContext.js';
import { type BidiConnection } from './Connection.js';
import type { BidiConnection } from './Connection.js';
import { type BidiTarget } from './Target.js';

@@ -27,0 +27,0 @@ /**

@@ -17,6 +17,6 @@ /**

import { Browser, } from '../api/Browser.js';
import { debugError } from '../common/util.js';
import { BidiBrowserContext } from './BrowserContext.js';
import { BrowsingContext, BrowsingContextEvent } from './BrowsingContext.js';
import { BiDiBrowserTarget, BiDiBrowsingContextTarget, BiDiPageTarget, } from './Target.js';
import { debugError } from './util.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -17,8 +17,8 @@ /**

import { BrowserContext } from '../api/BrowserContext.js';
import { type Page } from '../api/Page.js';
import { type Target } from '../api/Target.js';
import { type Viewport } from '../common/Viewport.js';
import { type BidiBrowser } from './Browser.js';
import { type BidiConnection } from './Connection.js';
import { type BidiPage } from './Page.js';
import type { Page } from '../api/Page.js';
import type { Target } from '../api/Target.js';
import type { Viewport } from '../common/Viewport.js';
import type { BidiBrowser } from './Browser.js';
import type { BidiConnection } from './Connection.js';
import type { BidiPage } from './Page.js';
/**

@@ -25,0 +25,0 @@ * @internal

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import type ProtocolMapping from 'devtools-protocol/types/protocol-mapping.js';
import { CDPSession } from '../api/CDPSession.js';
import { type Connection as CdpConnection } from '../cdp/Connection.js';
import { type PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import { type EventType } from '../common/EventEmitter.js';
import { type BidiConnection } from './Connection.js';
import type { Connection as CdpConnection } from '../cdp/Connection.js';
import type { PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import type { EventType } from '../common/EventEmitter.js';
import type { BidiConnection } from './Connection.js';
import { BidiRealm } from './Realm.js';

@@ -9,0 +9,0 @@ /**

import { CDPSession } from '../api/CDPSession.js';
import { TargetCloseError } from '../common/Errors.js';
import { debugError } from '../common/util.js';
import { assert } from '../util/assert.js';
import { Deferred } from '../util/Deferred.js';
import { BidiRealm } from './Realm.js';
import { debugError } from './util.js';
/**

@@ -8,0 +8,0 @@ * @internal

@@ -17,3 +17,3 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type ConnectionTransport } from '../common/ConnectionTransport.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
import { EventEmitter } from '../common/EventEmitter.js';

@@ -20,0 +20,0 @@ import { type BrowsingContext } from './BrowsingContext.js';

@@ -19,4 +19,4 @@ /**

import { EventEmitter } from '../common/EventEmitter.js';
import { debugError } from '../common/util.js';
import { cdpSessions } from './BrowsingContext.js';
import { debugError } from './util.js';
const debugProtocolSend = debug('puppeteer:webDriverBiDi:SEND ►');

@@ -23,0 +23,0 @@ const debugProtocolReceive = debug('puppeteer:webDriverBiDi:RECV ◀');

@@ -18,3 +18,3 @@ /**

import { Dialog } from '../api/Dialog.js';
import { type BrowsingContext } from './BrowsingContext.js';
import type { BrowsingContext } from './BrowsingContext.js';
/**

@@ -21,0 +21,0 @@ * @internal

@@ -18,6 +18,6 @@ /**

import { type AutofillData, ElementHandle } from '../api/ElementHandle.js';
import { type BidiFrame } from './Frame.js';
import type { BidiFrame } from './Frame.js';
import { BidiJSHandle } from './JSHandle.js';
import { type BidiRealm } from './Realm.js';
import { type Sandbox } from './Sandbox.js';
import type { BidiRealm } from './Realm.js';
import type { Sandbox } from './Sandbox.js';
/**

@@ -24,0 +24,0 @@ * @internal

@@ -17,3 +17,3 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type BrowsingContext } from './BrowsingContext.js';
import type { BrowsingContext } from './BrowsingContext.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -16,4 +16,4 @@ /**

*/
import { type Awaitable } from '../common/types.js';
import { type BidiFrame } from './Frame.js';
import type { Awaitable } from '../common/types.js';
import type { BidiFrame } from './Frame.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -17,2 +17,3 @@ /**

import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { debugError } from '../common/util.js';
import { assert } from '../util/assert.js';

@@ -22,3 +23,2 @@ import { Deferred } from '../util/Deferred.js';

import { BidiSerializer } from './Serializer.js';
import { debugError } from './util.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -17,11 +17,11 @@ /**

import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type CDPSession } from '../api/CDPSession.js';
import type { CDPSession } from '../api/CDPSession.js';
import { Frame, type GoToOptions, type WaitForOptions } from '../api/Frame.js';
import { type PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import { type Awaitable } from '../common/types.js';
import type { PuppeteerLifeCycleEvent } from '../cdp/LifecycleWatcher.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import type { Awaitable } from '../common/types.js';
import { disposeSymbol } from '../util/disposable.js';
import { type BrowsingContext } from './BrowsingContext.js';
import { type BidiHTTPResponse } from './HTTPResponse.js';
import { type BidiPage } from './Page.js';
import type { BidiHTTPResponse } from './HTTPResponse.js';
import type { BidiPage } from './Page.js';
import { Sandbox, type SandboxChart } from './Sandbox.js';

@@ -28,0 +28,0 @@ /**

@@ -51,5 +51,7 @@ /**

import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { firstValueFrom, from, fromEvent, merge, raceWith, switchMap, } from '../../third_party/rxjs/rxjs.js';
import { Frame, throwIfDetached, } from '../api/Frame.js';
import { ProtocolError, TimeoutError } from '../common/Errors.js';
import { UTILITY_WORLD_NAME, setPageContent, waitForEvent, waitWithTimeout, } from '../common/util.js';
import { UTILITY_WORLD_NAME, setPageContent, waitWithTimeout, } from '../common/util.js';
import { timeout } from '../common/util.js';
import { Deferred } from '../util/Deferred.js';

@@ -162,21 +164,7 @@ import { disposeSymbol } from '../util/disposable.js';

async waitForNavigation(options = {}) {
const { waitUntil = 'load', timeout = this.#timeoutSettings.navigationTimeout(), } = options;
const { waitUntil = 'load', timeout: ms = this.#timeoutSettings.navigationTimeout(), } = options;
const waitUntilEvent = lifeCycleToSubscribedEvent.get(getWaitUntilSingle(waitUntil));
const [info] = await Deferred.race([
// TODO(lightning00blade): Should also keep tack of
// navigationAborted and navigationFailed
Promise.all([
waitForEvent(this.#context, waitUntilEvent, () => {
return true;
}, timeout, this.#abortDeferred.valueOrThrow()),
waitForEvent(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted, () => {
return true;
}, timeout, this.#abortDeferred.valueOrThrow()),
]),
waitForEvent(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated, () => {
return true;
}, timeout, this.#abortDeferred.valueOrThrow()).then(info => {
return [info, undefined];
}),
]);
const info = await firstValueFrom(merge(fromEvent(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted).pipe(switchMap(() => {
return fromEvent(this.#context, waitUntilEvent);
})), fromEvent(this.#context, Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated)).pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow()))));
return this.#page.getNavigationResponse(info.navigation);

@@ -183,0 +171,0 @@ }

@@ -17,5 +17,5 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type Frame } from '../api/Frame.js';
import type { Frame } from '../api/Frame.js';
import { HTTPRequest, type ResourceType } from '../api/HTTPRequest.js';
import { type BidiHTTPResponse } from './HTTPResponse.js';
import type { BidiHTTPResponse } from './HTTPResponse.js';
/**

@@ -22,0 +22,0 @@ * @internal

@@ -18,5 +18,5 @@ /**

import type Protocol from 'devtools-protocol';
import { type Frame } from '../api/Frame.js';
import type { Frame } from '../api/Frame.js';
import { HTTPResponse as HTTPResponse, type RemoteAddress } from '../api/HTTPResponse.js';
import { type BidiHTTPRequest } from './HTTPRequest.js';
import type { BidiHTTPRequest } from './HTTPRequest.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -18,5 +18,5 @@ /**

import { Keyboard, Mouse, Touchscreen, type KeyDownOptions, type KeyPressOptions, type KeyboardTypeOptions, type MouseClickOptions, type MouseMoveOptions, type MouseOptions, type MouseWheelOptions } from '../api/Input.js';
import { type KeyInput } from '../common/USKeyboardLayout.js';
import { type BrowsingContext } from './BrowsingContext.js';
import { type BidiPage } from './Page.js';
import type { KeyInput } from '../common/USKeyboardLayout.js';
import type { BrowsingContext } from './BrowsingContext.js';
import type { BidiPage } from './Page.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -17,6 +17,6 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type ElementHandle } from '../api/ElementHandle.js';
import type { ElementHandle } from '../api/ElementHandle.js';
import { JSHandle } from '../api/JSHandle.js';
import { type BidiRealm } from './Realm.js';
import { type Sandbox } from './Sandbox.js';
import type { BidiRealm } from './Realm.js';
import type { Sandbox } from './Sandbox.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -18,7 +18,7 @@ /**

import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type BidiConnection } from './Connection.js';
import { type BidiFrame } from './Frame.js';
import type { BidiConnection } from './Connection.js';
import type { BidiFrame } from './Frame.js';
import { BidiHTTPRequest } from './HTTPRequest.js';
import { BidiHTTPResponse } from './HTTPResponse.js';
import { type BidiPage } from './Page.js';
import type { BidiPage } from './Page.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -20,4 +20,4 @@ /**

import type Protocol from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type WaitForOptions } from '../api/Frame.js';
import type { CDPSession } from '../api/CDPSession.js';
import type { WaitForOptions } from '../api/Frame.js';
import { Page, type GeolocationOptions, type MediaFeature, type NewDocumentScriptEvaluation, type ScreenshotOptions } from '../api/Page.js';

@@ -27,14 +27,14 @@ import { Accessibility } from '../cdp/Accessibility.js';

import { Tracing } from '../cdp/Tracing.js';
import { type PDFOptions } from '../common/PDFOptions.js';
import { type Awaitable } from '../common/types.js';
import { type Viewport } from '../common/Viewport.js';
import { type BidiBrowser } from './Browser.js';
import { type BidiBrowserContext } from './BrowserContext.js';
import type { PDFOptions } from '../common/PDFOptions.js';
import type { Awaitable } from '../common/types.js';
import type { Viewport } from '../common/Viewport.js';
import type { BidiBrowser } from './Browser.js';
import type { BidiBrowserContext } from './BrowserContext.js';
import { type BrowsingContext } from './BrowsingContext.js';
import { type BidiConnection } from './Connection.js';
import type { BidiConnection } from './Connection.js';
import { BidiFrame } from './Frame.js';
import { type BidiHTTPRequest } from './HTTPRequest.js';
import { type BidiHTTPResponse } from './HTTPResponse.js';
import type { BidiHTTPRequest } from './HTTPRequest.js';
import type { BidiHTTPResponse } from './HTTPResponse.js';
import { BidiKeyboard, BidiMouse, BidiTouchscreen } from './Input.js';
import { type BidiJSHandle } from './JSHandle.js';
import type { BidiJSHandle } from './JSHandle.js';
/**

@@ -41,0 +41,0 @@ * @internal

import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import type PuppeteerUtil from '../injected/injected.js';
import { disposeSymbol } from '../util/disposable.js';
import { type BidiConnection } from './Connection.js';
import type { BidiConnection } from './Connection.js';
import { BidiElementHandle } from './ElementHandle.js';
import { BidiJSHandle } from './JSHandle.js';
import { type Sandbox } from './Sandbox.js';
import type { Sandbox } from './Sandbox.js';
/**

@@ -11,0 +11,0 @@ * @internal

@@ -16,9 +16,9 @@ /**

*/
import { type JSHandle } from '../api/JSHandle.js';
import type { JSHandle } from '../api/JSHandle.js';
import { Realm } from '../api/Realm.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import { type BrowsingContext } from './BrowsingContext.js';
import { type BidiFrame } from './Frame.js';
import { type BidiRealm as BidiRealm } from './Realm.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import type { BrowsingContext } from './BrowsingContext.js';
import type { BidiFrame } from './Frame.js';
import type { BidiRealm as BidiRealm } from './Realm.js';
/**

@@ -25,0 +25,0 @@ * A unique key for {@link SandboxChart} to denote the default world.

@@ -17,3 +17,3 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type Sandbox } from './Sandbox.js';
import type { Sandbox } from './Sandbox.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -16,6 +16,6 @@ /**

*/
import { type CDPSession } from '../api/CDPSession.js';
import type { CDPSession } from '../api/CDPSession.js';
import { Target, TargetType } from '../api/Target.js';
import { type BidiBrowser } from './Browser.js';
import { type BidiBrowserContext } from './BrowserContext.js';
import type { BidiBrowser } from './Browser.js';
import type { BidiBrowserContext } from './BrowserContext.js';
import { type BrowsingContext } from './BrowsingContext.js';

@@ -22,0 +22,0 @@ import { BidiPage } from './Page.js';

@@ -17,10 +17,6 @@ /**

import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import { type BidiRealm } from './Realm.js';
import type { BidiRealm } from './Realm.js';
/**
* @internal
*/
export declare const debugError: (...args: unknown[]) => void;
/**
* @internal
*/
export declare function releaseReference(client: BidiRealm, remoteReference: Bidi.Script.RemoteReference): Promise<void>;

@@ -27,0 +23,0 @@ /**

@@ -16,4 +16,3 @@ /**

*/
import { debug } from '../common/Debug.js';
import { PuppeteerURL } from '../common/util.js';
import { PuppeteerURL, debugError } from '../common/util.js';
import { BidiSerializer } from './Serializer.js';

@@ -23,6 +22,2 @@ /**

*/
export const debugError = debug('puppeteer:error');
/**
* @internal
*/
export async function releaseReference(client, remoteReference) {

@@ -29,0 +24,0 @@ if (!remoteReference.handle) {

@@ -16,4 +16,4 @@ /**

*/
import { type CDPSession } from '../api/CDPSession.js';
import { type ElementHandle } from '../api/ElementHandle.js';
import type { CDPSession } from '../api/CDPSession.js';
import type { ElementHandle } from '../api/ElementHandle.js';
/**

@@ -20,0 +20,0 @@ * Represents a Node and the properties of it that are relevant to Accessibility.

@@ -16,5 +16,5 @@ /**

*/
import { type ElementHandle } from '../api/ElementHandle.js';
import type { ElementHandle } from '../api/ElementHandle.js';
import { QueryHandler, type QuerySelector } from '../common/QueryHandler.js';
import { type AwaitableIterable } from '../common/types.js';
import type { AwaitableIterable } from '../common/types.js';
/**

@@ -21,0 +21,0 @@ * @internal

@@ -1,2 +0,2 @@

import { type ExecutionContext } from './ExecutionContext.js';
import type { ExecutionContext } from './ExecutionContext.js';
/**

@@ -3,0 +3,0 @@ * @internal

@@ -17,9 +17,9 @@ /**

/// <reference types="node" />
import { type ChildProcess } from 'child_process';
import type { ChildProcess } from 'child_process';
import { Browser as BrowserBase, type BrowserCloseCallback, type BrowserContextOptions, type IsPageTargetCallback, type Permission, type TargetFilterCallback } from '../api/Browser.js';
import { BrowserContext } from '../api/BrowserContext.js';
import { type Page } from '../api/Page.js';
import { type Target } from '../api/Target.js';
import { type Viewport } from '../common/Viewport.js';
import { type Connection } from './Connection.js';
import type { Page } from '../api/Page.js';
import type { Target } from '../api/Target.js';
import type { Viewport } from '../common/Viewport.js';
import type { Connection } from './Connection.js';
import { type CdpTarget } from './Target.js';

@@ -26,0 +26,0 @@ import { type TargetManager } from './TargetManager.js';

@@ -16,4 +16,4 @@ /**

*/
import { type IsPageTargetCallback, type TargetFilterCallback } from '../api/Browser.js';
import { type Viewport } from '../common/Viewport.js';
import type { IsPageTargetCallback, TargetFilterCallback } from '../api/Browser.js';
import type { Viewport } from '../common/Viewport.js';
import { CdpBrowser } from './Browser.js';

@@ -20,0 +20,0 @@ import type { ConnectOptions } from './Puppeteer.js';

@@ -1,5 +0,5 @@

import { type ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import { type CDPEvents, CDPSession } from '../api/CDPSession.js';
import { type Connection } from './Connection.js';
import { type CdpTarget } from './Target.js';
import type { CdpTarget } from './Target.js';
/**

@@ -6,0 +6,0 @@ * @internal

@@ -16,5 +16,5 @@ /**

*/
import { type TargetFilterCallback } from '../api/Browser.js';
import type { TargetFilterCallback } from '../api/Browser.js';
import { EventEmitter } from '../common/EventEmitter.js';
import { type Connection } from './Connection.js';
import type { Connection } from './Connection.js';
import { CdpTarget } from './Target.js';

@@ -21,0 +21,0 @@ import { type TargetFactory, type TargetManager, type TargetManagerEvents } from './TargetManager.js';

@@ -16,6 +16,6 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import type { Protocol } from 'devtools-protocol';
import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';
import { type CDPSession, type CDPSessionEvents } from '../api/CDPSession.js';
import { ConnectionTransport } from '../common/ConnectionTransport.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
import { ProtocolError } from '../common/Errors.js';

@@ -27,3 +27,3 @@ import { EventEmitter } from '../common/EventEmitter.js';

*/
export { ConnectionTransport, ProtocolMapping };
export type { ConnectionTransport, ProtocolMapping };
/**

@@ -30,0 +30,0 @@ * @internal

@@ -16,4 +16,4 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
/**

@@ -20,0 +20,0 @@ * The CoverageEntry class represents one entry of the coverage report.

@@ -17,5 +17,5 @@ /**

import type Protocol from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type WaitTimeoutOptions } from '../api/Page.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import type { CDPSession } from '../api/CDPSession.js';
import type { WaitTimeoutOptions } from '../api/Page.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
/**

@@ -22,0 +22,0 @@ * Device in a request prompt.

@@ -16,4 +16,4 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import { Dialog } from '../api/Dialog.js';

@@ -20,0 +20,0 @@ /**

@@ -16,7 +16,7 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import { ElementHandle, type AutofillData } from '../api/ElementHandle.js';
import { type CdpFrame } from './Frame.js';
import { type IsolatedWorld } from './IsolatedWorld.js';
import type { CdpFrame } from './Frame.js';
import type { IsolatedWorld } from './IsolatedWorld.js';
import { CdpJSHandle } from './JSHandle.js';

@@ -23,0 +23,0 @@ /**

@@ -16,6 +16,6 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import type { Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type GeolocationOptions, type MediaFeature } from '../api/Page.js';
import { type Viewport } from '../common/Viewport.js';
import type { GeolocationOptions, MediaFeature } from '../api/Page.js';
import type { Viewport } from '../common/Viewport.js';
/**

@@ -22,0 +22,0 @@ * @internal

@@ -16,9 +16,9 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { ElementHandle } from '../api/ElementHandle.js';
import { type JSHandle } from '../api/JSHandle.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import type { JSHandle } from '../api/JSHandle.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import type PuppeteerUtil from '../injected/injected.js';
import { type IsolatedWorld } from './IsolatedWorld.js';
import type { IsolatedWorld } from './IsolatedWorld.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -16,7 +16,7 @@ /**

*/
import { type TargetFilterCallback } from '../api/Browser.js';
import type { TargetFilterCallback } from '../api/Browser.js';
import { type CDPSession } from '../api/CDPSession.js';
import { EventEmitter } from '../common/EventEmitter.js';
import { type Connection } from './Connection.js';
import { type CdpTarget } from './Target.js';
import type { Connection } from './Connection.js';
import type { CdpTarget } from './Target.js';
import { type TargetFactory, type TargetManager, type TargetManagerEvents } from './TargetManager.js';

@@ -23,0 +23,0 @@ /**

@@ -16,10 +16,10 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import { Frame } from '../api/Frame.js';
import { type HTTPResponse } from '../api/HTTPResponse.js';
import { type Page, type WaitTimeoutOptions } from '../api/Page.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
import type { Page, WaitTimeoutOptions } from '../api/Page.js';
import { disposeSymbol } from '../util/disposable.js';
import { type DeviceRequestPrompt } from './DeviceRequestPrompt.js';
import { type FrameManager } from './FrameManager.js';
import type { DeviceRequestPrompt } from './DeviceRequestPrompt.js';
import type { FrameManager } from './FrameManager.js';
import { IsolatedWorld } from './IsolatedWorld.js';

@@ -26,0 +26,0 @@ import { type PuppeteerLifeCycleEvent } from './LifecycleWatcher.js';

@@ -17,5 +17,5 @@ /**

import { type CDPSession } from '../api/CDPSession.js';
import { type Page } from '../api/Page.js';
import type { Page } from '../api/Page.js';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import { CdpCDPSession } from './CDPSession.js';

@@ -27,3 +27,3 @@ import { DeviceRequestPromptManager } from './DeviceRequestPrompt.js';

import { NetworkManager } from './NetworkManager.js';
import { type CdpTarget } from './Target.js';
import type { CdpTarget } from './Target.js';
/**

@@ -30,0 +30,0 @@ * We use symbols to prevent external parties listening to these events.

@@ -16,3 +16,3 @@ /**

*/
import { type Frame } from '../api/Frame.js';
import type { Frame } from '../api/Frame.js';
/**

@@ -19,0 +19,0 @@ * Keeps track of the page frame tree and it's is managed by

@@ -16,7 +16,7 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type Frame } from '../api/Frame.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { Frame } from '../api/Frame.js';
import { type ContinueRequestOverrides, type ErrorCode, HTTPRequest, type InterceptResolutionState, type ResourceType, type ResponseForRequest } from '../api/HTTPRequest.js';
import { type HTTPResponse } from '../api/HTTPResponse.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -17,8 +17,8 @@ /// <reference types="node" />

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type Frame } from '../api/Frame.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { Frame } from '../api/Frame.js';
import { HTTPResponse, type RemoteAddress } from '../api/HTTPResponse.js';
import { SecurityDetails } from '../common/SecurityDetails.js';
import { type CdpHTTPRequest } from './HTTPRequest.js';
import type { CdpHTTPRequest } from './HTTPRequest.js';
/**

@@ -25,0 +25,0 @@ * @internal

@@ -16,5 +16,5 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type Point } from '../api/ElementHandle.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { Point } from '../api/ElementHandle.js';
import { Keyboard, type KeyDownOptions, type KeyPressOptions, Mouse, type MouseClickOptions, type MouseMoveOptions, type MouseOptions, type MouseWheelOptions, Touchscreen, type KeyboardTypeOptions } from '../api/Input.js';

@@ -21,0 +21,0 @@ import { type KeyInput } from '../common/USKeyboardLayout.js';

@@ -16,14 +16,14 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type JSHandle } from '../api/JSHandle.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { JSHandle } from '../api/JSHandle.js';
import { Realm } from '../api/Realm.js';
import { type TimeoutSettings } from '../common/TimeoutSettings.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import type { TimeoutSettings } from '../common/TimeoutSettings.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import { disposeSymbol } from '../util/disposable.js';
import { type Binding } from './Binding.js';
import type { Binding } from './Binding.js';
import { type ExecutionContext } from './ExecutionContext.js';
import { CdpFrame } from './Frame.js';
import { type MAIN_WORLD, type PUPPETEER_WORLD } from './IsolatedWorlds.js';
import { type WebWorker } from './WebWorker.js';
import type { MAIN_WORLD, PUPPETEER_WORLD } from './IsolatedWorlds.js';
import type { WebWorker } from './WebWorker.js';
/**

@@ -30,0 +30,0 @@ * @internal

@@ -16,7 +16,7 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import { JSHandle } from '../api/JSHandle.js';
import type { CdpElementHandle } from './ElementHandle.js';
import { type IsolatedWorld } from './IsolatedWorld.js';
import type { IsolatedWorld } from './IsolatedWorld.js';
/**

@@ -23,0 +23,0 @@ * @internal

@@ -16,5 +16,5 @@ /**

*/
import { type HTTPResponse } from '../api/HTTPResponse.js';
import { type TimeoutError } from '../common/Errors.js';
import { type CdpFrame } from './Frame.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
import type { TimeoutError } from '../common/Errors.js';
import type { CdpFrame } from './Frame.js';
import { type NetworkManager } from './NetworkManager.js';

@@ -21,0 +21,0 @@ /**

@@ -16,4 +16,4 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CdpHTTPRequest } from './HTTPRequest.js';
import type { Protocol } from 'devtools-protocol';
import type { CdpHTTPRequest } from './HTTPRequest.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -19,21 +19,21 @@ /**

import type { Readable } from 'stream';
import { type Protocol } from 'devtools-protocol';
import { type Browser } from '../api/Browser.js';
import type { Protocol } from 'devtools-protocol';
import type { Browser } from '../api/Browser.js';
import type { BrowserContext } from '../api/BrowserContext.js';
import { type CDPSession } from '../api/CDPSession.js';
import { type Frame, type WaitForOptions } from '../api/Frame.js';
import { type HTTPRequest } from '../api/HTTPRequest.js';
import { type HTTPResponse } from '../api/HTTPResponse.js';
import { type JSHandle } from '../api/JSHandle.js';
import type { Frame, WaitForOptions } from '../api/Frame.js';
import type { HTTPRequest } from '../api/HTTPRequest.js';
import type { HTTPResponse } from '../api/HTTPResponse.js';
import type { JSHandle } from '../api/JSHandle.js';
import { Page, type GeolocationOptions, type MediaFeature, type Metrics, type NewDocumentScriptEvaluation, type ScreenshotOptions, type WaitTimeoutOptions } from '../api/Page.js';
import { FileChooser } from '../common/FileChooser.js';
import { type PDFOptions } from '../common/PDFOptions.js';
import { type Viewport } from '../common/Viewport.js';
import type { PDFOptions } from '../common/PDFOptions.js';
import type { Viewport } from '../common/Viewport.js';
import { Accessibility } from './Accessibility.js';
import { Coverage } from './Coverage.js';
import { type DeviceRequestPrompt } from './DeviceRequestPrompt.js';
import { type CdpFrame } from './Frame.js';
import type { DeviceRequestPrompt } from './DeviceRequestPrompt.js';
import type { CdpFrame } from './Frame.js';
import { CdpKeyboard, CdpMouse, CdpTouchscreen } from './Input.js';
import { type Credentials, type NetworkConditions } from './NetworkManager.js';
import { type CdpTarget } from './Target.js';
import type { CdpTarget } from './Target.js';
import { Tracing } from './Tracing.js';

@@ -40,0 +40,0 @@ import { WebWorker } from './WebWorker.js';

@@ -16,3 +16,3 @@ /**

*/
import { type NetworkConditions } from './NetworkManager.js';
import type { NetworkConditions } from './NetworkManager.js';
/**

@@ -19,0 +19,0 @@ * A list of network conditions to be used with

@@ -16,4 +16,4 @@ /**

*/
import { type Browser } from '../api/Browser.js';
import { type ConnectionTransport } from '../common/ConnectionTransport.js';
import type { Browser } from '../api/Browser.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
import { type CustomQueryHandler } from '../common/CustomQueryHandler.js';

@@ -20,0 +20,0 @@ import { type BrowserConnectOptions } from './BrowserConnector.js';

@@ -16,11 +16,11 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import type { Protocol } from 'devtools-protocol';
import type { Browser } from '../api/Browser.js';
import type { BrowserContext } from '../api/BrowserContext.js';
import { type CDPSession } from '../api/CDPSession.js';
import type { CDPSession } from '../api/CDPSession.js';
import { type Page } from '../api/Page.js';
import { Target, TargetType } from '../api/Target.js';
import { type Viewport } from '../common/Viewport.js';
import type { Viewport } from '../common/Viewport.js';
import { Deferred } from '../util/Deferred.js';
import { type TargetManager } from './TargetManager.js';
import type { TargetManager } from './TargetManager.js';
import { WebWorker } from './WebWorker.js';

@@ -27,0 +27,0 @@ /**

@@ -16,6 +16,6 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type EventEmitter, type EventType } from '../common/EventEmitter.js';
import { type CdpTarget } from './Target.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { EventEmitter, EventType } from '../common/EventEmitter.js';
import type { CdpTarget } from './Target.js';
/**

@@ -22,0 +22,0 @@ * @internal

@@ -17,3 +17,3 @@ /// <reference types="node" />

*/
import { type CDPSession } from '../api/CDPSession.js';
import type { CDPSession } from '../api/CDPSession.js';
/**

@@ -20,0 +20,0 @@ * @public

@@ -16,9 +16,9 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type CDPSession } from '../api/CDPSession.js';
import { type Realm } from '../api/Realm.js';
import { type ConsoleMessageType } from '../common/ConsoleMessage.js';
import type { Protocol } from 'devtools-protocol';
import type { CDPSession } from '../api/CDPSession.js';
import type { Realm } from '../api/Realm.js';
import type { ConsoleMessageType } from '../common/ConsoleMessage.js';
import { EventEmitter, type EventType } from '../common/EventEmitter.js';
import { TimeoutSettings } from '../common/TimeoutSettings.js';
import { type EvaluateFunc, type HandleFor } from '../common/types.js';
import type { EvaluateFunc, HandleFor } from '../common/types.js';
import { CdpJSHandle } from './JSHandle.js';

@@ -25,0 +25,0 @@ /**

@@ -16,3 +16,3 @@ /**

*/
import { type ConnectionTransport } from './ConnectionTransport.js';
import type { ConnectionTransport } from './ConnectionTransport.js';
/**

@@ -19,0 +19,0 @@ * @internal

@@ -16,3 +16,3 @@ /**

*/
import { type Product } from './Product.js';
import type { Product } from './Product.js';
/**

@@ -19,0 +19,0 @@ * Defines experiment options for Puppeteer.

@@ -16,3 +16,3 @@ /**

*/
import { type JSHandle } from '../api/JSHandle.js';
import type { JSHandle } from '../api/JSHandle.js';
/**

@@ -19,0 +19,0 @@ * @public

@@ -16,2 +16,3 @@ /**

*/
import type Debug from 'debug';
declare global {

@@ -23,3 +24,3 @@ var __PUPPETEER_DEBUG: string;

*/
export declare function importDebug(): Promise<typeof import('debug')>;
export declare function importDebug(): Promise<typeof Debug>;
/**

@@ -26,0 +27,0 @@ * A debug function that can be used in any environment.

@@ -16,3 +16,3 @@ /**

*/
import { type Viewport } from './Viewport.js';
import type { Viewport } from './Viewport.js';
/**

@@ -19,0 +19,0 @@ * @public

@@ -18,3 +18,3 @@ /**

import { disposeSymbol } from '../util/disposable.js';
export {
export type {
/**

@@ -21,0 +21,0 @@ * @public

@@ -16,4 +16,4 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import { type ElementHandle } from '../api/ElementHandle.js';
import type { Protocol } from 'devtools-protocol';
import type { ElementHandle } from '../api/ElementHandle.js';
/**

@@ -20,0 +20,0 @@ * File choosers let you react to the page requesting for a file.

@@ -16,4 +16,4 @@ /**

*/
import { type JSHandle } from '../api/JSHandle.js';
import { type AwaitableIterable, type HandleFor } from './types.js';
import type { JSHandle } from '../api/JSHandle.js';
import type { AwaitableIterable, HandleFor } from './types.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -16,3 +16,3 @@ /**

*/
import { type JSHandle } from '../api/JSHandle.js';
import type { JSHandle } from '../api/JSHandle.js';
import type PuppeteerUtil from '../injected/injected.js';

@@ -19,0 +19,0 @@ /**

@@ -16,3 +16,3 @@ /**

*/
import { type Protocol } from 'devtools-protocol';
import type { Protocol } from 'devtools-protocol';
/**

@@ -19,0 +19,0 @@ * The SecurityDetails class represents the security details of a

@@ -19,2 +19,4 @@ /**

/// <reference types="node" />
/// <reference types="node" />
import type FS from 'fs/promises';
import type { Readable } from 'stream';

@@ -24,5 +26,5 @@ import type { Protocol } from 'devtools-protocol';

import type { CDPSession } from '../api/CDPSession.js';
import { type Page } from '../api/Page.js';
import type { Page } from '../api/Page.js';
import { Deferred } from '../util/Deferred.js';
import { type Awaitable } from './types.js';
import type { Awaitable } from './types.js';
/**

@@ -108,3 +110,3 @@ * @internal

*/
export declare function importFSPromises(): Promise<typeof import('fs/promises')>;
export declare function importFSPromises(): Promise<typeof FS>;
/**

@@ -111,0 +113,0 @@ * @internal

@@ -16,5 +16,5 @@ /**

*/
import { type ElementHandle } from '../api/ElementHandle.js';
import { type Realm } from '../api/Realm.js';
import { type HandleFor } from './types.js';
import type { ElementHandle } from '../api/ElementHandle.js';
import type { Realm } from '../api/Realm.js';
import type { HandleFor } from './types.js';
/**

@@ -21,0 +21,0 @@ * @internal

@@ -8,3 +8,3 @@ /**

*/
export declare const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>\u00B6*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>\u00B6*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var j={};u(j,{xpathQuerySelectorAll:()=>U});var U=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*U(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...j,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
export declare const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>\u00B6*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>\u00B6*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...U,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
//# sourceMappingURL=injected.d.ts.map

@@ -8,3 +8,3 @@ /**

*/
export const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var j={};u(j,{xpathQuerySelectorAll:()=>U});var U=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*U(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...j,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
export const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...U,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
//# sourceMappingURL=injected.js.map
/**
* @internal
*/
export declare const packageVersion = "21.3.5";
export declare const packageVersion = "21.3.6";
//# sourceMappingURL=version.d.ts.map
/**
* @internal
*/
export const packageVersion = '21.3.5';
export const packageVersion = '21.3.6';
//# sourceMappingURL=version.js.map

@@ -16,6 +16,6 @@ /**

*/
import { type Browser } from '../api/Browser.js';
import { type BrowserLaunchArgumentOptions, type ChromeReleaseChannel, type PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import type { Browser } from '../api/Browser.js';
import type { BrowserLaunchArgumentOptions, ChromeReleaseChannel, PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import { ProductLauncher, type ResolvedLaunchArgs } from './ProductLauncher.js';
import { type PuppeteerNode } from './PuppeteerNode.js';
import type { PuppeteerNode } from './PuppeteerNode.js';
/**

@@ -22,0 +22,0 @@ * @internal

@@ -126,3 +126,2 @@ /**

disabledFeatures.push('Prerender2');
disabledFeatures.push('BackForwardCache');
}

@@ -129,0 +128,0 @@ const chromeArguments = [

@@ -16,5 +16,5 @@ /**

*/
import { type BrowserLaunchArgumentOptions, type PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import type { BrowserLaunchArgumentOptions, PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import { ProductLauncher, type ResolvedLaunchArgs } from './ProductLauncher.js';
import { type PuppeteerNode } from './PuppeteerNode.js';
import type { PuppeteerNode } from './PuppeteerNode.js';
/**

@@ -21,0 +21,0 @@ * @internal

@@ -16,4 +16,4 @@ /**

*/
import { type BrowserConnectOptions } from '../cdp/BrowserConnector.js';
import { type Product } from '../common/Product.js';
import type { BrowserConnectOptions } from '../cdp/BrowserConnector.js';
import type { Product } from '../common/Product.js';
/**

@@ -20,0 +20,0 @@ * Launcher options that only apply to Chrome.

@@ -17,3 +17,3 @@ /**

import NodeWebSocket from 'ws';
import { type ConnectionTransport } from '../common/ConnectionTransport.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
/**

@@ -20,0 +20,0 @@ * @internal

@@ -17,3 +17,3 @@ /// <reference types="node" />

*/
import { type ConnectionTransport } from '../common/ConnectionTransport.js';
import type { ConnectionTransport } from '../common/ConnectionTransport.js';
/**

@@ -20,0 +20,0 @@ * @internal

import { launch } from '@puppeteer/browsers';
import { type Browser, type BrowserCloseCallback } from '../api/Browser.js';
import type { Browser, BrowserCloseCallback } from '../api/Browser.js';
import { Connection } from '../cdp/Connection.js';
import { type Product } from '../common/Product.js';
import { type Viewport } from '../common/Viewport.js';
import { type BrowserLaunchArgumentOptions, type ChromeReleaseChannel, type PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import { type PuppeteerNode } from './PuppeteerNode.js';
import type { Product } from '../common/Product.js';
import type { Viewport } from '../common/Viewport.js';
import type { BrowserLaunchArgumentOptions, ChromeReleaseChannel, PuppeteerNodeLaunchOptions } from './LaunchOptions.js';
import type { PuppeteerNode } from './PuppeteerNode.js';
/**

@@ -9,0 +9,0 @@ * @internal

@@ -16,8 +16,8 @@ /**

*/
import { type Browser } from '../api/Browser.js';
import { type BrowserConnectOptions } from '../cdp/BrowserConnector.js';
import type { Browser } from '../api/Browser.js';
import type { BrowserConnectOptions } from '../cdp/BrowserConnector.js';
import { type CommonPuppeteerSettings, type ConnectOptions, Puppeteer } from '../cdp/Puppeteer.js';
import { type Configuration } from '../common/Configuration.js';
import { type Product } from '../common/Product.js';
import { type BrowserLaunchArgumentOptions, type ChromeReleaseChannel, type LaunchOptions } from './LaunchOptions.js';
import type { Configuration } from '../common/Configuration.js';
import type { Product } from '../common/Product.js';
import type { BrowserLaunchArgumentOptions, ChromeReleaseChannel, LaunchOptions } from './LaunchOptions.js';
/**

@@ -24,0 +24,0 @@ * @public

@@ -16,3 +16,3 @@ /**

*/
export { Protocol } from 'devtools-protocol';
export type { Protocol } from 'devtools-protocol';
export * from './api/api.js';

@@ -19,0 +19,0 @@ export * from './cdp/cdp.js';

@@ -16,3 +16,3 @@ /**

*/
import { type AwaitableIterable } from '../common/types.js';
import type { AwaitableIterable } from '../common/types.js';
/**

@@ -19,0 +19,0 @@ * @internal

@@ -16,3 +16,3 @@ /**

*/
import { type Disposed, type Moveable } from '../common/types.js';
import type { Disposed, Moveable } from '../common/types.js';
export declare function moveable<Class extends abstract new (...args: never[]) => Moveable>(Class: Class, _: ClassDecoratorContext<Class>): Class;

@@ -19,0 +19,0 @@ export declare function throwIfDisposed<This extends Disposed>(message?: (value: This) => string): (target: (this: This, ...args: any[]) => any, _: unknown) => (this: This, ...args: any[]) => any;

{
"name": "puppeteer-core",
"version": "21.3.5",
"version": "21.3.6",
"description": "A high-level API to control headless Chrome over the DevTools Protocol",

@@ -5,0 +5,0 @@ "keywords": [

@@ -17,5 +17,5 @@ /**

import {type ChildProcess} from 'child_process';
import type {ChildProcess} from 'child_process';
import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';

@@ -22,0 +22,0 @@ import {EventEmitter, type EventType} from '../common/EventEmitter.js';

@@ -22,3 +22,3 @@ /**

import type {Browser, Permission} from './Browser.js';
import {type Page} from './Page.js';
import type {Page} from './Page.js';
import type {Target} from './Target.js';

@@ -25,0 +25,0 @@

@@ -17,3 +17,3 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';

@@ -20,0 +20,0 @@ import {assert} from '../util/assert.js';

@@ -17,15 +17,15 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type Frame} from '../api/Frame.js';
import type {Frame} from '../api/Frame.js';
import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';
import {LazyArg} from '../common/LazyArg.js';
import {
type ElementFor,
type EvaluateFuncWith,
type HandleFor,
type HandleOr,
type NodeFor,
import type {
ElementFor,
EvaluateFuncWith,
HandleFor,
HandleOr,
NodeFor,
} from '../common/types.js';
import {type KeyInput} from '../common/USKeyboardLayout.js';
import type {KeyInput} from '../common/USKeyboardLayout.js';
import {isString, withSourcePuppeteerURLIfNone} from '../common/util.js';

@@ -36,9 +36,9 @@ import {assert} from '../util/assert.js';

import {
type KeyboardTypeOptions,
type KeyPressOptions,
type MouseClickOptions,
import type {
KeyboardTypeOptions,
KeyPressOptions,
MouseClickOptions,
} from './Input.js';
import {JSHandle} from './JSHandle.js';
import {type ScreenshotOptions, type WaitForSelectorOptions} from './Page.js';
import type {ScreenshotOptions, WaitForSelectorOptions} from './Page.js';

@@ -45,0 +45,0 @@ /**

@@ -17,4 +17,4 @@ /**

import {type CDPSession} from './CDPSession.js';
import {type Realm} from './Realm.js';
import type {CDPSession} from './CDPSession.js';
import type {Realm} from './Realm.js';

@@ -21,0 +21,0 @@ /**

@@ -19,12 +19,12 @@ /**

import {type ClickOptions, type ElementHandle} from '../api/ElementHandle.js';
import {type HTTPResponse} from '../api/HTTPResponse.js';
import {
type Page,
type WaitForSelectorOptions,
type WaitTimeoutOptions,
import type {ClickOptions, ElementHandle} from '../api/ElementHandle.js';
import type {HTTPResponse} from '../api/HTTPResponse.js';
import type {
Page,
WaitForSelectorOptions,
WaitTimeoutOptions,
} from '../api/Page.js';
import {type DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
import {type IsolatedWorldChart} from '../cdp/IsolatedWorld.js';
import {type PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
import type {DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
import type {IsolatedWorldChart} from '../cdp/IsolatedWorld.js';
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
import {EventEmitter, type EventType} from '../common/EventEmitter.js';

@@ -34,8 +34,8 @@ import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';

import {LazyArg} from '../common/LazyArg.js';
import {
type Awaitable,
type EvaluateFunc,
type EvaluateFuncWith,
type HandleFor,
type NodeFor,
import type {
Awaitable,
EvaluateFunc,
EvaluateFuncWith,
HandleFor,
NodeFor,
} from '../common/types.js';

@@ -50,4 +50,4 @@ import {

import {type CDPSession} from './CDPSession.js';
import {type KeyboardTypeOptions} from './Input.js';
import type {CDPSession} from './CDPSession.js';
import type {KeyboardTypeOptions} from './Input.js';
import {

@@ -58,3 +58,3 @@ FunctionLocator,

} from './locators/locators.js';
import {type Realm} from './Realm.js';
import type {Realm} from './Realm.js';

@@ -61,0 +61,0 @@ /**

@@ -16,7 +16,7 @@ /**

*/
import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from './CDPSession.js';
import {type Frame} from './Frame.js';
import {type HTTPResponse} from './HTTPResponse.js';
import type {CDPSession} from './CDPSession.js';
import type {Frame} from './Frame.js';
import type {HTTPResponse} from './HTTPResponse.js';

@@ -23,0 +23,0 @@ /**

@@ -19,6 +19,6 @@ /**

import {type SecurityDetails} from '../common/SecurityDetails.js';
import type {SecurityDetails} from '../common/SecurityDetails.js';
import {type Frame} from './Frame.js';
import {type HTTPRequest} from './HTTPRequest.js';
import type {Frame} from './Frame.js';
import type {HTTPRequest} from './HTTPRequest.js';

@@ -25,0 +25,0 @@ /**

@@ -17,7 +17,7 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type KeyInput} from '../common/USKeyboardLayout.js';
import type {KeyInput} from '../common/USKeyboardLayout.js';
import {type Point} from './ElementHandle.js';
import type {Point} from './ElementHandle.js';

@@ -24,0 +24,0 @@ /**

@@ -19,7 +19,3 @@ /**

import {
type EvaluateFuncWith,
type HandleFor,
type HandleOr,
} from '../common/types.js';
import type {EvaluateFuncWith, HandleFor, HandleOr} from '../common/types.js';
import {debugError, withSourcePuppeteerURLIfNone} from '../common/util.js';

@@ -29,4 +25,4 @@ import {moveable, throwIfDisposed} from '../util/decorators.js';

import {type ElementHandle} from './ElementHandle.js';
import {type Realm} from './Realm.js';
import type {ElementHandle} from './ElementHandle.js';
import type {Realm} from './Realm.js';

@@ -33,0 +29,0 @@ /**

@@ -17,4 +17,4 @@ /**

import {type Observable} from '../../../third_party/rxjs/rxjs.js';
import {type HandleFor} from '../../common/types.js';
import type {Observable} from '../../../third_party/rxjs/rxjs.js';
import type {HandleFor} from '../../common/types.js';

@@ -21,0 +21,0 @@ import {Locator, type VisibilityOption} from './locators.js';

@@ -25,6 +25,6 @@ /**

} from '../../../third_party/rxjs/rxjs.js';
import {type Awaitable, type HandleFor} from '../../common/types.js';
import type {Awaitable, HandleFor} from '../../common/types.js';
import {DelegatedLocator} from './DelegatedLocator.js';
import {type ActionOptions, type Locator} from './locators.js';
import type {ActionOptions, Locator} from './locators.js';

@@ -31,0 +31,0 @@ /**

@@ -23,5 +23,5 @@ /**

} from '../../../third_party/rxjs/rxjs.js';
import {type Awaitable, type HandleFor} from '../../common/types.js';
import {type Frame} from '../Frame.js';
import {type Page} from '../Page.js';
import type {Awaitable, HandleFor} from '../../common/types.js';
import type {Frame} from '../Frame.js';
import type {Page} from '../Page.js';

@@ -28,0 +28,0 @@ import {type ActionOptions, Locator} from './locators.js';

@@ -41,8 +41,8 @@ /**

import {EventEmitter, type EventType} from '../../common/EventEmitter.js';
import {type HandleFor} from '../../common/types.js';
import type {HandleFor} from '../../common/types.js';
import {debugError, timeout} from '../../common/util.js';
import {
type BoundingBox,
type ClickOptions,
type ElementHandle,
import type {
BoundingBox,
ClickOptions,
ElementHandle,
} from '../ElementHandle.js';

@@ -159,3 +159,3 @@

export {
export type {
/**

@@ -162,0 +162,0 @@ * @deprecated Use {@link LocatorEvents}.

@@ -22,3 +22,3 @@ /**

} from '../../../third_party/rxjs/rxjs.js';
import {type Awaitable, type HandleFor} from '../../common/types.js';
import type {Awaitable, HandleFor} from '../../common/types.js';

@@ -25,0 +25,0 @@ import {

@@ -29,5 +29,5 @@ /**

} from '../../../third_party/rxjs/rxjs.js';
import {type HandleFor, type NodeFor} from '../../common/types.js';
import {type Frame} from '../Frame.js';
import {type Page} from '../Page.js';
import type {HandleFor, NodeFor} from '../../common/types.js';
import type {Frame} from '../Frame.js';
import type {Page} from '../Page.js';

@@ -34,0 +34,0 @@ import {type ActionOptions, Locator, RETRY_DELAY} from './locators.js';

@@ -18,3 +18,3 @@ /**

import {type Observable, race} from '../../../third_party/rxjs/rxjs.js';
import {type HandleFor} from '../../common/types.js';
import type {HandleFor} from '../../common/types.js';

@@ -21,0 +21,0 @@ import {type ActionOptions, Locator} from './locators.js';

@@ -17,7 +17,7 @@ /**

import {type TimeoutSettings} from '../common/TimeoutSettings.js';
import {
type EvaluateFunc,
type HandleFor,
type InnerLazyParams,
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
import type {
EvaluateFunc,
HandleFor,
InnerLazyParams,
} from '../common/types.js';

@@ -27,5 +27,5 @@ import {TaskManager, WaitTask} from '../common/WaitTask.js';

import {type ElementHandle} from './ElementHandle.js';
import {type Environment} from './Environment.js';
import {type JSHandle} from './JSHandle.js';
import type {ElementHandle} from './ElementHandle.js';
import type {Environment} from './Environment.js';
import type {JSHandle} from './JSHandle.js';

@@ -32,0 +32,0 @@ /**

@@ -19,6 +19,6 @@ /**

import type {BrowserContext} from '../api/BrowserContext.js';
import {type Page} from '../api/Page.js';
import {type WebWorker} from '../cdp/WebWorker.js';
import type {Page} from '../api/Page.js';
import type {WebWorker} from '../cdp/WebWorker.js';
import {type CDPSession} from './CDPSession.js';
import type {CDPSession} from './CDPSession.js';

@@ -25,0 +25,0 @@ /**

@@ -21,6 +21,6 @@ /**

import {type CDPEvents, type CDPSession} from '../api/CDPSession.js';
import {type Connection as CdpConnection} from '../cdp/Connection.js';
import type {CDPEvents, CDPSession} from '../api/CDPSession.js';
import type {Connection as CdpConnection} from '../cdp/Connection.js';
import {TargetCloseError} from '../common/Errors.js';
import {type Handler} from '../common/EventEmitter.js';
import type {Handler} from '../common/EventEmitter.js';

@@ -27,0 +27,0 @@ import {BidiConnection} from './Connection.js';

@@ -17,3 +17,3 @@ /**

import {type ChildProcess} from 'child_process';
import type {ChildProcess} from 'child_process';

@@ -24,15 +24,16 @@ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';

Browser,
BrowserEvent,
type BrowserCloseCallback,
type BrowserContextOptions,
BrowserEvent,
} from '../api/Browser.js';
import {BrowserContextEvent} from '../api/BrowserContext.js';
import {type Page} from '../api/Page.js';
import {type Target} from '../api/Target.js';
import {type Handler} from '../common/EventEmitter.js';
import {type Viewport} from '../common/Viewport.js';
import type {Page} from '../api/Page.js';
import type {Target} from '../api/Target.js';
import type {Handler} from '../common/EventEmitter.js';
import {debugError} from '../common/util.js';
import type {Viewport} from '../common/Viewport.js';
import {BidiBrowserContext} from './BrowserContext.js';
import {BrowsingContext, BrowsingContextEvent} from './BrowsingContext.js';
import {type BidiConnection} from './Connection.js';
import type {BidiConnection} from './Connection.js';
import {

@@ -44,3 +45,2 @@ BiDiBrowserTarget,

} from './Target.js';
import {debugError} from './util.js';

@@ -47,0 +47,0 @@ /**

@@ -20,9 +20,9 @@ /**

import {BrowserContext} from '../api/BrowserContext.js';
import {type Page} from '../api/Page.js';
import {type Target} from '../api/Target.js';
import {type Viewport} from '../common/Viewport.js';
import type {Page} from '../api/Page.js';
import type {Target} from '../api/Target.js';
import type {Viewport} from '../common/Viewport.js';
import {type BidiBrowser} from './Browser.js';
import {type BidiConnection} from './Connection.js';
import {type BidiPage} from './Page.js';
import type {BidiBrowser} from './Browser.js';
import type {BidiConnection} from './Connection.js';
import type {BidiPage} from './Page.js';

@@ -29,0 +29,0 @@ /**

@@ -5,12 +5,12 @@ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';

import {CDPSession} from '../api/CDPSession.js';
import {type Connection as CdpConnection} from '../cdp/Connection.js';
import {type PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
import type {Connection as CdpConnection} from '../cdp/Connection.js';
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
import {TargetCloseError} from '../common/Errors.js';
import {type EventType} from '../common/EventEmitter.js';
import type {EventType} from '../common/EventEmitter.js';
import {debugError} from '../common/util.js';
import {assert} from '../util/assert.js';
import {Deferred} from '../util/Deferred.js';
import {type BidiConnection} from './Connection.js';
import type {BidiConnection} from './Connection.js';
import {BidiRealm} from './Realm.js';
import {debugError} from './util.js';

@@ -17,0 +17,0 @@ /**

@@ -21,3 +21,3 @@ /**

import {type ConnectionTransport} from '../common/ConnectionTransport.js';
import type {ConnectionTransport} from '../common/ConnectionTransport.js';

@@ -24,0 +24,0 @@ import {BidiConnection} from './Connection.js';

@@ -20,8 +20,8 @@ /**

import {CallbackRegistry} from '../cdp/Connection.js';
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
import {debug} from '../common/Debug.js';
import {EventEmitter} from '../common/EventEmitter.js';
import {debugError} from '../common/util.js';
import {type BrowsingContext, cdpSessions} from './BrowsingContext.js';
import {debugError} from './util.js';

@@ -28,0 +28,0 @@ const debugProtocolSend = debug('puppeteer:webDriverBiDi:SEND ►');

@@ -21,3 +21,3 @@ /**

import {type BrowsingContext} from './BrowsingContext.js';
import type {BrowsingContext} from './BrowsingContext.js';

@@ -24,0 +24,0 @@ /**

@@ -22,6 +22,6 @@ /**

import {type BidiFrame} from './Frame.js';
import type {BidiFrame} from './Frame.js';
import {BidiJSHandle} from './JSHandle.js';
import {type BidiRealm} from './Realm.js';
import {type Sandbox} from './Sandbox.js';
import type {BidiRealm} from './Realm.js';
import type {Sandbox} from './Sandbox.js';

@@ -28,0 +28,0 @@ /**

@@ -18,3 +18,3 @@ /**

import {type BrowsingContext} from './BrowsingContext.js';
import type {BrowsingContext} from './BrowsingContext.js';

@@ -21,0 +21,0 @@ /**

@@ -19,3 +19,4 @@ /**

import {type Awaitable, type FlattenHandle} from '../common/types.js';
import type {Awaitable, FlattenHandle} from '../common/types.js';
import {debugError} from '../common/util.js';
import {assert} from '../util/assert.js';

@@ -25,6 +26,5 @@ import {Deferred} from '../util/Deferred.js';

import {type BidiConnection} from './Connection.js';
import {type BidiFrame} from './Frame.js';
import type {BidiConnection} from './Connection.js';
import type {BidiFrame} from './Frame.js';
import {BidiSerializer} from './Serializer.js';
import {debugError} from './util.js';

@@ -31,0 +31,0 @@ type SendArgsChannel<Args> = (value: [id: number, args: Args]) => void;

@@ -19,4 +19,13 @@ /**

import {type CDPSession} from '../api/CDPSession.js';
import {
type Observable,
firstValueFrom,
from,
fromEvent,
merge,
raceWith,
switchMap,
} from '../../third_party/rxjs/rxjs.js';
import type {CDPSession} from '../api/CDPSession.js';
import {
Frame,

@@ -27,12 +36,12 @@ type GoToOptions,

} from '../api/Frame.js';
import {type PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
import {ProtocolError, TimeoutError} from '../common/Errors.js';
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
import {type Awaitable} from '../common/types.js';
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
import type {Awaitable} from '../common/types.js';
import {
UTILITY_WORLD_NAME,
setPageContent,
waitForEvent,
waitWithTimeout,
} from '../common/util.js';
import {timeout} from '../common/util.js';
import {Deferred} from '../util/Deferred.js';

@@ -47,4 +56,4 @@ import {disposeSymbol} from '../util/disposable.js';

import {ExposeableFunction} from './ExposedFunction.js';
import {type BidiHTTPResponse} from './HTTPResponse.js';
import {type BidiPage} from './Page.js';
import type {BidiHTTPResponse} from './HTTPResponse.js';
import type {BidiPage} from './Page.js';
import {

@@ -76,3 +85,3 @@ MAIN_SANDBOX,

#timeoutSettings: TimeoutSettings;
#abortDeferred = Deferred.create<Error>();
#abortDeferred = Deferred.create<never>();
#disposed = false;

@@ -208,3 +217,3 @@ sandboxes: SandboxChart;

waitUntil = 'load',
timeout = this.#timeoutSettings.navigationTimeout(),
timeout: ms = this.#timeoutSettings.navigationTimeout(),
} = options;

@@ -216,37 +225,21 @@

const [info] = await Deferred.race([
// TODO(lightning00blade): Should also keep tack of
// navigationAborted and navigationFailed
Promise.all([
waitForEvent<Bidi.BrowsingContext.NavigationInfo>(
const info = await firstValueFrom(
merge(
fromEvent(
this.#context,
waitUntilEvent,
() => {
return true;
},
timeout,
this.#abortDeferred.valueOrThrow()
Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted
).pipe(
switchMap(() => {
return fromEvent(
this.#context,
waitUntilEvent
) as Observable<Bidi.BrowsingContext.NavigationInfo>;
})
),
waitForEvent(
fromEvent(
this.#context,
Bidi.ChromiumBidi.BrowsingContext.EventNames.NavigationStarted,
() => {
return true;
},
timeout,
this.#abortDeferred.valueOrThrow()
),
]),
waitForEvent<Bidi.BrowsingContext.NavigationInfo>(
this.#context,
Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated,
() => {
return true;
},
timeout,
this.#abortDeferred.valueOrThrow()
).then(info => {
return [info, undefined];
}),
]);
Bidi.ChromiumBidi.BrowsingContext.EventNames.FragmentNavigated
) as Observable<Bidi.BrowsingContext.NavigationInfo>
).pipe(raceWith(timeout(ms), from(this.#abortDeferred.valueOrThrow())))
);

@@ -253,0 +246,0 @@ return this.#page.getNavigationResponse(info.navigation);

@@ -18,6 +18,6 @@ /**

import {type Frame} from '../api/Frame.js';
import type {Frame} from '../api/Frame.js';
import {HTTPRequest, type ResourceType} from '../api/HTTPRequest.js';
import {type BidiHTTPResponse} from './HTTPResponse.js';
import type {BidiHTTPResponse} from './HTTPResponse.js';

@@ -24,0 +24,0 @@ /**

@@ -19,3 +19,3 @@ /**

import {type Frame} from '../api/Frame.js';
import type {Frame} from '../api/Frame.js';
import {

@@ -26,3 +26,3 @@ HTTPResponse as HTTPResponse,

import {type BidiHTTPRequest} from './HTTPRequest.js';
import type {BidiHTTPRequest} from './HTTPRequest.js';

@@ -29,0 +29,0 @@ /**

@@ -19,3 +19,3 @@ /**

import {type Point} from '../api/ElementHandle.js';
import type {Point} from '../api/ElementHandle.js';
import {

@@ -34,6 +34,6 @@ Keyboard,

} from '../api/Input.js';
import {type KeyInput} from '../common/USKeyboardLayout.js';
import type {KeyInput} from '../common/USKeyboardLayout.js';
import {type BrowsingContext} from './BrowsingContext.js';
import {type BidiPage} from './Page.js';
import type {BrowsingContext} from './BrowsingContext.js';
import type {BidiPage} from './Page.js';

@@ -40,0 +40,0 @@ const enum InputId {

@@ -19,7 +19,7 @@ /**

import {type ElementHandle} from '../api/ElementHandle.js';
import type {ElementHandle} from '../api/ElementHandle.js';
import {JSHandle} from '../api/JSHandle.js';
import {type BidiRealm} from './Realm.js';
import {type Sandbox} from './Sandbox.js';
import type {BidiRealm} from './Realm.js';
import type {Sandbox} from './Sandbox.js';
import {BidiSerializer} from './Serializer.js';

@@ -26,0 +26,0 @@ import {releaseReference} from './util.js';

@@ -27,7 +27,7 @@ /**

import {type BidiConnection} from './Connection.js';
import {type BidiFrame} from './Frame.js';
import type {BidiConnection} from './Connection.js';
import type {BidiFrame} from './Frame.js';
import {BidiHTTPRequest} from './HTTPRequest.js';
import {BidiHTTPResponse} from './HTTPResponse.js';
import {type BidiPage} from './Page.js';
import type {BidiPage} from './Page.js';

@@ -34,0 +34,0 @@ /**

@@ -22,4 +22,4 @@ /**

import {type CDPSession} from '../api/CDPSession.js';
import {type WaitForOptions} from '../api/Frame.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {WaitForOptions} from '../api/Frame.js';
import {

@@ -48,6 +48,6 @@ Page,

} from '../common/Errors.js';
import {type Handler} from '../common/EventEmitter.js';
import {type PDFOptions} from '../common/PDFOptions.js';
import type {Handler} from '../common/EventEmitter.js';
import type {PDFOptions} from '../common/PDFOptions.js';
import {TimeoutSettings} from '../common/TimeoutSettings.js';
import {type Awaitable} from '../common/types.js';
import type {Awaitable} from '../common/types.js';
import {

@@ -61,3 +61,3 @@ debugError,

} from '../common/util.js';
import {type Viewport} from '../common/Viewport.js';
import type {Viewport} from '../common/Viewport.js';
import {assert} from '../util/assert.js';

@@ -67,4 +67,4 @@ import {Deferred} from '../util/Deferred.js';

import {type BidiBrowser} from './Browser.js';
import {type BidiBrowserContext} from './BrowserContext.js';
import type {BidiBrowser} from './Browser.js';
import type {BidiBrowserContext} from './BrowserContext.js';
import {

@@ -76,3 +76,3 @@ BrowsingContextEvent,

} from './BrowsingContext.js';
import {type BidiConnection} from './Connection.js';
import type {BidiConnection} from './Connection.js';
import {BidiDialog} from './Dialog.js';

@@ -82,6 +82,6 @@ import {BidiElementHandle} from './ElementHandle.js';

import {BidiFrame, lifeCycleToReadinessState} from './Frame.js';
import {type BidiHTTPRequest} from './HTTPRequest.js';
import {type BidiHTTPResponse} from './HTTPResponse.js';
import type {BidiHTTPRequest} from './HTTPRequest.js';
import type {BidiHTTPResponse} from './HTTPResponse.js';
import {BidiKeyboard, BidiMouse, BidiTouchscreen} from './Input.js';
import {type BidiJSHandle} from './JSHandle.js';
import type {BidiJSHandle} from './JSHandle.js';
import {BidiNetworkManager} from './NetworkManager.js';

@@ -88,0 +88,0 @@ import {createBidiHandle} from './Realm.js';

@@ -5,3 +5,3 @@ import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';

import {scriptInjector} from '../common/ScriptInjector.js';
import {type EvaluateFunc, type HandleFor} from '../common/types.js';
import type {EvaluateFunc, HandleFor} from '../common/types.js';
import {

@@ -18,6 +18,6 @@ PuppeteerURL,

import {type BidiConnection} from './Connection.js';
import type {BidiConnection} from './Connection.js';
import {BidiElementHandle} from './ElementHandle.js';
import {BidiJSHandle} from './JSHandle.js';
import {type Sandbox} from './Sandbox.js';
import type {Sandbox} from './Sandbox.js';
import {BidiSerializer} from './Serializer.js';

@@ -24,0 +24,0 @@ import {createEvaluationError} from './util.js';

@@ -17,12 +17,12 @@ /**

import {type JSHandle} from '../api/JSHandle.js';
import type {JSHandle} from '../api/JSHandle.js';
import {Realm} from '../api/Realm.js';
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
import {type EvaluateFunc, type HandleFor} from '../common/types.js';
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
import type {EvaluateFunc, HandleFor} from '../common/types.js';
import {withSourcePuppeteerURLIfNone} from '../common/util.js';
import {type BrowsingContext} from './BrowsingContext.js';
import type {BrowsingContext} from './BrowsingContext.js';
import {BidiElementHandle} from './ElementHandle.js';
import {type BidiFrame} from './Frame.js';
import {type BidiRealm as BidiRealm} from './Realm.js';
import type {BidiFrame} from './Frame.js';
import type {BidiRealm as BidiRealm} from './Realm.js';
/**

@@ -29,0 +29,0 @@ * A unique key for {@link SandboxChart} to denote the default world.

@@ -24,3 +24,3 @@ /**

import {BidiJSHandle} from './JSHandle.js';
import {type Sandbox} from './Sandbox.js';
import type {Sandbox} from './Sandbox.js';

@@ -27,0 +27,0 @@ /**

@@ -17,7 +17,7 @@ /**

import {type CDPSession} from '../api/CDPSession.js';
import type {CDPSession} from '../api/CDPSession.js';
import {Target, TargetType} from '../api/Target.js';
import {type BidiBrowser} from './Browser.js';
import {type BidiBrowserContext} from './BrowserContext.js';
import type {BidiBrowser} from './Browser.js';
import type {BidiBrowserContext} from './BrowserContext.js';
import {type BrowsingContext, CdpSessionWrapper} from './BrowsingContext.js';

@@ -24,0 +24,0 @@ import {BidiPage} from './Page.js';

@@ -19,6 +19,5 @@ /**

import {debug} from '../common/Debug.js';
import {PuppeteerURL} from '../common/util.js';
import {PuppeteerURL, debugError} from '../common/util.js';
import {type BidiRealm} from './Realm.js';
import type {BidiRealm} from './Realm.js';
import {BidiSerializer} from './Serializer.js';

@@ -29,7 +28,2 @@

*/
export const debugError = debug('puppeteer:error');
/**
* @internal
*/
export async function releaseReference(

@@ -36,0 +30,0 @@ client: BidiRealm,

@@ -17,6 +17,6 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import {type ElementHandle} from '../api/ElementHandle.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {ElementHandle} from '../api/ElementHandle.js';

@@ -23,0 +23,0 @@ /**

@@ -17,8 +17,8 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import {type ElementHandle} from '../api/ElementHandle.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {ElementHandle} from '../api/ElementHandle.js';
import {QueryHandler, type QuerySelector} from '../common/QueryHandler.js';
import {type AwaitableIterable} from '../common/types.js';
import type {AwaitableIterable} from '../common/types.js';
import {assert} from '../util/assert.js';

@@ -25,0 +25,0 @@ import {AsyncIterableUtil} from '../util/AsyncIterableUtil.js';

@@ -6,3 +6,3 @@ import {JSHandle} from '../api/JSHandle.js';

import {type ExecutionContext} from './ExecutionContext.js';
import type {ExecutionContext} from './ExecutionContext.js';

@@ -9,0 +9,0 @@ /**

@@ -17,5 +17,5 @@ /**

import {type ChildProcess} from 'child_process';
import type {ChildProcess} from 'child_process';
import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';

@@ -34,5 +34,5 @@ import {

import {CDPSessionEvent, type CDPSession} from '../api/CDPSession.js';
import {type Page} from '../api/Page.js';
import {type Target} from '../api/Target.js';
import {type Viewport} from '../common/Viewport.js';
import type {Page} from '../api/Page.js';
import type {Target} from '../api/Target.js';
import type {Viewport} from '../common/Viewport.js';
import {USE_TAB_TARGET} from '../environment.js';

@@ -42,3 +42,3 @@ import {assert} from '../util/assert.js';

import {ChromeTargetManager} from './ChromeTargetManager.js';
import {type Connection} from './Connection.js';
import type {Connection} from './Connection.js';
import {FirefoxTargetManager} from './FirefoxTargetManager.js';

@@ -45,0 +45,0 @@ import {

@@ -17,10 +17,10 @@ /**

import {
type IsPageTargetCallback,
type TargetFilterCallback,
import type {
IsPageTargetCallback,
TargetFilterCallback,
} from '../api/Browser.js';
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
import {getFetch} from '../common/fetch.js';
import {debugError} from '../common/util.js';
import {type Viewport} from '../common/Viewport.js';
import type {Viewport} from '../common/Viewport.js';
import {isNode} from '../environment.js';

@@ -27,0 +27,0 @@ import {assert} from '../util/assert.js';

@@ -1,2 +0,2 @@

import {type ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
import type {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';

@@ -16,3 +16,3 @@ import {

} from './Connection.js';
import {type CdpTarget} from './Target.js';
import type {CdpTarget} from './Target.js';

@@ -19,0 +19,0 @@ /**

@@ -17,5 +17,5 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type TargetFilterCallback} from '../api/Browser.js';
import type {TargetFilterCallback} from '../api/Browser.js';
import {CDPSession, CDPSessionEvent} from '../api/CDPSession.js';

@@ -28,4 +28,4 @@ import {TargetType} from '../api/Target.js';

import {type CdpCDPSession} from './CDPSession.js';
import {type Connection} from './Connection.js';
import type {CdpCDPSession} from './CDPSession.js';
import type {Connection} from './Connection.js';
import {CdpTarget, InitializationStatus} from './Target.js';

@@ -32,0 +32,0 @@ import {

@@ -17,11 +17,11 @@ /**

import {type Protocol} from 'devtools-protocol';
import {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
import type {Protocol} from 'devtools-protocol';
import type {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
import {
CDPSessionEvent,
type CDPSession,
CDPSessionEvent,
type CDPSessionEvents,
} from '../api/CDPSession.js';
import {ConnectionTransport} from '../common/ConnectionTransport.js';
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
import {debug} from '../common/Debug.js';

@@ -41,3 +41,3 @@ import {ProtocolError, TargetCloseError} from '../common/Errors.js';

*/
export {ConnectionTransport, ProtocolMapping};
export type {ConnectionTransport, ProtocolMapping};

@@ -44,0 +44,0 @@ /**

@@ -17,5 +17,5 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import type {CDPSession} from '../api/CDPSession.js';
import {EventSubscription} from '../common/EventEmitter.js';

@@ -22,0 +22,0 @@ import {debugError, PuppeteerURL} from '../common/util.js';

@@ -21,3 +21,3 @@ /**

import {type CDPSessionEvents} from '../api/CDPSession.js';
import type {CDPSessionEvents} from '../api/CDPSession.js';
import {TimeoutError} from '../common/Errors.js';

@@ -24,0 +24,0 @@ import {EventEmitter} from '../common/EventEmitter.js';

@@ -19,5 +19,5 @@ /**

import {type CDPSession} from '../api/CDPSession.js';
import {type WaitTimeoutOptions} from '../api/Page.js';
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {WaitTimeoutOptions} from '../api/Page.js';
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
import {assert} from '../util/assert.js';

@@ -24,0 +24,0 @@ import {Deferred} from '../util/Deferred.js';

@@ -17,5 +17,5 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import type {CDPSession} from '../api/CDPSession.js';
import {Dialog} from '../api/Dialog.js';

@@ -22,0 +22,0 @@

@@ -17,5 +17,7 @@ /**

import {type Protocol} from 'devtools-protocol';
import type Path from 'path';
import {type CDPSession} from '../api/CDPSession.js';
import type {Protocol} from 'devtools-protocol';
import type {CDPSession} from '../api/CDPSession.js';
import {ElementHandle, type AutofillData} from '../api/ElementHandle.js';

@@ -26,5 +28,5 @@ import {debugError} from '../common/util.js';

import {type CdpFrame} from './Frame.js';
import {type FrameManager} from './FrameManager.js';
import {type IsolatedWorld} from './IsolatedWorld.js';
import type {CdpFrame} from './Frame.js';
import type {FrameManager} from './FrameManager.js';
import type {IsolatedWorld} from './IsolatedWorld.js';
import {CdpJSHandle} from './JSHandle.js';

@@ -118,3 +120,3 @@

// Locate all files and confirm that they exist.
let path: typeof import('path');
let path: typeof Path;
try {

@@ -121,0 +123,0 @@ path = await import('path');

@@ -16,8 +16,8 @@ /**

*/
import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
import {type GeolocationOptions, type MediaFeature} from '../api/Page.js';
import type {GeolocationOptions, MediaFeature} from '../api/Page.js';
import {debugError} from '../common/util.js';
import {type Viewport} from '../common/Viewport.js';
import type {Viewport} from '../common/Viewport.js';
import {assert} from '../util/assert.js';

@@ -24,0 +24,0 @@ import {invokeAtMostOnceForArguments} from '../util/decorators.js';

@@ -17,10 +17,10 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {ElementHandle} from '../api/ElementHandle.js';
import {type JSHandle} from '../api/JSHandle.js';
import type {JSHandle} from '../api/JSHandle.js';
import {LazyArg} from '../common/LazyArg.js';
import {scriptInjector} from '../common/ScriptInjector.js';
import {type EvaluateFunc, type HandleFor} from '../common/types.js';
import type {EvaluateFunc, HandleFor} from '../common/types.js';
import {

@@ -43,3 +43,3 @@ PuppeteerURL,

import {CdpElementHandle} from './ElementHandle.js';
import {type IsolatedWorld} from './IsolatedWorld.js';
import type {IsolatedWorld} from './IsolatedWorld.js';
import {CdpJSHandle} from './JSHandle.js';

@@ -46,0 +46,0 @@

@@ -17,5 +17,5 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type TargetFilterCallback} from '../api/Browser.js';
import type {TargetFilterCallback} from '../api/Browser.js';
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';

@@ -26,4 +26,4 @@ import {EventEmitter} from '../common/EventEmitter.js';

import {type Connection} from './Connection.js';
import {type CdpTarget} from './Target.js';
import type {Connection} from './Connection.js';
import type {CdpTarget} from './Target.js';
import {

@@ -30,0 +30,0 @@ type TargetFactory,

@@ -17,8 +17,8 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import type {CDPSession} from '../api/CDPSession.js';
import {Frame, FrameEvent, throwIfDetached} from '../api/Frame.js';
import {type HTTPResponse} from '../api/HTTPResponse.js';
import {type Page, type WaitTimeoutOptions} from '../api/Page.js';
import type {HTTPResponse} from '../api/HTTPResponse.js';
import type {Page, WaitTimeoutOptions} from '../api/Page.js';
import {setPageContent} from '../common/util.js';

@@ -30,7 +30,7 @@ import {assert} from '../util/assert.js';

import {
type DeviceRequestPrompt,
type DeviceRequestPromptManager,
import type {
DeviceRequestPrompt,
DeviceRequestPromptManager,
} from './DeviceRequestPrompt.js';
import {type FrameManager} from './FrameManager.js';
import type {FrameManager} from './FrameManager.js';
import {IsolatedWorld} from './IsolatedWorld.js';

@@ -37,0 +37,0 @@ import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';

@@ -17,9 +17,9 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
import {FrameEvent} from '../api/Frame.js';
import {type Page} from '../api/Page.js';
import type {Page} from '../api/Page.js';
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
import {debugError, PuppeteerURL, UTILITY_WORLD_NAME} from '../common/util.js';

@@ -37,6 +37,6 @@ import {assert} from '../util/assert.js';

import {FrameTree} from './FrameTree.js';
import {type IsolatedWorld} from './IsolatedWorld.js';
import type {IsolatedWorld} from './IsolatedWorld.js';
import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
import {NetworkManager} from './NetworkManager.js';
import {type CdpTarget} from './Target.js';
import type {CdpTarget} from './Target.js';

@@ -43,0 +43,0 @@ /**

@@ -17,3 +17,3 @@ /**

import {type Frame} from '../api/Frame.js';
import type {Frame} from '../api/Frame.js';
import {Deferred} from '../util/Deferred.js';

@@ -20,0 +20,0 @@

@@ -16,6 +16,6 @@ /**

*/
import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import {type Frame} from '../api/Frame.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {Frame} from '../api/Frame.js';
import {

@@ -32,4 +32,4 @@ type ContinueRequestOverrides,

} from '../api/HTTPRequest.js';
import {type HTTPResponse} from '../api/HTTPResponse.js';
import {type ProtocolError} from '../common/Errors.js';
import type {HTTPResponse} from '../api/HTTPResponse.js';
import type {ProtocolError} from '../common/Errors.js';
import {debugError, isString} from '../common/util.js';

@@ -36,0 +36,0 @@ import {assert} from '../util/assert.js';

@@ -16,6 +16,6 @@ /**

*/
import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import {type Frame} from '../api/Frame.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {Frame} from '../api/Frame.js';
import {HTTPResponse, type RemoteAddress} from '../api/HTTPResponse.js';

@@ -26,3 +26,3 @@ import {ProtocolError} from '../common/Errors.js';

import {type CdpHTTPRequest} from './HTTPRequest.js';
import type {CdpHTTPRequest} from './HTTPRequest.js';

@@ -29,0 +29,0 @@ /**

@@ -17,6 +17,6 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import {type Point} from '../api/ElementHandle.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {Point} from '../api/ElementHandle.js';
import {

@@ -23,0 +23,0 @@ Keyboard,

@@ -17,14 +17,10 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import {type JSHandle} from '../api/JSHandle.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {JSHandle} from '../api/JSHandle.js';
import {Realm} from '../api/Realm.js';
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
import type {BindingPayload, EvaluateFunc, HandleFor} from '../common/types.js';
import {
type BindingPayload,
type EvaluateFunc,
type HandleFor,
} from '../common/types.js';
import {
addPageBinding,

@@ -38,7 +34,7 @@ debugError,

import {type Binding} from './Binding.js';
import type {Binding} from './Binding.js';
import {type ExecutionContext, createCdpHandle} from './ExecutionContext.js';
import {CdpFrame} from './Frame.js';
import {type MAIN_WORLD, type PUPPETEER_WORLD} from './IsolatedWorlds.js';
import {type WebWorker} from './WebWorker.js';
import type {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
import type {WebWorker} from './WebWorker.js';

@@ -45,0 +41,0 @@ /**

@@ -17,5 +17,5 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import type {CDPSession} from '../api/CDPSession.js';
import {JSHandle} from '../api/JSHandle.js';

@@ -26,3 +26,3 @@ import {valueFromRemoteObject} from '../common/util.js';

import {releaseObject} from './ExecutionContext.js';
import {type IsolatedWorld} from './IsolatedWorld.js';
import type {IsolatedWorld} from './IsolatedWorld.js';

@@ -29,0 +29,0 @@ /**

@@ -20,4 +20,4 @@ /**

import {type Frame, FrameEvent} from '../api/Frame.js';
import {type HTTPResponse} from '../api/HTTPResponse.js';
import {type TimeoutError} from '../common/Errors.js';
import type {HTTPResponse} from '../api/HTTPResponse.js';
import type {TimeoutError} from '../common/Errors.js';
import {EventSubscription} from '../common/EventEmitter.js';

@@ -28,5 +28,5 @@ import {assert} from '../util/assert.js';

import {type CdpFrame} from './Frame.js';
import type {CdpFrame} from './Frame.js';
import {FrameManagerEvent} from './FrameManager.js';
import {type CdpHTTPRequest} from './HTTPRequest.js';
import type {CdpHTTPRequest} from './HTTPRequest.js';
import {type NetworkManager, NetworkManagerEvent} from './NetworkManager.js';

@@ -33,0 +33,0 @@

@@ -17,5 +17,5 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CdpHTTPRequest} from './HTTPRequest.js';
import type {CdpHTTPRequest} from './HTTPRequest.js';

@@ -22,0 +22,0 @@ /**

@@ -21,8 +21,8 @@ /**

import {type CDPSessionEvents} from '../api/CDPSession.js';
import {type HTTPRequest} from '../api/HTTPRequest.js';
import {type HTTPResponse} from '../api/HTTPResponse.js';
import type {CDPSessionEvents} from '../api/CDPSession.js';
import type {HTTPRequest} from '../api/HTTPRequest.js';
import type {HTTPResponse} from '../api/HTTPResponse.js';
import {EventEmitter} from '../common/EventEmitter.js';
import {type CdpFrame} from './Frame.js';
import type {CdpFrame} from './Frame.js';
import {NetworkManager, NetworkManagerEvent} from './NetworkManager.js';

@@ -29,0 +29,0 @@

@@ -19,12 +19,12 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type Browser} from '../api/Browser.js';
import type {Browser} from '../api/Browser.js';
import type {BrowserContext} from '../api/BrowserContext.js';
import {CDPSessionEvent, type CDPSession} from '../api/CDPSession.js';
import {type ElementHandle} from '../api/ElementHandle.js';
import {type Frame, type WaitForOptions} from '../api/Frame.js';
import {type HTTPRequest} from '../api/HTTPRequest.js';
import {type HTTPResponse} from '../api/HTTPResponse.js';
import {type JSHandle} from '../api/JSHandle.js';
import type {ElementHandle} from '../api/ElementHandle.js';
import type {Frame, WaitForOptions} from '../api/Frame.js';
import type {HTTPRequest} from '../api/HTTPRequest.js';
import type {HTTPResponse} from '../api/HTTPResponse.js';
import type {JSHandle} from '../api/JSHandle.js';
import {

@@ -47,5 +47,5 @@ Page,

import {FileChooser} from '../common/FileChooser.js';
import {type PDFOptions} from '../common/PDFOptions.js';
import type {PDFOptions} from '../common/PDFOptions.js';
import {TimeoutSettings} from '../common/TimeoutSettings.js';
import {type BindingPayload, type HandleFor} from '../common/types.js';
import type {BindingPayload, HandleFor} from '../common/types.js';
import {

@@ -64,3 +64,3 @@ createClientError,

} from '../common/util.js';
import {type Viewport} from '../common/Viewport.js';
import type {Viewport} from '../common/Viewport.js';
import {assert} from '../util/assert.js';

@@ -76,3 +76,3 @@ import {Deferred} from '../util/Deferred.js';

import {Coverage} from './Coverage.js';
import {type DeviceRequestPrompt} from './DeviceRequestPrompt.js';
import type {DeviceRequestPrompt} from './DeviceRequestPrompt.js';
import {CdpDialog} from './Dialog.js';

@@ -82,3 +82,3 @@ import {EmulationManager} from './EmulationManager.js';

import {FirefoxTargetManager} from './FirefoxTargetManager.js';
import {type CdpFrame} from './Frame.js';
import type {CdpFrame} from './Frame.js';
import {FrameManager, FrameManagerEvent} from './FrameManager.js';

@@ -92,3 +92,3 @@ import {CdpKeyboard, CdpMouse, CdpTouchscreen} from './Input.js';

} from './NetworkManager.js';
import {type CdpTarget} from './Target.js';
import type {CdpTarget} from './Target.js';
import {TargetManagerEvent} from './TargetManager.js';

@@ -95,0 +95,0 @@ import {Tracing} from './Tracing.js';

@@ -17,3 +17,3 @@ /**

import {type NetworkConditions} from './NetworkManager.js';
import type {NetworkConditions} from './NetworkManager.js';

@@ -20,0 +20,0 @@ /**

@@ -17,4 +17,4 @@ /**

import {type Browser} from '../api/Browser.js';
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
import type {Browser} from '../api/Browser.js';
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
import {

@@ -21,0 +21,0 @@ type CustomQueryHandler,

@@ -17,11 +17,11 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import type {Browser} from '../api/Browser.js';
import type {BrowserContext} from '../api/BrowserContext.js';
import {type CDPSession} from '../api/CDPSession.js';
import type {CDPSession} from '../api/CDPSession.js';
import {PageEvent, type Page} from '../api/Page.js';
import {Target, TargetType} from '../api/Target.js';
import {debugError} from '../common/util.js';
import {type Viewport} from '../common/Viewport.js';
import type {Viewport} from '../common/Viewport.js';
import {Deferred} from '../util/Deferred.js';

@@ -31,3 +31,3 @@

import {CdpPage} from './Page.js';
import {type TargetManager} from './TargetManager.js';
import type {TargetManager} from './TargetManager.js';
import {WebWorker} from './WebWorker.js';

@@ -34,0 +34,0 @@

@@ -17,8 +17,8 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import {type EventEmitter, type EventType} from '../common/EventEmitter.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {EventEmitter, EventType} from '../common/EventEmitter.js';
import {type CdpTarget} from './Target.js';
import type {CdpTarget} from './Target.js';

@@ -25,0 +25,0 @@ /**

@@ -16,3 +16,3 @@ /**

*/
import {type CDPSession} from '../api/CDPSession.js';
import type {CDPSession} from '../api/CDPSession.js';
import {

@@ -19,0 +19,0 @@ getReadableAsBuffer,

@@ -16,10 +16,10 @@ /**

*/
import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type CDPSession} from '../api/CDPSession.js';
import {type Realm} from '../api/Realm.js';
import {type ConsoleMessageType} from '../common/ConsoleMessage.js';
import type {CDPSession} from '../api/CDPSession.js';
import type {Realm} from '../api/Realm.js';
import type {ConsoleMessageType} from '../common/ConsoleMessage.js';
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
import {TimeoutSettings} from '../common/TimeoutSettings.js';
import {type EvaluateFunc, type HandleFor} from '../common/types.js';
import type {EvaluateFunc, HandleFor} from '../common/types.js';
import {debugError, withSourcePuppeteerURLIfNone} from '../common/util.js';

@@ -26,0 +26,0 @@

@@ -16,3 +16,3 @@ /**

*/
import {type ConnectionTransport} from './ConnectionTransport.js';
import type {ConnectionTransport} from './ConnectionTransport.js';

@@ -19,0 +19,0 @@ /**

@@ -17,3 +17,3 @@ /**

import {type Product} from './Product.js';
import type {Product} from './Product.js';

@@ -20,0 +20,0 @@ /**

@@ -17,3 +17,3 @@ /**

import {type JSHandle} from '../api/JSHandle.js';
import type {JSHandle} from '../api/JSHandle.js';

@@ -20,0 +20,0 @@ /**

@@ -17,2 +17,4 @@ /**

import type Debug from 'debug';
import {isNode} from '../environment.js';

@@ -28,7 +30,7 @@

*/
let debugModule: typeof import('debug') | null = null;
let debugModule: typeof Debug | null = null;
/**
* @internal
*/
export async function importDebug(): Promise<typeof import('debug')> {
export async function importDebug(): Promise<typeof Debug> {
if (!debugModule) {

@@ -35,0 +37,0 @@ debugModule = (await import('debug')).default;

@@ -17,3 +17,3 @@ /**

import {type Viewport} from './Viewport.js';
import type {Viewport} from './Viewport.js';

@@ -20,0 +20,0 @@ /**

@@ -24,3 +24,3 @@ /**

export {
export type {
/**

@@ -27,0 +27,0 @@ * @public

@@ -17,5 +17,5 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';
import {type ElementHandle} from '../api/ElementHandle.js';
import type {ElementHandle} from '../api/ElementHandle.js';
import {assert} from '../util/assert.js';

@@ -22,0 +22,0 @@

@@ -17,6 +17,6 @@ /**

import {type JSHandle} from '../api/JSHandle.js';
import type {JSHandle} from '../api/JSHandle.js';
import {DisposableStack, disposeSymbol} from '../util/disposable.js';
import {type AwaitableIterable, type HandleFor} from './types.js';
import type {AwaitableIterable, HandleFor} from './types.js';

@@ -23,0 +23,0 @@ const DEFAULT_BATCH_SIZE = 20;

@@ -17,3 +17,3 @@ /**

import {type JSHandle} from '../api/JSHandle.js';
import type {JSHandle} from '../api/JSHandle.js';
import type PuppeteerUtil from '../injected/injected.js';

@@ -20,0 +20,0 @@

@@ -17,3 +17,3 @@ /**

import {type Protocol} from 'devtools-protocol';
import type {Protocol} from 'devtools-protocol';

@@ -20,0 +20,0 @@ /**

@@ -17,2 +17,3 @@ /**

import type FS from 'fs/promises';
import type {Readable} from 'stream';

@@ -29,3 +30,3 @@

import type {CDPSession} from '../api/CDPSession.js';
import {type Page} from '../api/Page.js';
import type {Page} from '../api/Page.js';
import {isNode} from '../environment.js';

@@ -39,3 +40,3 @@ import {assert} from '../util/assert.js';

import {EventSubscription} from './EventEmitter.js';
import {type Awaitable} from './types.js';
import type {Awaitable} from './types.js';

@@ -461,9 +462,7 @@ /**

*/
let fs: typeof import('fs/promises') | null = null;
let fs: typeof FS | null = null;
/**
* @internal
*/
export async function importFSPromises(): Promise<
typeof import('fs/promises')
> {
export async function importFSPromises(): Promise<typeof FS> {
if (!fs) {

@@ -470,0 +469,0 @@ try {

@@ -17,5 +17,5 @@ /**

import {type ElementHandle} from '../api/ElementHandle.js';
import {type JSHandle} from '../api/JSHandle.js';
import {type Realm} from '../api/Realm.js';
import type {ElementHandle} from '../api/ElementHandle.js';
import type {JSHandle} from '../api/JSHandle.js';
import type {Realm} from '../api/Realm.js';
import type {Poller} from '../injected/Poller.js';

@@ -28,3 +28,3 @@ import {Deferred} from '../util/Deferred.js';

import {LazyArg} from './LazyArg.js';
import {type HandleFor} from './types.js';
import type {HandleFor} from './types.js';

@@ -31,0 +31,0 @@ /**

@@ -8,2 +8,2 @@ /**

*/
export const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var j={};u(j,{xpathQuerySelectorAll:()=>U});var U=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*U(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...j,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
export const source = "\"use strict\";var C=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var se=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)C(t,n,{get:e[n],enumerable:!0})},ie=(t,e,n,r)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of oe(e))!se.call(t,o)&&o!==n&&C(t,o,{get:()=>e[o],enumerable:!(r=ne(e,o))||r.enumerable});return t};var le=t=>ie(C({},\"__esModule\",{value:!0}),t);var Oe={};u(Oe,{default:()=>Re});module.exports=le(Oe);var T=class extends Error{constructor(e){super(e),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}},S=class extends T{},I=class extends T{#e;#t=\"\";set code(e){this.#e=e}get code(){return this.#e}set originalMessage(e){this.#t=e}get originalMessage(){return this.#t}};var qe=Object.freeze({TimeoutError:S,ProtocolError:I});var f=class t{#e=!1;#t=!1;#n;#r=()=>{};#o=new Promise(e=>{this.#r=e});#s;constructor(e){this.#s=e&&e.timeout>0?setTimeout(()=>{this.reject(new S(e.message))},e.timeout):void 0}#i(e){clearTimeout(this.#s),this.#n=e,this.#r()}resolve(e){this.#t||this.#e||(this.#e=!0,this.#i(e))}reject(e){this.#t||this.#e||(this.#t=!0,this.#i(e))}resolved(){return this.#e}finished(){return this.#e||this.#t}value(){return this.#n}async valueOrThrow(){if(await this.#o,this.#t)throw this.#n;return this.#n}static create(e){return new t(e)}static async race(e){let n=new Set;try{let r=e.map(o=>o instanceof t?(o.#s&&n.add(o),o.valueOrThrow()):o);return await Promise.race(r)}finally{for(let r of n)r.reject(new Error(\"Timeout cleared\"))}}};var G=new Map,X=t=>{let e=G.get(t);return e||(e=new Function(`return ${t}`)(),G.set(t,e),e)};var R={};u(R,{ariaQuerySelector:()=>ae,ariaQuerySelectorAll:()=>k});var ae=(t,e)=>window.__ariaQuerySelector(t,e),k=async function*(t,e){yield*await window.__ariaQuerySelectorAll(t,e)};var q={};u(q,{customQuerySelectors:()=>M});var O=class{#e=new Map;register(e,n){if(!n.queryOne&&n.queryAll){let r=n.queryAll;n.queryOne=(o,i)=>{for(let s of r(o,i))return s;return null}}else if(n.queryOne&&!n.queryAll){let r=n.queryOne;n.queryAll=(o,i)=>{let s=r(o,i);return s?[s]:[]}}else if(!n.queryOne||!n.queryAll)throw new Error(\"At least one query method must be defined.\");this.#e.set(e,{querySelector:n.queryOne,querySelectorAll:n.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},M=new O;var D={};u(D,{pierceQuerySelector:()=>ce,pierceQuerySelectorAll:()=>ue});var ce=(t,e)=>{let n=null,r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&!n&&s.matches(e)&&(n=s)}while(!n&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n},ue=(t,e)=>{let n=[],r=o=>{let i=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&r(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==o&&s.matches(e)&&n.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),r(t),n};var m=(t,e)=>{if(!t)throw new Error(e)};var P=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=new MutationObserver(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())}),this.#n.observe(this.#t,{childList:!0,subtree:!0,attributes:!0})}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(this.#n.disconnect(),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}},E=class{#e;#t;constructor(e){this.#e=e}async start(){let e=this.#t=f.create(),n=await this.#e();if(n){e.resolve(n);return}let r=async()=>{if(e.finished())return;let o=await this.#e();if(!o){window.requestAnimationFrame(r);return}e.resolve(o),await this.stop()};window.requestAnimationFrame(r)}async stop(){m(this.#t,\"Polling never started.\"),this.#t.finished()||this.#t.reject(new Error(\"Polling stopped\"))}result(){return m(this.#t,\"Polling never started.\"),this.#t.valueOrThrow()}},x=class{#e;#t;#n;#r;constructor(e,n){this.#e=e,this.#t=n}async start(){let e=this.#r=f.create(),n=await this.#e();if(n){e.resolve(n);return}this.#n=setInterval(async()=>{let r=await this.#e();r&&(e.resolve(r),await this.stop())},this.#t)}async stop(){m(this.#r,\"Polling never started.\"),this.#r.finished()||this.#r.reject(new Error(\"Polling stopped\")),this.#n&&(clearInterval(this.#n),this.#n=void 0)}result(){return m(this.#r,\"Polling never started.\"),this.#r.valueOrThrow()}};var H={};u(H,{pQuerySelector:()=>Ie,pQuerySelectorAll:()=>re});var c=class{static async*map(e,n){for await(let r of e)yield await n(r)}static async*flatMap(e,n){for await(let r of e)yield*n(r)}static async collect(e){let n=[];for await(let r of e)n.push(r);return n}static async first(e){for await(let n of e)return n}};var p={attribute:/\\[\\s*(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)\\s*(?:(?<operator>\\W?=)\\s*(?<value>.+?)\\s*(\\s(?<caseSensitive>[iIsS]))?\\s*)?\\]/gu,id:/#(?<name>[-\\w\\P{ASCII}]+)/gu,class:/\\.(?<name>[-\\w\\P{ASCII}]+)/gu,comma:/\\s*,\\s*/g,combinator:/\\s*[\\s>+~]\\s*/g,\"pseudo-element\":/::(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,\"pseudo-class\":/:(?<name>[-\\w\\P{ASCII}]+)(?:\\((?<argument>¶*)\\))?/gu,universal:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?\\*/gu,type:/(?:(?<namespace>\\*|[-\\w\\P{ASCII}]*)\\|)?(?<name>[-\\w\\P{ASCII}]+)/gu},fe=new Set([\"combinator\",\"comma\"]);var de=t=>{switch(t){case\"pseudo-element\":case\"pseudo-class\":return new RegExp(p[t].source.replace(\"(?<argument>\\xB6*)\",\"(?<argument>.*)\"),\"gu\");default:return p[t]}};function me(t,e){let n=0,r=\"\";for(;e<t.length;e++){let o=t[e];switch(o){case\"(\":++n;break;case\")\":--n;break}if(r+=o,n===0)return r}return r}function he(t,e=p){if(!t)return[];let n=[t];for(let[o,i]of Object.entries(e))for(let s=0;s<n.length;s++){let l=n[s];if(typeof l!=\"string\")continue;i.lastIndex=0;let a=i.exec(l);if(!a)continue;let h=a.index-1,d=[],V=a[0],B=l.slice(0,h+1);B&&d.push(B),d.push({...a.groups,type:o,content:V});let z=l.slice(h+V.length+1);z&&d.push(z),n.splice(s,1,...d)}let r=0;for(let o of n)switch(typeof o){case\"string\":throw new Error(`Unexpected sequence ${o} found at index ${r}`);case\"object\":r+=o.content.length,o.pos=[r-o.content.length,r],fe.has(o.type)&&(o.content=o.content.trim()||\" \");break}return n}var pe=/(['\"])([^\\\\\\n]+?)\\1/g,ye=/\\\\./g;function K(t,e=p){if(t=t.trim(),t===\"\")return[];let n=[];t=t.replace(ye,(i,s)=>(n.push({value:i,offset:s}),\"\\uE000\".repeat(i.length))),t=t.replace(pe,(i,s,l,a)=>(n.push({value:i,offset:a}),`${s}${\"\\uE001\".repeat(l.length)}${s}`));{let i=0,s;for(;(s=t.indexOf(\"(\",i))>-1;){let l=me(t,s);n.push({value:l,offset:s}),t=`${t.substring(0,s)}(${\"\\xB6\".repeat(l.length-2)})${t.substring(s+l.length)}`,i=s+l.length}}let r=he(t,e),o=new Set;for(let i of n.reverse())for(let s of r){let{offset:l,value:a}=i;if(!(s.pos[0]<=l&&l+a.length<=s.pos[1]))continue;let{content:h}=s,d=l-s.pos[0];s.content=h.slice(0,d)+a+h.slice(d+a.length),s.content!==h&&o.add(s)}for(let i of o){let s=de(i.type);if(!s)throw new Error(`Unknown token type: ${i.type}`);s.lastIndex=0;let l=s.exec(i.content);if(!l)throw new Error(`Unable to parse content for ${i.type}: ${i.content}`);Object.assign(i,l.groups)}return r}function*N(t,e){switch(t.type){case\"list\":for(let n of t.list)yield*N(n,t);break;case\"complex\":yield*N(t.left,t),yield*N(t.right,t);break;case\"compound\":yield*t.list.map(n=>[n,t]);break;default:yield[t,e]}}function y(t){let e;return Array.isArray(t)?e=t:e=[...N(t)].map(([n])=>n),e.map(n=>n.content).join(\"\")}p.combinator=/\\s*(>>>>?|[\\s>+~])\\s*/g;var ge=/\\\\[\\s\\S]/g,we=t=>t.length<=1?t:((t[0]==='\"'||t[0]===\"'\")&&t.endsWith(t[0])&&(t=t.slice(1,-1)),t.replace(ge,e=>e[1]));function Y(t){let e=!0,n=K(t);if(n.length===0)return[[],e];let r=[],o=[r],i=[o],s=[];for(let l of n){switch(l.type){case\"combinator\":switch(l.content){case\">>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>\"),o.push(r);continue;case\">>>>\":e=!1,s.length&&(r.push(y(s)),s.splice(0)),r=[],o.push(\">>>>\"),o.push(r);continue}break;case\"pseudo-element\":if(!l.name.startsWith(\"-p-\"))break;e=!1,s.length&&(r.push(y(s)),s.splice(0)),r.push({name:l.name.slice(3),value:we(l.argument??\"\")});continue;case\"comma\":s.length&&(r.push(y(s)),s.splice(0)),r=[],o=[r],i.push(o);continue}s.push(l)}return s.length&&r.push(y(s)),[i,e]}var Q={};u(Q,{textQuerySelectorAll:()=>b});var Se=new Set([\"checkbox\",\"image\",\"radio\"]),be=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!Se.has(t.type),Te=new Set([\"SCRIPT\",\"STYLE\"]),w=t=>!Te.has(t.nodeName)&&!document.head?.contains(t),_=new WeakMap,Z=t=>{for(;t;)_.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},J=new WeakSet,Pe=new MutationObserver(t=>{for(let e of t)Z(e.target)}),g=t=>{let e=_.get(t);if(e||(e={full:\"\",immediate:[]},!w(t)))return e;let n=\"\";if(be(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener(\"input\",r=>{Z(r.target)},{once:!0,capture:!0});else{for(let r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===Node.TEXT_NODE){e.full+=r.nodeValue??\"\",n+=r.nodeValue??\"\";continue}n&&e.immediate.push(n),n=\"\",r.nodeType===Node.ELEMENT_NODE&&(e.full+=g(r).full)}n&&e.immediate.push(n),t instanceof Element&&t.shadowRoot&&(e.full+=g(t.shadowRoot).full),J.has(t)||(Pe.observe(t,{childList:!0,characterData:!0}),J.add(t))}return _.set(t,e),e};var b=function*(t,e){let n=!1;for(let r of t.childNodes)if(r instanceof Element&&w(r)){let o;r.shadowRoot?o=b(r.shadowRoot,e):o=b(r,e);for(let i of o)yield i,n=!0}n||t instanceof Element&&w(t)&&g(t).full.includes(e)&&(yield t)};var $={};u($,{checkVisibility:()=>xe,pierce:()=>A,pierceAll:()=>L});var Ee=[\"hidden\",\"collapse\"],xe=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,r=window.getComputedStyle(n),o=r&&!Ee.includes(r.visibility)&&!Ne(n);return e===o?t:!1};function Ne(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var Ae=t=>\"shadowRoot\"in t&&t.shadowRoot instanceof ShadowRoot;function*A(t){Ae(t)?yield t.shadowRoot:yield t}function*L(t){t=A(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let n of e){let r;for(;r=n.nextNode();)r.shadowRoot&&(yield r.shadowRoot,e.push(document.createTreeWalker(r.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var U={};u(U,{xpathQuerySelectorAll:()=>j});var j=function*(t,e){let r=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),o;for(;o=r.iterateNext();)yield o};var ve=/[-\\w\\P{ASCII}*]/,ee=t=>\"querySelectorAll\"in t,v=class extends Error{constructor(e,n){super(`${e} is not a valid selector: ${n}`)}},F=class{#e;#t;#n=[];#r=void 0;elements;constructor(e,n,r){this.elements=[e],this.#e=n,this.#t=r,this.#o()}async run(){if(typeof this.#r==\"string\")switch(this.#r.trimStart()){case\":scope\":this.#o();break}for(;this.#r!==void 0;this.#o()){let e=this.#r,n=this.#e;typeof e==\"string\"?e[0]&&ve.test(e[0])?this.elements=c.flatMap(this.elements,async function*(r){ee(r)&&(yield*r.querySelectorAll(e))}):this.elements=c.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!ee(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let i of r.parentElement.children)if(++o,i===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=c.flatMap(this.elements,async function*(r){switch(e.name){case\"text\":yield*b(r,e.value);break;case\"xpath\":yield*j(r,e.value);break;case\"aria\":yield*k(r,e.value);break;default:let o=M.get(e.name);if(!o)throw new v(n,`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#o(){if(this.#n.length!==0){this.#r=this.#n.shift();return}if(this.#t.length===0){this.#r=void 0;return}let e=this.#t.shift();switch(e){case\">>>>\":{this.elements=c.flatMap(this.elements,A),this.#o();break}case\">>>\":{this.elements=c.flatMap(this.elements,L),this.#o();break}default:this.#n=e,this.#o();break}}},W=class{#e=new WeakMap;calculate(e,n=[]){if(e===null)return n;e instanceof ShadowRoot&&(e=e.host);let r=this.#e.get(e);if(r)return[...r,...n];let o=0;for(let s=e.previousSibling;s;s=s.previousSibling)++o;let i=this.calculate(e.parentNode,[o]);return this.#e.set(e,i),[...i,...n]}},te=(t,e)=>{if(t.length+e.length===0)return 0;let[n=-1,...r]=t,[o=-1,...i]=e;return n===o?te(r,i):n<o?-1:1},Ce=async function*(t){let e=new Set;for await(let r of t)e.add(r);let n=new W;yield*[...e.values()].map(r=>[r,n.calculate(r)]).sort(([,r],[,o])=>te(r,o)).map(([r])=>r)},re=function(t,e){let n,r;try{[n,r]=Y(e)}catch{return t.querySelectorAll(e)}if(r)return t.querySelectorAll(e);if(n.some(o=>{let i=0;return o.some(s=>(typeof s==\"string\"?++i:i=0,i>1))}))throw new v(e,\"Multiple deep combinators found in sequence.\");return Ce(c.flatMap(n,o=>{let i=new F(t,e,o);return i.run(),i.elements}))},Ie=async function(t,e){for await(let n of re(t,e))return n;return null};var ke=Object.freeze({...R,...q,...D,...H,...Q,...$,...U,Deferred:f,createFunction:X,createTextContent:g,IntervalPoller:x,isSuitableNodeForTextMatching:w,MutationPoller:P,RAFPoller:E}),Re=ke;\n";
/**
* @internal
*/
export const packageVersion = '21.3.5';
export const packageVersion = '21.3.6';

@@ -26,3 +26,3 @@ /**

import {type Browser} from '../api/Browser.js';
import type {Browser} from '../api/Browser.js';
import {debugError} from '../common/util.js';

@@ -32,9 +32,9 @@ import {USE_TAB_TARGET} from '../environment.js';

import {
type BrowserLaunchArgumentOptions,
type ChromeReleaseChannel,
type PuppeteerNodeLaunchOptions,
import type {
BrowserLaunchArgumentOptions,
ChromeReleaseChannel,
PuppeteerNodeLaunchOptions,
} from './LaunchOptions.js';
import {ProductLauncher, type ResolvedLaunchArgs} from './ProductLauncher.js';
import {type PuppeteerNode} from './PuppeteerNode.js';
import type {PuppeteerNode} from './PuppeteerNode.js';
import {rm} from './util/fs.js';

@@ -182,3 +182,2 @@

disabledFeatures.push('Prerender2');
disabledFeatures.push('BackForwardCache');
}

@@ -185,0 +184,0 @@

@@ -33,8 +33,8 @@ /**

import {
type BrowserLaunchArgumentOptions,
type PuppeteerNodeLaunchOptions,
import type {
BrowserLaunchArgumentOptions,
PuppeteerNodeLaunchOptions,
} from './LaunchOptions.js';
import {ProductLauncher, type ResolvedLaunchArgs} from './ProductLauncher.js';
import {type PuppeteerNode} from './PuppeteerNode.js';
import type {PuppeteerNode} from './PuppeteerNode.js';
import {rm} from './util/fs.js';

@@ -41,0 +41,0 @@

@@ -17,4 +17,4 @@ /**

import {type BrowserConnectOptions} from '../cdp/BrowserConnector.js';
import {type Product} from '../common/Product.js';
import type {BrowserConnectOptions} from '../cdp/BrowserConnector.js';
import type {Product} from '../common/Product.js';

@@ -21,0 +21,0 @@ /**

@@ -18,3 +18,3 @@ /**

import {type ConnectionTransport} from '../common/ConnectionTransport.js';
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
import {packageVersion} from '../generated/version.js';

@@ -21,0 +21,0 @@

@@ -16,3 +16,3 @@ /**

*/
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
import {EventSubscription} from '../common/EventEmitter.js';

@@ -19,0 +19,0 @@ import {debugError} from '../common/util.js';

@@ -29,18 +29,18 @@ /**

import {type Browser, type BrowserCloseCallback} from '../api/Browser.js';
import type {Browser, BrowserCloseCallback} from '../api/Browser.js';
import {CdpBrowser} from '../cdp/Browser.js';
import {Connection} from '../cdp/Connection.js';
import {TimeoutError} from '../common/Errors.js';
import {type Product} from '../common/Product.js';
import type {Product} from '../common/Product.js';
import {debugError} from '../common/util.js';
import {type Viewport} from '../common/Viewport.js';
import type {Viewport} from '../common/Viewport.js';
import {
type BrowserLaunchArgumentOptions,
type ChromeReleaseChannel,
type PuppeteerNodeLaunchOptions,
import type {
BrowserLaunchArgumentOptions,
ChromeReleaseChannel,
PuppeteerNodeLaunchOptions,
} from './LaunchOptions.js';
import {NodeWebSocketTransport as WebSocketTransport} from './NodeWebSocketTransport.js';
import {PipeTransport} from './PipeTransport.js';
import {type PuppeteerNode} from './PuppeteerNode.js';
import type {PuppeteerNode} from './PuppeteerNode.js';

@@ -47,0 +47,0 @@ /**

@@ -25,4 +25,4 @@ /**

import {type Browser} from '../api/Browser.js';
import {type BrowserConnectOptions} from '../cdp/BrowserConnector.js';
import type {Browser} from '../api/Browser.js';
import type {BrowserConnectOptions} from '../cdp/BrowserConnector.js';
import {

@@ -33,4 +33,4 @@ type CommonPuppeteerSettings,

} from '../cdp/Puppeteer.js';
import {type Configuration} from '../common/Configuration.js';
import {type Product} from '../common/Product.js';
import type {Configuration} from '../common/Configuration.js';
import type {Product} from '../common/Product.js';
import {PUPPETEER_REVISIONS} from '../revisions.js';

@@ -40,8 +40,8 @@

import {FirefoxLauncher} from './FirefoxLauncher.js';
import {
type BrowserLaunchArgumentOptions,
type ChromeReleaseChannel,
type LaunchOptions,
import type {
BrowserLaunchArgumentOptions,
ChromeReleaseChannel,
LaunchOptions,
} from './LaunchOptions.js';
import {type ProductLauncher} from './ProductLauncher.js';
import type {ProductLauncher} from './ProductLauncher.js';

@@ -48,0 +48,0 @@ /**

@@ -17,3 +17,3 @@ /**

export {Protocol} from 'devtools-protocol';
export type {Protocol} from 'devtools-protocol';

@@ -20,0 +20,0 @@ export * from './api/api.js';

@@ -16,3 +16,3 @@ /**

*/
import {type AwaitableIterable} from '../common/types.js';
import type {AwaitableIterable} from '../common/types.js';

@@ -19,0 +19,0 @@ /**

@@ -17,3 +17,3 @@ /**

import {type Disposed, type Moveable} from '../common/types.js';
import type {Disposed, Moveable} from '../common/types.js';

@@ -20,0 +20,0 @@ import {asyncDisposeSymbol, disposeSymbol} from './disposable.js';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc