diff --git a/packages/docs/README.md b/packages/docs/README.md index 00e387d8..1926e6f4 100644 --- a/packages/docs/README.md +++ b/packages/docs/README.md @@ -1,54 +1,47 @@ # Contoso Real Estate: Developer Guide -> ๐Ÿšง **WORK IN PROGRESS:** -_This package is currently under active development. Contributions will be welcomed once we release the first stable version_. +> ๐Ÿšง **This is a Work in Progress:**
+_Once we commit a stable first version, this notice will be removed and package opened to contributions_. -## About This Package +## โ„น๏ธ | About This Package -This is the "documentation" package for the Contoso Real Estate reference sample. It currently has 2 components: +This is the "developer guide" documentation package for the Contoso Real Estate reference sample. It has 2 components: - - **`website/`** | this is a _static website_ that provides a developer guide for self-guided exploration of the documentation from _design_ to _deployment_ steps. For more details, read the [website/README](website/README.md). + - **`website/`** | source for the _static website_ hosting a developer guide for self-guided exploration of documentation from _design_ to _deployment_ steps. See [website/README](website/README.md) for details. - - **`training/`** | this point to _interactive workshops_ that help you explore the sample in a hands-on, step-by-step manner ex: _Learn Live_ events. For more details, read the [training/README](website/README.md). + - **`training/`** | content for _interactive workshops_ to explore sample in a hands-on, step-by-step manner ex: _Learn Live_ events. See [training/README](website/README.md). -## About: Website +## ๐Ÿš€ | Local Preview -The source can be found under `website/` and a detailed description of the setup and configuration can be found in [`website/README.md`](website/README.md). - -1. The site features an interactive developer guide documenting the developer experience from defining the problem to deploying the solution. Think of it as static documentation. -2. The site is built using [Docusaurus](https://docusaurus.io) with content authored in Markdown or MDX (JSX-flavored Markdown), allowing us to add interactive React components if needed (ex: Swagger-based API docs) -3. The site has built-in support for [Playwright](https://playwright.dev) tests to validate that content is accessible, has no broken links and has a desired workflow (valid routes). _They are not part of the E2E testing strategy for the Contoso Real Estate application (those tests are in: `packages/testing`)_. - -**๐Ÿš€ | QUICKSTART** - -The recommended use of the website is by launching a local dev server for preview as shown below, either within Codespaces on in your local development environment. +We recommend using the dev server to view the guide locally. This command will start the dev server _and_ launch browser to the correct preview URL. ```bash # Requires Node.js v18+. -# We recommend using nvm to install and manage versions +# Recommend using nvm to manage versions $ nvm use --lts Now using node v18.17.0 (npm v9.6.7) -# Switch to website folder and install dependencies +# Install dependencies $ cd website/ $ npm install -# Run the dev server -# Browser should launch automatically to the URL shown +# Run dev server (should launch browser) $ npx docusaurus start [INFO] Starting the development server... [SUCCESS] Docusaurus website is running at: http://localhost:3000/ -# ๐Ÿš€ Congratulations! You are previewing the dev guide. -# Any changes made in website/* will be reflected instantly - +# ๐Ÿš€ Congratulations! +# You should be previewing the dev guide on browser ``` -Docusaurus does provide [Deployment guidance](https://docusaurus.io/docs/deployment) if you want to deploy this to a static hosting service like Azure Static Web Apps or GitHub Pages. _If you go this route, we recommend you do this in a personal fork and setup GitHub Actions for automating build/deploy_. Here's how you build for production: +## ๐Ÿš€ | Production Build + +You can build the website for production deployment and validate that build with a local preview as well: ```bash -# Create a production-ready static build of website +# Requires Node.js v18+ +# Build the static site for production $ cd website/ $ npm install $ npm run build @@ -56,65 +49,50 @@ $ npm run build [SUCCESS] Generated static files in "build". [INFO] Use `npm run serve` command to test your build locally. -# Preview the build version locally -# If default port 3000 is in use, it will automatically pick another. -# Browser will launch automatically to the URL shown +# Preview the production build locally +# Will attempt to run this on port 3000 (default) $ npm run serve +# You will be prompted if port is unavailable +# Browser is automatically launched to the +# preview server URL as shown. [WARNING] Something is already running on port 3000. Probably: Would you like to run the app on another port instead? โ€ฆ yes [SUCCESS] Serving "build" directory at: http://localhost:3001/ ``` +The build can now be deployed to suitable hosting services. Check out the Docusaurus [Deployment](https://docusaurus.io/docs/deployment) documentation for service-specific guides. We verified this works with GitHub Pages and Azure Static Web Apps. +Since this is an open-source repo focused on an engineering sample, we are not actively hosting the developer guide ourselves. However, we encourage you to explore deployment options in your personal fork - and use GitHub Actions to automate the build/deploy workflow for convenience. +## ๐ŸŽญ | Playwright Testing - -## About the Website - -This is an interactive _developer guide_ for the Contoso Real Estate application. It provides more detailed documentation -- from application requirements and user scenarios to implentation services and developer experience -- for hands-on exploration of this open-source sample. - -Content is built using theplatform, a popular static site generation platform that supports content in both Markdown and MDX (JSX-flavored Markdown). To learn more about how this was setup, read [website/README.md](website/README.md). - -The website also has built-in that are **independent of** the test suite for the Contoso Real Estate app in `packages/testing` package. They are meant for validating website accessibility and functionality - and are not part of the end-to-end testing strategy for the reference sample itself. To learn more about the website testing focus and setup, read [website/README.TESTING.md](website/README.TESTING.md). - -### Preview The Website - -You need Node.js v18+. We recommend using `nvm` to manage your Node.js installs, and using the `lts` (long-term support) version where possible. +[Playwright](https://playwright.dev) is a reliable end-to-end testing framework for modern web apps that supports test automation and cross-browser testing along with rich tooling to make the developer e2e testing experience seamless and productive. ```bash -$ nvm use --lts -Now using node v18.17.0 (npm v9.6.7) -``` +# Get the Playwright version +$ npx playwright --version +Version 1.36.2 -Change to the `website/` folder and install dependencies. +# Get usage help for available Playwright CLI commands and options +$ npx playwright --help +Usage: npx playwright [options] [command] .... -```bash -$ cd website -$ npm install -``` +# Get usage help for a specific Playwright CLI command (ex: test) +$ npx playwright test --help +Usage: npx playwright test [options] [test-filter...] -Start the development server -```bash -$ npx docusaurus start -[INFO] Starting the development server... -[SUCCESS] Docusaurus website is running at: http://localhost:3000/ +run tests with Playwright Test +... ``` -Docusaurus runs the preview server on port `3000` by default. If that is already in use, it will ask to use an alternative port seamlessly. In either case _it should launch the preview site inyour default browser automatically_. - -> ๐Ÿš€ | Congratulations!! Your website is running! - - -### Deploy the Website +The `package/docs` workspace now has a local set of Playwright tests for the _developer guide_ website. These are intentionally kept separate from the Playwrite e2e tests suite for the _Contoso Real Estate_ sample app located in the `package/testing` workspace. -You can also choose to deploy the website to a static site hosting service **from your own fork**. +As a result, there may be minor variations in how the two test runners are configured, and the kinds of test suites that are defined. To explore how the **website** tests are setup, configured, and run, go to [website/README.TESTING](./website/README.TESTING.md). - - We verified this works with GitHub Pages and Azure Static Web Apps - and recommend using GitHub Actions for automated deploys with code changes. - - Docusaurus also has [Deployment guidance](https://docusaurus.io/docs/deployment) for other hosting options if you have a preferred provider. ## Want to help? Want to file a bug, contribute code or content, or improve the documentation and training resources? Excellent! - Read up on our guidelines for [contributing](./CONTRIBUTING.md). - Check out [open issues](https://github.com/Azure-Samples/contoso-real-estate/issues) that could use help. - - File [a new issue](). \ No newline at end of file + - File [a new issue](https://github.com/Azure-Samples/contoso-real-estate/issues/new/choose) to start a related discussion. \ No newline at end of file diff --git a/packages/docs/website/.env.example b/packages/docs/website/.env.example new file mode 100644 index 00000000..aee6163c --- /dev/null +++ b/packages/docs/website/.env.example @@ -0,0 +1,6 @@ +BASE_URL= # https://30daysof.github.io/contoso-real-estate/ +DEVSRV_URL= # http://localhost:3000 +TIMEOUT= # 30000 +TIMEOUT_EXPECT= # 5000 +PLAYWRIGHT_HTML_REPORT= #./static/playwright-report +``` \ No newline at end of file diff --git a/packages/docs/website/README.TESTING.md b/packages/docs/website/README.TESTING.md index cf147379..b8b8d240 100644 --- a/packages/docs/website/README.TESTING.md +++ b/packages/docs/website/README.TESTING.md @@ -1,164 +1,159 @@ -## Website Testing with Playwright +# Website Testing with Playwright -This website is tested using [Playwright](https://playwright.dev/), a modern framework for reliable end-to-end testing and automation of modern web apps. +## 1. Quickstart +
+ ๐Ÿ‘‰๐Ÿฝ | Want the quickest start to testing? Try this! -## 1. Playwright Setup +Make sure that you don't have anything running already on port `3000` (default dev server port for Docusaurus) first before you follow the script below. -Expand sections below for more details on initial setup. +```bash +# Change to website directory +$ cd bash -
- 1. Install Playwright +# Make sure you have Node.js v18+ and install dependencies +$ npm install -To get started with Playwright, you can pick one of two options: - - Use the [commandline](https://playwright.dev/docs/test-components#step-1-install-playwright-test-for-components-for-your-respective-framework) - - Use the [VS Code extension](https://playwright.dev/docs/getting-started-vscode). +# Run the Playwright test +$ npm run tests - We'll use the first option here for completeness, but will rely primarily on the second for all authoring, running, and debugging actions. Please [install the Playwright extension for VS Code](https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright) if you have not already done so. +# View the Playwright generated HTML test report +$ npm run report + Serving HTML report at http://localhost:9323. Press Ctrl+C to quit. -Here's how we installed Playwright: -```bash -# Use valid Node.js environment -$ nvm use --lts -Now using node v18.17.0 (npm v9.6.7) - -# Check current Playwright stable release -$ npx playwright --version -Version 1.36.2 - -# Initialize Playwright setup in website/ -# Use defaults for all questions asked during install -$ cd packages/docs/website -$ npm init playwright@latest -Need to install the following packages: - create-playwright@1.17.128 -Ok to proceed? (y) - -Getting started with writing end-to-end tests with Playwright: -Initializing project in '.' -โœ” Do you want to use TypeScript or JavaScript? ยท TypeScript -โœ” Where to put your end-to-end tests? ยท tests -โœ” Add a GitHub Actions workflow? (y/N) ยท false -โœ” Install Playwright browsers (can be done manually via 'npx playwright install')? (Y/n) ยท true -.. -.. - -Happy hacking! ๐ŸŽญ +๐ŸŽญ And you're done!!! ``` -
+ +What the Playwright command just did for you: + 1. Built the website for dev preview + 2. Start the dev server for Docusaurus (on port 3000) + 3. Launch the test runner to test against the dev server preview + 4. Print the summary of test results to console + 5. Generate an HTML report with more details on tests + 6. Launch the browser to preview the _last-generated_ report. + +
+ +## 2. Reporting
- 2. Explore Scaffold + ๐Ÿ‘‰๐Ÿฝ | Want to view the test results? Check the reports + +Before we look under the hood, let's take a quick look at what the report looks like and correlate it to what you will see in the [basic test specification](./tests/01-basic.spec.ts) used at this time. + +The landing page of the report gives you the summary: + - The number of tests run altogether (12) - with #passed, failed or skipped + - The numner of browsers tested on (3 color tags) - giving 4 tests per browser. + - The execution time for each test (likely different per browser, test case) -_What did this do? Here are the main file changes:_ +![HTML Reporting Dashboard for Playwright](./static/docs/png/playwright-report-sample.png) -1. Updated website/.gitignore to ignore the following if present - - test-results/, playwright-report/, playwright/.cache -2. Updated website/package.json and website/package-lock.json - - Added @playwright/test dependencies and version ^1.36.2 -3. Added the playwright configuration file - - See `playwright.config.ts` -4. Added playwright test specification starter & demo files - - Starter: `tests/example.spec.ts` - - Demo: `tests-examples\demo-todo-app.spec.ts` +Clicking on any test row takes you to these details: + - Time taken in setup ("Before") and teardown ("After") - by fixture! + - Time taken to execute test step - with code details for step -We'll primarily focus on the configuration file and test specifications in the `tests/` folder. - - Add `/tests-examples` to `website/.gitignore`. This lets us explore and use it for understanding initially, but not commit it to repo for long term. - - Rename `example.spec.ts` to `website.spec.ts`. This is our core test spec. +![Details on a single Playwright test](./static/docs/png/playwright-report-sample-details.png) -Let's validate that Playwright was setup correctly. We can walk through the commands recommended in the setup output: +
+ +## 3. Trace Viewing + +
+ ๐Ÿ‘‰๐Ÿฝ | Want to view more detailed traces? Try this option! + +The Playwright test runner is configured to capture deeper traces only `on-first-retry`. This is because running traces adds non-trivial costs, even though it provides more fine grained trace data for debug. + +But what if you want to debug this on the fly? Override it using CLI options: ```bash -# -- set current working directory as website/ -$ cd website/ - -# Run end-to-end tests -$ npx playwright test -Running 6 tests using 6 workers -... - -# Open last report -$ npx playwright show-report -Serving HTML report at http://localhost:9323. Press Ctrl+C to quit. - -# Starts the interactive UI mode. -# This launches a Trace Viewer like window for live test results -$ npx playwright test --ui - -# Runs the tests only on Desktop Chrome. -$ npx playwright test --project=chromium -Running 2 tests using 2 workers -... - -# Runs the tests in a specific file. -# File must be in the subtree of `testDir` folder specified in config -# Ex: the command below looks for tests/*/website.spec.ts -$ npx playwright test website -Running 6 tests using 6 workers -... - -# Runs the tests in debug mode. -# This launches headless browser with a Playwright Inspector window beside it -$ npx playwright test --debug -Running 6 tests using 1 worker -... -``` +# Run the tests with trace on +$ npx playwright test --trace on -Note that running tests will create two directories that are .gitignored. - - `test-results/` = contain artifacts generated by tests - - `playwright-report/` = contains artifacts generated by html-reporter +# Launch browser to show this report +$ npx run report +``` -Later, we'll switch to doing these actions using VS Code extensions. And we can configure the folder locations and other parameters via the CLI or config file. +What does _this_ do to the generated reports? Now the details view gets a "Traces" section with richer visualizations. Also note how the time taken for tests is now significantly higher (see before/after steps). The data (zipfile) also adds storage requirements - both of which can add up quickly if run across all test cases and specifications, on a regular cadence (CI/CD). -
+![Details on a single Playwright test with trace on](./static/docs/png/playwright-report-trace.png) +Clicking on the trace gets you to a rich _interactive_ viewer that shows you details on the time taken for each test step, along with a waterfall diagram (showing snapshots of the page at each interval of load time) - and tabs to explore the source, network conditions, call state and more. -## 2. Test Runner Configuration +![Details on a single Playwright test with trace detail](./static/docs/png/playwright-report-trace-details.png) -Expand sections for overview of test configuration options and current setup. +For convenience, a copy of this has been cached in this repo under the website assets. If you run the dev server (e.g., with `npm run start`) and visit [the /playwright-trace endpoint](http://localhost:3000/playwright-trace)] you should be able to explore this exact report interactively. -
- 1. Configure Test Runner
-## 3. Test Specification -Expand sections for overview of test specification structure and setup. +## 4. Under The Hood
- 1. Author Test Specs -
+ ๐Ÿ‘‰๐Ÿฝ | Want to understand Playwright setup and configuration? -## 4. Developer Tools +
+First, let's install Playwright. There are two options available: -Expand sections for brief introductions to developer tooling in Playwright. + - Use the [commandline (CLI)](https://playwright.dev/docs/test-components#step-1-install-playwright-test-for-components-for-your-respective-framework) + - Use the [VS Code extension](https://playwright.dev/docs/getting-started-vscode). -
- 1. Playwright Extension -
+The guidelines are self-explanatory. The CLI option is faster for initial setup but we recommend installng the VS Code Extension for _a better developer experience_ end-to-end. Once installed, you can use `npx playwright --help` to get details on usage commands and options. -
- 2. Playwright CLI -
+Next, let's understand the core files and structure of the project from the Playwright perspective. _Note that this reflects our current structure, and not the initial scaffold from Playwright_. + +```bash +website/ + .env # Local .env file used for config + .env.example # Example .env file to copy & customize + playwright.config.ts # Main Config File + playwright-report/ # Temporary: artifacts from reporter + test-results/ # Temporary: artificats from test runner + tests/ # Configured: as 'testDir' in config file + 01-basic.spec.ts # Specification: actual tests spec +``` + +Of these, only the `playwright.config.ts` and `tests/*.spec.ts` files are mandatory at start. The "Temporary" folders are generated during the test run. And the `.env` files are used only if you want to override defaults. + +To understand how these work, check out the Developer Guide under the "/testing" path. While we will describe Playwright there in the context of the _Contoso Real Estate app_ test suite, you can easily apply those insights to the test suite here. -
- 3. Playwright UI Mode
+ +## 5. The Test Specification +
- 4. Test Authoring + ๐Ÿ‘‰๐Ÿฝ | Want to understand the structure of a test specification? + +๐Ÿšง TODO: Explain what `test spec` format is, why locators matter, what fixtures are, and why we may need to configure or observe timeouts. +
+## 6. The Test Configuration +
- 5. Test Debugging + ๐Ÿ‘‰๐Ÿฝ | Want to understand test configuration settings & overrides? + +๐Ÿšง TODO: Explain what we are configuring, why we have `.env`, why we activated `webserver` and why we have timeouts in both test and webserver levels. +
+## 7. Playwright Test UI Mode +
- 6. Test Reporting + ๐Ÿ‘‰๐Ÿฝ | Want a more interactive testing workflow? This is magical! + +๐Ÿšง TODO: Explain what `npm run test-ui` does in project +
-## Troubleshooting +## ๐Ÿ›  | Troubleshooting + +We can use this section to capture any _gotchas_ or best practices for _this_ test suite, as we learn more. Help us out by filing bugs, or using issues to start a discussion for new features, or request clarity around existing ones. -This section will be used to document any issues, gotchas, tips and tricks for use with Playwright. +## ๐Ÿ™‹๐Ÿฝโ€โ™€๏ธ | Want to help? +Want to file a bug, contribute code or content, or improve the documentation and training resources? Excellent! + - Read up on our guidelines for [contributing](./CONTRIBUTING.md). + - Check out [open issues](https://github.com/Azure-Samples/contoso-real-estate/issues) that could use help. + - File [a new issue](https://github.com/Azure-Samples/contoso-real-estate/issues/new/choose) to start a related discussion. \ No newline at end of file diff --git a/packages/docs/website/docs/02-develop/01-intro.md b/packages/docs/website/docs/02-develop/01-intro.md index 2563debb..cd255fdc 100644 --- a/packages/docs/website/docs/02-develop/01-intro.md +++ b/packages/docs/website/docs/02-develop/01-intro.md @@ -1,5 +1,5 @@ --- -slug: /develop/scenario-8 +slug: /develop title: Introduction description: Let's talk about how the Contoso Real Estate Application was developed. --- diff --git a/packages/docs/website/docs/02-develop/scenario-2/0-intro.md b/packages/docs/website/docs/02-develop/scenario-2/0-intro.md index 79652081..06d877fa 100644 --- a/packages/docs/website/docs/02-develop/scenario-2/0-intro.md +++ b/packages/docs/website/docs/02-develop/scenario-2/0-intro.md @@ -21,7 +21,7 @@ A function application with multiple endpoints, as application API. This service ### 2.3 Backend Databases -The first database, which will be used to store the data for the application, in this case [Azure Database for PostgreSQL](https://azure.microsoft.com/services/postgresql/). Please notice that this database is populated from a headless CMS implementation, described in [scenario 3](/scenarios/scenario-3/intro). +The first database, which will be used to store the data for the application, in this case [Azure Database for PostgreSQL](https://azure.microsoft.com/services/postgresql/). Please notice that this database is populated from a headless CMS implementation, described in [scenario 3](/develop/scenario-3). A second database, which will be used to store user events and user profiles. This service is deployed to [Azure Cosmos DB](https://azure.microsoft.com/services/cosmos-db/), which is a fully managed NoSQL database service that offers multiple APIs, including the Mongodb API. diff --git a/packages/docs/website/docs/02-develop/scenario-2/5-security.md b/packages/docs/website/docs/02-develop/scenario-2/5-security.md index e1ea9bc3..e9dd6fc2 100644 --- a/packages/docs/website/docs/02-develop/scenario-2/5-security.md +++ b/packages/docs/website/docs/02-develop/scenario-2/5-security.md @@ -25,4 +25,4 @@ To prevent CORS issues, start the project locally with the [Azure Static Web App ## Authentication -To enable user authentication, this project implements [Azure Static Web Apps Easy Auth](https://docs.microsoft.com/azure/static-web-apps/authentication-authorization). You can find detailed guidelines visiting [scenario 4](/scenarios/scenario-4/intro). +To enable user authentication, this project implements [Azure Static Web Apps Easy Auth](https://docs.microsoft.com/azure/static-web-apps/authentication-authorization). You can find detailed guidelines visiting [scenario 4](/develop/scenario-4). diff --git a/packages/docs/website/package-lock.json b/packages/docs/website/package-lock.json index c6ae879a..cdc04bdb 100644 --- a/packages/docs/website/package-lock.json +++ b/packages/docs/website/package-lock.json @@ -16,6 +16,7 @@ "@mdx-js/react": "^1.6.22", "@primer/octicons-react": "^19.4.0", "clsx": "^1.2.1", + "dotenv": "^16.3.1", "prism-react-renderer": "^1.3.5", "react": "^17.0.2", "react-dom": "^17.0.2", @@ -6777,6 +6778,17 @@ "node": ">=8" } }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, "node_modules/drange": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/drange/-/drange-1.1.1.tgz", diff --git a/packages/docs/website/package.json b/packages/docs/website/package.json index b9143bab..6f984a65 100644 --- a/packages/docs/website/package.json +++ b/packages/docs/website/package.json @@ -6,12 +6,16 @@ "docusaurus": "docusaurus", "start": "docusaurus start", "build": "docusaurus build", + "preview": "docusaurus build && docusaurus serve", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", "clear": "docusaurus clear", "serve": "docusaurus serve", "write-translations": "docusaurus write-translations", - "write-heading-ids": "docusaurus write-heading-ids" + "write-heading-ids": "docusaurus write-heading-ids", + "test": "playwright test", + "test-ui": "playwright test --ui", + "report": "playwright show-report" }, "dependencies": { "@docusaurus/core": "2.4.1", @@ -22,6 +26,7 @@ "@mdx-js/react": "^1.6.22", "@primer/octicons-react": "^19.4.0", "clsx": "^1.2.1", + "dotenv": "^16.3.1", "prism-react-renderer": "^1.3.5", "react": "^17.0.2", "react-dom": "^17.0.2", diff --git a/packages/docs/website/playwright.config.ts b/packages/docs/website/playwright.config.ts index 301801ee..8be8d999 100644 --- a/packages/docs/website/playwright.config.ts +++ b/packages/docs/website/playwright.config.ts @@ -3,75 +3,61 @@ import { defineConfig, devices } from '@playwright/test'; /** * Read environment variables from file. * https://github.com/motdotla/dotenv + * Use: console.log(process.env) + * after require, to see all env variables. */ -// require('dotenv').config(); +require('dotenv').config(); /** - * See https://playwright.dev/docs/test-configuration. + * See Test Configuration docs for all options: + * https://playwright.dev/docs/test-configuration. */ export default defineConfig({ + testDir: './tests', - /* Run tests in files in parallel */ + + timeout: parseInt(process.env.TIMEOUT) || 30000 , + expect: { timeout: parseInt(process.env.TIMEOUT_EXPECT) || 5000 }, + + // See: Parallelization & Sharding docs + // https://playwright.dev/docs/test-parallel fullyParallel: true, - /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, - /* Retry on CI only */ retries: process.env.CI ? 2 : 0, - /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, - /* Reporter to use. See https://playwright.dev/docs/test-reporters */ + reporter: 'html', - /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ + use: { - /* Base URL to use in actions like `await page.goto('/')`. */ - // baseURL: 'http://127.0.0.1:3000', - - /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ + baseURL: process.env.BASE_URL || process.env.DEVSRV_URL || 'http://localhost:3000', trace: 'on-first-retry', }, - /* Configure projects for major browsers */ + // See: Configure Projects For Multiple Browsers + // https://playwright.dev/docs/test-projects projects: [ + { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, - { name: 'firefox', use: { ...devices['Desktop Firefox'] }, }, - { - name: 'webkit', - use: { ...devices['Desktop Safari'] }, + name: 'Mobile Chrome', + use: { ...devices['Pixel 5'] }, }, - - /* Test against mobile viewports. */ - // { - // name: 'Mobile Chrome', - // use: { ...devices['Pixel 5'] }, - // }, - // { - // name: 'Mobile Safari', - // use: { ...devices['iPhone 12'] }, - // }, - - /* Test against branded browsers. */ - // { - // name: 'Microsoft Edge', - // use: { ...devices['Desktop Edge'], channel: 'msedge' }, - // }, - // { - // name: 'Google Chrome', - // use: { ...devices['Desktop Chrome'], channel: 'chrome' }, - // }, ], - /* Run your local dev server before starting the tests */ - // webServer: { - // command: 'npm run start', - // url: 'http://127.0.0.1:3000', - // reuseExistingServer: !process.env.CI, - // }, + /* Run local dev server before starting the tests */ + webServer: { + command: 'npm run start', // 'npm run build && npm run serve', + url: process.DEVSRV_URL || 'http://localhost:3000', + reuseExistingServer: !process.env.CI, + timeout: 120 * 1000, + stderr: 'pipe', // 'pipe' | 'ignore' + stdout: 'pipe', // 'pipe' | 'ignore' + }, }); diff --git a/packages/docs/website/src/pages/api.js b/packages/docs/website/src/pages/api.js index 55ffd08e..d90c63d4 100644 --- a/packages/docs/website/src/pages/api.js +++ b/packages/docs/website/src/pages/api.js @@ -14,7 +14,7 @@ export default function App() { title={`OpenAPI Specification for Contoso Real Estate`} description="Documentation auto-generated for the OpenAPI YAML using swagger-ui-react">
- +
); diff --git a/packages/docs/website/static/docs/png/playwright-report-sample-details.png b/packages/docs/website/static/docs/png/playwright-report-sample-details.png new file mode 100644 index 00000000..09f1383a Binary files /dev/null and b/packages/docs/website/static/docs/png/playwright-report-sample-details.png differ diff --git a/packages/docs/website/static/docs/png/playwright-report-sample.png b/packages/docs/website/static/docs/png/playwright-report-sample.png new file mode 100644 index 00000000..311a2a14 Binary files /dev/null and b/packages/docs/website/static/docs/png/playwright-report-sample.png differ diff --git a/packages/docs/website/static/docs/png/playwright-report-trace-details.png b/packages/docs/website/static/docs/png/playwright-report-trace-details.png new file mode 100644 index 00000000..bd8ac387 Binary files /dev/null and b/packages/docs/website/static/docs/png/playwright-report-trace-details.png differ diff --git a/packages/docs/website/static/docs/png/playwright-report-trace.png b/packages/docs/website/static/docs/png/playwright-report-trace.png new file mode 100644 index 00000000..df8e63b4 Binary files /dev/null and b/packages/docs/website/static/docs/png/playwright-report-trace.png differ diff --git a/packages/docs/website/static/playwright-trace/data/046d8a40634f6ceb5b7f8321bffb5e388f47b095.zip b/packages/docs/website/static/playwright-trace/data/046d8a40634f6ceb5b7f8321bffb5e388f47b095.zip new file mode 100644 index 00000000..e6948249 Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/046d8a40634f6ceb5b7f8321bffb5e388f47b095.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/08cf4890d673194ba015e201e52012ad547e969b.zip b/packages/docs/website/static/playwright-trace/data/08cf4890d673194ba015e201e52012ad547e969b.zip new file mode 100644 index 00000000..21f48c8c Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/08cf4890d673194ba015e201e52012ad547e969b.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/12d28315931f4a9bc95a10aeebcadddc3cf9f3cd.zip b/packages/docs/website/static/playwright-trace/data/12d28315931f4a9bc95a10aeebcadddc3cf9f3cd.zip new file mode 100644 index 00000000..ecd6b72b Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/12d28315931f4a9bc95a10aeebcadddc3cf9f3cd.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/20d31664073f6cf4f545b657e2419c6a1191ca02.zip b/packages/docs/website/static/playwright-trace/data/20d31664073f6cf4f545b657e2419c6a1191ca02.zip new file mode 100644 index 00000000..85803f90 Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/20d31664073f6cf4f545b657e2419c6a1191ca02.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/50161f875572b3fd015312dc1222f75f5aed5351.zip b/packages/docs/website/static/playwright-trace/data/50161f875572b3fd015312dc1222f75f5aed5351.zip new file mode 100644 index 00000000..19cd3fff Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/50161f875572b3fd015312dc1222f75f5aed5351.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/5aa434ba6aa21047f20b96f58cd929f2a2f7e104.zip b/packages/docs/website/static/playwright-trace/data/5aa434ba6aa21047f20b96f58cd929f2a2f7e104.zip new file mode 100644 index 00000000..c88b924e Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/5aa434ba6aa21047f20b96f58cd929f2a2f7e104.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/74e56dcc17af52e62169439ffb4a4aeaa7f0e7f8.zip b/packages/docs/website/static/playwright-trace/data/74e56dcc17af52e62169439ffb4a4aeaa7f0e7f8.zip new file mode 100644 index 00000000..ffdc380b Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/74e56dcc17af52e62169439ffb4a4aeaa7f0e7f8.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/8d6da62977eb84615073dc969510c0e3825999d3.zip b/packages/docs/website/static/playwright-trace/data/8d6da62977eb84615073dc969510c0e3825999d3.zip new file mode 100644 index 00000000..f781c889 Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/8d6da62977eb84615073dc969510c0e3825999d3.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/c2af0399fdd005996b73c3ea0677105d0eeb07f0.zip b/packages/docs/website/static/playwright-trace/data/c2af0399fdd005996b73c3ea0677105d0eeb07f0.zip new file mode 100644 index 00000000..fb8b0995 Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/c2af0399fdd005996b73c3ea0677105d0eeb07f0.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/ed54cff6b7ac2d263898e185c3974b3d7786aad7.zip b/packages/docs/website/static/playwright-trace/data/ed54cff6b7ac2d263898e185c3974b3d7786aad7.zip new file mode 100644 index 00000000..6b2724de Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/ed54cff6b7ac2d263898e185c3974b3d7786aad7.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/fc879ebe6aad7b62d7357dc6eea800e346e78b27.zip b/packages/docs/website/static/playwright-trace/data/fc879ebe6aad7b62d7357dc6eea800e346e78b27.zip new file mode 100644 index 00000000..5874ca3f Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/fc879ebe6aad7b62d7357dc6eea800e346e78b27.zip differ diff --git a/packages/docs/website/static/playwright-trace/data/fe55d097ec739bd3d71fdcf723b82c23359e6b32.zip b/packages/docs/website/static/playwright-trace/data/fe55d097ec739bd3d71fdcf723b82c23359e6b32.zip new file mode 100644 index 00000000..49e7d0cf Binary files /dev/null and b/packages/docs/website/static/playwright-trace/data/fe55d097ec739bd3d71fdcf723b82c23359e6b32.zip differ diff --git a/packages/docs/website/static/playwright-trace/index.html b/packages/docs/website/static/playwright-trace/index.html new file mode 100644 index 00000000..8429171f --- /dev/null +++ b/packages/docs/website/static/playwright-trace/index.html @@ -0,0 +1,62 @@ + + + + + + + + + Playwright Test Report + + + + +
+ + + + \ No newline at end of file diff --git a/packages/docs/website/static/playwright-trace/trace/assets/codeMirrorModule-a10cf84f.js b/packages/docs/website/static/playwright-trace/trace/assets/codeMirrorModule-a10cf84f.js new file mode 100644 index 00000000..7a9e0070 --- /dev/null +++ b/packages/docs/website/static/playwright-trace/trace/assets/codeMirrorModule-a10cf84f.js @@ -0,0 +1,24 @@ +import{n as fu,o as cu}from"./wsPort-d13879e1.js";var fa={exports:{}};(function(An,pi){(function(X,lt){An.exports=lt()})(cu,function(){var X=navigator.userAgent,lt=navigator.platform,ue=/gecko\/\d/i.test(X),Be=/MSIE \d/.test(X),Lt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),ye=/Edge\/(\d+)/.exec(X),L=Be||Lt||ye,Y=L&&(Be?document.documentMode||6:+(ye||Lt)[1]),W=!ye&&/WebKit\//.test(X),Ue=W&&/Qt\/\d+\.\d+/.test(X),Ze=!ye&&/Chrome\/(\d+)/.exec(X),at=Ze&&+Ze[1],Ne=/Opera\//.test(X),mt=/Apple Computer/.test(navigator.vendor),Te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),Ge=/PhantomJS/.test(X),ie=mt&&(/Mobile\/\w+/.test(X)||navigator.maxTouchPoints>2),Ce=/Android/.test(X),We=ie||Ce||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),me=ie||/Mac/.test(lt),st=/\bCrOS\b/.test(X),he=/win/i.test(lt),be=Ne&&X.match(/Version\/(\d*\.\d*)/);be&&(be=Number(be[1])),be&&be>=15&&(Ne=!1,W=!0);var Bt=me&&(Ue||Ne&&(be==null||be<12.11)),Tt=ue||L&&Y>=9;function ut(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ve=function(e,t){var n=e.className,r=ut(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function S(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function F(e,t){return S(e).appendChild(t)}function p(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}var J=function(){this.id=null,this.f=null,this.time=0,this.handler=Ae(this.onTimeout,this)};J.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},J.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var ft=[""];function pt(e){for(;ft.length<=e;)ft.push(te(ft)+" ");return ft[e]}function te(e){return e[e.length-1]}function Ut(e,t){for(var n=[],r=0;r"ย€"&&(e.toUpperCase()!=e.toLowerCase()||Qr.test(e))}function Gt(e,t){return t?t.source.indexOf("\\w")>-1&&tr(e)?!0:t.test(e):tr(e)}function U(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var q=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function H(e){return e.charCodeAt(0)>=768&&q.test(e)}function re(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function vt(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),l.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var xt=null;function wt(e,t,n){var r;xt=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:xt=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:xt=i)}return r??xt}var vi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,c,h){this.level=u,this.from=c,this.to=h}return function(u,c){var h=c=="ltr"?"L":"R";if(u.length==0||c=="ltr"&&!r.test(u))return!1;for(var b=u.length,y=[],w=0;w-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function de(e,t){var n=Jr(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Je(e){e.prototype.on=function(t,n){O(this,t,n)},e.prototype.off=function(t,n){qe(this,t,n)}}function Xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function gr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Vr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function qt(e){Xe(e),gr(e)}function et(e){return e.target||e.srcElement}function $r(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),me&&e.ctrlKey&&t==1&&(t=3),t}var gi=function(){if(L&&Y<9)return!1;var e=p("div");return"draggable"in e||"dragDrop"in e}(),St;function yi(e){if(St==null){var t=p("span","โ€‹");F(e,p("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(St=t.offsetWidth<=1&&t.offsetHeight>2&&!(L&&Y<8))}var n=St?p("span","โ€‹"):p("span","ย ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var Dr;function In(e){if(Dr!=null)return Dr;var t=F(e,document.createTextNode("AุฎA")),n=D(t,0,1).getBoundingClientRect(),r=D(t,1,2).getBoundingClientRect();return S(e),!n||n.left==n.right?!1:Dr=r.right-n.right<3}var en=` + +b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` +`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},rr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Wt=function(){var e=p("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ft=null;function Wn(e){if(Ft!=null)return Ft;var t=F(e,p("span","x")),n=t.getBoundingClientRect(),r=D(t,0,1).getBoundingClientRect();return Ft=Math.abs(n.left-r.left)>1}var Mt={},nr={};function Fn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Mt[e]=t}function Nr(e,t){nr[e]=t}function ct(e){if(typeof e=="string"&&nr.hasOwnProperty(e))e=nr[e];else if(e&&typeof e.name=="string"&&nr.hasOwnProperty(e.name)){var t=nr[e.name];typeof t=="string"&&(t={name:t}),e=vr(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ct("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ct("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Xt(e,t){t=ct(t);var n=Mt[t.name];if(!n)return Xt(e,"text/plain");var r=n(e,t);if(ir.hasOwnProperty(t.name)){var i=ir[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var ir={};function Pn(e,t){var n=ir.hasOwnProperty(e)?ir[e]:ir[e]={};G(t,n)}function Yt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function or(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function tn(e,t,n){return e.startState?e.startState(t,n):!0}var ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.post},ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ke.prototype.backUp=function(e){this.pos-=e},ke.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function P(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?v(n,P(e,n).text.length):ca(t,P(e,t.line).text.length)}function ca(e,t){var n=e.ch;return n==null||n>t?v(e.line,t):n<0?v(e.line,0):e}function fo(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},zt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},zt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},zt.fromSaved=function(e,t,n){return t instanceof zn?new zt(e,Yt(e.mode,t.state),n,t.lookAhead):new zt(e,Yt(e.mode,t),n)},zt.prototype.save=function(e){var t=e!==!1?Yt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zn(t,this.maxLookAhead):t};function co(e,t,n,r){var i=[e.state.modeGen],o={};mo(e,t.text,e.doc.mode,n,function(u,c){return i.push(u,c)},o,r);for(var l=n.state,a=function(u){n.baseTokens=i;var c=e.state.overlays[u],h=1,b=0;n.state=!0,mo(e,t.text,c.mode,n,function(y,w){for(var k=h;by&&i.splice(h,1,y,i[h+1],T),h+=2,b=Math.min(y,T)}if(w)if(c.opaque)i.splice(k,h-k,y,"overlay "+w),h=k+2;else for(;ke.options.maxHighlightLength&&Yt(e.doc.mode,r.state),o=co(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function rn(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new zt(r,!0,t);var o=ha(e,t,n),l=o>r.first&&P(r,o-1).stateAfter,a=l?zt.fromSaved(r,l,o):new zt(r,tn(r.mode),o);return r.iter(o,t,function(s){mi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var vo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function go(e,t,n,r){var i=e.doc,o=i.mode,l;t=Z(i,t);var a=P(i,t.line),s=rn(e,t.line,n),u=new ke(a.text,e.options.tabSize,s),c;for(r&&(c=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&mi(e,t,r,c.pos),c.pos=t.length,h=null):h=yo(bi(n,c,r.state,b),o),b){var y=b[0].name;y&&(h="m-"+(h?y+" "+h:y))}if(!a||u!=h){for(;sl;--a){if(a<=o.first)return o.first;var s=P(o,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof zn?u.lookAhead:0)<=o.modeFrontier))return a;var c=_(s.text,null,e.options.tabSize);(i==null||r>c)&&(i=a-1,r=c)}return i}function da(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=P(e,r).stateAfter;if(i&&(!(i instanceof zn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Hn(l,o.from,s?null:o.to))}}return r}function ba(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var I=0;I0)){var c=[s,1],h=x(u.from,a.from),b=x(u.to,a.to);(h<0||!l.inclusiveLeft&&!h)&&c.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function wo(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||wi(r,o.marker)<0)&&(r=o.marker)}return r}function Lo(e,t,n,r,i){var o=P(e,t),l=Zt&&o.markedSpans;if(l)for(var a=0;a=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?x(u.to,n)>=0:x(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?x(u.from,r)<=0:x(u.from,r)<0)))return!0}}}function Dt(e){for(var t;t=Co(e);)e=t.find(-1,!0).line;return e}function ka(e){for(var t;t=Bn(e);)e=t.find(1,!0).line;return e}function Sa(e){for(var t,n;t=Bn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function ki(e,t){var n=P(e,t),r=Dt(n);return n==r?t:le(r)}function To(e,t){if(t>e.lastLine())return t;var n=P(e,t),r;if(!lr(e,n))return t;for(;r=Bn(n);)n=r.find(1,!0).line;return le(n)+1}function lr(e,t){var n=Zt&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Or=function(e,t,n){this.text=e,ko(this,t),this.height=n?n(this):1};Or.prototype.lineNo=function(){return le(this)},Je(Or);function Ca(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),wo(e),ko(e,n);var i=r?r(e):1;i!=e.height&&Ct(e,i)}function La(e){e.parent=null,wo(e)}var Ta={},Ma={};function Mo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Ma:Ta;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Do(e,t){var n=M("span",null,null,W?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=Na,In(e.display.measure)&&(l=kt(o,e.doc.direction))&&(r.addToken=Oa(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&le(o);Ea(o,r,ho(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=z(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=z(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(yi(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(W){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return de(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=z(r.pre.className,r.textClass||"")),r}function Da(e){var t=p("span","โ€ข","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Na(e,t,n,r,i,o,l){if(t){var a=e.splitSpaces?Aa(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,c;if(!s.test(t))e.col+=t.length,c=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,c),L&&Y<9&&(u=!0),e.pos+=t.length;else{c=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var b=s.exec(t),y=b?b.index-h:t.length-h;if(y){var w=document.createTextNode(a.slice(h,h+y));L&&Y<9?c.appendChild(p("span",[w])):c.appendChild(w),e.map.push(e.pos,e.pos+y,w),e.col+=y,e.pos+=y}if(!b)break;h+=y+1;var k=void 0;if(b[0]==" "){var T=e.cm.options.tabSize,N=T-e.col%T;k=c.appendChild(p("span",pt(N),"cm-tab")),k.setAttribute("role","presentation"),k.setAttribute("cm-text"," "),e.col+=N}else b[0]=="\r"||b[0]==` +`?(k=c.appendChild(p("span",b[0]=="\r"?"โ":"โค","cm-invalidchar")),k.setAttribute("cm-text",b[0]),e.col+=1):(k=e.cm.options.specialCharPlaceholder(b[0]),k.setAttribute("cm-text",b[0]),L&&Y<9?c.appendChild(p("span",[k])):c.appendChild(k),e.col+=1);e.map.push(e.pos,e.pos+1,k),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||o||l){var E=n||"";r&&(E+=r),i&&(E+=i);var A=p("span",[c],E,o);if(l)for(var I in l)l.hasOwnProperty(I)&&I!="style"&&I!="class"&&A.setAttribute(I,l[I]);return e.content.appendChild(A)}e.content.appendChild(c)}}function Aa(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&h.from<=u));b++);if(h.to>=c)return e(n,r,i,o,l,a,s);e(n,r.slice(0,h.to-u),i,o,null,a,s),o=null,r=r.slice(h.to-u),u=h.to}}}function No(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Ea(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;ls||ee.collapsed&&R.to==s&&R.from==s)){if(R.to!=null&&R.to!=s&&y>R.to&&(y=R.to,k=""),ee.className&&(w+=" "+ee.className),ee.css&&(b=(b?b+";":"")+ee.css),ee.startStyle&&R.from==s&&(T+=" "+ee.startStyle),ee.endStyle&&R.to==y&&(I||(I=[])).push(ee.endStyle,R.to),ee.title&&((E||(E={})).title=ee.title),ee.attributes)for(var ce in ee.attributes)(E||(E={}))[ce]=ee.attributes[ce];ee.collapsed&&(!N||wi(N.marker,ee)<0)&&(N=R)}else R.from>s&&y>R.from&&(y=R.from)}if(I)for(var _e=0;_e=a)break;for(var dt=Math.min(a,y);;){if(c){var nt=s+c.length;if(!N){var Me=nt>dt?c.slice(0,dt-s):c;t.addToken(t,Me,h?h+w:w,T,s+Me.length==y?k:"",b,E)}if(nt>=dt){c=c.slice(dt-s),s=dt;break}s=nt,T=""}c=i.slice(o,o=n[u++]),h=Mo(n[u++],t.cm.options)}}}function Ao(e,t,n){this.line=t,this.rest=Sa(t),this.size=this.rest?le(te(this.rest))-n+1:1,this.node=this.text=null,this.hidden=lr(e,t)}function Kn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function zo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Ka(e,t){t=Dt(t);var n=le(t),r=e.display.externalMeasured=new Ao(e.doc,t,n);r.lineN=n;var i=r.built=Do(e,r);return r.text=i.pre,F(e.display.lineMeasure,i.pre),r}function Ho(e,t,n,r){return _t(e,Ir(e,t),n,r)}function Di(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function qa(e,t,n,r){var i=Ro(t.map,n,r),o=i.node,l=i.start,a=i.end,s=i.collapse,u;if(o.nodeType==3){for(var c=0;c<4;c++){for(;l&&H(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a0&&(s=r="right");var h;e.options.lineWrapping&&(h=o.getClientRects()).length>1?u=h[r=="right"?h.length-1:0]:u=o.getBoundingClientRect()}if(L&&Y<9&&!l&&(!u||!u.left&&!u.right)){var b=o.parentNode.getClientRects()[0];b?u={left:b.left,right:b.left+Fr(e.display),top:b.top,bottom:b.bottom}:u=_o}for(var y=u.top-t.rect.top,w=u.bottom-t.rect.top,k=(y+w)/2,T=t.view.measure.heights,N=0;N=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function c(w,k,T){var N=a[k],E=N.level==1;return l(T?w-1:w,E!=T)}var h=wt(a,s,u),b=xt,y=c(s,h,u=="before");return b!=null&&(y.other=c(s,b,u!="before")),y}function Xo(e,t){var n=0;t=Z(e.doc,t),e.options.lineWrapping||(n=Fr(e.display)*t.ch);var r=P(e.doc,t.line),i=Qt(r)+Gn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ai(e,t,n,r,i){var o=v(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Oi(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Ai(r.first,0,null,-1,-1);var i=Pt(r,n),o=r.first+r.size-1;if(i>o)return Ai(r.first+r.size-1,P(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=P(r,i);;){var a=Ya(e,l,i,t,n),s=wa(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=P(r,i=u.line)}}function Yo(e,t,n,r){r-=Ni(t);var i=t.text.length,o=V(function(l){return _t(e,n,l-1).bottom<=r},i,0);return i=V(function(l){return _t(e,n,l).top>r},o,i),{begin:o,end:i}}function jo(e,t,n,r){n||(n=Ir(e,t));var i=qn(e,t,_t(e,n,r),"line").top;return Yo(e,t,n,i)}function Ei(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Ya(e,t,n,r,i){i-=Qt(t);var o=Ir(e,t),l=Ni(t),a=0,s=t.text.length,u=!0,c=kt(t,e.doc.direction);if(c){var h=(e.options.lineWrapping?Za:ja)(e,t,n,o,c,r,i);u=h.level!=1,a=u?h.from:h.to-1,s=u?h.to:h.from-1}var b=null,y=null,w=V(function(B){var R=_t(e,o,B);return R.top+=l,R.bottom+=l,Ei(R,r,i,!1)?(R.top<=i&&R.left<=r&&(b=B,y=R),!0):!1},a,s),k,T,N=!1;if(y){var E=r-y.left=I.bottom?1:0}return w=re(t.text,w,1),Ai(n,w,T,N,r-k)}function ja(e,t,n,r,i,o,l){var a=V(function(h){var b=i[h],y=b.level!=1;return Ei(Nt(e,v(n,y?b.to:b.from,y?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,c=Nt(e,v(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Ei(c,o,l,!0)&&c.top>l&&(s=i[a-1])}return s}function Za(e,t,n,r,i,o,l){var a=Yo(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,h=null,b=0;b=u||y.to<=s)){var w=y.level!=1,k=_t(e,r,w?Math.min(u,y.to)-1:Math.max(s,y.from)).right,T=kT)&&(c=y,h=T)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}var mr;function Wr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(mr==null){mr=p("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)mr.appendChild(document.createTextNode("x")),mr.appendChild(p("br"));mr.appendChild(document.createTextNode("x"))}F(e.measure,mr);var n=mr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),S(e.measure),n||1}function Fr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=p("span","xxxxxxxxxx"),n=p("pre",[t],"CodeMirror-line-like");F(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ii(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:Wi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Wi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Zo(e){var t=Wr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Fr(e.display)-3);return function(i){if(lr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(u=P(e.doc,s.line).text).length==s.ch){var c=_(u,u.length,e.options.tabSize)-u.length;s=v(s.line,Math.max(0,Math.round((o-Po(e.display).left)/Fr(e.display))-c))}return s}function xr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Zt&&ki(e.doc,t)i.viewFrom?sr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)sr(e);else if(t<=i.viewFrom){var o=Yn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):sr(e)}else if(n>=i.viewTo){var l=Yn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):sr(e)}else{var a=Yn(e,t,t,-1),s=Yn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Kn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):sr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[xr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);$(l,n)==-1&&l.push(n)}}}function sr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Yn(e,t,n,r){var i=xr(e,t),o,l=e.display.view;if(!Zt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,n+=o}for(;ki(e.doc,n)!=n;){if(i==(r<0?0:l.length-1))return null;n+=r*l[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Qa(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Kn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Kn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,xr(e,n)))),r.viewTo=n}function Qo(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(p("div","ย ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function jn(e,t){return e.top-t.top||e.left-t.left}function Ja(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=Po(e.display),a=l.left,s=Math.max(r.sizerWidth,yr(e)-r.sizer.offsetLeft)-l.right,u=i.direction=="ltr";function c(A,I,B,R){I<0&&(I=0),I=Math.round(I),R=Math.round(R),o.appendChild(p("div",null,"CodeMirror-selected","position: absolute; left: "+A+`px; + top: `+I+"px; width: "+(B??s-A)+`px; + height: `+(R-I)+"px"))}function h(A,I,B){var R=P(i,A),ee=R.text.length,ce,_e;function xe(Me,it){return Xn(e,v(A,Me),"div",R,it)}function dt(Me,it,Ke){var Ie=jo(e,R,null,Me),De=it=="ltr"==(Ke=="after")?"left":"right",Se=Ke=="after"?Ie.begin:Ie.end-(/\s/.test(R.text.charAt(Ie.end-1))?2:1);return xe(Se,De)[De]}var nt=kt(R,i.direction);return vt(nt,I||0,B??ee,function(Me,it,Ke,Ie){var De=Ke=="ltr",Se=xe(Me,De?"left":"right"),ot=xe(it-1,De?"right":"left"),jr=I==null&&Me==0,pr=B==null&&it==ee,je=Ie==0,Rt=!nt||Ie==nt.length-1;if(ot.top-Se.top<=3){var Re=(u?jr:pr)&&je,so=(u?pr:jr)&&Rt,er=Re?a:(De?Se:ot).left,Lr=so?s:(De?ot:Se).right;c(er,Se.top,Lr-er,Se.bottom)}else{var Tr,$e,Zr,uo;De?(Tr=u&&jr&&je?a:Se.left,$e=u?s:dt(Me,Ke,"before"),Zr=u?a:dt(it,Ke,"after"),uo=u&&pr&&Rt?s:ot.right):(Tr=u?dt(Me,Ke,"before"):a,$e=!u&&jr&&je?s:Se.right,Zr=!u&&pr&&Rt?a:ot.left,uo=u?dt(it,Ke,"after"):s),c(Tr,Se.top,$e-Tr,Se.bottom),Se.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Pr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Vo(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_i(e))}function Hi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Pr(e))},100)}function _i(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(de(e,"focus",e,t),e.state.focused=!0,C(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),W&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),zi(e))}function Pr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(de(e,"blur",e,t),e.state.focused=!1,ve(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Zn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||y<-.005)&&(ie.display.sizerWidth){var k=Math.ceil(c/Fr(e.display));k>e.display.maxLineLength&&(e.display.maxLineLength=k,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function $o(e){if(e.widgets)for(var t=0;t=l&&(o=Pt(t,Qt(P(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function Va(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!Ge){var l=p("div","โ€‹",null,`position: absolute; + top: `+(t.top-n.viewOffset-Gn(e.display))+`px; + height: `+(t.bottom-t.top+Ht(e)+n.barHeight)+`px; + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function $a(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?v(t.line,t.ch+1,"before"):t,t=t.ch?v(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Nt(e,t),s=!n||n==t?a:Nt(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=Ri(e,i),c=e.doc.scrollTop,h=e.doc.scrollLeft;if(u.scrollTop!=null&&(cn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),u.scrollLeft!=null&&(wr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(l=!0)),!l)break}return i}function es(e,t){var n=Ri(e,t);n.scrollTop!=null&&cn(e,n.scrollTop),n.scrollLeft!=null&&wr(e,n.scrollLeft)}function Ri(e,t){var n=e.display,r=Wr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Mi(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Ti(n),s=t.topa-r;if(t.topi+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=i&&(l.scrollTop=c)}var h=e.options.fixedGutter?0:n.gutters.offsetWidth,b=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-h,y=yr(e)-n.gutters.offsetWidth,w=t.right-t.left>y;return w&&(t.right=t.left+y),t.left<10?l.scrollLeft=0:t.lefty+b-3&&(l.scrollLeft=t.right+(w?0:10)-y),l}function Bi(e,t){t!=null&&(Jn(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function zr(e){Jn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function fn(e,t,n){(t!=null||n!=null)&&Jn(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function ts(e,t){Jn(e),e.curOp.scrollToPos=t}function Jn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Xo(e,t.from),r=Xo(e,t.to);el(e,n,r,t.margin)}}function el(e,t,n,r){var i=Ri(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});fn(e,i.scrollLeft,i.scrollTop)}function cn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ue||Ki(e,{top:t}),tl(e,t,!0),ue&&Ki(e),pn(e,100))}function tl(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function wr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,ll(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function hn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ti(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Ht(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var kr=function(e,t,n){this.cm=n;var r=this.vert=p("div",[p("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=p("div",[p("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),O(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),O(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,L&&Y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};kr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},kr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},kr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},kr.prototype.zeroWidthHack=function(){var e=me&&!Te?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new J,this.disableVert=new J},kr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},kr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var dn=function(){};dn.prototype.update=function(){return{bottom:0,right:0}},dn.prototype.setScrollLeft=function(){},dn.prototype.setScrollTop=function(){},dn.prototype.clear=function(){};function Hr(e,t){t||(t=hn(e));var n=e.display.barWidth,r=e.display.barHeight;rl(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Zn(e),rl(e,hn(e)),n=e.display.barWidth,r=e.display.barHeight}function rl(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var nl={native:kr,null:dn};function il(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ve(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new nl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),O(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?wr(e,t):cn(e,t)},e),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)}var rs=0;function Sr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++rs,markArrays:null},Ia(e.curOp)}function Cr(e){var t=e.curOp;t&&Fa(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Vn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function os(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function ls(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zn(t),e.barMeasure=hn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ho(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Ht(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-yr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function as(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=rn(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Yt(t.mode,r.state):null,s=co(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),b=0;!h&&bn)return pn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ht(e,function(){for(var o=0;o=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Qo(e)==0)return!1;al(e)&&(sr(e),t.dims=Ii(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroml&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),Zt&&(o=ki(e.doc,o),l=To(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Qa(e,o,l),n.viewOffset=Qt(P(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Qo(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=cs(e);return s>4&&(n.lineDiv.style.display="none"),ds(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,hs(u),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,pn(e,400)),n.updateLineNumbers=null,!0}function ol(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==yr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Ti(e.display)-Mi(e),n.top)}),t.visible=Qn(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Qn(e.display,e.doc,n));if(!Ui(e,t))break;Zn(e);var i=hn(e);un(e),Hr(e,i),qi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ki(e,t){var n=new Vn(e,t);if(Ui(e,n)){Zn(e),ol(e,n);var r=hn(e);un(e),Hr(e,r),qi(e,r),n.finish()}}function ds(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(w){var k=w.nextSibling;return W&&me&&e.display.currentWheelTarget==w?w.style.display="none":w.parentNode.removeChild(w),k}for(var s=r.view,u=r.viewFrom,c=0;c-1&&(y=!1),Oo(e,h,u,n)),y&&(S(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(d(e.options,u)))),l=h.node.nextSibling}u+=h.size}for(;l;)l=a(l)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Pe(e,"gutterChanged",e)}function qi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ht(e)+"px"}function ll(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Wi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),L&&Y<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!W&&!(ue&&We)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Xi(r.gutters,r.lineNumbers),sl(i),n.init(i)}var $n=0,Vt=null;L?Vt=-.53:ue?Vt=15:Ze?Vt=-.7:mt&&(Vt=-1/3);function ul(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function vs(e){var t=ul(e);return t.x*=Vt,t.y*=Vt,t}function fl(e,t){Ze&&at==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=ul(t),r=n.x,i=n.y,o=Vt;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&me&&W){e:for(var c=t.target,h=l.view;c!=a;c=c.parentNode)for(var b=0;b=0&&x(e,r.to())<=0)return n}return-1};var ae=function(e,t){this.anchor=e,this.head=t};ae.prototype.from=function(){return Ee(this.anchor,this.head)},ae.prototype.to=function(){return oe(this.anchor,this.head)},ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function At(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(b,y){return x(b.from(),y.from())}),n=$(t,i);for(var o=1;o0:s>=0){var u=Ee(a.from(),l.from()),c=oe(a.to(),l.to()),h=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new ae(h?c:u,h?u:c))}}return new yt(t,n)}function ur(e,t){return new yt([new ae(e,t||e)],0)}function fr(e){return e.text?v(e.from.line+e.text.length-1,te(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function cl(e,t){if(x(e,t.from)<0)return e;if(x(e,t.to)<=0)return fr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=fr(t).ch-t.to.ch),v(n,r)}function Yi(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,w-1),e.insert(a.line+1,N)}Pe(e,"change",e,t)}function cr(e,t,n){function r(i,o,l){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),te(e.done)}function yl(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=ms(i,i.lastOp==r)))a=te(l.changes),x(t.from,t.to)==0&&x(t.from,a.to)==0?a.to=fr(t):l.changes.push(Qi(e,t));else{var s=te(i.done);for((!s||!s.ranges)&&ti(e.sel,i.done),l={changes:[Qi(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||de(e,"historyAdded")}function bs(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function xs(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||bs(e,o,te(i.done),t))?i.done[i.done.length-1]=t:ti(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&gl(i.undone)}function ti(e,t){var n=te(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ml(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function ws(e){if(!e)return null;for(var t,n=0;n-1&&(te(a)[h]=u[h],delete u[h])}}return r}function Ji(e,t,n,r){if(r){var i=e.anchor;if(n){var o=x(t,i)<0;o!=x(n,i)<0?(i=t,t=n):o!=x(t,n)<0&&(t=n)}return new ae(i,t)}else return new ae(n||t,t)}function ri(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ye(e,new yt([Ji(e.sel.primary(),t,n,i)],0),r)}function xl(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(de(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(n){var h=s.find(r<0?1:-1),b=void 0;if((r<0?c:u)&&(h=Tl(e,h,-r,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(b=x(h,n))&&(r<0?b<0:b>0))return Rr(e,h,t,r,i)}var y=s.find(r<0?-1:1);return(r<0?u:c)&&(y=Tl(e,y,r,y.line==t.line?o:null)),y?Rr(e,y,t,r,i):null}}return t}function ii(e,t,n,r,i){var o=r||1,l=Rr(e,t,n,o,i)||!i&&Rr(e,t,n,o,!0)||Rr(e,t,n,-o,i)||!i&&Rr(e,t,n,-o,!0);return l||(e.cantEdit=!0,v(e.first,0))}function Tl(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?Z(e,v(t.line-1)):null:n>0&&t.ch==(r||P(e,t.line)).text.length?t.line=0;--i)Nl(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Nl(e,t)}}function Nl(e,t){if(!(t.text.length==1&&t.text[0]==""&&x(t.from,t.to)==0)){var n=Yi(e,t);yl(e,t,n,e.cm?e.cm.curOp.id:NaN),yn(e,t,n,xi(e,t));var r=[];cr(e,function(i,o){!o&&$(r,i.history)==-1&&(Il(i.history,t),r.push(i.history)),yn(i,t,null,xi(i,t))})}}function oi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--y){var w=b(y);if(w)return w.v}}}}function Al(e,t){if(t!=0&&(e.first+=t,e.sel=new yt(Ut(e.sel.ranges,function(i){return new ae(v(i.anchor.line+t,i.anchor.ch),v(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){tt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:v(o,P(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=jt(e,t.from,t.to),n||(n=Yi(e,t)),e.cm?Cs(e.cm,t,r):Zi(e,t,r),ni(e,n,pe),e.cantEdit&&ii(e,v(e.firstLine(),0))&&(e.cantEdit=!1)}}function Cs(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=le(Dt(P(r,o.line))),r.iter(s,l.line+1,function(y){if(y==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&En(e),Zi(r,t,n,Zo(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(y){var w=Un(y);w>i.maxLineLength&&(i.maxLine=y,i.maxLineLength=w,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),da(r,o.line),pn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?tt(e):o.line==l.line&&t.text.length==1&&!dl(e.doc,t)?ar(e,o.line,"text"):tt(e,o.line,l.line+1,u);var c=Qe(e,"changes"),h=Qe(e,"change");if(h||c){var b={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};h&&Pe(e,"change",e,b),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(b)}e.display.selForContextMenu=null}function Ur(e,t,n,r,i){var o;r||(r=n),x(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Br(e,{from:n,to:r,text:t,origin:i})}function Ol(e,t,n,r){n1||!(this.children[0]instanceof bn))){var a=[];this.collapse(a),this.children=[new bn(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&tt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Cl(e.doc)),e&&Pe(e,"markerCleared",e,this,r,i),t&&Cr(e),this.parent&&this.parent.clear()}},hr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Lo(e,t.line,t,n,o)||t.line!=n.line&&Lo(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");va()}o.addToHistory&&yl(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(h){s&&o.collapsed&&!s.options.lineWrapping&&Dt(h)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Ct(h,0),ya(h,new Hn(o,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,n.line+1,function(h){lr(e,h)&&Ct(h,0)}),o.clearOnEnter&&O(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(pa(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Fl,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)tt(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)ar(s,c,"text");o.atomic&&Cl(s.doc),Pe(s,"markerAdded",s,o)}return o}var kn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)Br(this,r[s]);a?kl(this,a):this.cm&&zr(this.cm)}),undo:He(function(){oi(this,"undo")}),redo:He(function(){oi(this,"redo")}),undoSelection:He(function(){oi(this,"undo",!0)}),redoSelection:He(function(){oi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Z(this,e),t=Z(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),Z(this,v(n,t))},indexFromPos:function(e){e=Z(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var c=e.dataTransfer.getData("Text");if(c){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),ni(t.doc,ur(n,n)),h)for(var b=0;b=0;a--)Ur(e.doc,"",r[a].from,r[a].to,"+delete");zr(e)})}function $i(e,t,n){var r=re(e.text,t+n,n);return r<0||r>e.text.length?null:r}function eo(e,t,n){var r=$i(e,t.ch,n);return r==null?null:new v(t.line,r,n<0?"after":"before")}function to(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=kt(n,t.doc.direction);if(o){var l=i<0?te(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var c=Ir(t,n);u=i<0?n.text.length-1:0;var h=_t(t,c,u).top;u=V(function(b){return _t(t,c,b).top==h},i<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=$i(n,u,1))}else u=i<0?l.to:l.from;return new v(r,u,s)}}return new v(r,i<0?n.text.length:0,i<0?"before":"after")}function Hs(e,t,n,r){var i=kt(t,e.doc.direction);if(!i)return eo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=wt(i,n.ch,n.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>n.ch:l.from=l.from&&b>=c.begin)){var y=h?"before":"after";return new v(n.line,b,y)}}var w=function(N,E,A){for(var I=function(ce,_e){return _e?new v(n.line,a(ce,1),"before"):new v(n.line,ce,"after")};N>=0&&N0==(B.level!=1),ee=R?A.begin:a(A.end,-1);if(B.from<=ee&&ee0?c.end:a(c.begin,-1);return T!=null&&!(r>0&&T==t.text.length)&&(k=w(r>0?0:i.length-1,r,u(T)),k)?k:null}var Ln={selectAll:Ml,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),pe)},killLine:function(e){return qr(e,function(t){if(t.empty()){var n=P(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new v(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),v(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=P(e.doc,i.line-1).text;l&&(i=new v(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),v(i.line-1,l.length-1),i,"+transpose"))}}n.push(new ae(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return ht(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&x(t,this.pos)==0&&n==this.button};var Mn,Dn;function qs(e,t){var n=+new Date;return Dn&&Dn.compare(n,e,t)?(Mn=Dn=null,"triple"):Mn&&Mn.compare(n,e,t)?(Dn=new no(n,e,t),Mn=null,"double"):(Mn=new no(n,e,t),Dn=null,"single")}function Jl(e){var t=this,n=t.display;if(!(we(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Jt(n,e)){W||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!io(t,e)){var r=br(t,e),i=$r(e),o=r?qs(r,i):"single";Fe(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Xs(t,i,r,o,e))&&(i==1?r?js(t,r,o,e):et(e)==n.scroller&&Xe(e):i==2?(r&&ri(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(Tt?t.display.input.onContextMenu(e):Hi(t)))}}}function Xs(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Tn(e,Ul(o,i),i,function(l){if(typeof l=="string"&&(l=Ln[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,n)!=se}finally{e.state.suppressEdits=!1}return a})}function Ys(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=st?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=me?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(me?n.altKey:n.ctrlKey)),i}function js(e,t,n,r){L?setTimeout(Ae(Vo,e),0):e.curOp.focus=g(Q(e));var i=Ys(e,n,r),o=e.doc.sel,l;e.options.dragDrop&&gi&&!e.isReadOnly()&&n=="single"&&(l=o.contains(t))>-1&&(x((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(x(l.to(),t)>0||t.xRel<0)?Zs(e,r,t,i):Qs(e,r,t,i)}function Zs(e,t,n,r){var i=e.display,o=!1,l=ze(e,function(u){W&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Hi(e)),qe(i.wrapper.ownerDocument,"mouseup",l),qe(i.wrapper.ownerDocument,"mousemove",a),qe(i.scroller,"dragstart",s),qe(i.scroller,"drop",l),o||(Xe(u),r.addNew||ri(e.doc,n,null,null,r.extend),W&&!mt||L&&Y==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};W&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,O(i.wrapper.ownerDocument,"mouseup",l),O(i.wrapper.ownerDocument,"mousemove",a),O(i.scroller,"dragstart",s),O(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Vl(e,t,n){if(n=="char")return new ae(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new ae(v(t.line,0),Z(e.doc,v(t.line+1,0)));var r=n(e,t);return new ae(r.from,r.to)}function Qs(e,t,n,r){L&&Hi(e);var i=e.display,o=e.doc;Xe(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),a>-1?l=u[a]:l=new ae(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new ae(n,n)),n=br(e,t,!0,!0),a=-1;else{var c=Vl(e,n,r.unit);r.extend?l=Ji(l,c.anchor,c.head,r.extend):l=c}r.addNew?a==-1?(a=u.length,Ye(o,At(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(Ye(o,At(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Vi(o,a,l,Et):(a=0,Ye(o,new yt([l],0),Et),s=o.sel);var h=n;function b(A){if(x(h,A)!=0)if(h=A,r.unit=="rectangle"){for(var I=[],B=e.options.tabSize,R=_(P(o,n.line).text,n.ch,B),ee=_(P(o,A.line).text,A.ch,B),ce=Math.min(R,ee),_e=Math.max(R,ee),xe=Math.min(n.line,A.line),dt=Math.min(e.lastLine(),Math.max(n.line,A.line));xe<=dt;xe++){var nt=P(o,xe).text,Me=bt(nt,ce,B);ce==_e?I.push(new ae(v(xe,Me),v(xe,Me))):nt.length>Me&&I.push(new ae(v(xe,Me),v(xe,bt(nt,_e,B))))}I.length||I.push(new ae(n,n)),Ye(o,At(e,s.ranges.slice(0,a).concat(I),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(A)}else{var it=l,Ke=Vl(e,A,r.unit),Ie=it.anchor,De;x(Ke.anchor,Ie)>0?(De=Ke.head,Ie=Ee(it.from(),Ke.anchor)):(De=Ke.anchor,Ie=oe(it.to(),Ke.head));var Se=s.ranges.slice(0);Se[a]=Js(e,new ae(Z(o,Ie),De)),Ye(o,At(e,Se,a),Et)}}var y=i.wrapper.getBoundingClientRect(),w=0;function k(A){var I=++w,B=br(e,A,!0,r.unit=="rectangle");if(B)if(x(B,h)!=0){e.curOp.focus=g(Q(e)),b(B);var R=Qn(i,o);(B.line>=R.to||B.liney.bottom?20:0;ee&&setTimeout(ze(e,function(){w==I&&(i.scroller.scrollTop+=ee,k(A))}),50)}}function T(A){e.state.selectingText=!1,w=1/0,A&&(Xe(A),i.input.focus()),qe(i.wrapper.ownerDocument,"mousemove",N),qe(i.wrapper.ownerDocument,"mouseup",E),o.history.lastSelOrigin=null}var N=ze(e,function(A){A.buttons===0||!$r(A)?T(A):k(A)}),E=ze(e,T);e.state.selectingText=E,O(i.wrapper.ownerDocument,"mousemove",N),O(i.wrapper.ownerDocument,"mouseup",E)}function Js(e,t){var n=t.anchor,r=t.head,i=P(e.doc,n.line);if(x(n,r)==0&&n.sticky==r.sticky)return t;var o=kt(i);if(!o)return t;var l=wt(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var c=wt(o,r.ch,r.sticky),h=c-l||(r.ch-n.ch)*(a.level==1?-1:1);c==s-1||c==s?u=h<0:u=h>0}var b=o[s+(u?-1:0)],y=u==(b.level==1),w=y?b.from:b.to,k=y?"after":"before";return n.ch==w&&n.sticky==k?t:new ae(new v(n.line,w,k),r)}function $l(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Xe(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!Qe(e,n))return Vr(t);o-=a.top-l.viewOffset;for(var s=0;s=i){var c=Pt(e.doc,o),h=e.display.gutterSpecs[s];return de(e,n,e,c,h.className,t),Vr(t)}}}function io(e,t){return $l(e,t,"gutterClick",!0)}function ea(e,t){Jt(e.display,t)||Vs(e,t)||we(e,t,"contextmenu")||Tt||e.display.input.onContextMenu(t)}function Vs(e,t){return Qe(e,"gutterContextMenu")?$l(e,t,"gutterContextMenu",!1):!1}function ta(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),sn(e)}var Xr={toString:function(){return"CodeMirror.Init"}},ra={},ui={};function $s(e){var t=e.optionHandlers;function n(r,i,o,l){e.defaults[r]=i,o&&(t[r]=l?function(a,s,u){u!=Xr&&o(a,s,u)}:o)}e.defineOption=n,e.Init=Xr,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,ji(r)},!0),n("indentUnit",2,ji,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){gn(r),sn(r),tt(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var c=s.text.indexOf(i,u);if(c==-1)break;u=c+i.length,o.push(v(l,c))}l++});for(var a=o.length-1;a>=0;a--)Ur(r.doc,i,o[a],v(o[a].line,o[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=Xr&&r.refresh()}),n("specialCharPlaceholder",Da,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",We?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!he),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){ta(r),vn(r)},!0),n("keyMap","default",function(r,i,o){var l=ai(i),a=o!=Xr&&ai(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,tu,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Xi(i,r.options.lineNumbers),vn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Wi(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Hr(r)},!0),n("scrollbarStyle","native",function(r){il(r),Hr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Xi(r.options.gutters,i),vn(r)},!0),n("firstLineNumber",1,vn,!0),n("lineNumberFormatter",function(r){return r},vn,!0),n("showCursorWhenSelecting",!1,un,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Pr(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,eu),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,un,!0),n("singleCursorHeightPerLine",!0,un,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,gn,!0),n("addModeClass",!1,gn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,gn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function eu(e,t,n){var r=n&&n!=Xr;if(!t!=!r){var i=e.display.dragFunctions,o=t?O:qe;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function tu(e){e.options.lineWrapping?(C(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ve(e.display.wrapper,"CodeMirror-wrap"),Ci(e)),Fi(e),tt(e),sn(e),setTimeout(function(){return Hr(e)},100)}function ge(e,t){var n=this;if(!(this instanceof ge))return new ge(e,t);this.options=t=t?G(t):{},G(ra,t,!1);var r=t.value;typeof r=="string"?r=new rt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new ge.inputStyles[t.inputStyle](this),o=this.display=new ps(e,r,i,t);o.wrapper.CodeMirror=this,ta(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),il(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new J,keySeq:null,specialChars:null},t.autofocus&&!We&&o.input.focus(),L&&Y<11&&setTimeout(function(){return n.display.input.reset(!0)},20),ru(this),Is(),Sr(this),this.curOp.forceUpdate=!0,pl(this,r),t.autofocus&&!We||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&_i(n)},20):Pr(this);for(var l in ui)ui.hasOwnProperty(l)&&ui[l](this,t[l],Xr);al(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}O(t.scroller,"touchstart",function(s){if(!we(e,s)&&!o(s)&&!io(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),O(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),O(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Jt(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var c=e.coordsChar(t.activeTouch,"page"),h;!u.prev||l(u,u.prev)?h=new ae(c,c):!u.prev.prev||l(u,u.prev.prev)?h=e.findWordAt(c):h=new ae(v(c.line,0),Z(e.doc,v(c.line+1,0))),e.setSelection(h.anchor,h.head),e.focus(),Xe(s)}i()}),O(t.scroller,"touchcancel",i),O(t.scroller,"scroll",function(){t.scroller.clientHeight&&(cn(e,t.scroller.scrollTop),wr(e,t.scroller.scrollLeft,!0),de(e,"scroll",e))}),O(t.scroller,"mousewheel",function(s){return fl(e,s)}),O(t.scroller,"DOMMouseScroll",function(s){return fl(e,s)}),O(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){we(e,s)||qt(s)},over:function(s){we(e,s)||(Es(e,s),qt(s))},start:function(s){return Os(e,s)},drop:ze(e,As),leave:function(s){we(e,s)||Hl(e)}};var a=t.input.getField();O(a,"keyup",function(s){return Zl.call(e,s)}),O(a,"keydown",ze(e,jl)),O(a,"keypress",ze(e,Ql)),O(a,"focus",function(s){return _i(e,s)}),O(a,"blur",function(s){return Pr(e,s)})}var oo=[];ge.defineInitHook=function(e){return oo.push(e)};function Nn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=rn(e,t).state:n="prev");var l=e.options.tabSize,a=P(i,t),s=_(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],c;if(!r&&!/\S/.test(a.text))c=0,n="not";else if(n=="smart"&&(c=i.mode.indent(o,a.text.slice(u.length),a.text),c==se||c>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?c=_(P(i,t-1).text,null,l):c=0:n=="add"?c=s+e.options.indentUnit:n=="subtract"?c=s-e.options.indentUnit:typeof n=="number"&&(c=s+n),c=Math.max(0,c);var h="",b=0;if(e.options.indentWithTabs)for(var y=Math.floor(c/l);y;--y)b+=l,h+=" ";if(bl,s=en(t),u=null;if(a&&r.ranges.length>1)if(Ot&&Ot.text.join(` +`)==t){if(r.ranges.length%Ot.text.length==0){u=[];for(var c=0;c=0;b--){var y=r.ranges[b],w=y.from(),k=y.to();y.empty()&&(n&&n>0?w=v(w.line,w.ch-n):e.state.overwrite&&!a?k=v(k.line,Math.min(P(o,k.line).text.length,k.ch+te(s).length)):a&&Ot&&Ot.lineWise&&Ot.text.join(` +`)==s.join(` +`)&&(w=k=v(w.line,0)));var T={from:w,to:k,text:u?u[b%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};Br(e.doc,T),Pe(e,"inputRead",e,T)}t&&!a&&ia(e,t),zr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function na(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&ht(t,function(){return lo(t,n,0,null,"paste")}),!0}function ia(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=Nn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(P(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Nn(e,i.head.line,"smart"));l&&Pe(e,"electricInput",e,i.head.line)}}}function oa(e){for(var t=[],n=[],r=0;ro&&(Nn(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&zr(this));else{var s=a.from(),u=a.to(),c=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var h=c;h0&&Vi(this.doc,l,new ae(s,b[l].to()),pe)}}}),getTokenAt:function(r,i){return go(this,r,i)},getLineTokens:function(r,i){return go(this,v(r),i,!0)},getTokenTypeAt:function(r){r=Z(this.doc,r);var i=ho(this,P(this.doc,r.line)),o=0,l=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=o+l>>1;if((u?i[u*2-1]:0)>=a)l=u;else if(i[u*2+1]s&&(r=s,l=!0),a=P(this.doc,r)}else a=r;return qn(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-Qt(a):0)},defaultTextHeight:function(){return Wr(this.display)},defaultCharWidth:function(){return Fr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,l,a){var s=this.display;r=Nt(this,Z(this.doc,r));var u=r.bottom,c=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")u=r.top;else if(l=="above"||l=="near"){var h=Math.max(s.wrapper.clientHeight,this.doc.height),b=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+i.offsetHeight>h)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=h&&(u=r.bottom),c+i.offsetWidth>b&&(c=b-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(c=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?c=0:a=="middle"&&(c=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=c+"px"),o&&es(this,{left:c,top:u,right:c+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:Ve(jl),triggerOnKeyPress:Ve(Ql),triggerOnKeyUp:Zl,triggerOnMouseDown:Ve(Jl),execCommand:function(r){if(Ln.hasOwnProperty(r))return Ln[r].call(null,this)},triggerElectric:Ve(function(r){ia(this,r)}),findPosH:function(r,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=Z(this.doc,r),u=0;u0&&c(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&Fi(this),de(this,"refresh",this)}),swapDoc:Ve(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),pl(this,r),sn(this),this.display.input.reset(),fn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Pe(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Je(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,l){e.registerHelper(r,i,l),n[r]._global.push({pred:o,val:l})}}function ao(e,t,n,r,i){var o=t,l=n,a=P(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var E=t.line+s;return E=e.first+e.size?!1:(t=new v(E,t.ch,t.sticky),a=P(e,E))}function c(E){var A;if(r=="codepoint"){var I=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(I))A=null;else{var B=n>0?I>=55296&&I<56320:I>=56320&&I<57343;A=new v(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(B?2:1))),-n)}}else i?A=Hs(e.cm,a,t,n):A=eo(a,t,n);if(A==null)if(!E&&u())t=to(i,e.cm,a,t.line,s);else return!1;else t=A;return!0}if(r=="char"||r=="codepoint")c();else if(r=="column")c(!0);else if(r=="word"||r=="group")for(var h=null,b=r=="group",y=e.cm&&e.cm.getHelper(t,"wordChars"),w=!0;!(n<0&&!c(!w));w=!1){var k=a.text.charAt(t.ch)||` +`,T=Gt(k,y)?"w":b&&k==` +`?"n":!b||/\s/.test(k)?null:"p";if(b&&!w&&!T&&(T="s"),h&&h!=T){n<0&&(n=1,c(),t.sticky="after");break}if(T&&(h=T),n>0&&!c(!w))break}var N=ii(e,t,o,l,!0);return j(o,N)&&(N.hitSide=!0),N}function sa(e,t,n,r){var i=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,Fe(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(a-.5*Wr(e.display),3);l=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(l=n>0?t.bottom+3:t.top-3);for(var u;u=Oi(e,o,l),!!u.outside;){if(n<0?l<=0:l>=i.height){u.hitSide=!0;break}l+=n*5}return u}var fe=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new J,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};fe.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,la(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}O(i,"paste",function(a){!o(a)||we(r,a)||na(a,r)||Y<=11&&setTimeout(ze(r,function(){return t.updateFromDOM()}),20)}),O(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),O(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),O(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),O(i,"touchstart",function(){return n.forceCompositionEnd()}),O(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||we(r,a))){if(r.somethingSelected())fi({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=oa(r);fi({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,pe),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Ot.text.join(` +`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var c=aa(),h=c.firstChild;r.display.lineSpace.insertBefore(c,r.display.lineSpace.firstChild),h.value=Ot.text.join(` +`);var b=g(i.ownerDocument);K(h),setTimeout(function(){r.display.lineSpace.removeChild(c),b.focus(),b==i&&n.showPrimarySelection()},50)}}O(i,"copy",l),O(i,"cut",l)},fe.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},fe.prototype.prepareSelection=function(){var e=Jo(this.cm,!1);return e.focus=g(this.div.ownerDocument)==this.div,e},fe.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},fe.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},fe.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&ua(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=v(r.line-1,P(e.doc,r.line-1).length)),i.ch==P(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=xr(e,r.line))==0?(l=le(t.view[0].line),a=t.view[0].node):(l=le(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=xr(e,i.line),u,c;if(s==t.view.length-1?(u=t.viewTo-1,c=t.lineDiv.lastChild):(u=le(t.view[s+1].line)-1,c=t.view[s+1].node.previousSibling),!a)return!1;for(var h=e.doc.splitLines(ou(e,a,c,l,u)),b=jt(e.doc,v(l,0),v(u,P(e.doc,u).text.length));h.length>1&&b.length>1;)if(te(h)==te(b))h.pop(),b.pop(),u--;else if(h[0]==b[0])h.shift(),b.shift(),l++;else break;for(var y=0,w=0,k=h[0],T=b[0],N=Math.min(k.length,T.length);yr.ch&&E.charCodeAt(E.length-w-1)==A.charCodeAt(A.length-w-1);)y--,w++;h[h.length-1]=E.slice(0,E.length-w).replace(/^\u200b+/,""),h[0]=h[0].slice(y).replace(/\u200b+$/,"");var B=v(l,y),R=v(u,b.length?te(b).length-w:0);if(h.length>1||h[0]||x(B,R))return Ur(e.doc,h,B,R,"+input"),!0},fe.prototype.ensurePolled=function(){this.forceCompositionEnd()},fe.prototype.reset=function(){this.forceCompositionEnd()},fe.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},fe.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},fe.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&ht(this.cm,function(){return tt(e.cm)})},fe.prototype.setUneditable=function(e){e.contentEditable="false"},fe.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ze(this.cm,lo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},fe.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},fe.prototype.onContextMenu=function(){},fe.prototype.resetPosition=function(){},fe.prototype.needsContentAttribute=!0;function ua(e,t){var n=Di(e,t.line);if(!n||n.hidden)return null;var r=P(e.doc,t.line),i=zo(n,r,t.line),o=kt(r,e.doc.direction),l="left";if(o){var a=wt(o,t.ch);l=a%2?"right":"left"}var s=Ro(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function iu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Yr(e,t){return t&&(e.bad=!0),e}function ou(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(y){return function(w){return w.id==y}}function c(){l&&(o+=a,s&&(o+=a),l=s=!1)}function h(y){y&&(c(),o+=y)}function b(y){if(y.nodeType==1){var w=y.getAttribute("cm-text");if(w){h(w);return}var k=y.getAttribute("cm-marker"),T;if(k){var N=e.findMarks(v(r,0),v(i+1,0),u(+k));N.length&&(T=N[0].find(0))&&h(jt(e.doc,T.from,T.to).join(a));return}if(y.getAttribute("contenteditable")=="false")return;var E=/^(pre|div|p|li|table|br)$/i.test(y.nodeName);if(!/^br$/i.test(y.nodeName)&&y.textContent.length==0)return;E&&c();for(var A=0;A=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),O(i,"paste",function(l){we(r,l)||na(l,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(l){if(!we(r,l)){if(r.somethingSelected())fi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=oa(r);fi({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,pe):(n.prevInput="",i.value=a.text.join(` +`),K(i))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}O(i,"cut",o),O(i,"copy",o),O(e.scroller,"paste",function(l){if(!(Jt(e,l)||we(r,l))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),O(e.lineSpace,"selectstart",function(l){Jt(e,l)||Xe(l)}),O(i,"compositionstart",function(){var l=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),O(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Le.prototype.createField=function(e){this.wrapper=aa(),this.textarea=this.wrapper.firstChild},Le.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Le.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Jo(e);if(e.options.moveInputWithCursor){var i=Nt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},Le.prototype.showSelection=function(e){var t=this.cm,n=t.display;F(n.cursorDiv,e.cursors),F(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Le.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&K(this.textarea),L&&Y>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",L&&Y>=9&&(this.hasSelection=null));this.resetting=!1}},Le.prototype.getField=function(){return this.textarea},Le.prototype.supportsTouch=function(){return!1},Le.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!We||g(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Le.prototype.blur=function(){this.textarea.blur()},Le.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Le.prototype.receivedFocus=function(){this.slowPoll()},Le.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Le.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},Le.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||rr(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(L&&Y>=9&&this.hasSelection===i||me&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="โ€‹"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l1e3||i.indexOf(` +`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Le.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Le.prototype.onKeyPress=function(){L&&Y>=9&&(this.hasSelection=null),this.fastPoll()},Le.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=br(n,e),l=r.scroller.scrollTop;if(!o||Ne)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&&ze(n,Ye)(n.doc,ur(o),pe);var s=i.style.cssText,u=t.wrapper.style.cssText,c=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(e.clientY-c.top-5)+"px; left: "+(e.clientX-c.left-5)+`px; + z-index: 1000; background: `+(L?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var h;W&&(h=i.ownerDocument.defaultView.scrollY),r.input.focus(),W&&i.ownerDocument.defaultView.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function b(){if(i.selectionStart!=null){var k=n.somethingSelected(),T="โ€‹"+(k?i.value:"");i.value="โ‡š",i.value=T,t.prevInput=k?"":"โ€‹",i.selectionStart=1,i.selectionEnd=T.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,L&&Y<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!L||L&&Y<9)&&b();var k=0,T=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="โ€‹"?ze(n,Ml)(n):k++<10?r.detectingSelectAll=setTimeout(T,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(T,200)}}if(L&&Y>=9&&b(),Tt){qt(e);var w=function(){qe(window,"mouseup",w),setTimeout(y,20)};O(window,"mouseup",w)}else setTimeout(y,50)},Le.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Le.prototype.setUneditable=function(){},Le.prototype.needsContentAttribute=!1;function au(e,t){if(t=t?G(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=g(e.ownerDocument);t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(O(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(qe(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=ge(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function su(e){e.off=qe,e.on=O,e.wheelEventPixels=vs,e.Doc=rt,e.splitLines=en,e.countColumn=_,e.findColumn=bt,e.isWordChar=tr,e.Pass=se,e.signal=de,e.Line=Or,e.changeEnd=fr,e.scrollbarModel=nl,e.Pos=v,e.cmpPos=x,e.modes=Mt,e.mimeModes=nr,e.resolveMode=ct,e.getMode=Xt,e.modeExtensions=ir,e.extendMode=Pn,e.copyState=Yt,e.startState=tn,e.innerMode=or,e.commands=Ln,e.keyMap=$t,e.keyName=Kl,e.isModifierKey=Bl,e.lookupKey=Gr,e.normalizeKeyMap=zs,e.StringStream=ke,e.SharedTextMarker=kn,e.TextMarker=hr,e.LineWidget=wn,e.e_preventDefault=Xe,e.e_stopPropagation=gr,e.e_stop=qt,e.addClass=C,e.contains=m,e.rmClass=ve,e.keyNames=dr}$s(ge),nu(ge);var uu="iter insert remove copy getEditor constructor".split(" ");for(var hi in rt.prototype)rt.prototype.hasOwnProperty(hi)&&$(uu,hi)<0&&(ge.prototype[hi]=function(e){return function(){return e.apply(this.doc,arguments)}}(rt.prototype[hi]));return Je(rt),ge.inputStyles={textarea:Le,contenteditable:fe},ge.defineMode=function(e){!ge.defaults.mode&&e!="null"&&(ge.defaults.mode=e),Fn.apply(this,arguments)},ge.defineMIME=Nr,ge.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ge.defineMIME("text/plain","null"),ge.defineExtension=function(e,t){ge.prototype[e]=t},ge.defineDocExtension=function(e,t){rt.prototype[e]=t},ge.fromTextArea=au,su(ge),ge.version="5.65.9",ge})})(fa);var di=fa.exports;const du=fu(di);(function(An,pi){(function(X){X(di)})(function(X){X.defineMode("javascript",function(lt,ue){var Be=lt.indentUnit,Lt=ue.statementIndent,ye=ue.jsonld,L=ue.json||ye,Y=ue.trackScope!==!1,W=ue.typescript,Ue=ue.wordCharacters||/[\w$\xa1-\uffff]/,Ze=function(){function f(Ee){return{type:Ee,style:"keyword"}}var d=f("keyword a"),v=f("keyword b"),x=f("keyword c"),j=f("keyword d"),ne=f("operator"),oe={type:"atom",style:"atom"};return{if:f("if"),while:d,with:d,else:v,do:v,try:v,finally:v,return:j,break:j,continue:j,new:f("new"),delete:x,void:x,throw:x,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:ne,typeof:ne,instanceof:ne,true:oe,false:oe,null:oe,undefined:oe,NaN:oe,Infinity:oe,this:f("this"),class:f("class"),super:f("atom"),yield:x,export:f("export"),import:f("import"),extends:x,await:x}}(),at=/[+\-*&%=<>!?|~^@]/,Ne=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function mt(f){for(var d=!1,v,x=!1;(v=f.next())!=null;){if(!d){if(v=="/"&&!x)return;v=="["?x=!0:x&&v=="]"&&(x=!1)}d=!d&&v=="\\"}}var Te,Ge;function ie(f,d,v){return Te=f,Ge=v,d}function Ce(f,d){var v=f.next();if(v=='"'||v=="'")return d.tokenize=We(v),d.tokenize(f,d);if(v=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return ie("number","number");if(v=="."&&f.match(".."))return ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(v))return ie(v);if(v=="="&&f.eat(">"))return ie("=>","operator");if(v=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return ie("number","number");if(/\d/.test(v))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),ie("number","number");if(v=="/")return f.eat("*")?(d.tokenize=me,me(f,d)):f.eat("/")?(f.skipToEnd(),ie("comment","comment")):Pt(f,d,1)?(mt(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ie("regexp","string-2")):(f.eat("="),ie("operator","operator",f.current()));if(v=="`")return d.tokenize=st,st(f,d);if(v=="#"&&f.peek()=="!")return f.skipToEnd(),ie("meta","meta");if(v=="#"&&f.eatWhile(Ue))return ie("variable","property");if(v=="<"&&f.match("!--")||v=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),ie("comment","comment");if(at.test(v))return(v!=">"||!d.lexical||d.lexical.type!=">")&&(f.eat("=")?(v=="!"||v=="=")&&f.eat("="):/[<>*+\-|&?]/.test(v)&&(f.eat(v),v==">"&&f.eat(v))),v=="?"&&f.eat(".")?ie("."):ie("operator","operator",f.current());if(Ue.test(v)){f.eatWhile(Ue);var x=f.current();if(d.lastType!="."){if(Ze.propertyIsEnumerable(x)){var j=Ze[x];return ie(j.type,j.style,x)}if(x=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return ie("async","keyword",x)}return ie("variable","variable",x)}}function We(f){return function(d,v){var x=!1,j;if(ye&&d.peek()=="@"&&d.match(Ne))return v.tokenize=Ce,ie("jsonld-keyword","meta");for(;(j=d.next())!=null&&!(j==f&&!x);)x=!x&&j=="\\";return x||(v.tokenize=Ce),ie("string","string")}}function me(f,d){for(var v=!1,x;x=f.next();){if(x=="/"&&v){d.tokenize=Ce;break}v=x=="*"}return ie("comment","comment")}function st(f,d){for(var v=!1,x;(x=f.next())!=null;){if(!v&&(x=="`"||x=="$"&&f.eat("{"))){d.tokenize=Ce;break}v=!v&&x=="\\"}return ie("quasi","string-2",f.current())}var he="([{}])";function be(f,d){d.fatArrowAt&&(d.fatArrowAt=null);var v=f.string.indexOf("=>",f.start);if(!(v<0)){if(W){var x=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,v));x&&(v=x.index)}for(var j=0,ne=!1,oe=v-1;oe>=0;--oe){var Ee=f.string.charAt(oe),gt=he.indexOf(Ee);if(gt>=0&><3){if(!j){++oe;break}if(--j==0){Ee=="("&&(ne=!0);break}}else if(gt>=3&><6)++j;else if(Ue.test(Ee))ne=!0;else if(/["'\/`]/.test(Ee))for(;;--oe){if(oe==0)return;var Z=f.string.charAt(oe-1);if(Z==Ee&&f.string.charAt(oe-2)!="\\"){oe--;break}}else if(ne&&!j){++oe;break}}ne&&!j&&(d.fatArrowAt=oe)}}var Bt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Tt(f,d,v,x,j,ne){this.indented=f,this.column=d,this.type=v,this.prev=j,this.info=ne,x!=null&&(this.align=x)}function ut(f,d){if(!Y)return!1;for(var v=f.localVars;v;v=v.next)if(v.name==d)return!0;for(var x=f.context;x;x=x.prev)for(var v=x.vars;v;v=v.next)if(v.name==d)return!0}function ve(f,d,v,x,j){var ne=f.cc;for(S.state=f,S.stream=j,S.marked=null,S.cc=ne,S.style=d,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var oe=ne.length?ne.pop():L?se:$;if(oe(v,x)){for(;ne.length&&ne[ne.length-1].lex;)ne.pop()();return S.marked?S.marked:v=="variable"&&ut(f,x)?"variable-2":d}}}var S={state:null,column:null,marked:null,cc:null};function F(){for(var f=arguments.length-1;f>=0;f--)S.cc.push(arguments[f])}function p(){return F.apply(null,arguments),!0}function M(f,d){for(var v=d;v;v=v.next)if(v.name==f)return!0;return!1}function D(f){var d=S.state;if(S.marked="def",!!Y){if(d.context){if(d.lexical.info=="var"&&d.context&&d.context.block){var v=m(f,d.context);if(v!=null){d.context=v;return}}else if(!M(f,d.localVars)){d.localVars=new z(f,d.localVars);return}}ue.globalVars&&!M(f,d.globalVars)&&(d.globalVars=new z(f,d.globalVars))}}function m(f,d){if(d)if(d.block){var v=m(f,d.prev);return v?v==d.prev?d:new C(v,d.vars,!0):null}else return M(f,d.vars)?d:new C(d.prev,new z(f,d.vars),!1);else return null}function g(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function C(f,d,v){this.prev=f,this.vars=d,this.block=v}function z(f,d){this.name=f,this.next=d}var K=new z("this",new z("arguments",null));function Q(){S.state.context=new C(S.state.context,S.state.localVars,!1),S.state.localVars=K}function Fe(){S.state.context=new C(S.state.context,S.state.localVars,!0),S.state.localVars=null}Q.lex=Fe.lex=!0;function Ae(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}Ae.lex=!0;function G(f,d){var v=function(){var x=S.state,j=x.indented;if(x.lexical.type=="stat")j=x.lexical.indented;else for(var ne=x.lexical;ne&&ne.type==")"&&ne.align;ne=ne.prev)j=ne.indented;x.lexical=new Tt(j,S.stream.column(),f,null,x.lexical,d)};return v.lex=!0,v}function _(){var f=S.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}_.lex=!0;function J(f){function d(v){return v==f?p():f==";"||v=="}"||v==")"||v=="]"?F():p(d)}return d}function $(f,d){return f=="var"?p(G("vardef",d),qt,J(";"),_):f=="keyword a"?p(G("form"),Et,$,_):f=="keyword b"?p(G("form"),$,_):f=="keyword d"?S.stream.match(/^\s*$/,!1)?p():p(G("stat"),bt,J(";"),_):f=="debugger"?p(J(";")):f=="{"?p(G("}"),Fe,xt,_,Ae):f==";"?p():f=="if"?(S.state.lexical.info=="else"&&S.state.cc[S.state.cc.length-1]==_&&S.state.cc.pop()(),p(G("form"),Et,$,_,Dr)):f=="function"?p(Wt):f=="for"?p(G("form"),Fe,In,$,Ae,_):f=="class"||W&&d=="interface"?(S.marked="keyword",p(G("form",f=="class"?f:d),Fn,_)):f=="variable"?W&&d=="declare"?(S.marked="keyword",p($)):W&&(d=="module"||d=="enum"||d=="type")&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword",d=="enum"?p(Ar):d=="type"?p(Wn,J("operator"),O,J(";")):p(G("form"),et,J("{"),G("}"),xt,_,_)):W&&d=="namespace"?(S.marked="keyword",p(G("form"),se,$,_)):W&&d=="abstract"?(S.marked="keyword",p($)):p(G("stat"),Gt):f=="switch"?p(G("form"),Et,J("{"),G("}","switch"),Fe,xt,_,_,Ae):f=="case"?p(se,J(":")):f=="default"?p(J(":")):f=="catch"?p(G("form"),Q,Mr,$,_,Ae):f=="export"?p(G("stat"),ir,_):f=="import"?p(G("stat"),Yt,_):f=="async"?p($):d=="@"?p(se,$):F(G("stat"),se,J(";"),_)}function Mr(f){if(f=="(")return p(Mt,J(")"))}function se(f,d){return It(f,d,!1)}function pe(f,d){return It(f,d,!0)}function Et(f){return f!="("?F():p(G(")"),bt,J(")"),_)}function It(f,d,v){if(S.state.fatArrowAt==S.stream.start){var x=v?Kt:Oe;if(f=="(")return p(Q,G(")"),V(Mt,")"),_,J("=>"),x,Ae);if(f=="variable")return F(Q,et,J("=>"),x,Ae)}var j=v?pt:ft;return Bt.hasOwnProperty(f)?p(j):f=="function"?p(Wt,j):f=="class"||W&&d=="interface"?(S.marked="keyword",p(G("form"),nr,_)):f=="keyword c"||f=="async"?p(v?pe:se):f=="("?p(G(")"),bt,J(")"),_,j):f=="operator"||f=="spread"?p(v?pe:se):f=="["?p(G("]"),jt,_,j):f=="{"?vt(q,"}",null,j):f=="quasi"?F(te,j):f=="new"?p(vr(v)):p()}function bt(f){return f.match(/[;\}\)\],]/)?F():F(se)}function ft(f,d){return f==","?p(bt):pt(f,d,!1)}function pt(f,d,v){var x=v==!1?ft:pt,j=v==!1?se:pe;if(f=="=>")return p(Q,v?Kt:Oe,Ae);if(f=="operator")return/\+\+|--/.test(d)||W&&d=="!"?p(x):W&&d=="<"&&S.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?p(G(">"),V(O,">"),_,x):d=="?"?p(se,J(":"),j):p(j);if(f=="quasi")return F(te,x);if(f!=";"){if(f=="(")return vt(pe,")","call",x);if(f==".")return p(U,x);if(f=="[")return p(G("]"),bt,J("]"),_,x);if(W&&d=="as")return S.marked="keyword",p(O,x);if(f=="regexp")return S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),p(j)}}function te(f,d){return f!="quasi"?F():d.slice(d.length-2)!="${"?p(te):p(bt,Ut)}function Ut(f){if(f=="}")return S.marked="string-2",S.state.tokenize=st,p(te)}function Oe(f){return be(S.stream,S.state),F(f=="{"?$:se)}function Kt(f){return be(S.stream,S.state),F(f=="{"?$:pe)}function vr(f){return function(d){return d=="."?p(f?tr:Qr):d=="variable"&&W?p(Xe,f?pt:ft):F(f?pe:se)}}function Qr(f,d){if(d=="target")return S.marked="keyword",p(ft)}function tr(f,d){if(d=="target")return S.marked="keyword",p(pt)}function Gt(f){return f==":"?p(_,$):F(ft,J(";"),_)}function U(f){if(f=="variable")return S.marked="property",p()}function q(f,d){if(f=="async")return S.marked="property",p(q);if(f=="variable"||S.style=="keyword"){if(S.marked="property",d=="get"||d=="set")return p(H);var v;return W&&S.state.fatArrowAt==S.stream.start&&(v=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+v[0].length),p(re)}else{if(f=="number"||f=="string")return S.marked=ye?"property":S.style+" property",p(re);if(f=="jsonld-keyword")return p(re);if(W&&g(d))return S.marked="keyword",p(q);if(f=="[")return p(se,wt,J("]"),re);if(f=="spread")return p(pe,re);if(d=="*")return S.marked="keyword",p(q);if(f==":")return F(re)}}function H(f){return f!="variable"?F(re):(S.marked="property",p(Wt))}function re(f){if(f==":")return p(pe);if(f=="(")return F(Wt)}function V(f,d,v){function x(j,ne){if(v?v.indexOf(j)>-1:j==","){var oe=S.state.lexical;return oe.info=="call"&&(oe.pos=(oe.pos||0)+1),p(function(Ee,gt){return Ee==d||gt==d?F():F(f)},x)}return j==d||ne==d?p():v&&v.indexOf(";")>-1?F(f):p(J(d))}return function(j,ne){return j==d||ne==d?p():F(f,x)}}function vt(f,d,v){for(var x=3;x"),O);if(f=="quasi")return F(we,Je)}function Jr(f){if(f=="=>")return p(O)}function qe(f){return f.match(/[\}\)\]]/)?p():f==","||f==";"?p(qe):F(de,qe)}function de(f,d){if(f=="variable"||S.style=="keyword")return S.marked="property",p(de);if(d=="?"||f=="number"||f=="string")return p(de);if(f==":")return p(O);if(f=="[")return p(J("variable"),vi,J("]"),de);if(f=="(")return F(Ft,de);if(!f.match(/[;\}\)\],]/))return p()}function we(f,d){return f!="quasi"?F():d.slice(d.length-2)!="${"?p(we):p(O,En)}function En(f){if(f=="}")return S.marked="string-2",S.state.tokenize=st,p(we)}function Qe(f,d){return f=="variable"&&S.stream.match(/^\s*[?:]/,!1)||d=="?"?p(Qe):f==":"?p(O):f=="spread"?p(Qe):F(O)}function Je(f,d){if(d=="<")return p(G(">"),V(O,">"),_,Je);if(d=="|"||f=="."||d=="&")return p(O);if(f=="[")return p(O,J("]"),Je);if(d=="extends"||d=="implements")return S.marked="keyword",p(O);if(d=="?")return p(O,J(":"),O)}function Xe(f,d){if(d=="<")return p(G(">"),V(O,">"),_,Je)}function gr(){return F(O,Vr)}function Vr(f,d){if(d=="=")return p(O)}function qt(f,d){return d=="enum"?(S.marked="keyword",p(Ar)):F(et,wt,St,yi)}function et(f,d){if(W&&g(d))return S.marked="keyword",p(et);if(f=="variable")return D(d),p();if(f=="spread")return p(et);if(f=="[")return vt(gi,"]");if(f=="{")return vt($r,"}")}function $r(f,d){return f=="variable"&&!S.stream.match(/^\s*:/,!1)?(D(d),p(St)):(f=="variable"&&(S.marked="property"),f=="spread"?p(et):f=="}"?F():f=="["?p(se,J("]"),J(":"),$r):p(J(":"),et,St))}function gi(){return F(et,St)}function St(f,d){if(d=="=")return p(pe)}function yi(f){if(f==",")return p(qt)}function Dr(f,d){if(f=="keyword b"&&d=="else")return p(G("form","else"),$,_)}function In(f,d){if(d=="await")return p(In);if(f=="(")return p(G(")"),en,_)}function en(f){return f=="var"?p(qt,rr):f=="variable"?p(rr):F(rr)}function rr(f,d){return f==")"?p():f==";"?p(rr):d=="in"||d=="of"?(S.marked="keyword",p(se,rr)):F(se,rr)}function Wt(f,d){if(d=="*")return S.marked="keyword",p(Wt);if(f=="variable")return D(d),p(Wt);if(f=="(")return p(Q,G(")"),V(Mt,")"),_,kt,$,Ae);if(W&&d=="<")return p(G(">"),V(gr,">"),_,Wt)}function Ft(f,d){if(d=="*")return S.marked="keyword",p(Ft);if(f=="variable")return D(d),p(Ft);if(f=="(")return p(Q,G(")"),V(Mt,")"),_,kt,Ae);if(W&&d=="<")return p(G(">"),V(gr,">"),_,Ft)}function Wn(f,d){if(f=="keyword"||f=="variable")return S.marked="type",p(Wn);if(d=="<")return p(G(">"),V(gr,">"),_)}function Mt(f,d){return d=="@"&&p(se,Mt),f=="spread"?p(Mt):W&&g(d)?(S.marked="keyword",p(Mt)):W&&f=="this"?p(wt,St):F(et,wt,St)}function nr(f,d){return f=="variable"?Fn(f,d):Nr(f,d)}function Fn(f,d){if(f=="variable")return D(d),p(Nr)}function Nr(f,d){if(d=="<")return p(G(">"),V(gr,">"),_,Nr);if(d=="extends"||d=="implements"||W&&f==",")return d=="implements"&&(S.marked="keyword"),p(W?O:se,Nr);if(f=="{")return p(G("}"),ct,_)}function ct(f,d){if(f=="async"||f=="variable"&&(d=="static"||d=="get"||d=="set"||W&&g(d))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return S.marked="keyword",p(ct);if(f=="variable"||S.style=="keyword")return S.marked="property",p(Xt,ct);if(f=="number"||f=="string")return p(Xt,ct);if(f=="[")return p(se,wt,J("]"),Xt,ct);if(d=="*")return S.marked="keyword",p(ct);if(W&&f=="(")return F(Ft,ct);if(f==";"||f==",")return p(ct);if(f=="}")return p();if(d=="@")return p(se,ct)}function Xt(f,d){if(d=="!"||d=="?")return p(Xt);if(f==":")return p(O,St);if(d=="=")return p(pe);var v=S.state.lexical.prev,x=v&&v.info=="interface";return F(x?Ft:Wt)}function ir(f,d){return d=="*"?(S.marked="keyword",p(P,J(";"))):d=="default"?(S.marked="keyword",p(se,J(";"))):f=="{"?p(V(Pn,"}"),P,J(";")):F($)}function Pn(f,d){if(d=="as")return S.marked="keyword",p(J("variable"));if(f=="variable")return F(pe,Pn)}function Yt(f){return f=="string"?p():f=="("?F(se):f=="."?F(ft):F(or,tn,P)}function or(f,d){return f=="{"?vt(or,"}"):(f=="variable"&&D(d),d=="*"&&(S.marked="keyword"),p(ke))}function tn(f){if(f==",")return p(or,tn)}function ke(f,d){if(d=="as")return S.marked="keyword",p(or)}function P(f,d){if(d=="from")return S.marked="keyword",p(se)}function jt(f){return f=="]"?p():F(V(pe,"]"))}function Ar(){return F(G("form"),et,J("{"),G("}"),V(Ct,"}"),_,_)}function Ct(){return F(et,St)}function le(f,d){return f.lastType=="operator"||f.lastType==","||at.test(d.charAt(0))||/[,.]/.test(d.charAt(0))}function Pt(f,d,v){return d.tokenize==Ce&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(d.lastType)||d.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(v||0)))}return{startState:function(f){var d={tokenize:Ce,lastType:"sof",cc:[],lexical:new Tt((f||0)-Be,0,"block",!1),localVars:ue.localVars,context:ue.localVars&&new C(null,null,!1),indented:f||0};return ue.globalVars&&typeof ue.globalVars=="object"&&(d.globalVars=ue.globalVars),d},token:function(f,d){if(f.sol()&&(d.lexical.hasOwnProperty("align")||(d.lexical.align=!1),d.indented=f.indentation(),be(f,d)),d.tokenize!=me&&f.eatSpace())return null;var v=d.tokenize(f,d);return Te=="comment"?v:(d.lastType=Te=="operator"&&(Ge=="++"||Ge=="--")?"incdec":Te,ve(d,v,Te,Ge,f))},indent:function(f,d){if(f.tokenize==me||f.tokenize==st)return X.Pass;if(f.tokenize!=Ce)return 0;var v=d&&d.charAt(0),x=f.lexical,j;if(!/^\s*else\b/.test(d))for(var ne=f.cc.length-1;ne>=0;--ne){var oe=f.cc[ne];if(oe==_)x=x.prev;else if(oe!=Dr&&oe!=Ae)break}for(;(x.type=="stat"||x.type=="form")&&(v=="}"||(j=f.cc[f.cc.length-1])&&(j==ft||j==pt)&&!/^[,\.=+\-*:?[\(]/.test(d));)x=x.prev;Lt&&x.type==")"&&x.prev.type=="stat"&&(x=x.prev);var Ee=x.type,gt=v==Ee;return Ee=="vardef"?x.indented+(f.lastType=="operator"||f.lastType==","?x.info.length+1:0):Ee=="form"&&v=="{"?x.indented:Ee=="form"?x.indented+Be:Ee=="stat"?x.indented+(le(f,d)?Lt||Be:0):x.info=="switch"&&!gt&&ue.doubleIndentSwitch!=!1?x.indented+(/^(?:case|default)\b/.test(d)?Be:2*Be):x.align?x.column+(gt?0:1):x.indented+(gt?0:Be)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:L?null:"/*",blockCommentEnd:L?null:"*/",blockCommentContinue:L?null:" * ",lineComment:L?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:L?"json":"javascript",jsonldMode:ye,jsonMode:L,expressionAllowed:Pt,skipExpression:function(f){ve(f,"atom","atom","true",new X.StringStream("",2,null))}}}),X.registerHelper("wordChars","javascript",/[\w$]/),X.defineMIME("text/javascript","javascript"),X.defineMIME("text/ecmascript","javascript"),X.defineMIME("application/javascript","javascript"),X.defineMIME("application/x-javascript","javascript"),X.defineMIME("application/ecmascript","javascript"),X.defineMIME("application/json",{name:"javascript",json:!0}),X.defineMIME("application/x-json",{name:"javascript",json:!0}),X.defineMIME("application/manifest+json",{name:"javascript",json:!0}),X.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),X.defineMIME("text/typescript",{name:"javascript",typescript:!0}),X.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();(function(An,pi){(function(X){X(di)})(function(X){function lt(Y){return new RegExp("^(("+Y.join(")|(")+"))\\b")}var ue=lt(["and","or","not","is"]),Be=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],Lt=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];X.registerHelper("hintWords","python",Be.concat(Lt).concat(["exec","print"]));function ye(Y){return Y.scopes[Y.scopes.length-1]}X.defineMode("python",function(Y,W){for(var Ue="error",Ze=W.delimiters||W.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,at=[W.singleOperators,W.doubleOperators,W.doubleDelimiters,W.tripleDelimiters,W.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],Ne=0;Neg?ut(D):C0&&S(M,D)&&(z+=" "+Ue),z}}return be(M,D)}function be(M,D,m){if(M.eatSpace())return null;if(!m&&M.match(/^#.*/))return"comment";if(M.match(/^[0-9\.]/,!1)){var g=!1;if(M.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(g=!0),M.match(/^[\d_]+\.\d*/)&&(g=!0),M.match(/^\.\d+/)&&(g=!0),g)return M.eat(/J/i),"number";var C=!1;if(M.match(/^0x[0-9a-f_]+/i)&&(C=!0),M.match(/^0b[01_]+/i)&&(C=!0),M.match(/^0o[0-7_]+/i)&&(C=!0),M.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(M.eat(/J/i),C=!0),M.match(/^0(?![\dx])/i)&&(C=!0),C)return M.eat(/L/i),"number"}if(M.match(We)){var z=M.current().toLowerCase().indexOf("f")!==-1;return z?(D.tokenize=Bt(M.current(),D.tokenize),D.tokenize(M,D)):(D.tokenize=Tt(M.current(),D.tokenize),D.tokenize(M,D))}for(var K=0;K=0;)M=M.substr(1);var m=M.length==1,g="string";function C(K){return function(Q,Fe){var Ae=be(Q,Fe,!0);return Ae=="punctuation"&&(Q.current()=="{"?Fe.tokenize=C(K+1):Q.current()=="}"&&(K>1?Fe.tokenize=C(K-1):Fe.tokenize=z)),Ae}}function z(K,Q){for(;!K.eol();)if(K.eatWhile(/[^'"\{\}\\]/),K.eat("\\")){if(K.next(),m&&K.eol())return g}else{if(K.match(M))return Q.tokenize=D,g;if(K.match("{{"))return g;if(K.match("{",!1))return Q.tokenize=C(0),K.current()?g:Q.tokenize(K,Q);if(K.match("}}"))return g;if(K.match("}"))return Ue;K.eat(/['"]/)}if(m){if(W.singleLineStringErrors)return Ue;Q.tokenize=D}return g}return z.isString=!0,z}function Tt(M,D){for(;"rubf".indexOf(M.charAt(0).toLowerCase())>=0;)M=M.substr(1);var m=M.length==1,g="string";function C(z,K){for(;!z.eol();)if(z.eatWhile(/[^'"\\]/),z.eat("\\")){if(z.next(),m&&z.eol())return g}else{if(z.match(M))return K.tokenize=D,g;z.eat(/['"]/)}if(m){if(W.singleLineStringErrors)return Ue;K.tokenize=D}return g}return C.isString=!0,C}function ut(M){for(;ye(M).type!="py";)M.scopes.pop();M.scopes.push({offset:ye(M).offset+Y.indentUnit,type:"py",align:null})}function ve(M,D,m){var g=M.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:M.column()+1;D.scopes.push({offset:D.indent+mt,type:m,align:g})}function S(M,D){for(var m=M.indentation();D.scopes.length>1&&ye(D).offset>m;){if(ye(D).type!="py")return!0;D.scopes.pop()}return ye(D).offset!=m}function F(M,D){M.sol()&&(D.beginningOfLine=!0,D.dedent=!1);var m=D.tokenize(M,D),g=M.current();if(D.beginningOfLine&&g=="@")return M.match(Ce,!1)?"meta":ie?"operator":Ue;if(/\S/.test(g)&&(D.beginningOfLine=!1),(m=="variable"||m=="builtin")&&D.lastToken=="meta"&&(m="meta"),(g=="pass"||g=="return")&&(D.dedent=!0),g=="lambda"&&(D.lambda=!0),g==":"&&!D.lambda&&ye(D).type=="py"&&M.match(/^\s*(?:#|$)/,!1)&&ut(D),g.length==1&&!/string|comment/.test(m)){var C="[({".indexOf(g);if(C!=-1&&ve(M,D,"])}".slice(C,C+1)),C="])}".indexOf(g),C!=-1)if(ye(D).type==g)D.indent=D.scopes.pop().offset-mt;else return Ue}return D.dedent&&M.eol()&&ye(D).type=="py"&&D.scopes.length>1&&D.scopes.pop(),m}var p={startState:function(M){return{tokenize:he,scopes:[{offset:M||0,type:"py",align:null}],indent:M||0,lastToken:null,lambda:!1,dedent:0}},token:function(M,D){var m=D.errorToken;m&&(D.errorToken=!1);var g=F(M,D);return g&&g!="comment"&&(D.lastToken=g=="keyword"||g=="punctuation"?M.current():g),g=="punctuation"&&(g=null),M.eol()&&D.lambda&&(D.lambda=!1),m?g+" "+Ue:g},indent:function(M,D){if(M.tokenize!=he)return M.tokenize.isString?X.Pass:0;var m=ye(M),g=m.type==D.charAt(0)||m.type=="py"&&!M.dedent&&/^(else:|elif |except |finally:)/.test(D);return m.align!=null?m.align-(g?1:0):m.offset-(g?mt:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return p}),X.defineMIME("text/x-python","python");var L=function(Y){return Y.split(" ")};X.defineMIME("text/x-cython",{name:"python",extra_keywords:L("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();(function(An,pi){(function(X){X(di)})(function(X){function lt(m,g,C,z,K,Q){this.indented=m,this.column=g,this.type=C,this.info=z,this.align=K,this.prev=Q}function ue(m,g,C,z){var K=m.indented;return m.context&&m.context.type=="statement"&&C!="statement"&&(K=m.context.indented),m.context=new lt(K,g,C,z,null,m.context)}function Be(m){var g=m.context.type;return(g==")"||g=="]"||g=="}")&&(m.indented=m.context.indented),m.context=m.context.prev}function Lt(m,g,C){if(g.prevToken=="variable"||g.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(m.string.slice(0,C))||g.typeAtEndOfLine&&m.column()==m.indentation())return!0}function ye(m){for(;;){if(!m||m.type=="top")return!0;if(m.type=="}"&&m.prev.info!="namespace")return!1;m=m.prev}}X.defineMode("clike",function(m,g){var C=m.indentUnit,z=g.statementIndentUnit||C,K=g.dontAlignCalls,Q=g.keywords||{},Fe=g.types||{},Ae=g.builtin||{},G=g.blockKeywords||{},_=g.defKeywords||{},J=g.atoms||{},$=g.hooks||{},Mr=g.multiLineStrings,se=g.indentStatements!==!1,pe=g.indentSwitch!==!1,Et=g.namespaceSeparator,It=g.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,bt=g.numberStart||/[\d\.]/,ft=g.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,pt=g.isOperatorChar||/[+\-*&%=<>!?|\/]/,te=g.isIdentifierChar||/[\w\$_\xa1-\uffff]/,Ut=g.isReservedIdentifier||!1,Oe,Kt;function vr(U,q){var H=U.next();if($[H]){var re=$[H](U,q);if(re!==!1)return re}if(H=='"'||H=="'")return q.tokenize=Qr(H),q.tokenize(U,q);if(bt.test(H)){if(U.backUp(1),U.match(ft))return"number";U.next()}if(It.test(H))return Oe=H,null;if(H=="/"){if(U.eat("*"))return q.tokenize=tr,tr(U,q);if(U.eat("/"))return U.skipToEnd(),"comment"}if(pt.test(H)){for(;!U.match(/^\/[\/*]/,!1)&&U.eat(pt););return"operator"}if(U.eatWhile(te),Et)for(;U.match(Et);)U.eatWhile(te);var V=U.current();return Y(Q,V)?(Y(G,V)&&(Oe="newstatement"),Y(_,V)&&(Kt=!0),"keyword"):Y(Fe,V)?"type":Y(Ae,V)||Ut&&Ut(V)?(Y(G,V)&&(Oe="newstatement"),"builtin"):Y(J,V)?"atom":"variable"}function Qr(U){return function(q,H){for(var re=!1,V,vt=!1;(V=q.next())!=null;){if(V==U&&!re){vt=!0;break}re=!re&&V=="\\"}return(vt||!(re||Mr))&&(H.tokenize=null),"string"}}function tr(U,q){for(var H=!1,re;re=U.next();){if(re=="/"&&H){q.tokenize=null;break}H=re=="*"}return"comment"}function Gt(U,q){g.typeFirstDefinitions&&U.eol()&&ye(q.context)&&(q.typeAtEndOfLine=Lt(U,q,U.pos))}return{startState:function(U){return{tokenize:null,context:new lt((U||0)-C,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(U,q){var H=q.context;if(U.sol()&&(H.align==null&&(H.align=!1),q.indented=U.indentation(),q.startOfLine=!0),U.eatSpace())return Gt(U,q),null;Oe=Kt=null;var re=(q.tokenize||vr)(U,q);if(re=="comment"||re=="meta")return re;if(H.align==null&&(H.align=!0),Oe==";"||Oe==":"||Oe==","&&U.match(/^\s*(?:\/\/.*)?$/,!1))for(;q.context.type=="statement";)Be(q);else if(Oe=="{")ue(q,U.column(),"}");else if(Oe=="[")ue(q,U.column(),"]");else if(Oe=="(")ue(q,U.column(),")");else if(Oe=="}"){for(;H.type=="statement";)H=Be(q);for(H.type=="}"&&(H=Be(q));H.type=="statement";)H=Be(q)}else Oe==H.type?Be(q):se&&((H.type=="}"||H.type=="top")&&Oe!=";"||H.type=="statement"&&Oe=="newstatement")&&ue(q,U.column(),"statement",U.current());if(re=="variable"&&(q.prevToken=="def"||g.typeFirstDefinitions&&Lt(U,q,U.start)&&ye(q.context)&&U.match(/^\s*\(/,!1))&&(re="def"),$.token){var V=$.token(U,q,re);V!==void 0&&(re=V)}return re=="def"&&g.styleDefs===!1&&(re="variable"),q.startOfLine=!1,q.prevToken=Kt?"def":re||Oe,Gt(U,q),re},indent:function(U,q){if(U.tokenize!=vr&&U.tokenize!=null||U.typeAtEndOfLine)return X.Pass;var H=U.context,re=q&&q.charAt(0),V=re==H.type;if(H.type=="statement"&&re=="}"&&(H=H.prev),g.dontIndentStatements)for(;H.type=="statement"&&g.dontIndentStatements.test(H.info);)H=H.prev;if($.indent){var vt=$.indent(U,H,q,C);if(typeof vt=="number")return vt}var xt=H.prev&&H.prev.info=="switch";if(g.allmanIndentation&&/[{(]/.test(re)){for(;H.type!="top"&&H.type!="}";)H=H.prev;return H.indented}return H.type=="statement"?H.indented+(re=="{"?0:z):H.align&&(!K||H.type!=")")?H.column+(V?0:1):H.type==")"&&!V?H.indented+z:H.indented+(V?0:C)+(!V&&xt&&!/^(?:case|default)\b/.test(q)?C:0)},electricInput:pe?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function L(m){for(var g={},C=m.split(" "),z=0;z!?|\/#:@]/,hooks:{"@":function(m){return m.eatWhile(/[\w\$_]/),"meta"},'"':function(m,g){return m.match('""')?(g.tokenize=S,g.tokenize(m,g)):!1},"'":function(m){return m.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(m,g){var C=g.context;return C.type=="}"&&C.align&&m.eat(">")?(g.context=new lt(C.indented,C.column,C.type,C.info,null,C.prev),"operator"):!1},"/":function(m,g){return m.eat("*")?(g.tokenize=F(1),g.tokenize(m,g)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function p(m){return function(g,C){for(var z=!1,K,Q=!1;!g.eol();){if(!m&&!z&&g.match('"')){Q=!0;break}if(m&&g.match('"""')){Q=!0;break}K=g.next(),!z&&K=="$"&&g.match("{")&&g.skipTo("}"),z=!z&&K=="\\"&&!m}return(Q||!m)&&(C.tokenize=null),"string"}}ve("text/x-kotlin",{name:"clike",keywords:L("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:L("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:L("catch class do else finally for if where try while enum"),defKeywords:L("class val var object interface fun"),atoms:L("true false null this"),hooks:{"@":function(m){return m.eatWhile(/[\w\$_]/),"meta"},"*":function(m,g){return g.prevToken=="."?"variable":"operator"},'"':function(m,g){return g.tokenize=p(m.match('""')),g.tokenize(m,g)},"/":function(m,g){return m.eat("*")?(g.tokenize=F(1),g.tokenize(m,g)):!1},indent:function(m,g,C,z){var K=C&&C.charAt(0);if((m.prevToken=="}"||m.prevToken==")")&&C=="")return m.indented;if(m.prevToken=="operator"&&C!="}"&&m.context.type!="}"||m.prevToken=="variable"&&K=="."||(m.prevToken=="}"||m.prevToken==")")&&K==".")return z*2+g.indented;if(g.align&&g.type=="}")return g.indented+(m.context.type==(C||"").charAt(0)?0:z)}},modeProps:{closeBrackets:{triples:'"'}}}),ve(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:L("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:L("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:L("for while do if else struct"),builtin:L("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:L("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":We},modeProps:{fold:["brace","include"]}}),ve("text/x-nesc",{name:"clike",keywords:L(W+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:Te,blockKeywords:L(ie),atoms:L("null true false"),hooks:{"#":We},modeProps:{fold:["brace","include"]}}),ve("text/x-objectivec",{name:"clike",keywords:L(W+" "+Ze),types:Ge,builtin:L(at),blockKeywords:L(ie+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:L(Ce+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:L("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:st,hooks:{"#":We,"*":me},modeProps:{fold:["brace","include"]}}),ve("text/x-objectivec++",{name:"clike",keywords:L(W+" "+Ze+" "+Ue),types:Ge,builtin:L(at),blockKeywords:L(ie+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:L(Ce+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:L("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:st,hooks:{"#":We,"*":me,u:be,U:be,L:be,R:be,0:he,1:he,2:he,3:he,4:he,5:he,6:he,7:he,8:he,9:he,token:function(m,g,C){if(C=="variable"&&m.peek()=="("&&(g.prevToken==";"||g.prevToken==null||g.prevToken=="}")&&Bt(m.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),ve("text/x-squirrel",{name:"clike",keywords:L("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:Te,blockKeywords:L("case catch class else for foreach if switch try while"),defKeywords:L("function local class"),typeFirstDefinitions:!0,atoms:L("true false null"),hooks:{"#":We},modeProps:{fold:["brace","include"]}});var M=null;function D(m){return function(g,C){for(var z=!1,K,Q=!1;!g.eol();){if(!z&&g.match('"')&&(m=="single"||g.match('""'))){Q=!0;break}if(!z&&g.match("``")){M=D(m),Q=!0;break}K=g.next(),z=m=="single"&&!z&&K=="\\"}return Q&&(C.tokenize=null),"string"}}ve("text/x-ceylon",{name:"clike",keywords:L("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(m){var g=m.charAt(0);return g===g.toUpperCase()&&g!==g.toLowerCase()},blockKeywords:L("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:L("class dynamic function interface module object package value"),builtin:L("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:L("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(m){return m.eatWhile(/[\w\$_]/),"meta"},'"':function(m,g){return g.tokenize=D(m.match('""')?"triple":"single"),g.tokenize(m,g)},"`":function(m,g){return!M||!m.match("`")?!1:(g.tokenize=M,M=null,g.tokenize(m,g))},"'":function(m){return m.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(m,g,C){if((C=="variable"||C=="type")&&g.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();export{du as default}; diff --git a/packages/docs/website/static/playwright-trace/trace/assets/wsPort-d13879e1.js b/packages/docs/website/static/playwright-trace/trace/assets/wsPort-d13879e1.js new file mode 100644 index 00000000..e9c436c1 --- /dev/null +++ b/packages/docs/website/static/playwright-trace/trace/assets/wsPort-d13879e1.js @@ -0,0 +1,92 @@ +var zp=Object.defineProperty;var Hp=(e,t,n)=>t in e?zp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var we=(e,t,n)=>(Hp(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ru(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qu={exports:{}},bs={},$u={exports:{}},D={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Jr=Symbol.for("react.element"),Bp=Symbol.for("react.portal"),jp=Symbol.for("react.fragment"),Vp=Symbol.for("react.strict_mode"),Wp=Symbol.for("react.profiler"),Gp=Symbol.for("react.provider"),Qp=Symbol.for("react.context"),Kp=Symbol.for("react.forward_ref"),Xp=Symbol.for("react.suspense"),Jp=Symbol.for("react.memo"),Yp=Symbol.for("react.lazy"),Ic=Symbol.iterator;function Zp(e){return e===null||typeof e!="object"?null:(e=Ic&&e[Ic]||e["@@iterator"],typeof e=="function"?e:null)}var Iu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mu=Object.assign,Pu={};function Xn(e,t,n){this.props=e,this.context=t,this.refs=Pu,this.updater=n||Iu}Xn.prototype.isReactComponent={};Xn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Du(){}Du.prototype=Xn.prototype;function Ll(e,t,n){this.props=e,this.context=t,this.refs=Pu,this.updater=n||Iu}var Al=Ll.prototype=new Du;Al.constructor=Ll;Mu(Al,Xn.prototype);Al.isPureReactComponent=!0;var Mc=Array.isArray,Ou=Object.prototype.hasOwnProperty,Rl={current:null},Uu={key:!0,ref:!0,__self:!0,__source:!0};function Fu(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Ou.call(t,r)&&!Uu.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1{let i=!1;return r!==void 0&&s(r),e().then(l=>{i||s(l)}),()=>{i=!0}},t),o}function _s(){const e=$n.useRef(null),[t,n]=$n.useState(new DOMRect(0,0,10,10));return $n.useLayoutEffect(()=>{const r=e.current;if(!r)return;const o=new ResizeObserver(s=>{const i=s[s.length-1];i&&i.contentRect&&n(i.contentRect)});return o.observe(r),()=>o.disconnect()},[e]),[t,e]}function zn(e){if(!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0)+"ms";const t=e/1e3;if(t<60)return t.toFixed(1)+"s";const n=t/60;if(n<60)return n.toFixed(1)+"m";const r=n/60;return r<24?r.toFixed(1)+"h":(r/24).toFixed(1)+"d"}function Hu(e,t,n,r,o){let s=r||0,i=o!==void 0?o:e.length;for(;s>1;n(t,e[l])>=0?s=l+1:i=l}return i}function fm(e){const t=document.createElement("textarea");t.style.position="absolute",t.style.zIndex="-1000",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}function lY(e,t){const n=qr.getObject(e,t),[r,o]=$n.useState(n);return[r,i=>{qr.setObject(e,i),o(i)}]}class dm{getString(t,n){return localStorage[t]||n}setString(t,n){localStorage[t]=n,window.saveSettings&&window.saveSettings()}getObject(t,n){if(!localStorage[t])return n;try{return JSON.parse(localStorage[t])}catch{return n}}setObject(t,n){localStorage[t]=JSON.stringify(n),window.saveSettings&&window.saveSettings()}}const qr=new dm;function cY(){if(document.playwrightThemeInitialized)return;document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",n=>{n.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",n=>{document.body.classList.add("inactive")},!1);const e=qr.getString("theme","light-mode"),t=window.matchMedia("(prefers-color-scheme: dark)");(e==="dark-mode"||t.matches)&&document.body.classList.add("dark-mode")}const Il=new Set;function aY(){const e=qr.getString("theme","light-mode");let t;e==="dark-mode"?t="light-mode":t="dark-mode",e&&document.body.classList.remove(e),document.body.classList.add(t),qr.setString("theme",t);for(const n of Il)n(t)}function uY(e){Il.add(e)}function fY(e){Il.delete(e)}function dY(){return document.body.classList.contains("dark-mode")?"dark-mode":"light-mode"}var Bu={exports:{}},ze={},ju={exports:{}},Vu={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function t(C,M){var P=C.length;C.push(M);e:for(;0>>1,le=C[V];if(0>>1;Vo(Gs,P))Qto(oo,Gs)?(C[V]=oo,C[Qt]=P,V=Qt):(C[V]=Gs,C[Gt]=P,V=Gt);else if(Qto(oo,P))C[V]=oo,C[Qt]=P,V=Qt;else break e}}return M}function o(C,M){var P=C.sortIndex-M.sortIndex;return P!==0?P:C.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],a=[],u=1,h=null,f=3,v=!1,m=!1,E=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var M=n(a);M!==null;){if(M.callback===null)r(a);else if(M.startTime<=C)r(a),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(a)}}function T(C){if(E=!1,g(C),!m)if(n(c)!==null)m=!0,G(x);else{var M=n(a);M!==null&&ye(T,M.startTime-C)}}function x(C,M){m=!1,E&&(E=!1,p(N),N=-1),v=!0;var P=f;try{for(g(M),h=n(c);h!==null&&(!(h.expirationTime>M)||C&&!H());){var V=h.callback;if(typeof V=="function"){h.callback=null,f=h.priorityLevel;var le=V(h.expirationTime<=M);M=e.unstable_now(),typeof le=="function"?h.callback=le:h===n(c)&&r(c),g(M)}else r(c);h=n(c)}if(h!==null)var ro=!0;else{var Gt=n(a);Gt!==null&&ye(T,Gt.startTime-M),ro=!1}return ro}finally{h=null,f=P,v=!1}}var k=!1,w=null,N=-1,$=5,I=-1;function H(){return!(e.unstable_now()-I<$)}function b(){if(w!==null){var C=e.unstable_now();I=C;var M=!0;try{M=w(!0,C)}finally{M?L():(k=!1,w=null)}}else k=!1}var L;if(typeof d=="function")L=function(){d(b)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Y=U.port2;U.port1.onmessage=b,L=function(){Y.postMessage(null)}}else L=function(){S(b,0)};function G(C){w=C,k||(k=!0,L())}function ye(C,M){N=S(function(){C(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){m||v||(m=!0,G(x))},e.unstable_forceFrameRate=function(C){0>C||125V?(C.sortIndex=P,t(a,C),n(c)===null&&C===n(a)&&(E?(p(N),N=-1):E=!0,ye(T,P-V))):(C.sortIndex=le,t(c,C),m||v||(m=!0,G(x))),C},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(C){var M=f;return function(){var P=f;f=M;try{return C.apply(this,arguments)}finally{f=P}}}})(Vu);ju.exports=Vu;var hm=ju.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Wu=R,Fe=hm;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_i=Object.prototype.hasOwnProperty,pm=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dc={},Oc={};function mm(e){return _i.call(Oc,e)?!0:_i.call(Dc,e)?!1:pm.test(e)?Oc[e]=!0:(Dc[e]=!0,!1)}function gm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vm(e,t,n,r){if(t===null||typeof t>"u"||gm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ke(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){de[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ml=/[\-:]([a-z])/g;function Pl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ml,Pl);de[t]=new ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ml,Pl);de[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ml,Pl);de[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dl(e,t,n,r){var o=de.hasOwnProperty(t)?de[t]:null;(o!==null?o.type!==0:r||!(2l||o[i]!==s[l]){var c=` +`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Xs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gr(e):""}function ym(e){switch(e.tag){case 5:return gr(e.type);case 16:return gr("Lazy");case 13:return gr("Suspense");case 19:return gr("SuspenseList");case 0:case 2:case 15:return e=Js(e.type,!1),e;case 11:return e=Js(e.type.render,!1),e;case 1:return e=Js(e.type,!0),e;default:return""}}function Ai(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sn:return"Fragment";case wn:return"Portal";case Ni:return"Profiler";case Ol:return"StrictMode";case Ci:return"Suspense";case Li:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ku:return(e.displayName||"Context")+".Consumer";case Qu:return(e._context.displayName||"Context")+".Provider";case Ul:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fl:return t=e.displayName||null,t!==null?t:Ai(e.type)||"Memo";case _t:t=e._payload,e=e._init;try{return Ai(e(t))}catch{}}return null}function wm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ai(t);case 8:return t===Ol?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ju(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sm(e){var t=Ju(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lo(e){e._valueTracker||(e._valueTracker=Sm(e))}function Yu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ju(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ri(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zu(e,t){t=t.checked,t!=null&&Dl(e,"checked",t,!1)}function qi(e,t){Zu(e,t);var n=Ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$i(e,t.type,n):t.hasOwnProperty("defaultValue")&&$i(e,t.type,Ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function $i(e,t,n){(t!=="number"||Xo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=co.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Em=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){Em.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tr[t]=Tr[e]})});function rf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+t).trim():t+"px"}function of(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var xm=X({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pi(e,t){if(t){if(xm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Di(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oi=null;function zl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ui=null,Mn=null,Pn=null;function jc(e){if(e=eo(e)){if(typeof Ui!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Rs(t),Ui(e.stateNode,e.type,t))}}function sf(e){Mn?Pn?Pn.push(e):Pn=[e]:Mn=e}function lf(){if(Mn){var e=Mn,t=Pn;if(Pn=Mn=null,jc(e),t)for(e=0;e>>=0,e===0?32:31-($m(e)/Im|0)|0}var ao=64,uo=4194304;function yr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function es(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=yr(l):(s&=i,s!==0&&(r=yr(s)))}else i=n&~o,i!==0?r=yr(i):s!==0&&(r=yr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Yr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Om(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=br),Zc=String.fromCharCode(32),ea=!1;function Nf(e,t){switch(e){case"keyup":return dg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function pg(e,t){switch(e){case"compositionend":return Cf(t);case"keypress":return t.which!==32?null:(ea=!0,Zc);case"textInput":return e=t.data,e===Zc&&ea?null:e;default:return null}}function mg(e,t){if(En)return e==="compositionend"||!Kl&&Nf(e,t)?(e=bf(),$o=Wl=qt=null,En=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=oa(n)}}function qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $f(){for(var e=window,t=Xo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xo(e.document)}return t}function Xl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kg(e){var t=$f(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qf(n.ownerDocument.documentElement,n)){if(r!==null&&Xl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=sa(n,s);var i=sa(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xn=null,Vi=null,Nr=null,Wi=!1;function ia(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wi||xn==null||xn!==Xo(r)||(r=xn,"selectionStart"in r&&Xl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nr&&Fr(Nr,r)||(Nr=r,r=rs(Vi,"onSelect"),0bn||(e.current=Yi[bn],Yi[bn]=null,bn--)}function z(e,t){bn++,Yi[bn]=e.current,e.current=t}var zt={},ve=Vt(zt),qe=Vt(!1),sn=zt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $e(e){return e=e.childContextTypes,e!=null}function ss(){j(qe),j(ve)}function ha(e,t,n){if(ve.current!==zt)throw Error(_(168));z(ve,t),z(qe,n)}function Hf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,wm(e)||"Unknown",o));return X({},n,r)}function is(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zt,sn=ve.current,z(ve,e),z(qe,qe.current),!0}function pa(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Hf(e,t,sn),r.__reactInternalMemoizedMergedChildContext=e,j(qe),j(ve),z(ve,e)):j(qe),z(qe,n)}var pt=null,qs=!1,fi=!1;function Bf(e){pt===null?pt=[e]:pt.push(e)}function Pg(e){qs=!0,Bf(e)}function Wt(){if(!fi&&pt!==null){fi=!0;var e=0,t=F;try{var n=pt;for(F=1;e>=i,o-=i,gt=1<<32-rt(t)+o|n<N?($=w,w=null):$=w.sibling;var I=f(p,w,g[N],T);if(I===null){w===null&&(w=$);break}e&&w&&I.alternate===null&&t(p,w),d=s(I,d,N),k===null?x=I:k.sibling=I,k=I,w=$}if(N===g.length)return n(p,w),W&&Xt(p,N),x;if(w===null){for(;NN?($=w,w=null):$=w.sibling;var H=f(p,w,I.value,T);if(H===null){w===null&&(w=$);break}e&&w&&H.alternate===null&&t(p,w),d=s(H,d,N),k===null?x=H:k.sibling=H,k=H,w=$}if(I.done)return n(p,w),W&&Xt(p,N),x;if(w===null){for(;!I.done;N++,I=g.next())I=h(p,I.value,T),I!==null&&(d=s(I,d,N),k===null?x=I:k.sibling=I,k=I);return W&&Xt(p,N),x}for(w=r(p,w);!I.done;N++,I=g.next())I=v(w,p,N,I.value,T),I!==null&&(e&&I.alternate!==null&&w.delete(I.key===null?N:I.key),d=s(I,d,N),k===null?x=I:k.sibling=I,k=I);return e&&w.forEach(function(b){return t(p,b)}),W&&Xt(p,N),x}function S(p,d,g,T){if(typeof g=="object"&&g!==null&&g.type===Sn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case io:e:{for(var x=g.key,k=d;k!==null;){if(k.key===x){if(x=g.type,x===Sn){if(k.tag===7){n(p,k.sibling),d=o(k,g.props.children),d.return=p,p=d;break e}}else if(k.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===_t&&Ea(x)===k.type){n(p,k.sibling),d=o(k,g.props),d.ref=cr(p,k,g),d.return=p,p=d;break e}n(p,k);break}else t(p,k);k=k.sibling}g.type===Sn?(d=nn(g.props.children,p.mode,T,g.key),d.return=p,p=d):(T=Fo(g.type,g.key,g.props,null,p.mode,T),T.ref=cr(p,d,g),T.return=p,p=T)}return i(p);case wn:e:{for(k=g.key;d!==null;){if(d.key===k)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(p,d.sibling),d=o(d,g.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=yi(g,p.mode,T),d.return=p,p=d}return i(p);case _t:return k=g._init,S(p,d,k(g._payload),T)}if(vr(g))return m(p,d,g,T);if(nr(g))return E(p,d,g,T);vo(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(p,d.sibling),d=o(d,g),d.return=p,p=d):(n(p,d),d=vi(g,p.mode,T),d.return=p,p=d),i(p)):n(p,d)}return S}var Vn=Kf(!0),Xf=Kf(!1),to={},ut=Vt(to),jr=Vt(to),Vr=Vt(to);function en(e){if(e===to)throw Error(_(174));return e}function oc(e,t){switch(z(Vr,t),z(jr,e),z(ut,to),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mi(t,e)}j(ut),z(ut,t)}function Wn(){j(ut),j(jr),j(Vr)}function Jf(e){en(Vr.current);var t=en(ut.current),n=Mi(t,e.type);t!==n&&(z(jr,e),z(ut,n))}function sc(e){jr.current===e&&(j(ut),j(jr))}var Q=Vt(0);function ds(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var di=[];function ic(){for(var e=0;en?n:4,e(!0);var r=hi.transition;hi.transition={};try{e(!1),t()}finally{F=n,hi.transition=r}}function dd(){return Ke().memoizedState}function Fg(e,t,n){var r=Ut(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hd(e)?pd(t,n):(md(e,t,n),n=xe(),e=Ge(e,r,n),e!==null&&gd(e,t,r))}function zg(e,t,n){var r=Ut(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hd(e))pd(t,o);else{md(e,t,o);var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,ot(l,i))return}catch{}finally{}n=xe(),e=Ge(e,r,n),e!==null&&gd(e,t,r)}}function hd(e){var t=e.alternate;return e===K||t!==null&&t===K}function pd(e,t){Cr=hs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function md(e,t,n){$d(e)?(e=t.interleaved,e===null?(n.next=n,nt===null?nt=[t]:nt.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function gd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bl(e,n)}}var ps={readContext:Qe,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},Hg={readContext:Qe,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:Ta,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Do(4194308,4,ld.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Do(4194308,4,e,t)},useInsertionEffect:function(e,t){return Do(4,2,e,t)},useMemo:function(e,t){var n=it();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=it();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fg.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:xa,useDebugValue:fc,useDeferredValue:function(e){return it().memoizedState=e},useTransition:function(){var e=xa(!1),t=e[0];return e=Ug.bind(null,e[1]),it().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,o=it();if(W){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ie===null)throw Error(_(349));cn&30||ed(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ta(nd.bind(null,r,s,e),[e]),r.flags|=2048,Qr(9,td.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=it(),t=ie.identifierPrefix;if(W){var n=vt,r=gt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[lt]=t,e[Br]=r,wd(e,t,!1,!1),t.stateNode=e;e:{switch(i=Di(n,r),n){case"dialog":B("cancel",e),B("close",e),o=r;break;case"iframe":case"object":case"embed":B("load",e),o=r;break;case"video":case"audio":for(o=0;oGn&&(t.flags|=128,r=!0,ar(s,!1),t.lanes=4194304)}else{if(!r)if(e=ds(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ar(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!W)return pe(t),null}else 2*Z()-s.renderingStartTime>Gn&&n!==1073741824&&(t.flags|=128,r=!0,ar(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Z(),t.sibling=null,n=Q.current,z(Q,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return vc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pe&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}var Gg=Tt.ReactCurrentOwner,Le=!1;function Se(e,t,n,r){t.child=e===null?Xf(t,null,n,r):Vn(t,e.child,n,r)}function Na(e,t,n,r,o){n=n.render;var s=t.ref;return On(t,o),r=cc(e,t,n,r,s,o),n=ac(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xt(e,t,o)):(W&&n&&tc(t),t.flags|=1,Se(e,t,r,o),t.child)}function Ca(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!wc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,xd(e,t,s,r,o)):(e=Fo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Fr,n(i,r)&&e.ref===t.ref)return xt(e,t,o)}return t.flags|=1,e=Ht(s,r),e.ref=t.ref,e.return=t,t.child=e}function xd(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Fr(s,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,xt(e,t,o)}return il(e,t,n,r,o)}function Td(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},z(An,Pe),Pe|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,z(An,Pe),Pe|=r;else return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,z(An,Pe),Pe|=e,null;else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,z(An,Pe),Pe|=r;return Se(e,t,o,n),t.child}function kd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function il(e,t,n,r,o){var s=$e(n)?sn:ve.current;return s=Bn(t,s),On(t,o),n=cc(e,t,n,r,s,o),r=ac(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xt(e,t,o)):(W&&r&&tc(t),t.flags|=1,Se(e,t,n,o),t.child)}function La(e,t,n,r,o){if($e(n)){var s=!0;is(t)}else s=!1;if(On(t,o),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Wf(t,n,r),tl(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Qe(a):(a=$e(n)?sn:ve.current,a=Bn(t,a));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==a)&&ya(t,i,r,a),Nt=!1;var f=t.memoizedState;i.state=f,as(t,r,i,o),c=t.memoizedState,l!==r||f!==c||qe.current||Nt?(typeof u=="function"&&(el(t,n,u,r),c=t.memoizedState),(l=Nt||va(t,n,l,r,f,c,a))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,jf(e,t),l=t.memoizedProps,a=t.type===t.elementType?l:Ze(t.type,l),i.props=a,h=t.pendingProps,f=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Qe(c):(c=$e(n)?sn:ve.current,c=Bn(t,c));var v=n.getDerivedStateFromProps;(u=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||f!==c)&&ya(t,i,r,c),Nt=!1,f=t.memoizedState,i.state=f,as(t,r,i,o);var m=t.memoizedState;l!==h||f!==m||qe.current||Nt?(typeof v=="function"&&(el(t,n,v,r),m=t.memoizedState),(a=Nt||va(t,n,a,r,f,m,c)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=c,r=a):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ll(e,t,n,r,s,o)}function ll(e,t,n,r,o,s){kd(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&pa(t,n,!1),xt(e,t,s);r=t.stateNode,Gg.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Vn(t,e.child,null,s),t.child=Vn(t,null,l,s)):Se(e,t,l,s),t.memoizedState=r.state,o&&pa(t,n,!0),t.child}function bd(e){var t=e.stateNode;t.pendingContext?ha(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ha(e,t.context,!1),oc(e,t.containerInfo)}function Aa(e,t,n,r,o){return jn(),rc(o),t.flags|=256,Se(e,t,n,r),t.child}var yo={dehydrated:null,treeContext:null,retryLane:0};function wo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ra(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function _d(e,t,n){var r=t.pendingProps,o=Q.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),z(Q,o&1),e===null)return rl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=ws(o,r,0,null),e=nn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=wo(n),t.memoizedState=yo,e):cl(t,o));if(o=e.memoizedState,o!==null){if(l=o.dehydrated,l!==null){if(i)return t.flags&256?(t.flags&=-257,So(e,t,n,Error(_(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=ws({mode:"visible",children:r.children},o,0,null),s=nn(s,o,n,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Vn(t,e.child,null,n),t.child.memoizedState=wo(n),t.memoizedState=yo,s);if(!(t.mode&1))t=So(e,t,n,null);else if(l.data==="$!")t=So(e,t,n,Error(_(419)));else if(r=(n&e.childLanes)!==0,Le||r){if(r=ie,r!==null){switch(n&-n){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}r=s&(r.suspendedLanes|n)?0:s,r!==0&&r!==o.retryLane&&(o.retryLane=r,Ge(e,r,-1))}yc(),t=So(e,t,n,Error(_(421)))}else l.data==="$?"?(t.flags|=128,t.child=e.child,t=sv.bind(null,e),l._reactRetry=t,t=null):(n=o.treeContext,Ce=mt(l.nextSibling),Ue=t,W=!0,tt=null,n!==null&&(Be[je++]=gt,Be[je++]=vt,Be[je++]=ln,gt=n.id,vt=n.overflow,ln=t),t=cl(t,t.pendingProps.children),t.flags|=4096);return t}return s?(r=$a(e,t,r.children,r.fallback,n),s=t.child,o=e.child.memoizedState,s.memoizedState=o===null?wo(n):Ra(o,n),s.childLanes=e.childLanes&~n,t.memoizedState=yo,r):(n=qa(e,t,r.children,n),t.memoizedState=null,n)}return s?(r=$a(e,t,r.children,r.fallback,n),s=t.child,o=e.child.memoizedState,s.memoizedState=o===null?wo(n):Ra(o,n),s.childLanes=e.childLanes&~n,t.memoizedState=yo,r):(n=qa(e,t,r.children,n),t.memoizedState=null,n)}function cl(e,t){return t=ws({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qa(e,t,n,r){var o=e.child;return e=o.sibling,n=Ht(o,{mode:"visible",children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function $a(e,t,n,r,o){var s=t.mode;e=e.child;var i=e.sibling,l={mode:"hidden",children:n};return!(s&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Ht(e,l),n.subtreeFlags=e.subtreeFlags&14680064),i!==null?r=Ht(i,r):(r=nn(r,s,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function So(e,t,n,r){return r!==null&&rc(r),Vn(t,e.child,null,n),e=cl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ia(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zi(e.return,t,n)}function gi(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Nd(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Se(e,t,r.children,n),r=Q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ia(e,n,t);else if(e.tag===19)Ia(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(z(Q,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ds(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),gi(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ds(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}gi(t,!0,n,null,s);break;case"together":gi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),an|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qg(e,t,n){switch(t.tag){case 3:bd(t),jn();break;case 5:Jf(t);break;case 1:$e(t.type)&&is(t);break;case 4:oc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;z(ls,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(z(Q,Q.current&1),t.flags|=128,null):n&t.child.childLanes?_d(e,t,n):(z(Q,Q.current&1),e=xt(e,t,n),e!==null?e.sibling:null);z(Q,Q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Nd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),z(Q,Q.current),r)break;return null;case 22:case 23:return t.lanes=0,Td(e,t,n)}return xt(e,t,n)}function Kg(e,t){switch(nc(t),t.tag){case 1:return $e(t.type)&&ss(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wn(),j(qe),j(ve),ic(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sc(t),null;case 13:if(j(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Q),null;case 4:return Wn(),null;case 10:return Zl(t.type._context),null;case 22:case 23:return vc(),null;case 24:return null;default:return null}}var Eo=!1,ge=!1,Xg=typeof WeakSet=="function"?WeakSet:Set,q=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function al(e,t,n){try{n()}catch(r){J(e,t,r)}}var Ma=!1;function Jg(e,t){if(Gi=ts,e=$f(),Xl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,c=-1,a=0,u=0,h=e,f=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(l=i+o),h!==s||r!==0&&h.nodeType!==3||(c=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(v=h.firstChild)!==null;)f=h,h=v;for(;;){if(h===e)break t;if(f===n&&++a===o&&(l=i),f===s&&++u===r&&(c=i),(v=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=v}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qi={focusedElem:e,selectionRange:n},ts=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var E=m.memoizedProps,S=m.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?E:Ze(t.type,E),S);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;if(g.nodeType===1)g.textContent="";else if(g.nodeType===9){var T=g.body;T!=null&&(T.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(x){J(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return m=Ma,Ma=!1,m}function Lr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&al(t,n,s)}o=o.next}while(o!==r)}}function Ms(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ul(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Cd(e){var t=e.alternate;t!==null&&(e.alternate=null,Cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lt],delete t[Br],delete t[Ji],delete t[Ig],delete t[Mg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ld(e){return e.tag===5||e.tag===3||e.tag===4}function Pa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ld(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=os));else if(r!==4&&(e=e.child,e!==null))for(fl(e,t,n),e=e.sibling;e!==null;)fl(e,t,n),e=e.sibling}function dl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(dl(e,t,n),e=e.sibling;e!==null;)dl(e,t,n),e=e.sibling}var ae=null,et=!1;function kt(e,t,n){for(n=n.child;n!==null;)Ad(e,t,n),n=n.sibling}function Ad(e,t,n){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(Ns,n)}catch{}switch(n.tag){case 5:ge||Ln(n,t);case 6:var r=ae,o=et;ae=null,kt(e,t,n),ae=r,et=o,ae!==null&&(et?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(et?(e=ae,n=n.stateNode,e.nodeType===8?ui(e.parentNode,n):e.nodeType===1&&ui(e,n),Or(e)):ui(ae,n.stateNode));break;case 4:r=ae,o=et,ae=n.stateNode.containerInfo,et=!0,kt(e,t,n),ae=r,et=o;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&al(n,t,i),o=o.next}while(o!==r)}kt(e,t,n);break;case 1:if(!ge&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){J(n,t,l)}kt(e,t,n);break;case 21:kt(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,kt(e,t,n),ge=r):kt(e,t,n);break;default:kt(e,t,n)}}function Da(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xg),t.forEach(function(r){var o=iv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Xe(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zg(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,vs=0,O&6)throw Error(_(331));var o=O;for(O|=4,q=e.current;q!==null;){var s=q,i=s.child;if(q.flags&16){var l=s.deletions;if(l!==null){for(var c=0;cZ()-mc?tn(e,0):pc|=n),Ie(e,t)}function Ud(e,t){t===0&&(e.mode&1?(t=uo,uo<<=1,!(uo&130023424)&&(uo=4194304)):t=1);var n=xe();e=Ds(e,t),e!==null&&(Yr(e,t,n),Ie(e,n))}function sv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ud(e,n)}function iv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Ud(e,n)}var Fd;Fd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Qg(e,t,n);Le=!!(e.flags&131072)}else Le=!1,W&&t.flags&1048576&&Gf(t,fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var o=Bn(t,ve.current);On(t,n),o=cc(null,t,r,e,o,n);var s=ac();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(s=!0,is(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ec(t),o.updater=$s,t.stateNode=o,o._reactInternals=t,tl(t,r,e,n),t=ll(null,t,r,!0,s,n)):(t.tag=0,W&&s&&tc(t),Se(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=cv(r),e=Ze(r,e),o){case 0:t=il(null,t,r,e,n);break e;case 1:t=La(null,t,r,e,n);break e;case 11:t=Na(null,t,r,e,n);break e;case 14:t=Ca(null,t,r,Ze(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ze(r,o),il(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ze(r,o),La(e,t,r,o,n);case 3:e:{if(bd(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,o=s.element,jf(e,t),as(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Error(_(423)),t=Aa(e,t,r,n,o);break e}else if(r!==o){o=Error(_(424)),t=Aa(e,t,r,n,o);break e}else for(Ce=mt(t.stateNode.containerInfo.firstChild),Ue=t,W=!0,tt=null,n=Xf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jn(),r===o){t=xt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return Jf(t),e===null&&rl(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,Ki(r,o)?i=null:s!==null&&Ki(r,s)&&(t.flags|=32),kd(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&rl(t),null;case 13:return _d(e,t,n);case 4:return oc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ze(r,o),Na(e,t,r,o,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,z(ls,r._currentValue),r._currentValue=i,s!==null)if(ot(s.value,i)){if(s.children===o.children&&!qe.current){t=xt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=yt(-1,n&-n),c.tag=2;var a=s.updateQueue;if(a!==null){a=a.shared;var u=a.pending;u===null?c.next=c:(c.next=u.next,u.next=c),a.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Zi(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(_(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Zi(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Se(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,On(t,n),o=Qe(o),r=r(o),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,o=Ze(r,t.pendingProps),o=Ze(r.type,o),Ca(e,t,r,o,n);case 15:return xd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ze(r,o),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,$e(r)?(e=!0,is(t)):e=!1,On(t,n),Wf(t,r,o),tl(t,r,o,n),ll(null,t,r,!0,e,n);case 19:return Nd(e,t,n);case 22:return Td(e,t,n)}throw Error(_(156,t.tag))};function zd(e,t){return pf(e,t)}function lv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new lv(e,t,n,r)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cv(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ul)return 11;if(e===Fl)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fo(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")wc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Sn:return nn(n.children,o,s,t);case Ol:i=8,o|=8;break;case Ni:return e=Ve(12,n,t,o|2),e.elementType=Ni,e.lanes=s,e;case Ci:return e=Ve(13,n,t,o),e.elementType=Ci,e.lanes=s,e;case Li:return e=Ve(19,n,t,o),e.elementType=Li,e.lanes=s,e;case Xu:return ws(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qu:i=10;break e;case Ku:i=9;break e;case Ul:i=11;break e;case Fl:i=14;break e;case _t:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ve(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function nn(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function ws(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=Xu,e.lanes=n,e.stateNode={},e}function vi(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function yi(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function av(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zs(0),this.expirationTimes=Zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Sc(e,t,n,r,o,s,i,l,c){return e=new av(e,t,n,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ve(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ec(s),e}function uv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vd)}catch(e){console.error(e)}}Vd(),Bu.exports=ze;var hY=Bu.exports;const ko=({children:e,title:t="",icon:n,disabled:r=!1,toggled:o=!1,onClick:s=()=>{},style:i})=>{let l=`toolbar-button ${n}`;return o&&(l+=" toggled"),A("button",{className:l,onMouseDown:Va,onClick:s,onDoubleClick:Va,title:t,disabled:!!r,style:i,children:[n&&y("span",{className:`codicon codicon-${n}`,style:e?{marginRight:5}:{}}),e]})},Va=e=>{e.stopPropagation(),e.preventDefault()},zo=Symbol("context"),Wd=Symbol("next"),Gd=Symbol("prev"),Wa=Symbol("events"),Ga=Symbol("resources");class pY{constructor(t){we(this,"startTime");we(this,"endTime");we(this,"browserName");we(this,"platform");we(this,"wallTime");we(this,"title");we(this,"options");we(this,"pages");we(this,"actions");we(this,"events");we(this,"hasSource");we(this,"sdkLanguage");we(this,"testIdAttributeName");we(this,"sources");var n,r,o,s,i,l;t.forEach(c=>mv(c)),this.browserName=((n=t[0])==null?void 0:n.browserName)||"",this.sdkLanguage=(r=t[0])==null?void 0:r.sdkLanguage,this.testIdAttributeName=(o=t[0])==null?void 0:o.testIdAttributeName,this.platform=((s=t[0])==null?void 0:s.platform)||"",this.title=((i=t[0])==null?void 0:i.title)||"",this.options=((l=t[0])==null?void 0:l.options)||{},this.wallTime=t.map(c=>c.wallTime).reduce((c,a)=>Math.min(c||Number.MAX_VALUE,a),Number.MAX_VALUE),this.startTime=t.map(c=>c.startTime).reduce((c,a)=>Math.min(c,a),Number.MAX_VALUE),this.endTime=t.map(c=>c.endTime).reduce((c,a)=>Math.max(c,a),Number.MIN_VALUE),this.pages=[].concat(...t.map(c=>c.pages)),this.actions=gv(t),this.events=[].concat(...t.map(c=>c.events)),this.hasSource=t.some(c=>c.hasSource),this.events.sort((c,a)=>c.time-a.time),this.sources=wv(this.actions)}}function mv(e){for(const n of e.pages)n[zo]=e;for(let n=0;n=0;n--){const r=e.actions[n];r[Wd]=t,r.apiName.includes("route.")||(t=r)}for(const n of e.events)n[zo]=e}function gv(e){const t=new Map;let n=0;const r=e.filter(l=>l.isPrimary),o=e.filter(l=>!l.isPrimary);for(const l of r){for(const c of l.actions)t.set(`${c.apiName}@${c.wallTime}`,{...c,context:l});!n&&l.actions.length&&(n=l.actions[0].startTime-l.actions[0].wallTime)}const s=new Map;for(const l of o)for(const c of l.actions){if(n){const h=c.endTime-c.startTime;c.startTime&&(c.startTime=c.wallTime+n),c.endTime&&(c.endTime=c.startTime+h)}const a=`${c.apiName}@${c.wallTime}`,u=t.get(a);if(u&&u.apiName===c.apiName){s.set(c.callId,u.callId),c.error&&(u.error=c.error),c.attachments&&(u.attachments=c.attachments),c.parentId&&(u.parentId=s.get(c.parentId)??c.parentId);continue}c.parentId&&(c.parentId=s.get(c.parentId)??c.parentId),t.set(a,{...c,context:l})}const i=[...t.values()];i.sort((l,c)=>c.parentId===l.callId?-1:l.parentId===c.callId?1:l.wallTime-c.wallTime||l.startTime-c.startTime);for(let l=1;lr.time>=e.startTime&&(!n||r.timetypeof r._monotonicTime=="number"&&r._monotonicTime>e.startTime&&(!n||r._monotonicTime{const[s,i]=R.useState(Math.max(wi,e)),[l,c]=R.useState(null),a=R.Children.toArray(o);document.body.style.userSelect=l?"none":"inherit";let u={};return r==="vertical"?n?u={top:l?0:s-4,bottom:l?0:void 0,height:l?"initial":8}:u={bottom:l?0:s-4,top:l?0:void 0,height:l?"initial":8}:n?u={left:l?0:s-4,right:l?0:void 0,width:l?"initial":8}:u={right:l?0:s-4,left:l?0:void 0,width:l?"initial":8},A("div",{className:"split-view "+r+(n?" sidebar-first":""),children:[y("div",{className:"split-view-main",children:a[0]}),!t&&y("div",{style:{flexBasis:s},className:"split-view-sidebar",children:a[1]}),!t&&y("div",{style:u,className:"split-view-resizer",onMouseDown:h=>c({offset:r==="vertical"?h.clientY:h.clientX,size:s}),onMouseUp:()=>c(null),onMouseMove:h=>{if(!h.buttons)c(null);else if(l){const v=(r==="vertical"?h.clientY:h.clientX)-l.offset,m=n?l.size+v:l.size-v,S=h.target.parentElement.getBoundingClientRect(),p=Math.min(Math.max(wi,m),(r==="vertical"?S.height:S.width)-wi);i(p)}}})]})};function Hs(e,t="'"){const n=JSON.stringify(e),r=n.substring(1,n.length-1).replace(/\\"/g,'"');if(t==="'")return t+r.replace(/[']/g,"\\'")+t;if(t==='"')return t+r.replace(/["]/g,'\\"')+t;if(t==="`")return t+r.replace(/[`]/g,"`")+t;throw new Error("Invalid escape char")}function Sv(e){return typeof e=="string"||e instanceof String}function Es(e){return e.charAt(0).toUpperCase()+e.substring(1)}function Yd(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function ct(e){let t="";for(let n=0;n=1&&n<=31||n>=48&&n<=57&&(t===0||t===1&&e.charCodeAt(0)===45)?"\\"+n.toString(16)+" ":t===0&&n===45&&e.length===1?"\\"+e.charAt(t):n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?e.charAt(t):"\\"+e.charAt(t)}function Ae(e){return e.replace(/\u200b/g,"").trim().replace(/\s+/g," ")}function ft(e,t){return typeof e!="string"?String(e).replace(/>>/g,"\\>\\>"):`${JSON.stringify(e)}${t?"s":"i"}`}function _e(e,t){return typeof e!="string"?String(e).replace(/>>/g,"\\>\\>"):`"${e.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${t?"s":"i"}`}const te=function(e,t,n){return e>=t&&e<=n};function be(e){return te(e,48,57)}function Qa(e){return be(e)||te(e,65,70)||te(e,97,102)}function xv(e){return te(e,65,90)}function Tv(e){return te(e,97,122)}function kv(e){return xv(e)||Tv(e)}function bv(e){return e>=128}function Ho(e){return kv(e)||bv(e)||e===95}function Ka(e){return Ho(e)||be(e)||e===45}function _v(e){return te(e,0,8)||e===11||te(e,14,31)||e===127}function Bo(e){return e===10}function dt(e){return Bo(e)||e===9||e===32}const Nv=1114111;class kc extends Error{constructor(t){super(t),this.name="InvalidCharacterError"}}function Cv(e){const t=[];for(let n=0;n=t.length?-1:t[b]},i=function(b){if(b===void 0&&(b=1),b>3)throw"Spec Error: no more than three codepoints of lookahead.";return s(n+b)},l=function(b){return b===void 0&&(b=1),n+=b,o=s(n),!0},c=function(){return n-=1,!0},a=function(b){return b===void 0&&(b=o),b===-1},u=function(){if(h(),l(),dt(o)){for(;dt(i());)l();return new yl}else{if(o===34)return m();if(o===35)if(Ka(i())||p(i(1),i(2))){const b=new dh("");return g(i(1),i(2),i(3))&&(b.type="id"),b.value=w(),b}else return new me(o);else return o===36?i()===61?(l(),new Iv):new me(o):o===39?m():o===40?new Av:o===41?new ch:o===42?i()===61?(l(),new Mv):new me(o):o===43?k()?(c(),f()):new me(o):o===44?new oh:o===45?k()?(c(),f()):i(1)===45&&i(2)===62?(l(2),new th):T()?(c(),v()):new me(o):o===46?k()?(c(),f()):new me(o):o===58?new nh:o===59?new rh:o===60?i(1)===33&&i(2)===45&&i(3)===45?(l(3),new eh):new me(o):o===64?g(i(1),i(2),i(3))?new fh(w()):new me(o):o===91?new lh:o===92?d()?(c(),v()):new me(o):o===93?new wl:o===94?i()===61?(l(),new $v):new me(o):o===123?new sh:o===124?i()===61?(l(),new qv):i()===124?(l(),new ah):new me(o):o===125?new ih:o===126?i()===61?(l(),new Rv):new me(o):be(o)?(c(),f()):Ho(o)?(c(),v()):a()?new Vo:new me(o)}},h=function(){for(;i(1)===47&&i(2)===42;)for(l(2);;)if(l(),o===42&&i()===47){l();break}else if(a())return},f=function(){const b=N();if(g(i(1),i(2),i(3))){const L=new Pv;return L.value=b.value,L.repr=b.repr,L.type=b.type,L.unit=w(),L}else if(i()===37){l();const L=new gh;return L.value=b.value,L.repr=b.repr,L}else{const L=new mh;return L.value=b.value,L.repr=b.repr,L.type=b.type,L}},v=function(){const b=w();if(b.toLowerCase()==="url"&&i()===40){for(l();dt(i(1))&&dt(i(2));)l();return i()===34||i()===39?new Wo(b):dt(i())&&(i(2)===34||i(2)===39)?new Wo(b):E()}else return i()===40?(l(),new Wo(b)):new uh(b)},m=function(b){b===void 0&&(b=o);let L="";for(;l();){if(o===b||a())return new hh(L);if(Bo(o))return c(),new Zd;o===92?a(i())||(Bo(i())?l():L+=re(S())):L+=re(o)}throw new Error("Internal error")},E=function(){const b=new ph("");for(;dt(i());)l();if(a(i()))return b;for(;l();){if(o===41||a())return b;if(dt(o)){for(;dt(i());)l();return i()===41||a(i())?(l(),b):(I(),new jo)}else{if(o===34||o===39||o===40||_v(o))return I(),new jo;if(o===92)if(d())b.value+=re(S());else return I(),new jo;else b.value+=re(o)}}throw new Error("Internal error")},S=function(){if(l(),Qa(o)){const b=[o];for(let U=0;U<5&&Qa(i());U++)l(),b.push(o);dt(i())&&l();let L=parseInt(b.map(function(U){return String.fromCharCode(U)}).join(""),16);return L>Nv&&(L=65533),L}else return a()?65533:o},p=function(b,L){return!(b!==92||Bo(L))},d=function(){return p(o,i())},g=function(b,L,U){return b===45?Ho(L)||L===45||p(L,U):Ho(b)?!0:b===92?p(b,L):!1},T=function(){return g(o,i(1),i(2))},x=function(b,L,U){return b===43||b===45?!!(be(L)||L===46&&be(U)):b===46?!!be(L):!!be(b)},k=function(){return x(o,i(1),i(2))},w=function(){let b="";for(;l();)if(Ka(o))b+=re(o);else if(d())b+=re(S());else return c(),b;throw new Error("Internal parse error")},N=function(){let b="",L="integer";for((i()===43||i()===45)&&(l(),b+=re(o));be(i());)l(),b+=re(o);if(i(1)===46&&be(i(2)))for(l(),b+=re(o),l(),b+=re(o),L="number";be(i());)l(),b+=re(o);const U=i(1),Y=i(2),G=i(3);if((U===69||U===101)&&be(Y))for(l(),b+=re(o),l(),b+=re(o),L="number";be(i());)l(),b+=re(o);else if((U===69||U===101)&&(Y===43||Y===45)&&be(G))for(l(),b+=re(o),l(),b+=re(o),l(),b+=re(o),L="number";be(i());)l(),b+=re(o);const ye=$(b);return{type:L,value:ye,repr:b}},$=function(b){return+b},I=function(){for(;l();){if(o===41||a())return;d()&&S()}};let H=0;for(;!a(i());)if(r.push(u()),H++,H>t.length*2)throw new Error("I'm infinite-looping!");return r}class ee{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Zd extends ee{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class jo extends ee{constructor(){super(...arguments),this.tokenType="BADURL"}}class yl extends ee{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class eh extends ee{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return""}}class nh extends ee{constructor(){super(...arguments),this.tokenType=":"}}class rh extends ee{constructor(){super(...arguments),this.tokenType=";"}}class oh extends ee{constructor(){super(...arguments),this.tokenType=","}}class Zn extends ee{constructor(){super(...arguments),this.value="",this.mirror=""}}class sh extends Zn{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class ih extends Zn{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class lh extends Zn{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class wl extends Zn{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Av extends Zn{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class ch extends Zn{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class Rv extends ee{constructor(){super(...arguments),this.tokenType="~="}}class qv extends ee{constructor(){super(...arguments),this.tokenType="|="}}class $v extends ee{constructor(){super(...arguments),this.tokenType="^="}}class Iv extends ee{constructor(){super(...arguments),this.tokenType="$="}}class Mv extends ee{constructor(){super(...arguments),this.tokenType="*="}}class ah extends ee{constructor(){super(...arguments),this.tokenType="||"}}class Vo extends ee{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class me extends ee{constructor(t){super(),this.tokenType="DELIM",this.value="",this.value=re(t)}toString(){return"DELIM("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}toSource(){return this.value==="\\"?`\\ +`:this.value}}class er extends ee{constructor(){super(...arguments),this.value=""}ASCIIMatch(t){return this.value.toLowerCase()===t.toLowerCase()}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}}class uh extends er{constructor(t){super(),this.tokenType="IDENT",this.value=t}toString(){return"IDENT("+this.value+")"}toSource(){return no(this.value)}}class Wo extends er{constructor(t){super(),this.tokenType="FUNCTION",this.value=t,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return no(this.value)+"("}}class fh extends er{constructor(t){super(),this.tokenType="AT-KEYWORD",this.value=t}toString(){return"AT("+this.value+")"}toSource(){return"@"+no(this.value)}}class dh extends er{constructor(t){super(),this.tokenType="HASH",this.value=t,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t}toSource(){return this.type==="id"?"#"+no(this.value):"#"+Dv(this.value)}}class hh extends er{constructor(t){super(),this.tokenType="STRING",this.value=t}toString(){return'"'+vh(this.value)+'"'}}class ph extends er{constructor(t){super(),this.tokenType="URL",this.value=t}toString(){return"URL("+this.value+")"}toSource(){return'url("'+vh(this.value)+'")'}}class mh extends ee{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const t=super.toJSON();return t.value=this.value,t.type=this.type,t.repr=this.repr,t}toSource(){return this.repr}}class gh extends ee{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.repr=this.repr,t}toSource(){return this.repr+"%"}}class Pv extends ee{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t.repr=this.repr,t.unit=this.unit,t}toSource(){const t=this.repr;let n=no(this.unit);return n[0].toLowerCase()==="e"&&(n[1]==="-"||te(n.charCodeAt(1),48,57))&&(n="\\65 "+n.slice(1,n.length)),t+n}}function no(e){e=""+e;let t="";const n=e.charCodeAt(0);for(let r=0;r=128||o===45||o===95||te(o,48,57)||te(o,65,90)||te(o,97,122)?t+=e[r]:t+="\\"+e[r]}return t}function Dv(e){e=""+e;let t="";for(let n=0;n=128||r===45||r===95||te(r,48,57)||te(r,65,90)||te(r,97,122)?t+=e[n]:t+="\\"+r.toString(16)+" "}return t}function vh(e){e=""+e;let t="";for(let n=0;nw instanceof fh||w instanceof Zd||w instanceof jo||w instanceof ah||w instanceof eh||w instanceof th||w instanceof rh||w instanceof sh||w instanceof ih||w instanceof ph||w instanceof gh);if(r)throw new Ee(`Unsupported token "${r.toSource()}" while parsing selector "${e}"`);let o=0;const s=new Set;function i(){return new Ee(`Unexpected token "${n[o].toSource()}" while parsing selector "${e}"`)}function l(){for(;n[o]instanceof yl;)o++}function c(w=o){return n[w]instanceof uh}function a(w=o){return n[w]instanceof hh}function u(w=o){return n[w]instanceof mh}function h(w=o){return n[w]instanceof oh}function f(w=o){return n[w]instanceof ch}function v(w=o){return n[w]instanceof me&&n[w].value==="*"}function m(w=o){return n[w]instanceof Vo}function E(w=o){return n[w]instanceof me&&[">","+","~"].includes(n[w].value)}function S(w=o){return h(w)||f(w)||m(w)||E(w)||n[w]instanceof yl}function p(){const w=[d()];for(;l(),!!h();)o++,w.push(d());return w}function d(){return l(),u()||a()?n[o++].value:g()}function g(){const w={simples:[]};for(l(),E()?w.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):w.simples.push({selector:T(),combinator:""});;){if(l(),E())w.simples[w.simples.length-1].combinator=n[o++].value,l();else if(S())break;w.simples.push({combinator:"",selector:T()})}return w}function T(){let w="";const N=[];for(;!S();)if(c()||v())w+=n[o++].toSource();else if(n[o]instanceof dh)w+=n[o++].toSource();else if(n[o]instanceof me&&n[o].value===".")if(o++,c())w+="."+n[o++].toSource();else throw i();else if(n[o]instanceof nh)if(o++,c())if(!t.has(n[o].value.toLowerCase()))w+=":"+n[o++].toSource();else{const $=n[o++].value.toLowerCase();N.push({name:$,args:[]}),s.add($)}else if(n[o]instanceof Wo){const $=n[o++].value.toLowerCase();if(t.has($)?(N.push({name:$,args:p()}),s.add($)):w+=`:${$}(${x()})`,l(),!f())throw i();o++}else throw i();else if(n[o]instanceof lh){for(w+="[",o++;!(n[o]instanceof wl)&&!m();)w+=n[o++].toSource();if(!(n[o]instanceof wl))throw i();w+="]",o++}else throw i();if(!w&&!N.length)throw i();return{css:w||void 0,functions:N}}function x(){let w="";for(;!f()&&!m();)w+=n[o++].toSource();return w}const k=p();if(!m())throw new Ee(`Error while parsing selector "${e}"`);if(k.some(w=>typeof w!="object"||!("simples"in w)))throw new Ee(`Error while parsing selector "${e}"`);return{selector:k,names:Array.from(s)}}const Sl=new Set(["internal:has","internal:has-not","internal:and","internal:or","left-of","right-of","above","below","near"]),Uv=new Set(["left-of","right-of","above","below","near"]),yh=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Xr(e){const t=Hv(e),n=[];for(const r of t.parts){if(r.name==="css"||r.name==="css:light"){r.name==="css:light"&&(r.body=":light("+r.body+")");const o=Ov(r.body,yh);n.push({name:"css",body:o.selector,source:r.body});continue}if(Sl.has(r.name)){let o,s;try{const a=JSON.parse("["+r.body+"]");if(!Array.isArray(a)||a.length<1||a.length>2||typeof a[0]!="string")throw new Ee(`Malformed selector: ${r.name}=`+r.body);if(o=a[0],a.length===2){if(typeof a[1]!="number"||!Uv.has(r.name))throw new Ee(`Malformed selector: ${r.name}=`+r.body);s=a[1]}}catch{throw new Ee(`Malformed selector: ${r.name}=`+r.body)}const i={name:r.name,source:r.body,body:{parsed:Xr(o),distance:s}},l=[...i.body.parsed.parts].reverse().find(a=>a.name==="internal:control"&&a.body==="enter-frame"),c=l?i.body.parsed.parts.indexOf(l):-1;c!==-1&&Fv(i.body.parsed.parts.slice(0,c+1),n.slice(0,c+1))&&i.body.parsed.parts.splice(0,c+1),n.push(i);continue}n.push({...r,source:r.body})}if(Sl.has(n[0].name))throw new Ee(`"${n[0].name}" selector cannot be first`);return{capture:t.capture,parts:n}}function Fv(e,t){return Kn({parts:e})===Kn({parts:t})}function Kn(e){return typeof e=="string"?e:e.parts.map((t,n)=>{const r=t.name==="css"?"":t.name+"=";return`${n===e.capture?"*":""}${r}${t.source}`}).join(" >> ")}function zv(e,t){const n=(r,o)=>{for(const s of r.parts)t(s,o),Sl.has(s.name)&&n(s.body.parsed,!0)};n(e,!1)}function Hv(e){let t=0,n,r=0;const o={parts:[]},s=()=>{const l=e.substring(r,t).trim(),c=l.indexOf("=");let a,u;c!==-1&&l.substring(0,c).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(a=l.substring(0,c).trim(),u=l.substring(c+1)):l.length>1&&l[0]==='"'&&l[l.length-1]==='"'||l.length>1&&l[0]==="'"&&l[l.length-1]==="'"?(a="text",u=l):/^\(*\/\//.test(l)||l.startsWith("..")?(a="xpath",u=l):(a="css",u=l);let h=!1;if(a[0]==="*"&&(h=!0,a=a.substring(1)),o.parts.push({name:a,body:u}),h){if(o.capture!==void 0)throw new Ee("Only one of the selectors can capture using * modifier");o.capture=o.parts.length-1}};if(!e.includes(">>"))return t=e.length,s(),o;const i=()=>{const c=e.substring(r,t).match(/^\s*text\s*=(.*)$/);return!!c&&!!c[1]};for(;t"&&e[t+1]===">"?(s(),t+=2,r=t):t++}return s(),o}function rn(e,t){let n=0,r=e.length===0;const o=()=>e[n]||"",s=()=>{const S=o();return++n,r=n>=e.length,S},i=S=>{throw r?new Ee(`Unexpected end of selector while parsing selector \`${e}\``):new Ee(`Error while parsing selector \`${e}\` - unexpected symbol "${o()}" at position ${n}`+(S?" during "+S:""))};function l(){for(;!r&&/\s/.test(o());)s()}function c(S){return S>="ย€"||S>="0"&&S<="9"||S>="A"&&S<="Z"||S>="a"&&S<="z"||S>="0"&&S<="9"||S==="_"||S==="-"}function a(){let S="";for(l();!r&&c(o());)S+=s();return S}function u(S){let p=s();for(p!==S&&i("parsing quoted string");!r&&o()!==S;)o()==="\\"&&s(),p+=s();return o()!==S&&i("parsing quoted string"),p+=s(),p}function h(){s()!=="/"&&i("parsing regular expression");let S="",p=!1;for(;!r;){if(o()==="\\")S+=s(),r&&i("parsing regular expressiion");else if(p&&o()==="]")p=!1;else if(!p&&o()==="[")p=!0;else if(!p&&o()==="/")break;S+=s()}s()!=="/"&&i("parsing regular expression");let d="";for(;!r&&o().match(/[dgimsuy]/);)d+=s();try{return new RegExp(S,d)}catch(g){throw new Ee(`Error while parsing selector \`${e}\`: ${g.message}`)}}function f(){let S="";return l(),o()==="'"||o()==='"'?S=u(o()).slice(1,-1):S=a(),S||i("parsing property path"),S}function v(){l();let S="";return r||(S+=s()),!r&&S!=="="&&(S+=s()),["=","*=","^=","$=","|=","~="].includes(S)||i("parsing operator"),S}function m(){s();const S=[];for(S.push(f()),l();o()===".";)s(),S.push(f()),l();if(o()==="]")return s(),{name:S.join("."),jsonPath:S,op:"",value:null,caseSensitive:!1};const p=v();let d,g=!0;if(l(),o()==="/"){if(p!=="=")throw new Ee(`Error while parsing selector \`${e}\` - cannot use ${p} in attribute with regular expression`);d=h()}else if(o()==="'"||o()==='"')d=u(o()).slice(1,-1),l(),o()==="i"||o()==="I"?(g=!1,s()):(o()==="s"||o()==="S")&&(g=!0,s());else{for(d="";!r&&(c(o())||o()==="+"||o()===".");)d+=s();d==="true"?d=!0:d==="false"?d=!1:t||(d=+d,Number.isNaN(d)&&i("parsing attribute value"))}if(l(),o()!=="]"&&i("parsing attribute value"),s(),p!=="="&&typeof d!="string")throw new Ee(`Error while parsing selector \`${e}\` - cannot use ${p} in attribute with non-string matching value - ${d}`);return{name:S.join("."),jsonPath:S,op:p,value:d,caseSensitive:g}}const E={name:"",attributes:[]};for(E.name=a(),l();o()==="[";)E.attributes.push(m()),l();if(r||i(void 0),!E.name&&!E.attributes.length)throw new Ee(`Error while parsing selector \`${e}\` - selector cannot be empty`);return E}function Bt(e,t,n=!1,r=!1){return wh(e,t,n,r)[0]}function wh(e,t,n=!1,r=!1,o=20){if(r)try{return Rn(Xa[e],Xr(t),n,o)}catch{return[t]}else return Rn(Xa[e],Xr(t),n,o)}function Rn(e,t,n=!1,r=20){const o=[...t.parts];for(let l=0;le.generateLocator(a,"has",E)));continue}if(c.name==="internal:has-not"){const m=Rn(e,c.body.parsed,!1,r);s.push(m.map(E=>e.generateLocator(a,"hasNot",E)));continue}if(c.name==="internal:and"){const m=Rn(e,c.body.parsed,!1,r);s.push(m.map(E=>e.generateLocator(a,"and",E)));continue}if(c.name==="internal:or"){const m=Rn(e,c.body.parsed,!1,r);s.push(m.map(E=>e.generateLocator(a,"or",E)));continue}if(c.name==="internal:label"){const{exact:m,text:E}=fr(c.body);s.push([e.generateLocator(a,"label",E,{exact:m})]);continue}if(c.name==="internal:role"){const m=rn(c.body,!0),E={attrs:[]};for(const S of m.attributes)S.name==="name"?(E.exact=S.caseSensitive,E.name=S.value):(S.name==="level"&&typeof S.value=="string"&&(S.value=+S.value),E.attrs.push({name:S.name==="include-hidden"?"includeHidden":S.name,value:S.value}));s.push([e.generateLocator(a,"role",m.name,E)]);continue}if(c.name==="internal:testid"){const m=rn(c.body,!0),{value:E}=m.attributes[0];s.push([e.generateLocator(a,"test-id",E)]);continue}if(c.name==="internal:attr"){const m=rn(c.body,!0),{name:E,value:S,caseSensitive:p}=m.attributes[0],d=S,g=!!p;if(E==="placeholder"){s.push([e.generateLocator(a,"placeholder",d,{exact:g})]);continue}if(E==="alt"){s.push([e.generateLocator(a,"alt",d,{exact:g})]);continue}if(E==="title"){s.push([e.generateLocator(a,"title",d,{exact:g})]);continue}}let u="default";const h=o[l+1];h&&h.name==="internal:control"&&h.body==="enter-frame"&&(u="frame",i="frame-locator",l++);const f=Kn({parts:[c]}),v=e.generateLocator(a,u,f);if(u==="default"&&h&&["internal:has-text","internal:has-not-text"].includes(h.name)){const{exact:m,text:E}=fr(h.body);if(!m){const S=e.generateLocator("locator",h.name==="internal:has-text"?"has-text":"has-not-text",E,{exact:m}),p={};h.name==="internal:has-text"?p.hasText=E:p.hasNotText=E;const d=e.generateLocator(a,"default",f,p);s.push([e.chainLocators([v,S]),d]),l++;continue}}s.push([v])}return Bv(e,s,r)}function Bv(e,t,n){const r=t.map(()=>""),o=[],s=i=>{if(i===t.length)return o.push(e.chainLocators(r)),r.lengthJSON.parse(r));for(let r=0;r{h==null||h(S)},[h,S]),y("div",{className:"list-view vbox",role:"list","data-testid":m,children:A("div",{className:"list-view-content",tabIndex:0,onDoubleClick:()=>i&&(l==null?void 0:l(i)),onKeyDown:d=>{var k;if(i&&d.key==="Enter"){l==null||l(i);return}if(d.key!=="ArrowDown"&&d.key!=="ArrowUp"&&d.key!=="ArrowLeft"&&d.key!=="ArrowRight")return;if(d.stopPropagation(),d.preventDefault(),i&&d.key==="ArrowLeft"){a==null||a(i);return}if(i&&d.key==="ArrowRight"){u==null||u(i);return}const g=i?e.indexOf(i):-1;let T=g;d.key==="ArrowDown"&&(g===-1?T=0:T=Math.min(g+1,e.length-1)),d.key==="ArrowUp"&&(g===-1?T=e.length-1:T=Math.max(g-1,0));const x=(k=E.current)==null?void 0:k.children.item(T);Kv(x||void 0),h==null||h(void 0),c==null||c(e[T])},ref:E,children:[v&&e.length===0&&y("div",{className:"list-view-empty",children:v}),e.map((d,g)=>{const T=i===d?" selected":"",x=S===d?" highlighted":"",k=o!=null&&o(d)?" error":"",w=(s==null?void 0:s(d))||0,N=n(d);return A("div",{role:"listitem",className:"list-view-entry"+T+x+k,onClick:()=>c==null?void 0:c(d),onMouseEnter:()=>p(d),onMouseLeave:()=>p(void 0),children:[w?new Array(w).fill(0).map(()=>y("div",{className:"list-view-indent"})):void 0,r&&y("div",{className:"codicon "+(r(d)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:$=>{$.preventDefault(),$.stopPropagation()},onClick:$=>{$.stopPropagation(),$.preventDefault(),f==null||f(d)}}),typeof N=="string"?y("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:N}):N]},(t==null?void 0:t(d))||g)})]})})}function Kv(e){e&&(e!=null&&e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e==null||e.scrollIntoView())}const Xv=Sh;function Jv({rootItem:e,render:t,icon:n,isError:r,selectedItem:o,onAccepted:s,onSelected:i,onHighlighted:l,treeState:c,setTreeState:a,noItemsMessage:u,dataTestId:h,autoExpandDepth:f}){const v=R.useMemo(()=>{for(let m=o==null?void 0:o.parent;m;m=m.parent)c.expandedItems.set(m.id,!0);return Yv(e,c.expandedItems,f||0)},[e,o,c,f]);return y(Xv,{items:[...v.keys()],id:m=>m.id,dataTestId:h,render:m=>{const E=t(m);return A(fn,{children:[n&&y("div",{className:"codicon "+(n(m)||"blank"),style:{minWidth:16,marginRight:4}}),typeof E=="string"?y("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:E}):E]})},icon:m=>{const E=v.get(m).expanded;if(typeof E=="boolean")return E?"codicon-chevron-down":"codicon-chevron-right"},isError:m=>(r==null?void 0:r(m))||!1,indent:m=>v.get(m).depth,selectedItem:o,onAccepted:m=>s==null?void 0:s(m),onSelected:m=>i==null?void 0:i(m),onHighlighted:m=>l==null?void 0:l(m),onLeftArrow:m=>{const{expanded:E,parent:S}=v.get(m);E?(c.expandedItems.set(m.id,!1),a({...c})):S&&(i==null||i(S))},onRightArrow:m=>{m.children.length&&(c.expandedItems.set(m.id,!0),a({...c}))},onIconClicked:m=>{const{expanded:E}=v.get(m);if(E){for(let S=o;S;S=S.parent)if(S===m){i==null||i(m);break}c.expandedItems.set(m.id,!1)}else c.expandedItems.set(m.id,!0);a({...c})},noItemsMessage:u})}function Yv(e,t,n){const r=new Map,o=(s,i)=>{for(const l of s.children){const c=t.get(l.id),a=n>i&&r.size<25&&c!==!1,u=l.children.length?c||a:void 0;r.set(l,{depth:i,expanded:u,parent:e===s?null:s}),u&&o(l,i+1)}};return o(e,0),r}const Zv=Jv,ey=({actions:e,selectedAction:t,sdkLanguage:n,onSelected:r,onHighlighted:o,revealConsole:s,isLive:i})=>{const[l,c]=R.useState({expandedItems:new Map}),{rootItem:a,itemMap:u}=R.useMemo(()=>vv(e),[e]),{selectedItem:h}=R.useMemo(()=>({selectedItem:t?u.get(t.callId):void 0}),[u,t]);return y(Zv,{dataTestId:"action-list",rootItem:a,treeState:l,setTreeState:c,selectedItem:h,onSelected:f=>r(f.action),onHighlighted:f=>o(f==null?void 0:f.action),isError:f=>{var v,m;return!!((m=(v=f.action)==null?void 0:v.error)!=null&&m.message)},render:f=>ty(f.action,n,s,i||!1)})},ty=(e,t,n,r)=>{const{errors:o,warnings:s}=Kd(e),i=e.params.selector?Bt(t||"javascript",e.params.selector,!1,!0):void 0;let l="";return e.endTime?l=zn(e.endTime-e.startTime):e.error?l="Timed out":r||(l="-"),A(fn,{children:[A("div",{className:"action-title",children:[y("span",{children:e.apiName}),i&&y("div",{className:"action-selector",title:i,children:i}),e.method==="goto"&&e.params.url&&y("div",{className:"action-url",title:e.params.url,children:e.params.url})]}),y("div",{className:"action-duration",style:{flex:"none"},children:l||y("span",{className:"codicon codicon-loading"})}),A("div",{className:"action-icons",onClick:()=>n(),children:[!!o&&A("div",{className:"action-icon",children:[y("span",{className:"codicon codicon-error"}),y("span",{className:"action-icon-value",children:o})]}),!!s&&A("div",{className:"action-icon",children:[y("span",{className:"codicon codicon-warning"}),y("span",{className:"action-icon-value",children:s})]})]})]})};const ny=({value:e})=>{const[t,n]=R.useState("codicon-clippy"),r=R.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{n("codicon-check"),setTimeout(()=>{n("codicon-clippy")},3e3)},()=>{n("codicon-close")})},[e]);return y("span",{className:`copy-icon codicon ${t}`,onClick:r})};var Eh={},wt={};const ry="ร",oy="รก",sy="ฤ‚",iy="ฤƒ",ly="โˆพ",cy="โˆฟ",ay="โˆพฬณ",uy="ร‚",fy="รข",dy="ยด",hy="ะ",py="ะฐ",my="ร†",gy="รฆ",vy="โก",yy="๐”„",wy="๐”ž",Sy="ร€",Ey="ร ",xy="โ„ต",Ty="โ„ต",ky="ฮ‘",by="ฮฑ",_y="ฤ€",Ny="ฤ",Cy="โจฟ",Ly="&",Ay="&",Ry="โฉ•",qy="โฉ“",$y="โˆง",Iy="โฉœ",My="โฉ˜",Py="โฉš",Dy="โˆ ",Oy="โฆค",Uy="โˆ ",Fy="โฆจ",zy="โฆฉ",Hy="โฆช",By="โฆซ",jy="โฆฌ",Vy="โฆญ",Wy="โฆฎ",Gy="โฆฏ",Qy="โˆก",Ky="โˆŸ",Xy="โŠพ",Jy="โฆ",Yy="โˆข",Zy="ร…",ew="โผ",tw="ฤ„",nw="ฤ…",rw="๐”ธ",ow="๐•’",sw="โฉฏ",iw="โ‰ˆ",lw="โฉฐ",cw="โ‰Š",aw="โ‰‹",uw="'",fw="โก",dw="โ‰ˆ",hw="โ‰Š",pw="ร…",mw="รฅ",gw="๐’œ",vw="๐’ถ",yw="โ‰”",ww="*",Sw="โ‰ˆ",Ew="โ‰",xw="รƒ",Tw="รฃ",kw="ร„",bw="รค",_w="โˆณ",Nw="โจ‘",Cw="โ‰Œ",Lw="ฯถ",Aw="โ€ต",Rw="โˆฝ",qw="โ‹",$w="โˆ–",Iw="โซง",Mw="โŠฝ",Pw="โŒ…",Dw="โŒ†",Ow="โŒ…",Uw="โŽต",Fw="โŽถ",zw="โ‰Œ",Hw="ะ‘",Bw="ะฑ",jw="โ€ž",Vw="โˆต",Ww="โˆต",Gw="โˆต",Qw="โฆฐ",Kw="ฯถ",Xw="โ„ฌ",Jw="โ„ฌ",Yw="ฮ’",Zw="ฮฒ",e0="โ„ถ",t0="โ‰ฌ",n0="๐”…",r0="๐”Ÿ",o0="โ‹‚",s0="โ—ฏ",i0="โ‹ƒ",l0="โจ€",c0="โจ",a0="โจ‚",u0="โจ†",f0="โ˜…",d0="โ–ฝ",h0="โ–ณ",p0="โจ„",m0="โ‹",g0="โ‹€",v0="โค",y0="โงซ",w0="โ–ช",S0="โ–ด",E0="โ–พ",x0="โ—‚",T0="โ–ธ",k0="โฃ",b0="โ–’",_0="โ–‘",N0="โ–“",C0="โ–ˆ",L0="=โƒฅ",A0="โ‰กโƒฅ",R0="โซญ",q0="โŒ",$0="๐”น",I0="๐•“",M0="โŠฅ",P0="โŠฅ",D0="โ‹ˆ",O0="โง‰",U0="โ”",F0="โ••",z0="โ•–",H0="โ•—",B0="โ”Œ",j0="โ•’",V0="โ•“",W0="โ•”",G0="โ”€",Q0="โ•",K0="โ”ฌ",X0="โ•ค",J0="โ•ฅ",Y0="โ•ฆ",Z0="โ”ด",e1="โ•ง",t1="โ•จ",n1="โ•ฉ",r1="โŠŸ",o1="โŠž",s1="โŠ ",i1="โ”˜",l1="โ•›",c1="โ•œ",a1="โ•",u1="โ””",f1="โ•˜",d1="โ•™",h1="โ•š",p1="โ”‚",m1="โ•‘",g1="โ”ผ",v1="โ•ช",y1="โ•ซ",w1="โ•ฌ",S1="โ”ค",E1="โ•ก",x1="โ•ข",T1="โ•ฃ",k1="โ”œ",b1="โ•ž",_1="โ•Ÿ",N1="โ• ",C1="โ€ต",L1="ห˜",A1="ห˜",R1="ยฆ",q1="๐’ท",$1="โ„ฌ",I1="โ",M1="โˆฝ",P1="โ‹",D1="โง…",O1="\\",U1="โŸˆ",F1="โ€ข",z1="โ€ข",H1="โ‰Ž",B1="โชฎ",j1="โ‰",V1="โ‰Ž",W1="โ‰",G1="ฤ†",Q1="ฤ‡",K1="โฉ„",X1="โฉ‰",J1="โฉ‹",Y1="โˆฉ",Z1="โ‹’",eS="โฉ‡",tS="โฉ€",nS="โ……",rS="โˆฉ๏ธ€",oS="โ",sS="ห‡",iS="โ„ญ",lS="โฉ",cS="ฤŒ",aS="ฤ",uS="ร‡",fS="รง",dS="ฤˆ",hS="ฤ‰",pS="โˆฐ",mS="โฉŒ",gS="โฉ",vS="ฤŠ",yS="ฤ‹",wS="ยธ",SS="ยธ",ES="โฆฒ",xS="ยข",TS="ยท",kS="ยท",bS="๐” ",_S="โ„ญ",NS="ะง",CS="ั‡",LS="โœ“",AS="โœ“",RS="ฮง",qS="ฯ‡",$S="ห†",IS="โ‰—",MS="โ†บ",PS="โ†ป",DS="โŠ›",OS="โŠš",US="โŠ",FS="โŠ™",zS="ยฎ",HS="โ“ˆ",BS="โŠ–",jS="โŠ•",VS="โŠ—",WS="โ—‹",GS="โงƒ",QS="โ‰—",KS="โจ",XS="โซฏ",JS="โง‚",YS="โˆฒ",ZS="โ€",eE="โ€™",tE="โ™ฃ",nE="โ™ฃ",rE=":",oE="โˆท",sE="โฉด",iE="โ‰”",lE="โ‰”",cE=",",aE="@",uE="โˆ",fE="โˆ˜",dE="โˆ",hE="โ„‚",pE="โ‰…",mE="โฉญ",gE="โ‰ก",vE="โˆฎ",yE="โˆฏ",wE="โˆฎ",SE="๐•”",EE="โ„‚",xE="โˆ",TE="โˆ",kE="ยฉ",bE="ยฉ",_E="โ„—",NE="โˆณ",CE="โ†ต",LE="โœ—",AE="โจฏ",RE="๐’ž",qE="๐’ธ",$E="โซ",IE="โซ‘",ME="โซ",PE="โซ’",DE="โ‹ฏ",OE="โคธ",UE="โคต",FE="โ‹ž",zE="โ‹Ÿ",HE="โ†ถ",BE="โคฝ",jE="โฉˆ",VE="โฉ†",WE="โ‰",GE="โˆช",QE="โ‹“",KE="โฉŠ",XE="โŠ",JE="โฉ…",YE="โˆช๏ธ€",ZE="โ†ท",ex="โคผ",tx="โ‹ž",nx="โ‹Ÿ",rx="โ‹Ž",ox="โ‹",sx="ยค",ix="โ†ถ",lx="โ†ท",cx="โ‹Ž",ax="โ‹",ux="โˆฒ",fx="โˆฑ",dx="โŒญ",hx="โ€ ",px="โ€ก",mx="โ„ธ",gx="โ†“",vx="โ†ก",yx="โ‡“",wx="โ€",Sx="โซค",Ex="โŠฃ",xx="โค",Tx="ห",kx="ฤŽ",bx="ฤ",_x="ะ”",Nx="ะด",Cx="โ€ก",Lx="โ‡Š",Ax="โ……",Rx="โ…†",qx="โค‘",$x="โฉท",Ix="ยฐ",Mx="โˆ‡",Px="ฮ”",Dx="ฮด",Ox="โฆฑ",Ux="โฅฟ",Fx="๐”‡",zx="๐”ก",Hx="โฅฅ",Bx="โ‡ƒ",jx="โ‡‚",Vx="ยด",Wx="ห™",Gx="ห",Qx="`",Kx="หœ",Xx="โ‹„",Jx="โ‹„",Yx="โ‹„",Zx="โ™ฆ",eT="โ™ฆ",tT="ยจ",nT="โ…†",rT="ฯ",oT="โ‹ฒ",sT="รท",iT="รท",lT="โ‹‡",cT="โ‹‡",aT="ะ‚",uT="ั’",fT="โŒž",dT="โŒ",hT="$",pT="๐”ป",mT="๐••",gT="ยจ",vT="ห™",yT="โƒœ",wT="โ‰",ST="โ‰‘",ET="โ‰",xT="โˆธ",TT="โˆ”",kT="โŠก",bT="โŒ†",_T="โˆฏ",NT="ยจ",CT="โ‡“",LT="โ‡",AT="โ‡”",RT="โซค",qT="โŸธ",$T="โŸบ",IT="โŸน",MT="โ‡’",PT="โŠจ",DT="โ‡‘",OT="โ‡•",UT="โˆฅ",FT="โค“",zT="โ†“",HT="โ†“",BT="โ‡“",jT="โ‡ต",VT="ฬ‘",WT="โ‡Š",GT="โ‡ƒ",QT="โ‡‚",KT="โฅ",XT="โฅž",JT="โฅ–",YT="โ†ฝ",ZT="โฅŸ",ek="โฅ—",tk="โ‡",nk="โ†ง",rk="โŠค",ok="โค",sk="โŒŸ",ik="โŒŒ",lk="๐’Ÿ",ck="๐’น",ak="ะ…",uk="ั•",fk="โงถ",dk="ฤ",hk="ฤ‘",pk="โ‹ฑ",mk="โ–ฟ",gk="โ–พ",vk="โ‡ต",yk="โฅฏ",wk="โฆฆ",Sk="ะ",Ek="ัŸ",xk="โŸฟ",Tk="ร‰",kk="รฉ",bk="โฉฎ",_k="ฤš",Nk="ฤ›",Ck="รŠ",Lk="รช",Ak="โ‰–",Rk="โ‰•",qk="ะญ",$k="ั",Ik="โฉท",Mk="ฤ–",Pk="ฤ—",Dk="โ‰‘",Ok="โ…‡",Uk="โ‰’",Fk="๐”ˆ",zk="๐”ข",Hk="โชš",Bk="รˆ",jk="รจ",Vk="โช–",Wk="โช˜",Gk="โช™",Qk="โˆˆ",Kk="โง",Xk="โ„“",Jk="โช•",Yk="โช—",Zk="ฤ’",eb="ฤ“",tb="โˆ…",nb="โˆ…",rb="โ—ป",ob="โˆ…",sb="โ–ซ",ib="โ€„",lb="โ€…",cb="โ€ƒ",ab="ลŠ",ub="ล‹",fb="โ€‚",db="ฤ˜",hb="ฤ™",pb="๐”ผ",mb="๐•–",gb="โ‹•",vb="โงฃ",yb="โฉฑ",wb="ฮต",Sb="ฮ•",Eb="ฮต",xb="ฯต",Tb="โ‰–",kb="โ‰•",bb="โ‰‚",_b="โช–",Nb="โช•",Cb="โฉต",Lb="=",Ab="โ‰‚",Rb="โ‰Ÿ",qb="โ‡Œ",$b="โ‰ก",Ib="โฉธ",Mb="โงฅ",Pb="โฅฑ",Db="โ‰“",Ob="โ„ฏ",Ub="โ„ฐ",Fb="โ‰",zb="โฉณ",Hb="โ‰‚",Bb="ฮ—",jb="ฮท",Vb="ร",Wb="รฐ",Gb="ร‹",Qb="รซ",Kb="โ‚ฌ",Xb="!",Jb="โˆƒ",Yb="โˆƒ",Zb="โ„ฐ",e_="โ…‡",t_="โ…‡",n_="โ‰’",r_="ะค",o_="ั„",s_="โ™€",i_="๏ฌƒ",l_="๏ฌ€",c_="๏ฌ„",a_="๐”‰",u_="๐”ฃ",f_="๏ฌ",d_="โ—ผ",h_="โ–ช",p_="fj",m_="โ™ญ",g_="๏ฌ‚",v_="โ–ฑ",y_="ฦ’",w_="๐”ฝ",S_="๐•—",E_="โˆ€",x_="โˆ€",T_="โ‹”",k_="โซ™",b_="โ„ฑ",__="โจ",N_="ยฝ",C_="โ…“",L_="ยผ",A_="โ…•",R_="โ…™",q_="โ…›",$_="โ…”",I_="โ…–",M_="ยพ",P_="โ…—",D_="โ…œ",O_="โ…˜",U_="โ…š",F_="โ…",z_="โ…ž",H_="โ„",B_="โŒข",j_="๐’ป",V_="โ„ฑ",W_="วต",G_="ฮ“",Q_="ฮณ",K_="ฯœ",X_="ฯ",J_="โช†",Y_="ฤž",Z_="ฤŸ",eN="ฤข",tN="ฤœ",nN="ฤ",rN="ะ“",oN="ะณ",sN="ฤ ",iN="ฤก",lN="โ‰ฅ",cN="โ‰ง",aN="โชŒ",uN="โ‹›",fN="โ‰ฅ",dN="โ‰ง",hN="โฉพ",pN="โชฉ",mN="โฉพ",gN="โช€",vN="โช‚",yN="โช„",wN="โ‹›๏ธ€",SN="โช”",EN="๐”Š",xN="๐”ค",TN="โ‰ซ",kN="โ‹™",bN="โ‹™",_N="โ„ท",NN="ะƒ",CN="ั“",LN="โชฅ",AN="โ‰ท",RN="โช’",qN="โชค",$N="โชŠ",IN="โชŠ",MN="โชˆ",PN="โ‰ฉ",DN="โชˆ",ON="โ‰ฉ",UN="โ‹ง",FN="๐”พ",zN="๐•˜",HN="`",BN="โ‰ฅ",jN="โ‹›",VN="โ‰ง",WN="โชข",GN="โ‰ท",QN="โฉพ",KN="โ‰ณ",XN="๐’ข",JN="โ„Š",YN="โ‰ณ",ZN="โชŽ",eC="โช",tC="โชง",nC="โฉบ",rC=">",oC=">",sC="โ‰ซ",iC="โ‹—",lC="โฆ•",cC="โฉผ",aC="โช†",uC="โฅธ",fC="โ‹—",dC="โ‹›",hC="โชŒ",pC="โ‰ท",mC="โ‰ณ",gC="โ‰ฉ๏ธ€",vC="โ‰ฉ๏ธ€",yC="ห‡",wC="โ€Š",SC="ยฝ",EC="โ„‹",xC="ะช",TC="ัŠ",kC="โฅˆ",bC="โ†”",_C="โ‡”",NC="โ†ญ",CC="^",LC="โ„",AC="ฤค",RC="ฤฅ",qC="โ™ฅ",$C="โ™ฅ",IC="โ€ฆ",MC="โŠน",PC="๐”ฅ",DC="โ„Œ",OC="โ„‹",UC="โคฅ",FC="โคฆ",zC="โ‡ฟ",HC="โˆป",BC="โ†ฉ",jC="โ†ช",VC="๐•™",WC="โ„",GC="โ€•",QC="โ”€",KC="๐’ฝ",XC="โ„‹",JC="โ„",YC="ฤฆ",ZC="ฤง",eL="โ‰Ž",tL="โ‰",nL="โƒ",rL="โ€",oL="ร",sL="รญ",iL="โฃ",lL="รŽ",cL="รฎ",aL="ะ˜",uL="ะธ",fL="ฤฐ",dL="ะ•",hL="ะต",pL="ยก",mL="โ‡”",gL="๐”ฆ",vL="โ„‘",yL="รŒ",wL="รฌ",SL="โ…ˆ",EL="โจŒ",xL="โˆญ",TL="โงœ",kL="โ„ฉ",bL="ฤฒ",_L="ฤณ",NL="ฤช",CL="ฤซ",LL="โ„‘",AL="โ…ˆ",RL="โ„",qL="โ„‘",$L="ฤฑ",IL="โ„‘",ML="โŠท",PL="ฦต",DL="โ‡’",OL="โ„…",UL="โˆž",FL="โง",zL="ฤฑ",HL="โŠบ",BL="โˆซ",jL="โˆฌ",VL="โ„ค",WL="โˆซ",GL="โŠบ",QL="โ‹‚",KL="โจ—",XL="โจผ",JL="โฃ",YL="โข",ZL="ะ",eA="ั‘",tA="ฤฎ",nA="ฤฏ",rA="๐•€",oA="๐•š",sA="ฮ™",iA="ฮน",lA="โจผ",cA="ยฟ",aA="๐’พ",uA="โ„",fA="โˆˆ",dA="โ‹ต",hA="โ‹น",pA="โ‹ด",mA="โ‹ณ",gA="โˆˆ",vA="โข",yA="ฤจ",wA="ฤฉ",SA="ะ†",EA="ั–",xA="ร",TA="รฏ",kA="ฤด",bA="ฤต",_A="ะ™",NA="ะน",CA="๐”",LA="๐”ง",AA="ศท",RA="๐•",qA="๐•›",$A="๐’ฅ",IA="๐’ฟ",MA="ะˆ",PA="ั˜",DA="ะ„",OA="ั”",UA="ฮš",FA="ฮบ",zA="ฯฐ",HA="ฤถ",BA="ฤท",jA="ะš",VA="ะบ",WA="๐”Ž",GA="๐”จ",QA="ฤธ",KA="ะฅ",XA="ั…",JA="ะŒ",YA="ัœ",ZA="๐•‚",eR="๐•œ",tR="๐’ฆ",nR="๐“€",rR="โ‡š",oR="ฤน",sR="ฤบ",iR="โฆด",lR="โ„’",cR="ฮ›",aR="ฮป",uR="โŸจ",fR="โŸช",dR="โฆ‘",hR="โŸจ",pR="โช…",mR="โ„’",gR="ยซ",vR="โ‡ค",yR="โคŸ",wR="โ†",SR="โ†ž",ER="โ‡",xR="โค",TR="โ†ฉ",kR="โ†ซ",bR="โคน",_R="โฅณ",NR="โ†ข",CR="โค™",LR="โค›",AR="โชซ",RR="โชญ",qR="โชญ๏ธ€",$R="โคŒ",IR="โคŽ",MR="โฒ",PR="{",DR="[",OR="โฆ‹",UR="โฆ",FR="โฆ",zR="ฤฝ",HR="ฤพ",BR="ฤป",jR="ฤผ",VR="โŒˆ",WR="{",GR="ะ›",QR="ะป",KR="โคถ",XR="โ€œ",JR="โ€ž",YR="โฅง",ZR="โฅ‹",eq="โ†ฒ",tq="โ‰ค",nq="โ‰ฆ",rq="โŸจ",oq="โ‡ค",sq="โ†",iq="โ†",lq="โ‡",cq="โ‡†",aq="โ†ข",uq="โŒˆ",fq="โŸฆ",dq="โฅก",hq="โฅ™",pq="โ‡ƒ",mq="โŒŠ",gq="โ†ฝ",vq="โ†ผ",yq="โ‡‡",wq="โ†”",Sq="โ†”",Eq="โ‡”",xq="โ‡†",Tq="โ‡‹",kq="โ†ญ",bq="โฅŽ",_q="โ†ค",Nq="โŠฃ",Cq="โฅš",Lq="โ‹‹",Aq="โง",Rq="โŠฒ",qq="โŠด",$q="โฅ‘",Iq="โฅ ",Mq="โฅ˜",Pq="โ†ฟ",Dq="โฅ’",Oq="โ†ผ",Uq="โช‹",Fq="โ‹š",zq="โ‰ค",Hq="โ‰ฆ",Bq="โฉฝ",jq="โชจ",Vq="โฉฝ",Wq="โฉฟ",Gq="โช",Qq="โชƒ",Kq="โ‹š๏ธ€",Xq="โช“",Jq="โช…",Yq="โ‹–",Zq="โ‹š",e$="โช‹",t$="โ‹š",n$="โ‰ฆ",r$="โ‰ถ",o$="โ‰ถ",s$="โชก",i$="โ‰ฒ",l$="โฉฝ",c$="โ‰ฒ",a$="โฅผ",u$="โŒŠ",f$="๐”",d$="๐”ฉ",h$="โ‰ถ",p$="โช‘",m$="โฅข",g$="โ†ฝ",v$="โ†ผ",y$="โฅช",w$="โ–„",S$="ะ‰",E$="ั™",x$="โ‡‡",T$="โ‰ช",k$="โ‹˜",b$="โŒž",_$="โ‡š",N$="โฅซ",C$="โ—บ",L$="ฤฟ",A$="ล€",R$="โŽฐ",q$="โŽฐ",$$="โช‰",I$="โช‰",M$="โช‡",P$="โ‰จ",D$="โช‡",O$="โ‰จ",U$="โ‹ฆ",F$="โŸฌ",z$="โ‡ฝ",H$="โŸฆ",B$="โŸต",j$="โŸต",V$="โŸธ",W$="โŸท",G$="โŸท",Q$="โŸบ",K$="โŸผ",X$="โŸถ",J$="โŸถ",Y$="โŸน",Z$="โ†ซ",e2="โ†ฌ",t2="โฆ…",n2="๐•ƒ",r2="๐•",o2="โจญ",s2="โจด",i2="โˆ—",l2="_",c2="โ†™",a2="โ†˜",u2="โ—Š",f2="โ—Š",d2="โงซ",h2="(",p2="โฆ“",m2="โ‡†",g2="โŒŸ",v2="โ‡‹",y2="โฅญ",w2="โ€Ž",S2="โŠฟ",E2="โ€น",x2="๐“",T2="โ„’",k2="โ†ฐ",b2="โ†ฐ",_2="โ‰ฒ",N2="โช",C2="โช",L2="[",A2="โ€˜",R2="โ€š",q2="ล",$2="ล‚",I2="โชฆ",M2="โฉน",P2="<",D2="<",O2="โ‰ช",U2="โ‹–",F2="โ‹‹",z2="โ‹‰",H2="โฅถ",B2="โฉป",j2="โ—ƒ",V2="โŠด",W2="โ—‚",G2="โฆ–",Q2="โฅŠ",K2="โฅฆ",X2="โ‰จ๏ธ€",J2="โ‰จ๏ธ€",Y2="ยฏ",Z2="โ™‚",eI="โœ ",tI="โœ ",nI="โ†ฆ",rI="โ†ฆ",oI="โ†ง",sI="โ†ค",iI="โ†ฅ",lI="โ–ฎ",cI="โจฉ",aI="ะœ",uI="ะผ",fI="โ€”",dI="โˆบ",hI="โˆก",pI="โŸ",mI="โ„ณ",gI="๐”",vI="๐”ช",yI="โ„ง",wI="ยต",SI="*",EI="โซฐ",xI="โˆฃ",TI="ยท",kI="โŠŸ",bI="โˆ’",_I="โˆธ",NI="โจช",CI="โˆ“",LI="โซ›",AI="โ€ฆ",RI="โˆ“",qI="โŠง",$I="๐•„",II="๐•ž",MI="โˆ“",PI="๐“‚",DI="โ„ณ",OI="โˆพ",UI="ฮœ",FI="ฮผ",zI="โŠธ",HI="โŠธ",BI="โˆ‡",jI="ลƒ",VI="ล„",WI="โˆ โƒ’",GI="โ‰‰",QI="โฉฐฬธ",KI="โ‰‹ฬธ",XI="ล‰",JI="โ‰‰",YI="โ™ฎ",ZI="โ„•",eM="โ™ฎ",tM="ย ",nM="โ‰Žฬธ",rM="โ‰ฬธ",oM="โฉƒ",sM="ล‡",iM="ลˆ",lM="ล…",cM="ล†",aM="โ‰‡",uM="โฉญฬธ",fM="โฉ‚",dM="ะ",hM="ะฝ",pM="โ€“",mM="โคค",gM="โ†—",vM="โ‡—",yM="โ†—",wM="โ‰ ",SM="โ‰ฬธ",EM="โ€‹",xM="โ€‹",TM="โ€‹",kM="โ€‹",bM="โ‰ข",_M="โคจ",NM="โ‰‚ฬธ",CM="โ‰ซ",LM="โ‰ช",AM=` +`,RM="โˆ„",qM="โˆ„",$M="๐”‘",IM="๐”ซ",MM="โ‰งฬธ",PM="โ‰ฑ",DM="โ‰ฑ",OM="โ‰งฬธ",UM="โฉพฬธ",FM="โฉพฬธ",zM="โ‹™ฬธ",HM="โ‰ต",BM="โ‰ซโƒ’",jM="โ‰ฏ",VM="โ‰ฏ",WM="โ‰ซฬธ",GM="โ†ฎ",QM="โ‡Ž",KM="โซฒ",XM="โˆ‹",JM="โ‹ผ",YM="โ‹บ",ZM="โˆ‹",eP="ะŠ",tP="ัš",nP="โ†š",rP="โ‡",oP="โ€ฅ",sP="โ‰ฆฬธ",iP="โ‰ฐ",lP="โ†š",cP="โ‡",aP="โ†ฎ",uP="โ‡Ž",fP="โ‰ฐ",dP="โ‰ฆฬธ",hP="โฉฝฬธ",pP="โฉฝฬธ",mP="โ‰ฎ",gP="โ‹˜ฬธ",vP="โ‰ด",yP="โ‰ชโƒ’",wP="โ‰ฎ",SP="โ‹ช",EP="โ‹ฌ",xP="โ‰ชฬธ",TP="โˆค",kP="โ ",bP="ย ",_P="๐•Ÿ",NP="โ„•",CP="โซฌ",LP="ยฌ",AP="โ‰ข",RP="โ‰ญ",qP="โˆฆ",$P="โˆ‰",IP="โ‰ ",MP="โ‰‚ฬธ",PP="โˆ„",DP="โ‰ฏ",OP="โ‰ฑ",UP="โ‰งฬธ",FP="โ‰ซฬธ",zP="โ‰น",HP="โฉพฬธ",BP="โ‰ต",jP="โ‰Žฬธ",VP="โ‰ฬธ",WP="โˆ‰",GP="โ‹ตฬธ",QP="โ‹นฬธ",KP="โˆ‰",XP="โ‹ท",JP="โ‹ถ",YP="โงฬธ",ZP="โ‹ช",eD="โ‹ฌ",tD="โ‰ฎ",nD="โ‰ฐ",rD="โ‰ธ",oD="โ‰ชฬธ",sD="โฉฝฬธ",iD="โ‰ด",lD="โชขฬธ",cD="โชกฬธ",aD="โˆŒ",uD="โˆŒ",fD="โ‹พ",dD="โ‹ฝ",hD="โŠ€",pD="โชฏฬธ",mD="โ‹ ",gD="โˆŒ",vD="โงฬธ",yD="โ‹ซ",wD="โ‹ญ",SD="โŠฬธ",ED="โ‹ข",xD="โŠฬธ",TD="โ‹ฃ",kD="โŠ‚โƒ’",bD="โŠˆ",_D="โŠ",ND="โชฐฬธ",CD="โ‹ก",LD="โ‰ฟฬธ",AD="โŠƒโƒ’",RD="โŠ‰",qD="โ‰",$D="โ‰„",ID="โ‰‡",MD="โ‰‰",PD="โˆค",DD="โˆฆ",OD="โˆฆ",UD="โซฝโƒฅ",FD="โˆ‚ฬธ",zD="โจ”",HD="โŠ€",BD="โ‹ ",jD="โŠ€",VD="โชฏฬธ",WD="โชฏฬธ",GD="โคณฬธ",QD="โ†›",KD="โ‡",XD="โ†ฬธ",JD="โ†›",YD="โ‡",ZD="โ‹ซ",eO="โ‹ญ",tO="โŠ",nO="โ‹ก",rO="โชฐฬธ",oO="๐’ฉ",sO="๐“ƒ",iO="โˆค",lO="โˆฆ",cO="โ‰",aO="โ‰„",uO="โ‰„",fO="โˆค",dO="โˆฆ",hO="โ‹ข",pO="โ‹ฃ",mO="โŠ„",gO="โซ…ฬธ",vO="โŠˆ",yO="โŠ‚โƒ’",wO="โŠˆ",SO="โซ…ฬธ",EO="โŠ",xO="โชฐฬธ",TO="โŠ…",kO="โซ†ฬธ",bO="โŠ‰",_O="โŠƒโƒ’",NO="โŠ‰",CO="โซ†ฬธ",LO="โ‰น",AO="ร‘",RO="รฑ",qO="โ‰ธ",$O="โ‹ช",IO="โ‹ฌ",MO="โ‹ซ",PO="โ‹ญ",DO="ฮ",OO="ฮฝ",UO="#",FO="โ„–",zO="โ€‡",HO="โ‰โƒ’",BO="โŠฌ",jO="โŠญ",VO="โŠฎ",WO="โŠฏ",GO="โ‰ฅโƒ’",QO=">โƒ’",KO="โค„",XO="โงž",JO="โค‚",YO="โ‰คโƒ’",ZO="<โƒ’",e3="โŠดโƒ’",t3="โคƒ",n3="โŠตโƒ’",r3="โˆผโƒ’",o3="โคฃ",s3="โ†–",i3="โ‡–",l3="โ†–",c3="โคง",a3="ร“",u3="รณ",f3="โŠ›",d3="ร”",h3="รด",p3="โŠš",m3="ะž",g3="ะพ",v3="โŠ",y3="ล",w3="ล‘",S3="โจธ",E3="โŠ™",x3="โฆผ",T3="ล’",k3="ล“",b3="โฆฟ",_3="๐”’",N3="๐”ฌ",C3="ห›",L3="ร’",A3="รฒ",R3="โง",q3="โฆต",$3="ฮฉ",I3="โˆฎ",M3="โ†บ",P3="โฆพ",D3="โฆป",O3="โ€พ",U3="โง€",F3="ลŒ",z3="ล",H3="ฮฉ",B3="ฯ‰",j3="ฮŸ",V3="ฮฟ",W3="โฆถ",G3="โŠ–",Q3="๐•†",K3="๐• ",X3="โฆท",J3="โ€œ",Y3="โ€˜",Z3="โฆน",e4="โŠ•",t4="โ†ป",n4="โฉ”",r4="โˆจ",o4="โฉ",s4="โ„ด",i4="โ„ด",l4="ยช",c4="ยบ",a4="โŠถ",u4="โฉ–",f4="โฉ—",d4="โฉ›",h4="โ“ˆ",p4="๐’ช",m4="โ„ด",g4="ร˜",v4="รธ",y4="โŠ˜",w4="ร•",S4="รต",E4="โจถ",x4="โจท",T4="โŠ—",k4="ร–",b4="รถ",_4="โŒฝ",N4="โ€พ",C4="โž",L4="โŽด",A4="โœ",R4="ยถ",q4="โˆฅ",$4="โˆฅ",I4="โซณ",M4="โซฝ",P4="โˆ‚",D4="โˆ‚",O4="ะŸ",U4="ะฟ",F4="%",z4=".",H4="โ€ฐ",B4="โŠฅ",j4="โ€ฑ",V4="๐”“",W4="๐”ญ",G4="ฮฆ",Q4="ฯ†",K4="ฯ•",X4="โ„ณ",J4="โ˜Ž",Y4="ฮ ",Z4="ฯ€",eU="โ‹”",tU="ฯ–",nU="โ„",rU="โ„Ž",oU="โ„",sU="โจฃ",iU="โŠž",lU="โจข",cU="+",aU="โˆ”",uU="โจฅ",fU="โฉฒ",dU="ยฑ",hU="ยฑ",pU="โจฆ",mU="โจง",gU="ยฑ",vU="โ„Œ",yU="โจ•",wU="๐•ก",SU="โ„™",EU="ยฃ",xU="โชท",TU="โชป",kU="โ‰บ",bU="โ‰ผ",_U="โชท",NU="โ‰บ",CU="โ‰ผ",LU="โ‰บ",AU="โชฏ",RU="โ‰ผ",qU="โ‰พ",$U="โชฏ",IU="โชน",MU="โชต",PU="โ‹จ",DU="โชฏ",OU="โชณ",UU="โ‰พ",FU="โ€ฒ",zU="โ€ณ",HU="โ„™",BU="โชน",jU="โชต",VU="โ‹จ",WU="โˆ",GU="โˆ",QU="โŒฎ",KU="โŒ’",XU="โŒ“",JU="โˆ",YU="โˆ",ZU="โˆท",e5="โˆ",t5="โ‰พ",n5="โŠฐ",r5="๐’ซ",o5="๐“…",s5="ฮจ",i5="ฯˆ",l5="โ€ˆ",c5="๐””",a5="๐”ฎ",u5="โจŒ",f5="๐•ข",d5="โ„š",h5="โ—",p5="๐’ฌ",m5="๐“†",g5="โ„",v5="โจ–",y5="?",w5="โ‰Ÿ",S5='"',E5='"',x5="โ‡›",T5="โˆฝฬฑ",k5="ล”",b5="ล•",_5="โˆš",N5="โฆณ",C5="โŸฉ",L5="โŸซ",A5="โฆ’",R5="โฆฅ",q5="โŸฉ",$5="ยป",I5="โฅต",M5="โ‡ฅ",P5="โค ",D5="โคณ",O5="โ†’",U5="โ† ",F5="โ‡’",z5="โคž",H5="โ†ช",B5="โ†ฌ",j5="โฅ…",V5="โฅด",W5="โค–",G5="โ†ฃ",Q5="โ†",K5="โคš",X5="โคœ",J5="โˆถ",Y5="โ„š",Z5="โค",eF="โค",tF="โค",nF="โณ",rF="}",oF="]",sF="โฆŒ",iF="โฆŽ",lF="โฆ",cF="ล˜",aF="ล™",uF="ล–",fF="ล—",dF="โŒ‰",hF="}",pF="ะ ",mF="ั€",gF="โคท",vF="โฅฉ",yF="โ€",wF="โ€",SF="โ†ณ",EF="โ„œ",xF="โ„›",TF="โ„œ",kF="โ„",bF="โ„œ",_F="โ–ญ",NF="ยฎ",CF="ยฎ",LF="โˆ‹",AF="โ‡‹",RF="โฅฏ",qF="โฅฝ",$F="โŒ‹",IF="๐”ฏ",MF="โ„œ",PF="โฅค",DF="โ‡",OF="โ‡€",UF="โฅฌ",FF="ฮก",zF="ฯ",HF="ฯฑ",BF="โŸฉ",jF="โ‡ฅ",VF="โ†’",WF="โ†’",GF="โ‡’",QF="โ‡„",KF="โ†ฃ",XF="โŒ‰",JF="โŸง",YF="โฅ",ZF="โฅ•",ez="โ‡‚",tz="โŒ‹",nz="โ‡",rz="โ‡€",oz="โ‡„",sz="โ‡Œ",iz="โ‡‰",lz="โ†",cz="โ†ฆ",az="โŠข",uz="โฅ›",fz="โ‹Œ",dz="โง",hz="โŠณ",pz="โŠต",mz="โฅ",gz="โฅœ",vz="โฅ”",yz="โ†พ",wz="โฅ“",Sz="โ‡€",Ez="หš",xz="โ‰“",Tz="โ‡„",kz="โ‡Œ",bz="โ€",_z="โŽฑ",Nz="โŽฑ",Cz="โซฎ",Lz="โŸญ",Az="โ‡พ",Rz="โŸง",qz="โฆ†",$z="๐•ฃ",Iz="โ„",Mz="โจฎ",Pz="โจต",Dz="โฅฐ",Oz=")",Uz="โฆ”",Fz="โจ’",zz="โ‡‰",Hz="โ‡›",Bz="โ€บ",jz="๐“‡",Vz="โ„›",Wz="โ†ฑ",Gz="โ†ฑ",Qz="]",Kz="โ€™",Xz="โ€™",Jz="โ‹Œ",Yz="โ‹Š",Zz="โ–น",eH="โŠต",tH="โ–ธ",nH="โงŽ",rH="โงด",oH="โฅจ",sH="โ„ž",iH="ลš",lH="ล›",cH="โ€š",aH="โชธ",uH="ล ",fH="ลก",dH="โชผ",hH="โ‰ป",pH="โ‰ฝ",mH="โชฐ",gH="โชด",vH="ลž",yH="ลŸ",wH="ลœ",SH="ล",EH="โชบ",xH="โชถ",TH="โ‹ฉ",kH="โจ“",bH="โ‰ฟ",_H="ะก",NH="ั",CH="โŠก",LH="โ‹…",AH="โฉฆ",RH="โคฅ",qH="โ†˜",$H="โ‡˜",IH="โ†˜",MH="ยง",PH=";",DH="โคฉ",OH="โˆ–",UH="โˆ–",FH="โœถ",zH="๐”–",HH="๐”ฐ",BH="โŒข",jH="โ™ฏ",VH="ะฉ",WH="ั‰",GH="ะจ",QH="ัˆ",KH="โ†“",XH="โ†",JH="โˆฃ",YH="โˆฅ",ZH="โ†’",e8="โ†‘",t8="ยญ",n8="ฮฃ",r8="ฯƒ",o8="ฯ‚",s8="ฯ‚",i8="โˆผ",l8="โฉช",c8="โ‰ƒ",a8="โ‰ƒ",u8="โชž",f8="โช ",d8="โช",h8="โชŸ",p8="โ‰†",m8="โจค",g8="โฅฒ",v8="โ†",y8="โˆ˜",w8="โˆ–",S8="โจณ",E8="โงค",x8="โˆฃ",T8="โŒฃ",k8="โชช",b8="โชฌ",_8="โชฌ๏ธ€",N8="ะฌ",C8="ัŒ",L8="โŒฟ",A8="โง„",R8="/",q8="๐•Š",$8="๐•ค",I8="โ™ ",M8="โ™ ",P8="โˆฅ",D8="โŠ“",O8="โŠ“๏ธ€",U8="โŠ”",F8="โŠ”๏ธ€",z8="โˆš",H8="โŠ",B8="โŠ‘",j8="โŠ",V8="โŠ‘",W8="โŠ",G8="โŠ’",Q8="โŠ",K8="โŠ’",X8="โ–ก",J8="โ–ก",Y8="โŠ“",Z8="โŠ",eB="โŠ‘",tB="โŠ",nB="โŠ’",rB="โŠ”",oB="โ–ช",sB="โ–ก",iB="โ–ช",lB="โ†’",cB="๐’ฎ",aB="๐“ˆ",uB="โˆ–",fB="โŒฃ",dB="โ‹†",hB="โ‹†",pB="โ˜†",mB="โ˜…",gB="ฯต",vB="ฯ•",yB="ยฏ",wB="โŠ‚",SB="โ‹",EB="โชฝ",xB="โซ…",TB="โŠ†",kB="โซƒ",bB="โซ",_B="โซ‹",NB="โŠŠ",CB="โชฟ",LB="โฅน",AB="โŠ‚",RB="โ‹",qB="โŠ†",$B="โซ…",IB="โŠ†",MB="โŠŠ",PB="โซ‹",DB="โซ‡",OB="โซ•",UB="โซ“",FB="โชธ",zB="โ‰ป",HB="โ‰ฝ",BB="โ‰ป",jB="โชฐ",VB="โ‰ฝ",WB="โ‰ฟ",GB="โชฐ",QB="โชบ",KB="โชถ",XB="โ‹ฉ",JB="โ‰ฟ",YB="โˆ‹",ZB="โˆ‘",ej="โˆ‘",tj="โ™ช",nj="ยน",rj="ยฒ",oj="ยณ",sj="โŠƒ",ij="โ‹‘",lj="โชพ",cj="โซ˜",aj="โซ†",uj="โŠ‡",fj="โซ„",dj="โŠƒ",hj="โŠ‡",pj="โŸ‰",mj="โซ—",gj="โฅป",vj="โซ‚",yj="โซŒ",wj="โŠ‹",Sj="โซ€",Ej="โŠƒ",xj="โ‹‘",Tj="โŠ‡",kj="โซ†",bj="โŠ‹",_j="โซŒ",Nj="โซˆ",Cj="โซ”",Lj="โซ–",Aj="โคฆ",Rj="โ†™",qj="โ‡™",$j="โ†™",Ij="โคช",Mj="รŸ",Pj=" ",Dj="โŒ–",Oj="ฮค",Uj="ฯ„",Fj="โŽด",zj="ลค",Hj="ลฅ",Bj="ลข",jj="ลฃ",Vj="ะข",Wj="ั‚",Gj="โƒ›",Qj="โŒ•",Kj="๐”—",Xj="๐”ฑ",Jj="โˆด",Yj="โˆด",Zj="โˆด",e6="ฮ˜",t6="ฮธ",n6="ฯ‘",r6="ฯ‘",o6="โ‰ˆ",s6="โˆผ",i6="โŸโ€Š",l6="โ€‰",c6="โ€‰",a6="โ‰ˆ",u6="โˆผ",f6="รž",d6="รพ",h6="หœ",p6="โˆผ",m6="โ‰ƒ",g6="โ‰…",v6="โ‰ˆ",y6="โจฑ",w6="โŠ ",S6="ร—",E6="โจฐ",x6="โˆญ",T6="โคจ",k6="โŒถ",b6="โซฑ",_6="โŠค",N6="๐•‹",C6="๐•ฅ",L6="โซš",A6="โคฉ",R6="โ€ด",q6="โ„ข",$6="โ„ข",I6="โ–ต",M6="โ–ฟ",P6="โ—ƒ",D6="โŠด",O6="โ‰œ",U6="โ–น",F6="โŠต",z6="โ—ฌ",H6="โ‰œ",B6="โจบ",j6="โƒ›",V6="โจน",W6="โง",G6="โจป",Q6="โข",K6="๐’ฏ",X6="๐“‰",J6="ะฆ",Y6="ั†",Z6="ะ‹",eV="ั›",tV="ลฆ",nV="ลง",rV="โ‰ฌ",oV="โ†ž",sV="โ† ",iV="รš",lV="รบ",cV="โ†‘",aV="โ†Ÿ",uV="โ‡‘",fV="โฅ‰",dV="ะŽ",hV="ัž",pV="ลฌ",mV="ลญ",gV="ร›",vV="รป",yV="ะฃ",wV="ัƒ",SV="โ‡…",EV="ลฐ",xV="ลฑ",TV="โฅฎ",kV="โฅพ",bV="๐”˜",_V="๐”ฒ",NV="ร™",CV="รน",LV="โฅฃ",AV="โ†ฟ",RV="โ†พ",qV="โ–€",$V="โŒœ",IV="โŒœ",MV="โŒ",PV="โ—ธ",DV="ลช",OV="ลซ",UV="ยจ",FV="_",zV="โŸ",HV="โŽต",BV="โ",jV="โ‹ƒ",VV="โŠŽ",WV="ลฒ",GV="ลณ",QV="๐•Œ",KV="๐•ฆ",XV="โค’",JV="โ†‘",YV="โ†‘",ZV="โ‡‘",e9="โ‡…",t9="โ†•",n9="โ†•",r9="โ‡•",o9="โฅฎ",s9="โ†ฟ",i9="โ†พ",l9="โŠŽ",c9="โ†–",a9="โ†—",u9="ฯ…",f9="ฯ’",d9="ฯ’",h9="ฮฅ",p9="ฯ…",m9="โ†ฅ",g9="โŠฅ",v9="โ‡ˆ",y9="โŒ",w9="โŒ",S9="โŒŽ",E9="ลฎ",x9="ลฏ",T9="โ—น",k9="๐’ฐ",b9="๐“Š",_9="โ‹ฐ",N9="ลจ",C9="ลฉ",L9="โ–ต",A9="โ–ด",R9="โ‡ˆ",q9="รœ",$9="รผ",I9="โฆง",M9="โฆœ",P9="ฯต",D9="ฯฐ",O9="โˆ…",U9="ฯ•",F9="ฯ–",z9="โˆ",H9="โ†•",B9="โ‡•",j9="ฯฑ",V9="ฯ‚",W9="โŠŠ๏ธ€",G9="โซ‹๏ธ€",Q9="โŠ‹๏ธ€",K9="โซŒ๏ธ€",X9="ฯ‘",J9="โŠฒ",Y9="โŠณ",Z9="โซจ",eW="โซซ",tW="โซฉ",nW="ะ’",rW="ะฒ",oW="โŠข",sW="โŠจ",iW="โŠฉ",lW="โŠซ",cW="โซฆ",aW="โŠป",uW="โˆจ",fW="โ‹",dW="โ‰š",hW="โ‹ฎ",pW="|",mW="โ€–",gW="|",vW="โ€–",yW="โˆฃ",wW="|",SW="โ˜",EW="โ‰€",xW="โ€Š",TW="๐”™",kW="๐”ณ",bW="โŠฒ",_W="โŠ‚โƒ’",NW="โŠƒโƒ’",CW="๐•",LW="๐•ง",AW="โˆ",RW="โŠณ",qW="๐’ฑ",$W="๐“‹",IW="โซ‹๏ธ€",MW="โŠŠ๏ธ€",PW="โซŒ๏ธ€",DW="โŠ‹๏ธ€",OW="โŠช",UW="โฆš",FW="ลด",zW="ลต",HW="โฉŸ",BW="โˆง",jW="โ‹€",VW="โ‰™",WW="โ„˜",GW="๐”š",QW="๐”ด",KW="๐•Ž",XW="๐•จ",JW="โ„˜",YW="โ‰€",ZW="โ‰€",e7="๐’ฒ",t7="๐“Œ",n7="โ‹‚",r7="โ—ฏ",o7="โ‹ƒ",s7="โ–ฝ",i7="๐”›",l7="๐”ต",c7="โŸท",a7="โŸบ",u7="ฮž",f7="ฮพ",d7="โŸต",h7="โŸธ",p7="โŸผ",m7="โ‹ป",g7="โจ€",v7="๐•",y7="๐•ฉ",w7="โจ",S7="โจ‚",E7="โŸถ",x7="โŸน",T7="๐’ณ",k7="๐“",b7="โจ†",_7="โจ„",N7="โ–ณ",C7="โ‹",L7="โ‹€",A7="ร",R7="รฝ",q7="ะฏ",$7="ั",I7="ลถ",M7="ลท",P7="ะซ",D7="ั‹",O7="ยฅ",U7="๐”œ",F7="๐”ถ",z7="ะ‡",H7="ั—",B7="๐•",j7="๐•ช",V7="๐’ด",W7="๐“Ž",G7="ะฎ",Q7="ัŽ",K7="รฟ",X7="ลธ",J7="ลน",Y7="ลบ",Z7="ลฝ",eG="ลพ",tG="ะ—",nG="ะท",rG="ลป",oG="ลผ",sG="โ„จ",iG="โ€‹",lG="ฮ–",cG="ฮถ",aG="๐”ท",uG="โ„จ",fG="ะ–",dG="ะถ",hG="โ‡",pG="๐•ซ",mG="โ„ค",gG="๐’ต",vG="๐“",yG="โ€",wG="โ€Œ",xh={Aacute:ry,aacute:oy,Abreve:sy,abreve:iy,ac:ly,acd:cy,acE:ay,Acirc:uy,acirc:fy,acute:dy,Acy:hy,acy:py,AElig:my,aelig:gy,af:vy,Afr:yy,afr:wy,Agrave:Sy,agrave:Ey,alefsym:xy,aleph:Ty,Alpha:ky,alpha:by,Amacr:_y,amacr:Ny,amalg:Cy,amp:Ly,AMP:Ay,andand:Ry,And:qy,and:$y,andd:Iy,andslope:My,andv:Py,ang:Dy,ange:Oy,angle:Uy,angmsdaa:Fy,angmsdab:zy,angmsdac:Hy,angmsdad:By,angmsdae:jy,angmsdaf:Vy,angmsdag:Wy,angmsdah:Gy,angmsd:Qy,angrt:Ky,angrtvb:Xy,angrtvbd:Jy,angsph:Yy,angst:Zy,angzarr:ew,Aogon:tw,aogon:nw,Aopf:rw,aopf:ow,apacir:sw,ap:iw,apE:lw,ape:cw,apid:aw,apos:uw,ApplyFunction:fw,approx:dw,approxeq:hw,Aring:pw,aring:mw,Ascr:gw,ascr:vw,Assign:yw,ast:ww,asymp:Sw,asympeq:Ew,Atilde:xw,atilde:Tw,Auml:kw,auml:bw,awconint:_w,awint:Nw,backcong:Cw,backepsilon:Lw,backprime:Aw,backsim:Rw,backsimeq:qw,Backslash:$w,Barv:Iw,barvee:Mw,barwed:Pw,Barwed:Dw,barwedge:Ow,bbrk:Uw,bbrktbrk:Fw,bcong:zw,Bcy:Hw,bcy:Bw,bdquo:jw,becaus:Vw,because:Ww,Because:Gw,bemptyv:Qw,bepsi:Kw,bernou:Xw,Bernoullis:Jw,Beta:Yw,beta:Zw,beth:e0,between:t0,Bfr:n0,bfr:r0,bigcap:o0,bigcirc:s0,bigcup:i0,bigodot:l0,bigoplus:c0,bigotimes:a0,bigsqcup:u0,bigstar:f0,bigtriangledown:d0,bigtriangleup:h0,biguplus:p0,bigvee:m0,bigwedge:g0,bkarow:v0,blacklozenge:y0,blacksquare:w0,blacktriangle:S0,blacktriangledown:E0,blacktriangleleft:x0,blacktriangleright:T0,blank:k0,blk12:b0,blk14:_0,blk34:N0,block:C0,bne:L0,bnequiv:A0,bNot:R0,bnot:q0,Bopf:$0,bopf:I0,bot:M0,bottom:P0,bowtie:D0,boxbox:O0,boxdl:U0,boxdL:F0,boxDl:z0,boxDL:H0,boxdr:B0,boxdR:j0,boxDr:V0,boxDR:W0,boxh:G0,boxH:Q0,boxhd:K0,boxHd:X0,boxhD:J0,boxHD:Y0,boxhu:Z0,boxHu:e1,boxhU:t1,boxHU:n1,boxminus:r1,boxplus:o1,boxtimes:s1,boxul:i1,boxuL:l1,boxUl:c1,boxUL:a1,boxur:u1,boxuR:f1,boxUr:d1,boxUR:h1,boxv:p1,boxV:m1,boxvh:g1,boxvH:v1,boxVh:y1,boxVH:w1,boxvl:S1,boxvL:E1,boxVl:x1,boxVL:T1,boxvr:k1,boxvR:b1,boxVr:_1,boxVR:N1,bprime:C1,breve:L1,Breve:A1,brvbar:R1,bscr:q1,Bscr:$1,bsemi:I1,bsim:M1,bsime:P1,bsolb:D1,bsol:O1,bsolhsub:U1,bull:F1,bullet:z1,bump:H1,bumpE:B1,bumpe:j1,Bumpeq:V1,bumpeq:W1,Cacute:G1,cacute:Q1,capand:K1,capbrcup:X1,capcap:J1,cap:Y1,Cap:Z1,capcup:eS,capdot:tS,CapitalDifferentialD:nS,caps:rS,caret:oS,caron:sS,Cayleys:iS,ccaps:lS,Ccaron:cS,ccaron:aS,Ccedil:uS,ccedil:fS,Ccirc:dS,ccirc:hS,Cconint:pS,ccups:mS,ccupssm:gS,Cdot:vS,cdot:yS,cedil:wS,Cedilla:SS,cemptyv:ES,cent:xS,centerdot:TS,CenterDot:kS,cfr:bS,Cfr:_S,CHcy:NS,chcy:CS,check:LS,checkmark:AS,Chi:RS,chi:qS,circ:$S,circeq:IS,circlearrowleft:MS,circlearrowright:PS,circledast:DS,circledcirc:OS,circleddash:US,CircleDot:FS,circledR:zS,circledS:HS,CircleMinus:BS,CirclePlus:jS,CircleTimes:VS,cir:WS,cirE:GS,cire:QS,cirfnint:KS,cirmid:XS,cirscir:JS,ClockwiseContourIntegral:YS,CloseCurlyDoubleQuote:ZS,CloseCurlyQuote:eE,clubs:tE,clubsuit:nE,colon:rE,Colon:oE,Colone:sE,colone:iE,coloneq:lE,comma:cE,commat:aE,comp:uE,compfn:fE,complement:dE,complexes:hE,cong:pE,congdot:mE,Congruent:gE,conint:vE,Conint:yE,ContourIntegral:wE,copf:SE,Copf:EE,coprod:xE,Coproduct:TE,copy:kE,COPY:bE,copysr:_E,CounterClockwiseContourIntegral:NE,crarr:CE,cross:LE,Cross:AE,Cscr:RE,cscr:qE,csub:$E,csube:IE,csup:ME,csupe:PE,ctdot:DE,cudarrl:OE,cudarrr:UE,cuepr:FE,cuesc:zE,cularr:HE,cularrp:BE,cupbrcap:jE,cupcap:VE,CupCap:WE,cup:GE,Cup:QE,cupcup:KE,cupdot:XE,cupor:JE,cups:YE,curarr:ZE,curarrm:ex,curlyeqprec:tx,curlyeqsucc:nx,curlyvee:rx,curlywedge:ox,curren:sx,curvearrowleft:ix,curvearrowright:lx,cuvee:cx,cuwed:ax,cwconint:ux,cwint:fx,cylcty:dx,dagger:hx,Dagger:px,daleth:mx,darr:gx,Darr:vx,dArr:yx,dash:wx,Dashv:Sx,dashv:Ex,dbkarow:xx,dblac:Tx,Dcaron:kx,dcaron:bx,Dcy:_x,dcy:Nx,ddagger:Cx,ddarr:Lx,DD:Ax,dd:Rx,DDotrahd:qx,ddotseq:$x,deg:Ix,Del:Mx,Delta:Px,delta:Dx,demptyv:Ox,dfisht:Ux,Dfr:Fx,dfr:zx,dHar:Hx,dharl:Bx,dharr:jx,DiacriticalAcute:Vx,DiacriticalDot:Wx,DiacriticalDoubleAcute:Gx,DiacriticalGrave:Qx,DiacriticalTilde:Kx,diam:Xx,diamond:Jx,Diamond:Yx,diamondsuit:Zx,diams:eT,die:tT,DifferentialD:nT,digamma:rT,disin:oT,div:sT,divide:iT,divideontimes:lT,divonx:cT,DJcy:aT,djcy:uT,dlcorn:fT,dlcrop:dT,dollar:hT,Dopf:pT,dopf:mT,Dot:gT,dot:vT,DotDot:yT,doteq:wT,doteqdot:ST,DotEqual:ET,dotminus:xT,dotplus:TT,dotsquare:kT,doublebarwedge:bT,DoubleContourIntegral:_T,DoubleDot:NT,DoubleDownArrow:CT,DoubleLeftArrow:LT,DoubleLeftRightArrow:AT,DoubleLeftTee:RT,DoubleLongLeftArrow:qT,DoubleLongLeftRightArrow:$T,DoubleLongRightArrow:IT,DoubleRightArrow:MT,DoubleRightTee:PT,DoubleUpArrow:DT,DoubleUpDownArrow:OT,DoubleVerticalBar:UT,DownArrowBar:FT,downarrow:zT,DownArrow:HT,Downarrow:BT,DownArrowUpArrow:jT,DownBreve:VT,downdownarrows:WT,downharpoonleft:GT,downharpoonright:QT,DownLeftRightVector:KT,DownLeftTeeVector:XT,DownLeftVectorBar:JT,DownLeftVector:YT,DownRightTeeVector:ZT,DownRightVectorBar:ek,DownRightVector:tk,DownTeeArrow:nk,DownTee:rk,drbkarow:ok,drcorn:sk,drcrop:ik,Dscr:lk,dscr:ck,DScy:ak,dscy:uk,dsol:fk,Dstrok:dk,dstrok:hk,dtdot:pk,dtri:mk,dtrif:gk,duarr:vk,duhar:yk,dwangle:wk,DZcy:Sk,dzcy:Ek,dzigrarr:xk,Eacute:Tk,eacute:kk,easter:bk,Ecaron:_k,ecaron:Nk,Ecirc:Ck,ecirc:Lk,ecir:Ak,ecolon:Rk,Ecy:qk,ecy:$k,eDDot:Ik,Edot:Mk,edot:Pk,eDot:Dk,ee:Ok,efDot:Uk,Efr:Fk,efr:zk,eg:Hk,Egrave:Bk,egrave:jk,egs:Vk,egsdot:Wk,el:Gk,Element:Qk,elinters:Kk,ell:Xk,els:Jk,elsdot:Yk,Emacr:Zk,emacr:eb,empty:tb,emptyset:nb,EmptySmallSquare:rb,emptyv:ob,EmptyVerySmallSquare:sb,emsp13:ib,emsp14:lb,emsp:cb,ENG:ab,eng:ub,ensp:fb,Eogon:db,eogon:hb,Eopf:pb,eopf:mb,epar:gb,eparsl:vb,eplus:yb,epsi:wb,Epsilon:Sb,epsilon:Eb,epsiv:xb,eqcirc:Tb,eqcolon:kb,eqsim:bb,eqslantgtr:_b,eqslantless:Nb,Equal:Cb,equals:Lb,EqualTilde:Ab,equest:Rb,Equilibrium:qb,equiv:$b,equivDD:Ib,eqvparsl:Mb,erarr:Pb,erDot:Db,escr:Ob,Escr:Ub,esdot:Fb,Esim:zb,esim:Hb,Eta:Bb,eta:jb,ETH:Vb,eth:Wb,Euml:Gb,euml:Qb,euro:Kb,excl:Xb,exist:Jb,Exists:Yb,expectation:Zb,exponentiale:e_,ExponentialE:t_,fallingdotseq:n_,Fcy:r_,fcy:o_,female:s_,ffilig:i_,fflig:l_,ffllig:c_,Ffr:a_,ffr:u_,filig:f_,FilledSmallSquare:d_,FilledVerySmallSquare:h_,fjlig:p_,flat:m_,fllig:g_,fltns:v_,fnof:y_,Fopf:w_,fopf:S_,forall:E_,ForAll:x_,fork:T_,forkv:k_,Fouriertrf:b_,fpartint:__,frac12:N_,frac13:C_,frac14:L_,frac15:A_,frac16:R_,frac18:q_,frac23:$_,frac25:I_,frac34:M_,frac35:P_,frac38:D_,frac45:O_,frac56:U_,frac58:F_,frac78:z_,frasl:H_,frown:B_,fscr:j_,Fscr:V_,gacute:W_,Gamma:G_,gamma:Q_,Gammad:K_,gammad:X_,gap:J_,Gbreve:Y_,gbreve:Z_,Gcedil:eN,Gcirc:tN,gcirc:nN,Gcy:rN,gcy:oN,Gdot:sN,gdot:iN,ge:lN,gE:cN,gEl:aN,gel:uN,geq:fN,geqq:dN,geqslant:hN,gescc:pN,ges:mN,gesdot:gN,gesdoto:vN,gesdotol:yN,gesl:wN,gesles:SN,Gfr:EN,gfr:xN,gg:TN,Gg:kN,ggg:bN,gimel:_N,GJcy:NN,gjcy:CN,gla:LN,gl:AN,glE:RN,glj:qN,gnap:$N,gnapprox:IN,gne:MN,gnE:PN,gneq:DN,gneqq:ON,gnsim:UN,Gopf:FN,gopf:zN,grave:HN,GreaterEqual:BN,GreaterEqualLess:jN,GreaterFullEqual:VN,GreaterGreater:WN,GreaterLess:GN,GreaterSlantEqual:QN,GreaterTilde:KN,Gscr:XN,gscr:JN,gsim:YN,gsime:ZN,gsiml:eC,gtcc:tC,gtcir:nC,gt:rC,GT:oC,Gt:sC,gtdot:iC,gtlPar:lC,gtquest:cC,gtrapprox:aC,gtrarr:uC,gtrdot:fC,gtreqless:dC,gtreqqless:hC,gtrless:pC,gtrsim:mC,gvertneqq:gC,gvnE:vC,Hacek:yC,hairsp:wC,half:SC,hamilt:EC,HARDcy:xC,hardcy:TC,harrcir:kC,harr:bC,hArr:_C,harrw:NC,Hat:CC,hbar:LC,Hcirc:AC,hcirc:RC,hearts:qC,heartsuit:$C,hellip:IC,hercon:MC,hfr:PC,Hfr:DC,HilbertSpace:OC,hksearow:UC,hkswarow:FC,hoarr:zC,homtht:HC,hookleftarrow:BC,hookrightarrow:jC,hopf:VC,Hopf:WC,horbar:GC,HorizontalLine:QC,hscr:KC,Hscr:XC,hslash:JC,Hstrok:YC,hstrok:ZC,HumpDownHump:eL,HumpEqual:tL,hybull:nL,hyphen:rL,Iacute:oL,iacute:sL,ic:iL,Icirc:lL,icirc:cL,Icy:aL,icy:uL,Idot:fL,IEcy:dL,iecy:hL,iexcl:pL,iff:mL,ifr:gL,Ifr:vL,Igrave:yL,igrave:wL,ii:SL,iiiint:EL,iiint:xL,iinfin:TL,iiota:kL,IJlig:bL,ijlig:_L,Imacr:NL,imacr:CL,image:LL,ImaginaryI:AL,imagline:RL,imagpart:qL,imath:$L,Im:IL,imof:ML,imped:PL,Implies:DL,incare:OL,in:"โˆˆ",infin:UL,infintie:FL,inodot:zL,intcal:HL,int:BL,Int:jL,integers:VL,Integral:WL,intercal:GL,Intersection:QL,intlarhk:KL,intprod:XL,InvisibleComma:JL,InvisibleTimes:YL,IOcy:ZL,iocy:eA,Iogon:tA,iogon:nA,Iopf:rA,iopf:oA,Iota:sA,iota:iA,iprod:lA,iquest:cA,iscr:aA,Iscr:uA,isin:fA,isindot:dA,isinE:hA,isins:pA,isinsv:mA,isinv:gA,it:vA,Itilde:yA,itilde:wA,Iukcy:SA,iukcy:EA,Iuml:xA,iuml:TA,Jcirc:kA,jcirc:bA,Jcy:_A,jcy:NA,Jfr:CA,jfr:LA,jmath:AA,Jopf:RA,jopf:qA,Jscr:$A,jscr:IA,Jsercy:MA,jsercy:PA,Jukcy:DA,jukcy:OA,Kappa:UA,kappa:FA,kappav:zA,Kcedil:HA,kcedil:BA,Kcy:jA,kcy:VA,Kfr:WA,kfr:GA,kgreen:QA,KHcy:KA,khcy:XA,KJcy:JA,kjcy:YA,Kopf:ZA,kopf:eR,Kscr:tR,kscr:nR,lAarr:rR,Lacute:oR,lacute:sR,laemptyv:iR,lagran:lR,Lambda:cR,lambda:aR,lang:uR,Lang:fR,langd:dR,langle:hR,lap:pR,Laplacetrf:mR,laquo:gR,larrb:vR,larrbfs:yR,larr:wR,Larr:SR,lArr:ER,larrfs:xR,larrhk:TR,larrlp:kR,larrpl:bR,larrsim:_R,larrtl:NR,latail:CR,lAtail:LR,lat:AR,late:RR,lates:qR,lbarr:$R,lBarr:IR,lbbrk:MR,lbrace:PR,lbrack:DR,lbrke:OR,lbrksld:UR,lbrkslu:FR,Lcaron:zR,lcaron:HR,Lcedil:BR,lcedil:jR,lceil:VR,lcub:WR,Lcy:GR,lcy:QR,ldca:KR,ldquo:XR,ldquor:JR,ldrdhar:YR,ldrushar:ZR,ldsh:eq,le:tq,lE:nq,LeftAngleBracket:rq,LeftArrowBar:oq,leftarrow:sq,LeftArrow:iq,Leftarrow:lq,LeftArrowRightArrow:cq,leftarrowtail:aq,LeftCeiling:uq,LeftDoubleBracket:fq,LeftDownTeeVector:dq,LeftDownVectorBar:hq,LeftDownVector:pq,LeftFloor:mq,leftharpoondown:gq,leftharpoonup:vq,leftleftarrows:yq,leftrightarrow:wq,LeftRightArrow:Sq,Leftrightarrow:Eq,leftrightarrows:xq,leftrightharpoons:Tq,leftrightsquigarrow:kq,LeftRightVector:bq,LeftTeeArrow:_q,LeftTee:Nq,LeftTeeVector:Cq,leftthreetimes:Lq,LeftTriangleBar:Aq,LeftTriangle:Rq,LeftTriangleEqual:qq,LeftUpDownVector:$q,LeftUpTeeVector:Iq,LeftUpVectorBar:Mq,LeftUpVector:Pq,LeftVectorBar:Dq,LeftVector:Oq,lEg:Uq,leg:Fq,leq:zq,leqq:Hq,leqslant:Bq,lescc:jq,les:Vq,lesdot:Wq,lesdoto:Gq,lesdotor:Qq,lesg:Kq,lesges:Xq,lessapprox:Jq,lessdot:Yq,lesseqgtr:Zq,lesseqqgtr:e$,LessEqualGreater:t$,LessFullEqual:n$,LessGreater:r$,lessgtr:o$,LessLess:s$,lesssim:i$,LessSlantEqual:l$,LessTilde:c$,lfisht:a$,lfloor:u$,Lfr:f$,lfr:d$,lg:h$,lgE:p$,lHar:m$,lhard:g$,lharu:v$,lharul:y$,lhblk:w$,LJcy:S$,ljcy:E$,llarr:x$,ll:T$,Ll:k$,llcorner:b$,Lleftarrow:_$,llhard:N$,lltri:C$,Lmidot:L$,lmidot:A$,lmoustache:R$,lmoust:q$,lnap:$$,lnapprox:I$,lne:M$,lnE:P$,lneq:D$,lneqq:O$,lnsim:U$,loang:F$,loarr:z$,lobrk:H$,longleftarrow:B$,LongLeftArrow:j$,Longleftarrow:V$,longleftrightarrow:W$,LongLeftRightArrow:G$,Longleftrightarrow:Q$,longmapsto:K$,longrightarrow:X$,LongRightArrow:J$,Longrightarrow:Y$,looparrowleft:Z$,looparrowright:e2,lopar:t2,Lopf:n2,lopf:r2,loplus:o2,lotimes:s2,lowast:i2,lowbar:l2,LowerLeftArrow:c2,LowerRightArrow:a2,loz:u2,lozenge:f2,lozf:d2,lpar:h2,lparlt:p2,lrarr:m2,lrcorner:g2,lrhar:v2,lrhard:y2,lrm:w2,lrtri:S2,lsaquo:E2,lscr:x2,Lscr:T2,lsh:k2,Lsh:b2,lsim:_2,lsime:N2,lsimg:C2,lsqb:L2,lsquo:A2,lsquor:R2,Lstrok:q2,lstrok:$2,ltcc:I2,ltcir:M2,lt:P2,LT:D2,Lt:O2,ltdot:U2,lthree:F2,ltimes:z2,ltlarr:H2,ltquest:B2,ltri:j2,ltrie:V2,ltrif:W2,ltrPar:G2,lurdshar:Q2,luruhar:K2,lvertneqq:X2,lvnE:J2,macr:Y2,male:Z2,malt:eI,maltese:tI,Map:"โค…",map:nI,mapsto:rI,mapstodown:oI,mapstoleft:sI,mapstoup:iI,marker:lI,mcomma:cI,Mcy:aI,mcy:uI,mdash:fI,mDDot:dI,measuredangle:hI,MediumSpace:pI,Mellintrf:mI,Mfr:gI,mfr:vI,mho:yI,micro:wI,midast:SI,midcir:EI,mid:xI,middot:TI,minusb:kI,minus:bI,minusd:_I,minusdu:NI,MinusPlus:CI,mlcp:LI,mldr:AI,mnplus:RI,models:qI,Mopf:$I,mopf:II,mp:MI,mscr:PI,Mscr:DI,mstpos:OI,Mu:UI,mu:FI,multimap:zI,mumap:HI,nabla:BI,Nacute:jI,nacute:VI,nang:WI,nap:GI,napE:QI,napid:KI,napos:XI,napprox:JI,natural:YI,naturals:ZI,natur:eM,nbsp:tM,nbump:nM,nbumpe:rM,ncap:oM,Ncaron:sM,ncaron:iM,Ncedil:lM,ncedil:cM,ncong:aM,ncongdot:uM,ncup:fM,Ncy:dM,ncy:hM,ndash:pM,nearhk:mM,nearr:gM,neArr:vM,nearrow:yM,ne:wM,nedot:SM,NegativeMediumSpace:EM,NegativeThickSpace:xM,NegativeThinSpace:TM,NegativeVeryThinSpace:kM,nequiv:bM,nesear:_M,nesim:NM,NestedGreaterGreater:CM,NestedLessLess:LM,NewLine:AM,nexist:RM,nexists:qM,Nfr:$M,nfr:IM,ngE:MM,nge:PM,ngeq:DM,ngeqq:OM,ngeqslant:UM,nges:FM,nGg:zM,ngsim:HM,nGt:BM,ngt:jM,ngtr:VM,nGtv:WM,nharr:GM,nhArr:QM,nhpar:KM,ni:XM,nis:JM,nisd:YM,niv:ZM,NJcy:eP,njcy:tP,nlarr:nP,nlArr:rP,nldr:oP,nlE:sP,nle:iP,nleftarrow:lP,nLeftarrow:cP,nleftrightarrow:aP,nLeftrightarrow:uP,nleq:fP,nleqq:dP,nleqslant:hP,nles:pP,nless:mP,nLl:gP,nlsim:vP,nLt:yP,nlt:wP,nltri:SP,nltrie:EP,nLtv:xP,nmid:TP,NoBreak:kP,NonBreakingSpace:bP,nopf:_P,Nopf:NP,Not:CP,not:LP,NotCongruent:AP,NotCupCap:RP,NotDoubleVerticalBar:qP,NotElement:$P,NotEqual:IP,NotEqualTilde:MP,NotExists:PP,NotGreater:DP,NotGreaterEqual:OP,NotGreaterFullEqual:UP,NotGreaterGreater:FP,NotGreaterLess:zP,NotGreaterSlantEqual:HP,NotGreaterTilde:BP,NotHumpDownHump:jP,NotHumpEqual:VP,notin:WP,notindot:GP,notinE:QP,notinva:KP,notinvb:XP,notinvc:JP,NotLeftTriangleBar:YP,NotLeftTriangle:ZP,NotLeftTriangleEqual:eD,NotLess:tD,NotLessEqual:nD,NotLessGreater:rD,NotLessLess:oD,NotLessSlantEqual:sD,NotLessTilde:iD,NotNestedGreaterGreater:lD,NotNestedLessLess:cD,notni:aD,notniva:uD,notnivb:fD,notnivc:dD,NotPrecedes:hD,NotPrecedesEqual:pD,NotPrecedesSlantEqual:mD,NotReverseElement:gD,NotRightTriangleBar:vD,NotRightTriangle:yD,NotRightTriangleEqual:wD,NotSquareSubset:SD,NotSquareSubsetEqual:ED,NotSquareSuperset:xD,NotSquareSupersetEqual:TD,NotSubset:kD,NotSubsetEqual:bD,NotSucceeds:_D,NotSucceedsEqual:ND,NotSucceedsSlantEqual:CD,NotSucceedsTilde:LD,NotSuperset:AD,NotSupersetEqual:RD,NotTilde:qD,NotTildeEqual:$D,NotTildeFullEqual:ID,NotTildeTilde:MD,NotVerticalBar:PD,nparallel:DD,npar:OD,nparsl:UD,npart:FD,npolint:zD,npr:HD,nprcue:BD,nprec:jD,npreceq:VD,npre:WD,nrarrc:GD,nrarr:QD,nrArr:KD,nrarrw:XD,nrightarrow:JD,nRightarrow:YD,nrtri:ZD,nrtrie:eO,nsc:tO,nsccue:nO,nsce:rO,Nscr:oO,nscr:sO,nshortmid:iO,nshortparallel:lO,nsim:cO,nsime:aO,nsimeq:uO,nsmid:fO,nspar:dO,nsqsube:hO,nsqsupe:pO,nsub:mO,nsubE:gO,nsube:vO,nsubset:yO,nsubseteq:wO,nsubseteqq:SO,nsucc:EO,nsucceq:xO,nsup:TO,nsupE:kO,nsupe:bO,nsupset:_O,nsupseteq:NO,nsupseteqq:CO,ntgl:LO,Ntilde:AO,ntilde:RO,ntlg:qO,ntriangleleft:$O,ntrianglelefteq:IO,ntriangleright:MO,ntrianglerighteq:PO,Nu:DO,nu:OO,num:UO,numero:FO,numsp:zO,nvap:HO,nvdash:BO,nvDash:jO,nVdash:VO,nVDash:WO,nvge:GO,nvgt:QO,nvHarr:KO,nvinfin:XO,nvlArr:JO,nvle:YO,nvlt:ZO,nvltrie:e3,nvrArr:t3,nvrtrie:n3,nvsim:r3,nwarhk:o3,nwarr:s3,nwArr:i3,nwarrow:l3,nwnear:c3,Oacute:a3,oacute:u3,oast:f3,Ocirc:d3,ocirc:h3,ocir:p3,Ocy:m3,ocy:g3,odash:v3,Odblac:y3,odblac:w3,odiv:S3,odot:E3,odsold:x3,OElig:T3,oelig:k3,ofcir:b3,Ofr:_3,ofr:N3,ogon:C3,Ograve:L3,ograve:A3,ogt:R3,ohbar:q3,ohm:$3,oint:I3,olarr:M3,olcir:P3,olcross:D3,oline:O3,olt:U3,Omacr:F3,omacr:z3,Omega:H3,omega:B3,Omicron:j3,omicron:V3,omid:W3,ominus:G3,Oopf:Q3,oopf:K3,opar:X3,OpenCurlyDoubleQuote:J3,OpenCurlyQuote:Y3,operp:Z3,oplus:e4,orarr:t4,Or:n4,or:r4,ord:o4,order:s4,orderof:i4,ordf:l4,ordm:c4,origof:a4,oror:u4,orslope:f4,orv:d4,oS:h4,Oscr:p4,oscr:m4,Oslash:g4,oslash:v4,osol:y4,Otilde:w4,otilde:S4,otimesas:E4,Otimes:x4,otimes:T4,Ouml:k4,ouml:b4,ovbar:_4,OverBar:N4,OverBrace:C4,OverBracket:L4,OverParenthesis:A4,para:R4,parallel:q4,par:$4,parsim:I4,parsl:M4,part:P4,PartialD:D4,Pcy:O4,pcy:U4,percnt:F4,period:z4,permil:H4,perp:B4,pertenk:j4,Pfr:V4,pfr:W4,Phi:G4,phi:Q4,phiv:K4,phmmat:X4,phone:J4,Pi:Y4,pi:Z4,pitchfork:eU,piv:tU,planck:nU,planckh:rU,plankv:oU,plusacir:sU,plusb:iU,pluscir:lU,plus:cU,plusdo:aU,plusdu:uU,pluse:fU,PlusMinus:dU,plusmn:hU,plussim:pU,plustwo:mU,pm:gU,Poincareplane:vU,pointint:yU,popf:wU,Popf:SU,pound:EU,prap:xU,Pr:TU,pr:kU,prcue:bU,precapprox:_U,prec:NU,preccurlyeq:CU,Precedes:LU,PrecedesEqual:AU,PrecedesSlantEqual:RU,PrecedesTilde:qU,preceq:$U,precnapprox:IU,precneqq:MU,precnsim:PU,pre:DU,prE:OU,precsim:UU,prime:FU,Prime:zU,primes:HU,prnap:BU,prnE:jU,prnsim:VU,prod:WU,Product:GU,profalar:QU,profline:KU,profsurf:XU,prop:JU,Proportional:YU,Proportion:ZU,propto:e5,prsim:t5,prurel:n5,Pscr:r5,pscr:o5,Psi:s5,psi:i5,puncsp:l5,Qfr:c5,qfr:a5,qint:u5,qopf:f5,Qopf:d5,qprime:h5,Qscr:p5,qscr:m5,quaternions:g5,quatint:v5,quest:y5,questeq:w5,quot:S5,QUOT:E5,rAarr:x5,race:T5,Racute:k5,racute:b5,radic:_5,raemptyv:N5,rang:C5,Rang:L5,rangd:A5,range:R5,rangle:q5,raquo:$5,rarrap:I5,rarrb:M5,rarrbfs:P5,rarrc:D5,rarr:O5,Rarr:U5,rArr:F5,rarrfs:z5,rarrhk:H5,rarrlp:B5,rarrpl:j5,rarrsim:V5,Rarrtl:W5,rarrtl:G5,rarrw:Q5,ratail:K5,rAtail:X5,ratio:J5,rationals:Y5,rbarr:Z5,rBarr:eF,RBarr:tF,rbbrk:nF,rbrace:rF,rbrack:oF,rbrke:sF,rbrksld:iF,rbrkslu:lF,Rcaron:cF,rcaron:aF,Rcedil:uF,rcedil:fF,rceil:dF,rcub:hF,Rcy:pF,rcy:mF,rdca:gF,rdldhar:vF,rdquo:yF,rdquor:wF,rdsh:SF,real:EF,realine:xF,realpart:TF,reals:kF,Re:bF,rect:_F,reg:NF,REG:CF,ReverseElement:LF,ReverseEquilibrium:AF,ReverseUpEquilibrium:RF,rfisht:qF,rfloor:$F,rfr:IF,Rfr:MF,rHar:PF,rhard:DF,rharu:OF,rharul:UF,Rho:FF,rho:zF,rhov:HF,RightAngleBracket:BF,RightArrowBar:jF,rightarrow:VF,RightArrow:WF,Rightarrow:GF,RightArrowLeftArrow:QF,rightarrowtail:KF,RightCeiling:XF,RightDoubleBracket:JF,RightDownTeeVector:YF,RightDownVectorBar:ZF,RightDownVector:ez,RightFloor:tz,rightharpoondown:nz,rightharpoonup:rz,rightleftarrows:oz,rightleftharpoons:sz,rightrightarrows:iz,rightsquigarrow:lz,RightTeeArrow:cz,RightTee:az,RightTeeVector:uz,rightthreetimes:fz,RightTriangleBar:dz,RightTriangle:hz,RightTriangleEqual:pz,RightUpDownVector:mz,RightUpTeeVector:gz,RightUpVectorBar:vz,RightUpVector:yz,RightVectorBar:wz,RightVector:Sz,ring:Ez,risingdotseq:xz,rlarr:Tz,rlhar:kz,rlm:bz,rmoustache:_z,rmoust:Nz,rnmid:Cz,roang:Lz,roarr:Az,robrk:Rz,ropar:qz,ropf:$z,Ropf:Iz,roplus:Mz,rotimes:Pz,RoundImplies:Dz,rpar:Oz,rpargt:Uz,rppolint:Fz,rrarr:zz,Rrightarrow:Hz,rsaquo:Bz,rscr:jz,Rscr:Vz,rsh:Wz,Rsh:Gz,rsqb:Qz,rsquo:Kz,rsquor:Xz,rthree:Jz,rtimes:Yz,rtri:Zz,rtrie:eH,rtrif:tH,rtriltri:nH,RuleDelayed:rH,ruluhar:oH,rx:sH,Sacute:iH,sacute:lH,sbquo:cH,scap:aH,Scaron:uH,scaron:fH,Sc:dH,sc:hH,sccue:pH,sce:mH,scE:gH,Scedil:vH,scedil:yH,Scirc:wH,scirc:SH,scnap:EH,scnE:xH,scnsim:TH,scpolint:kH,scsim:bH,Scy:_H,scy:NH,sdotb:CH,sdot:LH,sdote:AH,searhk:RH,searr:qH,seArr:$H,searrow:IH,sect:MH,semi:PH,seswar:DH,setminus:OH,setmn:UH,sext:FH,Sfr:zH,sfr:HH,sfrown:BH,sharp:jH,SHCHcy:VH,shchcy:WH,SHcy:GH,shcy:QH,ShortDownArrow:KH,ShortLeftArrow:XH,shortmid:JH,shortparallel:YH,ShortRightArrow:ZH,ShortUpArrow:e8,shy:t8,Sigma:n8,sigma:r8,sigmaf:o8,sigmav:s8,sim:i8,simdot:l8,sime:c8,simeq:a8,simg:u8,simgE:f8,siml:d8,simlE:h8,simne:p8,simplus:m8,simrarr:g8,slarr:v8,SmallCircle:y8,smallsetminus:w8,smashp:S8,smeparsl:E8,smid:x8,smile:T8,smt:k8,smte:b8,smtes:_8,SOFTcy:N8,softcy:C8,solbar:L8,solb:A8,sol:R8,Sopf:q8,sopf:$8,spades:I8,spadesuit:M8,spar:P8,sqcap:D8,sqcaps:O8,sqcup:U8,sqcups:F8,Sqrt:z8,sqsub:H8,sqsube:B8,sqsubset:j8,sqsubseteq:V8,sqsup:W8,sqsupe:G8,sqsupset:Q8,sqsupseteq:K8,square:X8,Square:J8,SquareIntersection:Y8,SquareSubset:Z8,SquareSubsetEqual:eB,SquareSuperset:tB,SquareSupersetEqual:nB,SquareUnion:rB,squarf:oB,squ:sB,squf:iB,srarr:lB,Sscr:cB,sscr:aB,ssetmn:uB,ssmile:fB,sstarf:dB,Star:hB,star:pB,starf:mB,straightepsilon:gB,straightphi:vB,strns:yB,sub:wB,Sub:SB,subdot:EB,subE:xB,sube:TB,subedot:kB,submult:bB,subnE:_B,subne:NB,subplus:CB,subrarr:LB,subset:AB,Subset:RB,subseteq:qB,subseteqq:$B,SubsetEqual:IB,subsetneq:MB,subsetneqq:PB,subsim:DB,subsub:OB,subsup:UB,succapprox:FB,succ:zB,succcurlyeq:HB,Succeeds:BB,SucceedsEqual:jB,SucceedsSlantEqual:VB,SucceedsTilde:WB,succeq:GB,succnapprox:QB,succneqq:KB,succnsim:XB,succsim:JB,SuchThat:YB,sum:ZB,Sum:ej,sung:tj,sup1:nj,sup2:rj,sup3:oj,sup:sj,Sup:ij,supdot:lj,supdsub:cj,supE:aj,supe:uj,supedot:fj,Superset:dj,SupersetEqual:hj,suphsol:pj,suphsub:mj,suplarr:gj,supmult:vj,supnE:yj,supne:wj,supplus:Sj,supset:Ej,Supset:xj,supseteq:Tj,supseteqq:kj,supsetneq:bj,supsetneqq:_j,supsim:Nj,supsub:Cj,supsup:Lj,swarhk:Aj,swarr:Rj,swArr:qj,swarrow:$j,swnwar:Ij,szlig:Mj,Tab:Pj,target:Dj,Tau:Oj,tau:Uj,tbrk:Fj,Tcaron:zj,tcaron:Hj,Tcedil:Bj,tcedil:jj,Tcy:Vj,tcy:Wj,tdot:Gj,telrec:Qj,Tfr:Kj,tfr:Xj,there4:Jj,therefore:Yj,Therefore:Zj,Theta:e6,theta:t6,thetasym:n6,thetav:r6,thickapprox:o6,thicksim:s6,ThickSpace:i6,ThinSpace:l6,thinsp:c6,thkap:a6,thksim:u6,THORN:f6,thorn:d6,tilde:h6,Tilde:p6,TildeEqual:m6,TildeFullEqual:g6,TildeTilde:v6,timesbar:y6,timesb:w6,times:S6,timesd:E6,tint:x6,toea:T6,topbot:k6,topcir:b6,top:_6,Topf:N6,topf:C6,topfork:L6,tosa:A6,tprime:R6,trade:q6,TRADE:$6,triangle:I6,triangledown:M6,triangleleft:P6,trianglelefteq:D6,triangleq:O6,triangleright:U6,trianglerighteq:F6,tridot:z6,trie:H6,triminus:B6,TripleDot:j6,triplus:V6,trisb:W6,tritime:G6,trpezium:Q6,Tscr:K6,tscr:X6,TScy:J6,tscy:Y6,TSHcy:Z6,tshcy:eV,Tstrok:tV,tstrok:nV,twixt:rV,twoheadleftarrow:oV,twoheadrightarrow:sV,Uacute:iV,uacute:lV,uarr:cV,Uarr:aV,uArr:uV,Uarrocir:fV,Ubrcy:dV,ubrcy:hV,Ubreve:pV,ubreve:mV,Ucirc:gV,ucirc:vV,Ucy:yV,ucy:wV,udarr:SV,Udblac:EV,udblac:xV,udhar:TV,ufisht:kV,Ufr:bV,ufr:_V,Ugrave:NV,ugrave:CV,uHar:LV,uharl:AV,uharr:RV,uhblk:qV,ulcorn:$V,ulcorner:IV,ulcrop:MV,ultri:PV,Umacr:DV,umacr:OV,uml:UV,UnderBar:FV,UnderBrace:zV,UnderBracket:HV,UnderParenthesis:BV,Union:jV,UnionPlus:VV,Uogon:WV,uogon:GV,Uopf:QV,uopf:KV,UpArrowBar:XV,uparrow:JV,UpArrow:YV,Uparrow:ZV,UpArrowDownArrow:e9,updownarrow:t9,UpDownArrow:n9,Updownarrow:r9,UpEquilibrium:o9,upharpoonleft:s9,upharpoonright:i9,uplus:l9,UpperLeftArrow:c9,UpperRightArrow:a9,upsi:u9,Upsi:f9,upsih:d9,Upsilon:h9,upsilon:p9,UpTeeArrow:m9,UpTee:g9,upuparrows:v9,urcorn:y9,urcorner:w9,urcrop:S9,Uring:E9,uring:x9,urtri:T9,Uscr:k9,uscr:b9,utdot:_9,Utilde:N9,utilde:C9,utri:L9,utrif:A9,uuarr:R9,Uuml:q9,uuml:$9,uwangle:I9,vangrt:M9,varepsilon:P9,varkappa:D9,varnothing:O9,varphi:U9,varpi:F9,varpropto:z9,varr:H9,vArr:B9,varrho:j9,varsigma:V9,varsubsetneq:W9,varsubsetneqq:G9,varsupsetneq:Q9,varsupsetneqq:K9,vartheta:X9,vartriangleleft:J9,vartriangleright:Y9,vBar:Z9,Vbar:eW,vBarv:tW,Vcy:nW,vcy:rW,vdash:oW,vDash:sW,Vdash:iW,VDash:lW,Vdashl:cW,veebar:aW,vee:uW,Vee:fW,veeeq:dW,vellip:hW,verbar:pW,Verbar:mW,vert:gW,Vert:vW,VerticalBar:yW,VerticalLine:wW,VerticalSeparator:SW,VerticalTilde:EW,VeryThinSpace:xW,Vfr:TW,vfr:kW,vltri:bW,vnsub:_W,vnsup:NW,Vopf:CW,vopf:LW,vprop:AW,vrtri:RW,Vscr:qW,vscr:$W,vsubnE:IW,vsubne:MW,vsupnE:PW,vsupne:DW,Vvdash:OW,vzigzag:UW,Wcirc:FW,wcirc:zW,wedbar:HW,wedge:BW,Wedge:jW,wedgeq:VW,weierp:WW,Wfr:GW,wfr:QW,Wopf:KW,wopf:XW,wp:JW,wr:YW,wreath:ZW,Wscr:e7,wscr:t7,xcap:n7,xcirc:r7,xcup:o7,xdtri:s7,Xfr:i7,xfr:l7,xharr:c7,xhArr:a7,Xi:u7,xi:f7,xlarr:d7,xlArr:h7,xmap:p7,xnis:m7,xodot:g7,Xopf:v7,xopf:y7,xoplus:w7,xotime:S7,xrarr:E7,xrArr:x7,Xscr:T7,xscr:k7,xsqcup:b7,xuplus:_7,xutri:N7,xvee:C7,xwedge:L7,Yacute:A7,yacute:R7,YAcy:q7,yacy:$7,Ycirc:I7,ycirc:M7,Ycy:P7,ycy:D7,yen:O7,Yfr:U7,yfr:F7,YIcy:z7,yicy:H7,Yopf:B7,yopf:j7,Yscr:V7,yscr:W7,YUcy:G7,yucy:Q7,yuml:K7,Yuml:X7,Zacute:J7,zacute:Y7,Zcaron:Z7,zcaron:eG,Zcy:tG,zcy:nG,Zdot:rG,zdot:oG,zeetrf:sG,ZeroWidthSpace:iG,Zeta:lG,zeta:cG,zfr:aG,Zfr:uG,ZHcy:fG,zhcy:dG,zigrarr:hG,zopf:pG,Zopf:mG,Zscr:gG,zscr:vG,zwj:yG,zwnj:wG},SG="ร",EG="รก",xG="ร‚",TG="รข",kG="ยด",bG="ร†",_G="รฆ",NG="ร€",CG="ร ",LG="&",AG="&",RG="ร…",qG="รฅ",$G="รƒ",IG="รฃ",MG="ร„",PG="รค",DG="ยฆ",OG="ร‡",UG="รง",FG="ยธ",zG="ยข",HG="ยฉ",BG="ยฉ",jG="ยค",VG="ยฐ",WG="รท",GG="ร‰",QG="รฉ",KG="รŠ",XG="รช",JG="รˆ",YG="รจ",ZG="ร",eQ="รฐ",tQ="ร‹",nQ="รซ",rQ="ยฝ",oQ="ยผ",sQ="ยพ",iQ=">",lQ=">",cQ="ร",aQ="รญ",uQ="รŽ",fQ="รฎ",dQ="ยก",hQ="รŒ",pQ="รฌ",mQ="ยฟ",gQ="ร",vQ="รฏ",yQ="ยซ",wQ="<",SQ="<",EQ="ยฏ",xQ="ยต",TQ="ยท",kQ="ย ",bQ="ยฌ",_Q="ร‘",NQ="รฑ",CQ="ร“",LQ="รณ",AQ="ร”",RQ="รด",qQ="ร’",$Q="รฒ",IQ="ยช",MQ="ยบ",PQ="ร˜",DQ="รธ",OQ="ร•",UQ="รต",FQ="ร–",zQ="รถ",HQ="ยถ",BQ="ยฑ",jQ="ยฃ",VQ='"',WQ='"',GQ="ยป",QQ="ยฎ",KQ="ยฎ",XQ="ยง",JQ="ยญ",YQ="ยน",ZQ="ยฒ",eK="ยณ",tK="รŸ",nK="รž",rK="รพ",oK="ร—",sK="รš",iK="รบ",lK="ร›",cK="รป",aK="ร™",uK="รน",fK="ยจ",dK="รœ",hK="รผ",pK="ร",mK="รฝ",gK="ยฅ",vK="รฟ",yK={Aacute:SG,aacute:EG,Acirc:xG,acirc:TG,acute:kG,AElig:bG,aelig:_G,Agrave:NG,agrave:CG,amp:LG,AMP:AG,Aring:RG,aring:qG,Atilde:$G,atilde:IG,Auml:MG,auml:PG,brvbar:DG,Ccedil:OG,ccedil:UG,cedil:FG,cent:zG,copy:HG,COPY:BG,curren:jG,deg:VG,divide:WG,Eacute:GG,eacute:QG,Ecirc:KG,ecirc:XG,Egrave:JG,egrave:YG,ETH:ZG,eth:eQ,Euml:tQ,euml:nQ,frac12:rQ,frac14:oQ,frac34:sQ,gt:iQ,GT:lQ,Iacute:cQ,iacute:aQ,Icirc:uQ,icirc:fQ,iexcl:dQ,Igrave:hQ,igrave:pQ,iquest:mQ,Iuml:gQ,iuml:vQ,laquo:yQ,lt:wQ,LT:SQ,macr:EQ,micro:xQ,middot:TQ,nbsp:kQ,not:bQ,Ntilde:_Q,ntilde:NQ,Oacute:CQ,oacute:LQ,Ocirc:AQ,ocirc:RQ,Ograve:qQ,ograve:$Q,ordf:IQ,ordm:MQ,Oslash:PQ,oslash:DQ,Otilde:OQ,otilde:UQ,Ouml:FQ,ouml:zQ,para:HQ,plusmn:BQ,pound:jQ,quot:VQ,QUOT:WQ,raquo:GQ,reg:QQ,REG:KQ,sect:XQ,shy:JQ,sup1:YQ,sup2:ZQ,sup3:eK,szlig:tK,THORN:nK,thorn:rK,times:oK,Uacute:sK,uacute:iK,Ucirc:lK,ucirc:cK,Ugrave:aK,ugrave:uK,uml:fK,Uuml:dK,uuml:hK,Yacute:pK,yacute:mK,yen:gK,yuml:vK},wK="&",SK="'",EK=">",xK="<",TK='"',Th={amp:wK,apos:SK,gt:EK,lt:xK,quot:TK};var bc={};const kK={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var bK=Fn&&Fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bc,"__esModule",{value:!0});var Ja=bK(kK),_K=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function NK(e){return e>=55296&&e<=57343||e>1114111?"๏ฟฝ":(e in Ja.default&&(e=Ja.default[e]),_K(e))}bc.default=NK;var Bs=Fn&&Fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wt,"__esModule",{value:!0});wt.decodeHTML=wt.decodeHTMLStrict=wt.decodeXML=void 0;var El=Bs(xh),CK=Bs(yK),LK=Bs(Th),Ya=Bs(bc),AK=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;wt.decodeXML=kh(LK.default);wt.decodeHTMLStrict=kh(El.default);function kh(e){var t=bh(e);return function(n){return String(n).replace(AK,t)}}var Za=function(e,t){return e1?IK(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function MK(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(Rh,js)}}var qh=new RegExp(Ch.source+"|"+Rh.source,"g");function PK(e){return e.replace(qh,js)}De.escape=PK;function DK(e){return e.replace(Ch,js)}De.escapeUTF8=DK;function $h(e){return function(t){return t.replace(qh,function(n){return e[n]||js(n)})}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=wt,n=De;function r(c,a){return(!a||a<=0?t.decodeXML:t.decodeHTML)(c)}e.decode=r;function o(c,a){return(!a||a<=0?t.decodeXML:t.decodeHTMLStrict)(c)}e.decodeStrict=o;function s(c,a){return(!a||a<=0?n.encodeXML:n.encodeHTML)(c)}e.encode=s;var i=De;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return i.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return i.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var l=wt;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return l.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return l.decodeXML}})})(Eh);function OK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eu(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(a){throw a},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,i=!1,l;return{s:function(){n=n.call(e)},n:function(){var a=n.next();return s=a.done,a},e:function(a){i=!0,l=a},f:function(){try{!s&&n.return!=null&&n.return()}finally{if(i)throw l}}}}function FK(e,t){if(e){if(typeof e=="string")return tu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tu(e,t)}}function tu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?e*40+55:0,i=t>0?t*40+55:0,l=n>0?n*40+55:0;r[o]=jK([s,i,l])}function Mh(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function jK(e){var t=[],n=Ih(e),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;t.push(Mh(o))}}catch(s){n.e(s)}finally{n.f()}return"#"+t.join("")}function ru(e,t,n,r){var o;return t==="text"?o=QK(n,r):t==="display"?o=WK(e,n,r):t==="xterm256Foreground"?o=Qo(e,r.colors[n]):t==="xterm256Background"?o=Ko(e,r.colors[n]):t==="rgb"&&(o=VK(e,n)),o}function VK(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.substring(5).split(";"),o=r.map(function(s){return("0"+Number(s).toString(16)).substr(-2)}).join("");return Go(e,(n===38?"color:#":"background-color:#")+o)}function WK(e,t,n){t=parseInt(t,10);var r={"-1":function(){return"
"},0:function(){return e.length&&Ph(e)},1:function(){return Rt(e,"b")},3:function(){return Rt(e,"i")},4:function(){return Rt(e,"u")},8:function(){return Go(e,"display:none")},9:function(){return Rt(e,"strike")},22:function(){return Go(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return su(e,"i")},24:function(){return su(e,"u")},39:function(){return Qo(e,n.fg)},49:function(){return Ko(e,n.bg)},53:function(){return Go(e,"text-decoration:overline")}},o;return r[t]?o=r[t]():4"}).join("")}function bo(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function GK(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function ou(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2")}function Go(e,t){return Rt(e,"span",t)}function Qo(e,t){return Rt(e,"span","color:"+t)}function Ko(e,t){return Rt(e,"span","background-color:"+t)}function su(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return""}function KK(e,t,n){var r=!1,o=3;function s(){return""}function i(x,k){return n("xterm256Foreground",k),""}function l(x,k){return n("xterm256Background",k),""}function c(x){return t.newline?n("display",-1):n("text",x),""}function a(x,k){r=!0,k.trim().length===0&&(k="0"),k=k.trimRight(";").split(";");var w=Ih(k),N;try{for(w.s();!(N=w.n()).done;){var $=N.value;n("display",$)}}catch(I){w.e(I)}finally{w.f()}return""}function u(x){return n("text",x),""}function h(x){return n("rgb",x),""}var f=[{pattern:/^\x08+/,sub:s},{pattern:/^\x1b\[[012]?K/,sub:s},{pattern:/^\x1b\[\(B/,sub:s},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:h},{pattern:/^\x1b\[38;5;(\d+)m/,sub:i},{pattern:/^\x1b\[48;5;(\d+)m/,sub:l},{pattern:/^\n/,sub:c},{pattern:/^\r+\n/,sub:c},{pattern:/^\r/,sub:c},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:a},{pattern:/^\x1b\[\d?J/,sub:s},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:s},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:s},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:u}];function v(x,k){k>o&&r||(r=!1,e=e.replace(x.pattern,x.sub))}var m=[],E=e,S=E.length;e:for(;S>0;){for(var p=0,d=0,g=f.length;d{const t=R.useMemo(()=>Dh(e),[e]);return y("div",{className:"error-message",dangerouslySetInnerHTML:{__html:t||""}})};function Dh(e){const t={bg:"var(--vscode-panel-background)",fg:"var(--vscode-foreground)"};return t.colors=tX,new ZK(t).toHtml(nX(e))}const tX={0:"#000",1:"#C00",2:"#0C0",3:"#C50",4:"#00C",5:"#C0C",6:"#0CC",7:"#CCC",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};function nX(e){return e.replace(/[&"<>]/g,t=>({"&":"&",'"':""","<":"<",">":">"})[t])}const rX=({action:e,sdkLanguage:t})=>{var c;if(!e)return null;const n=e.log,r=(c=e.error)==null?void 0:c.message,o={...e.params};delete o.info;const s=Object.keys(o),i=e.wallTime?new Date(e.wallTime).toLocaleString():null,l=e.endTime?zn(e.endTime-e.startTime):"Timed Out";return A("div",{className:"call-tab",children:[!!r&&y(eX,{error:r}),!!r&&y("div",{className:"call-section",children:"Call"}),y("div",{className:"call-line",children:e.apiName}),A(fn,{children:[y("div",{className:"call-section",children:"Time"}),i&&A("div",{className:"call-line",children:["wall time:",y("span",{className:"call-value datetime",title:i,children:i})]}),A("div",{className:"call-line",children:["duration:",y("span",{className:"call-value datetime",title:l,children:l})]})]}),!!s.length&&y("div",{className:"call-section",children:"Parameters"}),!!s.length&&s.map((a,u)=>iu(lu(e,a,o[a],t),"param-"+u)),!!e.result&&y("div",{className:"call-section",children:"Return value"}),!!e.result&&Object.keys(e.result).map((a,u)=>iu(lu(e,a,e.result[a],t),"result-"+u)),y("div",{className:"call-section",children:"Log"}),n.map((a,u)=>y("div",{className:"call-line",children:a},u))]})};function iu(e,t){let n=e.text.replace(/\n/g,"โ†ต");return e.type==="string"&&(n=`"${n}"`),A("div",{className:"call-line",children:[e.name,":",y("span",{className:`call-value ${e.type}`,title:e.text,children:n}),["string","number","object","locator"].includes(e.type)&&y(ny,{value:e.text})]},t)}function lu(e,t,n,r){const o=e.method.includes("eval")||e.method==="waitForFunction";if(t==="files")return{text:"",type:"string",name:t};if((t==="eventInit"||t==="expectedValue"||t==="arg"&&o)&&(n=xs(n.value,new Array(10).fill({handle:""}))),(t==="value"&&o||t==="received"&&e.method==="expect")&&(n=xs(n,new Array(10).fill({handle:""}))),t==="selector")return{text:Bt(r||"javascript",e.params.selector,!1,!0),type:"locator",name:"locator"};const s=typeof n;return s!=="object"||n===null?{text:String(n),type:s,name:t}:n.guid?{text:"",type:"handle",name:t}:{text:JSON.stringify(n).slice(0,1e3),type:"object",name:t}}function xs(e,t){if(e.n!==void 0)return e.n;if(e.s!==void 0)return e.s;if(e.b!==void 0)return e.b;if(e.v!==void 0){if(e.v==="undefined")return;if(e.v==="null")return null;if(e.v==="NaN")return NaN;if(e.v==="Infinity")return 1/0;if(e.v==="-Infinity")return-1/0;if(e.v==="-0")return-0}if(e.d!==void 0)return new Date(e.d);if(e.r!==void 0)return new RegExp(e.r.p,e.r.f);if(e.a!==void 0)return e.a.map(n=>xs(n,t));if(e.o!==void 0){const n={};for(const{k:r,v:o}of e.o)n[r]=xs(o,t);return n}return e.h!==void 0?t===void 0?"":t[e.h]:""}const oX=({action:e})=>{const t=R.useMemo(()=>{if(!e)return[];const n=[],r=Qn(e);for(const o of Xd(e))if(!(o.method!=="console"&&o.method!=="pageError")){if(o.method==="console"){const{guid:s}=o.params.message;n.push({message:r.initializers[s]})}o.method==="pageError"&&n.push({error:o.params.error})}return n},[e]);return y("div",{className:"console-tab",children:t.map((n,r)=>{const{message:o,error:s}=n;if(o){const i=o.location.url,l=i?i.substring(i.lastIndexOf("/")+1):"";return A("div",{className:"console-line "+o.type,children:[A("span",{className:"console-location",children:[l,":",o.location.lineNumber]}),y("span",{className:"codicon codicon-"+sX(o)}),y("span",{className:"console-line-message",children:o.text})]},r)}if(s){const{error:i,value:l}=s;return i?A("div",{className:"console-line error",children:[y("span",{className:"codicon codicon-error"}),y("span",{className:"console-line-message",children:i.message}),y("div",{className:"console-stack",children:i.stack})]},r):A("div",{className:"console-line error",children:[y("span",{className:"codicon codicon-error"}),y("span",{className:"console-line-message",children:String(l)})]},r)}return null})})};function sX(e){switch(e.type){case"error":return"error";case"warning":return"warning"}return"blank"}const iX=({title:e,children:t,setExpanded:n,expanded:r})=>A("div",{className:"expandable"+(r?" expanded":""),children:[A("div",{className:"expandable-title",children:[y("div",{className:"codicon codicon-"+(r?"chevron-down":"chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:()=>n(!r)}),e]}),r&&y("div",{style:{marginLeft:25},children:t})]});const lX=({resource:e,index:t,selected:n,setSelected:r})=>{const[o,s]=R.useState(!1),[i,l]=R.useState(null),[c,a]=R.useState(null);R.useEffect(()=>{s(!1),r(-1)},[e,r]),R.useEffect(()=>{(async()=>{if(e.request.postData)if(e.request.postData._sha1){const p=await(await fetch(`sha1/${e.request.postData._sha1}`)).text();l(p)}else l(e.request.postData.text);if(e.response.content._sha1){const S=e.response.content.mimeType.includes("image"),p=await fetch(`sha1/${e.response.content._sha1}`);if(S){const d=await p.blob(),g=new FileReader,T=new Promise(x=>g.onload=x);g.readAsDataURL(d),a({dataUrl:(await T).target.result})}else a({text:await p.text()})}})()},[o,e]);const{routeStatus:u,requestContentType:h,resourceName:f,contentType:v}=R.useMemo(()=>{const E=aX(e),S=e.request.headers.find(x=>x.name==="Content-Type"),p=S?S.value:"",d=e.request.url.substring(e.request.url.lastIndexOf("/"));let g=e.response.content.mimeType;const T=g.match(/^(.*);\s*charset=.*$/);return T&&(g=T[1]),{routeStatus:E,requestContentType:p,resourceName:d,contentType:g}},[e]),m=R.useCallback(()=>A("div",{className:"network-request-title",children:[u&&y("div",{className:`network-request-title-status status-route ${u}`,children:u}),e.response._failureText&&y("div",{className:"network-request-title-status status-failure",children:e.response._failureText}),!e.response._failureText&&y("div",{className:"network-request-title-status "+cX(e.response.status),children:e.response.status}),y("div",{className:"network-request-title-status",children:e.request.method}),y("div",{className:"network-request-title-url",children:f}),y("div",{className:"network-request-title-content-type",children:v})]}),[v,e,f,u]);return y("div",{className:"network-request "+(n?"selected":""),onClick:()=>r(t),children:y(iX,{expanded:o,setExpanded:s,title:m(),children:A("div",{className:"network-request-details",children:[A("div",{className:"network-request-details-time",children:[e.time,"ms"]}),y("div",{className:"network-request-details-header",children:"URL"}),y("div",{className:"network-request-details-url",children:e.request.url}),y("div",{className:"network-request-details-header",children:"Request Headers"}),y("div",{className:"network-request-headers",children:e.request.headers.map(E=>`${E.name}: ${E.value}`).join(` +`)}),y("div",{className:"network-request-details-header",children:"Response Headers"}),y("div",{className:"network-request-headers",children:e.response.headers.map(E=>`${E.name}: ${E.value}`).join(` +`)}),e.request.postData?y("div",{className:"network-request-details-header",children:"Request Body"}):"",e.request.postData?y("div",{className:"network-request-body",children:cu(i,h)}):"",y("div",{className:"network-request-details-header",children:"Response Body"}),e.response.content._sha1?"":y("div",{className:"network-request-response-body",children:"Response body is not available for this request."}),c!==null&&c.dataUrl?y("img",{draggable:"false",src:c.dataUrl}):"",c!==null&&c.text?y("div",{className:"network-request-response-body",children:cu(c.text,e.response.content.mimeType)}):""]})})})};function cX(e){return e>=200&&e<400?"status-success":e>=400?"status-failure":""}function cu(e,t){if(e===null)return"Loading...";const n=e;if(n==="")return"";if(t.includes("application/json"))try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}return t.includes("application/x-www-form-urlencoded")?decodeURIComponent(n):n}function aX(e){return e._wasAborted?"aborted":e._wasContinued?"continued":e._wasFulfilled?"fulfilled":e._apiRequest?"api":""}const uX=({action:e})=>{const[t,n]=R.useState(0),r=e?Jd(e):[];return y("div",{className:"network-tab",children:r.map((o,s)=>y(lX,{resource:o,index:s,selected:t===s,setSelected:n},s))})};const fX="modulepreload",dX=function(e,t){return new URL(e,t).href},au={},hX=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=dX(s,r),s in au)return;au[s]=!0;const i=s.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const h=o[u];if(h.href===s&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":fX,i||(a.as="script",a.crossOrigin=""),a.href=s,document.head.appendChild(a),i)return new Promise((u,h)=>{a.addEventListener("load",u),a.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};const Oh=({text:e,language:t,readOnly:n,highlight:r,revealLine:o,lineNumbers:s,focusOnChange:i,wrapLines:l,onChange:c})=>{const[a,u]=_s(),[h]=R.useState(hX(()=>import("./codeMirrorModule-a10cf84f.js"),["./codeMirrorModule-a10cf84f.js","../codeMirrorModule.5d0f417c.css"],import.meta.url).then(E=>E.default)),f=R.useRef(null),[v,m]=R.useState();return R.useEffect(()=>{(async()=>{var g,T;const E=await h,S=u.current;if(!S)return;let p="javascript";if(t==="python"&&(p="python"),t==="java"&&(p="text/x-java"),t==="csharp"&&(p="text/x-csharp"),f.current&&p===f.current.cm.getOption("mode")&&!!n===f.current.cm.getOption("readOnly")&&s===f.current.cm.getOption("lineNumbers")&&l===f.current.cm.getOption("lineWrapping"))return;(T=(g=f.current)==null?void 0:g.cm)==null||T.getWrapperElement().remove();const d=E(S,{value:"",mode:p,readOnly:!!n,lineNumbers:s,lineWrapping:l});return f.current={cm:d},m(d),d})()},[h,v,u,t,s,l,n]),R.useEffect(()=>{f.current&&f.current.cm.setSize(a.width,a.height)},[a]),R.useLayoutEffect(()=>{var p;if(!v)return;let E=!1;if(v.getValue()!==e&&(v.setValue(e),E=!0,i&&(v.execCommand("selectAll"),v.focus())),E||JSON.stringify(r)!==JSON.stringify(f.current.highlight)){for(const g of f.current.highlight||[])v.removeLineClass(g.line-1,"wrap");for(const g of r||[])v.addLineClass(g.line-1,"wrap",`source-line-${g.type}`);for(const g of f.current.widgets||[])v.removeLineWidget(g);const d=[];for(const g of r||[]){if(g.type!=="error")continue;const T=(p=f.current)==null?void 0:p.cm.getLine(g.line-1);if(T){const k=document.createElement("div");k.className="source-line-error-underline",k.innerHTML=" ".repeat(T.length||1),d.push(v.addLineWidget(g.line,k,{above:!0,coverGutter:!1}))}const x=document.createElement("div");x.innerHTML=Dh(g.message||""),x.className="source-line-error-widget",d.push(v.addLineWidget(g.line,x,{above:!0,coverGutter:!1}))}f.current.highlight=r,f.current.widgets=d}typeof o=="number"&&f.current.cm.lineCount()>=o&&v.scrollIntoView({line:Math.max(0,o-1),ch:0},50);let S;return c&&(S=()=>c(v.getValue()),v.on("change",S)),()=>{S&&v.off("change",S)}},[v,e,r,o,i,c]),y("div",{className:"cm-wrapper",ref:u})};const xl=({noShadow:e,children:t,noMinHeight:n})=>y("div",{className:"toolbar"+(e?" no-shadow":"")+(n?" no-min-height":""),children:t}),uu={queryAll(e,t){t.startsWith("/")&&(t="."+t);const n=[],r=e.ownerDocument||e;if(!r)return n;const o=r.evaluate(t,e,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let s=o.iterateNext();s;s=o.iterateNext())s.nodeType===Node.ELEMENT_NODE&&n.push(s);return n}};function Nc(e,t){for(;t;){if(e.contains(t))return!0;t=Fh(t)}return!1}function Re(e){if(e.parentElement)return e.parentElement;if(e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function Uh(e){let t=e;for(;t.parentNode;)t=t.parentNode;if(t.nodeType===11||t.nodeType===9)return t}function Fh(e){for(;e.parentElement;)e=e.parentElement;return Re(e)}function Sr(e,t,n){for(;e;){const r=e.closest(t);if(n&&r!==n&&(r!=null&&r.contains(n)))return;if(r)return r;e=Fh(e)}}function on(e,t){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,t):void 0}function zh(e,t){if(t=t??on(e),!t)return!0;if(Element.prototype.checkVisibility){if(!e.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!1}))return!1}else{const n=e.closest("details,summary");if(n!==e&&(n==null?void 0:n.nodeName)==="DETAILS"&&!n.open)return!1}return t.visibility==="visible"}function Ts(e){const t=on(e);if(!t)return!0;if(t.display==="contents"){for(let r=e.firstChild;r;r=r.nextSibling)if(r.nodeType===1&&Ts(r)||r.nodeType===3&&Hh(r))return!0;return!1}if(!zh(e,t))return!1;const n=e.getBoundingClientRect();return n.width>0&&n.height>0}function Hh(e){const t=e.ownerDocument.createRange();t.selectNode(e);const n=t.getBoundingClientRect();return n.width>0&&n.height>0}function fu(e){return e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}const du="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",pX=["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"];function Bh(e){return pX.some(t=>e.hasAttribute(t))}const Si={A:e=>e.hasAttribute("href")?"link":null,AREA:e=>e.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:e=>Sr(e,du)?null:"contentinfo",FORM:e=>fu(e)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:e=>Sr(e,du)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:e=>e.getAttribute("alt")===""&&!Bh(e)&&Number.isNaN(Number(String(e.getAttribute("tabindex"))))?"presentation":"img",INPUT:e=>{const t=e.type.toLowerCase();if(t==="search")return e.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(t)){const n=Vs(e,e.getAttribute("list"))[0];return n&&n.tagName==="DATALIST"?"combobox":"textbox"}return t==="hidden"?"":{button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"}[t]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SECTION:e=>fu(e)?"region":null,SELECT:e=>e.hasAttribute("multiple")||e.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:e=>{const t=Sr(e,"table"),n=t?ks(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:e=>{if(e.getAttribute("scope")==="col")return"columnheader";if(e.getAttribute("scope")==="row")return"rowheader";const t=Sr(e,"table"),n=t?ks(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"},mX={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function hu(e){var r;const t=((r=Si[e.tagName.toUpperCase()])==null?void 0:r.call(Si,e))||"";if(!t)return null;let n=e;for(;n;){const o=Re(n),s=mX[n.tagName];if(!s||!o||!s.includes(o.tagName))break;const i=ks(o);if((i==="none"||i==="presentation")&&!jh(o))return i;n=o}return t}const gX=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","command","complementary","composite","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","input","insertion","landmark","link","list","listbox","listitem","log","main","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","range","region","roletype","row","rowgroup","rowheader","scrollbar","search","searchbox","section","sectionhead","select","separator","slider","spinbutton","status","strong","structure","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem","widget","window"],vX=["command","composite","input","landmark","range","roletype","section","sectionhead","select","structure","widget","window"],yX=gX.filter(e=>!vX.includes(e));function ks(e){return(e.getAttribute("role")||"").split(" ").map(n=>n.trim()).find(n=>yX.includes(n))||null}function jh(e){return!Bh(e)}function Me(e){const t=ks(e);return!t||(t==="none"||t==="presentation")&&jh(e)?hu(e):t}function Vh(e){return e===null?void 0:e.toLowerCase()==="true"}function Cc(e){if(["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(e.tagName))return!0;const t=on(e),n=e.nodeName==="SLOT";if((t==null?void 0:t.display)==="contents"&&!n){for(let o=e.firstChild;o;o=o.nextSibling)if(o.nodeType===1&&!Cc(o)||o.nodeType===3&&Hh(o))return!1;return!0}return!(e.nodeName==="OPTION"&&!!e.closest("select"))&&!n&&!zh(e,t)?!0:Wh(e)}function Wh(e){let t=Ct==null?void 0:Ct.get(e);if(t===void 0){if(t=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(t=!0),!t){const n=on(e);t=!n||n.display==="none"||Vh(e.getAttribute("aria-hidden"))===!0}if(!t){const n=Re(e);n&&(t=Wh(n))}Ct==null||Ct.set(e,t)}return t}function Vs(e,t){if(!t)return[];const n=Uh(e);if(!n)return[];try{const r=t.split(" ").filter(s=>!!s),o=new Set;for(const s of r){const i=n.querySelector("#"+CSS.escape(s));i&&o.add(i)}return[...o]}catch{return[]}}function wX(e){return e.replace(/\r\n/g,` +`).replace(/\u00A0/g," ").replace(/\s\s+/g," ").trim()}function pu(e,t){const n=[...e.querySelectorAll(t)];for(const r of Vs(e,e.getAttribute("aria-owns")))r.matches(t)&&n.push(r),n.push(...r.querySelectorAll(t));return n}function mu(e){if(!e)return"";const t=e.content;if(t[0]==="'"&&t[t.length-1]==="'"||t[0]==='"'&&t[t.length-1]==='"'){const n=t.substring(1,t.length-1);return(e.display||"inline")!=="inline"?" "+n+" ":n}return""}function Gh(e){const t=e.getAttribute("aria-labelledby");return t===null?null:Vs(e,t)}function SX(e,t){const n=["button","cell","checkbox","columnheader","gridcell","heading","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"].includes(e),r=t&&["","caption","code","contentinfo","definition","deletion","emphasis","insertion","list","listitem","mark","none","paragraph","presentation","region","row","rowgroup","section","strong","subscript","superscript","table","term","time"].includes(e);return n||r}function Lc(e,t){const n=t?Rc:Ac;let r=n==null?void 0:n.get(e);return r===void 0&&(r="",["caption","code","definition","deletion","emphasis","generic","insertion","mark","paragraph","presentation","strong","subscript","suggestion","superscript","term","time"].includes(Me(e)||"")||(r=wX(Ye(e,{includeHidden:t,visitedElements:new Set,embeddedInLabelledBy:"none",embeddedInLabel:"none",embeddedInTextAlternativeElement:!1,embeddedInTargetElement:"self"}))),n==null||n.set(e,r)),r}function Ye(e,t){if(t.visitedElements.has(e))return"";const n={...t,embeddedInLabel:t.embeddedInLabel==="self"?"descendant":t.embeddedInLabel,embeddedInLabelledBy:t.embeddedInLabelledBy==="self"?"descendant":t.embeddedInLabelledBy,embeddedInTargetElement:t.embeddedInTargetElement==="self"?"descendant":t.embeddedInTargetElement};if(!t.includeHidden&&t.embeddedInLabelledBy!=="self"&&Cc(e))return t.visitedElements.add(e),"";const r=Gh(e);if(t.embeddedInLabelledBy==="none"){const i=(r||[]).map(l=>Ye(l,{...t,embeddedInLabelledBy:"self",embeddedInTargetElement:"none",embeddedInLabel:"none",embeddedInTextAlternativeElement:!1})).join(" ");if(i)return i}const o=Me(e)||"";if(t.embeddedInLabel!=="none"||t.embeddedInLabelledBy!=="none"){const i=[...e.labels||[]].includes(e),l=(r||[]).includes(e);if(!i&&!l){if(o==="textbox")return t.visitedElements.add(e),e.tagName==="INPUT"||e.tagName==="TEXTAREA"?e.value:e.textContent||"";if(["combobox","listbox"].includes(o)){t.visitedElements.add(e);let c;if(e.tagName==="SELECT")c=[...e.selectedOptions],!c.length&&e.options.length&&c.push(e.options[0]);else{const a=o==="combobox"?pu(e,"*").find(u=>Me(u)==="listbox"):e;c=a?pu(a,'[aria-selected="true"]').filter(u=>Me(u)==="option"):[]}return c.map(a=>Ye(a,n)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(o))return t.visitedElements.add(e),e.hasAttribute("aria-valuetext")?e.getAttribute("aria-valuetext")||"":e.hasAttribute("aria-valuenow")?e.getAttribute("aria-valuenow")||"":e.getAttribute("value")||"";if(["menu"].includes(o))return t.visitedElements.add(e),""}}const s=e.getAttribute("aria-label")||"";if(s.trim())return t.visitedElements.add(e),s;if(!["presentation","none"].includes(o)){if(e.tagName==="INPUT"&&["button","submit","reset"].includes(e.type)){t.visitedElements.add(e);const i=e.value||"";return i.trim()?i:e.type==="submit"?"Submit":e.type==="reset"?"Reset":e.getAttribute("title")||""}if(e.tagName==="INPUT"&&e.type==="image"){t.visitedElements.add(e);const i=e.labels||[];if(i.length&&t.embeddedInLabelledBy==="none")return[...i].map(a=>Ye(a,{...t,embeddedInLabel:"self",embeddedInTextAlternativeElement:!1,embeddedInLabelledBy:"none",embeddedInTargetElement:"none"})).filter(a=>!!a).join(" ");const l=e.getAttribute("alt")||"";if(l.trim())return l;const c=e.getAttribute("title")||"";return c.trim()?c:"Submit"}if(!r&&e.tagName==="BUTTON"){t.visitedElements.add(e);const i=e.labels||[];if(i.length)return[...i].map(l=>Ye(l,{...t,embeddedInLabel:"self",embeddedInTextAlternativeElement:!1,embeddedInLabelledBy:"none",embeddedInTargetElement:"none"})).filter(l=>!!l).join(" ")}if(!r&&(e.tagName==="TEXTAREA"||e.tagName==="SELECT"||e.tagName==="INPUT")){t.visitedElements.add(e);const i=e.labels||[];if(i.length)return[...i].map(u=>Ye(u,{...t,embeddedInLabel:"self",embeddedInTextAlternativeElement:!1,embeddedInLabelledBy:"none",embeddedInTargetElement:"none"})).filter(u=>!!u).join(" ");const l=e.tagName==="INPUT"&&["text","password","search","tel","email","url"].includes(e.type)||e.tagName==="TEXTAREA",c=e.getAttribute("placeholder")||"",a=e.getAttribute("title")||"";return!l||a?a:c}if(!r&&e.tagName==="FIELDSET"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="LEGEND")return Ye(l,{...n,embeddedInTextAlternativeElement:!0});return e.getAttribute("title")||""}if(!r&&e.tagName==="FIGURE"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="FIGCAPTION")return Ye(l,{...n,embeddedInTextAlternativeElement:!0});return e.getAttribute("title")||""}if(e.tagName==="IMG"){t.visitedElements.add(e);const i=e.getAttribute("alt")||"";return i.trim()?i:e.getAttribute("title")||""}if(e.tagName==="TABLE"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="CAPTION")return Ye(l,{...n,embeddedInTextAlternativeElement:!0});const i=e.getAttribute("summary")||"";if(i)return i}if(e.tagName==="AREA"){t.visitedElements.add(e);const i=e.getAttribute("alt")||"";return i.trim()?i:e.getAttribute("title")||""}if(e.tagName.toUpperCase()==="SVG"||e.ownerSVGElement){t.visitedElements.add(e);for(let i=e.firstElementChild;i;i=i.nextElementSibling)if(i.tagName.toUpperCase()==="TITLE"&&i.ownerSVGElement)return Ye(i,{...n,embeddedInLabelledBy:"self"})}if(e.ownerSVGElement&&e.tagName.toUpperCase()==="A"){const i=e.getAttribute("xlink:title")||"";if(i.trim())return t.visitedElements.add(e),i}}if(SX(o,t.embeddedInTargetElement==="descendant")||t.embeddedInLabelledBy!=="none"||t.embeddedInLabel!=="none"||t.embeddedInTextAlternativeElement){t.visitedElements.add(e);const i=[],l=(u,h)=>{var f;if(!(h&&u.assignedSlot))if(u.nodeType===1){const v=((f=on(u))==null?void 0:f.display)||"inline";let m=Ye(u,n);(v!=="inline"||u.nodeName==="BR")&&(m=" "+m+" "),i.push(m)}else u.nodeType===3&&i.push(u.textContent||"")};i.push(mu(on(e,"::before")));const c=e.nodeName==="SLOT"?e.assignedNodes():[];if(c.length)for(const u of c)l(u,!1);else{for(let u=e.firstChild;u;u=u.nextSibling)l(u,!0);if(e.shadowRoot)for(let u=e.shadowRoot.firstChild;u;u=u.nextSibling)l(u,!0);for(const u of Vs(e,e.getAttribute("aria-owns")))l(u,!0)}i.push(mu(on(e,"::after")));const a=i.join("");if(a.trim())return a}if(!["presentation","none"].includes(o)||e.tagName==="IFRAME"){t.visitedElements.add(e);const i=e.getAttribute("title")||"";if(i.trim())return i}return t.visitedElements.add(e),""}const Qh=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function EX(e){return e.tagName==="OPTION"?e.selected:Qh.includes(Me(e)||"")?Vh(e.getAttribute("aria-selected"))===!0:!1}const Kh=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function xX(e){const t=Xh(e,!0);return t==="error"?!1:t}function Xh(e,t){if(t&&e.tagName==="INPUT"&&e.indeterminate)return"mixed";if(e.tagName==="INPUT"&&["checkbox","radio"].includes(e.type))return e.checked;if(Kh.includes(Me(e)||"")){const n=e.getAttribute("aria-checked");return n==="true"?!0:t&&n==="mixed"?"mixed":!1}return"error"}const Jh=["button"];function TX(e){if(Jh.includes(Me(e)||"")){const t=e.getAttribute("aria-pressed");if(t==="true")return!0;if(t==="mixed")return"mixed"}return!1}const Yh=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function kX(e){if(e.tagName==="DETAILS")return e.open;if(Yh.includes(Me(e)||"")){const t=e.getAttribute("aria-expanded");return t===null?"none":t==="true"}return"none"}const Zh=["heading","listitem","row","treeitem"];function bX(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[e.tagName];if(t)return t;if(Zh.includes(Me(e)||"")){const n=e.getAttribute("aria-level"),r=n===null?Number.NaN:Number(n);if(Number.isInteger(r)&&r>=1)return r}return 0}const _X=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function ep(e){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(e.tagName)&&(e.hasAttribute("disabled")||tp(e))?!0:np(e)}function tp(e){return e?e.tagName==="FIELDSET"&&e.hasAttribute("disabled")?!0:tp(e.parentElement):!1}function np(e){if(!e)return!1;if(_X.includes(Me(e)||"")){const t=(e.getAttribute("aria-disabled")||"").toLowerCase();if(t==="true")return!0;if(t==="false")return!1}return np(Re(e))}let Ac,Rc,Ct,rp=0;function op(){++rp,Ac??(Ac=new Map),Rc??(Rc=new Map),Ct??(Ct=new Map)}function sp(){--rp||(Ac=void 0,Rc=void 0,Ct=void 0)}function ip(e,t){for(const n of t.jsonPath)e!=null&&(e=e[n]);return lp(e,t)}function lp(e,t){const n=typeof e=="string"&&!t.caseSensitive?e.toUpperCase():e,r=typeof t.value=="string"&&!t.caseSensitive?t.value.toUpperCase():t.value;return t.op===""?!!n:t.op==="="?r instanceof RegExp?typeof n=="string"&&!!n.match(r):n===r:typeof n!="string"||typeof r!="string"?!1:t.op==="*="?n.includes(r):t.op==="^="?n.startsWith(r):t.op==="$="?n.endsWith(r):t.op==="|="?n===r||n.startsWith(r+"-"):t.op==="~="?n.split(" ").includes(r):!1}function qc(e){const t=e.ownerDocument;return e.nodeName==="SCRIPT"||e.nodeName==="NOSCRIPT"||e.nodeName==="STYLE"||t.head&&t.head.contains(e)}function Oe(e,t){let n=e.get(t);if(n===void 0){if(n={full:"",immediate:[]},!qc(t)){let r="";if(t instanceof HTMLInputElement&&(t.type==="submit"||t.type==="button"))n={full:t.value,immediate:[t.value]};else{for(let o=t.firstChild;o;o=o.nextSibling)o.nodeType===Node.TEXT_NODE?(n.full+=o.nodeValue||"",r+=o.nodeValue||""):(r&&n.immediate.push(r),r="",o.nodeType===Node.ELEMENT_NODE&&(n.full+=Oe(e,o).full));r&&n.immediate.push(r),t.shadowRoot&&(n.full+=Oe(e,t.shadowRoot).full)}}e.set(t,n)}return n}function Ws(e,t,n){if(qc(t)||!n(Oe(e,t)))return"none";for(let r=t.firstChild;r;r=r.nextSibling)if(r.nodeType===Node.ELEMENT_NODE&&n(Oe(e,r)))return"selfAndChildren";return t.shadowRoot&&n(Oe(e,t.shadowRoot))?"selfAndChildren":"self"}function cp(e,t){const n=Gh(t);if(n)return n.map(s=>Oe(e,s));const r=t.getAttribute("aria-label");if(r!==null&&r.trim())return[{full:r,immediate:[r]}];const o=t.nodeName==="INPUT"&&t.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(t.nodeName)||o){const s=t.labels;if(s)return[...s].map(i=>Oe(e,i))}return[]}function gu(e){return e.displayName||e.name||"Anonymous"}function NX(e){if(e.type)switch(typeof e.type){case"function":return gu(e.type);case"string":return e.type;case"object":return e.type.displayName||(e.type.render?gu(e.type.render):"")}if(e._currentElement){const t=e._currentElement.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Anonymous"}return""}function CX(e){var t;return e.key??((t=e._currentElement)==null?void 0:t.key)}function LX(e){if(e.child){const n=[];for(let r=e.child;r;r=r.sibling)n.push(r);return n}if(!e._currentElement)return[];const t=n=>{var o;const r=(o=n._currentElement)==null?void 0:o.type;return typeof r=="function"||typeof r=="string"};if(e._renderedComponent){const n=e._renderedComponent;return t(n)?[n]:[]}return e._renderedChildren?[...Object.values(e._renderedChildren)].filter(t):[]}function AX(e){var r;const t=e.memoizedProps||((r=e._currentElement)==null?void 0:r.props);if(!t||typeof t=="string")return t;const n={...t};return delete n.children,n}function ap(e){var r;const t={key:CX(e),name:NX(e),children:LX(e).map(ap),rootElements:[],props:AX(e)},n=e.stateNode||e._hostNode||((r=e._renderedComponent)==null?void 0:r._hostNode);if(n instanceof Element)t.rootElements.push(n);else for(const o of t.children)t.rootElements.push(...o.rootElements);return t}function up(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)up(r,t,n);return n}function fp(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT);do{const o=r.currentNode,s=o,i=Object.keys(s).find(c=>c.startsWith("__reactContainer")&&s[c]!==null);if(i)t.push(s[i].stateNode.current);else{const c="_reactRootContainer";s.hasOwnProperty(c)&&s[c]!==null&&t.push(s[c]._internalRoot.current)}if(o instanceof Element&&o.hasAttribute("data-reactroot"))for(const c of Object.keys(o))(c.startsWith("__reactInternalInstance")||c.startsWith("__reactFiber"))&&t.push(o[c]);const l=o instanceof Element?o.shadowRoot:null;l&&fp(l,t)}while(r.nextNode());return t}const RX={queryAll(e,t){const{name:n,attributes:r}=rn(t,!1),i=fp(e.ownerDocument||e).map(c=>ap(c)).map(c=>up(c,a=>{const u=a.props??{};if(a.key!==void 0&&(u.key=a.key),n&&a.name!==n||a.rootElements.some(h=>!Nc(e,h)))return!1;for(const h of r)if(!ip(u,h))return!1;return!0})).flat(),l=new Set;for(const c of i)for(const a of c.rootElements)l.add(a);return[...l]}};function dp(e,t){const n=e.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let r=n.substring(n.lastIndexOf("/")+1);return t&&r.endsWith(t)&&(r=r.substring(0,r.length-t.length)),r}function qX(e,t){return t?t.toUpperCase():""}const $X=/(?:^|[-_/])(\w)/g,hp=e=>e&&e.replace($X,qX);function IX(e){function t(u){const h=u.name||u._componentTag||u.__playwright_guessedName;if(h)return h;const f=u.__file;if(f)return hp(dp(f,".vue"))}function n(u,h){return u.type.__playwright_guessedName=h,h}function r(u){var f,v,m,E;const h=t(u.type||{});if(h)return h;if(u.root===u)return"Root";for(const S in(v=(f=u.parent)==null?void 0:f.type)==null?void 0:v.components)if(((m=u.parent)==null?void 0:m.type.components[S])===u.type)return n(u,S);for(const S in(E=u.appContext)==null?void 0:E.components)if(u.appContext.components[S]===u.type)return n(u,S);return"Anonymous Component"}function o(u){return u._isBeingDestroyed||u.isUnmounted}function s(u){return u.subTree.type.toString()==="Symbol(Fragment)"}function i(u){const h=[];return u.component&&h.push(u.component),u.suspense&&h.push(...i(u.suspense.activeBranch)),Array.isArray(u.children)&&u.children.forEach(f=>{f.component?h.push(f.component):h.push(...i(f))}),h.filter(f=>{var v;return!o(f)&&!((v=f.type.devtools)!=null&&v.hide)})}function l(u){return s(u)?c(u.subTree):[u.subTree.el]}function c(u){if(!u.children)return[];const h=[];for(let f=0,v=u.children.length;f!!i.component).map(i=>i.component):[]}function o(s){return{name:n(s),children:r(s).map(o),rootElements:[s.$el],props:s._props}}return o(e)}function pp(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)pp(r,t,n);return n}function mp(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT),o=new Set;do{const s=r.currentNode;s.__vue__&&o.add(s.__vue__.$root),s.__vue_app__&&s._vnode&&s._vnode.component&&t.push({root:s._vnode.component,version:3});const i=s instanceof Element?s.shadowRoot:null;i&&mp(i,t)}while(r.nextNode());for(const s of o)t.push({version:2,root:s});return t}const PX={queryAll(e,t){const n=e.ownerDocument||e,{name:r,attributes:o}=rn(t,!1),l=mp(n).map(a=>a.version===3?IX(a.root):MX(a.root)).map(a=>pp(a,u=>{if(r&&u.name!==r||u.rootElements.some(h=>!Nc(e,h)))return!1;for(const h of o)if(!ip(u.props,h))return!1;return!0})).flat(),c=new Set;for(const a of l)for(const u of a.rootElements)c.add(u);return[...c]}},gp=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];gp.sort();function dr(e,t,n){if(!t.includes(n))throw new Error(`"${e}" attribute is only supported for roles: ${t.slice().sort().map(r=>`"${r}"`).join(", ")}`)}function mn(e,t){if(e.op!==""&&!t.includes(e.value))throw new Error(`"${e.name}" must be one of ${t.map(n=>JSON.stringify(n)).join(", ")}`)}function gn(e,t){if(!t.includes(e.op))throw new Error(`"${e.name}" does not support "${e.op}" matcher`)}function DX(e,t){const n={role:t};for(const r of e)switch(r.name){case"checked":{dr(r.name,Kh,t),mn(r,[!0,!1,"mixed"]),gn(r,["","="]),n.checked=r.op===""?!0:r.value;break}case"pressed":{dr(r.name,Jh,t),mn(r,[!0,!1,"mixed"]),gn(r,["","="]),n.pressed=r.op===""?!0:r.value;break}case"selected":{dr(r.name,Qh,t),mn(r,[!0,!1]),gn(r,["","="]),n.selected=r.op===""?!0:r.value;break}case"expanded":{dr(r.name,Yh,t),mn(r,[!0,!1]),gn(r,["","="]),n.expanded=r.op===""?!0:r.value;break}case"level":{if(dr(r.name,Zh,t),typeof r.value=="string"&&(r.value=+r.value),r.op!=="="||typeof r.value!="number"||Number.isNaN(r.value))throw new Error('"level" attribute must be compared to a number');n.level=r.value;break}case"disabled":{mn(r,[!0,!1]),gn(r,["","="]),n.disabled=r.op===""?!0:r.value;break}case"name":{if(r.op==="")throw new Error('"name" attribute must have a value');if(typeof r.value!="string"&&!(r.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');n.name=r.value,n.nameOp=r.op,n.exact=r.caseSensitive;break}case"include-hidden":{mn(r,[!0,!1]),gn(r,["","="]),n.includeHidden=r.op===""?!0:r.value;break}default:throw new Error(`Unknown attribute "${r.name}", must be one of ${gp.map(o=>`"${o}"`).join(", ")}.`)}return n}function OX(e,t,n){const r=[],o=i=>{if(Me(i)===t.role&&!(t.selected!==void 0&&EX(i)!==t.selected)&&!(t.checked!==void 0&&xX(i)!==t.checked)&&!(t.pressed!==void 0&&TX(i)!==t.pressed)&&!(t.expanded!==void 0&&kX(i)!==t.expanded)&&!(t.level!==void 0&&bX(i)!==t.level)&&!(t.disabled!==void 0&&ep(i)!==t.disabled)&&!(!t.includeHidden&&Cc(i))){if(t.name!==void 0){const l=Ae(Lc(i,!!t.includeHidden));if(typeof t.name=="string"&&(t.name=Ae(t.name)),n&&!t.exact&&t.nameOp==="="&&(t.nameOp="*="),!lp(l,{name:"",jsonPath:[],op:t.nameOp||"=",value:t.name,caseSensitive:!!t.exact}))return}r.push(i)}},s=i=>{const l=[];i.shadowRoot&&l.push(i.shadowRoot);for(const c of i.querySelectorAll("*"))o(c),c.shadowRoot&&l.push(c.shadowRoot);l.forEach(s)};return s(e),r}function vu(e){return{queryAll:(t,n)=>{const r=rn(n,!0),o=r.name.toLowerCase();if(!o)throw new Error("Role must not be empty");const s=DX(r.attributes,o);op();try{return OX(t,s,e)}finally{sp()}}}}function UX(e,t,n){const r=e.left-t.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function FX(e,t,n){const r=t.left-e.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function zX(e,t,n){const r=t.top-e.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function HX(e,t,n){const r=e.top-t.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function BX(e,t,n){const r=n===void 0?50:n;let o=0;return e.left-t.right>=0&&(o+=e.left-t.right),t.left-e.right>=0&&(o+=t.left-e.right),t.top-e.bottom>=0&&(o+=t.top-e.bottom),e.top-t.bottom>=0&&(o+=e.top-t.bottom),o>r?void 0:o}const jX=["left-of","right-of","above","below","near"];function vp(e,t,n,r){const o=t.getBoundingClientRect(),s={"left-of":FX,"right-of":UX,above:zX,below:HX,near:BX}[e];let i;for(const l of n){if(l===t)continue;const c=s(o,l.getBoundingClientRect(),r);c!==void 0&&(i===void 0||cr.every((a,u)=>c.rest[u]===a));if(i)return i.result;const l=o();return s.push({rest:r,result:l}),l}_checkSelector(t){if(!(typeof t=="object"&&t&&(Array.isArray(t)||"simples"in t&&t.simples.length)))throw new Error(`Malformed selector "${t}"`);return t}matches(t,n,r){const o=this._checkSelector(n);this.begin();try{return this._cached(this._cacheMatches,t,[o,r.scope,r.pierceShadow,r.originalScope],()=>Array.isArray(o)?this._matchesEngine(Er,t,o,r):(this._hasScopeClause(o)&&(r=this._expandContextForScopeMatching(r)),this._matchesSimple(t,o.simples[o.simples.length-1].selector,r)?this._matchesParents(t,o,o.simples.length-2,r):!1))}finally{this.end()}}query(t,n){const r=this._checkSelector(n);this.begin();try{return this._cached(this._cacheQuery,r,[t.scope,t.pierceShadow,t.originalScope],()=>{if(Array.isArray(r))return this._queryEngine(Er,t,r);this._hasScopeClause(r)&&(t=this._expandContextForScopeMatching(t));const o=this._scoreMap;this._scoreMap=new Map;let s=this._querySimple(t,r.simples[r.simples.length-1].selector);return s=s.filter(i=>this._matchesParents(i,r,r.simples.length-2,t)),this._scoreMap.size&&s.sort((i,l)=>{const c=this._scoreMap.get(i),a=this._scoreMap.get(l);return c===a?0:c===void 0?1:a===void 0?-1:c-a}),this._scoreMap=o,s})}finally{this.end()}}_markScore(t,n){this._scoreMap&&this._scoreMap.set(t,n)}_hasScopeClause(t){return t.simples.some(n=>n.selector.functions.some(r=>r.name==="scope"))}_expandContextForScopeMatching(t){if(t.scope.nodeType!==1)return t;const n=Re(t.scope);return n?{...t,scope:n,originalScope:t.originalScope||t.scope}:t}_matchesSimple(t,n,r){return this._cached(this._cacheMatchesSimple,t,[n,r.scope,r.pierceShadow,r.originalScope],()=>{if(t===r.scope||n.css&&!this._matchesCSS(t,n.css))return!1;for(const o of n.functions)if(!this._matchesEngine(this._getEngine(o.name),t,o.args,r))return!1;return!0})}_querySimple(t,n){return n.functions.length?this._cached(this._cacheQuerySimple,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=n.css;const o=n.functions;r==="*"&&o.length&&(r=void 0);let s,i=-1;r!==void 0?s=this._queryCSS(t,r):(i=o.findIndex(l=>this._getEngine(l.name).query!==void 0),i===-1&&(i=0),s=this._queryEngine(this._getEngine(o[i].name),t,o[i].args));for(let l=0;lthis._matchesEngine(c,a,o[l].args,t)))}for(let l=0;lthis._matchesEngine(c,a,o[l].args,t)))}return s}):this._queryCSS(t,n.css||"*")}_matchesParents(t,n,r,o){return r<0?!0:this._cached(this._cacheMatchesParents,t,[n,r,o.scope,o.pierceShadow,o.originalScope],()=>{const{selector:s,combinator:i}=n.simples[r];if(i===">"){const l=_o(t,o);return!l||!this._matchesSimple(l,s,o)?!1:this._matchesParents(l,n,r-1,o)}if(i==="+"){const l=Ei(t,o);return!l||!this._matchesSimple(l,s,o)?!1:this._matchesParents(l,n,r-1,o)}if(i===""){let l=_o(t,o);for(;l;){if(this._matchesSimple(l,s,o)){if(this._matchesParents(l,n,r-1,o))return!0;if(n.simples[r-1].combinator==="")break}l=_o(l,o)}return!1}if(i==="~"){let l=Ei(t,o);for(;l;){if(this._matchesSimple(l,s,o)){if(this._matchesParents(l,n,r-1,o))return!0;if(n.simples[r-1].combinator==="~")break}l=Ei(l,o)}return!1}if(i===">="){let l=t;for(;l;){if(this._matchesSimple(l,s,o)){if(this._matchesParents(l,n,r-1,o))return!0;if(n.simples[r-1].combinator==="")break}l=_o(l,o)}return!1}throw new Error(`Unsupported combinator "${i}"`)})}_matchesEngine(t,n,r,o){if(t.matches)return this._callMatches(t,n,r,o);if(t.query)return this._callQuery(t,r,o).includes(n);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(t,n,r){if(t.query)return this._callQuery(t,r,n);if(t.matches)return this._queryCSS(n,"*").filter(o=>this._callMatches(t,o,r,n));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(t,n,r,o){return this._cached(this._cacheCallMatches,n,[t,o.scope,o.pierceShadow,o.originalScope,...r],()=>t.matches(n,r,o,this))}_callQuery(t,n,r){return this._cached(this._cacheCallQuery,t,[r.scope,r.pierceShadow,r.originalScope,...n],()=>t.query(r,n,this))}_matchesCSS(t,n){return t.matches(n)}_queryCSS(t,n){return this._cached(this._cacheQueryCSS,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=[];function o(s){if(r=r.concat([...s.querySelectorAll(n)]),!!t.pierceShadow){s.shadowRoot&&o(s.shadowRoot);for(const i of s.querySelectorAll("*"))i.shadowRoot&&o(i.shadowRoot)}}return o(t.scope),r})}_getEngine(t){const n=this._engines.get(t);if(!n)throw new Error(`Unknown selector engine "${t}"`);return n}}const Er={matches(e,t,n,r){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');return t.some(o=>r.matches(e,o,n))},query(e,t,n){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');let r=[];for(const o of t)r=r.concat(n.query(e,o));return t.length===1?r:yp(r)}},WX={matches(e,t,n,r){if(t.length===0)throw new Error('"has" engine expects non-empty selector list');return r.query({...n,scope:e},t).length>0}},GX={matches(e,t,n,r){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const o=n.originalScope||n.scope;return o.nodeType===9?e===o.documentElement:e===o},query(e,t,n){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const r=e.originalScope||e.scope;if(r.nodeType===9){const o=r.documentElement;return o?[o]:[]}return r.nodeType===1?[r]:[]}},QX={matches(e,t,n,r){if(t.length===0)throw new Error('"not" engine expects non-empty selector list');return!r.matches(e,t,n)}},KX={query(e,t,n){return n.query({...e,pierceShadow:!1},t)},matches(e,t,n,r){return r.matches(e,t,{...n,pierceShadow:!1})}},XX={matches(e,t,n,r){if(t.length)throw new Error('"visible" engine expects no arguments');return Ts(e)}},JX={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text" engine expects a single string');const o=Ae(t[0]).toLowerCase(),s=i=>Ae(i.full).toLowerCase().includes(o);return Ws(r._cacheText,e,s)==="self"}},YX={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text-is" engine expects a single string');const o=Ae(t[0]),s=i=>!o&&!i.immediate.length?!0:i.immediate.some(l=>Ae(l)===o);return Ws(r._cacheText,e,s)!=="none"}},ZX={matches(e,t,n,r){if(t.length===0||typeof t[0]!="string"||t.length>2||t.length===2&&typeof t[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const o=new RegExp(t[0],t.length===2?t[1]:void 0),s=i=>o.test(i.full);return Ws(r._cacheText,e,s)==="self"}},eJ={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"has-text" engine expects a single string');if(qc(e))return!1;const o=Ae(t[0]).toLowerCase();return(i=>Ae(i.full).toLowerCase().includes(o))(Oe(r._cacheText,e))}};function hr(e){return{matches(t,n,r,o){const s=n.length&&typeof n[n.length-1]=="number"?n[n.length-1]:void 0,i=s===void 0?n:n.slice(0,n.length-1);if(n.length<1+(s===void 0?0:1))throw new Error(`"${e}" engine expects a selector list and optional maximum distance in pixels`);const l=o.query(r,i),c=vp(e,t,l,s);return c===void 0?!1:(o._markScore(t,c),!0)}}}const tJ={query(e,t,n){let r=t[t.length-1];if(t.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof r!="number"||r<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const o=Er.query(e,t.slice(0,t.length-1),n);return r--,r1){const c=new Set(l.children);l.children=[];let a=i.firstElementChild;for(;a&&l.children.lengtht[0].selector[0]!=="/")}function gJ(e,t,n){if(n.root&&!Nc(n.root,t))throw new Error("Target element must belong to the root's subtree");if(t===n.root)return[{engine:"css",selector:":scope",score:1}];if(t.ownerDocument.documentElement===t)return[{engine:"css",selector:"html",score:1}];const r=(s,i)=>{const l=s===t;let c=i?yJ(e,s,s===t):[];s!==t&&(c=wu(c));const a=vJ(e,s,n).filter(f=>!n.omitInternalEngines||!f.engine.startsWith("internal:")).map(f=>[f]);let u=Su(e,n.root??t.ownerDocument,s,[...c,...a],l);c=wu(c);const h=f=>{const v=i&&!f.length,m=[...f,...a].filter(S=>u?Yt(S)=Yt(u))continue;if(E=Su(e,S,s,m,l),!E)return;const d=[...p,...E];(!u||Yt(d){const l=i?wp:Sp;let c=l.get(s);return c===void 0&&(c=r(s,i),l.set(s,c)),c};return o(t,!0)||wJ(e,t,n)}function vJ(e,t,n){const r=[];{for(const l of["data-testid","data-test-id","data-test"])l!==n.testIdAttributeName&&t.getAttribute(l)&&r.push({engine:"css",selector:`[${l}=${pr(t.getAttribute(l))}]`,score:nJ});const i=t.getAttribute("id");i&&!SJ(i)&&r.push({engine:"css",selector:Lp(i),score:hJ}),r.push({engine:"css",selector:ct(t.nodeName.toLowerCase()),score:Np})}if(t.nodeName==="IFRAME"){for(const i of["name","title"])t.getAttribute(i)&&r.push({engine:"css",selector:`${ct(t.nodeName.toLowerCase())}[${i}=${pr(t.getAttribute(i))}]`,score:rJ});return t.getAttribute(n.testIdAttributeName)&&r.push({engine:"css",selector:`[${n.testIdAttributeName}=${pr(t.getAttribute(n.testIdAttributeName))}]`,score:yu}),bl([r]),r}if(t.getAttribute(n.testIdAttributeName)&&r.push({engine:"internal:testid",selector:`[${n.testIdAttributeName}=${_e(t.getAttribute(n.testIdAttributeName),!0)}]`,score:yu}),t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){const i=t;i.placeholder&&(r.push({engine:"internal:attr",selector:`[placeholder=${_e(i.placeholder,!1)}]`,score:xp}),r.push({engine:"internal:attr",selector:`[placeholder=${_e(i.placeholder,!0)}]`,score:iJ}))}const o=cp(e._evaluator._cacheText,t);for(const i of o){const l=i.full.trim();r.push({engine:"internal:label",selector:ft(l,!1),score:Tp}),r.push({engine:"internal:label",selector:ft(l,!0),score:lJ})}const s=Me(t);return s&&!["none","presentation"].includes(s)&&r.push({engine:"internal:role",selector:s,score:pJ}),t.getAttribute("alt")&&["APPLET","AREA","IMG","INPUT"].includes(t.nodeName)&&(r.push({engine:"internal:attr",selector:`[alt=${_e(t.getAttribute("alt"),!1)}]`,score:bp}),r.push({engine:"internal:attr",selector:`[alt=${_e(t.getAttribute("alt"),!0)}]`,score:aJ})),t.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(t.nodeName)&&r.push({engine:"css",selector:`${ct(t.nodeName.toLowerCase())}[name=${pr(t.getAttribute("name"))}]`,score:xi}),t.getAttribute("title")&&(r.push({engine:"internal:attr",selector:`[title=${_e(t.getAttribute("title"),!1)}]`,score:_p}),r.push({engine:"internal:attr",selector:`[title=${_e(t.getAttribute("title"),!0)}]`,score:fJ})),["INPUT","TEXTAREA"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&t.getAttribute("type")&&r.push({engine:"css",selector:`${ct(t.nodeName.toLowerCase())}[type=${pr(t.getAttribute("type"))}]`,score:xi}),["INPUT","TEXTAREA","SELECT"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&r.push({engine:"css",selector:ct(t.nodeName.toLowerCase()),score:xi+1}),bl([r]),r}function yJ(e,t,n){if(t.nodeName==="SELECT")return[];const r=[],o=Ae(Oe(e._evaluator._cacheText,t).full),s=o.substring(0,80);if(s){const l=ft(s,!1);n&&(r.push([{engine:"internal:text",selector:l,score:Tl}]),r.push([{engine:"internal:text",selector:ft(s,!0),score:uJ}]));const c={engine:"css",selector:t.nodeName.toLowerCase(),score:Np};r.push([c,{engine:"internal:has-text",selector:l,score:Tl}]),o.length<=80&&r.push([c,{engine:"internal:has-text",selector:"/^"+EJ(o)+"$/",score:sJ}])}const i=Me(t);if(i&&!["none","presentation"].includes(i)){const l=Lc(t,!1);l&&(r.push([{engine:"internal:role",selector:`${i}[name=${_e(l,!1)}]`,score:kp}]),r.push([{engine:"internal:role",selector:`${i}[name=${_e(l,!0)}]`,score:cJ}]))}return bl(r),r}function Lp(e){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(e)?"#"+e:`[id="${ct(e)}"]`}function wJ(e,t,n){const r=n.root??t.ownerDocument,o=[];function s(l){const c=o.slice();l&&c.unshift(l);const a=c.join(" > "),u=e.parseSelector(a);return e.querySelector(u,r,!1)===t?a:void 0}function i(l){const c={engine:"css",selector:l,score:mJ},a=e.parseSelector(l),u=e.querySelectorAll(a,r);if(u.length===1)return[c];const h={engine:"nth",selector:String(u.indexOf(t)),score:Cp};return[c,h]}for(let l=t;l&&l!==r;l=Re(l)){const c=l.nodeName.toLowerCase();let a="";if(l.id){const f=Lp(l.id),v=s(f);if(v)return i(v);a=f}const u=l.parentNode,h=[...l.classList];for(let f=0;fS.nodeName.toLowerCase()===c).indexOf(l)===0?ct(c):`${ct(c)}:nth-child(${1+f.indexOf(l)})`,E=s(m);if(E)return i(E);a||(a=m)}else a||(a=c);o.unshift(a)}return i(s())}function pr(e){return`"${ct(e).replace(/\\ /g," ")}"`}function bl(e){for(const t of e)for(const n of t)n.score>oJ&&n.score>"),n=r,r==="css"?t.push(o):t.push(`${r}=${o}`);return t.join(" ")}function Yt(e){let t=0;for(let n=0;n({tokens:l,score:Yt(l)}));s.sort((l,c)=>l.score-c.score);let i=null;for(const{tokens:l}of s){const c=e.parseSelector(Ap(l)),a=e.querySelectorAll(c,t);if(a[0]===n&&a.length===1)return l;const u=a.indexOf(n);if(!o||i||u===-1||a.length>5)continue;const h={engine:"nth",selector:String(u),score:Cp};i=[...l,h]}return i}function SJ(e){let t,n=0;for(let r=0;r="a"&&o<="z"?s="lower":o>="A"&&o<="Z"?s="upper":o>="0"&&o<="9"?s="digit":s="other",s==="lower"&&t==="upper"){t=s;continue}t&&t!==s&&++n,t=s}}return n>=e.length/4}function EJ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}class _l{constructor(t){this._highlightEntries=[],this._language="javascript",this._injectedScript=t;const n=t.document;this._isUnderTest=t.isUnderTest,this._glassPaneElement=n.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483647",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent",this._actionPointElement=n.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),this._glassPaneShadow.appendChild(this._actionPointElement);const r=n.createElement("style");r.textContent=` + x-pw-tooltip { + align-items: center; + backdrop-filter: blur(5px); + background-color: rgba(0, 0, 0, 0.7); + border-radius: 2px; + box-shadow: rgba(0, 0, 0, 0.1) 0px 3.6px 3.7px, + rgba(0, 0, 0, 0.15) 0px 12.1px 12.3px, + rgba(0, 0, 0, 0.1) 0px -2px 4px, + rgba(0, 0, 0, 0.15) 0px -12.1px 24px, + rgba(0, 0, 0, 0.25) 0px 54px 55px; + color: rgb(204, 204, 204); + display: none; + font-family: 'Dank Mono', 'Operator Mono', Inconsolata, 'Fira Mono', + 'SF Mono', Monaco, 'Droid Sans Mono', 'Source Code Pro', monospace; + font-size: 12.8px; + font-weight: normal; + left: 0; + line-height: 1.5; + max-width: 600px; + padding: 3.2px 5.12px 3.2px; + position: absolute; + top: 0; + } + x-pw-action-point { + position: absolute; + width: 20px; + height: 20px; + background: red; + border-radius: 10px; + pointer-events: none; + margin: -10px 0 0 -10px; + z-index: 2; + } + *[hidden] { + display: none !important; + } + `,this._glassPaneShadow.appendChild(r)}install(){this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(t){this._language=t}runHighlightOnRaf(t){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this.updateHighlight(this._injectedScript.querySelectorAll(t,this._injectedScript.document.documentElement),Kn(t),!1),this._rafRequest=requestAnimationFrame(()=>this.runHighlightOnRaf(t))}uninstall(){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this._glassPaneElement.remove()}isInstalled(){return this._glassPaneElement.parentElement===this._injectedScript.document.documentElement&&!this._glassPaneElement.nextElementSibling}showActionPoint(t,n){this._actionPointElement.style.top=n+"px",this._actionPointElement.style.left=t+"px",this._actionPointElement.hidden=!1,this._isUnderTest&&console.error("Action point for test: "+JSON.stringify({x:t,y:n}))}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var t,n;for(const r of this._highlightEntries)(t=r.highlightElement)==null||t.remove(),(n=r.tooltipElement)==null||n.remove();this._highlightEntries=[]}updateHighlight(t,n,r){let o;r?o="#dc6f6f7f":o=t.length>1?"#f6b26b7f":"#6fa8dc7f",this._innerUpdateHighlight(t,{color:o,tooltipText:n?Bt(this._language,n):""})}maskElements(t,n){this._innerUpdateHighlight(t,{color:n||"#F0F"})}_innerUpdateHighlight(t,n){if(!this._highlightIsUpToDate(t,n.tooltipText)){this.clearHighlight();for(let r=0;r1?` [${r+1} of ${t.length}]`:"";s.textContent=n.tooltipText+i,s.style.top="0",s.style.left="0",s.style.display="flex"}this._highlightEntries.push({targetElement:t[r],tooltipElement:s,highlightElement:o,tooltipText:n.tooltipText})}for(const r of this._highlightEntries){if(r.box=r.targetElement.getBoundingClientRect(),!r.tooltipElement)continue;const o=r.tooltipElement.offsetWidth,s=r.tooltipElement.offsetHeight,i=this._glassPaneElement.offsetWidth,l=this._glassPaneElement.offsetHeight;let c=r.box.left;c+o>i-5&&(c=i-o-5);let a=r.box.bottom+5;a+s>l-5&&(r.box.top>s+5?a=r.box.top-s-5:a=l-5-s),r.tooltipTop=a,r.tooltipLeft=c}for(const r of this._highlightEntries){r.tooltipElement&&(r.tooltipElement.style.top=r.tooltipTop+"px",r.tooltipElement.style.left=r.tooltipLeft+"px");const o=r.box;r.highlightElement.style.backgroundColor=n.color,r.highlightElement.style.left=o.x+"px",r.highlightElement.style.top=o.y+"px",r.highlightElement.style.width=o.width+"px",r.highlightElement.style.height=o.height+"px",r.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:o.x,y:o.y,width:o.width,height:o.height}))}}}_highlightIsUpToDate(t,n){if(t.length!==this._highlightEntries.length)return!1;for(let r=0;r[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",vu(!0));for(const{name:c,engine:a}of l)this._engines.set(c,a);this._stableRafCount=s,this._browserName=i,this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),n&&(this.window.__injectedScript=this)}eval(t){return this.window.eval(t)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(t){const n=Xr(t);return zv(n,r=>{if(!this._engines.has(r.name))throw this.createStacklessError(`Unknown engine "${r.name}" while parsing selector ${t}`)}),n}generateSelector(t,n){return kl(this,t,{...n,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(t,n,r){const o=this.querySelectorAll(t,n);if(r&&o.length>1)throw this.strictModeViolationError(t,o);return o[0]}_queryNth(t,n){const r=[...t];let o=+n.body;return o===-1&&(o=r.length-1),new Set(r.slice(o,o+1))}_queryLayoutSelector(t,n,r){const o=n.name,s=n.body,i=[],l=this.querySelectorAll(s.parsed,r);for(const c of t){const a=vp(o,c,l,s.distance);a!==void 0&&i.push({element:c,score:a})}return i.sort((c,a)=>c.score-a.score),new Set(i.map(c=>c.element))}querySelectorAll(t,n){if(t.capture!==void 0){if(t.parts.some(o=>o.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const r={parts:t.parts.slice(0,t.capture+1)};if(t.capturer.has(i)))}else if(o.name==="internal:or"){const s=this.querySelectorAll(o.body.parsed,n);r=new Set(yp(new Set([...r,...s])))}else if(jX.includes(o.name))r=this._queryLayoutSelector(r,o,n);else{const s=new Set;for(const i of r){const l=this._queryEngineAll(o,i);for(const c of l)s.add(c)}r=s}return[...r]}finally{this._evaluator.end()}}_queryEngineAll(t,n){const r=this._engines.get(t.name).queryAll(n,t.body);for(const o of r)if(!("nodeName"in o))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(o)}`);return r}_createAttributeEngine(t,n){const r=o=>[{simples:[{selector:{css:`[${t}=${JSON.stringify(o)}]`,functions:[]},combinator:""}]}];return{queryAll:(o,s)=>this._evaluator.query({scope:o,pierceShadow:n},r(s))}}_createCSSEngine(){return{queryAll:(t,n)=>this._evaluator.query({scope:t,pierceShadow:!0},n)}}_createTextEngine(t,n){return{queryAll:(o,s)=>{const{matcher:i,kind:l}=Co(s,n),c=[];let a=null;const u=f=>{if(l==="lax"&&a&&a.contains(f))return!1;const v=Ws(this._evaluator._cacheText,f,i);v==="none"&&(a=f),(v==="self"||v==="selfAndChildren"&&l==="strict"&&!n)&&c.push(f)};o.nodeType===Node.ELEMENT_NODE&&u(o);const h=this._evaluator._queryCSS({scope:o,pierceShadow:t},"*");for(const f of h)u(f);return c}}}_createInternalHasTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,o=Oe(this._evaluator._cacheText,r),{matcher:s}=Co(n,!0);return s(o)?[r]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,o=Oe(this._evaluator._cacheText,r),{matcher:s}=Co(n,!0);return s(o)?[]:[r]}}}_createInternalLabelEngine(){return{queryAll:(t,n)=>{const{matcher:r}=Co(n,!0);return this._evaluator._queryCSS({scope:t,pierceShadow:!0},"*").filter(s=>cp(this._evaluator._cacheText,s).some(i=>r(i)))}}}_createNamedAttributeEngine(){return{queryAll:(n,r)=>{const o=rn(r,!0);if(o.name||o.attributes.length!==1)throw new Error("Malformed attribute selector: "+r);const{name:s,value:i,caseSensitive:l}=o.attributes[0],c=l?null:i.toLowerCase();let a;return i instanceof RegExp?a=h=>!!h.match(i):l?a=h=>h===i:a=h=>h.toLowerCase().includes(c),this._evaluator._queryCSS({scope:n,pierceShadow:!0},`[${s}]`).filter(h=>a(h.getAttribute(s)))}}}_createControlEngine(){return{queryAll(t,n){if(n==="enter-frame")return[];if(n==="return-empty")return[];if(n==="component")return t.nodeType!==1?[]:[t.childElementCount===1?t.firstElementChild:t];throw new Error(`Internal error, unknown internal:control selector ${n}`)}}}_createHasEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[n]:[]}}_createHasNotEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[]:[n]}}_createVisibleEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:Ts(n)===!!r?[n]:[]}}extend(t,n){const r=this.window.eval(` + (() => { + const module = {}; + ${t} + return module.exports.default(); + })()`);return new r(this,n)}isVisible(t){return Ts(t)}async viewportRatio(t){return await new Promise(n=>{const r=new IntersectionObserver(o=>{n(o[0].intersectionRatio),r.disconnect()});r.observe(t),requestAnimationFrame(()=>{})})}pollRaf(t){return this.poll(t,n=>requestAnimationFrame(n))}poll(t,n){return this._runAbortableTask(r=>{let o,s;const i=new Promise((c,a)=>{o=c,s=a}),l=()=>{if(!r.aborted)try{const c=t(r);c!==r.continuePolling?o(c):n(l)}catch(c){r.log(" "+c.message),s(c)}};return l(),i})}_runAbortableTask(t){let n=[],r,o=!1;const s=()=>{r&&(r(n),n=[],r=void 0)},i=()=>new Promise(u=>{r=u,(n.length||o)&&s()});let l="";const c={injectedScript:this,aborted:!1,continuePolling:Symbol("continuePolling"),log:u=>{l=u,n.push({message:u}),s()},logRepeating:u=>{u!==l&&c.log(u)}};return{takeNextLogs:i,run:()=>{const u=t(c);return u.finally(()=>{o=!0,s()}),u},cancel:()=>{c.aborted=!0},takeLastLogs:()=>n}}getElementBorderWidth(t){if(t.nodeType!==Node.ELEMENT_NODE||!t.ownerDocument||!t.ownerDocument.defaultView)return{left:0,top:0};const n=t.ownerDocument.defaultView.getComputedStyle(t);return{left:parseInt(n.borderLeftWidth||"",10),top:parseInt(n.borderTopWidth||"",10)}}describeIFrameStyle(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return"error:notconnected";const n=t.ownerDocument.defaultView;for(let o=t;o;o=Re(o))if(n.getComputedStyle(o).transform!=="none")return"transformed";const r=n.getComputedStyle(t);return{left:parseInt(r.borderLeftWidth||"",10)+parseInt(r.paddingLeft||"",10),top:parseInt(r.borderTopWidth||"",10)+parseInt(r.paddingTop||"",10)}}retarget(t,n){let r=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement;return r?(n==="none"||(r.matches("input, textarea, select")||(n==="button-link"?r=r.closest("button, [role=button], a, [role=link]")||r:r=r.closest("button, [role=button], [role=checkbox], [role=radio]")||r),n==="follow-label"&&(!r.matches("input, textarea, button, select, [role=button], [role=checkbox], [role=radio]")&&!r.isContentEditable&&(r=r.closest("label")||r),r.nodeName==="LABEL"&&(r=r.control||r))),r):null}waitForElementStatesAndPerformAction(t,n,r,o){let s,i=0,l=0,c=0;return this.pollRaf(a=>{if(r)return a.log(" forcing action"),o(t,a);for(const u of n){if(u!=="stable"){const d=this.elementState(t,u);if(typeof d!="boolean")return d;if(!d)return a.logRepeating(` element is not ${u} - waiting...`),a.continuePolling;continue}const h=this.retarget(t,"no-follow-label");if(!h)return"error:notconnected";if(++i===1)return a.continuePolling;const f=performance.now();if(this._stableRafCount>1&&f-c<15)return a.continuePolling;c=f;const v=h.getBoundingClientRect(),m={x:v.top,y:v.left,width:v.width,height:v.height};s&&m.x===s.x&&m.y===s.y&&m.width===s.width&&m.height===s.height?++l:l=0;const S=l>=this._stableRafCount,p=S||!s;if(s=m,p||a.logRepeating(" element is not stable - waiting..."),!S)return a.continuePolling}return o(t,a)})}elementState(t,n){const r=this.retarget(t,["stable","visible","hidden"].includes(n)?"none":"follow-label");if(!r||!r.isConnected)return n==="hidden"?!0:"error:notconnected";if(n==="visible")return this.isVisible(r);if(n==="hidden")return!this.isVisible(r);const o=ep(r);if(n==="disabled")return o;if(n==="enabled")return!o;const s=!(["INPUT","TEXTAREA","SELECT"].includes(r.nodeName)&&r.hasAttribute("readonly"));if(n==="editable")return!o&&s;if(n==="checked"||n==="unchecked"){const i=n==="checked",l=Xh(r,!1);if(l==="error")throw this.createStacklessError("Not a checkbox or radio button");return i===l}throw this.createStacklessError(`Unexpected element state "${n}"`)}selectOptions(t,n,r){const o=this.retarget(n,"follow-label");if(!o)return"error:notconnected";if(o.nodeName.toLowerCase()!=="select")throw this.createStacklessError("Element is not a ,