diff --git a/.gitattributes b/.gitattributes index e5f95a846e74..7b2852ad2d09 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,3 @@ * text=auto eol=lf -test/reporters/fixtures/indicator-position.test.js eol=crlf +test/cli/fixtures/reporters/indicator-position.test.js eol=crlf diff --git a/docs/api/advanced/reporters.md b/docs/api/advanced/reporters.md index 9060c9b8dfc6..765ac6a69ba5 100644 --- a/docs/api/advanced/reporters.md +++ b/docs/api/advanced/reporters.md @@ -36,7 +36,7 @@ Note that since test modules can run in parallel, Vitest will report them in par This guide lists all supported reporter methods. However, don't forget that instead of creating your own reporter, you can [extend existing one](/guide/advanced/reporters) instead: ```ts [custom-reporter.js] -import { BaseReporter } from 'vitest/reporters' +import { BaseReporter } from 'vitest/node' export default class CustomReporter extends BaseReporter { onTestRunEnd(testModules, errors) { diff --git a/docs/api/advanced/runner.md b/docs/api/advanced/runner.md index 4b7d3fd493c7..acbf384b7bb1 100644 --- a/docs/api/advanced/runner.md +++ b/docs/api/advanced/runner.md @@ -106,14 +106,12 @@ export interface VitestRunner { When initiating this class, Vitest passes down Vitest config, - you should expose it as a `config` property: ```ts [runner.ts] -import type { RunnerTestFile } from 'vitest' -import type { VitestRunner, VitestRunnerConfig } from 'vitest/suite' -import { VitestTestRunner } from 'vitest/runners' +import type { RunnerTestFile, SerializedConfig, TestRunner, VitestTestRunner } from 'vitest' -class CustomRunner extends VitestTestRunner implements VitestRunner { - public config: VitestRunnerConfig +class CustomRunner extends TestRunner implements VitestTestRunner { + public config: SerializedConfig - constructor(config: VitestRunnerConfig) { + constructor(config: SerializedConfig) { this.config = config } @@ -281,17 +279,15 @@ Vitest exposes `createTaskCollector` utility to create your own `test` method. I A task is an object that is part of a suite. It is automatically added to the current suite with a `suite.task` method: ```js [custom.js] -import { createTaskCollector, getCurrentSuite } from 'vitest/suite' - -export { afterAll, beforeAll, describe } from 'vitest' +export { afterAll, beforeAll, describe, TestRunner } from 'vitest' // this function will be called during collection phase: // don't call function handler here, add it to suite tasks // with "getCurrentSuite().task()" method // note: createTaskCollector provides support for "todo"/"each"/... -export const myCustomTask = createTaskCollector( +export const myCustomTask = TestRunner.createTaskCollector( function (name, fn, timeout) { - getCurrentSuite().task(name, { + TestRunner.getCurrentSuite().task(name, { ...this, // so "todo"/"skip"/... is tracked correctly meta: { customPropertyToDifferentiateTask: true diff --git a/docs/api/advanced/test-suite.md b/docs/api/advanced/test-suite.md index db2f98e71b72..88260d311cbd 100644 --- a/docs/api/advanced/test-suite.md +++ b/docs/api/advanced/test-suite.md @@ -200,12 +200,11 @@ function meta(): TaskMeta Custom [metadata](/api/advanced/metadata) that was attached to the suite during its execution or collection. The meta can be attached by assigning a property to the `suite.meta` object during a test run: ```ts {7,12} -import { test } from 'vitest' -import { getCurrentSuite } from 'vitest/suite' +import { describe, test, TestRunner } from 'vitest' describe('the validation works correctly', () => { // assign "decorated" during collection - const { suite } = getCurrentSuite() + const { suite } = TestRunner.getCurrentSuite() suite!.meta.decorated = true test('some test', ({ task }) => { diff --git a/docs/guide/advanced/reporters.md b/docs/guide/advanced/reporters.md index 8fd9c4a1bb4e..704d6dc5a328 100644 --- a/docs/guide/advanced/reporters.md +++ b/docs/guide/advanced/reporters.md @@ -11,7 +11,7 @@ You can import reporters from `vitest/reporters` and extend them to create your In general, you don't need to create your reporter from scratch. `vitest` comes with several default reporting programs that you can extend. ```ts -import { DefaultReporter } from 'vitest/reporters' +import { DefaultReporter } from 'vitest/node' export default class MyDefaultReporter extends DefaultReporter { // do something @@ -23,7 +23,7 @@ Of course, you can create your reporter from scratch. Just extend the `BaseRepor And here is an example of a custom reporter: ```ts [custom-reporter.js] -import { BaseReporter } from 'vitest/reporters' +import { BaseReporter } from 'vitest/node' export default class CustomReporter extends BaseReporter { onTestModuleCollected() { diff --git a/docs/guide/browser/index.md b/docs/guide/browser/index.md index 1918b53c2258..deb2efc9f7a5 100644 --- a/docs/guide/browser/index.md +++ b/docs/guide/browser/index.md @@ -396,6 +396,7 @@ However, Vitest also provides packages to render components for several popular - [`vitest-browser-vue`](https://github.com/vitest-dev/vitest-browser-vue) to render [vue](https://vuejs.org) components - [`vitest-browser-svelte`](https://github.com/vitest-dev/vitest-browser-svelte) to render [svelte](https://svelte.dev) components - [`vitest-browser-react`](https://github.com/vitest-dev/vitest-browser-react) to render [react](https://react.dev) components +- [`vitest-browser-angular`](https://github.com/vitest-community/vitest-browser-angular) to render [Angular](https://angular.dev) components Community packages are available for other frameworks: diff --git a/docs/guide/environment.md b/docs/guide/environment.md index a5759f16f56a..eb7eaabde759 100644 --- a/docs/guide/environment.md +++ b/docs/guide/environment.md @@ -44,7 +44,7 @@ test('test', () => { You can create your own package to extend Vitest environment. To do so, create package with the name `vitest-environment-${name}` or specify a path to a valid JS/TS file. That package should export an object with the shape of `Environment`: ```ts -import type { Environment } from 'vitest/environments' +import type { Environment } from 'vitest/runtime' export default { name: 'custom', @@ -77,10 +77,10 @@ export default { Vitest requires `viteEnvironment` option on environment object (fallbacks to the Vitest environment name by default). It should be equal to `ssr`, `client` or any custom [Vite environment](https://vite.dev/guide/api-environment) name. This value determines which environment is used to process file. ::: -You also have access to default Vitest environments through `vitest/environments` entry: +You also have access to default Vitest environments through `vitest/runtime` entry: ```ts -import { builtinEnvironments, populateGlobal } from 'vitest/environments' +import { builtinEnvironments, populateGlobal } from 'vitest/runtime' console.log(builtinEnvironments) // { jsdom, happy-dom, node, edge-runtime } ``` diff --git a/package.json b/package.json index 3d397820b29a..f9fbbe7d03c4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/monorepo", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "private": true, "packageManager": "pnpm@10.24.0", "description": "Next generation testing framework powered by Vite", diff --git a/packages/browser-playwright/package.json b/packages/browser-playwright/package.json index 92f2301f0301..53fc08490117 100644 --- a/packages/browser-playwright/package.json +++ b/packages/browser-playwright/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/browser-playwright", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Browser running for Vitest using playwright", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/browser-preview/package.json b/packages/browser-preview/package.json index 346c9023244c..e7f89b38fb9c 100644 --- a/packages/browser-preview/package.json +++ b/packages/browser-preview/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/browser-preview", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Browser running for Vitest using your browser of choice", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/browser-webdriverio/package.json b/packages/browser-webdriverio/package.json index 6834cc105d32..78432669861b 100644 --- a/packages/browser-webdriverio/package.json +++ b/packages/browser-webdriverio/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/browser-webdriverio", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Browser running for Vitest using webdriverio", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/browser/package.json b/packages/browser/package.json index c46f419b6827..40ab7455781e 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/browser", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Browser running for Vitest", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/browser/src/client/tester/runner.ts b/packages/browser/src/client/tester/runner.ts index cd780b05a5ca..767555fbfb1b 100644 --- a/packages/browser/src/client/tester/runner.ts +++ b/packages/browser/src/client/tester/runner.ts @@ -18,6 +18,7 @@ import type { VitestBrowserClientMocker } from './mocker' import type { CommandsManager } from './tester-utils' import { globalChannel, onCancel } from '@vitest/browser/client' import { getTestName } from '@vitest/runner/utils' +import { BenchmarkRunner, TestRunner } from 'vitest' import { page, userEvent } from 'vitest/browser' import { DecodedMap, @@ -26,7 +27,6 @@ import { loadSnapshotSerializers, takeCoverageInsideWorker, } from 'vitest/internal/browser' -import { NodeBenchmarkRunner, VitestTestRunner } from 'vitest/runners' import { createStackString, parseStacktrace } from '../../../../utils/src/source-map' import { getBrowserState, getWorkerState, moduleRunner } from '../utils' import { rpc } from './rpc' @@ -323,7 +323,7 @@ export async function initiateRunner( return cachedRunner } const runnerClass - = config.mode === 'test' ? VitestTestRunner : NodeBenchmarkRunner + = config.mode === 'test' ? TestRunner : BenchmarkRunner const BrowserRunner = createBrowserRunner(runnerClass, mocker, state, { takeCoverage: () => diff --git a/packages/browser/src/client/tester/snapshot.ts b/packages/browser/src/client/tester/snapshot.ts index b3209197fdef..5cc7a8130109 100644 --- a/packages/browser/src/client/tester/snapshot.ts +++ b/packages/browser/src/client/tester/snapshot.ts @@ -1,6 +1,6 @@ import type { VitestBrowserClient } from '@vitest/browser/client' import type { ParsedStack } from 'vitest/internal/browser' -import type { SnapshotEnvironment } from 'vitest/snapshot' +import type { SnapshotEnvironment } from 'vitest/runtime' import { DecodedMap, getOriginalPosition } from 'vitest/internal/browser' export class VitestBrowserSnapshotEnvironment implements SnapshotEnvironment { diff --git a/packages/browser/src/node/plugin.ts b/packages/browser/src/node/plugin.ts index 29baa659239a..0b23b6dd4acd 100644 --- a/packages/browser/src/node/plugin.ts +++ b/packages/browser/src/node/plugin.ts @@ -242,7 +242,6 @@ export default (parentServer: ParentBrowserProject, base = '/'): Plugin[] => { 'vitest', 'vitest/browser', 'vitest/internal/browser', - 'vitest/runners', 'vite/module-runner', '@vitest/browser/utils', '@vitest/browser/context', diff --git a/packages/browser/src/node/project.ts b/packages/browser/src/node/project.ts index 3fd69300d849..bbc6f32860b0 100644 --- a/packages/browser/src/node/project.ts +++ b/packages/browser/src/node/project.ts @@ -14,8 +14,8 @@ import type { import type { ParentBrowserProject } from './projectParent' import { existsSync } from 'node:fs' import { readFile } from 'node:fs/promises' -import { fileURLToPath } from 'node:url' import { resolve } from 'pathe' +import { distRoot } from './constants' import { BrowserServerState } from './state' import { getBrowserProvider } from './utils' @@ -25,41 +25,35 @@ export class ProjectBrowser implements IProjectBrowser { public provider!: BrowserProvider public vitest: Vitest + public vite: ViteDevServer public config: ResolvedConfig - public children: Set = new Set() - - public parent!: ParentBrowserProject public state: BrowserServerState = new BrowserServerState() constructor( + public parent: ParentBrowserProject, public project: TestProject, public base: string, ) { this.vitest = project.vitest this.config = project.config + this.vite = parent.vite - const pkgRoot = resolve(fileURLToPath(import.meta.url), '../..') - const distRoot = resolve(pkgRoot, 'dist') - + // instances can override testerHtmlPath const testerHtmlPath = project.config.browser.testerHtmlPath ? resolve(project.config.root, project.config.browser.testerHtmlPath) : resolve(distRoot, 'client/tester/tester.html') + // TODO: when config resolution is rewritten, project and parentProject should be created before the vite server is started if (!existsSync(testerHtmlPath)) { throw new Error(`Tester HTML file "${testerHtmlPath}" doesn't exist.`) } this.testerFilepath = testerHtmlPath - this.testerHtml = readFile( - testerHtmlPath, + this.testerFilepath, 'utf8', ).then(html => (this.testerHtml = html)) } - get vite(): ViteDevServer { - return this.parent.vite - } - private commands = {} as Record> public registerCommand( @@ -130,7 +124,7 @@ export class ProjectBrowser implements IProjectBrowser { } async close(): Promise { - await this.parent.vite.close() + await this.vite.close() } } diff --git a/packages/browser/src/node/projectParent.ts b/packages/browser/src/node/projectParent.ts index 9c46f75a28d3..a345aeaffd18 100644 --- a/packages/browser/src/node/projectParent.ts +++ b/packages/browser/src/node/projectParent.ts @@ -147,10 +147,10 @@ export class ParentBrowserProject { throw new Error(`Cannot spawn child server without a parent dev server.`) } const clone = new ProjectBrowser( + this, project, '/', ) - clone.parent = this this.children.add(clone) return clone } diff --git a/packages/coverage-istanbul/package.json b/packages/coverage-istanbul/package.json index b06da9b7bda1..7e59e963c767 100644 --- a/packages/coverage-istanbul/package.json +++ b/packages/coverage-istanbul/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/coverage-istanbul", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Istanbul coverage provider for Vitest", "author": "Anthony Fu ", "license": "MIT", diff --git a/packages/coverage-istanbul/src/provider.ts b/packages/coverage-istanbul/src/provider.ts index 4fdef96298d6..2934ee82e486 100644 --- a/packages/coverage-istanbul/src/provider.ts +++ b/packages/coverage-istanbul/src/provider.ts @@ -15,8 +15,7 @@ import reports from 'istanbul-reports' import { parseModule } from 'magicast' import { createDebug } from 'obug' import c from 'tinyrainbow' -import { BaseCoverageProvider } from 'vitest/coverage' -import { isCSSRequest } from 'vitest/node' +import { BaseCoverageProvider, isCSSRequest } from 'vitest/node' import { version } from '../package.json' with { type: 'json' } import { COVERAGE_STORE_KEY } from './constants' diff --git a/packages/coverage-v8/package.json b/packages/coverage-v8/package.json index 41173171ac44..fb54b9e18aac 100644 --- a/packages/coverage-v8/package.json +++ b/packages/coverage-v8/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/coverage-v8", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "V8 coverage provider for Vitest", "author": "Anthony Fu ", "license": "MIT", diff --git a/packages/coverage-v8/src/provider.ts b/packages/coverage-v8/src/provider.ts index 2ba05c007a3c..2d68e337ccd1 100644 --- a/packages/coverage-v8/src/provider.ts +++ b/packages/coverage-v8/src/provider.ts @@ -15,8 +15,7 @@ import { createDebug } from 'obug' import { normalize } from 'pathe' import { provider } from 'std-env' import c from 'tinyrainbow' -import { BaseCoverageProvider } from 'vitest/coverage' -import { parseAstAsync } from 'vitest/node' +import { BaseCoverageProvider, parseAstAsync } from 'vitest/node' import { version } from '../package.json' with { type: 'json' } export interface ScriptCoverageWithOffset extends Profiler.ScriptCoverage { diff --git a/packages/expect/package.json b/packages/expect/package.json index 405aa3164db2..08e5defec380 100644 --- a/packages/expect/package.json +++ b/packages/expect/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/expect", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Jest's expect matchers as a Chai plugin", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/mocker/package.json b/packages/mocker/package.json index 21b694c599fa..4de44adeb8d2 100644 --- a/packages/mocker/package.json +++ b/packages/mocker/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/mocker", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Vitest module mocker implementation", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/pretty-format/package.json b/packages/pretty-format/package.json index 08a1cd6cf02a..2356c3145f3d 100644 --- a/packages/pretty-format/package.json +++ b/packages/pretty-format/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/pretty-format", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Fork of pretty-format with support for ESM", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/runner/package.json b/packages/runner/package.json index e3f29cebf8f8..b6d57be2e42d 100644 --- a/packages/runner/package.json +++ b/packages/runner/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/runner", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Vitest test runner", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/snapshot/package.json b/packages/snapshot/package.json index ea3e7801722e..db300afc1728 100644 --- a/packages/snapshot/package.json +++ b/packages/snapshot/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/snapshot", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Vitest snapshot manager", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/spy/package.json b/packages/spy/package.json index 1214c35d8eba..f5aeecffdf97 100644 --- a/packages/spy/package.json +++ b/packages/spy/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/spy", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Lightweight Jest compatible spy implementation", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/ui/node/reporter.ts b/packages/ui/node/reporter.ts index dbc9275db3d7..8ad956bc37b7 100644 --- a/packages/ui/node/reporter.ts +++ b/packages/ui/node/reporter.ts @@ -1,7 +1,6 @@ import type { Task, TestAttachment } from '@vitest/runner' import type { ModuleGraphData, RunnerTestFile, SerializedConfig } from 'vitest' -import type { HTMLOptions, Vitest } from 'vitest/node' -import type { Reporter } from 'vitest/reporters' +import type { HTMLOptions, Reporter, Vitest } from 'vitest/node' import crypto from 'node:crypto' import { promises as fs } from 'node:fs' import { readFile, writeFile } from 'node:fs/promises' diff --git a/packages/ui/package.json b/packages/ui/package.json index 2c2d4285ce24..070655270f52 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/ui", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "UI for Vitest", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/utils/package.json b/packages/utils/package.json index ec927e0b26da..6eab0e9963f9 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/utils", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Shared Vitest utility functions", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/vitest/package.json b/packages/vitest/package.json index 3dce38879a7c..ab2d00166522 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -1,7 +1,7 @@ { "name": "vitest", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Next generation testing framework powered by Vite", "author": "Anthony Fu ", "license": "MIT", @@ -68,10 +68,6 @@ "types": "./dist/browser.d.ts", "default": "./dist/browser.js" }, - "./internal/module-runner": { - "types": "./dist/module-runner.d.ts", - "default": "./dist/module-runner.js" - }, "./runners": { "types": "./dist/runners.d.ts", "default": "./dist/runners.js" @@ -101,9 +97,9 @@ "types": "./dist/snapshot.d.ts", "default": "./dist/snapshot.js" }, - "./mocker": { - "types": "./dist/mocker.d.ts", - "default": "./dist/mocker.js" + "./runtime": { + "types": "./dist/runtime.d.ts", + "default": "./dist/runtime.js" }, "./worker": { "types": "./worker.d.ts", diff --git a/packages/vitest/rollup.config.js b/packages/vitest/rollup.config.js index ce0da7b0cabe..60797b08e6ad 100644 --- a/packages/vitest/rollup.config.js +++ b/packages/vitest/rollup.config.js @@ -25,12 +25,11 @@ const entries = { 'browser': 'src/public/browser.ts', 'runners': 'src/public/runners.ts', 'environments': 'src/public/environments.ts', - 'mocker': 'src/public/mocker.ts', 'spy': 'src/integrations/spy.ts', + 'runtime': 'src/public/runtime.ts', 'coverage': 'src/public/coverage.ts', 'reporters': 'src/public/reporters.ts', 'worker': 'src/public/worker.ts', - 'module-runner': 'src/public/module-runner.ts', 'module-evaluator': 'src/runtime/moduleRunner/moduleEvaluator.ts', // for performance reasons we bundle them separately so we don't import everything at once @@ -51,11 +50,11 @@ const dtsEntries = { 'environments': 'src/public/environments.ts', 'browser': 'src/public/browser.ts', 'runners': 'src/public/runners.ts', + 'runtime': 'src/public/runtime.ts', 'suite': 'src/public/suite.ts', 'config': 'src/public/config.ts', 'coverage': 'src/public/coverage.ts', 'reporters': 'src/public/reporters.ts', - 'mocker': 'src/public/mocker.ts', 'snapshot': 'src/public/snapshot.ts', 'worker': 'src/public/worker.ts', 'module-evaluator': 'src/runtime/moduleRunner/moduleEvaluator.ts', diff --git a/packages/vitest/src/node/project.ts b/packages/vitest/src/node/project.ts index 868b07d648a1..814878ed622b 100644 --- a/packages/vitest/src/node/project.ts +++ b/packages/vitest/src/node/project.ts @@ -505,7 +505,7 @@ export class TestProject { [ this.vite?.close(), this.typechecker?.stop(), - this.browser?.close(), + (this.browser || this._parent?._parentBrowser?.vite)?.close(), this.clearTmpDir(), ].filter(Boolean), ).then(() => { diff --git a/packages/vitest/src/node/reporters/junit.ts b/packages/vitest/src/node/reporters/junit.ts index ec7a3ffe90d5..02553ef8fc0d 100644 --- a/packages/vitest/src/node/reporters/junit.ts +++ b/packages/vitest/src/node/reporters/junit.ts @@ -35,6 +35,10 @@ export interface JUnitOptions { * @default false */ addFileAttribute?: boolean + /** + * Hostname to use in the report. By default, it uses os.hostname() + */ + hostname?: string } function flattenTasks(task: Task, baseName = ''): Task[] { @@ -373,7 +377,7 @@ export class JUnitReporter implements Reporter { { name: filename, timestamp: new Date().toISOString(), - hostname: hostname(), + hostname: this.options.hostname || hostname(), tests: file.tasks.length, failures: file.stats.failures, errors: 0, // An errored test is one that had an unanticipated problem. We cannot detect those. diff --git a/packages/vitest/src/public/coverage.ts b/packages/vitest/src/public/coverage.ts index 916a865bd9b0..50daddeeefac 100644 --- a/packages/vitest/src/public/coverage.ts +++ b/packages/vitest/src/public/coverage.ts @@ -1 +1,3 @@ export { BaseCoverageProvider } from '../node/coverage' + +console.warn('Importing from "vitest/coverage" is deprecated since Vitest 4.1. Please use "vitest/node" instead.') diff --git a/packages/vitest/src/public/environments.ts b/packages/vitest/src/public/environments.ts index 06e168b9a460..75cc6c75a496 100644 --- a/packages/vitest/src/public/environments.ts +++ b/packages/vitest/src/public/environments.ts @@ -5,3 +5,5 @@ export type { EnvironmentReturn, VmEnvironmentReturn, } from '../types/environment' + +console.warn('Importing from "vitest/environments" is deprecated since Vitest 4.1. Please use "vitest/runtime" instead.') diff --git a/packages/vitest/src/public/index.ts b/packages/vitest/src/public/index.ts index df2e69c9e886..6ee9bdbdab38 100644 --- a/packages/vitest/src/public/index.ts +++ b/packages/vitest/src/public/index.ts @@ -42,6 +42,9 @@ export type { } from '../runtime/config' export { VitestEvaluatedModules as EvaluatedModules } from '../runtime/moduleRunner/evaluatedModules' + +export { NodeBenchmarkRunner as BenchmarkRunner } from '../runtime/runners/benchmark' +export { TestRunner } from '../runtime/runners/test' export type { BenchFactory, BenchFunction, @@ -59,7 +62,6 @@ export { expectTypeOf } from '../typecheck/expectTypeOf' export type { ExpectTypeOf } from '../typecheck/expectTypeOf' export type { BrowserTesterOptions } from '../types/browser' -// export type * as Experimental from '../types/experimental' export type { AfterSuiteRunMeta, LabelColor, @@ -135,6 +137,9 @@ export type { TestContext, TestFunction, TestOptions, + + VitestRunnerConfig as TestRunnerConfig, + VitestRunner as VitestTestRunner, } from '@vitest/runner' export type { CancelReason } from '@vitest/runner' diff --git a/packages/vitest/src/public/mocker.ts b/packages/vitest/src/public/mocker.ts deleted file mode 100644 index f898a39ad42c..000000000000 --- a/packages/vitest/src/public/mocker.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '@vitest/mocker' diff --git a/packages/vitest/src/public/module-runner.ts b/packages/vitest/src/public/module-runner.ts deleted file mode 100644 index 841257fdb48f..000000000000 --- a/packages/vitest/src/public/module-runner.ts +++ /dev/null @@ -1,14 +0,0 @@ -export { - VitestModuleEvaluator, - type VitestModuleEvaluatorOptions, -} from '../runtime/moduleRunner/moduleEvaluator' -export { - VitestModuleRunner, - type VitestModuleRunnerOptions, -} from '../runtime/moduleRunner/moduleRunner' -export { - type ContextModuleRunnerOptions, - startVitestModuleRunner, - VITEST_VM_CONTEXT_SYMBOL, -} from '../runtime/moduleRunner/startModuleRunner' -export { getWorkerState } from '../runtime/utils' diff --git a/packages/vitest/src/public/node.ts b/packages/vitest/src/public/node.ts index dae69dc672b6..01c04eed95c4 100644 --- a/packages/vitest/src/public/node.ts +++ b/packages/vitest/src/public/node.ts @@ -17,6 +17,7 @@ export type { Vitest, VitestOptions, } from '../node/core' +export { BaseCoverageProvider } from '../node/coverage' export { createVitest } from '../node/create' export { GitNotFoundError, FilesNotFoundError as TestsNotFoundError } from '../node/errors' export { VitestPackageInstaller } from '../node/packageInstaller' @@ -40,6 +41,34 @@ export { TypecheckPoolWorker } from '../node/pools/workers/typecheckWorker' export { VmForksPoolWorker } from '../node/pools/workers/vmForksWorker' export { VmThreadsPoolWorker } from '../node/pools/workers/vmThreadsWorker' export type { SerializedTestProject, TestProject } from '../node/project' + +export { + BenchmarkReporter, + BenchmarkReportsMap, + DefaultReporter, + DotReporter, + GithubActionsReporter, + HangingProcessReporter, + JsonReporter, + JUnitReporter, + ReportersMap, + TapFlatReporter, + TapReporter, + VerboseBenchmarkReporter, + VerboseReporter, +} from '../node/reporters' +export type { + BaseReporter, + BenchmarkBuiltinReporters, + BuiltinReporterOptions, + BuiltinReporters, + JsonAssertionResult, + JsonTestResult, + JsonTestResults, + ReportedHookContext, + Reporter, + TestRunEndReason, +} from '../node/reporters' export type { HTMLOptions } from '../node/reporters/html' export type { JsonOptions } from '../node/reporters/json' @@ -160,11 +189,6 @@ export type { RunnerTestFile, RunnerTestSuite, } from './index' -export type { - ReportedHookContext, - Reporter, - TestRunEndReason, -} from './reporters' export { generateFileHash } from '@vitest/runner/utils' export type { SerializedError } from '@vitest/utils' diff --git a/packages/vitest/src/public/reporters.ts b/packages/vitest/src/public/reporters.ts index b10c9791a9b3..60d0eac90f75 100644 --- a/packages/vitest/src/public/reporters.ts +++ b/packages/vitest/src/public/reporters.ts @@ -25,3 +25,5 @@ export type { Reporter, TestRunEndReason, } from '../node/reporters' + +console.warn('Importing from "vitest/reporters" is deprecated since Vitest 4.1. Please use "vitest/node" instead.') diff --git a/packages/vitest/src/public/runners.ts b/packages/vitest/src/public/runners.ts index 8691e331e5de..b61bce3d4321 100644 --- a/packages/vitest/src/public/runners.ts +++ b/packages/vitest/src/public/runners.ts @@ -1,3 +1,5 @@ export { NodeBenchmarkRunner } from '../runtime/runners/benchmark' -export { VitestTestRunner } from '../runtime/runners/test' +export { TestRunner as VitestTestRunner } from '../runtime/runners/test' export type { VitestRunner } from '@vitest/runner' + +console.warn('Importing from "vitest/runners" is deprecated since Vitest 4.1. Please use "vitest" instead.') diff --git a/packages/vitest/src/public/runtime.ts b/packages/vitest/src/public/runtime.ts new file mode 100644 index 000000000000..19b12d540a54 --- /dev/null +++ b/packages/vitest/src/public/runtime.ts @@ -0,0 +1,44 @@ +// #region internal +import { VitestModuleEvaluator } from '../runtime/moduleRunner/moduleEvaluator' +import { VitestModuleRunner } from '../runtime/moduleRunner/moduleRunner' +import { + startVitestModuleRunner, + VITEST_VM_CONTEXT_SYMBOL, +} from '../runtime/moduleRunner/startModuleRunner' +import { getWorkerState } from '../runtime/utils' +// #endregion + +export { environments as builtinEnvironments } from '../integrations/env/index' +export { populateGlobal } from '../integrations/env/utils' +export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from '../integrations/snapshot/environments/node' +export type { + Environment, + EnvironmentReturn, + VmEnvironmentReturn, +} from '../types/environment' +export type { VitestRunner, VitestRunnerConfig } from '@vitest/runner' +export type { SnapshotEnvironment } from '@vitest/snapshot/environment' + +// #region internal +/** + * @internal + */ +export interface __TYPES { + VitestModuleRunner: VitestModuleRunner +} +/** + * @internal + */ +export const __INTERNAL: { + VitestModuleEvaluator: typeof VitestModuleEvaluator + startVitestModuleRunner: typeof startVitestModuleRunner + VITEST_VM_CONTEXT_SYMBOL: typeof VITEST_VM_CONTEXT_SYMBOL + getWorkerState: typeof getWorkerState +} = { + VitestModuleEvaluator, + VitestModuleRunner, + startVitestModuleRunner, + VITEST_VM_CONTEXT_SYMBOL, + getWorkerState, +} as any +// #endregion diff --git a/packages/vitest/src/public/snapshot.ts b/packages/vitest/src/public/snapshot.ts index 0e24c2ec0129..2f438d93148d 100644 --- a/packages/vitest/src/public/snapshot.ts +++ b/packages/vitest/src/public/snapshot.ts @@ -1,2 +1,4 @@ export { VitestNodeSnapshotEnvironment as VitestSnapshotEnvironment } from '../integrations/snapshot/environments/node' export type { SnapshotEnvironment } from '@vitest/snapshot/environment' + +console.warn('Importing from "vitest/snapshot" is deprecated since Vitest 4.1. Please use "vitest/runtime" instead.') diff --git a/packages/vitest/src/public/suite.ts b/packages/vitest/src/public/suite.ts index 9e65e3953446..4f9afa44a2da 100644 --- a/packages/vitest/src/public/suite.ts +++ b/packages/vitest/src/public/suite.ts @@ -10,3 +10,5 @@ export { } from '@vitest/runner' export type { VitestRunner, VitestRunnerConfig } from '@vitest/runner' export { createChainable } from '@vitest/runner/utils' + +console.warn('Importing from "vitest/suite" is deprecated since Vitest 4.1. Please use static methods of "TestRunner" from the "vitest" entry point instead: e.g., `TestRunner.getCurrentTest()`.') diff --git a/packages/vitest/src/runtime/runners/index.ts b/packages/vitest/src/runtime/runners/index.ts index 056e4fc8feaa..e3f5aca59e52 100644 --- a/packages/vitest/src/runtime/runners/index.ts +++ b/packages/vitest/src/runtime/runners/index.ts @@ -7,7 +7,7 @@ import { rpc } from '../rpc' import { loadDiffConfig, loadSnapshotSerializers } from '../setup-common' import { getWorkerState } from '../utils' import { NodeBenchmarkRunner } from './benchmark' -import { VitestTestRunner } from './test' +import { TestRunner } from './test' async function getTestRunnerConstructor( config: SerializedConfig, @@ -15,7 +15,7 @@ async function getTestRunnerConstructor( ): Promise { if (!config.runner) { return ( - config.mode === 'test' ? VitestTestRunner : NodeBenchmarkRunner + config.mode === 'test' ? TestRunner : NodeBenchmarkRunner ) as any as VitestRunnerConstructor } const mod = await moduleRunner.import(config.runner) diff --git a/packages/vitest/src/runtime/runners/test.ts b/packages/vitest/src/runtime/runners/test.ts index 477173388d03..b0f52fe4c7d1 100644 --- a/packages/vitest/src/runtime/runners/test.ts +++ b/packages/vitest/src/runtime/runners/test.ts @@ -8,27 +8,35 @@ import type { Task, Test, TestContext, - VitestRunner, VitestRunnerImportSource, + VitestRunner as VitestTestRunner, } from '@vitest/runner' import type { ModuleRunner } from 'vite/module-runner' import type { Traces } from '../../utils/traces' import type { SerializedConfig } from '../config' import { getState, GLOBAL_EXPECT, setState } from '@vitest/expect' -import { getNames, getTestName, getTests } from '@vitest/runner/utils' +import { + createTaskCollector, + getCurrentSuite, + getCurrentTest, + getFn, + getHooks, +} from '@vitest/runner' +import { createChainable, getNames, getTestName, getTests } from '@vitest/runner/utils' import { processError } from '@vitest/utils/error' import { normalize } from 'pathe' import { createExpect } from '../../integrations/chai/index' import { inject } from '../../integrations/inject' import { getSnapshotClient } from '../../integrations/snapshot/chai' import { vi } from '../../integrations/vi' +import { getBenchFn, getBenchOptions } from '../benchmark' import { rpc } from '../rpc' import { getWorkerState } from '../utils' // worker context is shared between all tests const workerContext = Object.create(null) -export class VitestTestRunner implements VitestRunner { +export class TestRunner implements VitestTestRunner { private snapshotClient = getSnapshotClient() private workerState = getWorkerState() private moduleRunner!: ModuleRunner @@ -250,6 +258,24 @@ export class VitestTestRunner implements VitestRunner { __setTraces(traces: Traces): void { this._otel = traces } + + static createTaskCollector: typeof createTaskCollector = createTaskCollector + static getCurrentSuite: typeof getCurrentSuite = getCurrentSuite + static getCurrentTest: typeof getCurrentTest = getCurrentTest + static createChainable: typeof createChainable = createChainable + static getSuiteHooks: typeof getHooks = getHooks + static getTestFn: typeof getFn = getFn + static setSuiteHooks: typeof getHooks = getHooks + static setTestFn: typeof getFn = getFn + + /** + * @deprecated + */ + static getBenchFn: typeof getBenchFn = getBenchFn + /** + * @deprecated + */ + static getBenchOptions: typeof getBenchOptions = getBenchOptions } function clearModuleMocks(config: SerializedConfig) { diff --git a/packages/web-worker/package.json b/packages/web-worker/package.json index 68489bcd945f..0019fc931dee 100644 --- a/packages/web-worker/package.json +++ b/packages/web-worker/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/web-worker", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "Web Worker support for testing in Vitest", "license": "MIT", "funding": "https://opencollective.com/vitest", diff --git a/packages/web-worker/src/runner.ts b/packages/web-worker/src/runner.ts index 42e0bf8c45bf..e847ec530b2b 100644 --- a/packages/web-worker/src/runner.ts +++ b/packages/web-worker/src/runner.ts @@ -1,12 +1,14 @@ -import type { VitestModuleRunner } from 'vitest/internal/module-runner' -import { - getWorkerState, +import type { __TYPES } from 'vitest/runtime' +import { __INTERNAL } from 'vitest/runtime' + +const { + VitestModuleEvaluator, startVitestModuleRunner, VITEST_VM_CONTEXT_SYMBOL, - VitestModuleEvaluator, -} from 'vitest/internal/module-runner' + getWorkerState, +} = __INTERNAL -export function startWebWorkerModuleRunner(context: Record): VitestModuleRunner { +export function startWebWorkerModuleRunner(context: Record): __TYPES['VitestModuleRunner'] { const state = getWorkerState() const mocker = (globalThis as any).__vitest_mocker__ diff --git a/packages/ws-client/package.json b/packages/ws-client/package.json index 264926d24710..eb868c93995b 100644 --- a/packages/ws-client/package.json +++ b/packages/ws-client/package.json @@ -1,7 +1,7 @@ { "name": "@vitest/ws-client", "type": "module", - "version": "4.0.16", + "version": "4.0.17", "description": "WebSocket client wrapper for communicating with Vitest", "author": "Anthony Fu ", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8404d02e2819..a804f5480dcd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,7 +61,7 @@ catalogs: specifier: ^6.2.1 version: 6.2.1 flatted: - specifier: ^3.3.3 + specifier: 3.3.3 version: 3.3.3 istanbul-lib-coverage: specifier: ^3.2.2 @@ -90,6 +90,9 @@ catalogs: pathe: specifier: ^2.0.3 version: 2.0.3 + playwright: + specifier: ^1.57.0 + version: 1.57.0 sirv: specifier: ^3.0.2 version: 3.0.2 @@ -105,9 +108,15 @@ catalogs: tinyrainbow: specifier: ^3.0.3 version: 3.0.3 + typescript: + specifier: ^5.9.3 + version: 5.9.3 unocss: specifier: ^66.5.9 version: 66.5.9 + vitest-sonar-reporter: + specifier: 3.0.0 + version: 3.0.0 vue: specifier: ^3.5.25 version: 3.5.25 @@ -1125,12 +1134,6 @@ importers: specifier: workspace:* version: link:../runner - test/benchmark: - devDependencies: - vitest: - specifier: workspace:* - version: link:../../packages/vitest - test/browser: devDependencies: '@types/react': @@ -1179,12 +1182,6 @@ importers: specifier: 'catalog:' version: 8.18.3 - test/cache: - devDependencies: - vitest: - specifier: workspace:* - version: link:../../packages/vitest - test/cli: devDependencies: '@opentelemetry/api': @@ -1196,12 +1193,18 @@ importers: '@opentelemetry/sdk-trace-web': specifier: ^2.2.0 version: 2.2.0(@opentelemetry/api@1.9.0) + '@test/pkg-reporter': + specifier: link:./deps/pkg-reporter + version: link:deps/pkg-reporter '@test/test-dep-error': specifier: file:./deps/error version: file:test/cli/deps/error '@test/test-dep-linked': specifier: link:./deps/linked version: link:deps/linked + '@test/test-dep-url': + specifier: link:./deps/dep-url + version: link:deps/dep-url '@types/ws': specifier: 'catalog:' version: 8.18.1 @@ -1214,15 +1217,30 @@ importers: '@vitest/browser-preview': specifier: workspace:* version: link:../../packages/browser-preview + '@vitest/browser-webdriverio': + specifier: workspace:* + version: link:../../packages/browser-webdriverio + '@vitest/mocker': + specifier: workspace:* + version: link:../../packages/mocker '@vitest/runner': - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/runner '@vitest/utils': specifier: workspace:* version: link:../../packages/utils + flatted: + specifier: 'catalog:' + version: 3.3.3 obug: specifier: ^2.1.1 version: 2.1.1 + playwright: + specifier: 'catalog:' + version: 1.57.0 + typescript: + specifier: 'catalog:' + version: 5.9.3 unplugin-swc: specifier: ^1.5.9 version: 1.5.9(@swc/core@1.4.1)(rollup@4.53.3) @@ -1232,6 +1250,9 @@ importers: vitest: specifier: workspace:* version: link:../../packages/vitest + vitest-sonar-reporter: + specifier: 'catalog:' + version: 3.0.0(vitest@packages+vitest) ws: specifier: 'catalog:' version: 8.18.3 @@ -1461,56 +1482,7 @@ importers: specifier: workspace:* version: link:../../packages/vitest - test/global-setup: - devDependencies: - vitest: - specifier: workspace:* - version: link:../../packages/vitest - - test/optimize-deps: - devDependencies: - '@vitest/test-dep-url': - specifier: file:./dep-url - version: '@vitest/test-deps-url@file:test/optimize-deps/dep-url' - vitest: - specifier: workspace:* - version: link:../../packages/vitest - - test/public-mocker: - devDependencies: - '@vitest/browser': - specifier: workspace:* - version: link:../../packages/browser - '@vitest/mocker': - specifier: workspace:* - version: link:../../packages/mocker - playwright: - specifier: ^1.57.0 - version: 1.57.0 - vitest: - specifier: workspace:* - version: link:../../packages/vitest - - test/reporters: - devDependencies: - '@vitest/browser-playwright': - specifier: workspace:* - version: link:../../packages/browser-playwright - '@vitest/runner': - specifier: workspace:* - version: link:../../packages/runner - flatted: - specifier: ^3.3.3 - version: 3.3.3 - pkg-reporter: - specifier: ./reportPkg/ - version: link:reportPkg - vitest: - specifier: workspace:* - version: link:../../packages/vitest - vitest-sonar-reporter: - specifier: 3.0.0 - version: 3.0.0(vitest@packages+vitest) + test/node-runner: {} test/snapshots: dependencies: @@ -1562,21 +1534,6 @@ importers: specifier: workspace:* version: link:../../packages/vitest - test/watch: - devDependencies: - '@vitest/browser-playwright': - specifier: workspace:* - version: link:../../packages/browser-playwright - '@vitest/browser-webdriverio': - specifier: workspace:* - version: link:../../packages/browser-webdriverio - vite: - specifier: ^7.1.5 - version: 7.1.5(@types/node@24.10.1)(jiti@2.6.1)(lightningcss@1.30.1)(sass-embedded@1.93.3)(sass@1.93.3)(terser@5.44.0)(tsx@4.21.0)(yaml@2.8.2) - vitest: - specifier: workspace:* - version: link:../../packages/vitest - test/workspaces: devDependencies: '@jridgewell/remapping': @@ -4647,9 +4604,6 @@ packages: '@vitest/test-dep2@file:test/core/deps/dep2': resolution: {directory: test/core/deps/dep2, type: directory} - '@vitest/test-deps-url@file:test/optimize-deps/dep-url': - resolution: {directory: test/optimize-deps/dep-url, type: directory} - '@vitest/test-fn@file:test/core/deps/dep-fn': resolution: {directory: test/core/deps/dep-fn, type: directory} @@ -12603,8 +12557,6 @@ snapshots: dependencies: '@vitest/test-dep1': file:test/core/deps/dep1 - '@vitest/test-deps-url@file:test/optimize-deps/dep-url': {} - '@vitest/test-fn@file:test/core/deps/dep-fn': {} '@volar/language-core@2.4.23': diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 6d397c7a3869..12f78700d466 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,6 +3,7 @@ catalogMode: prefer shellEmulator: true trustPolicy: no-downgrade + trustPolicyExclude: - semver@6.3.1 - chokidar@4.0.3 @@ -17,31 +18,31 @@ trustPolicyExclude: - undici-types@6.21.0 - undici@6.21.3 - rxjs@7.8.2 - packages: - docs - packages/* - examples/* - test/* - test/config/fixtures/conditions-pkg - overrides: - '@vitest/browser': 'workspace:*' - '@vitest/browser-playwright': 'workspace:*' - '@vitest/browser-preview': 'workspace:*' - '@vitest/browser-webdriverio': 'workspace:*' - '@vitest/ui': 'workspace:*' + '@vitest/browser': workspace:* + '@vitest/browser-playwright': workspace:* + '@vitest/browser-preview': workspace:* + '@vitest/browser-webdriverio': workspace:* + '@vitest/ui': workspace:* acorn: 8.11.3 mlly: ^1.8.0 rollup: $rollup vite: $vite - vitest: 'workspace:*' + vitest: workspace:* + patchedDependencies: '@sinonjs/fake-timers@14.0.0': patches/@sinonjs__fake-timers@14.0.0.patch '@types/sinonjs__fake-timers@8.1.5': patches/@types__sinonjs__fake-timers@8.1.5.patch acorn@8.11.3: patches/acorn@8.11.3.patch cac@6.7.14: patches/cac@6.7.14.patch istanbul-lib-source-maps: patches/istanbul-lib-source-maps.patch + catalog: '@iconify-json/carbon': ^1.2.14 '@iconify-json/logos': ^1.2.10 @@ -61,7 +62,7 @@ catalog: birpc: ^4.0.0 cac: ^6.7.14 chai: ^6.2.1 - flatted: ^3.3.3 + flatted: 3.3.3 istanbul-lib-coverage: ^3.2.2 istanbul-lib-report: ^3.0.1 istanbul-lib-source-maps: ^5.0.6 @@ -71,12 +72,15 @@ catalog: msw: ^2.12.3 obug: ^2.1.1 pathe: ^2.0.3 + playwright: ^1.57.0 sirv: ^3.0.2 std-env: ^3.10.0 strip-literal: ^3.1.0 tinyglobby: ^0.2.15 tinyrainbow: ^3.0.3 + typescript: ^5.9.3 unocss: ^66.5.9 + vitest-sonar-reporter: 3.0.0 vue: ^3.5.25 ws: ^8.18.3 onlyBuiltDependencies: diff --git a/shims.d.ts b/shims.d.ts index e8f0b016c0c9..c22a7019b1ed 100644 --- a/shims.d.ts +++ b/shims.d.ts @@ -1,2 +1 @@ -/// /// diff --git a/test/benchmark/package.json b/test/benchmark/package.json deleted file mode 100644 index b1fee30693c5..000000000000 --- a/test/benchmark/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@vitest/test-benchmark", - "type": "module", - "private": true, - "scripts": { - "test": "vitest" - }, - "devDependencies": { - "vitest": "workspace:*" - } -} diff --git a/test/benchmark/test/__snapshots__/reporter.test.ts.snap b/test/benchmark/test/__snapshots__/reporter.test.ts.snap deleted file mode 100644 index a851206d5b34..000000000000 --- a/test/benchmark/test/__snapshots__/reporter.test.ts.snap +++ /dev/null @@ -1,14 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`summary 1`] = ` -" - - good - summary.bench.ts > suite-a - (?) faster than bad - - good - summary.bench.ts > suite-b - - good - summary.bench.ts > suite-b > suite-b-nested - -" -`; diff --git a/test/benchmark/test/basic.test.ts b/test/benchmark/test/basic.test.ts deleted file mode 100644 index cbe91e363625..000000000000 --- a/test/benchmark/test/basic.test.ts +++ /dev/null @@ -1,88 +0,0 @@ -import type { createBenchmarkJsonReport } from 'vitest/src/node/reporters/benchmark/json-formatter.js' -import fs from 'node:fs' -import * as pathe from 'pathe' -import { expect, it } from 'vitest' -import { runVitest } from '../../test-utils' - -it('basic', { timeout: 60_000 }, async () => { - const root = pathe.join(import.meta.dirname, '../fixtures/basic') - const benchFile = pathe.join(root, 'bench.json') - fs.rmSync(benchFile, { force: true }) - - const result = await runVitest({ - root, - allowOnly: true, - outputJson: 'bench.json', - - // Verify that type testing cannot be used with benchmark - typecheck: { enabled: true }, - }, [], { mode: 'benchmark' }) - expect(result.stderr).toBe('') - expect(result.exitCode).toBe(0) - - const benchResult = await fs.promises.readFile(benchFile, 'utf-8') - const resultJson: ReturnType = JSON.parse(benchResult) - const names = resultJson.files.map(f => f.groups.map(g => [g.fullName, g.benchmarks.map(b => b.name)])) - expect(names).toMatchInlineSnapshot(` - [ - [ - [ - "base.bench.ts > sort", - [ - "normal", - "reverse", - ], - ], - [ - "base.bench.ts > timeout", - [ - "timeout100", - "timeout75", - "timeout50", - "timeout25", - ], - ], - ], - [], - [ - [ - "only.bench.ts", - [ - "visited", - "visited2", - ], - ], - [ - "only.bench.ts > a0", - [ - "0", - ], - ], - [ - "only.bench.ts > a1 > b1 > c1", - [ - "1", - ], - ], - [ - "only.bench.ts > a2", - [ - "2", - ], - ], - [ - "only.bench.ts > a3 > b3", - [ - "3", - ], - ], - [ - "only.bench.ts > a4 > b4", - [ - "4", - ], - ], - ], - ] - `) -}) diff --git a/test/benchmark/test/compare.test.ts b/test/benchmark/test/compare.test.ts deleted file mode 100644 index 102a5a972be6..000000000000 --- a/test/benchmark/test/compare.test.ts +++ /dev/null @@ -1,41 +0,0 @@ -import fs from 'node:fs' -import { expect, test } from 'vitest' -import { runVitest } from '../../test-utils' - -test('compare', { timeout: 60_000 }, async () => { - await fs.promises.rm('./fixtures/compare/bench.json', { force: true }) - - // --outputJson - { - const result = await runVitest({ - root: './fixtures/compare', - outputJson: './bench.json', - reporters: ['default'], - }, [], { mode: 'benchmark' }) - expect(result.exitCode).toBe(0) - expect(fs.existsSync('./fixtures/compare/bench.json')).toBe(true) - } - - // --compare - { - const result = await runVitest({ - root: './fixtures/compare', - compare: './bench.json', - reporters: ['default'], - }, [], { mode: 'benchmark' }) - expect(result.exitCode).toBe(0) - const lines = result.stdout.split('\n').slice(4).slice(0, 6) - const expected = ` -✓ basic.bench.ts > suite - name - · sleep10 - (baseline) - · sleep100 - (baseline) - ` - - for (const [index, line] of expected.trim().split('\n').entries()) { - expect(lines[index]).toMatch(line.trim()) - } - } -}) diff --git a/test/benchmark/test/reporter.test.ts b/test/benchmark/test/reporter.test.ts deleted file mode 100644 index 566efa98e2eb..000000000000 --- a/test/benchmark/test/reporter.test.ts +++ /dev/null @@ -1,55 +0,0 @@ -import * as pathe from 'pathe' -import { assert, expect, it } from 'vitest' -import { runVitest } from '../../test-utils' - -it('summary', async () => { - const root = pathe.join(import.meta.dirname, '../fixtures/reporter') - const result = await runVitest({ root }, ['summary.bench.ts'], { mode: 'benchmark' }) - expect(result.stderr).toBe('') - expect(result.stdout).not.toContain('NaNx') - expect(result.stdout.split('BENCH Summary')[1].replaceAll(/[0-9.]+x/g, '(?)')).toMatchSnapshot() -}) - -it('non-tty', async () => { - const root = pathe.join(import.meta.dirname, '../fixtures/basic') - const result = await runVitest({ root }, ['base.bench.ts'], { mode: 'benchmark' }) - const lines = result.stdout.split('\n').slice(4).slice(0, 11) - const expected = `\ - ✓ base.bench.ts > sort - name - · normal - · reverse - - ✓ base.bench.ts > timeout - name - · timeout100 - · timeout75 - · timeout50 - · timeout25 -` - - for (const [index, line] of expected.trim().split('\n').entries()) { - expect(lines[index]).toMatch(line) - } -}) - -it.for([true, false])('includeSamples %s', async (includeSamples) => { - const result = await runVitest( - { - root: pathe.join(import.meta.dirname, '../fixtures/reporter'), - benchmark: { includeSamples }, - }, - ['summary.bench.ts'], - { mode: 'benchmark' }, - ) - assert(result.ctx) - const allSamples = [...result.ctx.state.idMap.values()] - .filter(t => t.meta.benchmark) - .map(t => t.result?.benchmark?.samples) - if (includeSamples) { - expect(allSamples[0]).not.toEqual([]) - } - else { - expect(allSamples[0]).toEqual([]) - } -}) diff --git a/test/benchmark/test/sequential.test.ts b/test/benchmark/test/sequential.test.ts deleted file mode 100644 index 2aea431d8dbe..000000000000 --- a/test/benchmark/test/sequential.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import fs from 'node:fs' -import * as pathe from 'pathe' -import { expect, it } from 'vitest' -import { runVitest } from '../../test-utils' - -it('sequential', async () => { - const root = pathe.join(import.meta.dirname, '../fixtures/sequential') - await runVitest({ root }, [], { mode: 'benchmark' }) - const testLog = await fs.promises.readFile(pathe.join(root, 'test.log'), 'utf-8') - expect(testLog).toMatchSnapshot() -}) diff --git a/test/browser/specs/runner.test.ts b/test/browser/specs/runner.test.ts index 68c95a8264ca..35e8c89e2c83 100644 --- a/test/browser/specs/runner.test.ts +++ b/test/browser/specs/runner.test.ts @@ -1,5 +1,4 @@ -import type { Vitest } from 'vitest/node' -import type { JsonTestResults } from 'vitest/reporters' +import type { JsonTestResults, Vitest } from 'vitest/node' import { readdirSync } from 'node:fs' import { readFile } from 'node:fs/promises' import { beforeAll, describe, expect, onTestFailed, test } from 'vitest' diff --git a/test/cache/package.json b/test/cache/package.json deleted file mode 100644 index 3a7e3264d171..000000000000 --- a/test/cache/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@vitest/test-cache", - "type": "module", - "private": true, - "scripts": { - "test": "vitest" - }, - "devDependencies": { - "vitest": "workspace:*" - } -} diff --git a/test/cache/test/importMetaGlob.test.ts b/test/cache/test/importMetaGlob.test.ts deleted file mode 100644 index 726f61812eb3..000000000000 --- a/test/cache/test/importMetaGlob.test.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { expect, test } from 'vitest' -import { runVitest, useFS } from '../../test-utils' - -test('if file has import.meta.glob, it\'s not cached', async () => { - const { createFile } = useFS('./fixtures/import-meta-glob/generated', { - 1: '1', - 2: '2', - }, false) - - const { errorTree: errorTree1 } = await runVitest({ - root: './fixtures/import-meta-glob', - provide: { - generated: ['./generated/1', './generated/2'], - }, - experimental: { - fsModuleCache: true, - fsModuleCachePath: './node_modules/.vitest-fs-cache', - }, - }) - - expect(errorTree1()).toMatchInlineSnapshot(` - { - "glob.test.js": { - "replaced variable is the same": "passed", - }, - } - `) - - createFile('3', '3') - - const { errorTree: errorTree2 } = await runVitest({ - root: './fixtures/import-meta-glob', - provide: { - generated: [ - './generated/1', - './generated/2', - './generated/3', - ], - }, - experimental: { - fsModuleCache: true, - fsModuleCachePath: './node_modules/.vitest-fs-cache', - }, - }) - - expect(errorTree2()).toMatchInlineSnapshot(` - { - "glob.test.js": { - "replaced variable is the same": "passed", - }, - } - `) -}) - -declare module 'vitest' { - export interface ProvidedContext { - generated: string[] - } -} diff --git a/test/cache/vitest.config.ts b/test/cache/vitest.config.ts deleted file mode 100644 index bc7f1bea6e55..000000000000 --- a/test/cache/vitest.config.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { defineConfig } from 'vite' - -export default defineConfig({ - test: { - include: ['test/**.test.ts'], - includeTaskLocation: true, - reporters: ['verbose'], - testTimeout: 60_000, - fileParallelism: false, - chaiConfig: { - truncateThreshold: 999, - }, - }, -}) diff --git a/test/reporters/.gitignore b/test/cli/.gitignore similarity index 100% rename from test/reporters/.gitignore rename to test/cli/.gitignore diff --git a/test/cli/custom.ts b/test/cli/custom.ts index 01323c1ed4f6..dc8da0c75c5e 100644 --- a/test/cli/custom.ts +++ b/test/cli/custom.ts @@ -1,4 +1,4 @@ -import type { Environment } from 'vitest/environments' +import type { Environment } from 'vitest/runtime' import vm from 'node:vm' import { createDebug } from 'obug' diff --git a/test/optimize-deps/dep-url/index.js b/test/cli/deps/dep-url/index.js similarity index 100% rename from test/optimize-deps/dep-url/index.js rename to test/cli/deps/dep-url/index.js diff --git a/test/optimize-deps/dep-url/package.json b/test/cli/deps/dep-url/package.json similarity index 58% rename from test/optimize-deps/dep-url/package.json rename to test/cli/deps/dep-url/package.json index a7c531b2c9b3..7924d5ed204c 100644 --- a/test/optimize-deps/dep-url/package.json +++ b/test/cli/deps/dep-url/package.json @@ -1,5 +1,5 @@ { - "name": "@vitest/test-deps-url", + "name": "@test/test-dep-url", "type": "module", "exports": "./index.js" } diff --git a/test/reporters/reportPkg/index.js b/test/cli/deps/pkg-reporter/index.js similarity index 100% rename from test/reporters/reportPkg/index.js rename to test/cli/deps/pkg-reporter/index.js diff --git a/test/cli/deps/pkg-reporter/package.json b/test/cli/deps/pkg-reporter/package.json new file mode 100644 index 000000000000..20522dbe40e8 --- /dev/null +++ b/test/cli/deps/pkg-reporter/package.json @@ -0,0 +1,4 @@ +{ + "name": "@test/pkg-reporter", + "main": "./index.js" +} diff --git a/test/benchmark/fixtures/basic/base.bench.ts b/test/cli/fixtures/benchmarking/basic/base.bench.ts similarity index 100% rename from test/benchmark/fixtures/basic/base.bench.ts rename to test/cli/fixtures/benchmarking/basic/base.bench.ts diff --git a/test/benchmark/fixtures/basic/mode.bench.ts b/test/cli/fixtures/benchmarking/basic/mode.bench.ts similarity index 100% rename from test/benchmark/fixtures/basic/mode.bench.ts rename to test/cli/fixtures/benchmarking/basic/mode.bench.ts diff --git a/test/benchmark/fixtures/basic/only.bench.ts b/test/cli/fixtures/benchmarking/basic/only.bench.ts similarity index 100% rename from test/benchmark/fixtures/basic/only.bench.ts rename to test/cli/fixtures/benchmarking/basic/only.bench.ts diff --git a/test/benchmark/fixtures/basic/should-not-run.test-d.ts b/test/cli/fixtures/benchmarking/basic/should-not-run.test-d.ts similarity index 100% rename from test/benchmark/fixtures/basic/should-not-run.test-d.ts rename to test/cli/fixtures/benchmarking/basic/should-not-run.test-d.ts diff --git a/test/benchmark/fixtures/basic/vitest.config.ts b/test/cli/fixtures/benchmarking/basic/vitest.config.ts similarity index 100% rename from test/benchmark/fixtures/basic/vitest.config.ts rename to test/cli/fixtures/benchmarking/basic/vitest.config.ts diff --git a/test/benchmark/fixtures/compare/basic.bench.ts b/test/cli/fixtures/benchmarking/compare/basic.bench.ts similarity index 100% rename from test/benchmark/fixtures/compare/basic.bench.ts rename to test/cli/fixtures/benchmarking/compare/basic.bench.ts diff --git a/test/benchmark/fixtures/compare/vitest.config.ts b/test/cli/fixtures/benchmarking/compare/vitest.config.ts similarity index 100% rename from test/benchmark/fixtures/compare/vitest.config.ts rename to test/cli/fixtures/benchmarking/compare/vitest.config.ts diff --git a/test/benchmark/fixtures/reporter/multiple.bench.ts b/test/cli/fixtures/benchmarking/reporter/multiple.bench.ts similarity index 100% rename from test/benchmark/fixtures/reporter/multiple.bench.ts rename to test/cli/fixtures/benchmarking/reporter/multiple.bench.ts diff --git a/test/benchmark/fixtures/reporter/summary.bench.ts b/test/cli/fixtures/benchmarking/reporter/summary.bench.ts similarity index 100% rename from test/benchmark/fixtures/reporter/summary.bench.ts rename to test/cli/fixtures/benchmarking/reporter/summary.bench.ts diff --git a/test/benchmark/fixtures/reporter/vitest.config.ts b/test/cli/fixtures/benchmarking/reporter/vitest.config.ts similarity index 100% rename from test/benchmark/fixtures/reporter/vitest.config.ts rename to test/cli/fixtures/benchmarking/reporter/vitest.config.ts diff --git a/test/benchmark/fixtures/sequential/f1.bench.ts b/test/cli/fixtures/benchmarking/sequential/f1.bench.ts similarity index 100% rename from test/benchmark/fixtures/sequential/f1.bench.ts rename to test/cli/fixtures/benchmarking/sequential/f1.bench.ts diff --git a/test/benchmark/fixtures/sequential/f2.bench.ts b/test/cli/fixtures/benchmarking/sequential/f2.bench.ts similarity index 100% rename from test/benchmark/fixtures/sequential/f2.bench.ts rename to test/cli/fixtures/benchmarking/sequential/f2.bench.ts diff --git a/test/benchmark/fixtures/sequential/helper.ts b/test/cli/fixtures/benchmarking/sequential/helper.ts similarity index 100% rename from test/benchmark/fixtures/sequential/helper.ts rename to test/cli/fixtures/benchmarking/sequential/helper.ts diff --git a/test/benchmark/fixtures/sequential/setup.ts b/test/cli/fixtures/benchmarking/sequential/setup.ts similarity index 100% rename from test/benchmark/fixtures/sequential/setup.ts rename to test/cli/fixtures/benchmarking/sequential/setup.ts diff --git a/test/benchmark/fixtures/sequential/vitest.config.ts b/test/cli/fixtures/benchmarking/sequential/vitest.config.ts similarity index 100% rename from test/benchmark/fixtures/sequential/vitest.config.ts rename to test/cli/fixtures/benchmarking/sequential/vitest.config.ts diff --git a/test/cache/fixtures/dynamic-cache-key/replaced.test.js b/test/cli/fixtures/caching/dynamic-cache-key/replaced.test.js similarity index 100% rename from test/cache/fixtures/dynamic-cache-key/replaced.test.js rename to test/cli/fixtures/caching/dynamic-cache-key/replaced.test.js diff --git a/test/cache/fixtures/dynamic-cache-key/vitest.config.bails.js b/test/cli/fixtures/caching/dynamic-cache-key/vitest.config.bails.js similarity index 100% rename from test/cache/fixtures/dynamic-cache-key/vitest.config.bails.js rename to test/cli/fixtures/caching/dynamic-cache-key/vitest.config.bails.js diff --git a/test/cache/fixtures/dynamic-cache-key/vitest.config.fails.js b/test/cli/fixtures/caching/dynamic-cache-key/vitest.config.fails.js similarity index 100% rename from test/cache/fixtures/dynamic-cache-key/vitest.config.fails.js rename to test/cli/fixtures/caching/dynamic-cache-key/vitest.config.fails.js diff --git a/test/cache/fixtures/dynamic-cache-key/vitest.config.passes.js b/test/cli/fixtures/caching/dynamic-cache-key/vitest.config.passes.js similarity index 100% rename from test/cache/fixtures/dynamic-cache-key/vitest.config.passes.js rename to test/cli/fixtures/caching/dynamic-cache-key/vitest.config.passes.js diff --git a/test/cache/fixtures/import-meta-glob/glob.test.js b/test/cli/fixtures/caching/import-meta-glob/glob.test.js similarity index 100% rename from test/cache/fixtures/import-meta-glob/glob.test.js rename to test/cli/fixtures/caching/import-meta-glob/glob.test.js diff --git a/test/cache/fixtures/import-meta-glob/vitest.config.js b/test/cli/fixtures/caching/import-meta-glob/vitest.config.js similarity index 100% rename from test/cache/fixtures/import-meta-glob/vitest.config.js rename to test/cli/fixtures/caching/import-meta-glob/vitest.config.js diff --git a/test/config/fixtures/bail/test/first.test.ts b/test/cli/fixtures/config/bail/test/first.test.ts similarity index 100% rename from test/config/fixtures/bail/test/first.test.ts rename to test/cli/fixtures/config/bail/test/first.test.ts diff --git a/test/config/fixtures/bail/test/second.test.ts b/test/cli/fixtures/config/bail/test/second.test.ts similarity index 100% rename from test/config/fixtures/bail/test/second.test.ts rename to test/cli/fixtures/config/bail/test/second.test.ts diff --git a/test/config/fixtures/bail/vitest.config.ts b/test/cli/fixtures/config/bail/vitest.config.ts similarity index 100% rename from test/config/fixtures/bail/vitest.config.ts rename to test/cli/fixtures/config/bail/vitest.config.ts diff --git a/test/config/fixtures/browser-custom-html/browser-basic.test.ts b/test/cli/fixtures/config/browser-custom-html/browser-basic.test.ts similarity index 100% rename from test/config/fixtures/browser-custom-html/browser-basic.test.ts rename to test/cli/fixtures/config/browser-custom-html/browser-basic.test.ts diff --git a/test/config/fixtures/browser-custom-html/browser-custom.test.ts b/test/cli/fixtures/config/browser-custom-html/browser-custom.test.ts similarity index 100% rename from test/config/fixtures/browser-custom-html/browser-custom.test.ts rename to test/cli/fixtures/config/browser-custom-html/browser-custom.test.ts diff --git a/test/config/fixtures/browser-custom-html/custom-html.html b/test/cli/fixtures/config/browser-custom-html/custom-html.html similarity index 100% rename from test/config/fixtures/browser-custom-html/custom-html.html rename to test/cli/fixtures/config/browser-custom-html/custom-html.html diff --git a/test/config/fixtures/browser-custom-html/vitest.config.correct.ts b/test/cli/fixtures/config/browser-custom-html/vitest.config.correct.ts similarity index 100% rename from test/config/fixtures/browser-custom-html/vitest.config.correct.ts rename to test/cli/fixtures/config/browser-custom-html/vitest.config.correct.ts diff --git a/test/config/fixtures/browser-custom-html/vitest.config.custom-transformIndexHtml.ts b/test/cli/fixtures/config/browser-custom-html/vitest.config.custom-transformIndexHtml.ts similarity index 100% rename from test/config/fixtures/browser-custom-html/vitest.config.custom-transformIndexHtml.ts rename to test/cli/fixtures/config/browser-custom-html/vitest.config.custom-transformIndexHtml.ts diff --git a/test/config/fixtures/browser-custom-html/vitest.config.default-transformIndexHtml.ts b/test/cli/fixtures/config/browser-custom-html/vitest.config.default-transformIndexHtml.ts similarity index 100% rename from test/config/fixtures/browser-custom-html/vitest.config.default-transformIndexHtml.ts rename to test/cli/fixtures/config/browser-custom-html/vitest.config.default-transformIndexHtml.ts diff --git a/test/config/fixtures/browser-custom-html/vitest.config.error-hook.ts b/test/cli/fixtures/config/browser-custom-html/vitest.config.error-hook.ts similarity index 100% rename from test/config/fixtures/browser-custom-html/vitest.config.error-hook.ts rename to test/cli/fixtures/config/browser-custom-html/vitest.config.error-hook.ts diff --git a/test/config/fixtures/browser-custom-html/vitest.config.non-existing.ts b/test/cli/fixtures/config/browser-custom-html/vitest.config.non-existing.ts similarity index 100% rename from test/config/fixtures/browser-custom-html/vitest.config.non-existing.ts rename to test/cli/fixtures/config/browser-custom-html/vitest.config.non-existing.ts diff --git a/test/config/fixtures/browser-define/basic.test.ts b/test/cli/fixtures/config/browser-define/basic.test.ts similarity index 100% rename from test/config/fixtures/browser-define/basic.test.ts rename to test/cli/fixtures/config/browser-define/basic.test.ts diff --git a/test/config/fixtures/browser-define/vitest.config.ts b/test/cli/fixtures/config/browser-define/vitest.config.ts similarity index 96% rename from test/config/fixtures/browser-define/vitest.config.ts rename to test/cli/fixtures/config/browser-define/vitest.config.ts index 81fe31b6cd74..98f5b13abd5d 100644 --- a/test/config/fixtures/browser-define/vitest.config.ts +++ b/test/cli/fixtures/config/browser-define/vitest.config.ts @@ -10,6 +10,7 @@ let config = defineConfig({ browser: { enabled: true, provider: playwright(), + headless: true, instances: [ { browser: 'chromium' }, ], diff --git a/test/config/fixtures/watch-trigger-pattern/folder/fs/basic.test.ts b/test/cli/fixtures/config/watch-trigger-pattern/folder/fs/basic.test.ts similarity index 100% rename from test/config/fixtures/watch-trigger-pattern/folder/fs/basic.test.ts rename to test/cli/fixtures/config/watch-trigger-pattern/folder/fs/basic.test.ts diff --git a/test/config/fixtures/watch-trigger-pattern/folder/fs/text.txt b/test/cli/fixtures/config/watch-trigger-pattern/folder/fs/text.txt similarity index 100% rename from test/config/fixtures/watch-trigger-pattern/folder/fs/text.txt rename to test/cli/fixtures/config/watch-trigger-pattern/folder/fs/text.txt diff --git a/test/config/fixtures/watch-trigger-pattern/vitest.config.ts b/test/cli/fixtures/config/watch-trigger-pattern/vitest.config.ts similarity index 100% rename from test/config/fixtures/watch-trigger-pattern/vitest.config.ts rename to test/cli/fixtures/config/watch-trigger-pattern/vitest.config.ts diff --git a/test/cli/fixtures/custom-runner/test-runner.ts b/test/cli/fixtures/custom-runner/test-runner.ts index 611671a26f2c..b1d8ebdc3c75 100644 --- a/test/cli/fixtures/custom-runner/test-runner.ts +++ b/test/cli/fixtures/custom-runner/test-runner.ts @@ -1,8 +1,8 @@ -import type { Suite, TestContext } from '@vitest/runner' -import { VitestTestRunner } from 'vitest/runners' +import type { TestContext } from '@vitest/runner' +import { TestRunner } from 'vitest' import { getSuiteNames } from './utils'; -class CustomTestRunner extends VitestTestRunner { +class CustomTestRunner extends TestRunner { extendTaskContext(context: TestContext) { super.extendTaskContext(context); (context as any).__suiteNames = getSuiteNames(context.task.suite) diff --git a/test/global-setup/globalSetup/another-vite-instance.ts b/test/cli/fixtures/global-setup/globalSetup/another-vite-instance.ts similarity index 100% rename from test/global-setup/globalSetup/another-vite-instance.ts rename to test/cli/fixtures/global-setup/globalSetup/another-vite-instance.ts diff --git a/test/global-setup/globalSetup/default-export.js b/test/cli/fixtures/global-setup/globalSetup/default-export.js similarity index 100% rename from test/global-setup/globalSetup/default-export.js rename to test/cli/fixtures/global-setup/globalSetup/default-export.js diff --git a/test/global-setup/globalSetup/named-exports.js b/test/cli/fixtures/global-setup/globalSetup/named-exports.js similarity index 100% rename from test/global-setup/globalSetup/named-exports.js rename to test/cli/fixtures/global-setup/globalSetup/named-exports.js diff --git a/test/global-setup/globalSetup/server.ts b/test/cli/fixtures/global-setup/globalSetup/server.ts similarity index 100% rename from test/global-setup/globalSetup/server.ts rename to test/cli/fixtures/global-setup/globalSetup/server.ts diff --git a/test/global-setup/globalSetup/ts-with-imports.ts b/test/cli/fixtures/global-setup/globalSetup/ts-with-imports.ts similarity index 100% rename from test/global-setup/globalSetup/ts-with-imports.ts rename to test/cli/fixtures/global-setup/globalSetup/ts-with-imports.ts diff --git a/test/global-setup/globalSetup/update-env.ts b/test/cli/fixtures/global-setup/globalSetup/update-env.ts similarity index 100% rename from test/global-setup/globalSetup/update-env.ts rename to test/cli/fixtures/global-setup/globalSetup/update-env.ts diff --git a/test/global-setup/index.html b/test/cli/fixtures/global-setup/index.html similarity index 100% rename from test/global-setup/index.html rename to test/cli/fixtures/global-setup/index.html diff --git a/test/global-setup/setupFiles/add-something-to-global.ts b/test/cli/fixtures/global-setup/setupFiles/add-something-to-global.ts similarity index 100% rename from test/global-setup/setupFiles/add-something-to-global.ts rename to test/cli/fixtures/global-setup/setupFiles/add-something-to-global.ts diff --git a/test/global-setup/setupFiles/without-relative-path-prefix.ts b/test/cli/fixtures/global-setup/setupFiles/without-relative-path-prefix.ts similarity index 100% rename from test/global-setup/setupFiles/without-relative-path-prefix.ts rename to test/cli/fixtures/global-setup/setupFiles/without-relative-path-prefix.ts diff --git a/test/global-setup/test/global-setup.test.ts b/test/cli/fixtures/global-setup/test/global-setup.test.ts similarity index 100% rename from test/global-setup/test/global-setup.test.ts rename to test/cli/fixtures/global-setup/test/global-setup.test.ts diff --git a/test/global-setup/test/setup-files.test.ts b/test/cli/fixtures/global-setup/test/setup-files.test.ts similarity index 100% rename from test/global-setup/test/setup-files.test.ts rename to test/cli/fixtures/global-setup/test/setup-files.test.ts diff --git a/test/public-mocker/fixtures/automock/index.html b/test/cli/fixtures/mocker/automock/index.html similarity index 100% rename from test/public-mocker/fixtures/automock/index.html rename to test/cli/fixtures/mocker/automock/index.html diff --git a/test/public-mocker/fixtures/automock/index.js b/test/cli/fixtures/mocker/automock/index.js similarity index 100% rename from test/public-mocker/fixtures/automock/index.js rename to test/cli/fixtures/mocker/automock/index.js diff --git a/test/public-mocker/fixtures/automock/test.js b/test/cli/fixtures/mocker/automock/test.js similarity index 100% rename from test/public-mocker/fixtures/automock/test.js rename to test/cli/fixtures/mocker/automock/test.js diff --git a/test/public-mocker/fixtures/autospy/index.html b/test/cli/fixtures/mocker/autospy/index.html similarity index 100% rename from test/public-mocker/fixtures/autospy/index.html rename to test/cli/fixtures/mocker/autospy/index.html diff --git a/test/public-mocker/fixtures/autospy/index.js b/test/cli/fixtures/mocker/autospy/index.js similarity index 100% rename from test/public-mocker/fixtures/autospy/index.js rename to test/cli/fixtures/mocker/autospy/index.js diff --git a/test/public-mocker/fixtures/autospy/test.js b/test/cli/fixtures/mocker/autospy/test.js similarity index 100% rename from test/public-mocker/fixtures/autospy/test.js rename to test/cli/fixtures/mocker/autospy/test.js diff --git a/test/public-mocker/fixtures/manual-mock/index.html b/test/cli/fixtures/mocker/manual-mock/index.html similarity index 100% rename from test/public-mocker/fixtures/manual-mock/index.html rename to test/cli/fixtures/mocker/manual-mock/index.html diff --git a/test/public-mocker/fixtures/manual-mock/index.js b/test/cli/fixtures/mocker/manual-mock/index.js similarity index 100% rename from test/public-mocker/fixtures/manual-mock/index.js rename to test/cli/fixtures/mocker/manual-mock/index.js diff --git a/test/public-mocker/fixtures/manual-mock/test.js b/test/cli/fixtures/mocker/manual-mock/test.js similarity index 100% rename from test/public-mocker/fixtures/manual-mock/test.js rename to test/cli/fixtures/mocker/manual-mock/test.js diff --git a/test/public-mocker/fixtures/redirect/__mocks__/test.js b/test/cli/fixtures/mocker/redirect/__mocks__/test.js similarity index 100% rename from test/public-mocker/fixtures/redirect/__mocks__/test.js rename to test/cli/fixtures/mocker/redirect/__mocks__/test.js diff --git a/test/public-mocker/fixtures/redirect/index.html b/test/cli/fixtures/mocker/redirect/index.html similarity index 100% rename from test/public-mocker/fixtures/redirect/index.html rename to test/cli/fixtures/mocker/redirect/index.html diff --git a/test/public-mocker/fixtures/redirect/index.js b/test/cli/fixtures/mocker/redirect/index.js similarity index 100% rename from test/public-mocker/fixtures/redirect/index.js rename to test/cli/fixtures/mocker/redirect/index.js diff --git a/test/public-mocker/fixtures/redirect/test.js b/test/cli/fixtures/mocker/redirect/test.js similarity index 100% rename from test/public-mocker/fixtures/redirect/test.js rename to test/cli/fixtures/mocker/redirect/test.js diff --git a/test/cli/fixtures/optimize-deps/ssr.test.ts b/test/cli/fixtures/optimize-deps/ssr.test.ts new file mode 100644 index 000000000000..783e436a9b99 --- /dev/null +++ b/test/cli/fixtures/optimize-deps/ssr.test.ts @@ -0,0 +1,14 @@ +// @vitest-environment node + +// @ts-expect-error untyped +import { importMetaUrl } from '@test/test-dep-url' + +import { expect, test } from 'vitest' + +// TODO: flaky on Windows +// https://github.com/vitest-dev/vitest/pull/5215#discussion_r1492066033 +test('import.meta.url', () => { + if (process.platform !== 'win32') { + expect(importMetaUrl).toContain('/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/deps_ssr/') + } +}) diff --git a/test/optimize-deps/test/web.test.ts b/test/cli/fixtures/optimize-deps/web.test.ts similarity index 82% rename from test/optimize-deps/test/web.test.ts rename to test/cli/fixtures/optimize-deps/web.test.ts index 69718a7374a0..dac8dab588d3 100644 --- a/test/optimize-deps/test/web.test.ts +++ b/test/cli/fixtures/optimize-deps/web.test.ts @@ -1,7 +1,7 @@ // @vitest-environment happy-dom // @ts-expect-error untyped -import { importMetaUrl } from '@vitest/test-dep-url' +import { importMetaUrl } from '@test/test-dep-url' import { expect, test } from 'vitest' diff --git a/test/config/fixtures/project/packages/project_1/base.test.ts b/test/cli/fixtures/project/packages/project_1/base.test.ts similarity index 100% rename from test/config/fixtures/project/packages/project_1/base.test.ts rename to test/cli/fixtures/project/packages/project_1/base.test.ts diff --git a/test/config/fixtures/project/packages/project_2/base.test.ts b/test/cli/fixtures/project/packages/project_2/base.test.ts similarity index 100% rename from test/config/fixtures/project/packages/project_2/base.test.ts rename to test/cli/fixtures/project/packages/project_2/base.test.ts diff --git a/test/config/fixtures/project/packages/space_1/base.test.ts b/test/cli/fixtures/project/packages/space_1/base.test.ts similarity index 100% rename from test/config/fixtures/project/packages/space_1/base.test.ts rename to test/cli/fixtures/project/packages/space_1/base.test.ts diff --git a/test/config/fixtures/project/vitest.config.ts b/test/cli/fixtures/project/vitest.config.ts similarity index 100% rename from test/config/fixtures/project/vitest.config.ts rename to test/cli/fixtures/project/vitest.config.ts diff --git a/test/reporters/fixtures/.gitignore b/test/cli/fixtures/reporters/.gitignore similarity index 100% rename from test/reporters/fixtures/.gitignore rename to test/cli/fixtures/reporters/.gitignore diff --git a/test/reporters/fixtures/all-passing-or-skipped.test.ts b/test/cli/fixtures/reporters/all-passing-or-skipped.test.ts similarity index 100% rename from test/reporters/fixtures/all-passing-or-skipped.test.ts rename to test/cli/fixtures/reporters/all-passing-or-skipped.test.ts diff --git a/test/reporters/fixtures/all-skipped.test.ts b/test/cli/fixtures/reporters/all-skipped.test.ts similarity index 100% rename from test/reporters/fixtures/all-skipped.test.ts rename to test/cli/fixtures/reporters/all-skipped.test.ts diff --git a/test/cli/fixtures/reporters/basic/basic.test.ts b/test/cli/fixtures/reporters/basic/basic.test.ts new file mode 100644 index 000000000000..21d04d9e39e4 --- /dev/null +++ b/test/cli/fixtures/reporters/basic/basic.test.ts @@ -0,0 +1,5 @@ +import { test } from 'vitest'; + +test('basic reporter test', () => { + // This is a placeholder test file for basic reporter tests. +}) \ No newline at end of file diff --git a/test/cli/fixtures/reporters/basic/vitest.config.override.js b/test/cli/fixtures/reporters/basic/vitest.config.override.js new file mode 100644 index 000000000000..5ba405748bf7 --- /dev/null +++ b/test/cli/fixtures/reporters/basic/vitest.config.override.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + reporters: [ + { + onInit(vitest) { + vitest.logger.log('hello from override') + }, + }, + ], + }, +}) \ No newline at end of file diff --git a/test/reporters/fixtures/better-testsuite-name/space-1/test/base.test.ts b/test/cli/fixtures/reporters/better-testsuite-name/space-1/test/base.test.ts similarity index 100% rename from test/reporters/fixtures/better-testsuite-name/space-1/test/base.test.ts rename to test/cli/fixtures/reporters/better-testsuite-name/space-1/test/base.test.ts diff --git a/test/reporters/fixtures/better-testsuite-name/space-2/test/base.test.ts b/test/cli/fixtures/reporters/better-testsuite-name/space-2/test/base.test.ts similarity index 100% rename from test/reporters/fixtures/better-testsuite-name/space-2/test/base.test.ts rename to test/cli/fixtures/reporters/better-testsuite-name/space-2/test/base.test.ts diff --git a/test/reporters/fixtures/better-testsuite-name/vitest.config.ts b/test/cli/fixtures/reporters/better-testsuite-name/vitest.config.ts similarity index 100% rename from test/reporters/fixtures/better-testsuite-name/vitest.config.ts rename to test/cli/fixtures/reporters/better-testsuite-name/vitest.config.ts diff --git a/test/reporters/fixtures/code-frame-line-limit.test.ts b/test/cli/fixtures/reporters/code-frame-line-limit.test.ts similarity index 100% rename from test/reporters/fixtures/code-frame-line-limit.test.ts rename to test/cli/fixtures/reporters/code-frame-line-limit.test.ts diff --git a/test/reporters/fixtures/console-interleave.test.ts b/test/cli/fixtures/reporters/console-interleave.test.ts similarity index 100% rename from test/reporters/fixtures/console-interleave.test.ts rename to test/cli/fixtures/reporters/console-interleave.test.ts diff --git a/test/reporters/fixtures/console-simple.test.ts b/test/cli/fixtures/reporters/console-simple.test.ts similarity index 100% rename from test/reporters/fixtures/console-simple.test.ts rename to test/cli/fixtures/reporters/console-simple.test.ts diff --git a/test/reporters/fixtures/console-some-failing.test.ts b/test/cli/fixtures/reporters/console-some-failing.test.ts similarity index 100% rename from test/reporters/fixtures/console-some-failing.test.ts rename to test/cli/fixtures/reporters/console-some-failing.test.ts diff --git a/test/reporters/fixtures/console.test.ts b/test/cli/fixtures/reporters/console.test.ts similarity index 100% rename from test/reporters/fixtures/console.test.ts rename to test/cli/fixtures/reporters/console.test.ts diff --git a/test/reporters/fixtures/custom-diff-config.test.ts b/test/cli/fixtures/reporters/custom-diff-config.test.ts similarity index 100% rename from test/reporters/fixtures/custom-diff-config.test.ts rename to test/cli/fixtures/reporters/custom-diff-config.test.ts diff --git a/test/reporters/fixtures/custom-diff-config.ts b/test/cli/fixtures/reporters/custom-diff-config.ts similarity index 100% rename from test/reporters/fixtures/custom-diff-config.ts rename to test/cli/fixtures/reporters/custom-diff-config.ts diff --git a/test/reporters/fixtures/custom-error/basic.test.ts b/test/cli/fixtures/reporters/custom-error/basic.test.ts similarity index 100% rename from test/reporters/fixtures/custom-error/basic.test.ts rename to test/cli/fixtures/reporters/custom-error/basic.test.ts diff --git a/test/benchmark/vitest.config.ts b/test/cli/fixtures/reporters/custom-error/vitest.config.ts similarity index 100% rename from test/benchmark/vitest.config.ts rename to test/cli/fixtures/reporters/custom-error/vitest.config.ts diff --git a/test/reporters/fixtures/default/a.test.ts b/test/cli/fixtures/reporters/default/a.test.ts similarity index 100% rename from test/reporters/fixtures/default/a.test.ts rename to test/cli/fixtures/reporters/default/a.test.ts diff --git a/test/reporters/fixtures/default/b1.test.ts b/test/cli/fixtures/reporters/default/b1.test.ts similarity index 100% rename from test/reporters/fixtures/default/b1.test.ts rename to test/cli/fixtures/reporters/default/b1.test.ts diff --git a/test/reporters/fixtures/default/b2.test.ts b/test/cli/fixtures/reporters/default/b2.test.ts similarity index 100% rename from test/reporters/fixtures/default/b2.test.ts rename to test/cli/fixtures/reporters/default/b2.test.ts diff --git a/test/reporters/fixtures/default/print-index.test.ts b/test/cli/fixtures/reporters/default/print-index.test.ts similarity index 100% rename from test/reporters/fixtures/default/print-index.test.ts rename to test/cli/fixtures/reporters/default/print-index.test.ts diff --git a/test/reporters/fixtures/default/vitest.config.ts b/test/cli/fixtures/reporters/default/vitest.config.ts similarity index 72% rename from test/reporters/fixtures/default/vitest.config.ts rename to test/cli/fixtures/reporters/default/vitest.config.ts index a8211e3941fd..4fe91e3cb133 100644 --- a/test/reporters/fixtures/default/vitest.config.ts +++ b/test/cli/fixtures/reporters/default/vitest.config.ts @@ -5,6 +5,6 @@ process.stdin.setRawMode = () => process.stdin export default defineConfig({ test: { - reporters: './MockReporter', + reporters: [['default', { isTTY: true, summary: false }]], }, }) diff --git a/test/reporters/fixtures/duration/basic.test.ts b/test/cli/fixtures/reporters/duration/basic.test.ts similarity index 100% rename from test/reporters/fixtures/duration/basic.test.ts rename to test/cli/fixtures/reporters/duration/basic.test.ts diff --git a/test/reporters/fixtures/duration/vitest.config.ts b/test/cli/fixtures/reporters/duration/vitest.config.ts similarity index 100% rename from test/reporters/fixtures/duration/vitest.config.ts rename to test/cli/fixtures/reporters/duration/vitest.config.ts diff --git a/test/reporters/fixtures/error-props/basic.test.ts b/test/cli/fixtures/reporters/error-props/basic.test.ts similarity index 100% rename from test/reporters/fixtures/error-props/basic.test.ts rename to test/cli/fixtures/reporters/error-props/basic.test.ts diff --git a/test/reporters/fixtures/error-to-json.test.ts b/test/cli/fixtures/reporters/error-to-json.test.ts similarity index 100% rename from test/reporters/fixtures/error-to-json.test.ts rename to test/cli/fixtures/reporters/error-to-json.test.ts diff --git a/test/reporters/fixtures/error.test.ts b/test/cli/fixtures/reporters/error.test.ts similarity index 100% rename from test/reporters/fixtures/error.test.ts rename to test/cli/fixtures/reporters/error.test.ts diff --git a/test/reporters/fixtures/function-as-name.bench.ts b/test/cli/fixtures/reporters/function-as-name.bench.ts similarity index 100% rename from test/reporters/fixtures/function-as-name.bench.ts rename to test/cli/fixtures/reporters/function-as-name.bench.ts diff --git a/test/reporters/fixtures/function-as-name.test.ts b/test/cli/fixtures/reporters/function-as-name.test.ts similarity index 100% rename from test/reporters/fixtures/function-as-name.test.ts rename to test/cli/fixtures/reporters/function-as-name.test.ts diff --git a/test/reporters/src/custom-reporter.js b/test/cli/fixtures/reporters/implementations/custom-reporter.js similarity index 100% rename from test/reporters/src/custom-reporter.js rename to test/cli/fixtures/reporters/implementations/custom-reporter.js diff --git a/test/reporters/src/custom-reporter.ts b/test/cli/fixtures/reporters/implementations/custom-reporter.ts similarity index 100% rename from test/reporters/src/custom-reporter.ts rename to test/cli/fixtures/reporters/implementations/custom-reporter.ts diff --git a/test/reporters/fixtures/import-durations-25ms-throws.ts b/test/cli/fixtures/reporters/import-durations-25ms-throws.ts similarity index 100% rename from test/reporters/fixtures/import-durations-25ms-throws.ts rename to test/cli/fixtures/reporters/import-durations-25ms-throws.ts diff --git a/test/reporters/fixtures/import-durations-25ms.ts b/test/cli/fixtures/reporters/import-durations-25ms.ts similarity index 100% rename from test/reporters/fixtures/import-durations-25ms.ts rename to test/cli/fixtures/reporters/import-durations-25ms.ts diff --git a/test/reporters/fixtures/import-durations-50ms.ts b/test/cli/fixtures/reporters/import-durations-50ms.ts similarity index 100% rename from test/reporters/fixtures/import-durations-50ms.ts rename to test/cli/fixtures/reporters/import-durations-50ms.ts diff --git a/test/reporters/fixtures/import-durations-throws.test.ts b/test/cli/fixtures/reporters/import-durations-throws.test.ts similarity index 100% rename from test/reporters/fixtures/import-durations-throws.test.ts rename to test/cli/fixtures/reporters/import-durations-throws.test.ts diff --git a/test/reporters/fixtures/import-durations.test.ts b/test/cli/fixtures/reporters/import-durations.test.ts similarity index 100% rename from test/reporters/fixtures/import-durations.test.ts rename to test/cli/fixtures/reporters/import-durations.test.ts diff --git a/test/reporters/fixtures/indicator-position.test.js b/test/cli/fixtures/reporters/indicator-position.test.js similarity index 100% rename from test/reporters/fixtures/indicator-position.test.js rename to test/cli/fixtures/reporters/indicator-position.test.js diff --git a/test/reporters/fixtures/invalid-diff-config.ts b/test/cli/fixtures/reporters/invalid-diff-config.ts similarity index 100% rename from test/reporters/fixtures/invalid-diff-config.ts rename to test/cli/fixtures/reporters/invalid-diff-config.ts diff --git a/test/reporters/fixtures/json-fail-import.test.ts b/test/cli/fixtures/reporters/json-fail-import.test.ts similarity index 100% rename from test/reporters/fixtures/json-fail-import.test.ts rename to test/cli/fixtures/reporters/json-fail-import.test.ts diff --git a/test/reporters/fixtures/json-fail.test.ts b/test/cli/fixtures/reporters/json-fail.test.ts similarity index 100% rename from test/reporters/fixtures/json-fail.test.ts rename to test/cli/fixtures/reporters/json-fail.test.ts diff --git a/test/reporters/fixtures/junit-cli-options/sample.test.ts b/test/cli/fixtures/reporters/junit-cli-options/sample.test.ts similarity index 100% rename from test/reporters/fixtures/junit-cli-options/sample.test.ts rename to test/cli/fixtures/reporters/junit-cli-options/sample.test.ts diff --git a/test/reporters/fixtures/junit-cli-options/vitest.config.ts b/test/cli/fixtures/reporters/junit-cli-options/vitest.config.ts similarity index 100% rename from test/reporters/fixtures/junit-cli-options/vitest.config.ts rename to test/cli/fixtures/reporters/junit-cli-options/vitest.config.ts diff --git a/test/reporters/fixtures/long-loading-task.test.ts b/test/cli/fixtures/reporters/long-loading-task.test.ts similarity index 100% rename from test/reporters/fixtures/long-loading-task.test.ts rename to test/cli/fixtures/reporters/long-loading-task.test.ts diff --git a/test/reporters/fixtures/many-errors/basic.test.ts b/test/cli/fixtures/reporters/many-errors/basic.test.ts similarity index 100% rename from test/reporters/fixtures/many-errors/basic.test.ts rename to test/cli/fixtures/reporters/many-errors/basic.test.ts diff --git a/test/reporters/fixtures/merge-errors/basic.test.ts b/test/cli/fixtures/reporters/merge-errors/basic.test.ts similarity index 100% rename from test/reporters/fixtures/merge-errors/basic.test.ts rename to test/cli/fixtures/reporters/merge-errors/basic.test.ts diff --git a/test/reporters/fixtures/merge-reports/first.test.ts b/test/cli/fixtures/reporters/merge-reports/first.test.ts similarity index 100% rename from test/reporters/fixtures/merge-reports/first.test.ts rename to test/cli/fixtures/reporters/merge-reports/first.test.ts diff --git a/test/reporters/fixtures/merge-reports/second.test.ts b/test/cli/fixtures/reporters/merge-reports/second.test.ts similarity index 100% rename from test/reporters/fixtures/merge-reports/second.test.ts rename to test/cli/fixtures/reporters/merge-reports/second.test.ts diff --git a/test/reporters/fixtures/merge-reports/vitest.config.js b/test/cli/fixtures/reporters/merge-reports/vitest.config.js similarity index 100% rename from test/reporters/fixtures/merge-reports/vitest.config.js rename to test/cli/fixtures/reporters/merge-reports/vitest.config.js diff --git a/test/reporters/fixtures/metadata/metadata.test.ts b/test/cli/fixtures/reporters/metadata/metadata.test.ts similarity index 100% rename from test/reporters/fixtures/metadata/metadata.test.ts rename to test/cli/fixtures/reporters/metadata/metadata.test.ts diff --git a/test/reporters/fixtures/metadata/vitest.config.ts b/test/cli/fixtures/reporters/metadata/vitest.config.ts similarity index 100% rename from test/reporters/fixtures/metadata/vitest.config.ts rename to test/cli/fixtures/reporters/metadata/vitest.config.ts diff --git a/test/reporters/fixtures/ok.test.ts b/test/cli/fixtures/reporters/ok.test.ts similarity index 100% rename from test/reporters/fixtures/ok.test.ts rename to test/cli/fixtures/reporters/ok.test.ts diff --git a/test/reporters/fixtures/pass-and-skip-test-suites.test.ts b/test/cli/fixtures/reporters/pass-and-skip-test-suites.test.ts similarity index 100% rename from test/reporters/fixtures/pass-and-skip-test-suites.test.ts rename to test/cli/fixtures/reporters/pass-and-skip-test-suites.test.ts diff --git a/test/reporters/fixtures/project-name/example.test.ts b/test/cli/fixtures/reporters/project-name/example.test.ts similarity index 100% rename from test/reporters/fixtures/project-name/example.test.ts rename to test/cli/fixtures/reporters/project-name/example.test.ts diff --git a/test/reporters/fixtures/project-name/vitest.config.ts b/test/cli/fixtures/reporters/project-name/vitest.config.ts similarity index 100% rename from test/reporters/fixtures/project-name/vitest.config.ts rename to test/cli/fixtures/reporters/project-name/vitest.config.ts diff --git a/test/reporters/fixtures/repeats.test.ts b/test/cli/fixtures/reporters/repeats.test.ts similarity index 100% rename from test/reporters/fixtures/repeats.test.ts rename to test/cli/fixtures/reporters/repeats.test.ts diff --git a/test/reporters/fixtures/retry.test.ts b/test/cli/fixtures/reporters/retry.test.ts similarity index 100% rename from test/reporters/fixtures/retry.test.ts rename to test/cli/fixtures/reporters/retry.test.ts diff --git a/test/reporters/fixtures/some-failing.test.ts b/test/cli/fixtures/reporters/some-failing.test.ts similarity index 100% rename from test/reporters/fixtures/some-failing.test.ts rename to test/cli/fixtures/reporters/some-failing.test.ts diff --git a/test/reporters/fixtures/suite-hook-failure/basic.test.ts b/test/cli/fixtures/reporters/suite-hook-failure/basic.test.ts similarity index 100% rename from test/reporters/fixtures/suite-hook-failure/basic.test.ts rename to test/cli/fixtures/reporters/suite-hook-failure/basic.test.ts diff --git a/test/reporters/fixtures/custom-error/vitest.config.ts b/test/cli/fixtures/reporters/suite-hook-failure/vitest.config.ts similarity index 100% rename from test/reporters/fixtures/custom-error/vitest.config.ts rename to test/cli/fixtures/reporters/suite-hook-failure/vitest.config.ts diff --git a/test/reporters/fixtures/test-for-title.test.ts b/test/cli/fixtures/reporters/test-for-title.test.ts similarity index 100% rename from test/reporters/fixtures/test-for-title.test.ts rename to test/cli/fixtures/reporters/test-for-title.test.ts diff --git a/test/reporters/fixtures/verbose/example-1.test.ts b/test/cli/fixtures/reporters/verbose/example-1.test.ts similarity index 100% rename from test/reporters/fixtures/verbose/example-1.test.ts rename to test/cli/fixtures/reporters/verbose/example-1.test.ts diff --git a/test/reporters/fixtures/verbose/example-2.test.ts b/test/cli/fixtures/reporters/verbose/example-2.test.ts similarity index 100% rename from test/reporters/fixtures/verbose/example-2.test.ts rename to test/cli/fixtures/reporters/verbose/example-2.test.ts diff --git a/test/reporters/fixtures/vitest.config.ts b/test/cli/fixtures/reporters/vitest.config.ts similarity index 100% rename from test/reporters/fixtures/vitest.config.ts rename to test/cli/fixtures/reporters/vitest.config.ts diff --git a/test/reporters/fixtures/with-syntax-error.test.js b/test/cli/fixtures/reporters/with-syntax-error.test.js similarity index 100% rename from test/reporters/fixtures/with-syntax-error.test.js rename to test/cli/fixtures/reporters/with-syntax-error.test.js diff --git a/test/config/fixtures/rollup-error/not-found-export.test.ts b/test/cli/fixtures/rollup-error/not-found-export.test.ts similarity index 100% rename from test/config/fixtures/rollup-error/not-found-export.test.ts rename to test/cli/fixtures/rollup-error/not-found-export.test.ts diff --git a/test/config/fixtures/rollup-error/not-found-package.test.ts b/test/cli/fixtures/rollup-error/not-found-package.test.ts similarity index 100% rename from test/config/fixtures/rollup-error/not-found-package.test.ts rename to test/cli/fixtures/rollup-error/not-found-package.test.ts diff --git a/test/cli/fixtures/rollup-error/vitest.config.ts b/test/cli/fixtures/rollup-error/vitest.config.ts new file mode 100644 index 000000000000..8775d53ad116 --- /dev/null +++ b/test/cli/fixtures/rollup-error/vitest.config.ts @@ -0,0 +1,6 @@ +import { defineConfig } from "vitest/config"; + +// pnpm -C test/cli test -- --root fixtures/rollup-error --environment happy-dom +// pnpm -C test/cli test -- --root fixtures/rollup-error --environment node + +export default defineConfig({}) diff --git a/test/watch/fixtures/42.txt b/test/cli/fixtures/watch/42.txt similarity index 50% rename from test/watch/fixtures/42.txt rename to test/cli/fixtures/watch/42.txt index d81cc0710eb6..41bed4df1869 100644 --- a/test/watch/fixtures/42.txt +++ b/test/cli/fixtures/watch/42.txt @@ -1 +1,4 @@ 42 + + + diff --git a/test/watch/fixtures/example.test.ts b/test/cli/fixtures/watch/example.test.ts similarity index 100% rename from test/watch/fixtures/example.test.ts rename to test/cli/fixtures/watch/example.test.ts diff --git a/test/watch/fixtures/example.ts b/test/cli/fixtures/watch/example.ts similarity index 100% rename from test/watch/fixtures/example.ts rename to test/cli/fixtures/watch/example.ts diff --git a/test/watch/fixtures/force-watch/trigger.js b/test/cli/fixtures/watch/force-watch/trigger.js similarity index 100% rename from test/watch/fixtures/force-watch/trigger.js rename to test/cli/fixtures/watch/force-watch/trigger.js diff --git a/test/watch/fixtures/global-setup.ts b/test/cli/fixtures/watch/global-setup.ts similarity index 100% rename from test/watch/fixtures/global-setup.ts rename to test/cli/fixtures/watch/global-setup.ts diff --git a/test/watch/fixtures/math.test.ts b/test/cli/fixtures/watch/math.test.ts similarity index 100% rename from test/watch/fixtures/math.test.ts rename to test/cli/fixtures/watch/math.test.ts diff --git a/test/watch/fixtures/math.ts b/test/cli/fixtures/watch/math.ts similarity index 100% rename from test/watch/fixtures/math.ts rename to test/cli/fixtures/watch/math.ts diff --git a/test/watch/fixtures/vitest.config.ts b/test/cli/fixtures/watch/vitest.config.ts similarity index 84% rename from test/watch/fixtures/vitest.config.ts rename to test/cli/fixtures/watch/vitest.config.ts index 864dd0acabc5..184e5719a9d6 100644 --- a/test/watch/fixtures/vitest.config.ts +++ b/test/cli/fixtures/watch/vitest.config.ts @@ -18,9 +18,5 @@ export default defineConfig({ forceRerunTriggers: [ '**/force-watch/**', ], - - globalSetup: process.env.TEST_GLOBAL_SETUP - ? './global-setup.ts' - : undefined, }, }) diff --git a/test/config/fixtures/workspace/api/basic.test.ts b/test/cli/fixtures/workspace/api/basic.test.ts similarity index 100% rename from test/config/fixtures/workspace/api/basic.test.ts rename to test/cli/fixtures/workspace/api/basic.test.ts diff --git a/test/config/fixtures/workspace/api/vite.custom.config.js b/test/cli/fixtures/workspace/api/vite.custom.config.js similarity index 100% rename from test/config/fixtures/workspace/api/vite.custom.config.js rename to test/cli/fixtures/workspace/api/vite.custom.config.js diff --git a/test/config/fixtures/workspace/config-empty/vitest.config.js b/test/cli/fixtures/workspace/config-empty/vitest.config.js similarity index 100% rename from test/config/fixtures/workspace/config-empty/vitest.config.js rename to test/cli/fixtures/workspace/config-empty/vitest.config.js diff --git a/test/config/fixtures/workspace/config-extends/repro.test.js b/test/cli/fixtures/workspace/config-extends/repro.test.js similarity index 100% rename from test/config/fixtures/workspace/config-extends/repro.test.js rename to test/cli/fixtures/workspace/config-extends/repro.test.js diff --git a/test/config/fixtures/workspace/config-extends/vitest.config.ts b/test/cli/fixtures/workspace/config-extends/vitest.config.ts similarity index 100% rename from test/config/fixtures/workspace/config-extends/vitest.config.ts rename to test/cli/fixtures/workspace/config-extends/vitest.config.ts diff --git a/test/config/fixtures/workspace/config-import-analysis/dep.ts b/test/cli/fixtures/workspace/config-import-analysis/dep.ts similarity index 100% rename from test/config/fixtures/workspace/config-import-analysis/dep.ts rename to test/cli/fixtures/workspace/config-import-analysis/dep.ts diff --git a/test/config/fixtures/workspace/config-import-analysis/packages/a/package.json b/test/cli/fixtures/workspace/config-import-analysis/packages/a/package.json similarity index 100% rename from test/config/fixtures/workspace/config-import-analysis/packages/a/package.json rename to test/cli/fixtures/workspace/config-import-analysis/packages/a/package.json diff --git a/test/config/fixtures/workspace/config-import-analysis/packages/a/test.test.ts b/test/cli/fixtures/workspace/config-import-analysis/packages/a/test.test.ts similarity index 100% rename from test/config/fixtures/workspace/config-import-analysis/packages/a/test.test.ts rename to test/cli/fixtures/workspace/config-import-analysis/packages/a/test.test.ts diff --git a/test/config/fixtures/workspace/config-import-analysis/vitest.config.ts b/test/cli/fixtures/workspace/config-import-analysis/vitest.config.ts similarity index 100% rename from test/config/fixtures/workspace/config-import-analysis/vitest.config.ts rename to test/cli/fixtures/workspace/config-import-analysis/vitest.config.ts diff --git a/test/config/fixtures/workspace/invalid-duplicate-configs/vitest.config.one.js b/test/cli/fixtures/workspace/invalid-duplicate-configs/vitest.config.one.js similarity index 100% rename from test/config/fixtures/workspace/invalid-duplicate-configs/vitest.config.one.js rename to test/cli/fixtures/workspace/invalid-duplicate-configs/vitest.config.one.js diff --git a/test/config/fixtures/workspace/invalid-duplicate-configs/vitest.config.ts b/test/cli/fixtures/workspace/invalid-duplicate-configs/vitest.config.ts similarity index 100% rename from test/config/fixtures/workspace/invalid-duplicate-configs/vitest.config.ts rename to test/cli/fixtures/workspace/invalid-duplicate-configs/vitest.config.ts diff --git a/test/config/fixtures/workspace/invalid-duplicate-configs/vitest.config.two.js b/test/cli/fixtures/workspace/invalid-duplicate-configs/vitest.config.two.js similarity index 100% rename from test/config/fixtures/workspace/invalid-duplicate-configs/vitest.config.two.js rename to test/cli/fixtures/workspace/invalid-duplicate-configs/vitest.config.two.js diff --git a/test/config/fixtures/workspace/invalid-duplicate-inline/vitest.config.ts b/test/cli/fixtures/workspace/invalid-duplicate-inline/vitest.config.ts similarity index 100% rename from test/config/fixtures/workspace/invalid-duplicate-inline/vitest.config.ts rename to test/cli/fixtures/workspace/invalid-duplicate-inline/vitest.config.ts diff --git a/test/config/fixtures/workspace/invalid-non-existing-config/vitest.config.ts b/test/cli/fixtures/workspace/invalid-non-existing-config/vitest.config.ts similarity index 100% rename from test/config/fixtures/workspace/invalid-non-existing-config/vitest.config.ts rename to test/cli/fixtures/workspace/invalid-non-existing-config/vitest.config.ts diff --git a/test/config/fixtures/workspace/negated/packages/a/package.json b/test/cli/fixtures/workspace/negated/packages/a/package.json similarity index 100% rename from test/config/fixtures/workspace/negated/packages/a/package.json rename to test/cli/fixtures/workspace/negated/packages/a/package.json diff --git a/test/config/fixtures/workspace/negated/packages/a/test.test.ts b/test/cli/fixtures/workspace/negated/packages/a/test.test.ts similarity index 100% rename from test/config/fixtures/workspace/negated/packages/a/test.test.ts rename to test/cli/fixtures/workspace/negated/packages/a/test.test.ts diff --git a/test/config/fixtures/workspace/negated/packages/b/package.json b/test/cli/fixtures/workspace/negated/packages/b/package.json similarity index 100% rename from test/config/fixtures/workspace/negated/packages/b/package.json rename to test/cli/fixtures/workspace/negated/packages/b/package.json diff --git a/test/config/fixtures/workspace/negated/packages/b/test.test.ts b/test/cli/fixtures/workspace/negated/packages/b/test.test.ts similarity index 100% rename from test/config/fixtures/workspace/negated/packages/b/test.test.ts rename to test/cli/fixtures/workspace/negated/packages/b/test.test.ts diff --git a/test/config/fixtures/workspace/negated/packages/c/package.json b/test/cli/fixtures/workspace/negated/packages/c/package.json similarity index 100% rename from test/config/fixtures/workspace/negated/packages/c/package.json rename to test/cli/fixtures/workspace/negated/packages/c/package.json diff --git a/test/config/fixtures/workspace/negated/packages/c/test.test.ts b/test/cli/fixtures/workspace/negated/packages/c/test.test.ts similarity index 100% rename from test/config/fixtures/workspace/negated/packages/c/test.test.ts rename to test/cli/fixtures/workspace/negated/packages/c/test.test.ts diff --git a/test/config/fixtures/workspace/negated/vitest.config.ts b/test/cli/fixtures/workspace/negated/vitest.config.ts similarity index 100% rename from test/config/fixtures/workspace/negated/vitest.config.ts rename to test/cli/fixtures/workspace/negated/vitest.config.ts diff --git a/test/config/fixtures/workspace/project-1/calculator-1.test.ts b/test/cli/fixtures/workspace/project-1/calculator-1.test.ts similarity index 100% rename from test/config/fixtures/workspace/project-1/calculator-1.test.ts rename to test/cli/fixtures/workspace/project-1/calculator-1.test.ts diff --git a/test/config/fixtures/workspace/project-2/calculator-2.test.ts b/test/cli/fixtures/workspace/project-2/calculator-2.test.ts similarity index 100% rename from test/config/fixtures/workspace/project-2/calculator-2.test.ts rename to test/cli/fixtures/workspace/project-2/calculator-2.test.ts diff --git a/test/config/fixtures/workspace/several-configs/test/1_test.test.ts b/test/cli/fixtures/workspace/several-configs/test/1_test.test.ts similarity index 100% rename from test/config/fixtures/workspace/several-configs/test/1_test.test.ts rename to test/cli/fixtures/workspace/several-configs/test/1_test.test.ts diff --git a/test/config/fixtures/workspace/several-configs/test/2_test.test.ts b/test/cli/fixtures/workspace/several-configs/test/2_test.test.ts similarity index 100% rename from test/config/fixtures/workspace/several-configs/test/2_test.test.ts rename to test/cli/fixtures/workspace/several-configs/test/2_test.test.ts diff --git a/test/config/fixtures/workspace/several-configs/test/vitest.config.one.ts b/test/cli/fixtures/workspace/several-configs/test/vitest.config.one.ts similarity index 100% rename from test/config/fixtures/workspace/several-configs/test/vitest.config.one.ts rename to test/cli/fixtures/workspace/several-configs/test/vitest.config.one.ts diff --git a/test/config/fixtures/workspace/several-configs/test/vitest.config.two.ts b/test/cli/fixtures/workspace/several-configs/test/vitest.config.two.ts similarity index 100% rename from test/config/fixtures/workspace/several-configs/test/vitest.config.two.ts rename to test/cli/fixtures/workspace/several-configs/test/vitest.config.two.ts diff --git a/test/config/fixtures/workspace/several-configs/vitest.config.ts b/test/cli/fixtures/workspace/several-configs/vitest.config.ts similarity index 100% rename from test/config/fixtures/workspace/several-configs/vitest.config.ts rename to test/cli/fixtures/workspace/several-configs/vitest.config.ts diff --git a/test/config/fixtures/workspace/several-folders/apps/b/package.json b/test/cli/fixtures/workspace/several-folders/apps/b/package.json similarity index 100% rename from test/config/fixtures/workspace/several-folders/apps/b/package.json rename to test/cli/fixtures/workspace/several-folders/apps/b/package.json diff --git a/test/config/fixtures/workspace/several-folders/apps/b/test.test.ts b/test/cli/fixtures/workspace/several-folders/apps/b/test.test.ts similarity index 100% rename from test/config/fixtures/workspace/several-folders/apps/b/test.test.ts rename to test/cli/fixtures/workspace/several-folders/apps/b/test.test.ts diff --git a/test/config/fixtures/workspace/several-folders/projects/a/package.json b/test/cli/fixtures/workspace/several-folders/projects/a/package.json similarity index 100% rename from test/config/fixtures/workspace/several-folders/projects/a/package.json rename to test/cli/fixtures/workspace/several-folders/projects/a/package.json diff --git a/test/config/fixtures/workspace/several-folders/projects/a/test.test.ts b/test/cli/fixtures/workspace/several-folders/projects/a/test.test.ts similarity index 100% rename from test/config/fixtures/workspace/several-folders/projects/a/test.test.ts rename to test/cli/fixtures/workspace/several-folders/projects/a/test.test.ts diff --git a/test/config/fixtures/workspace/several-folders/vitest.config.ts b/test/cli/fixtures/workspace/several-folders/vitest.config.ts similarity index 100% rename from test/config/fixtures/workspace/several-folders/vitest.config.ts rename to test/cli/fixtures/workspace/several-folders/vitest.config.ts diff --git a/test/cli/fixtures/ws-server-url/basic.test.ts b/test/cli/fixtures/ws-server-url/basic.test.ts deleted file mode 100644 index 9bb0283e10c6..000000000000 --- a/test/cli/fixtures/ws-server-url/basic.test.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { expect, test } from "vitest"; - -test("basic", () => { - expect(1).toBe(1); -}) diff --git a/test/cli/fixtures/ws-server-url/vitest.config.ts b/test/cli/fixtures/ws-server-url/vitest.config.ts deleted file mode 100644 index 1855b750849e..000000000000 --- a/test/cli/fixtures/ws-server-url/vitest.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { defineConfig } from 'vitest/config' -import basicSsl from '@vitejs/plugin-basic-ssl' - -// test https by -// TEST_HTTPS=1 pnpm test --root fixtures/server-url --api - -export default defineConfig({ - plugins: [ - !!process.env.TEST_HTTPS && basicSsl(), - ], -}) diff --git a/test/cli/package.json b/test/cli/package.json index 324cacd3240b..1a2dcddc05ee 100644 --- a/test/cli/package.json +++ b/test/cli/package.json @@ -2,6 +2,9 @@ "name": "@vitest/test-cli", "type": "module", "private": true, + "imports": { + "#test-utils": "../test-utils/index.ts" + }, "scripts": { "test": "vitest", "stacktraces": "vitest --root=./fixtures/stacktraces --watch=false" @@ -10,18 +13,26 @@ "@opentelemetry/api": "^1.9.0", "@opentelemetry/sdk-node": "^0.208.0", "@opentelemetry/sdk-trace-web": "^2.2.0", + "@test/pkg-reporter": "link:./deps/pkg-reporter", "@test/test-dep-error": "file:./deps/error", "@test/test-dep-linked": "link:./deps/linked", + "@test/test-dep-url": "link:./deps/dep-url", "@types/ws": "catalog:", "@vitejs/plugin-basic-ssl": "^2.1.0", "@vitest/browser-playwright": "workspace:*", "@vitest/browser-preview": "workspace:*", - "@vitest/runner": "workspace:^", + "@vitest/browser-webdriverio": "workspace:*", + "@vitest/mocker": "workspace:*", + "@vitest/runner": "workspace:*", "@vitest/utils": "workspace:*", + "flatted": "catalog:", "obug": "^2.1.1", + "playwright": "catalog:", + "typescript": "catalog:", "unplugin-swc": "^1.5.9", "vite": "latest", "vitest": "workspace:*", + "vitest-sonar-reporter": "catalog:", "ws": "catalog:" } } diff --git a/test/benchmark/test/__snapshots__/sequential.test.ts.snap b/test/cli/test/__snapshots__/benchmarking.test.ts.snap similarity index 59% rename from test/benchmark/test/__snapshots__/sequential.test.ts.snap rename to test/cli/test/__snapshots__/benchmarking.test.ts.snap index 6c7ec14b6d45..3ebbc8a64d42 100644 --- a/test/benchmark/test/__snapshots__/sequential.test.ts.snap +++ b/test/cli/test/__snapshots__/benchmarking.test.ts.snap @@ -18,3 +18,16 @@ F2 / S1 / B1 F2 / S1 / B1 " `; + +exports[`summary 1`] = ` +" + + good - summary.bench.ts > suite-a + (?) faster than bad + + good - summary.bench.ts > suite-b + + good - summary.bench.ts > suite-b > suite-b-nested + +" +`; diff --git a/test/cli/test/benchmarking.test.ts b/test/cli/test/benchmarking.test.ts new file mode 100644 index 000000000000..acd0e8457d16 --- /dev/null +++ b/test/cli/test/benchmarking.test.ts @@ -0,0 +1,185 @@ +import type { createBenchmarkJsonReport } from 'vitest/src/node/reporters/benchmark/json-formatter.js' +import fs from 'node:fs' +import * as pathe from 'pathe' +import { assert, expect, it } from 'vitest' +import { runVitest } from '../../test-utils' + +it('sequential', async () => { + const root = pathe.join(import.meta.dirname, '../fixtures/benchmarking/sequential') + await runVitest({ root }, [], { mode: 'benchmark' }) + const testLog = await fs.promises.readFile(pathe.join(root, 'test.log'), 'utf-8') + expect(testLog).toMatchSnapshot() +}) + +it('summary', async () => { + const root = pathe.join(import.meta.dirname, '../fixtures/benchmarking/reporter') + const result = await runVitest({ root }, ['summary.bench.ts'], { mode: 'benchmark' }) + expect(result.stderr).toBe('') + expect(result.stdout).not.toContain('NaNx') + expect(result.stdout.split('BENCH Summary')[1].replaceAll(/[0-9.]+x/g, '(?)')).toMatchSnapshot() +}) + +it('non-tty', async () => { + const root = pathe.join(import.meta.dirname, '../fixtures/benchmarking/basic') + const result = await runVitest({ root }, ['base.bench.ts'], { mode: 'benchmark' }) + const lines = result.stdout.split('\n').slice(4).slice(0, 11) + const expected = `\ + ✓ base.bench.ts > sort + name + · normal + · reverse + + ✓ base.bench.ts > timeout + name + · timeout100 + · timeout75 + · timeout50 + · timeout25 +` + + for (const [index, line] of expected.trim().split('\n').entries()) { + expect(lines[index]).toMatch(line) + } +}) + +it.for([true, false])('includeSamples %s', async (includeSamples) => { + const result = await runVitest( + { + root: pathe.join(import.meta.dirname, '../fixtures/benchmarking/reporter'), + benchmark: { includeSamples }, + }, + ['summary.bench.ts'], + { mode: 'benchmark' }, + ) + assert(result.ctx) + const allSamples = [...result.ctx.state.idMap.values()] + .filter(t => t.meta.benchmark) + .map(t => t.result?.benchmark?.samples) + if (includeSamples) { + expect(allSamples[0]).not.toEqual([]) + } + else { + expect(allSamples[0]).toEqual([]) + } +}) + +it('compare', async () => { + await fs.promises.rm('./fixtures/benchmarking/compare/bench.json', { force: true }) + + // --outputJson + { + const result = await runVitest({ + root: './fixtures/benchmarking/compare', + outputJson: './bench.json', + reporters: ['default'], + }, [], { mode: 'benchmark' }) + expect(result.exitCode).toBe(0) + expect(fs.existsSync('./fixtures/benchmarking/compare/bench.json')).toBe(true) + } + + // --compare + { + const result = await runVitest({ + root: './fixtures/benchmarking/compare', + compare: './bench.json', + reporters: ['default'], + }, [], { mode: 'benchmark' }) + expect(result.exitCode).toBe(0) + const lines = result.stdout.split('\n').slice(4).slice(0, 6) + const expected = ` +✓ basic.bench.ts > suite + name + · sleep10 + (baseline) + · sleep100 + (baseline) + ` + + for (const [index, line] of expected.trim().split('\n').entries()) { + expect(lines[index]).toMatch(line.trim()) + } + } +}) + +it('basic', { timeout: 60_000 }, async () => { + const root = pathe.join(import.meta.dirname, '../fixtures/benchmarking/basic') + const benchFile = pathe.join(root, 'bench.json') + fs.rmSync(benchFile, { force: true }) + + const result = await runVitest({ + root, + allowOnly: true, + outputJson: 'bench.json', + + // Verify that type testing cannot be used with benchmark + typecheck: { enabled: true }, + }, [], { mode: 'benchmark' }) + expect(result.stderr).toBe('') + expect(result.exitCode).toBe(0) + + const benchResult = await fs.promises.readFile(benchFile, 'utf-8') + const resultJson: ReturnType = JSON.parse(benchResult) + const names = resultJson.files.map(f => f.groups.map(g => [g.fullName, g.benchmarks.map(b => b.name)])) + expect(names).toMatchInlineSnapshot(` + [ + [ + [ + "base.bench.ts > sort", + [ + "normal", + "reverse", + ], + ], + [ + "base.bench.ts > timeout", + [ + "timeout100", + "timeout75", + "timeout50", + "timeout25", + ], + ], + ], + [], + [ + [ + "only.bench.ts", + [ + "visited", + "visited2", + ], + ], + [ + "only.bench.ts > a0", + [ + "0", + ], + ], + [ + "only.bench.ts > a1 > b1 > c1", + [ + "1", + ], + ], + [ + "only.bench.ts > a2", + [ + "2", + ], + ], + [ + "only.bench.ts > a3 > b3", + [ + "3", + ], + ], + [ + "only.bench.ts > a4 > b4", + [ + "4", + ], + ], + ], + ] + `) +}) diff --git a/test/cache/test/defineCacheKeyGenerator.test.ts b/test/cli/test/caching.test.ts similarity index 67% rename from test/cache/test/defineCacheKeyGenerator.test.ts rename to test/cli/test/caching.test.ts index 47b36bc02e3e..8d4c99fcf3f6 100644 --- a/test/cache/test/defineCacheKeyGenerator.test.ts +++ b/test/cli/test/caching.test.ts @@ -1,11 +1,62 @@ import { expect, test } from 'vitest' -import { runVitest } from '../../test-utils' +import { runVitest, useFS } from '../../test-utils' + +test('if file has import.meta.glob, it\'s not cached', async () => { + const { createFile } = useFS('./fixtures/caching/import-meta-glob/generated', { + 1: '1', + 2: '2', + }, false) + + const { errorTree: errorTree1 } = await runVitest({ + root: './fixtures/caching/import-meta-glob', + provide: { + generated: ['./generated/1', './generated/2'], + }, + experimental: { + fsModuleCache: true, + fsModuleCachePath: './node_modules/.vitest-fs-cache', + }, + }) + + expect(errorTree1()).toMatchInlineSnapshot(` + { + "glob.test.js": { + "replaced variable is the same": "passed", + }, + } + `) + + createFile('3', '3') + + const { errorTree: errorTree2 } = await runVitest({ + root: './fixtures/caching/import-meta-glob', + provide: { + generated: [ + './generated/1', + './generated/2', + './generated/3', + ], + }, + experimental: { + fsModuleCache: true, + fsModuleCachePath: './node_modules/.vitest-fs-cache', + }, + }) + + expect(errorTree2()).toMatchInlineSnapshot(` + { + "glob.test.js": { + "replaced variable is the same": "passed", + }, + } + `) +}) test('if no cache key generator is defined, the hash is invalid', async () => { process.env.REPLACED = 'value1' const { errorTree: errorTree1 } = await runVitest({ - root: './fixtures/dynamic-cache-key', + root: './fixtures/caching/dynamic-cache-key', config: './vitest.config.fails.js', experimental: { fsModuleCache: true, @@ -32,7 +83,7 @@ test('if no cache key generator is defined, the hash is invalid', async () => { process.env.REPLACED = 'value2' const { errorTree: errorTree2 } = await runVitest({ - root: './fixtures/dynamic-cache-key', + root: './fixtures/caching/dynamic-cache-key', config: './vitest.config.fails.js', experimental: { fsModuleCache: true, @@ -55,7 +106,7 @@ test('if cache key generator is defined, the hash is valid', async () => { process.env.REPLACED = 'value1' const { errorTree: errorTree1 } = await runVitest({ - root: './fixtures/dynamic-cache-key', + root: './fixtures/caching/dynamic-cache-key', config: './vitest.config.passes.js', experimental: { fsModuleCache: true, @@ -82,7 +133,7 @@ test('if cache key generator is defined, the hash is valid', async () => { process.env.REPLACED = 'value2' const { errorTree: errorTree2 } = await runVitest({ - root: './fixtures/dynamic-cache-key', + root: './fixtures/caching/dynamic-cache-key', config: './vitest.config.passes.js', experimental: { fsModuleCache: true, @@ -103,7 +154,7 @@ test('if cache key generator bails out, the file is not cached', async () => { process.env.REPLACED = 'value1' const { errorTree: errorTree1 } = await runVitest({ - root: './fixtures/dynamic-cache-key', + root: './fixtures/caching/dynamic-cache-key', config: './vitest.config.bails.js', experimental: { fsModuleCache: true, @@ -130,7 +181,7 @@ test('if cache key generator bails out, the file is not cached', async () => { process.env.REPLACED = 'value2' const { errorTree: errorTree2 } = await runVitest({ - root: './fixtures/dynamic-cache-key', + root: './fixtures/caching/dynamic-cache-key', config: './vitest.config.bails.js', experimental: { fsModuleCache: true, @@ -146,3 +197,9 @@ test('if cache key generator bails out, the file is not cached', async () => { } `) }) + +declare module 'vitest' { + export interface ProvidedContext { + generated: string[] + } +} diff --git a/test/cli/test/cancel-run.test.ts b/test/cli/test/cancel-run.test.ts index 12948b52fa15..f8911c173c69 100644 --- a/test/cli/test/cancel-run.test.ts +++ b/test/cli/test/cancel-run.test.ts @@ -1,7 +1,7 @@ import { Readable, Writable } from 'node:stream' import { stripVTControlCharacters } from 'node:util' import { createDefer } from '@vitest/utils/helpers' -import { expect, test } from 'vitest' +import { expect, onTestFinished, test, vi } from 'vitest' import { createVitest, registerConsoleShortcuts } from 'vitest/node' test('can force cancel a run', async () => { diff --git a/test/config/test/bail.test.ts b/test/cli/test/config/bail.test.ts similarity index 97% rename from test/config/test/bail.test.ts rename to test/cli/test/config/bail.test.ts index ae6f47d66bfd..b5059d64055b 100644 --- a/test/config/test/bail.test.ts +++ b/test/cli/test/config/bail.test.ts @@ -1,8 +1,7 @@ import type { TestUserConfig } from 'vitest/node' - +import { runVitest } from '#test-utils' import { playwright } from '@vitest/browser-playwright' import { expect, test } from 'vitest' -import { runVitest } from '../../test-utils' const configs: TestUserConfig[] = [] const pools: TestUserConfig[] = [ @@ -67,7 +66,7 @@ for (const config of configs) { process.env.THREADS = isParallel ? 'true' : 'false' const { exitCode, stdout, ctx } = await runVitest({ - root: './fixtures/bail', + root: './fixtures/config/bail', bail: 1, ...config, env: { diff --git a/test/config/test/browser-configs.test.ts b/test/cli/test/config/browser-configs.test.ts similarity index 87% rename from test/config/test/browser-configs.test.ts rename to test/cli/test/config/browser-configs.test.ts index 8b00f5871e3d..578c6bd6158d 100644 --- a/test/config/test/browser-configs.test.ts +++ b/test/cli/test/config/browser-configs.test.ts @@ -1,17 +1,16 @@ +import type { TestFsStructure } from '#test-utils' import type { ViteUserConfig } from 'vitest/config' import type { TestUserConfig, VitestOptions } from 'vitest/node' -import type { TestFsStructure } from '../../test-utils' import crypto from 'node:crypto' +import { runVitest, runVitestCli, useFS } from '#test-utils' import { playwright } from '@vitest/browser-playwright' import { preview } from '@vitest/browser-preview' -import { webdriverio } from '@vitest/browser-webdriverio' import { resolve } from 'pathe' import { describe, expect, onTestFinished, test } from 'vitest' import { createVitest } from 'vitest/node' -import { runVitestCli, useFS } from '../../test-utils' async function vitest(cliOptions: TestUserConfig, configValue: TestUserConfig = {}, viteConfig: ViteUserConfig = {}, vitestOptions: VitestOptions = {}) { - const vitest = await createVitest('test', { ...cliOptions, watch: false }, { ...viteConfig, test: configValue as any }, vitestOptions) + const vitest = await createVitest('test', { ...cliOptions, watch: false, config: false }, { ...viteConfig, test: configValue as any }, vitestOptions) onTestFinished(() => vitest.close()) return vitest } @@ -243,7 +242,7 @@ test('coverage provider v8 works correctly in workspaced browser mode if instanc }) test('browser instances with include/exclude/includeSource option override parent that patterns', async () => { - const { projects } = await vitest({}, { + const { projects } = await vitest({ config: false }, { include: ['**/*.global.test.{js,ts}', '**/*.shared.test.{js,ts}'], exclude: ['**/*.skip.test.{js,ts}'], includeSource: ['src/**/*.{js,ts}'], @@ -262,7 +261,6 @@ test('browser instances with include/exclude/includeSource option override paren // Chromium should inherit parent include/exclude/includeSource patterns (plus default test pattern) expect(projects[0].name).toEqual('chromium') expect(projects[0].config.include).toEqual([ - 'test/**.test.ts', '**/*.global.test.{js,ts}', '**/*.shared.test.{js,ts}', ]) @@ -301,7 +299,7 @@ test('browser instances with include/exclude/includeSource option override paren }) test('browser instances with empty include array should get parent include patterns', async () => { - const { projects } = await vitest({}, { + const { projects } = await vitest({ config: false }, { include: ['**/*.test.{js,ts}'], browser: { enabled: true, @@ -315,8 +313,8 @@ test('browser instances with empty include array should get parent include patte }) // Both instances should inherit parent include patterns when include is empty or not specified - expect(projects[0].config.include).toEqual(['test/**.test.ts', '**/*.test.{js,ts}']) - expect(projects[1].config.include).toEqual(['test/**.test.ts', '**/*.test.{js,ts}']) + expect(projects[0].config.include).toEqual(['**/*.test.{js,ts}']) + expect(projects[1].config.include).toEqual(['**/*.test.{js,ts}']) }) test('filter for the global browser project includes all browser instances', async () => { @@ -414,14 +412,14 @@ test('core provider has options if `provider` is wdio', async () => { const v = await vitest({}, { browser: { enabled: true, - provider: webdriverio({ cacheDir: './test' }), + provider: playwright({ contextOptions: { hasTouch: true } }), instances: [ { browser: 'chrome' }, ], }, }) expect(v.config.browser.provider?.options).toEqual({ - cacheDir: './test', + contextOptions: { hasTouch: true }, }) }) @@ -929,3 +927,92 @@ describe('[e2e] workspace configs are affected by the CLI options', () => { }) }) }) + +test('browser root', async () => { + process.env.BROWSER_DEFINE_TEST_PROEJCT = 'false' + const { testTree, stderr } = await runVitest({ + root: './fixtures/config/browser-define', + browser: { + headless: true, + }, + }) + expect(stderr).toBe('') + expect(testTree()).toMatchInlineSnapshot(` + { + "basic.test.ts": { + "passes": "passed", + }, + } + `) +}) + +test('browser project', async () => { + process.env.BROWSER_DEFINE_TEST_PROEJCT = 'true' + const { testTree, stderr } = await runVitest({ + root: './fixtures/config/browser-define', + browser: { + headless: true, + }, + }) + expect(stderr).toBe('') + expect(testTree()).toMatchInlineSnapshot(` + { + "basic.test.ts": { + "passes": "passed", + }, + } + `) +}) + +const customHtmlRoot = resolve(import.meta.dirname, '../../fixtures/config/browser-custom-html') + +test('throws an error with non-existing path', async () => { + const { stderr } = await runVitest({ + root: customHtmlRoot, + config: './vitest.config.non-existing.ts', + }, [], { fails: true }) + expect(stderr).toContain(`Tester HTML file "${resolve(customHtmlRoot, './some-non-existing-path')}" doesn't exist.`) +}) + +test('throws an error and exits if there is an error in the html file hook', async () => { + const { stderr, exitCode } = await runVitest({ + root: customHtmlRoot, + config: './vitest.config.error-hook.ts', + }) + expect(stderr).toContain('Error: expected error in transformIndexHtml') + expect(stderr).toContain('[vite] Internal server error: expected error in transformIndexHtml') + expect(exitCode).toBe(1) +}) + +test('allows correct custom html', async () => { + const { stderr, stdout, exitCode } = await runVitest({ + root: customHtmlRoot, + config: './vitest.config.correct.ts', + reporters: [['default', { summary: false }]], + }) + expect(stderr).toBe('') + expect(stdout).toContain('✓ |chromium| browser-basic.test.ts') + expect(exitCode).toBe(0) +}) + +test('allows custom transformIndexHtml with custom html file', async () => { + const { stderr, stdout, exitCode } = await runVitest({ + root: customHtmlRoot, + config: './vitest.config.custom-transformIndexHtml.ts', + reporters: [['default', { summary: false }]], + }) + expect(stderr).toBe('') + expect(stdout).toContain('✓ |chromium| browser-custom.test.ts') + expect(exitCode).toBe(0) +}) + +test('allows custom transformIndexHtml without custom html file', async () => { + const { stderr, stdout, exitCode } = await runVitest({ + root: customHtmlRoot, + config: './vitest.config.default-transformIndexHtml.ts', + reporters: [['default', { summary: false }]], + }) + expect(stderr).toBe('') + expect(stdout).toContain('✓ |chromium| browser-custom.test.ts') + expect(exitCode).toBe(0) +}) diff --git a/test/cli/test/config/passWithNoTests.test.ts b/test/cli/test/config/passWithNoTests.test.ts new file mode 100644 index 000000000000..91ca9ebd950c --- /dev/null +++ b/test/cli/test/config/passWithNoTests.test.ts @@ -0,0 +1,10 @@ +import { expect, it } from 'vitest' +import { runInlineTests } from '../../../test-utils' + +it('vitest doesnt fail when running empty files', async () => { + const { exitCode } = await runInlineTests( + { 'empty.test.js': '' }, + { passWithNoTests: true }, + ) + expect(exitCode).toBe(0) +}) diff --git a/test/cli/test/config/sequence-shuffle.test.ts b/test/cli/test/config/sequence-shuffle.test.ts new file mode 100644 index 000000000000..7125bcedc000 --- /dev/null +++ b/test/cli/test/config/sequence-shuffle.test.ts @@ -0,0 +1,117 @@ +import type { InlineConfig } from 'vitest/node' +import { runInlineTests, runVitest } from '#test-utils' +import { expect, test } from 'vitest' + +function run(sequence: InlineConfig['sequence']) { + return runVitest({ + sequence, + include: [], + standalone: true, + watch: true, + }) +} + +class CustomSequencer { + sort() { + return [] + } + + shard() { + return [] + } +} + +test.each([ + false, + { files: false, tests: false }, + { files: false, tests: true }, +], +)('should use BaseSequencer if shuffle is %o', async (shuffle) => { + const { ctx } = await run({ shuffle }) + expect(ctx?.config.sequence.sequencer.name).toBe('BaseSequencer') +}) + +test.each([ + true, + { files: true, tests: false }, + { files: true, tests: true }, +])('should use RandomSequencer if shuffle is %o', async (shuffle) => { + const { ctx } = await run({ shuffle }) + expect(ctx?.config.sequence.sequencer.name).toBe('RandomSequencer') +}) + +test.each([ + false, + true, + { files: true, tests: false }, + { files: true, tests: true }, +])('should always use CustomSequencer if passed', async (shuffle) => { + const { ctx } = await run({ shuffle, sequencer: CustomSequencer }) + expect(ctx?.config.sequence.sequencer.name).toBe('CustomSequencer') +}) + +test('shuffle with a known seed', async () => { + const { stderr, errorTree } = await runInlineTests({ + 'basic.test.js': /* js */ ` + import { afterAll, describe, expect, test } from 'vitest' + + const numbers = [] + + test.for([1, 2, 3, 4, 5])('test %s', (v) => { + numbers.push(10 + v) + }) + + describe("inherit shuffle", () => { + test.for([1, 2, 3, 4, 5])('test %s', (v) => { + numbers.push(20 + v) + }) + }) + + describe('unshuffle', { shuffle: false }, () => { + test.for([1, 2, 3, 4, 5])('test %s', (v) => { + numbers.push(30 + v) + }) + }) + + afterAll(() => { + expect(numbers).toEqual([ + 11, 14, 13, 15, 12, + 31, 32, 33, 34, 35, + 21, 24, 23, 25, 22 + ]) + }) + `, + }, { + sequence: { + seed: 101, + shuffle: true, + }, + }) + + expect(stderr).toBe('') + expect(errorTree()).toMatchInlineSnapshot(` + { + "basic.test.js": { + "inherit shuffle": { + "test 1": "passed", + "test 2": "passed", + "test 3": "passed", + "test 4": "passed", + "test 5": "passed", + }, + "test 1": "passed", + "test 2": "passed", + "test 3": "passed", + "test 4": "passed", + "test 5": "passed", + "unshuffle": { + "test 1": "passed", + "test 2": "passed", + "test 3": "passed", + "test 4": "passed", + "test 5": "passed", + }, + }, + } + `) +}) diff --git a/test/config/test/watch-trigger-pattern.test.ts b/test/cli/test/config/watchTriggerPattern.test.ts similarity index 79% rename from test/config/test/watch-trigger-pattern.test.ts rename to test/cli/test/config/watchTriggerPattern.test.ts index d78f120af911..0376ac57b9da 100644 --- a/test/config/test/watch-trigger-pattern.test.ts +++ b/test/cli/test/config/watchTriggerPattern.test.ts @@ -1,8 +1,8 @@ import { resolve } from 'node:path' +import { editFile, runVitest } from '#test-utils' import { expect, test } from 'vitest' -import { editFile, runVitest } from '../../test-utils' -const root = resolve(import.meta.dirname, '../fixtures/watch-trigger-pattern') +const root = resolve(import.meta.dirname, '../../fixtures/config/watch-trigger-pattern') test('watch trigger pattern picks up the file', async () => { const { stderr, vitest } = await runVitest({ diff --git a/test/config/test/configureVitest.test.ts b/test/cli/test/configureVitest.test.ts similarity index 97% rename from test/config/test/configureVitest.test.ts rename to test/cli/test/configureVitest.test.ts index 5ddcfbf1633c..c2f06f6de8d3 100644 --- a/test/config/test/configureVitest.test.ts +++ b/test/cli/test/configureVitest.test.ts @@ -4,7 +4,7 @@ import { expect, onTestFinished, test } from 'vitest' import { createVitest } from 'vitest/node' async function vitest(cliOptions: TestUserConfig, configValue: TestUserConfig = {}, viteConfig: ViteUserConfig = {}, vitestOptions: VitestOptions = {}) { - const vitest = await createVitest('test', { ...cliOptions, watch: false }, { ...viteConfig, test: configValue as any }, vitestOptions) + const vitest = await createVitest('test', { ...cliOptions, config: false, watch: false }, { ...viteConfig, test: configValue as any }, vitestOptions) onTestFinished(() => vitest.close()) return vitest } diff --git a/test/cli/test/console.test.ts b/test/cli/test/console.test.ts index f1fa11783acb..777ae4152f1e 100644 --- a/test/cli/test/console.test.ts +++ b/test/cli/test/console.test.ts @@ -1,6 +1,6 @@ import { relative, resolve } from 'pathe' import { expect, test } from 'vitest' -import { DefaultReporter } from 'vitest/reporters' +import { DefaultReporter } from 'vitest/node' import { runInlineTests, runVitest } from '../../test-utils' test('can run custom pools with Vitest', async () => { diff --git a/test/cli/test/expect-soft.test.ts b/test/cli/test/expect-soft.test.ts index 8dd750a50ac9..49355621686c 100644 --- a/test/cli/test/expect-soft.test.ts +++ b/test/cli/test/expect-soft.test.ts @@ -1,7 +1,6 @@ import type { TestUserConfig } from 'vitest/node' import { resolve } from 'node:path' -import { describe, expect, test } from 'vitest' -import { getCurrentTest } from 'vitest/suite' +import { describe, expect, test, TestRunner } from 'vitest' import { runVitest } from '../../test-utils' describe('expect.soft', () => { @@ -9,7 +8,7 @@ describe('expect.soft', () => { root: resolve('./fixtures/expect-soft'), include: ['expects/soft.test.ts'], setupFiles: [], - testNamePattern: getCurrentTest()?.name, + testNamePattern: TestRunner.getCurrentTest()?.name, testTimeout: 4000, ...config, }, ['soft']) diff --git a/test/cli/test/expect-task.test.ts b/test/cli/test/expect-task.test.ts index 93993c637be7..5b612863373a 100644 --- a/test/cli/test/expect-task.test.ts +++ b/test/cli/test/expect-task.test.ts @@ -1,4 +1,4 @@ -import { test } from 'vitest' +import { describe, test } from 'vitest' import { runInlineTests } from '../../test-utils' const toMatchTest = /* ts */` diff --git a/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js new file mode 100644 index 000000000000..b10f7b76b378 --- /dev/null +++ b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js @@ -0,0 +1,57 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/** +* @vue/shared v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Fh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},Rs=[],Xr=()=>{},C0=()=>!1,$u=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hh=e=>e.startsWith("onUpdate:"),on=Object.assign,Bh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},$S=Object.prototype.hasOwnProperty,wt=(e,t)=>$S.call(e,t),Ze=Array.isArray,$s=e=>Oa(e)==="[object Map]",Iu=e=>Oa(e)==="[object Set]",Bm=e=>Oa(e)==="[object Date]",et=e=>typeof e=="function",Ht=e=>typeof e=="string",Pr=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",E0=e=>(kt(e)||et(e))&&et(e.then)&&et(e.catch),A0=Object.prototype.toString,Oa=e=>A0.call(e),IS=e=>Oa(e).slice(8,-1),L0=e=>Oa(e)==="[object Object]",Du=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xl=Fh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},DS=/-\w/g,sr=zu(e=>e.replace(DS,t=>t.slice(1).toUpperCase())),zS=/\B([A-Z])/g,Ai=zu(e=>e.replace(zS,"-$1").toLowerCase()),Fu=zu(e=>e.charAt(0).toUpperCase()+e.slice(1)),qc=zu(e=>e?`on${Fu(e)}`:""),Gn=(e,t)=>!Object.is(e,t),jc=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Wh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},N0=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let Wm;const Hu=()=>Wm||(Wm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(e){if(Ze(e)){const t={};for(let r=0;r{if(r){const o=r.split(HS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(Ht(e))t=e;else if(Ze(e))for(let r=0;rBu(r,t))}const R0=e=>!!(e&&e.__v_isRef===!0),Re=e=>Ht(e)?e:e==null?"":Ze(e)||kt(e)&&(e.toString===A0||!et(e.toString))?R0(e)?Re(e.value):JSON.stringify(e,$0,2):String(e),$0=(e,t)=>R0(t)?$0(e,t.value):$s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[fd(o,c)+" =>"]=s,r),{})}:Iu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>fd(r))}:Pr(t)?fd(t):kt(t)&&!Ze(t)&&!L0(t)?String(t):t,fd=(e,t="")=>{var r;return Pr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** +* @vue/reactivity v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let bn;class GS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=bn,!t&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0&&--this._on===0&&(bn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r0)return;if(Zl){let t=Zl;for(Zl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Yl;){let t=Yl;for(Yl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function H0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function B0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Uh(o),XS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function jd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(W0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function W0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===aa)||(e.globalVersion=aa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!jd(e))))return;e.flags|=2;const t=e.dep,r=Tt,o=Nr;Tt=e,Nr=!0;try{H0(e);const s=e.fn(e._value);(t.version===0||Gn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Tt=r,Nr=o,B0(e),e.flags&=-3}}function Uh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)Uh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function XS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Nr=!0;const q0=[];function Si(){q0.push(Nr),Nr=!1}function _i(){const e=q0.pop();Nr=e===void 0?!0:e}function qm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Tt;Tt=void 0;try{t()}finally{Tt=r}}}let aa=0;class YS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Tt||!Nr||Tt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Tt)r=this.activeLink=new YS(Tt,this),Tt.deps?(r.prevDep=Tt.depsTail,Tt.depsTail.nextDep=r,Tt.depsTail=r):Tt.deps=Tt.depsTail=r,j0(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=Tt.depsTail,r.nextDep=void 0,Tt.depsTail.nextDep=r,Tt.depsTail=r,Tt.deps===r&&(Tt.deps=o)}return r}trigger(t){this.version++,aa++,this.notify(t)}notify(t){qh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{jh()}}}function j0(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)j0(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const iu=new WeakMap,qo=Symbol(""),Ud=Symbol(""),ca=Symbol("");function wn(e,t,r){if(Nr&&Tt){let o=iu.get(e);o||iu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Wu),s.map=o,s.key=r),s.track()}}function bi(e,t,r,o,s,c){const f=iu.get(e);if(!f){aa++;return}const d=h=>{h&&h.trigger()};if(qh(),t==="clear")f.forEach(d);else{const h=Ze(e),p=h&&Du(r);if(h&&r==="length"){const g=Number(o);f.forEach((v,b)=>{(b==="length"||b===ca||!Pr(b)&&b>=g)&&d(v)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ca)),t){case"add":h?p&&d(f.get("length")):(d(f.get(qo)),$s(e)&&d(f.get(Ud)));break;case"delete":h||(d(f.get(qo)),$s(e)&&d(f.get(Ud)));break;case"set":$s(e)&&d(f.get(qo));break}}jh()}function ZS(e,t){const r=iu.get(e);return r&&r.get(t)}function _s(e){const t=mt(e);return t===e?t:(wn(t,"iterate",ca),or(e)?t:t.map(Rr))}function qu(e){return wn(e=mt(e),"iterate",ca),e}function Yi(e,t){return Ti(e)?jo(e)?Ks(Rr(t)):Ks(t):Rr(t)}const JS={__proto__:null,[Symbol.iterator](){return hd(this,Symbol.iterator,e=>Yi(this,e))},concat(...e){return _s(this).concat(...e.map(t=>Ze(t)?_s(t):t))},entries(){return hd(this,"entries",e=>(e[1]=Yi(this,e[1]),e))},every(e,t){return fi(this,"every",e,t,void 0,arguments)},filter(e,t){return fi(this,"filter",e,t,r=>r.map(o=>Yi(this,o)),arguments)},find(e,t){return fi(this,"find",e,t,r=>Yi(this,r),arguments)},findIndex(e,t){return fi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return fi(this,"findLast",e,t,r=>Yi(this,r),arguments)},findLastIndex(e,t){return fi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return fi(this,"forEach",e,t,void 0,arguments)},includes(...e){return pd(this,"includes",e)},indexOf(...e){return pd(this,"indexOf",e)},join(e){return _s(this).join(e)},lastIndexOf(...e){return pd(this,"lastIndexOf",e)},map(e,t){return fi(this,"map",e,t,void 0,arguments)},pop(){return Dl(this,"pop")},push(...e){return Dl(this,"push",e)},reduce(e,...t){return jm(this,"reduce",e,t)},reduceRight(e,...t){return jm(this,"reduceRight",e,t)},shift(){return Dl(this,"shift")},some(e,t){return fi(this,"some",e,t,void 0,arguments)},splice(...e){return Dl(this,"splice",e)},toReversed(){return _s(this).toReversed()},toSorted(e){return _s(this).toSorted(e)},toSpliced(...e){return _s(this).toSpliced(...e)},unshift(...e){return Dl(this,"unshift",e)},values(){return hd(this,"values",e=>Yi(this,e))}};function hd(e,t,r){const o=qu(e),s=o[t]();return o!==e&&!or(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const QS=Array.prototype;function fi(e,t,r,o,s,c){const f=qu(e),d=f!==e&&!or(e),h=f[t];if(h!==QS[t]){const v=h.apply(e,c);return d?Rr(v):v}let p=r;f!==e&&(d?p=function(v,b){return r.call(this,Yi(e,v),b,e)}:r.length>2&&(p=function(v,b){return r.call(this,v,b,e)}));const g=h.call(f,p,o);return d&&s?s(g):g}function jm(e,t,r,o){const s=qu(e);let c=r;return s!==e&&(or(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,Yi(e,d),h,e)}),s[t](c,...o)}function pd(e,t,r){const o=mt(e);wn(o,"iterate",ca);const s=o[t](...r);return(s===-1||s===!1)&&ju(r[0])?(r[0]=mt(r[0]),o[t](...r)):s}function Dl(e,t,r=[]){Si(),qh();const o=mt(e)[t].apply(e,r);return jh(),_i(),o}const e_=Fh("__proto__,__v_isRef,__isVue"),U0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pr));function t_(e){Pr(e)||(e=String(e));const t=mt(this);return wn(t,"has",e),t.hasOwnProperty(e)}class V0{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?f_:Y0:c?X0:K0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Ze(t);if(!s){let h;if(f&&(h=JS[r]))return h;if(r==="hasOwnProperty")return t_}const d=Reflect.get(t,r,Mt(t)?t:o);if((Pr(r)?U0.has(r):e_(r))||(s||wn(t,"get",r),c))return d;if(Mt(d)){const h=f&&Du(r)?d:d.value;return s&&kt(h)?Gs(h):h}return kt(d)?s?Gs(d):ir(d):d}}class G0 extends V0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=Ze(t)&&Du(r);if(!this._isShallow){const p=Ti(c);if(!or(o)&&!Ti(o)&&(c=mt(c),o=mt(o)),!f&&Mt(c)&&!Mt(o))return p||(c.value=o),!0}const d=f?Number(r)e,Tc=e=>Reflect.getPrototypeOf(e);function s_(e,t,r){return function(...o){const s=this.__v_raw,c=mt(s),f=$s(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),g=r?Vd:t?Ks:Rr;return!t&&wn(c,"iterate",h?Ud:qo),{next(){const{value:v,done:b}=p.next();return b?{value:v,done:b}:{value:d?[g(v[0]),g(v[1])]:g(v),done:b}},[Symbol.iterator](){return this}}}}function Cc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function l_(e,t){const r={get(s){const c=this.__v_raw,f=mt(c),d=mt(s);e||(Gn(s,d)&&wn(f,"get",s),wn(f,"get",d));const{has:h}=Tc(f),p=t?Vd:e?Ks:Rr;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&wn(mt(s),"iterate",qo),s.size},has(s){const c=this.__v_raw,f=mt(c),d=mt(s);return e||(Gn(s,d)&&wn(f,"has",s),wn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=mt(d),p=t?Vd:e?Ks:Rr;return!e&&wn(h,"iterate",qo),d.forEach((g,v)=>s.call(c,p(g),p(v),f))}};return on(r,e?{add:Cc("add"),set:Cc("set"),delete:Cc("delete"),clear:Cc("clear")}:{add(s){!t&&!or(s)&&!Ti(s)&&(s=mt(s));const c=mt(this);return Tc(c).has.call(c,s)||(c.add(s),bi(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!Ti(c)&&(c=mt(c));const f=mt(this),{has:d,get:h}=Tc(f);let p=d.call(f,s);p||(s=mt(s),p=d.call(f,s));const g=h.call(f,s);return f.set(s,c),p?Gn(c,g)&&bi(f,"set",s,c):bi(f,"add",s,c),this},delete(s){const c=mt(this),{has:f,get:d}=Tc(c);let h=f.call(c,s);h||(s=mt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&bi(c,"delete",s,void 0),p},clear(){const s=mt(this),c=s.size!==0,f=s.clear();return c&&bi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=s_(s,e,t)}),r}function Vh(e,t){const r=l_(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const a_={get:Vh(!1,!1)},c_={get:Vh(!1,!0)},u_={get:Vh(!0,!1)};const K0=new WeakMap,X0=new WeakMap,Y0=new WeakMap,f_=new WeakMap;function d_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function h_(e){return e.__v_skip||!Object.isExtensible(e)?0:d_(IS(e))}function ir(e){return Ti(e)?e:Kh(e,!1,r_,a_,K0)}function Gh(e){return Kh(e,!1,o_,c_,X0)}function Gs(e){return Kh(e,!0,i_,u_,Y0)}function Kh(e,t,r,o,s){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=h_(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function jo(e){return Ti(e)?jo(e.__v_raw):!!(e&&e.__v_isReactive)}function Ti(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function ju(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function Uu(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&M0(e,"__v_skip",!0),e}const Rr=e=>kt(e)?ir(e):e,Ks=e=>kt(e)?Gs(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function Ge(e){return Z0(e,!1)}function Ft(e){return Z0(e,!0)}function Z0(e,t){return Mt(e)?e:new p_(e,t)}class p_{constructor(t,r){this.dep=new Wu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:mt(t),this._value=r?t:Rr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||or(t)||Ti(t);t=o?t:mt(t),Gn(t,r)&&(this._rawValue=t,this._value=o?t:Rr(t),this.dep.trigger())}}function K(e){return Mt(e)?e.value:e}function Xt(e){return et(e)?e():K(e)}const g_={get:(e,t,r)=>t==="__v_raw"?e:K(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Mt(s)&&!Mt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function J0(e){return jo(e)?e:new Proxy(e,g_)}class m_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Wu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Q0(e){return new m_(e)}function v_(e){const t=Ze(e)?new Array(e.length):{};for(const r in e)t[r]=eb(e,r);return t}class y_{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=mt(t);let s=!0,c=t;if(!Ze(t)||!Du(String(r)))do s=!ju(c)||or(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=K(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Mt(this._raw[this._key])){const r=this._object[this._key];if(Mt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return ZS(this._raw,this._key)}}class b_{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function w_(e,t,r){return Mt(e)?e:et(e)?new b_(e):kt(e)&&arguments.length>1?eb(e,t,r):Ge(e)}function eb(e,t,r){return new y_(e,t,r)}class x_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Wu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=aa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Tt!==this)return F0(this,!0),!0}get value(){const t=this.dep.track();return W0(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function k_(e,t,r=!1){let o,s;return et(e)?o=e:(o=e.get,s=e.set),new x_(o,s,r)}const Ec={},ou=new WeakMap;let $o;function S_(e,t=!1,r=$o){if(r){let o=ou.get(r);o||ou.set(r,o=[]),o.push(e)}}function __(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=_=>s?_:or(_)||s===!1||s===0?wi(_,1):wi(_);let g,v,b,w,E=!1,L=!1;if(Mt(e)?(v=()=>e.value,E=or(e)):jo(e)?(v=()=>p(e),E=!0):Ze(e)?(L=!0,E=e.some(_=>jo(_)||or(_)),v=()=>e.map(_=>{if(Mt(_))return _.value;if(jo(_))return p(_);if(et(_))return h?h(_,2):_()})):et(e)?t?v=h?()=>h(e,2):e:v=()=>{if(b){Si();try{b()}finally{_i()}}const _=$o;$o=g;try{return h?h(e,3,[w]):e(w)}finally{$o=_}}:v=Xr,t&&s){const _=v,$=s===!0?1/0:s;v=()=>wi(_(),$)}const P=I0(),M=()=>{g.stop(),P&&P.active&&Bh(P.effects,g)};if(c&&t){const _=t;t=(...$)=>{_(...$),M()}}let R=L?new Array(e.length).fill(Ec):Ec;const I=_=>{if(!(!(g.flags&1)||!g.dirty&&!_))if(t){const $=g.run();if(s||E||(L?$.some((W,ne)=>Gn(W,R[ne])):Gn($,R))){b&&b();const W=$o;$o=g;try{const ne=[$,R===Ec?void 0:L&&R[0]===Ec?[]:R,w];R=$,h?h(t,3,ne):t(...ne)}finally{$o=W}}}else g.run()};return d&&d(I),g=new D0(v),g.scheduler=f?()=>f(I,!1):I,w=_=>S_(_,!1,g),b=g.onStop=()=>{const _=ou.get(g);if(_){if(h)h(_,4);else for(const $ of _)$();ou.delete(g)}},t?o?I(!0):R=g.run():f?f(I.bind(null,!0),!0):g.run(),M.pause=g.pause.bind(g),M.resume=g.resume.bind(g),M.stop=M,M}function wi(e,t=1/0,r){if(t<=0||!kt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Mt(e))wi(e.value,t,r);else if(Ze(e))for(let o=0;o{wi(o,t,r)});else if(L0(e)){for(const o in e)wi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&wi(e[o],t,r)}return e}/** +* @vue/runtime-core v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Pa(e,t,r,o){try{return o?e(...o):e()}catch(s){Ra(s,t,r)}}function $r(e,t,r,o){if(et(e)){const s=Pa(e,t,r,o);return s&&E0(s)&&s.catch(c=>{Ra(c,t,r)}),s}if(Ze(e)){const s=[];for(let c=0;c>>1,s=Pn[o],c=ua(s);c=ua(r)?Pn.push(e):Pn.splice(C_(t),0,e),e.flags|=1,nb()}}function nb(){su||(su=tb.then(ib))}function Gd(e){Ze(e)?Is.push(...e):Zi&&e.id===-1?Zi.splice(Es+1,0,e):e.flags&1||(Is.push(e),e.flags|=1),nb()}function Um(e,t,r=Gr+1){for(;rua(r)-ua(o));if(Is.length=0,Zi){Zi.push(...t);return}for(Zi=t,Es=0;Ese.id==null?e.flags&2?-1:1/0:e.id;function ib(e){try{for(Gr=0;GrWe;function We(e,t=mn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ys(-1);const c=lu(t);let f;try{f=e(...s)}finally{lu(c),o._d&&Ys(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function at(e,t){if(mn===null)return e;const r=Qu(mn),o=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,yi=Symbol("_leaveCb"),Ac=Symbol("_enterCb");function A_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mi(()=>{e.isMounted=!0}),$a(()=>{e.isUnmounting=!0}),e}const ur=[Function,Array],cb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ur,onEnter:ur,onAfterEnter:ur,onEnterCancelled:ur,onBeforeLeave:ur,onLeave:ur,onAfterLeave:ur,onLeaveCancelled:ur,onBeforeAppear:ur,onAppear:ur,onAfterAppear:ur,onAppearCancelled:ur},ub=e=>{const t=e.subTree;return t.component?ub(t.component):t},L_={name:"BaseTransition",props:cb,setup(e,{slots:t}){const r=ti(),o=A_();return()=>{const s=t.default&&hb(t.default(),!0);if(!s||!s.length)return;const c=fb(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return gd(c);const h=Vm(c);if(!h)return gd(c);let p=Kd(h,f,o,r,v=>p=v);h.type!==ln&&fa(h,p);let g=r.subTree&&Vm(r.subTree);if(g&&g.type!==ln&&!Kr(g,h)&&ub(r).type!==ln){let v=Kd(g,f,o,r);if(fa(g,v),d==="out-in"&&h.type!==ln)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,g=void 0},gd(c);d==="in-out"&&h.type!==ln?v.delayLeave=(b,w,E)=>{const L=db(o,g);L[String(g.key)]=g,b[yi]=()=>{w(),b[yi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{E(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return c}}};function fb(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==ln){t=r;break}}return t}const M_=L_;function db(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Kd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:E,onLeaveCancelled:L,onBeforeAppear:P,onAppear:M,onAfterAppear:R,onAppearCancelled:I}=t,_=String(e.key),$=db(r,e),W=(Z,G)=>{Z&&$r(Z,o,9,G)},ne=(Z,G)=>{const j=G[1];W(Z,G),Ze(Z)?Z.every(N=>N.length<=1)&&j():Z.length<=1&&j()},ee={mode:f,persisted:d,beforeEnter(Z){let G=h;if(!r.isMounted)if(c)G=P||h;else return;Z[yi]&&Z[yi](!0);const j=$[_];j&&Kr(e,j)&&j.el[yi]&&j.el[yi](),W(G,[Z])},enter(Z){let G=p,j=g,N=v;if(!r.isMounted)if(c)G=M||p,j=R||g,N=I||v;else return;let O=!1;const C=Z[Ac]=k=>{O||(O=!0,k?W(N,[Z]):W(j,[Z]),ee.delayedLeave&&ee.delayedLeave(),Z[Ac]=void 0)};G?ne(G,[Z,C]):C()},leave(Z,G){const j=String(e.key);if(Z[Ac]&&Z[Ac](!0),r.isUnmounting)return G();W(b,[Z]);let N=!1;const O=Z[yi]=C=>{N||(N=!0,G(),C?W(L,[Z]):W(E,[Z]),Z[yi]=void 0,$[j]===e&&delete $[j])};$[j]=e,w?ne(w,[Z,O]):O()},clone(Z){const G=Kd(Z,t,r,o,s);return s&&s(G),G}};return ee}function gd(e){if(Gu(e))return e=uo(e),e.children=null,e}function Vm(e){if(!Gu(e))return ab(e.type)&&e.children?fb(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&et(r.default))return r.default()}}function fa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,fa(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hb(e,t=!1,r){let o=[],s=0;for(let c=0;c1)for(let c=0;cJl(E,t&&(Ze(t)?t[L]:t),r,o,s));return}if(Ds(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Jl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Qu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,g=d.refs===vt?d.refs={}:d.refs,v=d.setupState,b=mt(v),w=v===vt?C0:E=>wt(b,E);if(p!=null&&p!==h){if(Gm(t),Ht(p))g[p]=null,w(p)&&(v[p]=null);else if(Mt(p)){p.value=null;const E=t;E.k&&(g[E.k]=null)}}if(et(h))Pa(h,d,12,[f,g]);else{const E=Ht(h),L=Mt(h);if(E||L){const P=()=>{if(e.f){const M=E?w(h)?v[h]:g[h]:h.value;if(s)Ze(M)&&Bh(M,c);else if(Ze(M))M.includes(c)||M.push(c);else if(E)g[h]=[c],w(h)&&(v[h]=g[h]);else{const R=[c];h.value=R,e.k&&(g[e.k]=R)}}else E?(g[h]=f,w(h)&&(v[h]=f)):L&&(h.value=f,e.k&&(g[e.k]=f))};if(f){const M=()=>{P(),au.delete(e)};M.id=-1,au.set(e,M),jn(M,r)}else Gm(e),P()}}}function Gm(e){const t=au.get(e);t&&(t.flags|=8,au.delete(e))}Hu().requestIdleCallback;Hu().cancelIdleCallback;const Ds=e=>!!e.type.__asyncLoader,Gu=e=>e.type.__isKeepAlive;function N_(e,t){gb(e,"a",t)}function O_(e,t){gb(e,"da",t)}function gb(e,t,r=xn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ku(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Gu(s.parent.vnode)&&P_(o,t,r,s),s=s.parent}}function P_(e,t,r,o){const s=Ku(t,e,o,!0);Ia(()=>{Bh(o[t],s)},r)}function Ku(e,t,r=xn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Si();const d=Da(r),h=$r(t,r,e,f);return d(),_i(),h});return o?s.unshift(c):s.push(c),c}}const Li=e=>(t,r=xn)=>{(!pa||e==="sp")&&Ku(e,(...o)=>t(...o),r)},R_=Li("bm"),Mi=Li("m"),$_=Li("bu"),I_=Li("u"),$a=Li("bum"),Ia=Li("um"),D_=Li("sp"),z_=Li("rtg"),F_=Li("rtc");function H_(e,t=xn){Ku("ec",e,t)}const Zh="components",B_="directives";function Go(e,t){return Jh(Zh,e,!0,t)||e}const mb=Symbol.for("v-ndc");function Xd(e){return Ht(e)?Jh(Zh,e,!1)||e:e||mb}function vr(e){return Jh(B_,e)}function Jh(e,t,r=!0,o=!1){const s=mn||xn;if(s){const c=s.type;if(e===Zh){const d=PT(c,!1);if(d&&(d===t||d===sr(t)||d===Fu(sr(t))))return c}const f=Km(s[e]||c[e],t)||Km(s.appContext[e],t);return!f&&o?c:f}}function Km(e,t){return e&&(e[t]||e[sr(t)]||e[Fu(sr(t))])}function $n(e,t,r,o){let s;const c=r,f=Ze(e);if(f||Ht(e)){const d=f&&jo(e);let h=!1,p=!1;d&&(h=!or(e),p=Ti(e),e=qu(e)),s=new Array(e.length);for(let g=0,v=e.length;gt(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function Dt(e,t,r={},o,s){if(mn.ce||mn.parent&&Ds(mn.parent)&&mn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),ie(),Ve(nt,null,[Ne("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),ie();const f=c&&vb(c(r)),d=r.key||f&&f.key,h=Ve(nt,{key:(d&&!Pr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function vb(e){return e.some(t=>Zs(t)?!(t.type===ln||t.type===nt&&!vb(t.children)):!0)?e:null}function q_(e,t){const r={};for(const o in e)r[qc(o)]=e[o];return r}const Yd=e=>e?jb(e)?Qu(e):Yd(e.parent):null,Ql=on(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yd(e.parent),$root:e=>Yd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xb(e),$forceUpdate:e=>e.f||(e.f=()=>{Xh(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>nT.bind(e)}),md=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),j_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;if(t[0]!=="$"){const b=f[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(md(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if(wt(c,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Zd&&(f[t]=0)}}const p=Ql[t];let g,v;if(p)return t==="$attrs"&&wn(e.attrs,"get",""),p(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(v=h.config.globalProperties,wt(v,t))return v[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return md(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,props:c,type:f}},d){let h;return!!(r[d]||e!==vt&&d[0]!=="$"&&wt(e,d)||md(t,d)||wt(c,d)||wt(o,d)||wt(Ql,d)||wt(s.config.globalProperties,d)||(h=f.__cssModules)&&h[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function yb(){return bb().slots}function U_(){return bb().attrs}function bb(e){const t=ti();return t.setupContext||(t.setupContext=Vb(t))}function cu(e){return Ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function da(e,t){return!e||!t?e||t:Ze(e)&&Ze(t)?e.concat(t):on({},cu(e),cu(t))}let Zd=!0;function V_(e){const t=xb(e),r=e.proxy,o=e.ctx;Zd=!1,t.beforeCreate&&Xm(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:g,beforeMount:v,mounted:b,beforeUpdate:w,updated:E,activated:L,deactivated:P,beforeDestroy:M,beforeUnmount:R,destroyed:I,unmounted:_,render:$,renderTracked:W,renderTriggered:ne,errorCaptured:ee,serverPrefetch:Z,expose:G,inheritAttrs:j,components:N,directives:O,filters:C}=t;if(p&&G_(p,o,null),f)for(const B in f){const ce=f[B];et(ce)&&(o[B]=ce.bind(r))}if(s){const B=s.call(r,r);kt(B)&&(e.data=ir(B))}if(Zd=!0,c)for(const B in c){const ce=c[B],be=et(ce)?ce.bind(r,r):et(ce.get)?ce.get.bind(r,r):Xr,Se=!et(ce)&&et(ce.set)?ce.set.bind(r):Xr,Be=ke({get:be,set:Se});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ae=>Be.value=Ae})}if(d)for(const B in d)wb(d[B],o,r,B);if(h){const B=et(h)?h.call(r):h;Reflect.ownKeys(B).forEach(ce=>{dr(ce,B[ce])})}g&&Xm(g,e,"c");function z(B,ce){Ze(ce)?ce.forEach(be=>B(be.bind(r))):ce&&B(ce.bind(r))}if(z(R_,v),z(Mi,b),z($_,w),z(I_,E),z(N_,L),z(O_,P),z(H_,ee),z(F_,W),z(z_,ne),z($a,R),z(Ia,_),z(D_,Z),Ze(G))if(G.length){const B=e.exposed||(e.exposed={});G.forEach(ce=>{Object.defineProperty(B,ce,{get:()=>r[ce],set:be=>r[ce]=be,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===Xr&&(e.render=$),j!=null&&(e.inheritAttrs=j),N&&(e.components=N),O&&(e.directives=O),Z&&pb(e)}function G_(e,t,r=Xr){Ze(e)&&(e=Jd(e));for(const o in e){const s=e[o];let c;kt(s)?"default"in s?c=pn(s.from||o,s.default,!0):c=pn(s.from||o):c=pn(s),Mt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Xm(e,t,r){$r(Ze(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function wb(e,t,r,o){let s=o.includes(".")?Tb(r,o):()=>r[o];if(Ht(e)){const c=t[e];et(c)&&xt(s,c)}else if(et(e))xt(s,e.bind(r));else if(kt(e))if(Ze(e))e.forEach(c=>wb(c,t,r,o));else{const c=et(e.handler)?e.handler.bind(r):t[e.handler];et(c)&&xt(s,c,e)}}function xb(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>uu(h,p,f,!0)),uu(h,t,f)),kt(t)&&c.set(t,h),h}function uu(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&uu(e,c,r,!0),s&&s.forEach(f=>uu(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=K_[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const K_={data:Ym,props:Zm,emits:Zm,methods:Ul,computed:Ul,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Ul,directives:Ul,watch:Y_,provide:Ym,inject:X_};function Ym(e,t){return t?e?function(){return on(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function X_(e,t){return Ul(Jd(e),Jd(t))}function Jd(e){if(Ze(e)){const t={};for(let r=0;r1)return r&&et(t)?t.call(o&&o.proxy):t}}function Sb(){return!!(ti()||Uo)}const Q_=Symbol.for("v-scx"),eT=()=>pn(Q_);function _b(e,t){return Xu(e,null,t)}function tT(e,t){return Xu(e,null,{flush:"sync"})}function xt(e,t,r){return Xu(e,t,r)}function Xu(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=on({},r),h=t&&o||!t&&c!=="post";let p;if(pa){if(c==="sync"){const w=eT();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Xr,w.resume=Xr,w.pause=Xr,w}}const g=xn;d.call=(w,E,L)=>$r(w,g,E,L);let v=!1;c==="post"?d.scheduler=w=>{jn(w,g&&g.suspense)}:c!=="sync"&&(v=!0,d.scheduler=(w,E)=>{E?w():Xh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const b=__(e,t,d);return pa&&(p?p.push(b):h&&b()),b}function nT(e,t,r){const o=this.proxy,s=Ht(e)?e.includes(".")?Tb(o,e):()=>o[e]:e.bind(o,o);let c;et(t)?c=t:(c=t.handler,r=t);const f=Da(this),d=Xu(s,c.bind(o),r);return f(),d}function Tb(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s{let g,v=vt,b;return tT(()=>{const w=e[s];Gn(g,w)&&(g=w,p())}),{get(){return h(),r.get?r.get(g):g},set(w){const E=r.set?r.set(w):w;if(!Gn(E,g)&&!(v!==vt&&Gn(w,v)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(g=w,p()),o.emit(`update:${t}`,E),Gn(w,E)&&Gn(w,v)&&!Gn(E,b)&&p(),v=w,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Cb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sr(t)}Modifiers`]||e[`${Ai(t)}Modifiers`];function rT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Cb(o,t.slice(7));f&&(f.trim&&(s=r.map(g=>Ht(g)?g.trim():g)),f.number&&(s=r.map(Wh)));let d,h=o[d=qc(t)]||o[d=qc(sr(t))];!h&&c&&(h=o[d=qc(Ai(t))]),h&&$r(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,$r(p,e,6,s)}}const iT=new WeakMap;function Eb(e,t,r=!1){const o=r?iT:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!et(e)){const h=p=>{const g=Eb(p,t,!0);g&&(d=!0,on(f,g))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(kt(e)&&o.set(e,null),null):(Ze(c)?c.forEach(h=>f[h]=null):on(f,c),kt(e)&&o.set(e,f),f)}function Zu(e,t){return!e||!$u(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Ai(t))||wt(e,t))}function Jm(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:g,props:v,data:b,setupState:w,ctx:E,inheritAttrs:L}=e,P=lu(e);let M,R;try{if(r.shapeFlag&4){const _=s||o,$=_;M=Lr(p.call($,_,g,v,w,b,E)),R=d}else{const _=t;M=Lr(_.length>1?_(v,{attrs:d,slots:f,emit:h}):_(v,null)),R=t.props?d:sT(d)}}catch(_){ea.length=0,Ra(_,e,1),M=Ne(ln)}let I=M;if(R&&L!==!1){const _=Object.keys(R),{shapeFlag:$}=I;_.length&&$&7&&(c&&_.some(Hh)&&(R=lT(R,c)),I=uo(I,R,!1,!0))}return r.dirs&&(I=uo(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(r.dirs):r.dirs),r.transition&&fa(I,r.transition),M=I,lu(P),M}function oT(e,t=!0){let r;for(let o=0;o{let t;for(const r in e)(r==="class"||r==="style"||$u(r))&&((t||(t={}))[r]=e[r]);return t},lT=(e,t)=>{const r={};for(const o in e)(!Hh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function aT(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Qm(o,f,p):!!f;if(h&8){const g=t.dynamicProps;for(let v=0;vObject.create(Ab),Mb=e=>Object.getPrototypeOf(e)===Ab;function cT(e,t,r,o=!1){const s={},c=Lb();e.propsDefaults=Object.create(null),Nb(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function uT(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=mt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const g=e.vnode.dynamicProps;for(let v=0;v{h=!0;const[b,w]=Ob(v,t,!0);on(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!c&&!h)return kt(e)&&o.set(e,Rs),Rs;if(Ze(c))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",tp=e=>Ze(e)?e.map(Lr):[Lr(e)],dT=(e,t,r)=>{if(t._n)return t;const o=We((...s)=>tp(t(...s)),r);return o._c=!1,o},Pb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(ep(s))continue;const c=e[s];if(et(c))t[s]=dT(s,c,o);else if(c!=null){const f=tp(c);t[s]=()=>f}}},Rb=(e,t)=>{const r=tp(t);e.slots.default=()=>r},$b=(e,t,r)=>{for(const o in t)(r||!ep(o))&&(e[o]=t[o])},hT=(e,t,r)=>{const o=e.slots=Lb();if(e.vnode.shapeFlag&32){const s=t._;s?($b(o,t,r),r&&M0(o,"_",s,!0)):Pb(t,o)}else t&&Rb(e,t)},pT=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:$b(s,t,r):(c=!t.$stable,Pb(t,s)),f=t}else t&&(Rb(e,t),f={default:1});if(c)for(const d in s)!ep(d)&&f[d]==null&&delete s[d]},jn=_T;function gT(e){return mT(e)}function mT(e,t){const r=Hu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:b,setScopeId:w=Xr,insertStaticContent:E}=e,L=(D,q,Q,he=null,de=null,ge=null,Ce=void 0,Ee=null,xe=!!q.dynamicChildren)=>{if(D===q)return;D&&!Kr(D,q)&&(he=F(D),Ae(D,de,ge,!0),D=null),q.patchFlag===-2&&(xe=!1,q.dynamicChildren=null);const{type:ye,ref:J,shapeFlag:ue}=q;switch(ye){case Ju:P(D,q,Q,he);break;case ln:M(D,q,Q,he);break;case yd:D==null&&R(q,Q,he,Ce);break;case nt:N(D,q,Q,he,de,ge,Ce,Ee,xe);break;default:ue&1?$(D,q,Q,he,de,ge,Ce,Ee,xe):ue&6?O(D,q,Q,he,de,ge,Ce,Ee,xe):(ue&64||ue&128)&&ye.process(D,q,Q,he,de,ge,Ce,Ee,xe,le)}J!=null&&de?Jl(J,D&&D.ref,ge,q||D,!q):J==null&&D&&D.ref!=null&&Jl(D.ref,null,ge,D,!0)},P=(D,q,Q,he)=>{if(D==null)o(q.el=d(q.children),Q,he);else{const de=q.el=D.el;q.children!==D.children&&p(de,q.children)}},M=(D,q,Q,he)=>{D==null?o(q.el=h(q.children||""),Q,he):q.el=D.el},R=(D,q,Q,he)=>{[D.el,D.anchor]=E(D.children,q,Q,he,D.el,D.anchor)},I=({el:D,anchor:q},Q,he)=>{let de;for(;D&&D!==q;)de=b(D),o(D,Q,he),D=de;o(q,Q,he)},_=({el:D,anchor:q})=>{let Q;for(;D&&D!==q;)Q=b(D),s(D),D=Q;s(q)},$=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{if(q.type==="svg"?Ce="svg":q.type==="math"&&(Ce="mathml"),D==null)W(q,Q,he,de,ge,Ce,Ee,xe);else{const ye=D.el&&D.el._isVueCE?D.el:null;try{ye&&ye._beginPatch(),Z(D,q,de,ge,Ce,Ee,xe)}finally{ye&&ye._endPatch()}}},W=(D,q,Q,he,de,ge,Ce,Ee)=>{let xe,ye;const{props:J,shapeFlag:ue,transition:oe,dirs:$e}=D;if(xe=D.el=f(D.type,ge,J&&J.is,J),ue&8?g(xe,D.children):ue&16&&ee(D.children,xe,null,he,de,vd(D,ge),Ce,Ee),$e&&Mo(D,null,he,"created"),ne(xe,D,D.scopeId,Ce,he),J){for(const ct in J)ct!=="value"&&!Xl(ct)&&c(xe,ct,null,J[ct],ge,he);"value"in J&&c(xe,"value",null,J.value,ge),(ye=J.onVnodeBeforeMount)&&Vr(ye,he,D)}$e&&Mo(D,null,he,"beforeMount");const Je=vT(de,oe);Je&&oe.beforeEnter(xe),o(xe,q,Q),((ye=J&&J.onVnodeMounted)||Je||$e)&&jn(()=>{ye&&Vr(ye,he,D),Je&&oe.enter(xe),$e&&Mo(D,null,he,"mounted")},de)},ne=(D,q,Q,he,de)=>{if(Q&&w(D,Q),he)for(let ge=0;ge{for(let ye=xe;ye{const Ee=q.el=D.el;let{patchFlag:xe,dynamicChildren:ye,dirs:J}=q;xe|=D.patchFlag&16;const ue=D.props||vt,oe=q.props||vt;let $e;if(Q&&No(Q,!1),($e=oe.onVnodeBeforeUpdate)&&Vr($e,Q,q,D),J&&Mo(q,D,Q,"beforeUpdate"),Q&&No(Q,!0),(ue.innerHTML&&oe.innerHTML==null||ue.textContent&&oe.textContent==null)&&g(Ee,""),ye?G(D.dynamicChildren,ye,Ee,Q,he,vd(q,de),ge):Ce||ce(D,q,Ee,null,Q,he,vd(q,de),ge,!1),xe>0){if(xe&16)j(Ee,ue,oe,Q,de);else if(xe&2&&ue.class!==oe.class&&c(Ee,"class",null,oe.class,de),xe&4&&c(Ee,"style",ue.style,oe.style,de),xe&8){const Je=q.dynamicProps;for(let ct=0;ct{$e&&Vr($e,Q,q,D),J&&Mo(q,D,Q,"updated")},he)},G=(D,q,Q,he,de,ge,Ce)=>{for(let Ee=0;Ee{if(q!==Q){if(q!==vt)for(const ge in q)!Xl(ge)&&!(ge in Q)&&c(D,ge,q[ge],null,de,he);for(const ge in Q){if(Xl(ge))continue;const Ce=Q[ge],Ee=q[ge];Ce!==Ee&&ge!=="value"&&c(D,ge,Ee,Ce,de,he)}"value"in Q&&c(D,"value",q.value,Q.value,de)}},N=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{const ye=q.el=D?D.el:d(""),J=q.anchor=D?D.anchor:d("");let{patchFlag:ue,dynamicChildren:oe,slotScopeIds:$e}=q;$e&&(Ee=Ee?Ee.concat($e):$e),D==null?(o(ye,Q,he),o(J,Q,he),ee(q.children||[],Q,J,de,ge,Ce,Ee,xe)):ue>0&&ue&64&&oe&&D.dynamicChildren?(G(D.dynamicChildren,oe,Q,de,ge,Ce,Ee),(q.key!=null||de&&q===de.subTree)&&Ib(D,q,!0)):ce(D,q,Q,J,de,ge,Ce,Ee,xe)},O=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{q.slotScopeIds=Ee,D==null?q.shapeFlag&512?de.ctx.activate(q,Q,he,Ce,xe):C(q,Q,he,de,ge,Ce,xe):k(D,q,xe)},C=(D,q,Q,he,de,ge,Ce)=>{const Ee=D.component=LT(D,he,de);if(Gu(D)&&(Ee.ctx.renderer=le),MT(Ee,!1,Ce),Ee.asyncDep){if(de&&de.registerDep(Ee,z,Ce),!D.el){const xe=Ee.subTree=Ne(ln);M(null,xe,q,Q),D.placeholder=xe.el}}else z(Ee,D,q,Q,de,ge,Ce)},k=(D,q,Q)=>{const he=q.component=D.component;if(aT(D,q,Q))if(he.asyncDep&&!he.asyncResolved){B(he,q,Q);return}else he.next=q,he.update();else q.el=D.el,he.vnode=q},z=(D,q,Q,he,de,ge,Ce)=>{const Ee=()=>{if(D.isMounted){let{next:ue,bu:oe,u:$e,parent:Je,vnode:ct}=D;{const jt=Db(D);if(jt){ue&&(ue.el=ct.el,B(D,ue,Ce)),jt.asyncDep.then(()=>{D.isUnmounted||Ee()});return}}let dt=ue,Nt;No(D,!1),ue?(ue.el=ct.el,B(D,ue,Ce)):ue=ct,oe&&jc(oe),(Nt=ue.props&&ue.props.onVnodeBeforeUpdate)&&Vr(Nt,Je,ue,ct),No(D,!0);const ut=Jm(D),Yt=D.subTree;D.subTree=ut,L(Yt,ut,v(Yt.el),F(Yt),D,de,ge),ue.el=ut.el,dt===null&&Qh(D,ut.el),$e&&jn($e,de),(Nt=ue.props&&ue.props.onVnodeUpdated)&&jn(()=>Vr(Nt,Je,ue,ct),de)}else{let ue;const{el:oe,props:$e}=q,{bm:Je,m:ct,parent:dt,root:Nt,type:ut}=D,Yt=Ds(q);No(D,!1),Je&&jc(Je),!Yt&&(ue=$e&&$e.onVnodeBeforeMount)&&Vr(ue,dt,q),No(D,!0);{Nt.ce&&Nt.ce._def.shadowRoot!==!1&&Nt.ce._injectChildStyle(ut);const jt=D.subTree=Jm(D);L(null,jt,Q,he,D,de,ge),q.el=jt.el}if(ct&&jn(ct,de),!Yt&&(ue=$e&&$e.onVnodeMounted)){const jt=q;jn(()=>Vr(ue,dt,jt),de)}(q.shapeFlag&256||dt&&Ds(dt.vnode)&&dt.vnode.shapeFlag&256)&&D.a&&jn(D.a,de),D.isMounted=!0,q=Q=he=null}};D.scope.on();const xe=D.effect=new D0(Ee);D.scope.off();const ye=D.update=xe.run.bind(xe),J=D.job=xe.runIfDirty.bind(xe);J.i=D,J.id=D.uid,xe.scheduler=()=>Xh(J),No(D,!0),ye()},B=(D,q,Q)=>{q.component=D;const he=D.vnode.props;D.vnode=q,D.next=null,uT(D,q.props,he,Q),pT(D,q.children,Q),Si(),Um(D),_i()},ce=(D,q,Q,he,de,ge,Ce,Ee,xe=!1)=>{const ye=D&&D.children,J=D?D.shapeFlag:0,ue=q.children,{patchFlag:oe,shapeFlag:$e}=q;if(oe>0){if(oe&128){Se(ye,ue,Q,he,de,ge,Ce,Ee,xe);return}else if(oe&256){be(ye,ue,Q,he,de,ge,Ce,Ee,xe);return}}$e&8?(J&16&&Pe(ye,de,ge),ue!==ye&&g(Q,ue)):J&16?$e&16?Se(ye,ue,Q,he,de,ge,Ce,Ee,xe):Pe(ye,de,ge,!0):(J&8&&g(Q,""),$e&16&&ee(ue,Q,he,de,ge,Ce,Ee,xe))},be=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{D=D||Rs,q=q||Rs;const ye=D.length,J=q.length,ue=Math.min(ye,J);let oe;for(oe=0;oeJ?Pe(D,de,ge,!0,!1,ue):ee(q,Q,he,de,ge,Ce,Ee,xe,ue)},Se=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{let ye=0;const J=q.length;let ue=D.length-1,oe=J-1;for(;ye<=ue&&ye<=oe;){const $e=D[ye],Je=q[ye]=xe?Ji(q[ye]):Lr(q[ye]);if(Kr($e,Je))L($e,Je,Q,null,de,ge,Ce,Ee,xe);else break;ye++}for(;ye<=ue&&ye<=oe;){const $e=D[ue],Je=q[oe]=xe?Ji(q[oe]):Lr(q[oe]);if(Kr($e,Je))L($e,Je,Q,null,de,ge,Ce,Ee,xe);else break;ue--,oe--}if(ye>ue){if(ye<=oe){const $e=oe+1,Je=$eoe)for(;ye<=ue;)Ae(D[ye],de,ge,!0),ye++;else{const $e=ye,Je=ye,ct=new Map;for(ye=Je;ye<=oe;ye++){const Bt=q[ye]=xe?Ji(q[ye]):Lr(q[ye]);Bt.key!=null&&ct.set(Bt.key,ye)}let dt,Nt=0;const ut=oe-Je+1;let Yt=!1,jt=0;const Fn=new Array(ut);for(ye=0;ye=ut){Ae(Bt,de,ge,!0);continue}let Hn;if(Bt.key!=null)Hn=ct.get(Bt.key);else for(dt=Je;dt<=oe;dt++)if(Fn[dt-Je]===0&&Kr(Bt,q[dt])){Hn=dt;break}Hn===void 0?Ae(Bt,de,ge,!0):(Fn[Hn-Je]=ye+1,Hn>=jt?jt=Hn:Yt=!0,L(Bt,q[Hn],Q,null,de,ge,Ce,Ee,xe),Nt++)}const Hr=Yt?yT(Fn):Rs;for(dt=Hr.length-1,ye=ut-1;ye>=0;ye--){const Bt=Je+ye,Hn=q[Bt],lt=q[Bt+1],yo=Bt+1{const{el:ge,type:Ce,transition:Ee,children:xe,shapeFlag:ye}=D;if(ye&6){Be(D.component.subTree,q,Q,he);return}if(ye&128){D.suspense.move(q,Q,he);return}if(ye&64){Ce.move(D,q,Q,le);return}if(Ce===nt){o(ge,q,Q);for(let ue=0;ueEe.enter(ge),de);else{const{leave:ue,delayLeave:oe,afterLeave:$e}=Ee,Je=()=>{D.ctx.isUnmounted?s(ge):o(ge,q,Q)},ct=()=>{ge._isLeaving&&ge[yi](!0),ue(ge,()=>{Je(),$e&&$e()})};oe?oe(ge,Je,ct):ct()}else o(ge,q,Q)},Ae=(D,q,Q,he=!1,de=!1)=>{const{type:ge,props:Ce,ref:Ee,children:xe,dynamicChildren:ye,shapeFlag:J,patchFlag:ue,dirs:oe,cacheIndex:$e}=D;if(ue===-2&&(de=!1),Ee!=null&&(Si(),Jl(Ee,null,Q,D,!0),_i()),$e!=null&&(q.renderCache[$e]=void 0),J&256){q.ctx.deactivate(D);return}const Je=J&1&&oe,ct=!Ds(D);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Vr(dt,q,D),J&6)Fe(D.component,Q,he);else{if(J&128){D.suspense.unmount(Q,he);return}Je&&Mo(D,null,q,"beforeUnmount"),J&64?D.type.remove(D,q,Q,le,he):ye&&!ye.hasOnce&&(ge!==nt||ue>0&&ue&64)?Pe(ye,q,Q,!1,!0):(ge===nt&&ue&384||!de&&J&16)&&Pe(xe,q,Q),he&&Ke(D)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||Je)&&jn(()=>{dt&&Vr(dt,q,D),Je&&Mo(D,null,q,"unmounted")},Q)},Ke=D=>{const{type:q,el:Q,anchor:he,transition:de}=D;if(q===nt){je(Q,he);return}if(q===yd){_(D);return}const ge=()=>{s(Q),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(D.shapeFlag&1&&de&&!de.persisted){const{leave:Ce,delayLeave:Ee}=de,xe=()=>Ce(Q,ge);Ee?Ee(D.el,ge,xe):xe()}else ge()},je=(D,q)=>{let Q;for(;D!==q;)Q=b(D),s(D),D=Q;s(q)},Fe=(D,q,Q)=>{const{bum:he,scope:de,job:ge,subTree:Ce,um:Ee,m:xe,a:ye}=D;tv(xe),tv(ye),he&&jc(he),de.stop(),ge&&(ge.flags|=8,Ae(Ce,D,q,Q)),Ee&&jn(Ee,q),jn(()=>{D.isUnmounted=!0},q)},Pe=(D,q,Q,he=!1,de=!1,ge=0)=>{for(let Ce=ge;Ce{if(D.shapeFlag&6)return F(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();const q=b(D.anchor||D.el),Q=q&&q[E_];return Q?b(Q):q};let Y=!1;const re=(D,q,Q)=>{D==null?q._vnode&&Ae(q._vnode,null,null,!0):L(q._vnode||null,D,q,null,null,null,Q),q._vnode=D,Y||(Y=!0,Um(),rb(),Y=!1)},le={p:L,um:Ae,m:Be,r:Ke,mt:C,mc:ee,pc:ce,pbc:G,n:F,o:e};return{render:re,hydrate:void 0,createApp:J_(re)}}function vd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function No({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ib(e,t,r=!1){const o=e.children,s=t.children;if(Ze(o)&&Ze(s))for(let c=0;c>1,e[r[d]]0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function Db(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Db(t)}function tv(e){if(e)for(let t=0;te.__isSuspense;let eh=0;const bT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)wT(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}xT(e,t,r,o,s,f,d,h,p)}},hydrate:kT,normalize:ST},np=bT;function ha(e,t){const r=e.props&&e.props[t];et(r)&&r()}function wT(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:g}}=h,v=g("div"),b=e.suspense=Fb(e,s,o,t,v,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,v,null,o,b,c,f),b.deps>0?(ha(e,"onPending"),ha(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),zs(b,e.ssFallback)):b.resolve(!1,!0)}function xT(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:L,isInFallback:P,isHydrating:M}=v;if(L)v.pendingBranch=b,Kr(L,b)?(h(L,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():P&&(M||(h(E,w,r,o,s,null,c,f,d),zs(v,w)))):(v.pendingId=eh++,M?(v.isHydrating=!1,v.activeBranch=L):p(L,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),P?(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():(h(E,w,r,o,s,null,c,f,d),zs(v,w))):E&&Kr(E,b)?(h(E,b,r,o,s,v,c,f,d),v.resolve(!0)):(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0&&v.resolve()));else if(E&&Kr(E,b))h(E,b,r,o,s,v,c,f,d),zs(v,b);else if(ha(t,"onPending"),v.pendingBranch=b,b.shapeFlag&512?v.pendingId=b.component.suspenseId:v.pendingId=eh++,h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0)v.resolve();else{const{timeout:R,pendingId:I}=v;R>0?setTimeout(()=>{v.pendingId===I&&v.fallback(w)},R):R===0&&v.fallback(w)}}function Fb(e,t,r,o,s,c,f,d,h,p,g=!1){const{p:v,m:b,um:w,n:E,o:{parentNode:L,remove:P}}=p;let M;const R=TT(e);R&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const I=e.props?N0(e.props.timeout):void 0,_=c,$={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:eh++,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(W=!1,ne=!1){const{vnode:ee,activeBranch:Z,pendingBranch:G,pendingId:j,effects:N,parentComponent:O,container:C,isInFallback:k}=$;let z=!1;$.isHydrating?$.isHydrating=!1:W||(z=Z&&G.transition&&G.transition.mode==="out-in",z&&(Z.transition.afterLeave=()=>{j===$.pendingId&&(b(G,C,c===_?E(Z):c,0),Gd(N),k&&ee.ssFallback&&(ee.ssFallback.el=null))}),Z&&(L(Z.el)===C&&(c=E(Z)),w(Z,O,$,!0),!z&&k&&ee.ssFallback&&jn(()=>ee.ssFallback.el=null,$)),z||b(G,C,c,0)),zs($,G),$.pendingBranch=null,$.isInFallback=!1;let B=$.parent,ce=!1;for(;B;){if(B.pendingBranch){B.effects.push(...N),ce=!0;break}B=B.parent}!ce&&!z&&Gd(N),$.effects=[],R&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!ne&&t.resolve()),ha(ee,"onResolve")},fallback(W){if(!$.pendingBranch)return;const{vnode:ne,activeBranch:ee,parentComponent:Z,container:G,namespace:j}=$;ha(ne,"onFallback");const N=E(ee),O=()=>{$.isInFallback&&(v(null,W,G,N,Z,null,j,d,h),zs($,W))},C=W.transition&&W.transition.mode==="out-in";C&&(ee.transition.afterLeave=O),$.isInFallback=!0,w(ee,Z,null,!0),C||O()},move(W,ne,ee){$.activeBranch&&b($.activeBranch,W,ne,ee),$.container=W},next(){return $.activeBranch&&E($.activeBranch)},registerDep(W,ne,ee){const Z=!!$.pendingBranch;Z&&$.deps++;const G=W.vnode.el;W.asyncDep.catch(j=>{Ra(j,W,0)}).then(j=>{if(W.isUnmounted||$.isUnmounted||$.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:N}=W;nh(W,j),G&&(N.el=G);const O=!G&&W.subTree.el;ne(W,N,L(G||W.subTree.el),G?null:E(W.subTree),$,f,ee),O&&(N.placeholder=null,P(O)),Qh(W,N.el),Z&&--$.deps===0&&$.resolve()})},unmount(W,ne){$.isUnmounted=!0,$.activeBranch&&w($.activeBranch,r,W,ne),$.pendingBranch&&w($.pendingBranch,r,W,ne)}};return $}function kT(e,t,r,o,s,c,f,d,h){const p=t.suspense=Fb(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),g=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),g}function ST(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=nv(o?r.default:r),e.ssFallback=o?nv(r.fallback):Ne(ln)}function nv(e){let t;if(et(e)){const r=Xs&&e._c;r&&(e._d=!1,ie()),e=e(),r&&(e._d=!0,t=Xn,Hb())}return Ze(e)&&(e=oT(e)),e=Lr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function _T(e,t){t&&t.pendingBranch?Ze(e)?t.effects.push(...e):t.effects.push(e):Gd(e)}function zs(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Qh(o,s))}function TT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Ju=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),yd=Symbol.for("v-stc"),ea=[];let Xn=null;function ie(e=!1){ea.push(Xn=e?null:[])}function Hb(){ea.pop(),Xn=ea[ea.length-1]||null}let Xs=1;function Ys(e,t=!1){Xs+=e,e<0&&Xn&&t&&(Xn.hasOnce=!0)}function Bb(e){return e.dynamicChildren=Xs>0?Xn||Rs:null,Hb(),Xs>0&&Xn&&Xn.push(e),e}function ve(e,t,r,o,s,c){return Bb(X(e,t,r,o,s,c,!0))}function Ve(e,t,r,o,s){return Bb(Ne(e,t,r,o,s,!0))}function Zs(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}const Wb=({key:e})=>e??null,Uc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||Mt(e)||et(e)?{i:mn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wb(t),ref:t&&Uc(t),scopeId:Vu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:mn};return d?(rp(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ht(r)?8:16),Xs>0&&!f&&Xn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Xn.push(h),h}const Ne=CT;function CT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===mb)&&(e=ln),Zs(e)){const d=uo(e,t,!0);return r&&rp(d,r),Xs>0&&!c&&Xn&&(d.shapeFlag&6?Xn[Xn.indexOf(e)]=d:Xn.push(d)),d.patchFlag=-2,d}if(RT(e)&&(e=e.__vccOpts),t){t=qb(t);let{class:d,style:h}=t;d&&!Ht(d)&&(t.class=ot(d)),kt(h)&&(ju(h)&&!Ze(h)&&(h=on({},h)),t.style=zt(h))}const f=Ht(e)?1:zb(e)?128:ab(e)?64:kt(e)?4:et(e)?2:0;return X(e,t,r,o,s,f,c,!0)}function qb(e){return e?ju(e)||Mb(e)?on({},e):e:null}function uo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?ki(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Wb(p),ref:t&&t.ref?r&&c?Ze(c)?c.concat(Uc(t)):[c,Uc(t)]:Uc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&uo(e.ssContent),ssFallback:e.ssFallback&&uo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&fa(g,h.clone(g)),g}function Qe(e=" ",t=0){return Ne(Ju,null,e,t)}function He(e="",t=!1){return t?(ie(),Ve(ln,null,e)):Ne(ln,null,e)}function Lr(e){return e==null||typeof e=="boolean"?Ne(ln):Ze(e)?Ne(nt,null,e.slice()):Zs(e)?Ji(e):Ne(Ju,null,String(e))}function Ji(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:uo(e)}function rp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Ze(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),rp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Mb(t)?t._ctx=mn:s===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:mn},r=32):(t=String(t),o&64?(r=16,t=[Qe(t)]):r=8);e.children=t,e.shapeFlag|=r}function ki(...e){const t={};for(let r=0;rxn||mn;let fu,th;{const e=Hu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};fu=t("__VUE_INSTANCE_SETTERS__",r=>xn=r),th=t("__VUE_SSR_SETTERS__",r=>pa=r)}const Da=e=>{const t=xn;return fu(e),e.scope.on(),()=>{e.scope.off(),fu(t)}},rv=()=>{xn&&xn.scope.off(),fu(null)};function jb(e){return e.vnode.shapeFlag&4}let pa=!1;function MT(e,t=!1,r=!1){t&&th(t);const{props:o,children:s}=e.vnode,c=jb(e);cT(e,o,c,t),hT(e,s,r||t);const f=c?NT(e,t):void 0;return t&&th(!1),f}function NT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,j_);const{setup:o}=r;if(o){Si();const s=e.setupContext=o.length>1?Vb(e):null,c=Da(e),f=Pa(o,e,0,[e.props,s]),d=E0(f);if(_i(),c(),(d||e.sp)&&!Ds(e)&&pb(e),d){if(f.then(rv,rv),t)return f.then(h=>{nh(e,h)}).catch(h=>{Ra(h,e,0)});e.asyncDep=f}else nh(e,f)}else Ub(e)}function nh(e,t,r){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=J0(t)),Ub(e)}function Ub(e,t,r){const o=e.type;e.render||(e.render=o.render||Xr);{const s=Da(e);Si();try{V_(e)}finally{_i(),s()}}}const OT={get(e,t){return wn(e,"get",""),e[t]}};function Vb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,OT),slots:e.slots,emit:e.emit,expose:t}}function Qu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(J0(Uu(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ql)return Ql[r](e)},has(t,r){return r in t||r in Ql}})):e.proxy}function PT(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function RT(e){return et(e)&&"__vccOpts"in e}const ke=(e,t)=>k_(e,t,pa);function za(e,t,r){try{Ys(-1);const o=arguments.length;return o===2?kt(t)&&!Ze(t)?Zs(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Zs(r)&&(r=[r]),Ne(e,t,r))}finally{Ys(1)}}const $T="3.5.25";/** +* @vue/runtime-dom v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let rh;const iv=typeof window<"u"&&window.trustedTypes;if(iv)try{rh=iv.createPolicy("vue",{createHTML:e=>e})}catch{}const Gb=rh?e=>rh.createHTML(e):e=>e,IT="http://www.w3.org/2000/svg",DT="http://www.w3.org/1998/Math/MathML",mi=typeof document<"u"?document:null,ov=mi&&mi.createElement("template"),zT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?mi.createElementNS(IT,e):t==="mathml"?mi.createElementNS(DT,e):r?mi.createElement(e,{is:r}):mi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{ov.innerHTML=Gb(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const d=ov.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Ui="transition",zl="animation",ga=Symbol("_vtc"),Kb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},FT=on({},cb,Kb),HT=e=>(e.displayName="Transition",e.props=FT,e),BT=HT((e,{slots:t})=>za(M_,WT(e),t)),Oo=(e,t=[])=>{Ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},sv=e=>e?Ze(e)?e.some(t=>t.length>1):e.length>1:!1;function WT(e){const t={};for(const N in e)N in Kb||(t[N]=e[N]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=qT(s),L=E&&E[0],P=E&&E[1],{onBeforeEnter:M,onEnter:R,onEnterCancelled:I,onLeave:_,onLeaveCancelled:$,onBeforeAppear:W=M,onAppear:ne=R,onAppearCancelled:ee=I}=t,Z=(N,O,C,k)=>{N._enterCancelled=k,Po(N,O?g:d),Po(N,O?p:f),C&&C()},G=(N,O)=>{N._isLeaving=!1,Po(N,v),Po(N,w),Po(N,b),O&&O()},j=N=>(O,C)=>{const k=N?ne:R,z=()=>Z(O,N,C);Oo(k,[O,z]),lv(()=>{Po(O,N?h:c),di(O,N?g:d),sv(k)||av(O,o,L,z)})};return on(t,{onBeforeEnter(N){Oo(M,[N]),di(N,c),di(N,f)},onBeforeAppear(N){Oo(W,[N]),di(N,h),di(N,p)},onEnter:j(!1),onAppear:j(!0),onLeave(N,O){N._isLeaving=!0;const C=()=>G(N,O);di(N,v),N._enterCancelled?(di(N,b),fv(N)):(fv(N),di(N,b)),lv(()=>{N._isLeaving&&(Po(N,v),di(N,w),sv(_)||av(N,o,P,C))}),Oo(_,[N,C])},onEnterCancelled(N){Z(N,!1,void 0,!0),Oo(I,[N])},onAppearCancelled(N){Z(N,!0,void 0,!0),Oo(ee,[N])},onLeaveCancelled(N){G(N),Oo($,[N])}})}function qT(e){if(e==null)return null;if(kt(e))return[bd(e.enter),bd(e.leave)];{const t=bd(e);return[t,t]}}function bd(e){return N0(e)}function di(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ga]||(e[ga]=new Set)).add(t)}function Po(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ga];r&&(r.delete(t),r.size||(e[ga]=void 0))}function lv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jT=0;function av(e,t,r,o){const s=e._endId=++jT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=UT(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g(r[E]||"").split(", "),s=o(`${Ui}Delay`),c=o(`${Ui}Duration`),f=cv(s,c),d=o(`${zl}Delay`),h=o(`${zl}Duration`),p=cv(d,h);let g=null,v=0,b=0;t===Ui?f>0&&(g=Ui,v=f,b=c.length):t===zl?p>0&&(g=zl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Ui:zl:null,b=g?g===Ui?c.length:h.length:0);const w=g===Ui&&/\b(?:transform|all)(?:,|$)/.test(o(`${Ui}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:w}}function cv(e,t){for(;e.lengthuv(r)+uv(e[o])))}function uv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fv(e){return(e?e.ownerDocument:document).body.offsetHeight}function VT(e,t,r){const o=e[ga];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const du=Symbol("_vod"),Xb=Symbol("_vsh"),ro={name:"show",beforeMount(e,{value:t},{transition:r}){e[du]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Fl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Fl(e,!0),o.enter(e)):o.leave(e,()=>{Fl(e,!1)}):Fl(e,t))},beforeUnmount(e,{value:t}){Fl(e,t)}};function Fl(e,t){e.style.display=t?e[du]:"none",e[Xb]=!t}const GT=Symbol(""),KT=/(?:^|;)\s*display\s*:/;function XT(e,t,r){const o=e.style,s=Ht(r);let c=!1;if(r&&!s){if(t)if(Ht(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Vc(o,d,"")}else for(const f in t)r[f]==null&&Vc(o,f,"");for(const f in r)f==="display"&&(c=!0),Vc(o,f,r[f])}else if(s){if(t!==r){const f=o[GT];f&&(r+=";"+f),o.cssText=r,c=KT.test(r)}}else t&&e.removeAttribute("style");du in e&&(e[du]=c?o.display:"",e[Xb]&&(o.display="none"))}const dv=/\s*!important$/;function Vc(e,t,r){if(Ze(r))r.forEach(o=>Vc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=YT(e,t);dv.test(r)?e.setProperty(Ai(o),r.replace(dv,""),"important"):e[o]=r}}const hv=["Webkit","Moz","ms"],wd={};function YT(e,t){const r=wd[t];if(r)return r;let o=sr(t);if(o!=="filter"&&o in e)return wd[t]=o;o=Fu(o);for(let s=0;sxd||(eC.then(()=>xd=0),xd=Date.now());function nC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(rC(o,r.value),t,5,[o])};return r.value=e,r.attached=tC(),r}function rC(e,t){if(Ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const bv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,iC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?VT(e,o,f):t==="style"?XT(e,r,o):$u(t)?Hh(t)||JT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):oC(e,t,o,f))?(mv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?mv(e,sr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),gv(e,t,o,f))};function oC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&bv(t)&&et(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return bv(t)&&Ht(r)?!1:t in e}const hu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ze(t)?r=>jc(t,r):t};function sC(e){e.target.composing=!0}function wv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fs=Symbol("_assign");function xv(e,t,r){return t&&(e=e.trim()),r&&(e=Wh(e)),e}const Yb={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Fs]=hu(s);const c=o||s.props&&s.props.type==="number";zo(e,t?"change":"input",f=>{f.target.composing||e[Fs](xv(e.value,r,c))}),(r||c)&&zo(e,"change",()=>{e.value=xv(e.value,r,c)}),t||(zo(e,"compositionstart",sC),zo(e,"compositionend",wv),zo(e,"change",wv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Fs]=hu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Wh(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},Zb={deep:!0,created(e,t,r){e[Fs]=hu(r),zo(e,"change",()=>{const o=e._modelValue,s=lC(e),c=e.checked,f=e[Fs];if(Ze(o)){const d=P0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(Iu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Jb(e,c))})},mounted:kv,beforeUpdate(e,t,r){e[Fs]=hu(r),kv(e,t,r)}};function kv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Ze(t))s=P0(t,o.props.value)>-1;else if(Iu(t))s=t.has(o.props.value);else{if(t===r)return;s=Bu(t,Jb(e,!0))}e.checked!==s&&(e.checked=s)}function lC(e){return"_value"in e?e._value:e.value}function Jb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const aC=["ctrl","shift","alt","meta"],cC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>aC.some(r=>e[`${r}Key`]&&!t.includes(r))},Gc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Ai(s.key);if(t.some(f=>f===c||uC[f]===c))return e(s)}))},fC=on({patchProp:iC},zT);let Sv;function dC(){return Sv||(Sv=gT(fC))}const Qb=((...e)=>{const t=dC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=pC(o);if(!s)return;const c=t._component;!et(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,hC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function hC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pC(e){return Ht(e)?document.querySelector(e):e}const Ni=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},gC={};function mC(e,t){const r=Go("RouterView");return ie(),Ve(r)}const vC=Ni(gC,[["render",mC]]),yC=["top","right","bottom","left"],_v=["start","end"],Tv=yC.reduce((e,t)=>e.concat(t,t+"-"+_v[0],t+"-"+_v[1]),[]),ma=Math.min,Io=Math.max,bC={left:"right",right:"left",bottom:"top",top:"bottom"},wC={start:"end",end:"start"};function oh(e,t,r){return Io(e,ma(t,r))}function Xo(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Or(e){return e.split("-")[1]}function ew(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}function Fa(e){return["top","bottom"].includes(Qr(e))?"y":"x"}function op(e){return ew(Fa(e))}function tw(e,t,r){r===void 0&&(r=!1);const o=Or(e),s=op(e),c=ip(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=gu(f)),[f,gu(f)]}function xC(e){const t=gu(e);return[pu(e),t,pu(t)]}function pu(e){return e.replace(/start|end/g,t=>wC[t])}function kC(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function SC(e,t,r,o){const s=Or(e);let c=kC(Qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(pu)))),c}function gu(e){return e.replace(/left|right|bottom|top/g,t=>bC[t])}function _C(e){return{top:0,right:0,bottom:0,left:0,...e}}function nw(e){return typeof e!="number"?_C(e):{top:e,right:e,bottom:e,left:e}}function ta(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Cv(e,t,r){let{reference:o,floating:s}=e;const c=Fa(t),f=op(t),d=ip(f),h=Qr(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:g,y:o.y-s.height};break;case"bottom":w={x:g,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}switch(Or(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const TC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:v}=Cv(p,o,h),b=o,w={},E=0;for(let L=0;L({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:g=0}=Xo(e,t)||{};if(p==null)return{};const v=nw(g),b={x:r,y:o},w=op(s),E=ip(w),L=await f.getDimensions(p),P=w==="y",M=P?"top":"left",R=P?"bottom":"right",I=P?"clientHeight":"clientWidth",_=c.reference[E]+c.reference[w]-b[w]-c.floating[E],$=b[w]-c.reference[w],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ne=W?W[I]:0;(!ne||!await(f.isElement==null?void 0:f.isElement(W)))&&(ne=d.floating[I]||c.floating[E]);const ee=_/2-$/2,Z=ne/2-L[E]/2-1,G=ma(v[M],Z),j=ma(v[R],Z),N=G,O=ne-L[E]-j,C=ne/2-L[E]/2+ee,k=oh(N,C,O),z=!h.arrow&&Or(s)!=null&&C!==k&&c.reference[E]/2-(COr(s)===e),...r.filter(s=>Or(s)!==e)]:r.filter(s=>Qr(s)===s)).filter(s=>e?Or(s)===e||(t?pu(s)!==s:!1):!0)}const AC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:b=Tv,autoAlignment:w=!0,...E}=Xo(e,t),L=v!==void 0||b===Tv?EC(v||null,w,b):b,P=await ef(t,E),M=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[M];if(R==null)return{};const I=tw(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const _=[P[Qr(R)],P[I[0]],P[I[1]]],$=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:_}],W=L[M+1];if(W)return{data:{index:M+1,overflows:$},reset:{placement:W}};const ne=$.map(G=>{const j=Or(G.placement);return[G.placement,j&&g?G.overflows.slice(0,2).reduce((N,O)=>N+O,0):G.overflows[0],G.overflows]}).sort((G,j)=>G[1]-j[1]),Z=((s=ne.filter(G=>G[2].slice(0,Or(G[0])?2:3).every(j=>j<=0))[0])==null?void 0:s[0])||ne[0][0];return Z!==d?{data:{index:M+1,overflows:$},reset:{placement:Z}}:{}}}},LC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:L=!0,...P}=Xo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Qr(s),R=Qr(d)===d,I=await(h.isRTL==null?void 0:h.isRTL(p.floating)),_=b||(R||!L?[gu(d)]:xC(d));!b&&E!=="none"&&_.push(...SC(d,L,E,I));const $=[d,..._],W=await ef(t,P),ne=[];let ee=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&ne.push(W[M]),v){const N=tw(s,f,I);ne.push(W[N[0]],W[N[1]])}if(ee=[...ee,{placement:s,overflows:ne}],!ne.every(N=>N<=0)){var Z,G;const N=(((Z=c.flip)==null?void 0:Z.index)||0)+1,O=$[N];if(O)return{data:{index:N,overflows:ee},reset:{placement:O}};let C=(G=ee.filter(k=>k.overflows[0]<=0).sort((k,z)=>k.overflows[1]-z.overflows[1])[0])==null?void 0:G.placement;if(!C)switch(w){case"bestFit":{var j;const k=(j=ee.map(z=>[z.placement,z.overflows.filter(B=>B>0).reduce((B,ce)=>B+ce,0)]).sort((z,B)=>z[1]-B[1])[0])==null?void 0:j[0];k&&(C=k);break}case"initialPlacement":C=d;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function MC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Qr(r),d=Or(r),h=Fa(r)==="y",p=["left","top"].includes(f)?-1:1,g=c&&h?-1:1,v=Xo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*g,y:b*p}:{x:b*p,y:w*g}}const NC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await MC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},OC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:P=>{let{x:M,y:R}=P;return{x:M,y:R}}},...h}=Xo(e,t),p={x:r,y:o},g=await ef(t,h),v=Fa(Qr(s)),b=ew(v);let w=p[b],E=p[v];if(c){const P=b==="y"?"top":"left",M=b==="y"?"bottom":"right",R=w+g[P],I=w-g[M];w=oh(R,w,I)}if(f){const P=v==="y"?"top":"left",M=v==="y"?"bottom":"right",R=E+g[P],I=E-g[M];E=oh(R,E,I)}const L=d.fn({...t,[b]:w,[v]:E});return{...L,data:{x:L.x-r,y:L.y-o}}}}},PC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Xo(e,t),h=await ef(t,d),p=Qr(r),g=Or(r),v=Fa(r)==="y",{width:b,height:w}=o.floating;let E,L;p==="top"||p==="bottom"?(E=p,L=g===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,E=g==="end"?"top":"bottom");const P=w-h[E],M=b-h[L],R=!t.middlewareData.shift;let I=P,_=M;if(v){const W=b-h.left-h.right;_=g||R?ma(M,W):W}else{const W=w-h.top-h.bottom;I=g||R?ma(P,W):W}if(R&&!g){const W=Io(h.left,0),ne=Io(h.right,0),ee=Io(h.top,0),Z=Io(h.bottom,0);v?_=b-2*(W!==0||ne!==0?W+ne:Io(h.left,h.right)):I=w-2*(ee!==0||Z!==0?ee+Z:Io(h.top,h.bottom))}await f({...t,availableWidth:_,availableHeight:I});const $=await s.getDimensions(c.floating);return b!==$.width||w!==$.height?{reset:{rects:!0}}:{}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yr(e){return hr(e).getComputedStyle(e)}const Ev=Math.min,na=Math.max,mu=Math.round;function rw(e){const t=Yr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=mu(r)!==s||mu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function fo(e){return ow(e)?(e.nodeName||"").toLowerCase():""}let Lc;function iw(){if(Lc)return Lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Lc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Lc):navigator.userAgent}function Zr(e){return e instanceof hr(e).HTMLElement}function so(e){return e instanceof hr(e).Element}function ow(e){return e instanceof hr(e).Node}function Av(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function tf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Yr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function RC(e){return["table","td","th"].includes(fo(e))}function sh(e){const t=/firefox/i.test(iw()),r=Yr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function sw(){return!/^((?!chrome|android).)*safari/i.test(iw())}function sp(e){return["html","body","#document"].includes(fo(e))}function lw(e){return so(e)?e:e.contextElement}const aw={x:1,y:1};function Hs(e){const t=lw(e);if(!Zr(t))return aw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=rw(t);let f=(c?mu(r.width):r.width)/o,d=(c?mu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function va(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=lw(e);let h=aw;t&&(o?so(o)&&(h=Hs(o)):h=Hs(e));const p=d?hr(d):window,g=!sw()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const L=hr(d),P=o&&so(o)?hr(o):o;let M=L.frameElement;for(;M&&o&&P!==L;){const R=Hs(M),I=M.getBoundingClientRect(),_=getComputedStyle(M);I.x+=(M.clientLeft+parseFloat(_.paddingLeft))*R.x,I.y+=(M.clientTop+parseFloat(_.paddingTop))*R.y,v*=R.x,b*=R.y,w*=R.x,E*=R.y,v+=I.x,b+=I.y,M=hr(M).frameElement}}return{width:w,height:E,top:b,right:v+w,bottom:b+E,left:v,x:v,y:b}}function lo(e){return((ow(e)?e.ownerDocument:e.document)||window.document).documentElement}function nf(e){return so(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cw(e){return va(lo(e)).left+nf(e).scrollLeft}function ya(e){if(fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Av(e)&&e.host||lo(e);return Av(t)?t.host:t}function uw(e){const t=ya(e);return sp(t)?t.ownerDocument.body:Zr(t)&&tf(t)?t:uw(t)}function vu(e,t){var r;t===void 0&&(t=[]);const o=uw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=hr(o);return s?t.concat(c,c.visualViewport||[],tf(o)?o:[]):t.concat(o,vu(o))}function Lv(e,t,r){return t==="viewport"?ta((function(o,s){const c=hr(o),f=lo(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=sw();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):so(t)?ta((function(o,s){const c=va(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Zr(o)?Hs(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):ta((function(o){const s=lo(o),c=nf(o),f=o.ownerDocument.body,d=na(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=na(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+cw(o);const g=-c.scrollTop;return Yr(f).direction==="rtl"&&(p+=na(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(lo(e)))}function Mv(e){return Zr(e)&&Yr(e).position!=="fixed"?e.offsetParent:null}function Nv(e){const t=hr(e);let r=Mv(e);for(;r&&RC(r)&&Yr(r).position==="static";)r=Mv(r);return r&&(fo(r)==="html"||fo(r)==="body"&&Yr(r).position==="static"&&!sh(r))?t:r||(function(o){let s=ya(o);for(;Zr(s)&&!sp(s);){if(sh(s))return s;s=ya(s)}return null})(e)||t}function $C(e,t,r){const o=Zr(t),s=lo(t),c=va(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((fo(t)!=="body"||tf(s))&&(f=nf(t)),Zr(t)){const h=va(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=cw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const IC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=vu(p).filter((P=>so(P)&&fo(P)!=="body")),w=null;const E=Yr(p).position==="fixed";let L=E?ya(p):p;for(;so(L)&&!sp(L);){const P=Yr(L),M=sh(L);(E?M||w:M||P.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=P:b=b.filter((R=>R!==L)),L=ya(L)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Lv(t,g,s);return p.top=na(v.top,p.top),p.right=Ev(v.right,p.right),p.bottom=Ev(v.bottom,p.bottom),p.left=na(v.left,p.left),p}),Lv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Zr(r),c=lo(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((fo(r)!=="body"||tf(c))&&(f=nf(r)),Zr(r))){const p=va(r);d=Hs(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:so,getDimensions:function(e){return Zr(e)?rw(e):e.getBoundingClientRect()},getOffsetParent:Nv,getDocumentElement:lo,getScale:Hs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Nv,c=this.getDimensions;return{reference:$C(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yr(e).direction==="rtl"},DC=(e,t,r)=>{const o=new Map,s={platform:IC,...r},c={...s.platform,_c:o};return TC(e,t,{...s,platform:c})},ao={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function ba(e,t){let r=ao.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=ao.themes[r.$extend]||{}:(r=null,o=ao[t]):r=null;while(r);return o}function zC(e){const t=[e];let r=ao.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Ov(e){const t=[e];let r=ao.themes[e]||{};do r.$extend?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t}let wa=!1;if(typeof window<"u"){wa=!1;try{const e=Object.defineProperty({},"passive",{get(){wa=!0}});window.addEventListener("test",null,e)}catch{}}let fw=!1;typeof window<"u"&&typeof navigator<"u"&&(fw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const dw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Pv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Rv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function $v(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function kd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Ro=null;const Iv={};function Dv(e){let t=Iv[e];return t||(t=Iv[e]=[]),t}let lh=function(){};typeof window<"u"&&(lh=window.Element);function ht(e){return function(t){return ba(t.theme,e)}}const Sd="__floating-vue__popper",hw=()=>rt({name:"VPopper",provide(){return{[Sd]:{parentPopper:this}}},inject:{[Sd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>dw.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,lh,Boolean],default:ht("container")},boundary:{type:[String,lh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Sd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(NC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(AC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(OC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(LC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(CC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(PC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await DC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ro&&this.instantMove&&Ro.instantMove&&Ro!==this.parentPopper){Ro.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ro=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await kd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...vu(this.$_referenceNode),...vu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,$v(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Ov(this.theme)){const o=Dv(r);$v(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Ro===this&&(Ro=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await kd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Pv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Pv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Rv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Rv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,wa?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ra>=e.left&&ra<=e.right&&ia>=e.top&&ia<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ra-Ki,o=ia-Xi,s=t.left+t.width/2-Ki+(t.top+t.height/2)-Xi+t.width+t.height,c=Ki+r*s,f=Xi+o*s;return Mc(Ki,Xi,c,f,t.left,t.top,t.left,t.bottom)||Mc(Ki,Xi,c,f,t.left,t.top,t.right,t.top)||Mc(Ki,Xi,c,f,t.right,t.top,t.right,t.bottom)||Mc(Ki,Xi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(fw){const e=wa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>zv(t),e),document.addEventListener("touchend",t=>Fv(t,!0),e)}else window.addEventListener("mousedown",e=>zv(e),!0),window.addEventListener("click",e=>Fv(e,!1),!0);window.addEventListener("resize",BC)}function zv(e,t){for(let r=0;r=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Hv(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Hv(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Hv(e,t,r){return r.closeAllPopover||r.closePopover&&t||HC(e,r)&&!t}function HC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function BC(){for(let e=0;e{Ki=ra,Xi=ia,ra=e.clientX,ia=e.clientY},wa?{passive:!0}:void 0);function Mc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const WC={extends:hw()},rf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function qC(e,t,r,o,s,c){return ie(),ve("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Dt(e.$slots,"default",qS(qb(e.slotData)))],2)}const jC=rf(WC,[["render",qC]]);function UC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Kc;function ah(){ah.init||(ah.init=!0,Kc=UC()!==-1)}var of={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ah(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Kc&&this.$el.appendChild(e),e.data="about:blank",Kc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Kc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const VC=lb();ob("data-v-b329ee4c");const GC={class:"resize-observer",tabindex:"-1"};sb();const KC=VC((e,t,r,o,s,c)=>(ie(),Ve("div",GC)));of.render=KC;of.__scopeId="data-v-b329ee4c";of.__file="src/components/ResizeObserver.vue";const pw=(e="theme")=>({computed:{themeClass(){return zC(this[e])}}}),XC=rt({name:"VPopperContent",components:{ResizeObserver:of},mixins:[pw()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),YC=["id","aria-hidden","tabindex","data-popper-placement"],ZC={ref:"inner",class:"v-popper__inner"},JC=X("div",{class:"v-popper__arrow-outer"},null,-1),QC=X("div",{class:"v-popper__arrow-inner"},null,-1),eE=[JC,QC];function tE(e,t,r,o,s,c){const f=Go("ResizeObserver");return ie(),ve("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:zt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=ih(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:zt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",ZC,[e.mounted?(ie(),ve(nt,{key:0},[X("div",null,[Dt(e.$slots,"default")]),e.handleResize?(ie(),Ve(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):He("",!0)],64)):He("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:zt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},eE,4)],4)],46,YC)}const gw=rf(XC,[["render",tE]]),mw={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let ch=function(){};typeof window<"u"&&(ch=window.Element);const nE=rt({name:"VPopperWrapper",components:{Popper:jC,PopperContent:gw},mixins:[mw,pw("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ch,Boolean],default:void 0},boundary:{type:[String,ch],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function rE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return ie(),Ve(d,ki({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:w,hide:E,handleResize:L,onResize:P,classes:M,result:R})=>[Dt(e.$slots,"default",{shown:p,show:w,hide:E}),Ne(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":L,classes:M,result:R,onHide:E,onResize:P},{default:We(()=>[Dt(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const lp=rf(nE,[["render",rE]]);({...lp});({...lp});const iE={...lp,name:"VTooltip",vPopperTheme:"tooltip"},oE=rt({name:"VTooltipDirective",components:{Popper:hw(),PopperContent:gw},mixins:[mw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ba(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ba(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),sE=["innerHTML"],lE=["textContent"];function aE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return ie(),Ve(d,ki({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:w,handleResize:E,onResize:L,classes:P,result:M})=>[Ne(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":E,classes:P,result:M,onHide:w,onResize:L},{default:We(()=>[e.html?(ie(),ve("div",{key:0,innerHTML:e.finalContent},null,8,sE)):(ie(),ve("div",{key:1,textContent:Re(e.finalContent)},null,8,lE))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const cE=rf(oE,[["render",aE]]),vw="v-popper--has-tooltip";function uE(e,t){let r=e.placement;if(!r&&t)for(const o of dw)t[o]&&(r=o);return r||(r=ba(e.theme||"tooltip","placement")),r}function yw(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=uE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let _d,xa,fE=0;function dE(){if(_d)return;xa=Ge([]),_d=Qb({name:"VTooltipDirectiveApp",setup(){return{directives:xa}},render(){return this.directives.map(t=>za(cE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),_d.mount(e)}function bw(e,t,r){dE();const o=Ge(yw(e,t,r)),s=Ge(!1),c={id:fE++,options:o,shown:s};return xa.value.push(c),e.classList&&e.classList.add(vw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function ap(e){if(e.$_popper){const t=xa.value.indexOf(e.$_popper.item);t!==-1&&xa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(vw)}function Wv(e,{value:t,modifiers:r}){const o=yw(e,t,r);if(!o.content||ba(o.theme||"tooltip","disabled"))ap(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=bw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const hE={beforeMount:Wv,updated:Wv,beforeUnmount(e){ap(e)}},pE=hE,Qi=iE,ww={options:ao};function cp(e){return I0()?(KS(e),!0):!1}const Td=new WeakMap,gE=(...e)=>{var t;const r=e[0],o=(t=ti())==null?void 0:t.proxy;if(o==null&&!Sb())throw new Error("injectLocal must be called in setup");return o&&Td.has(o)&&r in Td.get(o)?Td.get(o)[r]:pn(...e)},mE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const vE=Object.prototype.toString,yE=e=>vE.call(e)==="[object Object]",bE=()=>+Date.now(),yu=()=>{};function up(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const fp=e=>e();function xw(e,t={}){let r,o,s=yu;const c=h=>{clearTimeout(h),s(),s=yu};let f;return h=>{const p=Xt(e),g=Xt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},p)})}}function kw(e=fp,t={}){const{initialState:r="active"}=t,o=Yo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Gs(o),pause:s,resume:c,eventFilter:f}}function qv(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function jv(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function wE(e){return ti()}function Cd(e){return Array.isArray(e)?e:[e]}function Yo(...e){if(e.length!==1)return w_(...e);const t=e[0];return typeof t=="function"?Gs(Q0(()=>({get:t,set:yu}))):Ge(t)}function Nc(e,t=200,r={}){return up(xw(t,r),e)}function Sw(e,t,r={}){const{eventFilter:o=fp,...s}=r;return xt(e,up(o,t),s)}function _w(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=kw(o,{initialState:s});return{stop:Sw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function dp(e,t=!0,r){wE()?Mi(e,r):t?e():Et(e)}function uh(e,t=!1){function r(v,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:L}={}){let P=null;const R=[new Promise(I=>{P=xt(e,_=>{v(_)!==t&&(P?P():Et(()=>P?.()),I(_))},{flush:b,deep:w,immediate:!0})})];return E!=null&&R.push(qv(E,L).then(()=>Xt(e)).finally(()=>P?.())),Promise.race(R)}function o(v,b){if(!Mt(v))return r(_=>_===v,b);const{flush:w="sync",deep:E=!1,timeout:L,throwOnTimeout:P}=b??{};let M=null;const I=[new Promise(_=>{M=xt([e,v],([$,W])=>{t!==($===W)&&(M?M():Et(()=>M?.()),_($))},{flush:w,deep:E,immediate:!0})})];return L!=null&&I.push(qv(L,P).then(()=>Xt(e)).finally(()=>(M?.(),Xt(e)))),Promise.race(I)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(w=>{const E=Array.from(w);return E.includes(v)||E.includes(Xt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let w=-1;return r(()=>(w+=1,w>=v),b)}return Array.isArray(Xt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return uh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return uh(e,!t)}}}function Uv(e){return uh(e)}function xE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=Ft(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Xt(r);return c.value=c.value===h?Xt(o):h,c.value}}return s?f:[c,f]}function hp(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Sw(e,t,{...c,eventFilter:xw(o,{maxWait:s})})}function kE(e,t,r={}){const{eventFilter:o=fp,...s}=r,c=up(o,t);let f,d,h;if(s.flush==="sync"){const p=Ft(!1);d=()=>{},f=g=>{p.value=!0,g(),p.value=!1},h=xt(e,(...g)=>{p.value||c(...g)},s)}else{const p=[],g=Ft(0),v=Ft(0);d=()=>{g.value=v.value},p.push(xt(e,()=>{v.value++},{...s,flush:"sync"})),f=b=>{const w=v.value;b(),g.value+=v.value-w},p.push(xt(e,(...b)=>{const w=g.value>0&&g.value===v.value;g.value=0,v.value=0,!w&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function SE(e,t,r){return xt(e,t,{...r,immediate:!0})}function _E(e,t,r){const o=xt(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function TE(e,t,r){let o;Mt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=yu}=o,h=Ft(!s),p=f?Ft(t):Ge(t);let g=0;return _b(async v=>{if(!h.value)return;g++;const b=g;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(L=>{v(()=>{c&&(c.value=!1),w||L()})});b===g&&(p.value=E)}catch(E){d(E)}finally{c&&b===g&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ir=mE?window:void 0;function bu(e){var t;const r=Xt(e);return(t=r?.$el)!=null?t:r}function ho(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,g)=>(d.addEventListener(h,p,g),()=>d.removeEventListener(h,p,g)),s=ke(()=>{const d=Cd(Xt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=SE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>bu(p)))!=null?h:[Ir].filter(p=>p!=null),Cd(Xt(s.value?e[1]:e[0])),Cd(K(s.value?e[2]:e[1])),Xt(s.value?e[3]:e[2])]},([d,h,p,g])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const v=yE(g)?{...g}:g;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,v)))))},{flush:"post"}),f=()=>{c(),r()};return cp(r),f}function CE(){const e=Ft(!1),t=ti();return t&&Mi(()=>{e.value=!0},t),e}function Tw(e){const t=CE();return ke(()=>(t.value,!!e()))}function EE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Cw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Ir,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=EE(t);return ho(s,c,g=>{g.repeat&&Xt(d)||h(g)&&r(g)},f)}function AE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ir,once:c=!1}=t,f=Ft(!1),d=ke(()=>o?1e3/Xt(o):null);let h=0,p=null;function g(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&Er&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Ft(typeof o=="number"),f=Ft(),d=Ft(!1),h=p=>{d.value=p.matches};return _b(()=>{if(c.value){c.value=!s.value;const p=Xt(e).split(",");d.value=p.some(g=>{const v=g.includes("not all"),b=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=jv(b[1])),w&&E&&(E=o<=jv(w[1])),v?!E:E});return}s.value&&(f.value=r.matchMedia(Xt(e)),d.value=f.value.matches)}),ho(f,"change",h,{passive:!0}),ke(()=>d.value)}function Aw(e){return JSON.parse(JSON.stringify(e))}const Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pc="__vueuse_ssr_handlers__",NE=OE();function OE(){return Pc in Oc||(Oc[Pc]=Oc[Pc]||{}),Oc[Pc]}function Lw(e,t){return NE[e]||t}function PE(e){return Ew("(prefers-color-scheme: dark)",e)}function RE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const $E={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Vv="vueuse-storage";function Mw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Ir,eventFilter:b,onError:w=j=>{console.error(j)},initOnMounted:E}=o,L=(g?Ft:Ge)(typeof t=="function"?t():t),P=ke(()=>Xt(e));if(!r)try{r=Lw("getDefaultStorage",()=>{var j;return(j=Ir)==null?void 0:j.localStorage})()}catch(j){w(j)}if(!r)return L;const M=Xt(t),R=RE(M),I=(s=o.serializer)!=null?s:$E[R],{pause:_,resume:$}=_w(L,()=>ne(L.value),{flush:c,deep:f,eventFilter:b});xt(P,()=>Z(),{flush:c}),v&&d&&dp(()=>{r instanceof Storage?ho(v,"storage",Z,{passive:!0}):ho(v,Vv,G),E&&Z()}),E||Z();function W(j,N){if(v){const O={key:P.value,oldValue:j,newValue:N,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Vv,{detail:O}))}}function ne(j){try{const N=r.getItem(P.value);if(j==null)W(N,null),r.removeItem(P.value);else{const O=I.write(j);N!==O&&(r.setItem(P.value,O),W(N,O))}}catch(N){w(N)}}function ee(j){const N=j?j.newValue:r.getItem(P.value);if(N==null)return h&&M!=null&&r.setItem(P.value,I.write(M)),M;if(!j&&p){const O=I.read(N);return typeof p=="function"?p(O,M):R==="object"&&!Array.isArray(O)?{...M,...O}:O}else return typeof N!="string"?N:I.read(N)}function Z(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){L.value=M;return}if(!(j&&j.key!==P.value)){_();try{j?.newValue!==I.write(L.value)&&(L.value=ee(j))}catch(N){w(N)}finally{j?Et($):$()}}}}function G(j){Z(j.detail)}return L}const IE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function DE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ir,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=PE({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?Yo(o):Mw(f,o,c,{window:s,listenToStorageChanges:d})),L=ke(()=>E.value==="auto"?w.value:E.value),P=Lw("updateHTMLAttrs",(_,$,W)=>{const ne=typeof _=="string"?s?.document.querySelector(_):bu(_);if(!ne)return;const ee=new Set,Z=new Set;let G=null;if($==="class"){const N=W.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{N.includes(O)?ee.add(O):Z.add(O)})}else G={key:$,value:W};if(ee.size===0&&Z.size===0&&G===null)return;let j;g&&(j=s.document.createElement("style"),j.appendChild(document.createTextNode(IE)),s.document.head.appendChild(j));for(const N of ee)ne.classList.add(N);for(const N of Z)ne.classList.remove(N);G&&ne.setAttribute(G.key,G.value),g&&(s.getComputedStyle(j).opacity,document.head.removeChild(j))});function M(_){var $;P(t,r,($=v[_])!=null?$:_)}function R(_){e.onChanged?e.onChanged(_,M):M(_)}xt(L,R,{flush:"post",immediate:!0}),dp(()=>R(L.value));const I=ke({get(){return p?E.value:L.value},set(_){E.value=_}});return Object.assign(I,{store:E,system:w,state:L})}function zE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=DE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function Nw(e){return e}function FE(e,t){return e.value=t}function HE(e){return e?typeof e=="function"?e:Aw:Nw}function BE(e){return e?typeof e=="function"?e:Aw:Nw}function WE(e,t={}){const{clone:r=!1,dump:o=HE(r),parse:s=BE(r),setSource:c=FE}=t;function f(){return Uu({snapshot:o(e.value),timestamp:bE()})}const d=Ge(f()),h=Ge([]),p=Ge([]),g=I=>{c(e,s(I.snapshot)),d.value=I},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const I=h.value.shift();I&&(p.value.unshift(d.value),g(I))},E=()=>{const I=p.value.shift();I&&(h.value.unshift(d.value),g(I))},L=()=>{g(d.value)},P=ke(()=>[d.value,...h.value]),M=ke(()=>h.value.length>0),R=ke(()=>p.value.length>0);return{source:e,undoStack:h,redoStack:p,last:d,history:P,canUndo:M,canRedo:R,clear:b,commit:v,reset:L,undo:w,redo:E}}function qE(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s}=t,{eventFilter:c,pause:f,resume:d,isActive:h}=kw(s),{ignoreUpdates:p,ignorePrevAsyncUpdates:g,stop:v}=kE(e,P,{deep:r,flush:o,eventFilter:c});function b(_,$){g(),p(()=>{_.value=$})}const w=WE(e,{...t,clone:t.clone||r,setSource:b}),{clear:E,commit:L}=w;function P(){g(),L()}function M(_){d(),_&&P()}function R(_){let $=!1;const W=()=>$=!0;p(()=>{_(W)}),$||P()}function I(){v(),E()}return{...w,isTracking:h,pause:f,resume:M,commit:P,batch:R,dispose:I}}function Ow(e,t,r={}){const{window:o=Ir,...s}=r;let c;const f=Tw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const v=Xt(e);return Array.isArray(v)?v.map(b=>bu(b)):[bu(v)]}),p=xt(h,v=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of v)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return cp(g),{isSupported:f,stop:g}}function sf(e,t,r={}){const{window:o=Ir}=r;return Mw(e,t,o?.localStorage,r)}function jE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ir}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const I=d.location.hash||"",_=I.indexOf("?");return _>0?I.slice(_):""}else return(d.location.hash||"").replace(/^#/,"")}function g(I){const _=I.toString();if(e==="history")return`${_?`?${_}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${_?`#${_}`:""}`;const $=d.location.hash||"#",W=$.indexOf("?");return W>0?`${d.location.search||""}${$.slice(0,W)}${_?`?${_}`:""}`:`${d.location.search||""}${$}${_?`?${_}`:""}`}function v(){return new URLSearchParams(p())}function b(I){const _=new Set(Object.keys(h));for(const $ of I.keys()){const W=I.getAll($);h[$]=W.length>1?W:I.get($)||"",_.delete($)}Array.from(_).forEach($=>delete h[$])}const{pause:w,resume:E}=_w(h,()=>{const I=new URLSearchParams("");Object.keys(h).forEach(_=>{const $=h[_];Array.isArray($)?$.forEach(W=>I.append(_,W)):o&&$==null||s&&!$?I.delete(_):I.set(_,$)}),L(I,!1)},{deep:!0});function L(I,_){w(),_&&b(I),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+g(I)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+g(I)),E()}function P(){c&&L(v(),!0)}const M={passive:!0};ho(d,"popstate",P,M),e!=="history"&&ho(d,"hashchange",P,M);const R=v();return R.keys().next().value?b(R):Object.assign(h,r),h}function Pw(e={}){const{window:t=Ir,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Ft(r),h=Ft(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:w}=t.visualViewport;d.value=Math.round(v*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),dp(p);const g={passive:!0};if(ho("resize",p,g),t&&f==="visual"&&t.visualViewport&&ho(t.visualViewport,"resize",p,g),s){const v=Ew("(orientation: portrait)");xt(v,()=>p())}return{width:d,height:h}}const Gv={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=yb(),c=Ge([]),f=ke(()=>c.value.reduce((F,Y)=>(F[~~Y.id]=Y)&&F,{})),d=ke(()=>c.value.length),h=Ge(null),p=Ge(!1),g=Ge({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ge({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",P,{passive:!1}),document.addEventListener("mouseup",M),"ontouchstart"in window&&(document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M))},E=()=>{document.removeEventListener("mousemove",P,{passive:!1}),document.removeEventListener("mouseup",M),"ontouchstart"in window&&(document.removeEventListener("touchmove",P,{passive:!1}),document.removeEventListener("touchend",M))},L=(F,Y)=>{const re=F.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ae}=re.getBoundingClientRect(),{clientX:D,clientY:q}="ontouchstart"in window&&F.touches?F.touches[0]:F;g.value.cursorOffset=o.horizontal?q-ae:D-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Y},P=F=>{g.value.mouseDown&&(F.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{ne($(F)),Fe("resize",{event:F},!0)}))},M=F=>{g.value.dragging&&(window.getSelection().removeAllRanges(),Fe("resized",{event:F},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,E()},100)},R=(F,Y)=>{"ontouchstart"in window&&(F.preventDefault(),v.value.splitter===Y?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,I(F,Y),v.value.splitter=null):(v.value.splitter=Y,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||Fe("splitter-click",{event:F,index:Y},!0)},I=(F,Y)=>{if(Fe("splitter-dblclick",{event:F,index:Y},!0),o.maximizePanes){let re=0;c.value=c.value.map((le,ae)=>(le.size=ae===Y?le.max:le.min,ae!==Y&&(re+=le.min),le)),c.value[Y].size-=re,Fe("pane-maximize",{event:F,index:Y,pane:c.value[Y]}),Fe("resized",{event:F,index:Y},!0)}},_=(F,Y)=>{Fe("pane-click",{event:F,index:f.value[Y].index,pane:f.value[Y]})},$=F=>{const Y=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&F.touches?F.touches[0]:F;return{x:re-(o.horizontal?0:g.value.cursorOffset)-Y.left,y:le-(o.horizontal?g.value.cursorOffset:0)-Y.top}},W=F=>{F=F[o.horizontal?"y":"x"];const Y=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(F=Y-F),F*100/Y},ne=F=>{const Y=g.value.activeSplitter;let re={prevPanesSize:Z(Y),nextPanesSize:G(Y),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:re.prevPanesSize),ae=100-(o.pushOtherPanes?0:re.nextPanesSize),D=Math.max(Math.min(W(F),ae),le);let q=[Y,Y+1],Q=c.value[q[0]]||null,he=c.value[q[1]]||null;const de=Q.max<100&&D>=Q.max+re.prevPanesSize,ge=he.max<100&&D<=100-(he.max+G(Y+1));if(de||ge){de?(Q.size=Q.max,he.size=Math.max(100-Q.max-re.prevPanesSize-re.nextPanesSize,0)):(Q.size=Math.max(100-he.max-re.prevPanesSize-G(Y+1),0),he.size=he.max);return}if(o.pushOtherPanes){const Ce=ee(re,D);if(!Ce)return;({sums:re,panesToResize:q}=Ce),Q=c.value[q[0]]||null,he=c.value[q[1]]||null}Q!==null&&(Q.size=Math.min(Math.max(D-re.prevPanesSize-re.prevReachedMinPanes,Q.min),Q.max)),he!==null&&(he.size=Math.min(Math.max(100-D-re.nextPanesSize-re.nextReachedMinPanes,he.min),he.max))},ee=(F,Y)=>{const re=g.value.activeSplitter,le=[re,re+1];return Y{D>le[0]&&D<=re&&(ae.size=ae.min,F.prevReachedMinPanes+=ae.min)}),F.prevPanesSize=Z(le[0]),le[0]===void 0)?(F.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ae,D)=>{D>0&&D<=re&&(ae.size=ae.min,F.prevReachedMinPanes+=ae.min)}),c.value[le[1]].size=100-F.prevReachedMinPanes-c.value[0].min-F.prevPanesSize-F.nextPanesSize,null):Y>100-F.nextPanesSize-c.value[le[1]].min&&(le[1]=N(re).index,F.nextReachedMinPanes=0,le[1]>re+1&&c.value.forEach((ae,D)=>{D>re&&D{D=re+1&&(ae.size=ae.min,F.nextReachedMinPanes+=ae.min)}),c.value[le[0]].size=100-F.prevPanesSize-G(le[0]-1),null):{sums:F,panesToResize:le}},Z=F=>c.value.reduce((Y,re,le)=>Y+(lec.value.reduce((Y,re,le)=>Y+(le>F+1?re.size:0),0),j=F=>[...c.value].reverse().find(Y=>Y.indexY.min)||{},N=F=>c.value.find(Y=>Y.index>F+1&&Y.size>Y.min)||{},O=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const re of Y){const le=re.classList.contains("splitpanes__pane"),ae=re.classList.contains("splitpanes__splitter");!le&&!ae&&(re.remove(),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))}},C=(F,Y,re=!1)=>{const le=F-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),re||(ae.onmousedown=D=>L(D,le),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=D=>L(D,le)),ae.onclick=D=>R(D,le+1)),ae.ondblclick=D=>I(D,le+1),Y.parentNode.insertBefore(ae,Y)},k=F=>{F.onmousedown=void 0,F.onclick=void 0,F.ondblclick=void 0,F.remove()},z=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const le of Y)le.className.includes("splitpanes__splitter")&&k(le);let re=0;for(const le of Y)le.className.includes("splitpanes__pane")&&(!re&&o.firstSplitter?C(re,le,!0):re&&C(re,le),re++)},B=({uid:F,...Y})=>{const re=f.value[F];for(const[le,ae]of Object.entries(Y))re[le]=ae},ce=F=>{var Y;let re=-1;Array.from(((Y=h.value)==null?void 0:Y.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(F.el))),c.value.splice(re,0,{...F,index:re}),c.value.forEach((le,ae)=>le.index=ae),p.value&&Et(()=>{z(),Se({addedPane:c.value[re]}),Fe("pane-add",{pane:c.value[re]})})},be=F=>{const Y=c.value.findIndex(le=>le.id===F);c.value[Y].el=null;const re=c.value.splice(Y,1)[0];c.value.forEach((le,ae)=>le.index=ae),Et(()=>{z(),Fe("pane-remove",{pane:re}),Se({removedPane:{...re}})})},Se=(F={})=>{!F.addedPane&&!F.removedPane?Ae():c.value.some(Y=>Y.givenSize!==null||Y.min||Y.max<100)?Ke(F):Be(),p.value&&Fe("resized")},Be=()=>{const F=100/d.value;let Y=0;const re=[],le=[];for(const ae of c.value)ae.size=Math.max(Math.min(F,ae.max),ae.min),Y-=ae.size,ae.size>=ae.max&&re.push(ae.id),ae.size<=ae.min&&le.push(ae.id);Y>.1&&je(Y,re,le)},Ae=()=>{let F=100;const Y=[],re=[];let le=0;for(const D of c.value)F-=D.size,D.givenSize!==null&&le++,D.size>=D.max&&Y.push(D.id),D.size<=D.min&&re.push(D.id);let ae=100;if(F>.1){for(const D of c.value)D.givenSize===null&&(D.size=Math.max(Math.min(F/(d.value-le),D.max),D.min)),ae-=D.size;ae>.1&&je(ae,Y,re)}},Ke=({addedPane:F,removedPane:Y}={})=>{let re=100/d.value,le=0;const ae=[],D=[];(F?.givenSize??null)!==null&&(re=(100-F.givenSize)/(d.value-1));for(const q of c.value)le-=q.size,q.size>=q.max&&ae.push(q.id),q.size<=q.min&&D.push(q.id);if(!(Math.abs(le)<.1)){for(const q of c.value)F?.givenSize!==null&&F?.id===q.id||(q.size=Math.max(Math.min(re,q.max),q.min)),le-=q.size,q.size>=q.max&&ae.push(q.id),q.size<=q.min&&D.push(q.id);le>.1&&je(le,ae,D)}},je=(F,Y,re)=>{let le;F>0?le=F/(d.value-Y.length):le=F/(d.value-re.length),c.value.forEach((ae,D)=>{if(F>0&&!Y.includes(ae.id)){const q=Math.max(Math.min(ae.size+le,ae.max),ae.min),Q=q-ae.size;F-=Q,ae.size=q}else if(!re.includes(ae.id)){const q=Math.max(Math.min(ae.size+le,ae.max),ae.min),Q=q-ae.size;F-=Q,ae.size=q}}),Math.abs(F)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Fe=(F,Y=void 0,re=!1)=>{const le=Y?.index??g.value.activeSplitter??null;r(F,{...Y,...le!==null&&{index:le},...re&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ae=>({min:ae.min,max:ae.max,size:ae.size}))})};xt(()=>o.firstSplitter,()=>z()),Mi(()=>{O(),z(),Se(),Fe("ready"),p.value=!0}),$a(()=>p.value=!1);const Pe=()=>{var F;return za("div",{ref:h,class:b.value},(F=s.default)==null?void 0:F.call(s))};return dr("panes",c),dr("indexedPanes",f),dr("horizontal",ke(()=>o.horizontal)),dr("requestUpdate",B),dr("onPaneAdd",ce),dr("onPaneRemove",be),dr("onPaneClick",_),(F,Y)=>(ie(),Ve(Xd(Pe)))}},Rc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=pn("requestUpdate"),s=pn("onPaneAdd"),c=pn("horizontal"),f=pn("onPaneRemove"),d=pn("onPaneClick"),h=(t=ti())==null?void 0:t.uid,p=pn("indexedPanes"),g=ke(()=>p.value[h]),v=Ge(null),b=ke(()=>{const P=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(P,E.value),w.value)}),w=ke(()=>{const P=parseFloat(r.minSize);return isNaN(P)?0:P}),E=ke(()=>{const P=parseFloat(r.maxSize);return isNaN(P)?100:P}),L=ke(()=>{var P;return`${c.value?"height":"width"}: ${(P=g.value)==null?void 0:P.size}%`});return xt(()=>b.value,P=>o({uid:h,size:P})),xt(()=>w.value,P=>o({uid:h,min:P})),xt(()=>E.value,P=>o({uid:h,max:P})),Mi(()=>{s({id:h,el:v.value,min:w.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),$a(()=>f(h)),(P,M)=>(ie(),ve("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:M[0]||(M[0]=R=>K(d)(R,P._.uid)),style:zt(L.value)},[Dt(P.$slots,"default")],4))}},tr=Ge([414,896]);function Rw(e){return e!=null}function pp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const UE=/^[A-Za-z]:\//;function VE(e=""){return e&&e.replace(/\\/g,"/").replace(UE,t=>t.toUpperCase())}const GE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const $w=function(...e){e=e.map(o=>VE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:KE();!s||s.length===0||(t=`${s}/${t}`,r=Kv(s))}return t=XE(t,!r),r&&!Kv(t)?`/${t}`:t.length>0?t:"."};function XE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Kv=function(e){return GE.test(e)};var YE=44,Xv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ZE=new Uint8Array(64),Iw=new Uint8Array(128);for(let e=0;e>>=1,c&&(r=-2147483648|-r),t+r}function Yv(e,t){return e.pos>=t?!1:e.peek()!==YE}var JE=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function QE(e){const{length:t}=e,r=new JE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos>1),c=e[s][lf]-t;if(c===0)return wu=!0,s;c<0?r=s+1:o=s-1}return wu=!1,r-1}function lA(e,t,r){for(let o=r+1;o=0&&e[o][lf]===t;r=o--);return r}function cA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return wu=f!==-1&&e[f][lf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=sA(e,t,d,h)}var uA="`line` must be greater than 0 (lines start at line 1)",fA="`column` must be greater than or equal to 0 (columns start at column 0)",Zv=-1,dA=1;function hA(e){var t;return(t=e)._decoded||(t._decoded=QE(e._encoded))}function pA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(uA);if(o<0)throw new Error(fA);const c=hA(e);if(r>=c.length)return $c(null,null,null,null);const f=c[r],d=gA(f,e._decodedMemo,r,o,s||dA);if(d===-1)return $c(null,null,null,null);const h=f[d];if(h.length===1)return $c(null,null,null,null);const{names:p,resolvedSources:g}=e;return $c(g[h[nA]],h[rA]+1,h[iA],h.length===5?p[h[oA]]:null)}function $c(e,t,r,o){return{source:e,line:t,column:r,name:o}}function gA(e,t,r,o,s){let c=cA(e,o,t,r);return wu?c=(s===Zv?lA:aA)(e,o,c):s===Zv&&c++,c===-1||c===e.length?-1:c}const Dw=/^\s*at .*(?:\S:\d+|\(native\))/m,mA=/^(?:eval@)?(?:\[native code\])?$/,vA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function zw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function yA(e){let t=e.trim();if(mA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=zw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function bA(e){let t=e.trim();if(!Dw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=zw(o?o[1]:r);let d=o&&r||"",h=s&&["eval",""].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:$w(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function wA(e,t={}){const{ignoreStackEntries:r=vA}=t;return(Dw.test(e)?kA(e):xA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Jv(r,s.file)?null:s;const d=new SA(f,s.file),h=TA(d,s);if(!h)return s;const{line:p,column:g,source:v,name:b}=h;let w=v||s.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),Jv(r,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:b||s.method}:s}).filter(s=>s!=null)}function Jv(e,t){return e.some(r=>t.match(r))}function xA(e){return e.split(` +`).map(t=>yA(t)).filter(Rw)}function kA(e){return e.split(` +`).map(t=>bA(t)).filter(Rw)}class SA{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=_A(),this.url=r,this.resolvedSources=(c||[]).map(f=>$w(f||"",r))}}function _A(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function TA(e,t){const r=pA(e,t);return r.column==null?null:r}const CA=/^[A-Za-z]:\//;function Fw(e=""){return e&&e.replace(/\\/g,"/").replace(CA,t=>t.toUpperCase())}const EA=/^[/\\]{2}/,AA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,LA=/^[A-Za-z]:$/,Qv=/^\/([A-Za-z]:)?$/,MA=function(e){if(e.length===0)return".";e=Fw(e);const t=e.match(EA),r=xu(e),o=e[e.length-1]==="/";return e=Hw(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),LA.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!xu(e)?`/${e}`:e)},NA=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return MA(t)};function OA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ey=function(...e){e=e.map(o=>Fw(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:OA();!s||s.length===0||(t=`${s}/${t}`,r=xu(s))}return t=Hw(t,!r),r&&!xu(t)?`/${t}`:t.length>0?t:"."};function Hw(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const xu=function(e){return AA.test(e)},af=function(e,t){const r=ey(e).replace(Qv,"$1").split("/"),o=ey(t).replace(Qv,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function PA(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;rJs(t)?[t]:[t,...gp(t.tasks)])}function $A(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const ty="q",ny="s";function IA(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const DA=Math.random.bind(Math),zA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function FA(e=21){let t="",r=e;for(;r--;)t+=zA[DA()*64|0];return t}const HA=6e4,qw=e=>e,BA=qw,{clearTimeout:ry,setTimeout:WA}=globalThis;function qA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=qw,deserialize:d=BA,resolver:h,bind:p="rpc",timeout:g=HA,proxify:v=!0}=t;let b=!1;const w=new Map;let E,L;async function P($,W,ne,ee){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${$}"`);const Z={m:$,a:W,t:ty};ee&&(Z.o=!0);const G=async B=>r(f(B));if(ne){await G(Z);return}if(E)try{await E}finally{E=void 0}let{promise:j,resolve:N,reject:O}=IA();const C=FA();Z.i=C;let k;async function z(B=Z){return g>=0&&(k=WA(()=>{try{if(t.onTimeoutError?.call(L,$,W)!==!0)throw new Error(`[birpc] timeout on calling "${$}"`)}catch(ce){O(ce)}w.delete(C)},g),typeof k=="object"&&(k=k.unref?.())),w.set(C,{resolve:N,reject:O,timeoutId:k,method:$}),await G(B),j}try{t.onRequest?await t.onRequest.call(L,Z,z,N):await z()}catch(B){if(t.onGeneralError?.call(L,B)!==!0)throw B;return}finally{ry(k),w.delete(C)}return j}const M={$call:($,...W)=>P($,W,!1),$callOptional:($,...W)=>P($,W,!1,!0),$callEvent:($,...W)=>P($,W,!0),$callRaw:$=>P($.method,$.args,$.event,$.optional),$rejectPendingCalls:I,get $closed(){return b},get $meta(){return t.meta},$close:R,$functions:e};v?L=new Proxy({},{get($,W){if(Object.prototype.hasOwnProperty.call(M,W))return M[W];if(W==="then"&&!c.includes("then")&&!("then"in e))return;const ne=(...Z)=>P(W,Z,!0);if(c.includes(W))return ne.asEvent=ne,ne;const ee=(...Z)=>P(W,Z,!1);return ee.asEvent=ne,ee}}):L=M;function R($){b=!0,w.forEach(({reject:W,method:ne})=>{const ee=new Error(`[birpc] rpc is closed, cannot call "${ne}"`);if($)return $.cause??=ee,W($);W(ee)}),w.clear(),s(_)}function I($){const W=Array.from(w.values()).map(({method:ne,reject:ee})=>$?$({method:ne,reject:ee}):ee(new Error(`[birpc]: rejected pending call "${ne}".`)));return w.clear(),W}async function _($,...W){let ne;try{ne=d($)}catch(ee){if(t.onGeneralError?.call(L,ee)!==!0)throw ee;return}if(ne.t===ty){const{m:ee,a:Z,o:G}=ne;let j,N,O=await(h?h.call(L,ee,e[ee]):e[ee]);if(G&&(O||=()=>{}),!O)N=new Error(`[birpc] function "${ee}" not found`);else try{j=await O.apply(p==="rpc"?L:e,Z)}catch(C){N=C}if(ne.i){if(N&&t.onFunctionError&&t.onFunctionError.call(L,N,ee,Z)===!0)return;if(!N)try{await r(f({t:ny,i:ne.i,r:j}),...W);return}catch(C){if(N=C,t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}try{await r(f({t:ny,i:ne.i,e:N}),...W)}catch(C){if(t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}}}else{const{i:ee,r:Z,e:G}=ne,j=w.get(ee);j&&(ry(j.timeoutId),G?j.reject(G):j.resolve(Z)),w.delete(ee)}}return E=o(_),L}const{parse:jw,stringify:jA}=JSON,{keys:UA}=Object,ka=String,Uw="string",iy={},ku="object",Vw=(e,t)=>t,VA=e=>e instanceof ka?ka(e):e,GA=(e,t)=>typeof t===Uw?new ka(t):t,Gw=(e,t,r,o)=>{const s=[];for(let c=UA(r),{length:f}=c,d=0;d{const o=ka(t.push(r)-1);return e.set(r,o),o},fh=(e,t)=>{const r=jw(e,GA).map(VA),o=r[0],s=t||Vw,c=typeof o===ku&&o?Gw(r,new Set,o,s):o;return s.call({"":c},"",c)},Kw=(e,t,r)=>{const o=t&&typeof t===ku?(g,v)=>g===""||-1jw(Kw(e));class Xw{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Bw(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function XA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const g=d({ws:new h(e),state:new Xw,waitForConnection:M,reconnect:L},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate(R,I){r.onTestAnnotate?.(R,I)},onTestArtifactRecord(R,I){r.onTestArtifactRecord?.(R,I)},onSpecsCollected(R,I){R?.forEach(([_,$])=>{g.state.clearFiles({config:_},[$])}),r.onSpecsCollected?.(R,I)},onPathsCollected(R){g.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){g.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,I){g.state.updateTasks(R),r.onTaskUpdate?.(R,I)},onUserConsoleLog(R){g.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,I,_,$){r.onFinished?.(R,I,_,$)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},w={post:R=>g.ws.send(R),on:R=>v=R,serialize:R=>Kw(R,(I,_)=>_ instanceof Error?{name:_.name,message:_.message,stack:_.stack}:_),deserialize:fh,timeout:-1};g.rpc=qA(b,w);let E;function L(R=!1){R&&(p=c),g.ws=new h(e),P()}function P(){E=new Promise((R,I)=>{const _=setTimeout(()=>{I(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&R(),g.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(_)})}),g.ws.addEventListener("message",R=>{v(R.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}P();function M(){return E}return g}const dh=Ft([]),Jn=Ft([]),Dr=sf("vitest-ui_task-tree-opened",[],{shallow:!0}),Su=ke(()=>new Set(Dr.value)),gn=sf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Vn=Ge(gn.value.search),YA={"&":"&","<":"<",">":">",'"':""","'":"'"};function Yw(e){return e.replace(/[&<>"']/g,t=>YA[t])}const ZA=ke(()=>{const e=Vn.value.toLowerCase();return e.length?new RegExp(`(${Yw(e)})`,"gi"):null}),Zw=ke(()=>Vn.value.trim()!==""),it=ir({failed:gn.value.failed,success:gn.value.success,skipped:gn.value.skipped,onlyTests:gn.value.onlyTests}),hh=ke(()=>!!(it.failed||it.success||it.skipped)),cf=Ft([]),Qs=Ge(!1),sy=ke(()=>{const e=gn.value.expandAll;return Dr.value.length>0?e!==!0:e!==!1}),JA=ke(()=>{const e=Zw.value,t=hh.value,r=it.onlyTests,o=Oe.summary.filesFailed,s=Oe.summary.filesSuccess,c=Oe.summary.filesSkipped,f=Oe.summary.filesRunning,d=cf.value;return Oe.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ha(e){return Object.hasOwn(e,"tasks")}function QA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Fo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function Ed(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function eL(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:g,candidate:v}=c;t.set(g,v);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Jw(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function tL(e){return Jw(e).raw}function Xc(e){if(e>=500)return"danger";if(e>=100)return"warning"}function _u(e){const t=Xc(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Qw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function ex(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function nL(e){return e.type==="test"}function rL(e){return e.mode==="run"&&e.type==="test"}function In(e){return e.type==="file"}function Ci(e){return e.type==="file"||e.type==="suite"}function iL(e=Oe.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function Sa(e,t=!1){let r=Oe.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Su.value.size>0&&Su.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Oe.colors.get(e.projectName||"")||Qw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Oe.nodes.set(e.id,r),Oe.root.tasks.push(r)),t)for(let o=0;o0),[r,o]}function oL(e){const t=Oe.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!Js(r)||Ba(t.parentId,r,!1)}function Ba(e,t,r){const o=Oe.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Oe.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Js(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Su.value.size>0&&Su.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Oe.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ha(t)))for(let f=0;fuf.value==="idle"),eo=Ge([]);function cL(e,t,r){return e?ox(e,t,r):!1}function mp(e,t){const r=[...rx(e,t)];Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function*rx(e,t){for(const r of iL())yield*ix(r,e,t)}function*ix(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of gh(e,o,w=>ly(w,t,r)))c.push([v,b]);else{for(const[v,b]of gh(e,o,w=>ly(w,t,r)))Ci(b)?(s.set(b.id,v),In(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!In(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...fL(c,r.onlyTests,o,d,f)].reverse(),p=Oe.nodes,g=new Set(h.filter(v=>In(v)||Ci(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>In(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function uL(e,t,r,o,s){if(o){if(In(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}function*fL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Ci(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Oe.nodes.get(d.parentId);for(;p;)r.add(p.id),In(p)&&o.add(p.id),p=Oe.nodes.get(p.parentId);yield d;continue}if(h){const p=uL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Oe.nodes.get(d.parentId);p&&In(p)&&o.add(p.id),yield d}}}function dL(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function ox(e,t,r){if(t.length===0||QA(e.name,t))if(r.success||r.failed||r.skipped){if(dL(e,r))return!0}else return!0;return!1}function*gh(e,t,r){const o=r(e);if(o)if(nL(e)){let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}else if(In(e))t.add(e.id);else{t.add(e.id);let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}if(yield[o,e],Ci(e))for(let s=0;smr(o.id))}function gL(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&vp(Jn.value.filter(In),!0)}function vp(e,t){for(const r of e)Ci(r)&&(r.expanded=!0,vp(r.tasks,!1));t&&(gn.value.expandAll=!1,Dr.value=[])}function*mL(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function yp(e){return Ww(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function vL(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Sa(s,t)),dh.value=[...Oe.root.tasks],mp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function yL(e){queueMicrotask(()=>{const t=Oe.pendingTasks,r=ft.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function bL(e,t){const r=Oe.pendingTasks,s=ft.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function ay(e,t,r,o,s,c){e&&TL(r);const f=!e;queueMicrotask(()=>{t?kL(f):SL(f)}),queueMicrotask(()=>{CL(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=dh.value&&yp(dh.value.map(d=>mr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{_L(o,s,t)})}function*wL(){yield*Jn.value.filter(rL)}function xL(){const e=ft.state.idMap;let t;for(const r of wL())t=e.get(r.parentId),t&&Ha(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function kL(e){const t=ft.state.getFiles(),r=Oe.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c!r.has(d)).map(d=>mr(d)).filter(Boolean);let s;for(let d=0;dc.get(v)).filter(Boolean)))}}function _L(e,t,r=!1){const o=gn.value.expandAll,s=o!==!0,c=new Set(Dr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{cy(e,t,r)}),Qs.value||queueMicrotask(()=>{(Jn.value.length||r)&&(Qs.value=!0)}),f&&(queueMicrotask(()=>{gL(c,r),s&&(gn.value.expandAll=!1)}),queueMicrotask(()=>{cy(e,t,r)}))}function cy(e,t,r){mp(e,t),r&&(xL(),uf.value="idle")}function Tu(e){let t;for(let r=0;rr.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,mr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:w}=sx(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,c.testsTodo+=w,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsFailed=c.testsFailed,e.testsTodo=c.testsTodo,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function sx(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of lx(e))(!r||cL(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function EL(e,t,r,o,s,c){if(t)return r.map(f=>sx(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*lx(e){const t=pp(e);let r;for(let o=0;oo.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),vL(t,!0,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){bL(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){yL(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return EL(t,r,o,s,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}collapseNode(t){queueMicrotask(()=>{sL(t)})}expandNode(t){queueMicrotask(()=>{hL(t,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{lL()})}expandAllNodes(){queueMicrotask(()=>{pL(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}filterNodes(){queueMicrotask(()=>{mp(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}}const Oe=new AL;function ax(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yc={exports:{}},LL=Yc.exports,uy;function vo(){return uy||(uy=1,(function(e,t){(function(r,o){e.exports=o()})(LL,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),P=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),I=/Android/.test(r),_=R||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),$=R||/Mac/.test(o),W=/\bCrOS\b/.test(r),ne=/win/i.test(o),ee=E&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,g=!0);var Z=$&&(v||E&&(ee==null||ee<12.11)),G=s||h&&p>=9;function j(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var N=function(n,i){var a=n.className,l=j(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function C(n,i){return O(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var m=0;m=i)return y+(i-m);y+=x-m,y+=a-y%a,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l"€"&&(n.toUpperCase()!=n.toLowerCase()||$e.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Je(n)?!0:i.test(n):Je(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\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 ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Yt(n,i,a){for(;(a<0?i>0:ia?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;mi||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",m),u=!0)}u||l(i,a,"ltr")}var Hr=null;function Bt(n,i,a){var l;Hr=null;for(var u=0;ui)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:Hr=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:Hr=u)}return l??Hr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(T,H,V){this.level=T,this.from=H,this.to=V}return function(T,H){var V=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!l.test(T))return!1;for(var se=T.length,te=[],pe=0;pe-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function Pt(n,i){var a=ri(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u0}function yr(n){n.prototype.on=function(i,a){Xe(this,i,a)},n.prototype.off=function(i,a){an(this,i,a)}}function cn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Zo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function kn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Oi(n){cn(n),Zo(n)}function sl(n){return n.target||n.srcElement}function br(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),$&&n.ctrlKey&&i==1&&(i=3),i}var mf=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),Jo;function Ga(n){if(Jo==null){var i=k("span","​");C(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Jo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Jo?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var ll;function Pi(n){if(ll!=null)return ll;var i=C(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:ll=l.right-a.right<3}var cr=` + +b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(` +`,i);u==-1&&(u=n.length);var m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Ri=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Ka=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),wr=null;function vf(n){if(wr!=null)return wr;var i=C(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return wr=Math.abs(a.left-l.left)>1}var Qo={},xr={};function kr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Qo[n]=i}function bo(n,i){xr[n]=i}function es(n){if(typeof n=="string"&&xr.hasOwnProperty(n))n=xr[n];else if(n&&typeof n.name=="string"&&xr.hasOwnProperty(n.name)){var i=xr[n.name];typeof i=="string"&&(i={name:i}),n=oe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return es("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return es("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function ts(n,i){i=es(i);var a=Qo[i.name];if(!a)return ts(n,"text/plain");var l=a(n,i);if($i.hasOwnProperty(i.name)){var u=$i[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var $i={};function ns(n,i){var a=$i.hasOwnProperty(n)?$i[n]:$i[n]={};Y(i,a)}function Br(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function al(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function rs(n,i,a){return n.startState?n.startState(i,a):!0}var $t=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.posi},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function qe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],m=u.chunkSize();if(i=n.first&&ia?fe(a,qe(n,a).text.length):I1(i,qe(n,i.line).text.length)}function I1(n,i){var a=n.ch;return a==null||a>i?fe(n.line,i):a<0?fe(n.line,0):n}function qp(n,i){for(var a=[],l=0;lthis.maxLookAhead&&(this.maxLookAhead=n),i},Wr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(n,i,a){return i instanceof Xa?new Wr(n,Br(n.mode,i.state),a,i.lookAhead):new Wr(n,Br(n.mode,i),a)},Wr.prototype.save=function(n){var i=n!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xa(i,this.maxLookAhead):i};function jp(n,i,a,l){var u=[n.state.modeGen],m={};Yp(n,i.text,n.doc.mode,a,function(T,H){return u.push(T,H)},m,l);for(var y=a.state,x=function(T){a.baseTokens=u;var H=n.state.overlays[T],V=1,se=0;a.state=!0,Yp(n,i.text,H.mode,a,function(te,pe){for(var we=V;sete&&u.splice(V,1,te,u[V+1],Te),V+=2,se=Math.min(te,Te)}if(pe)if(H.opaque)u.splice(we,V-we,te,"overlay "+pe),V=we+2;else for(;wen.options.maxHighlightLength&&Br(n.doc.mode,l.state),m=jp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function ul(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Wr(l,!0,i);var m=D1(n,i,a),y=m>l.first&&qe(l,m-1).stateAfter,x=y?Wr.fromSaved(l,y,m):new Wr(l,rs(l.mode),m);return l.iter(m,i,function(S){yf(n,S.text,x);var T=x.line;S.stateAfter=T==i-1||T%5==0||T>=u.viewFrom&&Ti.start)return m}throw new Error("Mode "+n.name+" failed to advance stream.")}var Gp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Kp(n,i,a,l){var u=n.doc,m=u.mode,y;i=tt(u,i);var x=qe(u,i.line),S=ul(n,i.line,a),T=new $t(x.text,n.options.tabSize,S),H;for(l&&(H=[]);(l||T.posn.options.maxHighlightLength?(x=!1,y&&yf(n,i,l,H.pos),H.pos=i.length,V=null):V=Xp(bf(a,H,l.state,se),m),se){var te=se[0].name;te&&(V="m-"+(V?te+" "+V:te))}if(!x||T!=V){for(;Sy;--x){if(x<=m.first)return m.first;var S=qe(m,x-1),T=S.stateAfter;if(T&&(!a||x+(T instanceof Xa?T.lookAhead:0)<=m.modeFrontier))return x;var H=re(S.text,null,n.options.tabSize);(u==null||l>H)&&(u=x-1,l=H)}return u}function z1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontiera;l--){var u=qe(n,l).stateAfter;if(u&&(!(u instanceof Xa)||l+u.lookAhead=i:m.to>i);(l||(l=[])).push(new Ya(y,m.from,S?null:m.to))}}return l}function j1(n,i,a){var l;if(n)for(var u=0;u=i:m.to>i);if(x||m.from==i&&y.type=="bookmark"&&(!a||m.marker.insertLeft)){var S=m.from==null||(y.inclusiveLeft?m.from<=i:m.from0&&x)for(var ze=0;ze0)){var H=[S,1],V=Ie(T.from,x.from),se=Ie(T.to,x.to);(V<0||!y.inclusiveLeft&&!V)&&H.push({from:T.from,to:x.from}),(se>0||!y.inclusiveRight&&!se)&&H.push({from:x.to,to:T.to}),u.splice.apply(u,H),S+=H.length-3}}return u}function Qp(n){var i=n.markedSpans;if(i){for(var a=0;ai)&&(!l||xf(l,m.marker)<0)&&(l=m.marker)}return l}function rg(n,i,a,l,u){var m=qe(n,i),y=oi&&m.markedSpans;if(y)for(var x=0;x=0&&V<=0||H<=0&&V>=0)&&(H<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.to,a)>=0:Ie(T.to,a)>0)||H>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.from,l)<=0:Ie(T.from,l)<0)))return!0}}}function Sr(n){for(var i;i=ng(n);)n=i.find(-1,!0).line;return n}function G1(n){for(var i;i=Qa(n);)n=i.find(1,!0).line;return n}function K1(n){for(var i,a;i=Qa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function kf(n,i){var a=qe(n,i),l=Sr(a);return a==l?i:A(l)}function ig(n,i){if(i>n.lastLine())return i;var a=qe(n,i),l;if(!Ii(n,a))return i;for(;l=Qa(a);)a=l.find(1,!0).line;return A(a)+1}function Ii(n,i){var a=oi&&i.markedSpans;if(a){for(var l=void 0,u=0;ui.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var os=function(n,i,a){this.text=n,eg(this,i),this.height=a?a(this):1};os.prototype.lineNo=function(){return A(this)},yr(os);function X1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Qp(n),eg(n,a);var u=l?l(n):1;u!=n.height&&Qn(n,u)}function Y1(n){n.parent=null,Qp(n)}var Z1={},J1={};function og(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?J1:Z1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function sg(n,i){var a=z("span",null,null,g?"padding-right: .1px":null),l={pre:z("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var m=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=ek,Pi(n.display.measure)&&(y=lt(m,n.doc.direction))&&(l.addToken=nk(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&A(m);rk(m,l,Up(n,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Be(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Be(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ga(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(g){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Pt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Be(l.pre.className,l.textClass||"")),l}function Q1(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ek(n,i,a,l,u,m,y){if(i){var x=n.splitSpaces?tk(i,n.trailingSpace):i,S=n.cm.state.specialChars,T=!1,H;if(!S.test(i))n.col+=i.length,H=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,H),h&&p<9&&(T=!0),n.pos+=i.length;else{H=document.createDocumentFragment();for(var V=0;;){S.lastIndex=V;var se=S.exec(i),te=se?se.index-V:i.length-V;if(te){var pe=document.createTextNode(x.slice(V,V+te));h&&p<9?H.appendChild(k("span",[pe])):H.appendChild(pe),n.map.push(n.pos,n.pos+te,pe),n.col+=te,n.pos+=te}if(!se)break;V+=te+1;var we=void 0;if(se[0]==" "){var Te=n.cm.options.tabSize,Le=Te-n.col%Te;we=H.appendChild(k("span",Ee(Le),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=Le}else se[0]=="\r"||se[0]==` +`?(we=H.appendChild(k("span",se[0]=="\r"?"␍":"␤","cm-invalidchar")),we.setAttribute("cm-text",se[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?H.appendChild(k("span",[we])):H.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||T||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Me=k("span",[H],De,m);if(y)for(var ze in y)y.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&Me.setAttribute(ze,y[ze]);return n.content.appendChild(Me)}n.content.appendChild(H)}}function tk(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;uT&&V.from<=T));se++);if(V.to>=H)return n(a,l,u,m,y,x,S);n(a,l.slice(0,V.to-T),u,m,null,x,S),m=null,l=l.slice(V.to-T),T=V.to}}}function lg(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function rk(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;yS||st.collapsed&&Ue.to==S&&Ue.from==S)){if(Ue.to!=null&&Ue.to!=S&&te>Ue.to&&(te=Ue.to,we=""),st.className&&(pe+=" "+st.className),st.css&&(se=(se?se+";":"")+st.css),st.startStyle&&Ue.from==S&&(Te+=" "+st.startStyle),st.endStyle&&Ue.to==te&&(ze||(ze=[])).push(st.endStyle,Ue.to),st.title&&((De||(De={})).title=st.title),st.attributes)for(var St in st.attributes)(De||(De={}))[St]=st.attributes[St];st.collapsed&&(!Le||xf(Le.marker,st)<0)&&(Le=Ue)}else Ue.from>S&&te>Ue.from&&(te=Ue.from)}if(ze)for(var tn=0;tn=x)break;for(var qn=Math.min(x,te);;){if(H){var Cn=S+H.length;if(!Le){var Ut=Cn>qn?H.slice(0,qn-S):H;i.addToken(i,Ut,V?V+pe:pe,Te,S+Ut.length==te?we:"",se,De)}if(Cn>=qn){H=H.slice(qn-S),S=qn;break}S=Cn,Te=""}H=u.slice(m,m=a[T++]),V=og(a[T++],i.cm.options)}}}function ag(n,i,a){this.line=i,this.rest=K1(i),this.size=this.rest?A(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ii(n,i)}function tc(n,i,a){for(var l=[],u,m=i;m2&&m.push((S.bottom+T.top)/2-a.top)}}m.push(a.bottom-a.top)}}function gg(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;la)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function pk(n,i){i=Sr(i);var a=A(i),l=n.display.externalMeasured=new ag(n.doc,i,a);l.lineN=a;var u=l.built=sg(n,l);return l.text=u.pre,C(n.display.lineMeasure,u.pre),l}function mg(n,i,a,l){return jr(n,ls(n,i),a,l)}function Af(n,i){if(i>=n.display.viewFrom&&i=a.lineN&&ii)&&(m=S-x,u=m-1,i>=S&&(y="right")),u!=null){if(l=n[T+2],x==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;T&&n[T-2]==n[T-3]&&n[T-1].insertLeft;)l=n[(T-=3)+2],y="left";if(a=="right"&&u==S-x)for(;T=0&&(a=n[u]).left==a.right;u--);return a}function mk(n,i,a,l){var u=yg(i.map,a,l),m=u.node,y=u.start,x=u.end,S=u.collapse,T;if(m.nodeType==3){for(var H=0;H<4;H++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x0&&(S=l="right");var V;n.options.lineWrapping&&(V=m.getClientRects()).length>1?T=V[l=="right"?V.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!y&&(!T||!T.left&&!T.right)){var se=m.parentNode.getClientRects()[0];se?T={left:se.left,right:se.left+cs(n.display),top:se.top,bottom:se.bottom}:T=vg}for(var te=T.top-i.rect.top,pe=T.bottom-i.rect.top,we=(te+pe)/2,Te=i.view.measure.heights,Le=0;Le=l.text.length?(S=l.text.length,T="before"):S<=0&&(S=0,T="after"),!x)return y(T=="before"?S-1:S,T=="before");function H(pe,we,Te){var Le=x[we],De=Le.level==1;return y(Te?pe-1:pe,De!=Te)}var V=Bt(x,S,T),se=Hr,te=H(S,V,T=="before");return se!=null&&(te.other=H(S,se,T!="before")),te}function _g(n,i){var a=0;i=tt(n.doc,i),n.options.lineWrapping||(a=cs(n.display)*i.ch);var l=qe(n.doc,i.line),u=si(l)+nc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Mf(n,i,a,l,u){var m=fe(n,i,a);return m.xRel=u,l&&(m.outside=l),m}function Nf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Mf(l.first,0,null,-1,-1);var u=U(l,a),m=l.first+l.size-1;if(u>m)return Mf(l.first+l.size-1,qe(l,m).text.length,null,1,1);i<0&&(i=0);for(var y=qe(l,u);;){var x=yk(n,y,u,i,a),S=V1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var T=S.find(1);if(T.line==u)return T;y=qe(l,u=T.line)}}function Tg(n,i,a,l){l-=Lf(i);var u=i.text.length,m=jt(function(y){return jr(n,a,y-1).bottom<=l},u,0);return u=jt(function(y){return jr(n,a,y).top>l},m,u),{begin:m,end:u}}function Cg(n,i,a,l){a||(a=ls(n,i));var u=rc(n,i,jr(n,a,l),"line").top;return Tg(n,i,a,u)}function Of(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function yk(n,i,a,l,u){u-=si(i);var m=ls(n,i),y=Lf(i),x=0,S=i.text.length,T=!0,H=lt(i,n.doc.direction);if(H){var V=(n.options.lineWrapping?wk:bk)(n,i,a,m,H,l,u);T=V.level!=1,x=T?V.from:V.to-1,S=T?V.to:V.from-1}var se=null,te=null,pe=jt(function(Ye){var Ue=jr(n,m,Ye);return Ue.top+=y,Ue.bottom+=y,Of(Ue,l,u,!1)?(Ue.top<=u&&Ue.left<=l&&(se=Ye,te=Ue),!0):!1},x,S),we,Te,Le=!1;if(te){var De=l-te.left=ze.bottom?1:0}return pe=Yt(i.text,pe,1),Mf(a,pe,Te,Le,l-we)}function bk(n,i,a,l,u,m,y){var x=jt(function(V){var se=u[V],te=se.level!=1;return Of(_r(n,fe(a,te?se.to:se.from,te?"before":"after"),"line",i,l),m,y,!0)},0,u.length-1),S=u[x];if(x>0){var T=S.level!=1,H=_r(n,fe(a,T?S.from:S.to,T?"after":"before"),"line",i,l);Of(H,m,y,!0)&&H.top>y&&(S=u[x-1])}return S}function wk(n,i,a,l,u,m,y){var x=Tg(n,i,l,y),S=x.begin,T=x.end;/\s/.test(i.text.charAt(T-1))&&T--;for(var H=null,V=null,se=0;se=T||te.to<=S)){var pe=te.level!=1,we=jr(n,l,pe?Math.min(T,te.to)-1:Math.max(S,te.from)).right,Te=weTe)&&(H=te,V=Te)}}return H||(H=u[u.length-1]),H.fromT&&(H={from:H.from,to:T,level:H.level}),H}var xo;function as(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(xo==null){xo=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)xo.appendChild(document.createTextNode("x")),xo.appendChild(k("br"));xo.appendChild(document.createTextNode("x"))}C(n.measure,xo);var a=xo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function cs(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");C(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Pf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,m=i.gutters.firstChild,y=0;m;m=m.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=m.offsetLeft+m.clientLeft+u,l[x]=m.clientWidth}return{fixedPos:Rf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Rf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Eg(n){var i=as(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/cs(n.display)-3);return function(u){if(Ii(n.doc,u))return 0;var m=0;if(u.widgets)for(var y=0;y0&&(T=qe(n.doc,S.line).text).length==S.ch){var H=re(T,T.length,n.options.tabSize)-T.length;S=fe(S.line,Math.max(0,Math.round((m-pg(n.display).left)/cs(n.display))-H))}return S}function So(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;li)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)oi&&kf(n.doc,i)u.viewFrom?zi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)zi(n);else if(i<=u.viewFrom){var m=oc(n,a,a+l,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=l):zi(n)}else if(a>=u.viewTo){var y=oc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):zi(n)}else{var x=oc(n,i,i,-1),S=oc(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(tc(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):zi(n)}var T=u.externalMeasured;T&&(a=u.lineN&&i=l.viewTo)){var m=l.view[So(n,i)];if(m.node!=null){var y=m.changes||(m.changes=[]);ae(y,a)==-1&&y.push(a)}}}function zi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function oc(n,i,a,l){var u=So(n,i),m,y=n.display.view;if(!oi||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,S=0;S0){if(u==y.length-1)return null;m=x+y[u].size-i,u++}else m=x-i;i+=m,a+=m}for(;kf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function xk(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=tc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=tc(n,i,l.viewFrom).concat(l.view):l.viewFroma&&(l.view=l.view.slice(0,So(n,a)))),l.viewTo=a}function Ag(n){for(var i=n.display.view,a=0,l=0;l=n.display.viewTo||S.to().line0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function sc(n,i){return n.top-i.top||n.left-i.left}function kk(n,i,a){var l=n.display,u=n.doc,m=document.createDocumentFragment(),y=pg(n.display),x=y.left,S=Math.max(l.sizerWidth,wo(n)-l.sizer.offsetLeft)-y.right,T=u.direction=="ltr";function H(Me,ze,Ye,Ue){ze<0&&(ze=0),ze=Math.round(ze),Ue=Math.round(Ue),m.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+Me+`px; + top: `+ze+"px; width: "+(Ye??S-Me)+`px; + height: `+(Ue-ze)+"px"))}function V(Me,ze,Ye){var Ue=qe(u,Me),st=Ue.text.length,St,tn;function Ot(Ut,En){return ic(n,fe(Me,Ut),"div",Ue,En)}function qn(Ut,En,sn){var Kt=Cg(n,Ue,null,Ut),Vt=En=="ltr"==(sn=="after")?"left":"right",It=sn=="after"?Kt.begin:Kt.end-(/\s/.test(Ue.text.charAt(Kt.end-1))?2:1);return Ot(It,Vt)[Vt]}var Cn=lt(Ue,u.direction);return Fn(Cn,ze||0,Ye??st,function(Ut,En,sn,Kt){var Vt=sn=="ltr",It=Ot(Ut,Vt?"left":"right"),An=Ot(En-1,Vt?"right":"left"),ks=ze==null&&Ut==0,ji=Ye==null&&En==st,fn=Kt==0,Ur=!Cn||Kt==Cn.length-1;if(An.top-It.top<=3){var nn=(T?ks:ji)&&fn,cd=(T?ji:ks)&&Ur,ui=nn?x:(Vt?It:An).left,Ao=cd?S:(Vt?An:It).right;H(ui,It.top,Ao-ui,It.bottom)}else{var Lo,yn,Ss,ud;Vt?(Lo=T&&ks&&fn?x:It.left,yn=T?S:qn(Ut,sn,"before"),Ss=T?x:qn(En,sn,"after"),ud=T&&ji&&Ur?S:An.right):(Lo=T?qn(Ut,sn,"before"):x,yn=!T&&ks&&fn?S:It.right,Ss=!T&&ji&&Ur?x:An.left,ud=T?qn(En,sn,"after"):S),H(Lo,It.top,yn-Lo,It.bottom),It.bottom0?i.blinker=setInterval(function(){n.hasFocus()||us(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Mg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Ff(n))}function zf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&us(n))},100)}function Ff(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Pt(n,"focus",n,i),n.state.focused=!0,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Df(n))}function us(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,N(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function lc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y.005||te<-.005)&&(un.display.sizerWidth){var we=Math.ceil(H/cs(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Ng(n){if(n.widgets)for(var i=0;i=y&&(m=U(i,si(qe(i,S))-n.wrapper.clientHeight),y=S)}return{from:m,to:Math.max(y,m+1)}}function Sk(n,i){if(!Rt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!M){var y=k("div","​",null,`position: absolute; + top: `+(i.top-a.viewOffset-nc(n.display))+`px; + height: `+(i.bottom-i.top+qr(n)+a.barHeight)+`px; + left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function _k(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?fe(i.line,i.ch+1,"before"):i,i=i.ch?fe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,x=_r(n,i),S=!a||a==i?x:_r(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var T=Hf(n,u),H=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(yl(n,T.scrollTop),Math.abs(n.doc.scrollTop-H)>1&&(y=!0)),T.scrollLeft!=null&&(_o(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function Tk(n,i){var a=Hf(n,i);a.scrollTop!=null&&yl(n,a.scrollTop),a.scrollLeft!=null&&_o(n,a.scrollLeft)}function Hf(n,i){var a=n.display,l=as(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=Ef(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var x=n.doc.height+Cf(a),S=i.topx-l;if(i.topu+m){var H=Math.min(i.top,(T?x:i.bottom)-m);H!=u&&(y.scrollTop=H)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,se=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,te=wo(n)-a.gutters.offsetWidth,pe=i.right-i.left>te;return pe&&(i.right=i.left+te),i.left<10?y.scrollLeft=0:i.leftte+se-3&&(y.scrollLeft=i.right+(pe?0:10)-te),y}function Bf(n,i){i!=null&&(cc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function fs(n){cc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function vl(n,i,a){(i!=null||a!=null)&&cc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ck(n,i){cc(n),n.curOp.scrollToPos=i}function cc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=_g(n,i.from),l=_g(n,i.to);Og(n,a,l,i.margin)}}function Og(n,i,a,l){var u=Hf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});vl(n,u.scrollLeft,u.scrollTop)}function yl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||qf(n,{top:i}),Pg(n,i,!0),s&&qf(n),xl(n,100))}function Pg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function _o(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function bl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Cf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+qr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var To=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Xe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Xe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};To.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var m=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},To.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},To.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},To.prototype.zeroWidthHack=function(){var n=$&&!P?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},To.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),m=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},To.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var wl=function(){};wl.prototype.update=function(){return{bottom:0,right:0}},wl.prototype.setScrollLeft=function(){},wl.prototype.setScrollTop=function(){},wl.prototype.clear=function(){};function ds(n,i){i||(i=bl(n));var a=n.display.barWidth,l=n.display.barHeight;Rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&lc(n),Rg(n,bl(n)),a=n.display.barWidth,l=n.display.barHeight}function Rg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var $g={native:To,null:wl};function Ig(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&N(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new $g[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Xe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?_o(n,i):yl(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var Ek=0;function Co(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.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:++Ek,markArrays:null},ik(n.curOp)}function Eo(n){var i=n.curOp;i&&sk(i,function(a){for(var l=0;l=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new uc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Mk(n){n.updatedDisplay=n.mustUpdate&&Wf(n.cm,n.update)}function Nk(n){var i=n.cm,a=i.display;n.updatedDisplay&&lc(i),n.barMeasure=bl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=mg(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+qr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-wo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Ok(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ul(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(m){if(l.line>=n.display.viewFrom){var y=m.styles,x=m.text.length>n.options.maxHighlightLength?Br(i.mode,l.state):null,S=jp(n,m,l,!0);x&&(l.state=x),m.styles=S.styles;var T=m.styleClasses,H=S.classes;H?m.styleClasses=H:T&&(m.styleClasses=null);for(var V=!y||y.length!=m.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),se=0;!V&&sea)return xl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var m=0;m=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Ag(n)==0)return!1;Fg(n)&&(zi(n),i.dims=Pf(n));var u=l.first+l.size,m=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFromy&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),oi&&(m=kf(n.doc,m),y=ig(n.doc,y));var x=m!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;xk(n,m,y),a.viewOffset=si(qe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Ag(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var T=Ik(n);return S>4&&(a.lineDiv.style.display="none"),zk(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Dk(T),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,xl(n,400)),a.updateLineNumbers=null,!0}function Dg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==wo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Cf(n.display)-Ef(n),a.top)}),i.visible=ac(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ac(n.display,n.doc,a));if(!Wf(n,i))break;lc(n);var u=bl(n);ml(n),ds(n,u),Uf(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function qf(n,i){var a=new uc(n,i);if(Wf(n,a)){lc(n),Dg(n,a);var l=bl(n);ml(n),ds(n,l),Uf(n,l),a.finish()}}function zk(n,i,a){var l=n.display,u=n.options.lineNumbers,m=l.lineDiv,y=m.firstChild;function x(pe){var we=pe.nextSibling;return g&&$&&n.display.currentWheelTarget==pe?pe.style.display="none":pe.parentNode.removeChild(pe),we}for(var S=l.view,T=l.viewFrom,H=0;H-1&&(te=!1),cg(n,V,T,a)),te&&(O(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(_e(n.options,T)))),y=V.node.nextSibling}T+=V.size}for(;y;)y=x(y)}function jf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Jt(n,"gutterChanged",n)}function Uf(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+qr(n)+"px"}function zg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Rf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,m=l+"px",y=0;y=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!g&&!(s&&_)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Vf(l.gutters,l.lineNumbers),Hg(u),a.init(u)}var fc=0,ai=null;h?ai=-.53:s?ai=15:b?ai=-.7:L&&(ai=-1/3);function Bg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Hk(n){var i=Bg(n);return i.x*=ai,i.y*=ai,i}function Wg(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=Bg(i),l=a.x,u=a.y,m=ai;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,m=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,T=x.scrollHeight>x.clientHeight;if(l&&S||u&&T){if(u&&$&&g){e:for(var H=i.target,V=y.view;H!=x;H=H.parentNode)for(var se=0;se=0&&Ie(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return is(this.anchor,this.head)},gt.prototype.to=function(){return Sn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Tr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(se,te){return Ie(se.from(),te.from())}),a=ae(i,u);for(var m=1;m0:S>=0){var T=is(x.from(),y.from()),H=Sn(x.to(),y.to()),V=x.empty()?y.from()==y.head:x.from()==x.head;m<=a&&--a,i.splice(--m,2,new gt(V?H:T,V?T:H))}}return new er(i,a)}function Fi(n,i){return new er([new gt(n,i||n)],0)}function Hi(n){return n.text?fe(n.from.line+n.text.length-1,xe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function qg(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Hi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Hi(i).ch-i.to.ch),fe(a,l)}function Gf(n,i){for(var a=[],l=0;l1&&n.remove(x.line+1,pe-1),n.insert(x.line+1,Le)}Jt(n,"change",n,i)}function Bi(n,i,a){function l(u,m,y){if(u.linked)for(var x=0;x1&&!n.done[n.done.length-2].ranges)return n.done.pop(),xe(n.done)}function Xg(n,i,a,l){var u=n.history;u.undone.length=0;var m=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>m-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=qk(u,u.lastOp==l)))x=xe(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,x.to)==0?x.to=Hi(i):y.changes.push(Yf(n,i));else{var S=xe(u.done);for((!S||!S.ranges)&&hc(n.sel,u.done),y={changes:[Yf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=m,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Pt(n,"historyAdded")}function jk(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Uk(n,i,a,l){var u=n.history,m=l&&l.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||jk(n,m,xe(u.done),i))?u.done[u.done.length-1]=i:hc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,l&&l.clearRedo!==!1&&Kg(u.undone)}function hc(n,i){var a=xe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Yg(n,i,a,l){var u=i["spans_"+n.id],m=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[m]=y.markedSpans),++m})}function Vk(n){if(!n)return null;for(var i,a=0;a-1&&(xe(x)[V]=T[V],delete T[V])}}return l}function Zf(n,i,a,l){if(l){var u=n.anchor;if(a){var m=Ie(i,u)<0;m!=Ie(a,u)<0?(u=i,i=a):m!=Ie(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function pc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),un(n,new er([Zf(n.sel.primary(),i,a,u)],0),l)}function Jg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),m=0;m=i.ch:x.to>i.ch))){if(u&&(Pt(S,"beforeCursorEnter"),S.explicitlyCleared))if(m.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var V=S.find(l<0?1:-1),se=void 0;if((l<0?H:T)&&(V=im(n,V,-l,V&&V.line==i.line?m:null)),V&&V.line==i.line&&(se=Ie(V,a))&&(l<0?se<0:se>0))return ps(n,V,i,l,u)}var te=S.find(l<0?-1:1);return(l<0?T:H)&&(te=im(n,te,l,te.line==i.line?m:null)),te?ps(n,te,i,l,u):null}}return i}function mc(n,i,a,l,u){var m=l||1,y=ps(n,i,a,m,u)||!u&&ps(n,i,a,m,!0)||ps(n,i,a,-m,u)||!u&&ps(n,i,a,-m,!0);return y||(n.cantEdit=!0,fe(n.first,0))}function im(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?tt(n,fe(i.line-1)):null:a>0&&i.ch==(l||qe(n,i.line)).text.length?i.line=0;--u)lm(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else lm(n,i)}}function lm(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=Gf(n,i);Xg(n,i,a,n.cm?n.cm.curOp.id:NaN),_l(n,i,a,wf(n,i));var l=[];Bi(n,function(u,m){!m&&ae(l,u.history)==-1&&(fm(u.history,i),l.push(u.history)),_l(u,i,null,wf(u,i))})}}function vc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,m,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,T=0;T=0;--te){var pe=se(te);if(pe)return pe.v}}}}function am(n,i){if(i!=0&&(n.first+=i,n.sel=new er(ye(n.sel.ranges,function(u){return new gt(fe(u.anchor.line+i,u.anchor.ch),fe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){_n(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;ln.lastLine())){if(i.from.linem&&(i={from:i.from,to:fe(m,qe(n,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ii(n,i.from,i.to),a||(a=Gf(n,i)),n.cm?Xk(n.cm,i,l):Xf(n,i,l),gc(n,a,Q),n.cantEdit&&mc(n,fe(n.firstLine(),0))&&(n.cantEdit=!1)}}function Xk(n,i,a){var l=n.doc,u=n.display,m=i.from,y=i.to,x=!1,S=m.line;n.options.lineWrapping||(S=A(Sr(qe(l,m.line))),l.iter(S,y.line+1,function(te){if(te==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ar(n),Xf(l,i,a,Eg(n)),n.options.lineWrapping||(l.iter(S,m.line+i.text.length,function(te){var pe=ec(te);pe>u.maxLineLength&&(u.maxLine=te,u.maxLineLength=pe,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),z1(l,m.line),xl(n,400);var T=i.text.length-(y.line-m.line)-1;i.full?_n(n):m.line==y.line&&i.text.length==1&&!Ug(n.doc,i)?Di(n,m.line,"text"):_n(n,m.line,y.line+1,T);var H=Bn(n,"changes"),V=Bn(n,"change");if(V||H){var se={from:m,to:y,text:i.text,removed:i.removed,origin:i.origin};V&&Jt(n,"change",n,se),H&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(se)}n.display.selForContextMenu=null}function ms(n,i,a,l,u){var m;l||(l=a),Ie(l,a)<0&&(m=[l,a],a=m[0],l=m[1]),typeof i=="string"&&(i=n.splitLines(i)),gs(n,{from:a,to:l,text:i,origin:u})}function cm(n,i,a,l){a1||!(this.children[0]instanceof Cl))){var x=[];this.collapse(x),this.children=[new Cl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i50){for(var y=u.lines.length%25+25,x=y;x10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;ln.display.maxLineLength&&(n.display.maxLine=T,n.display.maxLineLength=H,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&_n(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&nm(n.doc)),n&&Jt(n,"markerCleared",n,this,l,u),i&&Eo(n),this.parent&&this.parent.clear()}},Wi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u0||y==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=z("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(rg(n,i.line,i,a,m)||i.line!=a.line&&rg(n,a.line,i,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");H1()}m.addToHistory&&Xg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,T;if(n.iter(x,a.line+1,function(V){S&&m.collapsed&&!S.options.lineWrapping&&Sr(V)==S.display.maxLine&&(T=!0),m.collapsed&&x!=i.line&&Qn(V,0),W1(V,new Ya(m,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),m.collapsed&&n.iter(i.line,a.line+1,function(V){Ii(n,V)&&Qn(V,0)}),m.clearOnEnter&&Xe(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(F1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),m.collapsed&&(m.id=++hm,m.atomic=!0),S){if(T&&(S.curOp.updateMaxLine=!0),m.collapsed)_n(S,i.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=i.line;H<=a.line;H++)Di(S,H,"text");m.atomic&&nm(S.doc),Jt(S,"markerAdded",S,m)}return m}var Ll=function(n,i){this.markers=n,this.primary=i;for(var a=0;a=0;S--)gs(this,l[S]);x?em(this,x):this.cm&&fs(this.cm)}),undo:en(function(){vc(this,"undo")}),redo:en(function(){vc(this,"redo")}),undoSelection:en(function(){vc(this,"undo",!0)}),redoSelection:en(function(){vc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=tt(this,n),i=tt(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(m){var y=m.markedSpans;if(y)for(var x=0;x=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;ln)return i=n,!0;n-=m,++a}),tt(this,fe(a,i))},indexFromPos:function(n){n=tt(this,n);var i=n.ch;if(n.linei&&(i=n.from),n.to!=null&&n.to-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var H=n.dataTransfer.getData("Text");if(H){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),gc(i.doc,Fi(a,a)),V)for(var se=0;se=0;x--)ms(n.doc,"",l[x].from,l[x].to,"+delete");fs(n)})}function Qf(n,i,a){var l=Yt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function ed(n,i,a){var l=Qf(n,i.ch,a);return l==null?null:new fe(i.line,l,a<0?"after":"before")}function td(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var m=lt(a,i.doc.direction);if(m){var y=u<0?xe(m):m[0],x=u<0==(y.level==1),S=x?"after":"before",T;if(y.level>0||i.doc.direction=="rtl"){var H=ls(i,a);T=u<0?a.text.length-1:0;var V=jr(i,H,T).top;T=jt(function(se){return jr(i,H,se).top==V},u<0==(y.level==1)?y.from:y.to-1,T),S=="before"&&(T=Qf(a,T,1))}else T=u<0?y.to:y.from;return new fe(l,T,S)}}return new fe(l,u<0?a.text.length:0,u<0?"before":"after")}function cS(n,i,a,l){var u=lt(i,n.doc.direction);if(!u)return ed(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var m=Bt(u,a.ch,a.sticky),y=u[m];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from=y.from&&se>=H.begin)){var te=V?"before":"after";return new fe(a.line,se,te)}}var pe=function(Le,De,Me){for(var ze=function(St,tn){return tn?new fe(a.line,x(St,1),"before"):new fe(a.line,St,"after")};Le>=0&&Le0==(Ye.level!=1),st=Ue?Me.begin:x(Me.end,-1);if(Ye.from<=st&&st0?H.end:x(H.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=pe(l>0?0:u.length-1,l,T(Te)),we)?we:null}var Ol={selectAll:om,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Q)},killLine:function(n){return bs(n,function(i){if(i.empty()){var a=qe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line0)u=new fe(u.line,u.ch+1),n.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),fe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=qe(n.doc,u.line-1).text;y&&(u=new fe(u.line,1),n.replaceRange(m.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),fe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;ln&&Ie(i,this.pos)==0&&a==this.button};var Rl,$l;function mS(n,i){var a=+new Date;return $l&&$l.compare(a,n,i)?(Rl=$l=null,"triple"):Rl&&Rl.compare(a,n,i)?($l=new rd(a,n,i),Rl=null,"double"):(Rl=new rd(a,n,i),$l=null,"single")}function Lm(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,li(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!id(i,n)){var l=ko(i,n),u=br(n),m=l?mS(l,u):"single";Pe(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&vS(i,u,l,m,n))&&(u==1?l?bS(i,l,m,n):sl(n)==a.scroller&&cn(n):u==2?(l&&pc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):zf(i)))}}}function vS(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Pl(n,wm(m,u),u,function(y){if(typeof y=="string"&&(y=Ol[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=q}finally{n.state.suppressEdits=!1}return x})}function yS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var m=W?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=$?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!($?a.altKey:a.ctrlKey)),u}function bS(n,i,a,l){h?setTimeout(F(Mg,n),0):n.curOp.focus=be(je(n));var u=yS(n,a,l),m=n.doc.sel,y;n.options.dragDrop&&mf&&!n.isReadOnly()&&a=="single"&&(y=m.contains(i))>-1&&(Ie((y=m.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?wS(n,l,i,u):xS(n,l,i,u)}function wS(n,i,a,l){var u=n.display,m=!1,y=Qt(n,function(T){g&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:zf(n)),an(u.wrapper.ownerDocument,"mouseup",y),an(u.wrapper.ownerDocument,"mousemove",x),an(u.scroller,"dragstart",S),an(u.scroller,"drop",y),m||(cn(T),l.addNew||pc(n.doc,a,null,null,l.extend),g&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(T){m=m||Math.abs(i.clientX-T.clientX)+Math.abs(i.clientY-T.clientY)>=10},S=function(){return m=!0};g&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Xe(u.wrapper.ownerDocument,"mouseup",y),Xe(u.wrapper.ownerDocument,"mousemove",x),Xe(u.scroller,"dragstart",S),Xe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Mm(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(fe(i.line,0),tt(n.doc,fe(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function xS(n,i,a,l){h&&zf(n);var u=n.display,m=n.doc;cn(i);var y,x,S=m.sel,T=S.ranges;if(l.addNew&&!l.extend?(x=m.sel.contains(a),x>-1?y=T[x]:y=new gt(a,a)):(y=m.sel.primary(),x=m.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=ko(n,i,!0,!0),x=-1;else{var H=Mm(n,a,l.unit);l.extend?y=Zf(y,H.anchor,H.head,l.extend):y=H}l.addNew?x==-1?(x=T.length,un(m,Tr(n,T.concat([y]),x),{scroll:!1,origin:"*mouse"})):T.length>1&&T[x].empty()&&l.unit=="char"&&!l.extend?(un(m,Tr(n,T.slice(0,x).concat(T.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=m.sel):Jf(m,x,y,he):(x=0,un(m,new er([y],0),he),S=m.sel);var V=a;function se(Me){if(Ie(V,Me)!=0)if(V=Me,l.unit=="rectangle"){for(var ze=[],Ye=n.options.tabSize,Ue=re(qe(m,a.line).text,a.ch,Ye),st=re(qe(m,Me.line).text,Me.ch,Ye),St=Math.min(Ue,st),tn=Math.max(Ue,st),Ot=Math.min(a.line,Me.line),qn=Math.min(n.lastLine(),Math.max(a.line,Me.line));Ot<=qn;Ot++){var Cn=qe(m,Ot).text,Ut=ge(Cn,St,Ye);St==tn?ze.push(new gt(fe(Ot,Ut),fe(Ot,Ut))):Cn.length>Ut&&ze.push(new gt(fe(Ot,Ut),fe(Ot,ge(Cn,tn,Ye))))}ze.length||ze.push(new gt(a,a)),un(m,Tr(n,S.ranges.slice(0,x).concat(ze),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Me)}else{var En=y,sn=Mm(n,Me,l.unit),Kt=En.anchor,Vt;Ie(sn.anchor,Kt)>0?(Vt=sn.head,Kt=is(En.from(),sn.anchor)):(Vt=sn.anchor,Kt=Sn(En.to(),sn.head));var It=S.ranges.slice(0);It[x]=kS(n,new gt(tt(m,Kt),Vt)),un(m,Tr(n,It,x),he)}}var te=u.wrapper.getBoundingClientRect(),pe=0;function we(Me){var ze=++pe,Ye=ko(n,Me,!0,l.unit=="rectangle");if(Ye)if(Ie(Ye,V)!=0){n.curOp.focus=be(je(n)),se(Ye);var Ue=ac(u,m);(Ye.line>=Ue.to||Ye.linete.bottom?20:0;st&&setTimeout(Qt(n,function(){pe==ze&&(u.scroller.scrollTop+=st,we(Me))}),50)}}function Te(Me){n.state.selectingText=!1,pe=1/0,Me&&(cn(Me),u.input.focus()),an(u.wrapper.ownerDocument,"mousemove",Le),an(u.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var Le=Qt(n,function(Me){Me.buttons===0||!br(Me)?Te(Me):we(Me)}),De=Qt(n,Te);n.state.selectingText=De,Xe(u.wrapper.ownerDocument,"mousemove",Le),Xe(u.wrapper.ownerDocument,"mouseup",De)}function kS(n,i){var a=i.anchor,l=i.head,u=qe(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var m=lt(u);if(!m)return i;var y=Bt(m,a.ch,a.sticky),x=m[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var S=y+(x.from==a.ch==(x.level!=1)?0:1);if(S==0||S==m.length)return i;var T;if(l.line!=a.line)T=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var H=Bt(m,l.ch,l.sticky),V=H-y||(l.ch-a.ch)*(x.level==1?-1:1);H==S-1||H==S?T=V<0:T=V>0}var se=m[S+(T?-1:0)],te=T==(se.level==1),pe=te?se.from:se.to,we=te?"after":"before";return a.ch==pe&&a.sticky==we?i:new gt(new fe(a.line,pe,we),l)}function Nm(n,i,a,l){var u,m;if(i.touches)u=i.touches[0].clientX,m=i.touches[0].clientY;else try{u=i.clientX,m=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&cn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(m>x.bottom||!Bn(n,a))return kn(i);m-=x.top-y.viewOffset;for(var S=0;S=u){var H=U(n.doc,m),V=n.display.gutterSpecs[S];return Pt(n,a,n,H,V.className,i),kn(i)}}}function id(n,i){return Nm(n,i,"gutterClick",!0)}function Om(n,i){li(n.display,i)||SS(n,i)||Rt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function SS(n,i){return Bn(n,"gutterContextMenu")?Nm(n,i,"gutterContextMenu",!1):!1}function Pm(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gl(n)}var ws={toString:function(){return"CodeMirror.Init"}},Rm={},xc={};function _S(n){var i=n.optionHandlers;function a(l,u,m,y){n.defaults[l]=u,m&&(i[l]=y?function(x,S,T){T!=ws&&m(x,S,T)}:m)}n.defineOption=a,n.Init=ws,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Kf(l)},!0),a("indentUnit",2,Kf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Sl(l),gl(l),_n(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var m=[],y=l.doc.first;l.doc.iter(function(S){for(var T=0;;){var H=S.text.indexOf(u,T);if(H==-1)break;T=H+u.length,m.push(fe(y,H))}y++});for(var x=m.length-1;x>=0;x--)ms(l.doc,u,m[x],fe(m[x].line,m[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,m){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=ws&&l.refresh()}),a("specialCharPlaceholder",Q1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",_?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!ne),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Pm(l),kl(l)},!0),a("keyMap","default",function(l,u,m){var y=bc(u),x=m!=ws&&bc(m);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,CS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Vf(u,l.options.lineNumbers),kl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Rf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ds(l)},!0),a("scrollbarStyle","native",function(l){Ig(l),ds(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Vf(l.options.gutters,u),kl(l)},!0),a("firstLineNumber",1,kl,!0),a("lineNumberFormatter",function(l){return l},kl,!0),a("showCursorWhenSelecting",!1,ml,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(us(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,TS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ml,!0),a("singleCursorHeightPerLine",!0,ml,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Sl,!0),a("addModeClass",!1,Sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function TS(n,i,a){var l=a&&a!=ws;if(!i!=!l){var u=n.display.dragFunctions,m=i?Xe:an;m(n.display.scroller,"dragstart",u.start),m(n.display.scroller,"dragenter",u.enter),m(n.display.scroller,"dragover",u.over),m(n.display.scroller,"dragleave",u.leave),m(n.display.scroller,"drop",u.drop)}}function CS(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(N(n.display.wrapper,"CodeMirror-wrap"),_f(n)),$f(n),_n(n),gl(n),setTimeout(function(){return ds(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?Y(i):{},Y(Rm,i,!1);var l=i.value;typeof l=="string"?l=new Tn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Ct.inputStyles[i.inputStyle](this),m=this.display=new Fk(n,l,u,i);m.wrapper.CodeMirror=this,Pm(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ig(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 le,keySeq:null,specialChars:null},i.autofocus&&!_&&m.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),ES(this),iS(),Co(this),this.curOp.forceUpdate=!0,Vg(this,l),i.autofocus&&!_||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Ff(a)},20):us(this);for(var y in xc)xc.hasOwnProperty(y)&&xc[y](this,i[y],ws);Fg(this),i.finishInit&&i.finishInit(this);for(var x=0;x400}Xe(i.scroller,"touchstart",function(S){if(!Rt(n,S)&&!m(S)&&!id(n,S)){i.input.ensurePolled(),clearTimeout(a);var T=+new Date;i.activeTouch={start:T,moved:!1,prev:T-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),Xe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Xe(i.scroller,"touchend",function(S){var T=i.activeTouch;if(T&&!li(i,S)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=n.coordsChar(i.activeTouch,"page"),V;!T.prev||y(T,T.prev)?V=new gt(H,H):!T.prev.prev||y(T,T.prev.prev)?V=n.findWordAt(H):V=new gt(fe(H.line,0),tt(n.doc,fe(H.line+1,0))),n.setSelection(V.anchor,V.head),n.focus(),cn(S)}u()}),Xe(i.scroller,"touchcancel",u),Xe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(yl(n,i.scroller.scrollTop),_o(n,i.scroller.scrollLeft,!0),Pt(n,"scroll",n))}),Xe(i.scroller,"mousewheel",function(S){return Wg(n,S)}),Xe(i.scroller,"DOMMouseScroll",function(S){return Wg(n,S)}),Xe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Rt(n,S)||Oi(S)},over:function(S){Rt(n,S)||(rS(n,S),Oi(S))},start:function(S){return nS(n,S)},drop:Qt(n,tS),leave:function(S){Rt(n,S)||mm(n)}};var x=i.input.getField();Xe(x,"keyup",function(S){return Em.call(n,S)}),Xe(x,"keydown",Qt(n,Cm)),Xe(x,"keypress",Qt(n,Am)),Xe(x,"focus",function(S){return Ff(n,S)}),Xe(x,"blur",function(S){return us(n,S)})}var od=[];Ct.defineInitHook=function(n){return od.push(n)};function Il(n,i,a,l){var u=n.doc,m;a==null&&(a="add"),a=="smart"&&(u.mode.indent?m=ul(n,i).state:a="prev");var y=n.options.tabSize,x=qe(u,i),S=re(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var T=x.text.match(/^\s*/)[0],H;if(!l&&!/\S/.test(x.text))H=0,a="not";else if(a=="smart"&&(H=u.mode.indent(m,x.text.slice(T.length),x.text),H==q||H>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?H=re(qe(u,i-1).text,null,y):H=0:a=="add"?H=S+n.options.indentUnit:a=="subtract"?H=S-n.options.indentUnit:typeof a=="number"&&(H=S+a),H=Math.max(0,H);var V="",se=0;if(n.options.indentWithTabs)for(var te=Math.floor(H/y);te;--te)se+=y,V+=" ";if(sey,S=cr(i),T=null;if(x&&l.ranges.length>1)if(Cr&&Cr.text.join(` +`)==i){if(l.ranges.length%Cr.text.length==0){T=[];for(var H=0;H=0;se--){var te=l.ranges[se],pe=te.from(),we=te.to();te.empty()&&(a&&a>0?pe=fe(pe.line,pe.ch-a):n.state.overwrite&&!x?we=fe(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(S).length)):x&&Cr&&Cr.lineWise&&Cr.text.join(` +`)==S.join(` +`)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:T?T[se%T.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};gs(n.doc,Te),Jt(n,"inputRead",n,Te)}i&&!x&&Im(n,i),fs(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function $m(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return sd(i,a,0,null,"paste")}),!0}function Im(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var x=0;x-1){y=Il(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Il(n,u.head.line,"smart"));y&&Jt(n,"electricInput",n,u.head.line)}}}function Dm(n){for(var i=[],a=[],l=0;lm&&(Il(this,x.head.line,l,!0),m=x.head.line,y==this.doc.sel.primIndex&&fs(this));else{var S=x.from(),T=x.to(),H=Math.max(m,S.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=H;V0&&Jf(this.doc,y,new gt(S,se[y].to()),Q)}}}),getTokenAt:function(l,u){return Kp(this,l,u)},getLineTokens:function(l,u){return Kp(this,fe(l),u,!0)},getTokenTypeAt:function(l){l=tt(this.doc,l);var u=Up(this,qe(this.doc,l.line)),m=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var T=m+y>>1;if((T?u[T*2-1]:0)>=x)y=T;else if(u[T*2+1]S&&(l=S,y=!0),x=qe(this.doc,l)}else x=l;return rc(this,x,{top:0,left:0},u||"page",m||y).top+(y?this.doc.height-si(x):0)},defaultTextHeight:function(){return as(this.display)},defaultCharWidth:function(){return cs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,m,y,x){var S=this.display;l=_r(this,tt(this.doc,l));var T=l.bottom,H=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")T=l.top;else if(y=="above"||y=="near"){var V=Math.max(S.wrapper.clientHeight,this.doc.height),se=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>V)&&l.top>u.offsetHeight?T=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=V&&(T=l.bottom),H+u.offsetWidth>se&&(H=se-u.offsetWidth)}u.style.top=T+"px",u.style.left=u.style.right="",x=="right"?(H=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=H+"px"),m&&Tk(this,{left:H,top:T,right:H+u.offsetWidth,bottom:T+u.offsetHeight})},triggerOnKeyDown:vn(Cm),triggerOnKeyPress:vn(Am),triggerOnKeyUp:Em,triggerOnMouseDown:vn(Lm),execCommand:function(l){if(Ol.hasOwnProperty(l))return Ol[l].call(null,this)},triggerElectric:vn(function(l){Im(this,l)}),findPosH:function(l,u,m,y){var x=1;u<0&&(x=-1,u=-u);for(var S=tt(this.doc,l),T=0;T0&&H(m.charAt(y-1));)--y;for(;x.5||this.options.lineWrapping)&&$f(this),Pt(this,"refresh",this)}),swapDoc:vn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Vg(this,l),gl(this),this.display.input.reset(),vl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},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}},yr(n),n.registerHelper=function(l,u,m){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=m},n.registerGlobalHelper=function(l,u,m,y){n.registerHelper(l,u,y),a[l]._global.push({pred:m,val:y})}}function ad(n,i,a,l,u){var m=i,y=a,x=qe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function T(){var De=i.line+S;return De=n.first+n.size?!1:(i=new fe(De,i.ch,i.sticky),x=qe(n,De))}function H(De){var Me;if(l=="codepoint"){var ze=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(ze))Me=null;else{var Ye=a>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;Me=new fe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ye?2:1))),-a)}}else u?Me=cS(n.cm,x,i,a):Me=ed(x,i,a);if(Me==null)if(!De&&T())i=td(u,n.cm,x,i.line,S);else return!1;else i=Me;return!0}if(l=="char"||l=="codepoint")H();else if(l=="column")H(!0);else if(l=="word"||l=="group")for(var V=null,se=l=="group",te=n.cm&&n.cm.getHelper(i,"wordChars"),pe=!0;!(a<0&&!H(!pe));pe=!1){var we=x.text.charAt(i.ch)||` +`,Te=ct(we,te)?"w":se&&we==` +`?"n":!se||/\s/.test(we)?null:"p";if(se&&!pe&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,H(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!H(!pe))break}var Le=mc(n,i,m,y,!0);return pt(m,Le)&&(Le.hitSide=!0),Le}function Fm(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Pe(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*as(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var T;T=Nf(n,m,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,ld(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(x){for(var S=x.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}Xe(u,"paste",function(x){!m(x)||Rt(l,x)||$m(x,l)||p<=11&&setTimeout(Qt(l,function(){return i.updateFromDOM()}),20)}),Xe(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Xe(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Xe(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Xe(u,"touchstart",function(){return a.forceCompositionEnd()}),Xe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!m(x)||Rt(l,x))){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=Dm(l);kc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,Q),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=Cr.text.join(` +`);if(x.clipboardData.setData("Text",T),x.clipboardData.getData("Text")==T){x.preventDefault();return}}var H=zm(),V=H.firstChild;ld(V),l.display.lineSpace.insertBefore(H,l.display.lineSpace.firstChild),V.value=Cr.text.join(` +`);var se=be(Fe(u));Ae(V),setTimeout(function(){l.display.lineSpace.removeChild(H),se.focus(),se==u&&a.showPrimarySelection()},50)}}Xe(u,"copy",y),Xe(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Lg(this.cm,!1);return n.focus=be(Fe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line=i.display.viewFrom&&Hm(i,l)||{node:x[0].measure.map[2],offset:0},T=u.linen.firstLine()&&(l=fe(l.line-1,qe(n.doc,l.line-1).length)),u.ch==qe(n.doc,u.line).text.length&&u.linei.viewTo-1)return!1;var m,y,x;l.line==i.viewFrom||(m=So(n,l.line))==0?(y=A(i.view[0].line),x=i.view[0].node):(y=A(i.view[m].line),x=i.view[m-1].node.nextSibling);var S=So(n,u.line),T,H;if(S==i.view.length-1?(T=i.viewTo-1,H=i.lineDiv.lastChild):(T=A(i.view[S+1].line)-1,H=i.view[S+1].node.previousSibling),!x)return!1;for(var V=n.doc.splitLines(MS(n,x,H,y,T)),se=ii(n.doc,fe(y,0),fe(T,qe(n.doc,T).text.length));V.length>1&&se.length>1;)if(xe(V)==xe(se))V.pop(),se.pop(),T--;else if(V[0]==se[0])V.shift(),se.shift(),y++;else break;for(var te=0,pe=0,we=V[0],Te=se[0],Le=Math.min(we.length,Te.length);tel.ch&&De.charCodeAt(De.length-pe-1)==Me.charCodeAt(Me.length-pe-1);)te--,pe++;V[V.length-1]=De.slice(0,De.length-pe).replace(/^\u200b+/,""),V[0]=V[0].slice(te).replace(/\u200b+$/,"");var Ye=fe(y,te),Ue=fe(T,se.length?xe(se).length-pe:0);if(V.length>1||V[0]||Ie(Ye,Ue))return ms(n.doc,V,Ye,Ue,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Wn(this.cm,function(){return _n(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Qt(this.cm,sd)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Hm(n,i){var a=Af(n,i.line);if(!a||a.hidden)return null;var l=qe(n.doc,i.line),u=gg(a,l,i.line),m=lt(l,n.doc.direction),y="left";if(m){var x=Bt(m,i.ch);y=x%2?"right":"left"}var S=yg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function LS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function xs(n,i){return i&&(n.bad=!0),n}function MS(n,i,a,l,u){var m="",y=!1,x=n.doc.lineSeparator(),S=!1;function T(te){return function(pe){return pe.id==te}}function H(){y&&(m+=x,S&&(m+=x),y=S=!1)}function V(te){te&&(H(),m+=te)}function se(te){if(te.nodeType==1){var pe=te.getAttribute("cm-text");if(pe){V(pe);return}var we=te.getAttribute("cm-marker"),Te;if(we){var Le=n.findMarks(fe(l,0),fe(u+1,0),T(+we));Le.length&&(Te=Le[0].find(0))&&V(ii(n.doc,Te.from,Te.to).join(x));return}if(te.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;De&&H();for(var Me=0;Me=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Xe(u,"paste",function(y){Rt(l,y)||$m(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function m(y){if(!Rt(l,y)){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=Dm(l);kc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Q):(a.prevInput="",u.value=x.text.join(` +`),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Xe(u,"cut",m),Xe(u,"copy",m),Xe(n.scroller,"paste",function(y){if(!(li(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Xe(n.lineSpace,"selectstart",function(y){li(n,y)||cn(y)}),Xe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Wt.prototype.createField=function(n){this.wrapper=zm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;ld(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Wt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Lg(n);if(n.options.moveInputWithCursor){var u=_r(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},Wt.prototype.showSelection=function(n){var i=this.cm,a=i.display;C(a.cursorDiv,n.cursors),C(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Wt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||be(Fe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Wt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Wt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ri(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||$&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l="​"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y1e3||u.indexOf(` +`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=ko(a,n),y=l.scroller.scrollTop;if(!m||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(m)==-1&&Qt(a,un)(a.doc,Fi(m),Q);var S=u.style.cssText,T=i.wrapper.style.cssText,H=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(n.clientY-H.top-5)+"px; left: "+(n.clientX-H.left-5)+`px; + z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var V;g&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=te,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function se(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te="​"+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"​",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function te(){if(i.contextMenuPending==te&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Qt(a,om)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),G){Oi(n);var pe=function(){an(window,"mouseup",pe),setTimeout(te,20)};Xe(window,"mouseup",pe)}else setTimeout(te,50)},Wt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function OS(n,i){if(i=i?Y(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=be(Fe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Xe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(an(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function PS(n){n.off=an,n.on=Xe,n.wheelEventPixels=Hk,n.Doc=Tn,n.splitLines=cr,n.countColumn=re,n.findColumn=ge,n.isWordChar=Je,n.Pass=q,n.signal=Pt,n.Line=os,n.changeEnd=Hi,n.scrollbarModel=$g,n.Pos=fe,n.cmpPos=Ie,n.modes=Qo,n.mimeModes=xr,n.resolveMode=es,n.getMode=ts,n.modeExtensions=$i,n.extendMode=ns,n.copyState=Br,n.startState=rs,n.innerMode=al,n.commands=Ol,n.keyMap=ci,n.keyName=xm,n.isModifierKey=bm,n.lookupKey=ys,n.normalizeKeyMap=aS,n.StringStream=$t,n.SharedTextMarker=Ll,n.TextMarker=Wi,n.LineWidget=Al,n.e_preventDefault=cn,n.e_stopPropagation=Zo,n.e_stop=Oi,n.addClass=Se,n.contains=ce,n.rmClass=N,n.keyNames=qi}_S(Ct),AS(Ct);var RS="iter insert remove copy getEditor constructor".split(" ");for(var _c in Tn.prototype)Tn.prototype.hasOwnProperty(_c)&&ae(RS,_c)<0&&(Ct.prototype[_c]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Tn.prototype[_c]));return yr(Tn),Ct.inputStyles={textarea:Wt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),kr.apply(this,arguments)},Ct.defineMIME=bo,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){Tn.prototype[n]=i},Ct.fromTextArea=OS,PS(Ct),Ct.version="5.65.18",Ct}))})(Yc)),Yc.exports}var ML=vo();const NL=ax(ML);var Ad={},Er={};const OL="Á",PL="á",RL="Ă",$L="ă",IL="∾",DL="∿",zL="∾̳",FL="Â",HL="â",BL="´",WL="А",qL="а",jL="Æ",UL="æ",VL="⁡",GL="𝔄",KL="𝔞",XL="À",YL="à",ZL="ℵ",JL="ℵ",QL="Α",eM="α",tM="Ā",nM="ā",rM="⨿",iM="&",oM="&",sM="⩕",lM="⩓",aM="∧",cM="⩜",uM="⩘",fM="⩚",dM="∠",hM="⦤",pM="∠",gM="⦨",mM="⦩",vM="⦪",yM="⦫",bM="⦬",wM="⦭",xM="⦮",kM="⦯",SM="∡",_M="∟",TM="⊾",CM="⦝",EM="∢",AM="Å",LM="⍼",MM="Ą",NM="ą",OM="𝔸",PM="𝕒",RM="⩯",$M="≈",IM="⩰",DM="≊",zM="≋",FM="'",HM="⁡",BM="≈",WM="≊",qM="Å",jM="å",UM="𝒜",VM="𝒶",GM="≔",KM="*",XM="≈",YM="≍",ZM="Ã",JM="ã",QM="Ä",eN="ä",tN="∳",nN="⨑",rN="≌",iN="϶",oN="‵",sN="∽",lN="⋍",aN="∖",cN="⫧",uN="⊽",fN="⌅",dN="⌆",hN="⌅",pN="⎵",gN="⎶",mN="≌",vN="Б",yN="б",bN="„",wN="∵",xN="∵",kN="∵",SN="⦰",_N="϶",TN="ℬ",CN="ℬ",EN="Β",AN="β",LN="ℶ",MN="≬",NN="𝔅",ON="𝔟",PN="⋂",RN="◯",$N="⋃",IN="⨀",DN="⨁",zN="⨂",FN="⨆",HN="★",BN="▽",WN="△",qN="⨄",jN="⋁",UN="⋀",VN="⤍",GN="⧫",KN="▪",XN="▴",YN="▾",ZN="◂",JN="▸",QN="␣",e2="▒",t2="░",n2="▓",r2="█",i2="=⃥",o2="≡⃥",s2="⫭",l2="⌐",a2="𝔹",c2="𝕓",u2="⊥",f2="⊥",d2="⋈",h2="⧉",p2="┐",g2="╕",m2="╖",v2="╗",y2="┌",b2="╒",w2="╓",x2="╔",k2="─",S2="═",_2="┬",T2="╤",C2="╥",E2="╦",A2="┴",L2="╧",M2="╨",N2="╩",O2="⊟",P2="⊞",R2="⊠",$2="┘",I2="╛",D2="╜",z2="╝",F2="└",H2="╘",B2="╙",W2="╚",q2="│",j2="║",U2="┼",V2="╪",G2="╫",K2="╬",X2="┤",Y2="╡",Z2="╢",J2="╣",Q2="├",eO="╞",tO="╟",nO="╠",rO="‵",iO="˘",oO="˘",sO="¦",lO="𝒷",aO="ℬ",cO="⁏",uO="∽",fO="⋍",dO="⧅",hO="\\",pO="⟈",gO="•",mO="•",vO="≎",yO="⪮",bO="≏",wO="≎",xO="≏",kO="Ć",SO="ć",_O="⩄",TO="⩉",CO="⩋",EO="∩",AO="⋒",LO="⩇",MO="⩀",NO="ⅅ",OO="∩︀",PO="⁁",RO="ˇ",$O="ℭ",IO="⩍",DO="Č",zO="č",FO="Ç",HO="ç",BO="Ĉ",WO="ĉ",qO="∰",jO="⩌",UO="⩐",VO="Ċ",GO="ċ",KO="¸",XO="¸",YO="⦲",ZO="¢",JO="·",QO="·",eP="𝔠",tP="ℭ",nP="Ч",rP="ч",iP="✓",oP="✓",sP="Χ",lP="χ",aP="ˆ",cP="≗",uP="↺",fP="↻",dP="⊛",hP="⊚",pP="⊝",gP="⊙",mP="®",vP="Ⓢ",yP="⊖",bP="⊕",wP="⊗",xP="○",kP="⧃",SP="≗",_P="⨐",TP="⫯",CP="⧂",EP="∲",AP="”",LP="’",MP="♣",NP="♣",OP=":",PP="∷",RP="⩴",$P="≔",IP="≔",DP=",",zP="@",FP="∁",HP="∘",BP="∁",WP="ℂ",qP="≅",jP="⩭",UP="≡",VP="∮",GP="∯",KP="∮",XP="𝕔",YP="ℂ",ZP="∐",JP="∐",QP="©",eR="©",tR="℗",nR="∳",rR="↵",iR="✗",oR="⨯",sR="𝒞",lR="𝒸",aR="⫏",cR="⫑",uR="⫐",fR="⫒",dR="⋯",hR="⤸",pR="⤵",gR="⋞",mR="⋟",vR="↶",yR="⤽",bR="⩈",wR="⩆",xR="≍",kR="∪",SR="⋓",_R="⩊",TR="⊍",CR="⩅",ER="∪︀",AR="↷",LR="⤼",MR="⋞",NR="⋟",OR="⋎",PR="⋏",RR="¤",$R="↶",IR="↷",DR="⋎",zR="⋏",FR="∲",HR="∱",BR="⌭",WR="†",qR="‡",jR="ℸ",UR="↓",VR="↡",GR="⇓",KR="‐",XR="⫤",YR="⊣",ZR="⤏",JR="˝",QR="Ď",e$="ď",t$="Д",n$="д",r$="‡",i$="⇊",o$="ⅅ",s$="ⅆ",l$="⤑",a$="⩷",c$="°",u$="∇",f$="Δ",d$="δ",h$="⦱",p$="⥿",g$="𝔇",m$="𝔡",v$="⥥",y$="⇃",b$="⇂",w$="´",x$="˙",k$="˝",S$="`",_$="˜",T$="⋄",C$="⋄",E$="⋄",A$="♦",L$="♦",M$="¨",N$="ⅆ",O$="ϝ",P$="⋲",R$="÷",$$="÷",I$="⋇",D$="⋇",z$="Ђ",F$="ђ",H$="⌞",B$="⌍",W$="$",q$="𝔻",j$="𝕕",U$="¨",V$="˙",G$="⃜",K$="≐",X$="≑",Y$="≐",Z$="∸",J$="∔",Q$="⊡",eI="⌆",tI="∯",nI="¨",rI="⇓",iI="⇐",oI="⇔",sI="⫤",lI="⟸",aI="⟺",cI="⟹",uI="⇒",fI="⊨",dI="⇑",hI="⇕",pI="∥",gI="⤓",mI="↓",vI="↓",yI="⇓",bI="⇵",wI="̑",xI="⇊",kI="⇃",SI="⇂",_I="⥐",TI="⥞",CI="⥖",EI="↽",AI="⥟",LI="⥗",MI="⇁",NI="↧",OI="⊤",PI="⤐",RI="⌟",$I="⌌",II="𝒟",DI="𝒹",zI="Ѕ",FI="ѕ",HI="⧶",BI="Đ",WI="đ",qI="⋱",jI="▿",UI="▾",VI="⇵",GI="⥯",KI="⦦",XI="Џ",YI="џ",ZI="⟿",JI="É",QI="é",eD="⩮",tD="Ě",nD="ě",rD="Ê",iD="ê",oD="≖",sD="≕",lD="Э",aD="э",cD="⩷",uD="Ė",fD="ė",dD="≑",hD="ⅇ",pD="≒",gD="𝔈",mD="𝔢",vD="⪚",yD="È",bD="è",wD="⪖",xD="⪘",kD="⪙",SD="∈",_D="⏧",TD="ℓ",CD="⪕",ED="⪗",AD="Ē",LD="ē",MD="∅",ND="∅",OD="◻",PD="∅",RD="▫",$D=" ",ID=" ",DD=" ",zD="Ŋ",FD="ŋ",HD=" ",BD="Ę",WD="ę",qD="𝔼",jD="𝕖",UD="⋕",VD="⧣",GD="⩱",KD="ε",XD="Ε",YD="ε",ZD="ϵ",JD="≖",QD="≕",ez="≂",tz="⪖",nz="⪕",rz="⩵",iz="=",oz="≂",sz="≟",lz="⇌",az="≡",cz="⩸",uz="⧥",fz="⥱",dz="≓",hz="ℯ",pz="ℰ",gz="≐",mz="⩳",vz="≂",yz="Η",bz="η",wz="Ð",xz="ð",kz="Ë",Sz="ë",_z="€",Tz="!",Cz="∃",Ez="∃",Az="ℰ",Lz="ⅇ",Mz="ⅇ",Nz="≒",Oz="Ф",Pz="ф",Rz="♀",$z="ffi",Iz="ff",Dz="ffl",zz="𝔉",Fz="𝔣",Hz="fi",Bz="◼",Wz="▪",qz="fj",jz="♭",Uz="fl",Vz="▱",Gz="ƒ",Kz="𝔽",Xz="𝕗",Yz="∀",Zz="∀",Jz="⋔",Qz="⫙",eF="ℱ",tF="⨍",nF="½",rF="⅓",iF="¼",oF="⅕",sF="⅙",lF="⅛",aF="⅔",cF="⅖",uF="¾",fF="⅗",dF="⅜",hF="⅘",pF="⅚",gF="⅝",mF="⅞",vF="⁄",yF="⌢",bF="𝒻",wF="ℱ",xF="ǵ",kF="Γ",SF="γ",_F="Ϝ",TF="ϝ",CF="⪆",EF="Ğ",AF="ğ",LF="Ģ",MF="Ĝ",NF="ĝ",OF="Г",PF="г",RF="Ġ",$F="ġ",IF="≥",DF="≧",zF="⪌",FF="⋛",HF="≥",BF="≧",WF="⩾",qF="⪩",jF="⩾",UF="⪀",VF="⪂",GF="⪄",KF="⋛︀",XF="⪔",YF="𝔊",ZF="𝔤",JF="≫",QF="⋙",eH="⋙",tH="ℷ",nH="Ѓ",rH="ѓ",iH="⪥",oH="≷",sH="⪒",lH="⪤",aH="⪊",cH="⪊",uH="⪈",fH="≩",dH="⪈",hH="≩",pH="⋧",gH="𝔾",mH="𝕘",vH="`",yH="≥",bH="⋛",wH="≧",xH="⪢",kH="≷",SH="⩾",_H="≳",TH="𝒢",CH="ℊ",EH="≳",AH="⪎",LH="⪐",MH="⪧",NH="⩺",OH=">",PH=">",RH="≫",$H="⋗",IH="⦕",DH="⩼",zH="⪆",FH="⥸",HH="⋗",BH="⋛",WH="⪌",qH="≷",jH="≳",UH="≩︀",VH="≩︀",GH="ˇ",KH=" ",XH="½",YH="ℋ",ZH="Ъ",JH="ъ",QH="⥈",e3="↔",t3="⇔",n3="↭",r3="^",i3="ℏ",o3="Ĥ",s3="ĥ",l3="♥",a3="♥",c3="…",u3="⊹",f3="𝔥",d3="ℌ",h3="ℋ",p3="⤥",g3="⤦",m3="⇿",v3="∻",y3="↩",b3="↪",w3="𝕙",x3="ℍ",k3="―",S3="─",_3="𝒽",T3="ℋ",C3="ℏ",E3="Ħ",A3="ħ",L3="≎",M3="≏",N3="⁃",O3="‐",P3="Í",R3="í",$3="⁣",I3="Î",D3="î",z3="И",F3="и",H3="İ",B3="Е",W3="е",q3="¡",j3="⇔",U3="𝔦",V3="ℑ",G3="Ì",K3="ì",X3="ⅈ",Y3="⨌",Z3="∭",J3="⧜",Q3="℩",eB="IJ",tB="ij",nB="Ī",rB="ī",iB="ℑ",oB="ⅈ",sB="ℐ",lB="ℑ",aB="ı",cB="ℑ",uB="⊷",fB="Ƶ",dB="⇒",hB="℅",pB="∞",gB="⧝",mB="ı",vB="⊺",yB="∫",bB="∬",wB="ℤ",xB="∫",kB="⊺",SB="⋂",_B="⨗",TB="⨼",CB="⁣",EB="⁢",AB="Ё",LB="ё",MB="Į",NB="į",OB="𝕀",PB="𝕚",RB="Ι",$B="ι",IB="⨼",DB="¿",zB="𝒾",FB="ℐ",HB="∈",BB="⋵",WB="⋹",qB="⋴",jB="⋳",UB="∈",VB="⁢",GB="Ĩ",KB="ĩ",XB="І",YB="і",ZB="Ï",JB="ï",QB="Ĵ",e5="ĵ",t5="Й",n5="й",r5="𝔍",i5="𝔧",o5="ȷ",s5="𝕁",l5="𝕛",a5="𝒥",c5="𝒿",u5="Ј",f5="ј",d5="Є",h5="є",p5="Κ",g5="κ",m5="ϰ",v5="Ķ",y5="ķ",b5="К",w5="к",x5="𝔎",k5="𝔨",S5="ĸ",_5="Х",T5="х",C5="Ќ",E5="ќ",A5="𝕂",L5="𝕜",M5="𝒦",N5="𝓀",O5="⇚",P5="Ĺ",R5="ĺ",$5="⦴",I5="ℒ",D5="Λ",z5="λ",F5="⟨",H5="⟪",B5="⦑",W5="⟨",q5="⪅",j5="ℒ",U5="«",V5="⇤",G5="⤟",K5="←",X5="↞",Y5="⇐",Z5="⤝",J5="↩",Q5="↫",e8="⤹",t8="⥳",n8="↢",r8="⤙",i8="⤛",o8="⪫",s8="⪭",l8="⪭︀",a8="⤌",c8="⤎",u8="❲",f8="{",d8="[",h8="⦋",p8="⦏",g8="⦍",m8="Ľ",v8="ľ",y8="Ļ",b8="ļ",w8="⌈",x8="{",k8="Л",S8="л",_8="⤶",T8="“",C8="„",E8="⥧",A8="⥋",L8="↲",M8="≤",N8="≦",O8="⟨",P8="⇤",R8="←",$8="←",I8="⇐",D8="⇆",z8="↢",F8="⌈",H8="⟦",B8="⥡",W8="⥙",q8="⇃",j8="⌊",U8="↽",V8="↼",G8="⇇",K8="↔",X8="↔",Y8="⇔",Z8="⇆",J8="⇋",Q8="↭",eW="⥎",tW="↤",nW="⊣",rW="⥚",iW="⋋",oW="⧏",sW="⊲",lW="⊴",aW="⥑",cW="⥠",uW="⥘",fW="↿",dW="⥒",hW="↼",pW="⪋",gW="⋚",mW="≤",vW="≦",yW="⩽",bW="⪨",wW="⩽",xW="⩿",kW="⪁",SW="⪃",_W="⋚︀",TW="⪓",CW="⪅",EW="⋖",AW="⋚",LW="⪋",MW="⋚",NW="≦",OW="≶",PW="≶",RW="⪡",$W="≲",IW="⩽",DW="≲",zW="⥼",FW="⌊",HW="𝔏",BW="𝔩",WW="≶",qW="⪑",jW="⥢",UW="↽",VW="↼",GW="⥪",KW="▄",XW="Љ",YW="љ",ZW="⇇",JW="≪",QW="⋘",e4="⌞",t4="⇚",n4="⥫",r4="◺",i4="Ŀ",o4="ŀ",s4="⎰",l4="⎰",a4="⪉",c4="⪉",u4="⪇",f4="≨",d4="⪇",h4="≨",p4="⋦",g4="⟬",m4="⇽",v4="⟦",y4="⟵",b4="⟵",w4="⟸",x4="⟷",k4="⟷",S4="⟺",_4="⟼",T4="⟶",C4="⟶",E4="⟹",A4="↫",L4="↬",M4="⦅",N4="𝕃",O4="𝕝",P4="⨭",R4="⨴",$4="∗",I4="_",D4="↙",z4="↘",F4="◊",H4="◊",B4="⧫",W4="(",q4="⦓",j4="⇆",U4="⌟",V4="⇋",G4="⥭",K4="‎",X4="⊿",Y4="‹",Z4="𝓁",J4="ℒ",Q4="↰",eq="↰",tq="≲",nq="⪍",rq="⪏",iq="[",oq="‘",sq="‚",lq="Ł",aq="ł",cq="⪦",uq="⩹",fq="<",dq="<",hq="≪",pq="⋖",gq="⋋",mq="⋉",vq="⥶",yq="⩻",bq="◃",wq="⊴",xq="◂",kq="⦖",Sq="⥊",_q="⥦",Tq="≨︀",Cq="≨︀",Eq="¯",Aq="♂",Lq="✠",Mq="✠",Nq="↦",Oq="↦",Pq="↧",Rq="↤",$q="↥",Iq="▮",Dq="⨩",zq="М",Fq="м",Hq="—",Bq="∺",Wq="∡",qq=" ",jq="ℳ",Uq="𝔐",Vq="𝔪",Gq="℧",Kq="µ",Xq="*",Yq="⫰",Zq="∣",Jq="·",Qq="⊟",ej="−",tj="∸",nj="⨪",rj="∓",ij="⫛",oj="…",sj="∓",lj="⊧",aj="𝕄",cj="𝕞",uj="∓",fj="𝓂",dj="ℳ",hj="∾",pj="Μ",gj="μ",mj="⊸",vj="⊸",yj="∇",bj="Ń",wj="ń",xj="∠⃒",kj="≉",Sj="⩰̸",_j="≋̸",Tj="ʼn",Cj="≉",Ej="♮",Aj="ℕ",Lj="♮",Mj=" ",Nj="≎̸",Oj="≏̸",Pj="⩃",Rj="Ň",$j="ň",Ij="Ņ",Dj="ņ",zj="≇",Fj="⩭̸",Hj="⩂",Bj="Н",Wj="н",qj="–",jj="⤤",Uj="↗",Vj="⇗",Gj="↗",Kj="≠",Xj="≐̸",Yj="​",Zj="​",Jj="​",Qj="​",eU="≢",tU="⤨",nU="≂̸",rU="≫",iU="≪",oU=` +`,sU="∄",lU="∄",aU="𝔑",cU="𝔫",uU="≧̸",fU="≱",dU="≱",hU="≧̸",pU="⩾̸",gU="⩾̸",mU="⋙̸",vU="≵",yU="≫⃒",bU="≯",wU="≯",xU="≫̸",kU="↮",SU="⇎",_U="⫲",TU="∋",CU="⋼",EU="⋺",AU="∋",LU="Њ",MU="њ",NU="↚",OU="⇍",PU="‥",RU="≦̸",$U="≰",IU="↚",DU="⇍",zU="↮",FU="⇎",HU="≰",BU="≦̸",WU="⩽̸",qU="⩽̸",jU="≮",UU="⋘̸",VU="≴",GU="≪⃒",KU="≮",XU="⋪",YU="⋬",ZU="≪̸",JU="∤",QU="⁠",e6=" ",t6="𝕟",n6="ℕ",r6="⫬",i6="¬",o6="≢",s6="≭",l6="∦",a6="∉",c6="≠",u6="≂̸",f6="∄",d6="≯",h6="≱",p6="≧̸",g6="≫̸",m6="≹",v6="⩾̸",y6="≵",b6="≎̸",w6="≏̸",x6="∉",k6="⋵̸",S6="⋹̸",_6="∉",T6="⋷",C6="⋶",E6="⧏̸",A6="⋪",L6="⋬",M6="≮",N6="≰",O6="≸",P6="≪̸",R6="⩽̸",$6="≴",I6="⪢̸",D6="⪡̸",z6="∌",F6="∌",H6="⋾",B6="⋽",W6="⊀",q6="⪯̸",j6="⋠",U6="∌",V6="⧐̸",G6="⋫",K6="⋭",X6="⊏̸",Y6="⋢",Z6="⊐̸",J6="⋣",Q6="⊂⃒",eV="⊈",tV="⊁",nV="⪰̸",rV="⋡",iV="≿̸",oV="⊃⃒",sV="⊉",lV="≁",aV="≄",cV="≇",uV="≉",fV="∤",dV="∦",hV="∦",pV="⫽⃥",gV="∂̸",mV="⨔",vV="⊀",yV="⋠",bV="⊀",wV="⪯̸",xV="⪯̸",kV="⤳̸",SV="↛",_V="⇏",TV="↝̸",CV="↛",EV="⇏",AV="⋫",LV="⋭",MV="⊁",NV="⋡",OV="⪰̸",PV="𝒩",RV="𝓃",$V="∤",IV="∦",DV="≁",zV="≄",FV="≄",HV="∤",BV="∦",WV="⋢",qV="⋣",jV="⊄",UV="⫅̸",VV="⊈",GV="⊂⃒",KV="⊈",XV="⫅̸",YV="⊁",ZV="⪰̸",JV="⊅",QV="⫆̸",eG="⊉",tG="⊃⃒",nG="⊉",rG="⫆̸",iG="≹",oG="Ñ",sG="ñ",lG="≸",aG="⋪",cG="⋬",uG="⋫",fG="⋭",dG="Ν",hG="ν",pG="#",gG="№",mG=" ",vG="≍⃒",yG="⊬",bG="⊭",wG="⊮",xG="⊯",kG="≥⃒",SG=">⃒",_G="⤄",TG="⧞",CG="⤂",EG="≤⃒",AG="<⃒",LG="⊴⃒",MG="⤃",NG="⊵⃒",OG="∼⃒",PG="⤣",RG="↖",$G="⇖",IG="↖",DG="⤧",zG="Ó",FG="ó",HG="⊛",BG="Ô",WG="ô",qG="⊚",jG="О",UG="о",VG="⊝",GG="Ő",KG="ő",XG="⨸",YG="⊙",ZG="⦼",JG="Œ",QG="œ",e9="⦿",t9="𝔒",n9="𝔬",r9="˛",i9="Ò",o9="ò",s9="⧁",l9="⦵",a9="Ω",c9="∮",u9="↺",f9="⦾",d9="⦻",h9="‾",p9="⧀",g9="Ō",m9="ō",v9="Ω",y9="ω",b9="Ο",w9="ο",x9="⦶",k9="⊖",S9="𝕆",_9="𝕠",T9="⦷",C9="“",E9="‘",A9="⦹",L9="⊕",M9="↻",N9="⩔",O9="∨",P9="⩝",R9="ℴ",$9="ℴ",I9="ª",D9="º",z9="⊶",F9="⩖",H9="⩗",B9="⩛",W9="Ⓢ",q9="𝒪",j9="ℴ",U9="Ø",V9="ø",G9="⊘",K9="Õ",X9="õ",Y9="⨶",Z9="⨷",J9="⊗",Q9="Ö",eK="ö",tK="⌽",nK="‾",rK="⏞",iK="⎴",oK="⏜",sK="¶",lK="∥",aK="∥",cK="⫳",uK="⫽",fK="∂",dK="∂",hK="П",pK="п",gK="%",mK=".",vK="‰",yK="⊥",bK="‱",wK="𝔓",xK="𝔭",kK="Φ",SK="φ",_K="ϕ",TK="ℳ",CK="☎",EK="Π",AK="π",LK="⋔",MK="ϖ",NK="ℏ",OK="ℎ",PK="ℏ",RK="⨣",$K="⊞",IK="⨢",DK="+",zK="∔",FK="⨥",HK="⩲",BK="±",WK="±",qK="⨦",jK="⨧",UK="±",VK="ℌ",GK="⨕",KK="𝕡",XK="ℙ",YK="£",ZK="⪷",JK="⪻",QK="≺",e7="≼",t7="⪷",n7="≺",r7="≼",i7="≺",o7="⪯",s7="≼",l7="≾",a7="⪯",c7="⪹",u7="⪵",f7="⋨",d7="⪯",h7="⪳",p7="≾",g7="′",m7="″",v7="ℙ",y7="⪹",b7="⪵",w7="⋨",x7="∏",k7="∏",S7="⌮",_7="⌒",T7="⌓",C7="∝",E7="∝",A7="∷",L7="∝",M7="≾",N7="⊰",O7="𝒫",P7="𝓅",R7="Ψ",$7="ψ",I7=" ",D7="𝔔",z7="𝔮",F7="⨌",H7="𝕢",B7="ℚ",W7="⁗",q7="𝒬",j7="𝓆",U7="ℍ",V7="⨖",G7="?",K7="≟",X7='"',Y7='"',Z7="⇛",J7="∽̱",Q7="Ŕ",eX="ŕ",tX="√",nX="⦳",rX="⟩",iX="⟫",oX="⦒",sX="⦥",lX="⟩",aX="»",cX="⥵",uX="⇥",fX="⤠",dX="⤳",hX="→",pX="↠",gX="⇒",mX="⤞",vX="↪",yX="↬",bX="⥅",wX="⥴",xX="⤖",kX="↣",SX="↝",_X="⤚",TX="⤜",CX="∶",EX="ℚ",AX="⤍",LX="⤏",MX="⤐",NX="❳",OX="}",PX="]",RX="⦌",$X="⦎",IX="⦐",DX="Ř",zX="ř",FX="Ŗ",HX="ŗ",BX="⌉",WX="}",qX="Р",jX="р",UX="⤷",VX="⥩",GX="”",KX="”",XX="↳",YX="ℜ",ZX="ℛ",JX="ℜ",QX="ℝ",eY="ℜ",tY="▭",nY="®",rY="®",iY="∋",oY="⇋",sY="⥯",lY="⥽",aY="⌋",cY="𝔯",uY="ℜ",fY="⥤",dY="⇁",hY="⇀",pY="⥬",gY="Ρ",mY="ρ",vY="ϱ",yY="⟩",bY="⇥",wY="→",xY="→",kY="⇒",SY="⇄",_Y="↣",TY="⌉",CY="⟧",EY="⥝",AY="⥕",LY="⇂",MY="⌋",NY="⇁",OY="⇀",PY="⇄",RY="⇌",$Y="⇉",IY="↝",DY="↦",zY="⊢",FY="⥛",HY="⋌",BY="⧐",WY="⊳",qY="⊵",jY="⥏",UY="⥜",VY="⥔",GY="↾",KY="⥓",XY="⇀",YY="˚",ZY="≓",JY="⇄",QY="⇌",eZ="‏",tZ="⎱",nZ="⎱",rZ="⫮",iZ="⟭",oZ="⇾",sZ="⟧",lZ="⦆",aZ="𝕣",cZ="ℝ",uZ="⨮",fZ="⨵",dZ="⥰",hZ=")",pZ="⦔",gZ="⨒",mZ="⇉",vZ="⇛",yZ="›",bZ="𝓇",wZ="ℛ",xZ="↱",kZ="↱",SZ="]",_Z="’",TZ="’",CZ="⋌",EZ="⋊",AZ="▹",LZ="⊵",MZ="▸",NZ="⧎",OZ="⧴",PZ="⥨",RZ="℞",$Z="Ś",IZ="ś",DZ="‚",zZ="⪸",FZ="Š",HZ="š",BZ="⪼",WZ="≻",qZ="≽",jZ="⪰",UZ="⪴",VZ="Ş",GZ="ş",KZ="Ŝ",XZ="ŝ",YZ="⪺",ZZ="⪶",JZ="⋩",QZ="⨓",eJ="≿",tJ="С",nJ="с",rJ="⊡",iJ="⋅",oJ="⩦",sJ="⤥",lJ="↘",aJ="⇘",cJ="↘",uJ="§",fJ=";",dJ="⤩",hJ="∖",pJ="∖",gJ="✶",mJ="𝔖",vJ="𝔰",yJ="⌢",bJ="♯",wJ="Щ",xJ="щ",kJ="Ш",SJ="ш",_J="↓",TJ="←",CJ="∣",EJ="∥",AJ="→",LJ="↑",MJ="­",NJ="Σ",OJ="σ",PJ="ς",RJ="ς",$J="∼",IJ="⩪",DJ="≃",zJ="≃",FJ="⪞",HJ="⪠",BJ="⪝",WJ="⪟",qJ="≆",jJ="⨤",UJ="⥲",VJ="←",GJ="∘",KJ="∖",XJ="⨳",YJ="⧤",ZJ="∣",JJ="⌣",QJ="⪪",eQ="⪬",tQ="⪬︀",nQ="Ь",rQ="ь",iQ="⌿",oQ="⧄",sQ="/",lQ="𝕊",aQ="𝕤",cQ="♠",uQ="♠",fQ="∥",dQ="⊓",hQ="⊓︀",pQ="⊔",gQ="⊔︀",mQ="√",vQ="⊏",yQ="⊑",bQ="⊏",wQ="⊑",xQ="⊐",kQ="⊒",SQ="⊐",_Q="⊒",TQ="□",CQ="□",EQ="⊓",AQ="⊏",LQ="⊑",MQ="⊐",NQ="⊒",OQ="⊔",PQ="▪",RQ="□",$Q="▪",IQ="→",DQ="𝒮",zQ="𝓈",FQ="∖",HQ="⌣",BQ="⋆",WQ="⋆",qQ="☆",jQ="★",UQ="ϵ",VQ="ϕ",GQ="¯",KQ="⊂",XQ="⋐",YQ="⪽",ZQ="⫅",JQ="⊆",QQ="⫃",eee="⫁",tee="⫋",nee="⊊",ree="⪿",iee="⥹",oee="⊂",see="⋐",lee="⊆",aee="⫅",cee="⊆",uee="⊊",fee="⫋",dee="⫇",hee="⫕",pee="⫓",gee="⪸",mee="≻",vee="≽",yee="≻",bee="⪰",wee="≽",xee="≿",kee="⪰",See="⪺",_ee="⪶",Tee="⋩",Cee="≿",Eee="∋",Aee="∑",Lee="∑",Mee="♪",Nee="¹",Oee="²",Pee="³",Ree="⊃",$ee="⋑",Iee="⪾",Dee="⫘",zee="⫆",Fee="⊇",Hee="⫄",Bee="⊃",Wee="⊇",qee="⟉",jee="⫗",Uee="⥻",Vee="⫂",Gee="⫌",Kee="⊋",Xee="⫀",Yee="⊃",Zee="⋑",Jee="⊇",Qee="⫆",ete="⊋",tte="⫌",nte="⫈",rte="⫔",ite="⫖",ote="⤦",ste="↙",lte="⇙",ate="↙",cte="⤪",ute="ß",fte=" ",dte="⌖",hte="Τ",pte="τ",gte="⎴",mte="Ť",vte="ť",yte="Ţ",bte="ţ",wte="Т",xte="т",kte="⃛",Ste="⌕",_te="𝔗",Tte="𝔱",Cte="∴",Ete="∴",Ate="∴",Lte="Θ",Mte="θ",Nte="ϑ",Ote="ϑ",Pte="≈",Rte="∼",$te="  ",Ite=" ",Dte=" ",zte="≈",Fte="∼",Hte="Þ",Bte="þ",Wte="˜",qte="∼",jte="≃",Ute="≅",Vte="≈",Gte="⨱",Kte="⊠",Xte="×",Yte="⨰",Zte="∭",Jte="⤨",Qte="⌶",ene="⫱",tne="⊤",nne="𝕋",rne="𝕥",ine="⫚",one="⤩",sne="‴",lne="™",ane="™",cne="▵",une="▿",fne="◃",dne="⊴",hne="≜",pne="▹",gne="⊵",mne="◬",vne="≜",yne="⨺",bne="⃛",wne="⨹",xne="⧍",kne="⨻",Sne="⏢",_ne="𝒯",Tne="𝓉",Cne="Ц",Ene="ц",Ane="Ћ",Lne="ћ",Mne="Ŧ",Nne="ŧ",One="≬",Pne="↞",Rne="↠",$ne="Ú",Ine="ú",Dne="↑",zne="↟",Fne="⇑",Hne="⥉",Bne="Ў",Wne="ў",qne="Ŭ",jne="ŭ",Une="Û",Vne="û",Gne="У",Kne="у",Xne="⇅",Yne="Ű",Zne="ű",Jne="⥮",Qne="⥾",ere="𝔘",tre="𝔲",nre="Ù",rre="ù",ire="⥣",ore="↿",sre="↾",lre="▀",are="⌜",cre="⌜",ure="⌏",fre="◸",dre="Ū",hre="ū",pre="¨",gre="_",mre="⏟",vre="⎵",yre="⏝",bre="⋃",wre="⊎",xre="Ų",kre="ų",Sre="𝕌",_re="𝕦",Tre="⤒",Cre="↑",Ere="↑",Are="⇑",Lre="⇅",Mre="↕",Nre="↕",Ore="⇕",Pre="⥮",Rre="↿",$re="↾",Ire="⊎",Dre="↖",zre="↗",Fre="υ",Hre="ϒ",Bre="ϒ",Wre="Υ",qre="υ",jre="↥",Ure="⊥",Vre="⇈",Gre="⌝",Kre="⌝",Xre="⌎",Yre="Ů",Zre="ů",Jre="◹",Qre="𝒰",eie="𝓊",tie="⋰",nie="Ũ",rie="ũ",iie="▵",oie="▴",sie="⇈",lie="Ü",aie="ü",cie="⦧",uie="⦜",fie="ϵ",die="ϰ",hie="∅",pie="ϕ",gie="ϖ",mie="∝",vie="↕",yie="⇕",bie="ϱ",wie="ς",xie="⊊︀",kie="⫋︀",Sie="⊋︀",_ie="⫌︀",Tie="ϑ",Cie="⊲",Eie="⊳",Aie="⫨",Lie="⫫",Mie="⫩",Nie="В",Oie="в",Pie="⊢",Rie="⊨",$ie="⊩",Iie="⊫",Die="⫦",zie="⊻",Fie="∨",Hie="⋁",Bie="≚",Wie="⋮",qie="|",jie="‖",Uie="|",Vie="‖",Gie="∣",Kie="|",Xie="❘",Yie="≀",Zie=" ",Jie="𝔙",Qie="𝔳",eoe="⊲",toe="⊂⃒",noe="⊃⃒",roe="𝕍",ioe="𝕧",ooe="∝",soe="⊳",loe="𝒱",aoe="𝓋",coe="⫋︀",uoe="⊊︀",foe="⫌︀",doe="⊋︀",hoe="⊪",poe="⦚",goe="Ŵ",moe="ŵ",voe="⩟",yoe="∧",boe="⋀",woe="≙",xoe="℘",koe="𝔚",Soe="𝔴",_oe="𝕎",Toe="𝕨",Coe="℘",Eoe="≀",Aoe="≀",Loe="𝒲",Moe="𝓌",Noe="⋂",Ooe="◯",Poe="⋃",Roe="▽",$oe="𝔛",Ioe="𝔵",Doe="⟷",zoe="⟺",Foe="Ξ",Hoe="ξ",Boe="⟵",Woe="⟸",qoe="⟼",joe="⋻",Uoe="⨀",Voe="𝕏",Goe="𝕩",Koe="⨁",Xoe="⨂",Yoe="⟶",Zoe="⟹",Joe="𝒳",Qoe="𝓍",ese="⨆",tse="⨄",nse="△",rse="⋁",ise="⋀",ose="Ý",sse="ý",lse="Я",ase="я",cse="Ŷ",use="ŷ",fse="Ы",dse="ы",hse="¥",pse="𝔜",gse="𝔶",mse="Ї",vse="ї",yse="𝕐",bse="𝕪",wse="𝒴",xse="𝓎",kse="Ю",Sse="ю",_se="ÿ",Tse="Ÿ",Cse="Ź",Ese="ź",Ase="Ž",Lse="ž",Mse="З",Nse="з",Ose="Ż",Pse="ż",Rse="ℨ",$se="​",Ise="Ζ",Dse="ζ",zse="𝔷",Fse="ℨ",Hse="Ж",Bse="ж",Wse="⇝",qse="𝕫",jse="ℤ",Use="𝒵",Vse="𝓏",Gse="‍",Kse="‌",cx={Aacute:OL,aacute:PL,Abreve:RL,abreve:$L,ac:IL,acd:DL,acE:zL,Acirc:FL,acirc:HL,acute:BL,Acy:WL,acy:qL,AElig:jL,aelig:UL,af:VL,Afr:GL,afr:KL,Agrave:XL,agrave:YL,alefsym:ZL,aleph:JL,Alpha:QL,alpha:eM,Amacr:tM,amacr:nM,amalg:rM,amp:iM,AMP:oM,andand:sM,And:lM,and:aM,andd:cM,andslope:uM,andv:fM,ang:dM,ange:hM,angle:pM,angmsdaa:gM,angmsdab:mM,angmsdac:vM,angmsdad:yM,angmsdae:bM,angmsdaf:wM,angmsdag:xM,angmsdah:kM,angmsd:SM,angrt:_M,angrtvb:TM,angrtvbd:CM,angsph:EM,angst:AM,angzarr:LM,Aogon:MM,aogon:NM,Aopf:OM,aopf:PM,apacir:RM,ap:$M,apE:IM,ape:DM,apid:zM,apos:FM,ApplyFunction:HM,approx:BM,approxeq:WM,Aring:qM,aring:jM,Ascr:UM,ascr:VM,Assign:GM,ast:KM,asymp:XM,asympeq:YM,Atilde:ZM,atilde:JM,Auml:QM,auml:eN,awconint:tN,awint:nN,backcong:rN,backepsilon:iN,backprime:oN,backsim:sN,backsimeq:lN,Backslash:aN,Barv:cN,barvee:uN,barwed:fN,Barwed:dN,barwedge:hN,bbrk:pN,bbrktbrk:gN,bcong:mN,Bcy:vN,bcy:yN,bdquo:bN,becaus:wN,because:xN,Because:kN,bemptyv:SN,bepsi:_N,bernou:TN,Bernoullis:CN,Beta:EN,beta:AN,beth:LN,between:MN,Bfr:NN,bfr:ON,bigcap:PN,bigcirc:RN,bigcup:$N,bigodot:IN,bigoplus:DN,bigotimes:zN,bigsqcup:FN,bigstar:HN,bigtriangledown:BN,bigtriangleup:WN,biguplus:qN,bigvee:jN,bigwedge:UN,bkarow:VN,blacklozenge:GN,blacksquare:KN,blacktriangle:XN,blacktriangledown:YN,blacktriangleleft:ZN,blacktriangleright:JN,blank:QN,blk12:e2,blk14:t2,blk34:n2,block:r2,bne:i2,bnequiv:o2,bNot:s2,bnot:l2,Bopf:a2,bopf:c2,bot:u2,bottom:f2,bowtie:d2,boxbox:h2,boxdl:p2,boxdL:g2,boxDl:m2,boxDL:v2,boxdr:y2,boxdR:b2,boxDr:w2,boxDR:x2,boxh:k2,boxH:S2,boxhd:_2,boxHd:T2,boxhD:C2,boxHD:E2,boxhu:A2,boxHu:L2,boxhU:M2,boxHU:N2,boxminus:O2,boxplus:P2,boxtimes:R2,boxul:$2,boxuL:I2,boxUl:D2,boxUL:z2,boxur:F2,boxuR:H2,boxUr:B2,boxUR:W2,boxv:q2,boxV:j2,boxvh:U2,boxvH:V2,boxVh:G2,boxVH:K2,boxvl:X2,boxvL:Y2,boxVl:Z2,boxVL:J2,boxvr:Q2,boxvR:eO,boxVr:tO,boxVR:nO,bprime:rO,breve:iO,Breve:oO,brvbar:sO,bscr:lO,Bscr:aO,bsemi:cO,bsim:uO,bsime:fO,bsolb:dO,bsol:hO,bsolhsub:pO,bull:gO,bullet:mO,bump:vO,bumpE:yO,bumpe:bO,Bumpeq:wO,bumpeq:xO,Cacute:kO,cacute:SO,capand:_O,capbrcup:TO,capcap:CO,cap:EO,Cap:AO,capcup:LO,capdot:MO,CapitalDifferentialD:NO,caps:OO,caret:PO,caron:RO,Cayleys:$O,ccaps:IO,Ccaron:DO,ccaron:zO,Ccedil:FO,ccedil:HO,Ccirc:BO,ccirc:WO,Cconint:qO,ccups:jO,ccupssm:UO,Cdot:VO,cdot:GO,cedil:KO,Cedilla:XO,cemptyv:YO,cent:ZO,centerdot:JO,CenterDot:QO,cfr:eP,Cfr:tP,CHcy:nP,chcy:rP,check:iP,checkmark:oP,Chi:sP,chi:lP,circ:aP,circeq:cP,circlearrowleft:uP,circlearrowright:fP,circledast:dP,circledcirc:hP,circleddash:pP,CircleDot:gP,circledR:mP,circledS:vP,CircleMinus:yP,CirclePlus:bP,CircleTimes:wP,cir:xP,cirE:kP,cire:SP,cirfnint:_P,cirmid:TP,cirscir:CP,ClockwiseContourIntegral:EP,CloseCurlyDoubleQuote:AP,CloseCurlyQuote:LP,clubs:MP,clubsuit:NP,colon:OP,Colon:PP,Colone:RP,colone:$P,coloneq:IP,comma:DP,commat:zP,comp:FP,compfn:HP,complement:BP,complexes:WP,cong:qP,congdot:jP,Congruent:UP,conint:VP,Conint:GP,ContourIntegral:KP,copf:XP,Copf:YP,coprod:ZP,Coproduct:JP,copy:QP,COPY:eR,copysr:tR,CounterClockwiseContourIntegral:nR,crarr:rR,cross:iR,Cross:oR,Cscr:sR,cscr:lR,csub:aR,csube:cR,csup:uR,csupe:fR,ctdot:dR,cudarrl:hR,cudarrr:pR,cuepr:gR,cuesc:mR,cularr:vR,cularrp:yR,cupbrcap:bR,cupcap:wR,CupCap:xR,cup:kR,Cup:SR,cupcup:_R,cupdot:TR,cupor:CR,cups:ER,curarr:AR,curarrm:LR,curlyeqprec:MR,curlyeqsucc:NR,curlyvee:OR,curlywedge:PR,curren:RR,curvearrowleft:$R,curvearrowright:IR,cuvee:DR,cuwed:zR,cwconint:FR,cwint:HR,cylcty:BR,dagger:WR,Dagger:qR,daleth:jR,darr:UR,Darr:VR,dArr:GR,dash:KR,Dashv:XR,dashv:YR,dbkarow:ZR,dblac:JR,Dcaron:QR,dcaron:e$,Dcy:t$,dcy:n$,ddagger:r$,ddarr:i$,DD:o$,dd:s$,DDotrahd:l$,ddotseq:a$,deg:c$,Del:u$,Delta:f$,delta:d$,demptyv:h$,dfisht:p$,Dfr:g$,dfr:m$,dHar:v$,dharl:y$,dharr:b$,DiacriticalAcute:w$,DiacriticalDot:x$,DiacriticalDoubleAcute:k$,DiacriticalGrave:S$,DiacriticalTilde:_$,diam:T$,diamond:C$,Diamond:E$,diamondsuit:A$,diams:L$,die:M$,DifferentialD:N$,digamma:O$,disin:P$,div:R$,divide:$$,divideontimes:I$,divonx:D$,DJcy:z$,djcy:F$,dlcorn:H$,dlcrop:B$,dollar:W$,Dopf:q$,dopf:j$,Dot:U$,dot:V$,DotDot:G$,doteq:K$,doteqdot:X$,DotEqual:Y$,dotminus:Z$,dotplus:J$,dotsquare:Q$,doublebarwedge:eI,DoubleContourIntegral:tI,DoubleDot:nI,DoubleDownArrow:rI,DoubleLeftArrow:iI,DoubleLeftRightArrow:oI,DoubleLeftTee:sI,DoubleLongLeftArrow:lI,DoubleLongLeftRightArrow:aI,DoubleLongRightArrow:cI,DoubleRightArrow:uI,DoubleRightTee:fI,DoubleUpArrow:dI,DoubleUpDownArrow:hI,DoubleVerticalBar:pI,DownArrowBar:gI,downarrow:mI,DownArrow:vI,Downarrow:yI,DownArrowUpArrow:bI,DownBreve:wI,downdownarrows:xI,downharpoonleft:kI,downharpoonright:SI,DownLeftRightVector:_I,DownLeftTeeVector:TI,DownLeftVectorBar:CI,DownLeftVector:EI,DownRightTeeVector:AI,DownRightVectorBar:LI,DownRightVector:MI,DownTeeArrow:NI,DownTee:OI,drbkarow:PI,drcorn:RI,drcrop:$I,Dscr:II,dscr:DI,DScy:zI,dscy:FI,dsol:HI,Dstrok:BI,dstrok:WI,dtdot:qI,dtri:jI,dtrif:UI,duarr:VI,duhar:GI,dwangle:KI,DZcy:XI,dzcy:YI,dzigrarr:ZI,Eacute:JI,eacute:QI,easter:eD,Ecaron:tD,ecaron:nD,Ecirc:rD,ecirc:iD,ecir:oD,ecolon:sD,Ecy:lD,ecy:aD,eDDot:cD,Edot:uD,edot:fD,eDot:dD,ee:hD,efDot:pD,Efr:gD,efr:mD,eg:vD,Egrave:yD,egrave:bD,egs:wD,egsdot:xD,el:kD,Element:SD,elinters:_D,ell:TD,els:CD,elsdot:ED,Emacr:AD,emacr:LD,empty:MD,emptyset:ND,EmptySmallSquare:OD,emptyv:PD,EmptyVerySmallSquare:RD,emsp13:$D,emsp14:ID,emsp:DD,ENG:zD,eng:FD,ensp:HD,Eogon:BD,eogon:WD,Eopf:qD,eopf:jD,epar:UD,eparsl:VD,eplus:GD,epsi:KD,Epsilon:XD,epsilon:YD,epsiv:ZD,eqcirc:JD,eqcolon:QD,eqsim:ez,eqslantgtr:tz,eqslantless:nz,Equal:rz,equals:iz,EqualTilde:oz,equest:sz,Equilibrium:lz,equiv:az,equivDD:cz,eqvparsl:uz,erarr:fz,erDot:dz,escr:hz,Escr:pz,esdot:gz,Esim:mz,esim:vz,Eta:yz,eta:bz,ETH:wz,eth:xz,Euml:kz,euml:Sz,euro:_z,excl:Tz,exist:Cz,Exists:Ez,expectation:Az,exponentiale:Lz,ExponentialE:Mz,fallingdotseq:Nz,Fcy:Oz,fcy:Pz,female:Rz,ffilig:$z,fflig:Iz,ffllig:Dz,Ffr:zz,ffr:Fz,filig:Hz,FilledSmallSquare:Bz,FilledVerySmallSquare:Wz,fjlig:qz,flat:jz,fllig:Uz,fltns:Vz,fnof:Gz,Fopf:Kz,fopf:Xz,forall:Yz,ForAll:Zz,fork:Jz,forkv:Qz,Fouriertrf:eF,fpartint:tF,frac12:nF,frac13:rF,frac14:iF,frac15:oF,frac16:sF,frac18:lF,frac23:aF,frac25:cF,frac34:uF,frac35:fF,frac38:dF,frac45:hF,frac56:pF,frac58:gF,frac78:mF,frasl:vF,frown:yF,fscr:bF,Fscr:wF,gacute:xF,Gamma:kF,gamma:SF,Gammad:_F,gammad:TF,gap:CF,Gbreve:EF,gbreve:AF,Gcedil:LF,Gcirc:MF,gcirc:NF,Gcy:OF,gcy:PF,Gdot:RF,gdot:$F,ge:IF,gE:DF,gEl:zF,gel:FF,geq:HF,geqq:BF,geqslant:WF,gescc:qF,ges:jF,gesdot:UF,gesdoto:VF,gesdotol:GF,gesl:KF,gesles:XF,Gfr:YF,gfr:ZF,gg:JF,Gg:QF,ggg:eH,gimel:tH,GJcy:nH,gjcy:rH,gla:iH,gl:oH,glE:sH,glj:lH,gnap:aH,gnapprox:cH,gne:uH,gnE:fH,gneq:dH,gneqq:hH,gnsim:pH,Gopf:gH,gopf:mH,grave:vH,GreaterEqual:yH,GreaterEqualLess:bH,GreaterFullEqual:wH,GreaterGreater:xH,GreaterLess:kH,GreaterSlantEqual:SH,GreaterTilde:_H,Gscr:TH,gscr:CH,gsim:EH,gsime:AH,gsiml:LH,gtcc:MH,gtcir:NH,gt:OH,GT:PH,Gt:RH,gtdot:$H,gtlPar:IH,gtquest:DH,gtrapprox:zH,gtrarr:FH,gtrdot:HH,gtreqless:BH,gtreqqless:WH,gtrless:qH,gtrsim:jH,gvertneqq:UH,gvnE:VH,Hacek:GH,hairsp:KH,half:XH,hamilt:YH,HARDcy:ZH,hardcy:JH,harrcir:QH,harr:e3,hArr:t3,harrw:n3,Hat:r3,hbar:i3,Hcirc:o3,hcirc:s3,hearts:l3,heartsuit:a3,hellip:c3,hercon:u3,hfr:f3,Hfr:d3,HilbertSpace:h3,hksearow:p3,hkswarow:g3,hoarr:m3,homtht:v3,hookleftarrow:y3,hookrightarrow:b3,hopf:w3,Hopf:x3,horbar:k3,HorizontalLine:S3,hscr:_3,Hscr:T3,hslash:C3,Hstrok:E3,hstrok:A3,HumpDownHump:L3,HumpEqual:M3,hybull:N3,hyphen:O3,Iacute:P3,iacute:R3,ic:$3,Icirc:I3,icirc:D3,Icy:z3,icy:F3,Idot:H3,IEcy:B3,iecy:W3,iexcl:q3,iff:j3,ifr:U3,Ifr:V3,Igrave:G3,igrave:K3,ii:X3,iiiint:Y3,iiint:Z3,iinfin:J3,iiota:Q3,IJlig:eB,ijlig:tB,Imacr:nB,imacr:rB,image:iB,ImaginaryI:oB,imagline:sB,imagpart:lB,imath:aB,Im:cB,imof:uB,imped:fB,Implies:dB,incare:hB,in:"∈",infin:pB,infintie:gB,inodot:mB,intcal:vB,int:yB,Int:bB,integers:wB,Integral:xB,intercal:kB,Intersection:SB,intlarhk:_B,intprod:TB,InvisibleComma:CB,InvisibleTimes:EB,IOcy:AB,iocy:LB,Iogon:MB,iogon:NB,Iopf:OB,iopf:PB,Iota:RB,iota:$B,iprod:IB,iquest:DB,iscr:zB,Iscr:FB,isin:HB,isindot:BB,isinE:WB,isins:qB,isinsv:jB,isinv:UB,it:VB,Itilde:GB,itilde:KB,Iukcy:XB,iukcy:YB,Iuml:ZB,iuml:JB,Jcirc:QB,jcirc:e5,Jcy:t5,jcy:n5,Jfr:r5,jfr:i5,jmath:o5,Jopf:s5,jopf:l5,Jscr:a5,jscr:c5,Jsercy:u5,jsercy:f5,Jukcy:d5,jukcy:h5,Kappa:p5,kappa:g5,kappav:m5,Kcedil:v5,kcedil:y5,Kcy:b5,kcy:w5,Kfr:x5,kfr:k5,kgreen:S5,KHcy:_5,khcy:T5,KJcy:C5,kjcy:E5,Kopf:A5,kopf:L5,Kscr:M5,kscr:N5,lAarr:O5,Lacute:P5,lacute:R5,laemptyv:$5,lagran:I5,Lambda:D5,lambda:z5,lang:F5,Lang:H5,langd:B5,langle:W5,lap:q5,Laplacetrf:j5,laquo:U5,larrb:V5,larrbfs:G5,larr:K5,Larr:X5,lArr:Y5,larrfs:Z5,larrhk:J5,larrlp:Q5,larrpl:e8,larrsim:t8,larrtl:n8,latail:r8,lAtail:i8,lat:o8,late:s8,lates:l8,lbarr:a8,lBarr:c8,lbbrk:u8,lbrace:f8,lbrack:d8,lbrke:h8,lbrksld:p8,lbrkslu:g8,Lcaron:m8,lcaron:v8,Lcedil:y8,lcedil:b8,lceil:w8,lcub:x8,Lcy:k8,lcy:S8,ldca:_8,ldquo:T8,ldquor:C8,ldrdhar:E8,ldrushar:A8,ldsh:L8,le:M8,lE:N8,LeftAngleBracket:O8,LeftArrowBar:P8,leftarrow:R8,LeftArrow:$8,Leftarrow:I8,LeftArrowRightArrow:D8,leftarrowtail:z8,LeftCeiling:F8,LeftDoubleBracket:H8,LeftDownTeeVector:B8,LeftDownVectorBar:W8,LeftDownVector:q8,LeftFloor:j8,leftharpoondown:U8,leftharpoonup:V8,leftleftarrows:G8,leftrightarrow:K8,LeftRightArrow:X8,Leftrightarrow:Y8,leftrightarrows:Z8,leftrightharpoons:J8,leftrightsquigarrow:Q8,LeftRightVector:eW,LeftTeeArrow:tW,LeftTee:nW,LeftTeeVector:rW,leftthreetimes:iW,LeftTriangleBar:oW,LeftTriangle:sW,LeftTriangleEqual:lW,LeftUpDownVector:aW,LeftUpTeeVector:cW,LeftUpVectorBar:uW,LeftUpVector:fW,LeftVectorBar:dW,LeftVector:hW,lEg:pW,leg:gW,leq:mW,leqq:vW,leqslant:yW,lescc:bW,les:wW,lesdot:xW,lesdoto:kW,lesdotor:SW,lesg:_W,lesges:TW,lessapprox:CW,lessdot:EW,lesseqgtr:AW,lesseqqgtr:LW,LessEqualGreater:MW,LessFullEqual:NW,LessGreater:OW,lessgtr:PW,LessLess:RW,lesssim:$W,LessSlantEqual:IW,LessTilde:DW,lfisht:zW,lfloor:FW,Lfr:HW,lfr:BW,lg:WW,lgE:qW,lHar:jW,lhard:UW,lharu:VW,lharul:GW,lhblk:KW,LJcy:XW,ljcy:YW,llarr:ZW,ll:JW,Ll:QW,llcorner:e4,Lleftarrow:t4,llhard:n4,lltri:r4,Lmidot:i4,lmidot:o4,lmoustache:s4,lmoust:l4,lnap:a4,lnapprox:c4,lne:u4,lnE:f4,lneq:d4,lneqq:h4,lnsim:p4,loang:g4,loarr:m4,lobrk:v4,longleftarrow:y4,LongLeftArrow:b4,Longleftarrow:w4,longleftrightarrow:x4,LongLeftRightArrow:k4,Longleftrightarrow:S4,longmapsto:_4,longrightarrow:T4,LongRightArrow:C4,Longrightarrow:E4,looparrowleft:A4,looparrowright:L4,lopar:M4,Lopf:N4,lopf:O4,loplus:P4,lotimes:R4,lowast:$4,lowbar:I4,LowerLeftArrow:D4,LowerRightArrow:z4,loz:F4,lozenge:H4,lozf:B4,lpar:W4,lparlt:q4,lrarr:j4,lrcorner:U4,lrhar:V4,lrhard:G4,lrm:K4,lrtri:X4,lsaquo:Y4,lscr:Z4,Lscr:J4,lsh:Q4,Lsh:eq,lsim:tq,lsime:nq,lsimg:rq,lsqb:iq,lsquo:oq,lsquor:sq,Lstrok:lq,lstrok:aq,ltcc:cq,ltcir:uq,lt:fq,LT:dq,Lt:hq,ltdot:pq,lthree:gq,ltimes:mq,ltlarr:vq,ltquest:yq,ltri:bq,ltrie:wq,ltrif:xq,ltrPar:kq,lurdshar:Sq,luruhar:_q,lvertneqq:Tq,lvnE:Cq,macr:Eq,male:Aq,malt:Lq,maltese:Mq,Map:"⤅",map:Nq,mapsto:Oq,mapstodown:Pq,mapstoleft:Rq,mapstoup:$q,marker:Iq,mcomma:Dq,Mcy:zq,mcy:Fq,mdash:Hq,mDDot:Bq,measuredangle:Wq,MediumSpace:qq,Mellintrf:jq,Mfr:Uq,mfr:Vq,mho:Gq,micro:Kq,midast:Xq,midcir:Yq,mid:Zq,middot:Jq,minusb:Qq,minus:ej,minusd:tj,minusdu:nj,MinusPlus:rj,mlcp:ij,mldr:oj,mnplus:sj,models:lj,Mopf:aj,mopf:cj,mp:uj,mscr:fj,Mscr:dj,mstpos:hj,Mu:pj,mu:gj,multimap:mj,mumap:vj,nabla:yj,Nacute:bj,nacute:wj,nang:xj,nap:kj,napE:Sj,napid:_j,napos:Tj,napprox:Cj,natural:Ej,naturals:Aj,natur:Lj,nbsp:Mj,nbump:Nj,nbumpe:Oj,ncap:Pj,Ncaron:Rj,ncaron:$j,Ncedil:Ij,ncedil:Dj,ncong:zj,ncongdot:Fj,ncup:Hj,Ncy:Bj,ncy:Wj,ndash:qj,nearhk:jj,nearr:Uj,neArr:Vj,nearrow:Gj,ne:Kj,nedot:Xj,NegativeMediumSpace:Yj,NegativeThickSpace:Zj,NegativeThinSpace:Jj,NegativeVeryThinSpace:Qj,nequiv:eU,nesear:tU,nesim:nU,NestedGreaterGreater:rU,NestedLessLess:iU,NewLine:oU,nexist:sU,nexists:lU,Nfr:aU,nfr:cU,ngE:uU,nge:fU,ngeq:dU,ngeqq:hU,ngeqslant:pU,nges:gU,nGg:mU,ngsim:vU,nGt:yU,ngt:bU,ngtr:wU,nGtv:xU,nharr:kU,nhArr:SU,nhpar:_U,ni:TU,nis:CU,nisd:EU,niv:AU,NJcy:LU,njcy:MU,nlarr:NU,nlArr:OU,nldr:PU,nlE:RU,nle:$U,nleftarrow:IU,nLeftarrow:DU,nleftrightarrow:zU,nLeftrightarrow:FU,nleq:HU,nleqq:BU,nleqslant:WU,nles:qU,nless:jU,nLl:UU,nlsim:VU,nLt:GU,nlt:KU,nltri:XU,nltrie:YU,nLtv:ZU,nmid:JU,NoBreak:QU,NonBreakingSpace:e6,nopf:t6,Nopf:n6,Not:r6,not:i6,NotCongruent:o6,NotCupCap:s6,NotDoubleVerticalBar:l6,NotElement:a6,NotEqual:c6,NotEqualTilde:u6,NotExists:f6,NotGreater:d6,NotGreaterEqual:h6,NotGreaterFullEqual:p6,NotGreaterGreater:g6,NotGreaterLess:m6,NotGreaterSlantEqual:v6,NotGreaterTilde:y6,NotHumpDownHump:b6,NotHumpEqual:w6,notin:x6,notindot:k6,notinE:S6,notinva:_6,notinvb:T6,notinvc:C6,NotLeftTriangleBar:E6,NotLeftTriangle:A6,NotLeftTriangleEqual:L6,NotLess:M6,NotLessEqual:N6,NotLessGreater:O6,NotLessLess:P6,NotLessSlantEqual:R6,NotLessTilde:$6,NotNestedGreaterGreater:I6,NotNestedLessLess:D6,notni:z6,notniva:F6,notnivb:H6,notnivc:B6,NotPrecedes:W6,NotPrecedesEqual:q6,NotPrecedesSlantEqual:j6,NotReverseElement:U6,NotRightTriangleBar:V6,NotRightTriangle:G6,NotRightTriangleEqual:K6,NotSquareSubset:X6,NotSquareSubsetEqual:Y6,NotSquareSuperset:Z6,NotSquareSupersetEqual:J6,NotSubset:Q6,NotSubsetEqual:eV,NotSucceeds:tV,NotSucceedsEqual:nV,NotSucceedsSlantEqual:rV,NotSucceedsTilde:iV,NotSuperset:oV,NotSupersetEqual:sV,NotTilde:lV,NotTildeEqual:aV,NotTildeFullEqual:cV,NotTildeTilde:uV,NotVerticalBar:fV,nparallel:dV,npar:hV,nparsl:pV,npart:gV,npolint:mV,npr:vV,nprcue:yV,nprec:bV,npreceq:wV,npre:xV,nrarrc:kV,nrarr:SV,nrArr:_V,nrarrw:TV,nrightarrow:CV,nRightarrow:EV,nrtri:AV,nrtrie:LV,nsc:MV,nsccue:NV,nsce:OV,Nscr:PV,nscr:RV,nshortmid:$V,nshortparallel:IV,nsim:DV,nsime:zV,nsimeq:FV,nsmid:HV,nspar:BV,nsqsube:WV,nsqsupe:qV,nsub:jV,nsubE:UV,nsube:VV,nsubset:GV,nsubseteq:KV,nsubseteqq:XV,nsucc:YV,nsucceq:ZV,nsup:JV,nsupE:QV,nsupe:eG,nsupset:tG,nsupseteq:nG,nsupseteqq:rG,ntgl:iG,Ntilde:oG,ntilde:sG,ntlg:lG,ntriangleleft:aG,ntrianglelefteq:cG,ntriangleright:uG,ntrianglerighteq:fG,Nu:dG,nu:hG,num:pG,numero:gG,numsp:mG,nvap:vG,nvdash:yG,nvDash:bG,nVdash:wG,nVDash:xG,nvge:kG,nvgt:SG,nvHarr:_G,nvinfin:TG,nvlArr:CG,nvle:EG,nvlt:AG,nvltrie:LG,nvrArr:MG,nvrtrie:NG,nvsim:OG,nwarhk:PG,nwarr:RG,nwArr:$G,nwarrow:IG,nwnear:DG,Oacute:zG,oacute:FG,oast:HG,Ocirc:BG,ocirc:WG,ocir:qG,Ocy:jG,ocy:UG,odash:VG,Odblac:GG,odblac:KG,odiv:XG,odot:YG,odsold:ZG,OElig:JG,oelig:QG,ofcir:e9,Ofr:t9,ofr:n9,ogon:r9,Ograve:i9,ograve:o9,ogt:s9,ohbar:l9,ohm:a9,oint:c9,olarr:u9,olcir:f9,olcross:d9,oline:h9,olt:p9,Omacr:g9,omacr:m9,Omega:v9,omega:y9,Omicron:b9,omicron:w9,omid:x9,ominus:k9,Oopf:S9,oopf:_9,opar:T9,OpenCurlyDoubleQuote:C9,OpenCurlyQuote:E9,operp:A9,oplus:L9,orarr:M9,Or:N9,or:O9,ord:P9,order:R9,orderof:$9,ordf:I9,ordm:D9,origof:z9,oror:F9,orslope:H9,orv:B9,oS:W9,Oscr:q9,oscr:j9,Oslash:U9,oslash:V9,osol:G9,Otilde:K9,otilde:X9,otimesas:Y9,Otimes:Z9,otimes:J9,Ouml:Q9,ouml:eK,ovbar:tK,OverBar:nK,OverBrace:rK,OverBracket:iK,OverParenthesis:oK,para:sK,parallel:lK,par:aK,parsim:cK,parsl:uK,part:fK,PartialD:dK,Pcy:hK,pcy:pK,percnt:gK,period:mK,permil:vK,perp:yK,pertenk:bK,Pfr:wK,pfr:xK,Phi:kK,phi:SK,phiv:_K,phmmat:TK,phone:CK,Pi:EK,pi:AK,pitchfork:LK,piv:MK,planck:NK,planckh:OK,plankv:PK,plusacir:RK,plusb:$K,pluscir:IK,plus:DK,plusdo:zK,plusdu:FK,pluse:HK,PlusMinus:BK,plusmn:WK,plussim:qK,plustwo:jK,pm:UK,Poincareplane:VK,pointint:GK,popf:KK,Popf:XK,pound:YK,prap:ZK,Pr:JK,pr:QK,prcue:e7,precapprox:t7,prec:n7,preccurlyeq:r7,Precedes:i7,PrecedesEqual:o7,PrecedesSlantEqual:s7,PrecedesTilde:l7,preceq:a7,precnapprox:c7,precneqq:u7,precnsim:f7,pre:d7,prE:h7,precsim:p7,prime:g7,Prime:m7,primes:v7,prnap:y7,prnE:b7,prnsim:w7,prod:x7,Product:k7,profalar:S7,profline:_7,profsurf:T7,prop:C7,Proportional:E7,Proportion:A7,propto:L7,prsim:M7,prurel:N7,Pscr:O7,pscr:P7,Psi:R7,psi:$7,puncsp:I7,Qfr:D7,qfr:z7,qint:F7,qopf:H7,Qopf:B7,qprime:W7,Qscr:q7,qscr:j7,quaternions:U7,quatint:V7,quest:G7,questeq:K7,quot:X7,QUOT:Y7,rAarr:Z7,race:J7,Racute:Q7,racute:eX,radic:tX,raemptyv:nX,rang:rX,Rang:iX,rangd:oX,range:sX,rangle:lX,raquo:aX,rarrap:cX,rarrb:uX,rarrbfs:fX,rarrc:dX,rarr:hX,Rarr:pX,rArr:gX,rarrfs:mX,rarrhk:vX,rarrlp:yX,rarrpl:bX,rarrsim:wX,Rarrtl:xX,rarrtl:kX,rarrw:SX,ratail:_X,rAtail:TX,ratio:CX,rationals:EX,rbarr:AX,rBarr:LX,RBarr:MX,rbbrk:NX,rbrace:OX,rbrack:PX,rbrke:RX,rbrksld:$X,rbrkslu:IX,Rcaron:DX,rcaron:zX,Rcedil:FX,rcedil:HX,rceil:BX,rcub:WX,Rcy:qX,rcy:jX,rdca:UX,rdldhar:VX,rdquo:GX,rdquor:KX,rdsh:XX,real:YX,realine:ZX,realpart:JX,reals:QX,Re:eY,rect:tY,reg:nY,REG:rY,ReverseElement:iY,ReverseEquilibrium:oY,ReverseUpEquilibrium:sY,rfisht:lY,rfloor:aY,rfr:cY,Rfr:uY,rHar:fY,rhard:dY,rharu:hY,rharul:pY,Rho:gY,rho:mY,rhov:vY,RightAngleBracket:yY,RightArrowBar:bY,rightarrow:wY,RightArrow:xY,Rightarrow:kY,RightArrowLeftArrow:SY,rightarrowtail:_Y,RightCeiling:TY,RightDoubleBracket:CY,RightDownTeeVector:EY,RightDownVectorBar:AY,RightDownVector:LY,RightFloor:MY,rightharpoondown:NY,rightharpoonup:OY,rightleftarrows:PY,rightleftharpoons:RY,rightrightarrows:$Y,rightsquigarrow:IY,RightTeeArrow:DY,RightTee:zY,RightTeeVector:FY,rightthreetimes:HY,RightTriangleBar:BY,RightTriangle:WY,RightTriangleEqual:qY,RightUpDownVector:jY,RightUpTeeVector:UY,RightUpVectorBar:VY,RightUpVector:GY,RightVectorBar:KY,RightVector:XY,ring:YY,risingdotseq:ZY,rlarr:JY,rlhar:QY,rlm:eZ,rmoustache:tZ,rmoust:nZ,rnmid:rZ,roang:iZ,roarr:oZ,robrk:sZ,ropar:lZ,ropf:aZ,Ropf:cZ,roplus:uZ,rotimes:fZ,RoundImplies:dZ,rpar:hZ,rpargt:pZ,rppolint:gZ,rrarr:mZ,Rrightarrow:vZ,rsaquo:yZ,rscr:bZ,Rscr:wZ,rsh:xZ,Rsh:kZ,rsqb:SZ,rsquo:_Z,rsquor:TZ,rthree:CZ,rtimes:EZ,rtri:AZ,rtrie:LZ,rtrif:MZ,rtriltri:NZ,RuleDelayed:OZ,ruluhar:PZ,rx:RZ,Sacute:$Z,sacute:IZ,sbquo:DZ,scap:zZ,Scaron:FZ,scaron:HZ,Sc:BZ,sc:WZ,sccue:qZ,sce:jZ,scE:UZ,Scedil:VZ,scedil:GZ,Scirc:KZ,scirc:XZ,scnap:YZ,scnE:ZZ,scnsim:JZ,scpolint:QZ,scsim:eJ,Scy:tJ,scy:nJ,sdotb:rJ,sdot:iJ,sdote:oJ,searhk:sJ,searr:lJ,seArr:aJ,searrow:cJ,sect:uJ,semi:fJ,seswar:dJ,setminus:hJ,setmn:pJ,sext:gJ,Sfr:mJ,sfr:vJ,sfrown:yJ,sharp:bJ,SHCHcy:wJ,shchcy:xJ,SHcy:kJ,shcy:SJ,ShortDownArrow:_J,ShortLeftArrow:TJ,shortmid:CJ,shortparallel:EJ,ShortRightArrow:AJ,ShortUpArrow:LJ,shy:MJ,Sigma:NJ,sigma:OJ,sigmaf:PJ,sigmav:RJ,sim:$J,simdot:IJ,sime:DJ,simeq:zJ,simg:FJ,simgE:HJ,siml:BJ,simlE:WJ,simne:qJ,simplus:jJ,simrarr:UJ,slarr:VJ,SmallCircle:GJ,smallsetminus:KJ,smashp:XJ,smeparsl:YJ,smid:ZJ,smile:JJ,smt:QJ,smte:eQ,smtes:tQ,SOFTcy:nQ,softcy:rQ,solbar:iQ,solb:oQ,sol:sQ,Sopf:lQ,sopf:aQ,spades:cQ,spadesuit:uQ,spar:fQ,sqcap:dQ,sqcaps:hQ,sqcup:pQ,sqcups:gQ,Sqrt:mQ,sqsub:vQ,sqsube:yQ,sqsubset:bQ,sqsubseteq:wQ,sqsup:xQ,sqsupe:kQ,sqsupset:SQ,sqsupseteq:_Q,square:TQ,Square:CQ,SquareIntersection:EQ,SquareSubset:AQ,SquareSubsetEqual:LQ,SquareSuperset:MQ,SquareSupersetEqual:NQ,SquareUnion:OQ,squarf:PQ,squ:RQ,squf:$Q,srarr:IQ,Sscr:DQ,sscr:zQ,ssetmn:FQ,ssmile:HQ,sstarf:BQ,Star:WQ,star:qQ,starf:jQ,straightepsilon:UQ,straightphi:VQ,strns:GQ,sub:KQ,Sub:XQ,subdot:YQ,subE:ZQ,sube:JQ,subedot:QQ,submult:eee,subnE:tee,subne:nee,subplus:ree,subrarr:iee,subset:oee,Subset:see,subseteq:lee,subseteqq:aee,SubsetEqual:cee,subsetneq:uee,subsetneqq:fee,subsim:dee,subsub:hee,subsup:pee,succapprox:gee,succ:mee,succcurlyeq:vee,Succeeds:yee,SucceedsEqual:bee,SucceedsSlantEqual:wee,SucceedsTilde:xee,succeq:kee,succnapprox:See,succneqq:_ee,succnsim:Tee,succsim:Cee,SuchThat:Eee,sum:Aee,Sum:Lee,sung:Mee,sup1:Nee,sup2:Oee,sup3:Pee,sup:Ree,Sup:$ee,supdot:Iee,supdsub:Dee,supE:zee,supe:Fee,supedot:Hee,Superset:Bee,SupersetEqual:Wee,suphsol:qee,suphsub:jee,suplarr:Uee,supmult:Vee,supnE:Gee,supne:Kee,supplus:Xee,supset:Yee,Supset:Zee,supseteq:Jee,supseteqq:Qee,supsetneq:ete,supsetneqq:tte,supsim:nte,supsub:rte,supsup:ite,swarhk:ote,swarr:ste,swArr:lte,swarrow:ate,swnwar:cte,szlig:ute,Tab:fte,target:dte,Tau:hte,tau:pte,tbrk:gte,Tcaron:mte,tcaron:vte,Tcedil:yte,tcedil:bte,Tcy:wte,tcy:xte,tdot:kte,telrec:Ste,Tfr:_te,tfr:Tte,there4:Cte,therefore:Ete,Therefore:Ate,Theta:Lte,theta:Mte,thetasym:Nte,thetav:Ote,thickapprox:Pte,thicksim:Rte,ThickSpace:$te,ThinSpace:Ite,thinsp:Dte,thkap:zte,thksim:Fte,THORN:Hte,thorn:Bte,tilde:Wte,Tilde:qte,TildeEqual:jte,TildeFullEqual:Ute,TildeTilde:Vte,timesbar:Gte,timesb:Kte,times:Xte,timesd:Yte,tint:Zte,toea:Jte,topbot:Qte,topcir:ene,top:tne,Topf:nne,topf:rne,topfork:ine,tosa:one,tprime:sne,trade:lne,TRADE:ane,triangle:cne,triangledown:une,triangleleft:fne,trianglelefteq:dne,triangleq:hne,triangleright:pne,trianglerighteq:gne,tridot:mne,trie:vne,triminus:yne,TripleDot:bne,triplus:wne,trisb:xne,tritime:kne,trpezium:Sne,Tscr:_ne,tscr:Tne,TScy:Cne,tscy:Ene,TSHcy:Ane,tshcy:Lne,Tstrok:Mne,tstrok:Nne,twixt:One,twoheadleftarrow:Pne,twoheadrightarrow:Rne,Uacute:$ne,uacute:Ine,uarr:Dne,Uarr:zne,uArr:Fne,Uarrocir:Hne,Ubrcy:Bne,ubrcy:Wne,Ubreve:qne,ubreve:jne,Ucirc:Une,ucirc:Vne,Ucy:Gne,ucy:Kne,udarr:Xne,Udblac:Yne,udblac:Zne,udhar:Jne,ufisht:Qne,Ufr:ere,ufr:tre,Ugrave:nre,ugrave:rre,uHar:ire,uharl:ore,uharr:sre,uhblk:lre,ulcorn:are,ulcorner:cre,ulcrop:ure,ultri:fre,Umacr:dre,umacr:hre,uml:pre,UnderBar:gre,UnderBrace:mre,UnderBracket:vre,UnderParenthesis:yre,Union:bre,UnionPlus:wre,Uogon:xre,uogon:kre,Uopf:Sre,uopf:_re,UpArrowBar:Tre,uparrow:Cre,UpArrow:Ere,Uparrow:Are,UpArrowDownArrow:Lre,updownarrow:Mre,UpDownArrow:Nre,Updownarrow:Ore,UpEquilibrium:Pre,upharpoonleft:Rre,upharpoonright:$re,uplus:Ire,UpperLeftArrow:Dre,UpperRightArrow:zre,upsi:Fre,Upsi:Hre,upsih:Bre,Upsilon:Wre,upsilon:qre,UpTeeArrow:jre,UpTee:Ure,upuparrows:Vre,urcorn:Gre,urcorner:Kre,urcrop:Xre,Uring:Yre,uring:Zre,urtri:Jre,Uscr:Qre,uscr:eie,utdot:tie,Utilde:nie,utilde:rie,utri:iie,utrif:oie,uuarr:sie,Uuml:lie,uuml:aie,uwangle:cie,vangrt:uie,varepsilon:fie,varkappa:die,varnothing:hie,varphi:pie,varpi:gie,varpropto:mie,varr:vie,vArr:yie,varrho:bie,varsigma:wie,varsubsetneq:xie,varsubsetneqq:kie,varsupsetneq:Sie,varsupsetneqq:_ie,vartheta:Tie,vartriangleleft:Cie,vartriangleright:Eie,vBar:Aie,Vbar:Lie,vBarv:Mie,Vcy:Nie,vcy:Oie,vdash:Pie,vDash:Rie,Vdash:$ie,VDash:Iie,Vdashl:Die,veebar:zie,vee:Fie,Vee:Hie,veeeq:Bie,vellip:Wie,verbar:qie,Verbar:jie,vert:Uie,Vert:Vie,VerticalBar:Gie,VerticalLine:Kie,VerticalSeparator:Xie,VerticalTilde:Yie,VeryThinSpace:Zie,Vfr:Jie,vfr:Qie,vltri:eoe,vnsub:toe,vnsup:noe,Vopf:roe,vopf:ioe,vprop:ooe,vrtri:soe,Vscr:loe,vscr:aoe,vsubnE:coe,vsubne:uoe,vsupnE:foe,vsupne:doe,Vvdash:hoe,vzigzag:poe,Wcirc:goe,wcirc:moe,wedbar:voe,wedge:yoe,Wedge:boe,wedgeq:woe,weierp:xoe,Wfr:koe,wfr:Soe,Wopf:_oe,wopf:Toe,wp:Coe,wr:Eoe,wreath:Aoe,Wscr:Loe,wscr:Moe,xcap:Noe,xcirc:Ooe,xcup:Poe,xdtri:Roe,Xfr:$oe,xfr:Ioe,xharr:Doe,xhArr:zoe,Xi:Foe,xi:Hoe,xlarr:Boe,xlArr:Woe,xmap:qoe,xnis:joe,xodot:Uoe,Xopf:Voe,xopf:Goe,xoplus:Koe,xotime:Xoe,xrarr:Yoe,xrArr:Zoe,Xscr:Joe,xscr:Qoe,xsqcup:ese,xuplus:tse,xutri:nse,xvee:rse,xwedge:ise,Yacute:ose,yacute:sse,YAcy:lse,yacy:ase,Ycirc:cse,ycirc:use,Ycy:fse,ycy:dse,yen:hse,Yfr:pse,yfr:gse,YIcy:mse,yicy:vse,Yopf:yse,yopf:bse,Yscr:wse,yscr:xse,YUcy:kse,yucy:Sse,yuml:_se,Yuml:Tse,Zacute:Cse,zacute:Ese,Zcaron:Ase,zcaron:Lse,Zcy:Mse,zcy:Nse,Zdot:Ose,zdot:Pse,zeetrf:Rse,ZeroWidthSpace:$se,Zeta:Ise,zeta:Dse,zfr:zse,Zfr:Fse,ZHcy:Hse,zhcy:Bse,zigrarr:Wse,zopf:qse,Zopf:jse,Zscr:Use,zscr:Vse,zwj:Gse,zwnj:Kse},Xse="Á",Yse="á",Zse="Â",Jse="â",Qse="´",ele="Æ",tle="æ",nle="À",rle="à",ile="&",ole="&",sle="Å",lle="å",ale="Ã",cle="ã",ule="Ä",fle="ä",dle="¦",hle="Ç",ple="ç",gle="¸",mle="¢",vle="©",yle="©",ble="¤",wle="°",xle="÷",kle="É",Sle="é",_le="Ê",Tle="ê",Cle="È",Ele="è",Ale="Ð",Lle="ð",Mle="Ë",Nle="ë",Ole="½",Ple="¼",Rle="¾",$le=">",Ile=">",Dle="Í",zle="í",Fle="Î",Hle="î",Ble="¡",Wle="Ì",qle="ì",jle="¿",Ule="Ï",Vle="ï",Gle="«",Kle="<",Xle="<",Yle="¯",Zle="µ",Jle="·",Qle=" ",eae="¬",tae="Ñ",nae="ñ",rae="Ó",iae="ó",oae="Ô",sae="ô",lae="Ò",aae="ò",cae="ª",uae="º",fae="Ø",dae="ø",hae="Õ",pae="õ",gae="Ö",mae="ö",vae="¶",yae="±",bae="£",wae='"',xae='"',kae="»",Sae="®",_ae="®",Tae="§",Cae="­",Eae="¹",Aae="²",Lae="³",Mae="ß",Nae="Þ",Oae="þ",Pae="×",Rae="Ú",$ae="ú",Iae="Û",Dae="û",zae="Ù",Fae="ù",Hae="¨",Bae="Ü",Wae="ü",qae="Ý",jae="ý",Uae="¥",Vae="ÿ",Gae={Aacute:Xse,aacute:Yse,Acirc:Zse,acirc:Jse,acute:Qse,AElig:ele,aelig:tle,Agrave:nle,agrave:rle,amp:ile,AMP:ole,Aring:sle,aring:lle,Atilde:ale,atilde:cle,Auml:ule,auml:fle,brvbar:dle,Ccedil:hle,ccedil:ple,cedil:gle,cent:mle,copy:vle,COPY:yle,curren:ble,deg:wle,divide:xle,Eacute:kle,eacute:Sle,Ecirc:_le,ecirc:Tle,Egrave:Cle,egrave:Ele,ETH:Ale,eth:Lle,Euml:Mle,euml:Nle,frac12:Ole,frac14:Ple,frac34:Rle,gt:$le,GT:Ile,Iacute:Dle,iacute:zle,Icirc:Fle,icirc:Hle,iexcl:Ble,Igrave:Wle,igrave:qle,iquest:jle,Iuml:Ule,iuml:Vle,laquo:Gle,lt:Kle,LT:Xle,macr:Yle,micro:Zle,middot:Jle,nbsp:Qle,not:eae,Ntilde:tae,ntilde:nae,Oacute:rae,oacute:iae,Ocirc:oae,ocirc:sae,Ograve:lae,ograve:aae,ordf:cae,ordm:uae,Oslash:fae,oslash:dae,Otilde:hae,otilde:pae,Ouml:gae,ouml:mae,para:vae,plusmn:yae,pound:bae,quot:wae,QUOT:xae,raquo:kae,reg:Sae,REG:_ae,sect:Tae,shy:Cae,sup1:Eae,sup2:Aae,sup3:Lae,szlig:Mae,THORN:Nae,thorn:Oae,times:Pae,Uacute:Rae,uacute:$ae,Ucirc:Iae,ucirc:Dae,Ugrave:zae,ugrave:Fae,uml:Hae,Uuml:Bae,uuml:Wae,Yacute:qae,yacute:jae,yen:Uae,yuml:Vae},Kae="&",Xae="'",Yae=">",Zae="<",Jae='"',ux={amp:Kae,apos:Xae,gt:Yae,lt:Zae,quot:Jae};var Ts={};const Qae={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 fy;function ece(){if(fy)return Ts;fy=1;var e=Ts&&Ts.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ts,"__esModule",{value:!0});var t=e(Qae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return Ts.default=o,Ts}var dy;function hy(){if(dy)return Er;dy=1;var e=Er&&Er.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Er,"__esModule",{value:!0}),Er.decodeHTML=Er.decodeHTMLStrict=Er.decodeXML=void 0;var t=e(cx),r=e(Gae),o=e(ux),s=e(ece()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Er.decodeXML=f(o.default),Er.decodeHTMLStrict=f(t.default);function f(p){var g=h(p);return function(v){return String(v).replace(c,g)}}var d=function(p,g){return p1?g(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,R){return function(I){return I.replace(R,function(_){return M[_]}).replace(p,v)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(M){return M.replace(w,v)}Ln.escape=E;function L(M){return M.replace(o,v)}Ln.escapeUTF8=L;function P(M){return function(R){return R.replace(w,function(I){return M[I]||v(I)})}}return Ln}var my;function tce(){return my||(my=1,(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=hy(),r=gy();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=gy();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=hy();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Ad)),Ad}var Ld,vy;function nce(){if(vy)return Ld;vy=1;function e(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function t(N,O){for(var C=0;C=N.length?{done:!0}:{done:!1,value:N[k++]}},e:function(Be){throw Be},f:z}}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 B=!0,ce=!1,be;return{s:function(){C=C.call(N)},n:function(){var Be=C.next();return B=Be.done,Be},e:function(Be){ce=!0,be=Be},f:function(){try{!B&&C.return!=null&&C.return()}finally{if(ce)throw be}}}}function s(N,O){if(N){if(typeof N=="string")return c(N,O);var C=Object.prototype.toString.call(N).slice(8,-1);if(C==="Object"&&N.constructor&&(C=N.constructor.name),C==="Map"||C==="Set")return Array.from(N);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(N,O)}}function c(N,O){(O==null||O>N.length)&&(O=N.length);for(var C=0,k=new Array(O);C0?N*40+55:0,ce=O>0?O*40+55:0,be=C>0?C*40+55:0;k[z]=v([B,ce,be])}function g(N){for(var O=N.toString(16);O.length<2;)O="0"+O;return O}function v(N){var O=[],C=o(N),k;try{for(C.s();!(k=C.n()).done;){var z=k.value;O.push(g(z))}}catch(B){C.e(B)}finally{C.f()}return"#"+O.join("")}function b(N,O,C,k){var z;return O==="text"?z=I(C,k):O==="display"?z=E(N,C,k):O==="xterm256Foreground"?z=W(N,k.colors[C]):O==="xterm256Background"?z=ne(N,k.colors[C]):O==="rgb"&&(z=w(N,C)),z}function w(N,O){O=O.substring(2).slice(0,-1);var C=+O.substr(0,2),k=O.substring(5).split(";"),z=k.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return $(N,(C===38?"color:#":"background-color:#")+z)}function E(N,O,C){O=parseInt(O,10);var k={"-1":function(){return"
"},0:function(){return N.length&&L(N)},1:function(){return _(N,"b")},3:function(){return _(N,"i")},4:function(){return _(N,"u")},8:function(){return $(N,"display:none")},9:function(){return _(N,"strike")},22:function(){return $(N,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee(N,"i")},24:function(){return ee(N,"u")},39:function(){return W(N,C.fg)},49:function(){return ne(N,C.bg)},53:function(){return $(N,"text-decoration:overline")}},z;return k[O]?z=k[O]():4"}).join("")}function P(N,O){for(var C=[],k=N;k<=O;k++)C.push(k);return C}function M(N){return function(O){return(N===null||O.category!==N)&&N!=="all"}}function R(N){N=parseInt(N,10);var O=null;return N===0?O="all":N===1?O="bold":2")}function $(N,O){return _(N,"span",O)}function W(N,O){return _(N,"span","color:"+O)}function ne(N,O){return _(N,"span","background-color:"+O)}function ee(N,O){var C;if(N.slice(-1)[0]===O&&(C=N.pop()),C)return""}function Z(N,O,C){var k=!1,z=3;function B(){return""}function ce(q,Q){return C("xterm256Foreground",Q),""}function be(q,Q){return C("xterm256Background",Q),""}function Se(q){return O.newline?C("display",-1):C("text",q),""}function Be(q,Q){k=!0,Q.trim().length===0&&(Q="0"),Q=Q.trimRight(";").split(";");var he=o(Q),de;try{for(he.s();!(de=he.n()).done;){var ge=de.value;C("display",ge)}}catch(Ce){he.e(Ce)}finally{he.f()}return""}function Ae(q){return C("text",q),""}function Ke(q){return C("rgb",q),""}var je=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ce},{pattern:/^\x1b\[48;5;(\d+)m/,sub:be},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ae}];function Fe(q,Q){Q>z&&k||(k=!1,N=N.replace(q.pattern,q.sub))}var Pe=[],F=N,Y=F.length;e:for(;Y>0;){for(var re=0,le=0,ae=je.length;le/g,">").replace(/"/g,""").replace(/'/g,"'")}function oce(e,t){return t&&e.endsWith(t)}async function bp(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function wp(e){return new ice({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function sce(e){return e===null||typeof e!="function"&&typeof e!="object"}function fx(e){let t=e;if(sce(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=wA(t.stack||"",{ignoreStackEntries:[]}),t}function lce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`${t.name}: ${e.toHtml(oa(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(oa(t.stack)):r=`${t.name}: ${t.message}${e.toHtml(oa(t.stack))}`),r.length>0?r:null}function dx(e,t){const r=wp(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>lce(r,f)).filter(f=>f!=null).join("

");return c?.length&&(s.htmlError=c),o})}const Wa=jE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),po=Yo(Wa,"file"),hn=Yo(Wa,"view"),hx=Yo(Wa,"line"),px=Yo(Wa,"column"),Bs=Yo(Wa,"test");var yy={exports:{}},by;function xp(){return by||(by=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function A(Zt){return{type:Zt,style:"keyword"}}var U=A("keyword a"),me=A("keyword b"),_e=A("keyword c"),fe=A("keyword d"),Ie=A("operator"),pt={type:"atom",style:"atom"};return{if:A("if"),while:U,with:U,else:me,do:me,try:me,finally:me,return:fe,break:fe,continue:fe,new:A("new"),delete:_e,void:_e,throw:_e,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:Ie,typeof:Ie,instanceof:Ie,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:A("this"),class:A("class"),super:A("atom"),yield:_e,export:A("export"),import:A("import"),extends:_e,await:_e}})(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(A){for(var U=!1,me,_e=!1;(me=A.next())!=null;){if(!U){if(me=="/"&&!_e)return;me=="["?_e=!0:_e&&me=="]"&&(_e=!1)}U=!U&&me=="\\"}}var P,M;function R(A,U,me){return P=A,M=me,U}function I(A,U){var me=A.next();if(me=='"'||me=="'")return U.tokenize=_(me),U.tokenize(A,U);if(me=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(me=="."&&A.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(me))return R(me);if(me=="="&&A.eat(">"))return R("=>","operator");if(me=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(me))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(me=="/")return A.eat("*")?(U.tokenize=$,$(A,U)):A.eat("/")?(A.skipToEnd(),R("comment","comment")):Qn(A,U,1)?(L(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(A.eat("="),R("operator","operator",A.current()));if(me=="`")return U.tokenize=W,W(A,U);if(me=="#"&&A.peek()=="!")return A.skipToEnd(),R("meta","meta");if(me=="#"&&A.eatWhile(v))return R("variable","property");if(me=="<"&&A.match("!--")||me=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),R("comment","comment");if(w.test(me))return(me!=">"||!U.lexical||U.lexical.type!=">")&&(A.eat("=")?(me=="!"||me=="=")&&A.eat("="):/[<>*+\-|&?]/.test(me)&&(A.eat(me),me==">"&&A.eat(me))),me=="?"&&A.eat(".")?R("."):R("operator","operator",A.current());if(v.test(me)){A.eatWhile(v);var _e=A.current();if(U.lastType!="."){if(b.propertyIsEnumerable(_e)){var fe=b[_e];return R(fe.type,fe.style,_e)}if(_e=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",_e)}return R("variable","variable",_e)}}function _(A){return function(U,me){var _e=!1,fe;if(d&&U.peek()=="@"&&U.match(E))return me.tokenize=I,R("jsonld-keyword","meta");for(;(fe=U.next())!=null&&!(fe==A&&!_e);)_e=!_e&&fe=="\\";return _e||(me.tokenize=I),R("string","string")}}function $(A,U){for(var me=!1,_e;_e=A.next();){if(_e=="/"&&me){U.tokenize=I;break}me=_e=="*"}return R("comment","comment")}function W(A,U){for(var me=!1,_e;(_e=A.next())!=null;){if(!me&&(_e=="`"||_e=="$"&&A.eat("{"))){U.tokenize=I;break}me=!me&&_e=="\\"}return R("quasi","string-2",A.current())}var ne="([{}])";function ee(A,U){U.fatArrowAt&&(U.fatArrowAt=null);var me=A.string.indexOf("=>",A.start);if(!(me<0)){if(g){var _e=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,me));_e&&(me=_e.index)}for(var fe=0,Ie=!1,pt=me-1;pt>=0;--pt){var Zt=A.string.charAt(pt),Sn=ne.indexOf(Zt);if(Sn>=0&&Sn<3){if(!fe){++pt;break}if(--fe==0){Zt=="("&&(Ie=!0);break}}else if(Sn>=3&&Sn<6)++fe;else if(v.test(Zt))Ie=!0;else if(/["'\/`]/.test(Zt))for(;;--pt){if(pt==0)return;var is=A.string.charAt(pt-1);if(is==Zt&&A.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ie&&!fe){++pt;break}}Ie&&!fe&&(U.fatArrowAt=pt)}}var Z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(A,U,me,_e,fe,Ie){this.indented=A,this.column=U,this.type=me,this.prev=fe,this.info=Ie,_e!=null&&(this.align=_e)}function j(A,U){if(!p)return!1;for(var me=A.localVars;me;me=me.next)if(me.name==U)return!0;for(var _e=A.context;_e;_e=_e.prev)for(var me=_e.vars;me;me=me.next)if(me.name==U)return!0}function N(A,U,me,_e,fe){var Ie=A.cc;for(O.state=A,O.stream=fe,O.marked=null,O.cc=Ie,O.style=U,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var pt=Ie.length?Ie.pop():h?ae:re;if(pt(me,_e)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:me=="variable"&&j(A,_e)?"variable-2":U}}}var O={state:null,marked:null,cc:null};function C(){for(var A=arguments.length-1;A>=0;A--)O.cc.push(arguments[A])}function k(){return C.apply(null,arguments),!0}function z(A,U){for(var me=U;me;me=me.next)if(me.name==A)return!0;return!1}function B(A){var U=O.state;if(O.marked="def",!!p){if(U.context){if(U.lexical.info=="var"&&U.context&&U.context.block){var me=ce(A,U.context);if(me!=null){U.context=me;return}}else if(!z(A,U.localVars)){U.localVars=new Be(A,U.localVars);return}}s.globalVars&&!z(A,U.globalVars)&&(U.globalVars=new Be(A,U.globalVars))}}function ce(A,U){if(U)if(U.block){var me=ce(A,U.prev);return me?me==U.prev?U:new Se(me,U.vars,!0):null}else return z(A,U.vars)?U:new Se(U.prev,new Be(A,U.vars),!1);else return null}function be(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function Se(A,U,me){this.prev=A,this.vars=U,this.block=me}function Be(A,U){this.name=A,this.next=U}var Ae=new Be("this",new Be("arguments",null));function Ke(){O.state.context=new Se(O.state.context,O.state.localVars,!1),O.state.localVars=Ae}function je(){O.state.context=new Se(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ke.lex=je.lex=!0;function Fe(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Fe.lex=!0;function Pe(A,U){var me=function(){var _e=O.state,fe=_e.indented;if(_e.lexical.type=="stat")fe=_e.lexical.indented;else for(var Ie=_e.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;_e.lexical=new G(fe,O.stream.column(),A,null,_e.lexical,U)};return me.lex=!0,me}function F(){var A=O.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}F.lex=!0;function Y(A){function U(me){return me==A?k():A==";"||me=="}"||me==")"||me=="]"?C():k(U)}return U}function re(A,U){return A=="var"?k(Pe("vardef",U),Zo,Y(";"),F):A=="keyword a"?k(Pe("form"),q,re,F):A=="keyword b"?k(Pe("form"),re,F):A=="keyword d"?O.stream.match(/^\s*$/,!1)?k():k(Pe("stat"),he,Y(";"),F):A=="debugger"?k(Y(";")):A=="{"?k(Pe("}"),je,jt,F,Fe):A==";"?k():A=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==F&&O.state.cc.pop()(),k(Pe("form"),q,re,F,Jo)):A=="function"?k(cr):A=="for"?k(Pe("form"),je,Ga,re,Fe,F):A=="class"||g&&U=="interface"?(O.marked="keyword",k(Pe("form",A=="class"?A:U),Qo,F)):A=="variable"?g&&U=="declare"?(O.marked="keyword",k(re)):g&&(U=="module"||U=="enum"||U=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",U=="enum"?k(qe):U=="type"?k(Ka,Y("operator"),lt,Y(";")):k(Pe("form"),kn,Y("{"),Pe("}"),jt,F,F)):g&&U=="namespace"?(O.marked="keyword",k(Pe("form"),ae,re,F)):g&&U=="abstract"?(O.marked="keyword",k(re)):k(Pe("stat"),$e):A=="switch"?k(Pe("form"),q,Y("{"),Pe("}","switch"),je,jt,F,F,Fe):A=="case"?k(ae,Y(":")):A=="default"?k(Y(":")):A=="catch"?k(Pe("form"),Ke,le,re,F,Fe):A=="export"?k(Pe("stat"),es,F):A=="import"?k(Pe("stat"),$i,F):A=="async"?k(re):U=="@"?k(ae,re):C(Pe("stat"),ae,Y(";"),F)}function le(A){if(A=="(")return k(wr,Y(")"))}function ae(A,U){return Q(A,U,!1)}function D(A,U){return Q(A,U,!0)}function q(A){return A!="("?C():k(Pe(")"),he,Y(")"),F)}function Q(A,U,me){if(O.state.fatArrowAt==O.stream.start){var _e=me?ye:xe;if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Y("=>"),_e,Fe);if(A=="variable")return C(Ke,kn,Y("=>"),_e,Fe)}var fe=me?ge:de;return Z.hasOwnProperty(A)?k(fe):A=="function"?k(cr,fe):A=="class"||g&&U=="interface"?(O.marked="keyword",k(Pe("form"),vf,F)):A=="keyword c"||A=="async"?k(me?D:ae):A=="("?k(Pe(")"),he,Y(")"),F,fe):A=="operator"||A=="spread"?k(me?D:ae):A=="["?k(Pe("]"),$t,F,fe):A=="{"?Yt(ct,"}",null,fe):A=="quasi"?C(Ce,fe):A=="new"?k(J(me)):k()}function he(A){return A.match(/[;\}\)\],]/)?C():C(ae)}function de(A,U){return A==","?k(he):ge(A,U,!1)}function ge(A,U,me){var _e=me==!1?de:ge,fe=me==!1?ae:D;if(A=="=>")return k(Ke,me?ye:xe,Fe);if(A=="operator")return/\+\+|--/.test(U)||g&&U=="!"?k(_e):g&&U=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Pe(">"),ut(lt,">"),F,_e):U=="?"?k(ae,Y(":"),fe):k(fe);if(A=="quasi")return C(Ce,_e);if(A!=";"){if(A=="(")return Yt(D,")","call",_e);if(A==".")return k(Je,_e);if(A=="[")return k(Pe("]"),he,Y("]"),F,_e);if(g&&U=="as")return O.marked="keyword",k(lt,_e);if(A=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),k(fe)}}function Ce(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(Ce):k(he,Ee)}function Ee(A){if(A=="}")return O.marked="string-2",O.state.tokenize=W,k(Ce)}function xe(A){return ee(O.stream,O.state),C(A=="{"?re:ae)}function ye(A){return ee(O.stream,O.state),C(A=="{"?re:D)}function J(A){return function(U){return U=="."?k(A?oe:ue):U=="variable"&&g?k(Bn,A?ge:de):C(A?D:ae)}}function ue(A,U){if(U=="target")return O.marked="keyword",k(de)}function oe(A,U){if(U=="target")return O.marked="keyword",k(ge)}function $e(A){return A==":"?k(F,re):C(de,Y(";"),F)}function Je(A){if(A=="variable")return O.marked="property",k()}function ct(A,U){if(A=="async")return O.marked="property",k(ct);if(A=="variable"||O.style=="keyword"){if(O.marked="property",U=="get"||U=="set")return k(dt);var me;return g&&O.state.fatArrowAt==O.stream.start&&(me=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+me[0].length),k(Nt)}else{if(A=="number"||A=="string")return O.marked=d?"property":O.style+" property",k(Nt);if(A=="jsonld-keyword")return k(Nt);if(g&&be(U))return O.marked="keyword",k(ct);if(A=="[")return k(ae,Fn,Y("]"),Nt);if(A=="spread")return k(D,Nt);if(U=="*")return O.marked="keyword",k(ct);if(A==":")return C(Nt)}}function dt(A){return A!="variable"?C(Nt):(O.marked="property",k(cr))}function Nt(A){if(A==":")return k(D);if(A=="(")return C(cr)}function ut(A,U,me){function _e(fe,Ie){if(me?me.indexOf(fe)>-1:fe==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),k(function(Zt,Sn){return Zt==U||Sn==U?C():C(A)},_e)}return fe==U||Ie==U?k():me&&me.indexOf(";")>-1?C(A):k(Y(U))}return function(fe,Ie){return fe==U||Ie==U?k():C(A,_e)}}function Yt(A,U,me){for(var _e=3;_e"),lt);if(A=="quasi")return C(an,ar)}function yo(A){if(A=="=>")return k(lt)}function Xe(A){return A.match(/[\}\)\]]/)?k():A==","||A==";"?k(Xe):C(ri,Xe)}function ri(A,U){if(A=="variable"||O.style=="keyword")return O.marked="property",k(ri);if(U=="?"||A=="number"||A=="string")return k(ri);if(A==":")return k(lt);if(A=="[")return k(Y("variable"),Hr,Y("]"),ri);if(A=="(")return C(Ri,ri);if(!A.match(/[;\}\)\],]/))return k()}function an(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(an):k(lt,Pt)}function Pt(A){if(A=="}")return O.marked="string-2",O.state.tokenize=W,k(an)}function Rt(A,U){return A=="variable"&&O.stream.match(/^\s*[?:]/,!1)||U=="?"?k(Rt):A==":"?k(lt):A=="spread"?k(Rt):C(lt)}function ar(A,U){if(U=="<")return k(Pe(">"),ut(lt,">"),F,ar);if(U=="|"||A=="."||U=="&")return k(lt);if(A=="[")return k(lt,Y("]"),ar);if(U=="extends"||U=="implements")return O.marked="keyword",k(lt);if(U=="?")return k(lt,Y(":"),lt)}function Bn(A,U){if(U=="<")return k(Pe(">"),ut(lt,">"),F,ar)}function yr(){return C(lt,cn)}function cn(A,U){if(U=="=")return k(lt)}function Zo(A,U){return U=="enum"?(O.marked="keyword",k(qe)):C(kn,Fn,br,mf)}function kn(A,U){if(g&&be(U))return O.marked="keyword",k(kn);if(A=="variable")return B(U),k();if(A=="spread")return k(kn);if(A=="[")return Yt(sl,"]");if(A=="{")return Yt(Oi,"}")}function Oi(A,U){return A=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(U),k(br)):(A=="variable"&&(O.marked="property"),A=="spread"?k(kn):A=="}"?C():A=="["?k(ae,Y("]"),Y(":"),Oi):k(Y(":"),kn,br))}function sl(){return C(kn,br)}function br(A,U){if(U=="=")return k(D)}function mf(A){if(A==",")return k(Zo)}function Jo(A,U){if(A=="keyword b"&&U=="else")return k(Pe("form","else"),re,F)}function Ga(A,U){if(U=="await")return k(Ga);if(A=="(")return k(Pe(")"),ll,F)}function ll(A){return A=="var"?k(Zo,Pi):A=="variable"?k(Pi):C(Pi)}function Pi(A,U){return A==")"?k():A==";"?k(Pi):U=="in"||U=="of"?(O.marked="keyword",k(ae,Pi)):C(ae,Pi)}function cr(A,U){if(U=="*")return O.marked="keyword",k(cr);if(A=="variable")return B(U),k(cr);if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Bt,re,Fe);if(g&&U=="<")return k(Pe(">"),ut(yr,">"),F,cr)}function Ri(A,U){if(U=="*")return O.marked="keyword",k(Ri);if(A=="variable")return B(U),k(Ri);if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Bt,Fe);if(g&&U=="<")return k(Pe(">"),ut(yr,">"),F,Ri)}function Ka(A,U){if(A=="keyword"||A=="variable")return O.marked="type",k(Ka);if(U=="<")return k(Pe(">"),ut(yr,">"),F)}function wr(A,U){return U=="@"&&k(ae,wr),A=="spread"?k(wr):g&&be(U)?(O.marked="keyword",k(wr)):g&&A=="this"?k(Fn,br):C(kn,Fn,br)}function vf(A,U){return A=="variable"?Qo(A,U):xr(A,U)}function Qo(A,U){if(A=="variable")return B(U),k(xr)}function xr(A,U){if(U=="<")return k(Pe(">"),ut(yr,">"),F,xr);if(U=="extends"||U=="implements"||g&&A==",")return U=="implements"&&(O.marked="keyword"),k(g?lt:ae,xr);if(A=="{")return k(Pe("}"),kr,F)}function kr(A,U){if(A=="async"||A=="variable"&&(U=="static"||U=="get"||U=="set"||g&&be(U))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",k(kr);if(A=="variable"||O.style=="keyword")return O.marked="property",k(bo,kr);if(A=="number"||A=="string")return k(bo,kr);if(A=="[")return k(ae,Fn,Y("]"),bo,kr);if(U=="*")return O.marked="keyword",k(kr);if(g&&A=="(")return C(Ri,kr);if(A==";"||A==",")return k(kr);if(A=="}")return k();if(U=="@")return k(ae,kr)}function bo(A,U){if(U=="!"||U=="?")return k(bo);if(A==":")return k(lt,br);if(U=="=")return k(D);var me=O.state.lexical.prev,_e=me&&me.info=="interface";return C(_e?Ri:cr)}function es(A,U){return U=="*"?(O.marked="keyword",k(rs,Y(";"))):U=="default"?(O.marked="keyword",k(ae,Y(";"))):A=="{"?k(ut(ts,"}"),rs,Y(";")):C(re)}function ts(A,U){if(U=="as")return O.marked="keyword",k(Y("variable"));if(A=="variable")return C(D,ts)}function $i(A){return A=="string"?k():A=="("?C(ae):A=="."?C(de):C(ns,Br,rs)}function ns(A,U){return A=="{"?Yt(ns,"}"):(A=="variable"&&B(U),U=="*"&&(O.marked="keyword"),k(al))}function Br(A){if(A==",")return k(ns,Br)}function al(A,U){if(U=="as")return O.marked="keyword",k(ns)}function rs(A,U){if(U=="from")return O.marked="keyword",k(ae)}function $t(A){return A=="]"?k():C(ut(D,"]"))}function qe(){return C(Pe("form"),kn,Y("{"),Pe("}"),ut(ii,"}"),F,F)}function ii(){return C(kn,br)}function cl(A,U){return A.lastType=="operator"||A.lastType==","||w.test(U.charAt(0))||/[,.]/.test(U.charAt(0))}function Qn(A,U,me){return U.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(U.lastType)||U.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(me||0)))}return{startState:function(A){var U={tokenize:I,lastType:"sof",cc:[],lexical:new G((A||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:A||0};return s.globalVars&&typeof s.globalVars=="object"&&(U.globalVars=s.globalVars),U},token:function(A,U){if(A.sol()&&(U.lexical.hasOwnProperty("align")||(U.lexical.align=!1),U.indented=A.indentation(),ee(A,U)),U.tokenize!=$&&A.eatSpace())return null;var me=U.tokenize(A,U);return P=="comment"?me:(U.lastType=P=="operator"&&(M=="++"||M=="--")?"incdec":P,N(U,me,P,M,A))},indent:function(A,U){if(A.tokenize==$||A.tokenize==W)return r.Pass;if(A.tokenize!=I)return 0;var me=U&&U.charAt(0),_e=A.lexical,fe;if(!/^\s*else\b/.test(U))for(var Ie=A.cc.length-1;Ie>=0;--Ie){var pt=A.cc[Ie];if(pt==F)_e=_e.prev;else if(pt!=Jo&&pt!=Fe)break}for(;(_e.type=="stat"||_e.type=="form")&&(me=="}"||(fe=A.cc[A.cc.length-1])&&(fe==de||fe==ge)&&!/^[,\.=+\-*:?[\(]/.test(U));)_e=_e.prev;f&&_e.type==")"&&_e.prev.type=="stat"&&(_e=_e.prev);var Zt=_e.type,Sn=me==Zt;return Zt=="vardef"?_e.indented+(A.lastType=="operator"||A.lastType==","?_e.info.length+1:0):Zt=="form"&&me=="{"?_e.indented:Zt=="form"?_e.indented+c:Zt=="stat"?_e.indented+(cl(A,U)?f||c:0):_e.info=="switch"&&!Sn&&s.doubleIndentSwitch!=!1?_e.indented+(/^(?:case|default)\b/.test(U)?c:2*c):_e.align?_e.column+(Sn?0:1):_e.indented+(Sn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Qn,skipExpression:function(A){N(A,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),yy.exports}xp();var wy={exports:{}},xy;function kp(){return xy||(xy=1,(function(e,t){(function(r){r(vo())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var g in p)h[g]=p[g];for(var g in f)h[g]=f[g];var v,b;function w(k,z){function B(Se){return z.tokenize=Se,Se(k,z)}var ce=k.next();if(ce=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(P("atom","]]>")):null:k.match("--")?B(P("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(M(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),z.tokenize=P("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",z.tokenize=E,"tag bracket");if(ce=="&"){var be;return k.eat("#")?k.eat("x")?be=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):be=k.eatWhile(/[\d]/)&&k.eat(";"):be=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),be?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function E(k,z){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return z.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){z.tokenize=w,z.state=W,z.tagName=z.tagStart=null;var ce=z.tokenize(k,z);return ce?ce+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=L(B),z.stringStartCol=k.column(),z.tokenize(k,z)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(k){var z=function(B,ce){for(;!B.eol();)if(B.next()==k){ce.tokenize=E;break}return"string"};return z.isInAttribute=!0,z}function P(k,z){return function(B,ce){for(;!B.eol();){if(B.match(z)){ce.tokenize=w;break}B.next()}return k}}function M(k){return function(z,B){for(var ce;(ce=z.next())!=null;){if(ce=="<")return B.tokenize=M(k+1),B.tokenize(z,B);if(ce==">")if(k==1){B.tokenize=w;break}else return B.tokenize=M(k-1),B.tokenize(z,B)}return"meta"}}function R(k){return k&&k.toLowerCase()}function I(k,z,B){this.prev=k.context,this.tagName=z||"",this.indent=k.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(z)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function _(k){k.context&&(k.context=k.context.prev)}function $(k,z){for(var B;;){if(!k.context||(B=k.context.tagName,!h.contextGrabbers.hasOwnProperty(R(B))||!h.contextGrabbers[R(B)].hasOwnProperty(R(z))))return;_(k)}}function W(k,z,B){return k=="openTag"?(B.tagStart=z.column(),ne):k=="closeTag"?ee:W}function ne(k,z,B){return k=="word"?(B.tagName=z.current(),b="tag",j):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",j(k,z,B)):(b="error",ne)}function ee(k,z,B){if(k=="word"){var ce=z.current();return B.context&&B.context.tagName!=ce&&h.implicitlyClosed.hasOwnProperty(R(B.context.tagName))&&_(B),B.context&&B.context.tagName==ce||h.matchClosing===!1?(b="tag",Z):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Z(k,z,B)):(b="error",G)}function Z(k,z,B){return k!="endTag"?(b="error",Z):(_(B),W)}function G(k,z,B){return b="error",Z(k,z,B)}function j(k,z,B){if(k=="word")return b="attribute",N;if(k=="endTag"||k=="selfcloseTag"){var ce=B.tagName,be=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(ce))?$(B,ce):($(B,ce),B.context=new I(B,ce,be==B.indented)),W}return b="error",j}function N(k,z,B){return k=="equals"?O:(h.allowMissing||(b="error"),j(k,z,B))}function O(k,z,B){return k=="string"?C:k=="word"&&h.allowUnquoted?(b="string",j):(b="error",j(k,z,B))}function C(k,z,B){return k=="string"?C:j(k,z,B)}return{startState:function(k){var z={tokenize:w,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(z.baseIndent=k),z},token:function(k,z){if(!z.tagName&&k.sol()&&(z.indented=k.indentation()),k.eatSpace())return null;v=null;var B=z.tokenize(k,z);return(B||v)&&B!="comment"&&(b=null,z.state=z.state(v||B,k,z),b&&(B=b=="error"?B+" error":b)),B},indent:function(k,z,B){var ce=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ce&&ce.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/$/,blockCommentStart:"",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==O&&(k.state=j)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var z=[],B=k.context;B;B=B.prev)z.push(B.tagName);return z.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),wy.exports}kp();var ky={exports:{}},Sy={exports:{}},_y;function ace(){return _y||(_y=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineMode("css",function(G,j){var N=j.inline;j.propertyKeywords||(j=r.resolveMode("text/css"));var O=G.indentUnit,C=j.tokenHooks,k=j.documentTypes||{},z=j.mediaTypes||{},B=j.mediaFeatures||{},ce=j.mediaValueKeywords||{},be=j.propertyKeywords||{},Se=j.nonStandardPropertyKeywords||{},Be=j.fontProperties||{},Ae=j.counterDescriptors||{},Ke=j.colorKeywords||{},je=j.valueKeywords||{},Fe=j.allowNested,Pe=j.lineComment,F=j.supportsAtComponent===!0,Y=G.highlightNonStandardPropertyKeywords!==!1,re,le;function ae(J,ue){return re=ue,J}function D(J,ue){var oe=J.next();if(C[oe]){var $e=C[oe](J,ue);if($e!==!1)return $e}if(oe=="@")return J.eatWhile(/[\w\\\-]/),ae("def",J.current());if(oe=="="||(oe=="~"||oe=="|")&&J.eat("="))return ae(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=q(oe),ue.tokenize(J,ue);if(oe=="#")return J.eatWhile(/[\w\\\-]/),ae("atom","hash");if(oe=="!")return J.match(/^\s*\w*/),ae("keyword","important");if(/\d/.test(oe)||oe=="."&&J.eat(/\d/))return J.eatWhile(/[\w.%]/),ae("number","unit");if(oe==="-"){if(/[\d.]/.test(J.peek()))return J.eatWhile(/[\w.%]/),ae("number","unit");if(J.match(/^-[\w\\\-]*/))return J.eatWhile(/[\w\\\-]/),J.match(/^\s*:/,!1)?ae("variable-2","variable-definition"):ae("variable-2","variable");if(J.match(/^\w+-/))return ae("meta","meta")}else return/[,+>*\/]/.test(oe)?ae(null,"select-op"):oe=="."&&J.match(/^-?[_a-z][_a-z0-9-]*/i)?ae("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ae(null,oe):J.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(J.current())&&(ue.tokenize=Q),ae("variable callee","variable")):/[\w\\\-]/.test(oe)?(J.eatWhile(/[\w\\\-]/),ae("property","word")):ae(null,null)}function q(J){return function(ue,oe){for(var $e=!1,Je;(Je=ue.next())!=null;){if(Je==J&&!$e){J==")"&&ue.backUp(1);break}$e=!$e&&Je=="\\"}return(Je==J||!$e&&J!=")")&&(oe.tokenize=null),ae("string","string")}}function Q(J,ue){return J.next(),J.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=q(")"),ae(null,"(")}function he(J,ue,oe){this.type=J,this.indent=ue,this.prev=oe}function de(J,ue,oe,$e){return J.context=new he(oe,ue.indentation()+($e===!1?0:O),J.context),oe}function ge(J){return J.context.prev&&(J.context=J.context.prev),J.context.type}function Ce(J,ue,oe){return ye[oe.context.type](J,ue,oe)}function Ee(J,ue,oe,$e){for(var Je=$e||1;Je>0;Je--)oe.context=oe.context.prev;return Ce(J,ue,oe)}function xe(J){var ue=J.current().toLowerCase();je.hasOwnProperty(ue)?le="atom":Ke.hasOwnProperty(ue)?le="keyword":le="variable"}var ye={};return ye.top=function(J,ue,oe){if(J=="{")return de(oe,ue,"block");if(J=="}"&&oe.context.prev)return ge(oe);if(F&&/@component/i.test(J))return de(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(J))return de(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(J))return de(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(J))return oe.stateArg=J,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(J))return"keyframes";if(J&&J.charAt(0)=="@")return de(oe,ue,"at");if(J=="hash")le="builtin";else if(J=="word")le="tag";else{if(J=="variable-definition")return"maybeprop";if(J=="interpolation")return de(oe,ue,"interpolation");if(J==":")return"pseudo";if(Fe&&J=="(")return de(oe,ue,"parens")}return oe.context.type},ye.block=function(J,ue,oe){if(J=="word"){var $e=ue.current().toLowerCase();return be.hasOwnProperty($e)?(le="property","maybeprop"):Se.hasOwnProperty($e)?(le=Y?"string-2":"property","maybeprop"):Fe?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return J=="meta"?"block":!Fe&&(J=="hash"||J=="qualifier")?(le="error","block"):ye.top(J,ue,oe)},ye.maybeprop=function(J,ue,oe){return J==":"?de(oe,ue,"prop"):Ce(J,ue,oe)},ye.prop=function(J,ue,oe){if(J==";")return ge(oe);if(J=="{"&&Fe)return de(oe,ue,"propBlock");if(J=="}"||J=="{")return Ee(J,ue,oe);if(J=="(")return de(oe,ue,"parens");if(J=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(J=="word")xe(ue);else if(J=="interpolation")return de(oe,ue,"interpolation");return"prop"},ye.propBlock=function(J,ue,oe){return J=="}"?ge(oe):J=="word"?(le="property","maybeprop"):oe.context.type},ye.parens=function(J,ue,oe){return J=="{"||J=="}"?Ee(J,ue,oe):J==")"?ge(oe):J=="("?de(oe,ue,"parens"):J=="interpolation"?de(oe,ue,"interpolation"):(J=="word"&&xe(ue),"parens")},ye.pseudo=function(J,ue,oe){return J=="meta"?"pseudo":J=="word"?(le="variable-3",oe.context.type):Ce(J,ue,oe)},ye.documentTypes=function(J,ue,oe){return J=="word"&&k.hasOwnProperty(ue.current())?(le="tag",oe.context.type):ye.atBlock(J,ue,oe)},ye.atBlock=function(J,ue,oe){if(J=="(")return de(oe,ue,"atBlock_parens");if(J=="}"||J==";")return Ee(J,ue,oe);if(J=="{")return ge(oe)&&de(oe,ue,Fe?"block":"top");if(J=="interpolation")return de(oe,ue,"interpolation");if(J=="word"){var $e=ue.current().toLowerCase();$e=="only"||$e=="not"||$e=="and"||$e=="or"?le="keyword":z.hasOwnProperty($e)?le="attribute":B.hasOwnProperty($e)?le="property":ce.hasOwnProperty($e)?le="keyword":be.hasOwnProperty($e)?le="property":Se.hasOwnProperty($e)?le=Y?"string-2":"property":je.hasOwnProperty($e)?le="atom":Ke.hasOwnProperty($e)?le="keyword":le="error"}return oe.context.type},ye.atComponentBlock=function(J,ue,oe){return J=="}"?Ee(J,ue,oe):J=="{"?ge(oe)&&de(oe,ue,Fe?"block":"top",!1):(J=="word"&&(le="error"),oe.context.type)},ye.atBlock_parens=function(J,ue,oe){return J==")"?ge(oe):J=="{"||J=="}"?Ee(J,ue,oe,2):ye.atBlock(J,ue,oe)},ye.restricted_atBlock_before=function(J,ue,oe){return J=="{"?de(oe,ue,"restricted_atBlock"):J=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(J,ue,oe)},ye.restricted_atBlock=function(J,ue,oe){return J=="}"?(oe.stateArg=null,ge(oe)):J=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ae.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},ye.keyframes=function(J,ue,oe){return J=="word"?(le="variable","keyframes"):J=="{"?de(oe,ue,"top"):Ce(J,ue,oe)},ye.at=function(J,ue,oe){return J==";"?ge(oe):J=="{"||J=="}"?Ee(J,ue,oe):(J=="word"?le="tag":J=="hash"&&(le="builtin"),"at")},ye.interpolation=function(J,ue,oe){return J=="}"?ge(oe):J=="{"||J==";"?Ee(J,ue,oe):(J=="word"?le="variable":J!="variable"&&J!="("&&J!=")"&&(le="error"),"interpolation")},{startState:function(J){return{tokenize:null,state:N?"block":"top",stateArg:null,context:new he(N?"block":"top",J||0,null)}},token:function(J,ue){if(!ue.tokenize&&J.eatSpace())return null;var oe=(ue.tokenize||D)(J,ue);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(ue.state=ye[ue.state](re,J,ue)),le},indent:function(J,ue){var oe=J.context,$e=ue&&ue.charAt(0),Je=oe.indent;return oe.type=="prop"&&($e=="}"||$e==")")&&(oe=oe.prev),oe.prev&&($e=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,Je=oe.indent):($e==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||$e=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(Je=Math.max(0,oe.indent-O))),Je},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Pe,fold:"brace"}});function o(G){for(var j={},N=0;N-1?v.backUp(E.length-L):E.match(/<\/?$/)&&(v.backUp(E.length),v.match(b,!1)||v.match(E)),w}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var w=v.match(f(b));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"","i")}function p(v,b){for(var w in v)for(var E=b[w]||(b[w]=[]),L=v[w],P=L.length-1;P>=0;P--)E.unshift(L[P])}function g(v,b){for(var w=0;w=0;M--)E.script.unshift(["type",P[M].matches,P[M].mode]);function R(I,_){var $=w.token(I,_.htmlState),W=/\btag\b/.test($),ne;if(W&&!/[<>\s\/]/.test(I.current())&&(ne=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(ne))_.inTag=ne+" ";else if(_.inTag&&W&&/>$/.test(I.current())){var ee=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var Z=I.current()==">"&&g(E[ee[1]],ee[2]),G=r.getMode(v,Z),j=h(ee[1],!0),N=h(ee[1],!1);_.token=function(O,C){return O.match(j,!1)?(C.token=R,C.localState=C.localMode=null,null):s(O,N,C.localMode.token(O,C.localState))},_.localMode=G,_.localState=r.startState(G,w.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=I.current(),I.eol()&&(_.inTag+=" "));return $}return{startState:function(){var I=r.startState(w);return{token:R,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var _;return I.localState&&(_=r.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:_,htmlState:r.copyState(w,I.htmlState)}},token:function(I,_){return _.token(I,_)},indent:function(I,_,$){return!I.localMode||/^\s*<\//.test(_)?w.indent(I.htmlState,_,$):I.localMode.indent?I.localMode.indent(I.localState,_,$):r.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||w}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),ky.exports}cce();var Cy={exports:{}},Ey;function uce(){return Ey||(Ey=1,(function(e,t){(function(r){r(vo(),kp(),xp())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var L=d.indent(w,"","");return w.tagName=E,L}function g(w,E){return E.context.mode==d?v(w,E,E.context):b(w,E,E.context)}function v(w,E,L){if(L.depth==2)return w.match(/^.*?\*\//)?L.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(L.state);var P=p(L.state),M=L.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?P-=c.indentUnit:L.prev.state.lexical&&(P=L.prev.state.lexical.indented)}else L.depth==1&&(P+=c.indentUnit);return E.context=new o(r.startState(h,P),h,0,E.context),null}if(L.depth==1){if(w.peek()=="<")return d.skipAttribute(L.state),E.context=new o(r.startState(d,p(L.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return L.depth=2,g(w,E)}var R=d.token(w,L.state),I=w.current(),_;return/\btag\b/.test(R)?/>$/.test(I)?L.state.context?L.depth=0:E.context=E.context.prev:/^-1&&w.backUp(I.length-_),R}function b(w,E,L){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,L.state))return E.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,E.context),h.skipExpression(L.state),null;var P=h.token(w,L.state);if(!P&&L.depth!=null){var M=w.current();M=="{"?L.depth++:M=="}"&&--L.depth==0&&(E.context=E.context.prev)}return P}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,E,L){return w.context.mode.indent(w.context.state,E,L)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Cy.exports}uce();var Ay={exports:{}},Ly;function fce(){return Ly||(Ly=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineOption("placeholder","",function(p,g,v){var b=v&&v!=r.Init;if(g&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!g&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Ay.exports}fce();var My={exports:{}},Ny;function dce(){return Ny||(Ny=1,(function(e,t){(function(r){r(vo())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",w=v[b],E=p.pos;function L(){r.off(document,"mousemove",P),r.off(document,"mouseup",L)}function P(M){if(M.which!=1)return L();p.moveTo(E+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",P),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientXb.right?1:0:w=v.clientYb.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var g=this.screen*(this.size/this.total);gf.clientWidth+1,g=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(g?h:0)-f.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),My.exports}dce();const Nn=Ft();function hce(e,t,r={}){const o=NL.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Ia(()=>{Nn.value=void 0}),Uu(o)}async function gx(e){_a({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function pce(e,t){_a({file:e,column:t.column-1,line:t.line,view:"editor",test:Bs.value})}function gce(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return bp(s,r,o);_a({file:e.file.id,column:o-1,line:r,view:"editor",test:Bs.value})}const pr=Ge(),Ws=Ge(!0),go=Ge(!1),Cu=Ge(!0),Ns=ke(()=>ei.value?.coverage),mh=ke(()=>Ns.value?.enabled),Os=ke(()=>mh.value&&!!Ns.value.htmlReporter),qs=sf("vitest-ui_splitpanes-mainSizes",[33,67]),co=sf("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:qs.value[0],details:{size:qs.value[1],browser:co.value[0],main:co.value[1]}}),Oy=ke(()=>{if(Os.value){const e=Ns.value.reportsDirectory.lastIndexOf("/"),t=Ns.value.htmlReporter?.subdir;return t?`/${Ns.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${Ns.value.reportsDirectory.slice(e+1)}/index.html`}});xt(uf,e=>{Cu.value=e==="running"},{immediate:!0});function mce(){const e=po.value;if(e&&e.length>0){const t=mr(e);t?(pr.value=t,Ws.value=!1,go.value=!1):_E(()=>ft.state.getFiles(),()=>{pr.value=mr(e),Ws.value=!1,go.value=!1})}return Ws}function Eu(e){Ws.value=e,go.value=!1,e&&(pr.value=void 0,po.value="")}function _a({file:e,line:t,view:r,test:o,column:s}){po.value=e,hx.value=t,px.value=s,hn.value=r,Bs.value=o,pr.value=mr(e),Eu(!1)}function vce(e){e.type==="test"?hn.value==="editor"?gx(e):_a({file:e.file.id,line:null,column:null,view:hn.value,test:e.id}):_a({file:e.file.id,test:null,line:null,view:hn.value,column:null})}function yce(){go.value=!0,Ws.value=!1,pr.value=void 0,po.value=""}function bce(){At.details.browser=100,At.details.main=0,co.value=[100,0]}function mx(){if(Zn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function wce(){At.details.browser=mx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main]}function xce(){At.navigation=33,At.details.size=67,qs.value=[33,67]}function vx(){At.details.main!==0&&(At.details.browser=mx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main])}const kce={setCurrentFileId(e){po.value=e,pr.value=mr(e),Eu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Zn?.provider==="webdriverio"&&vx(),await new Promise(r=>requestAnimationFrame(r))}},Sce=location.port,_ce=[location.hostname,Sce].filter(Boolean).join(":"),Tce=`${location.protocol==="https:"?"wss:":"ws:"}//${_ce}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,gr=!!window.METADATA_PATH;var rr=Uint8Array,Ps=Uint16Array,Cce=Int32Array,yx=new rr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),bx=new rr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ece=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wx=function(e,t){for(var r=new Ps(31),o=0;o<31;++o)r[o]=t+=1<>1|(Lt&21845)<<1;Vi=(Vi&52428)>>2|(Vi&13107)<<2,Vi=(Vi&61680)>>4|(Vi&3855)<<4,vh[Lt]=((Vi&65280)>>8|(Vi&255)<<8)>>1}var sa=(function(e,t,r){for(var o=e.length,s=0,c=new Ps(t);s>h]=p}else for(d=new Ps(o),s=0;s>15-e[s]);return d}),qa=new rr(288);for(var Lt=0;Lt<144;++Lt)qa[Lt]=8;for(var Lt=144;Lt<256;++Lt)qa[Lt]=9;for(var Lt=256;Lt<280;++Lt)qa[Lt]=7;for(var Lt=280;Lt<288;++Lt)qa[Lt]=8;var Sx=new rr(32);for(var Lt=0;Lt<32;++Lt)Sx[Lt]=5;var Nce=sa(qa,9,1),Oce=sa(Sx,5,1),Md=function(e){for(var t=e[0],r=1;rt&&(t=e[r]);return t},Ar=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Nd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Pce=function(e){return(e+7)/8|0},_x=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new rr(e.subarray(t,r))},Rce=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Un=function(e,t,r){var o=new Error(t||Rce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Un),!r)throw o;return o},Sp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(ae){var D=r.length;if(ae>D){var q=new rr(Math.max(D*2,ae));q.set(r),r=q}},g=t.f||0,v=t.p||0,b=t.b||0,w=t.l,E=t.d,L=t.m,P=t.n,M=s*8;do{if(!w){g=Ar(e,v,1);var R=Ar(e,v+1,3);if(v+=3,R)if(R==1)w=Nce,E=Oce,L=9,P=5;else if(R==2){var W=Ar(e,v,31)+257,ne=Ar(e,v+10,15)+4,ee=W+Ar(e,v+5,31)+1;v+=14;for(var Z=new rr(ee),G=new rr(19),j=0;j>4;if(I<16)Z[j++]=I;else{var z=0,B=0;for(I==16?(B=3+Ar(e,v,3),v+=2,z=Z[j-1]):I==17?(B=3+Ar(e,v,7),v+=3):I==18&&(B=11+Ar(e,v,127),v+=7);B--;)Z[j++]=z}}var ce=Z.subarray(0,W),be=Z.subarray(W);L=Md(ce),P=Md(be),w=sa(ce,L,1),E=sa(be,P,1)}else Un(1);else{var I=Pce(v)+4,_=e[I-4]|e[I-3]<<8,$=I+_;if($>s){h&&Un(0);break}d&&p(b+_),r.set(e.subarray(I,$),b),t.b=b+=_,t.p=v=$*8,t.f=g;continue}if(v>M){h&&Un(0);break}}d&&p(b+131072);for(var Se=(1<>4;if(v+=z&15,v>M){h&&Un(0);break}if(z||Un(2),Ke<256)r[b++]=Ke;else if(Ke==256){Ae=v,w=null;break}else{var je=Ke-254;if(Ke>264){var j=Ke-257,Fe=yx[j];je=Ar(e,v,(1<>4;Pe||Un(3),v+=Pe&15;var be=Mce[F];if(F>3){var Fe=bx[F];be+=Nd(e,v)&(1<M){h&&Un(0);break}d&&p(b+131072);var Y=b+je;if(b>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},zce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Un(6,"invalid zlib data"),(e[1]>>5&1)==1&&Un(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Fce(e,t){return Sp(e,{i:2},t,t)}function Hce(e,t){var r=Ice(e);return r+8>e.length&&Un(6,"invalid gzip data"),Sp(e.subarray(r,-8),{i:2},new rr(Dce(e)),t)}function Bce(e,t){return Sp(e.subarray(zce(e),-4),{i:2},t,t)}function Wce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Hce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Fce(e,t):Bce(e,t)}var yh=typeof TextDecoder<"u"&&new TextDecoder,qce=0;try{yh.decode($ce,{stream:!0}),qce=1}catch{}var jce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:_x(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Py(e,t){var r;if(yh)return yh.decode(e);var o=jce(e),s=o.s,r=o.r;return r.length&&Un(8),s}const Od=()=>{},dn=()=>Promise.resolve();function Uce(){const e=ir({state:new Xw,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:dn,getTransformResult:dn,onDone:Od,onTaskUpdate:Od,writeFile:dn,rerun:dn,rerunTask:dn,updateSnapshot:dn,resolveSnapshotPath:dn,snapshotSaved:dn,onAfterSuiteRun:dn,onCancel:dn,getCountOfFailedTests:()=>0,sendLog:dn,resolveSnapshotRawPath:dn,readSnapshotFile:dn,saveSnapshotFile:dn,readTestFile:async d=>t.sources[d],removeSnapshotFile:dn,onUnhandledError:Od,saveTestFile:dn,getProvidedContext:()=>({}),getTestFiles:dn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=new Uint8Array(await d.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Py(Wce(h));t=fh(g)}else t=fh(Py(h));const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return gr?Uce():XA(Tce,{reactive:(t,r)=>r==="state"?ir(t):Ft(t),handlers:{onTestAnnotate(t,r){Oe.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Oe.recordTestArtifact(t,r)},onTaskUpdate(t,r){Oe.resumeRun(t,r),uf.value="running"},onSpecsCollected(t,r){Oe.startTime=r||performance.now()},onFinished(t,r,o,s){Oe.endRun(s),eo.value=(r||[]).map(fx)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),ei=Ft({}),Ho=Ge("CONNECTING"),Gt=ke(()=>{const e=po.value;return e?mr(e):void 0}),Tx=ke(()=>gp(Gt.value).map(e=>e?.logs||[]).flat()||[]);function mr(e){const t=ft.state.idMap.get(e);return t||void 0}const Vce=ke(()=>Ho.value==="OPEN"),Pd=ke(()=>Ho.value==="CONNECTING");ke(()=>Ho.value==="CLOSED");function Gce(){return _p(ft.state.getFiles())}function Cx(e){delete e.result;const t=Oe.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ha(e)))for(const r of e.tasks)Cx(r)}function Kce(e){const t=Oe.nodes;e.forEach(r=>{delete r.result,gp(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,In(o)&&(o.collectDuration=void 0))})}function _p(e){return Kce(e),Oe.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function Xce(e){return Cx(e),Oe.startRun(),ft.rpc.rerunTask(e.id)}const Zn=window.__vitest_browser_runner__;window.__vitest_ui_api__=kce;xt(()=>ft.ws,e=>{Ho.value=gr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Ho.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Bw(h,d,f);return p.mode="skip",p})),Oe.loadFiles(t,s),ft.state.collectFiles(t),Oe.startRun(),eo.value=(o||[]).map(fx),ei.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Ho.value==="CONNECTING"&&(Ho.value="CLOSED")},1e3)})},{immediate:!0});const Yce=["aria-label","opacity","disabled","hover"],_t=rt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ie(),ve("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Dt(t.$slots,"default",{},()=>[X("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,Yce))}}),Zce={h:"full",flex:"~ col"},Jce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Qce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},eue={class:"pointer-events-none","text-sm":""},tue={key:0},nue={id:"tester-container",relative:""},rue=["data-scale"],Ry=20,iue=100,oue=rt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return tr.value[0]===g[0]&&tr.value[1]===g[1]}const{width:o,height:s}=Pw();async function c(p){tr.value=t[p],Zn?.provider==="webdriverio"&&vx()}const f=ke(()=>{if(Zn?.provider==="webdriverio"){const[w,E]=tr.value;return{width:w,height:E}}const v=o.value*(At.details.size/100)*(At.details.browser/100)-Ry,b=s.value-iue;return{width:v,height:b}}),d=ke(()=>{if(Zn?.provider==="webdriverio")return 1;const[p,g]=tr.value,{width:v,height:b}=f.value,w=v>p?1:v/p,E=b>g?1:b/g;return Math.min(1,w,E)}),h=ke(()=>{const p=f.value.width,g=tr.value[0];return`${Math.trunc((p+Ry-g)/2)}px`});return(p,g)=>{const v=vr("tooltip");return ie(),ve("div",Zce,[X("div",Jce,[at(Ne(_t,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=b=>K(xce)())},null,512),[[ro,K(At).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),at(Ne(_t,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=b=>K(bce)())},null,512),[[ro,K(At).details.main>0],[v,"Hide Right Panel",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=b=>K(wce)())},null,512),[[ro,K(At).details.main===0],[v,"Show Right Panel",void 0,{bottom:!0}]])]),X("div",Qce,[at(Ne(_t,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[3]||(g[3]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[4]||(g[4]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[5]||(g[5]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",eue,[Qe(Re(K(tr)[0])+"x"+Re(K(tr)[1])+"px ",1),d.value<1?(ie(),ve("span",tue,"("+Re((d.value*100).toFixed(0))+"%)",1)):He("",!0)])]),X("div",nue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:zt({"--viewport-width":`${K(tr)[0]}px`,"--viewport-height":`${K(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,rue)])])}}}),sue=Ni(oue,[["__scopeId","data-v-2e86b8c3"]]),lue={"text-2xl":""},aue={"text-lg":"",op50:""},cue=rt({__name:"ConnectionOverlay",setup(e){return(t,r)=>K(Vce)?He("",!0):(ie(),ve("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>K(ft).reconnect&&K(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(K(Pd)?"animate-pulse":"")},[X("div",{text:"5xl",class:ot(K(Pd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",lue,Re(K(Pd)?"Connecting...":"Disconnected"),1),X("div",aue," Check your terminal or start a new server with `"+Re(K(Zn)?`vitest --browser=${K(Zn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),uue={h:"full",flex:"~ col"},fue={"flex-auto":"","py-1":"","bg-white":""},due=["src"],$y=rt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ie(),ve("div",uue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon:folder-details-reference"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),X("div",fue,[X("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,due)])]))}}),hue={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},pue={"font-bold":""},gue={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},mue=["font-bold"],vue={text:"red500/70"},yue={key:1,text:"sm","mb-2":""},bue={"font-bold":""},wue={key:2,text:"sm","mb-2":""},xue={"font-bold":""},kue=rt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(ie(),ve(nt,null,[X("h4",hue,[X("span",pue,[Qe(Re(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(ie(),ve(nt,{key:0},[Qe(":")],64)):He("",!0)]),Qe(" "+Re(e.error.message),1)]),e.error.stacks?.length?(ie(),ve("p",gue,[(ie(!0),ve(nt,null,$n(e.error.stacks,(o,s)=>(ie(),ve("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Qe("❯ "+Re(o.method)+" "+Re(o.file)+":",1),X("span",vue,Re(o.line)+":"+Re(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,mue))),128))])):He("",!0),e.error.VITEST_TEST_PATH?(ie(),ve("p",yue,[r[1]||(r[1]=Qe(" This error originated in ",-1)),X("span",bue,Re(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):He("",!0),e.error.VITEST_TEST_NAME?(ie(),ve("div",wue,[r[3]||(r[3]=Qe(" The latest test that might've caused the error is ",-1)),X("span",xue,Re(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Qe(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):He("",!0)],64))}}),Sue={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},_ue={class:"number","data-testid":"num-files"},Tue={class:"number"},Cue={class:"number","text-red5":""},Eue={class:"number","text-red5":""},Aue={class:"number","text-red5":""},Lue={class:"number","data-testid":"run-time"},Mue={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Nue={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Oue={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Pue=rt({__name:"TestFilesEntry",setup(e){return(t,r)=>(ie(),ve(nt,null,[X("div",Sue,[r[8]||(r[8]=X("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=X("div",null,"Files",-1)),X("div",_ue,Re(K(Oe).summary.files),1),K(Oe).summary.filesSuccess?(ie(),ve(nt,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",Tue,Re(K(Oe).summary.filesSuccess),1)],64)):He("",!0),K(Oe).summary.filesFailed?(ie(),ve(nt,{key:1},[r[2]||(r[2]=X("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=X("div",null," Fail ",-1)),X("div",Cue,Re(K(Oe).summary.filesFailed),1)],64)):He("",!0),K(Oe).summary.filesSnapshotFailed?(ie(),ve(nt,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=X("div",null," Snapshot Fail ",-1)),X("div",Eue,Re(K(Oe).summary.filesSnapshotFailed),1)],64)):He("",!0),K(eo).length?(ie(),ve(nt,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=X("div",null," Errors ",-1)),X("div",Aue,Re(K(eo).length),1)],64)):He("",!0),r[10]||(r[10]=X("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=X("div",null,"Time",-1)),X("div",Lue,Re(K(Oe).summary.time),1)]),K(eo).length?(ie(),ve("div",Mue,[r[15]||(r[15]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",Nue,[Qe(" Vitest caught "+Re(K(eo).length)+" error"+Re(K(eo).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=X("br",null,null,-1)),r[13]||(r[13]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",Oue,[r[14]||(r[14]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ie(!0),ve(nt,null,$n(K(eo),(o,s)=>(ie(),Ve(kue,{key:s,error:o},null,8,["error"]))),128))])])):He("",!0)],64))}}),Rue=Ni(Pue,[["__scopeId","data-v-1bd0f2ea"]]),$ue={"p-2":"","text-center":"",flex:""},Iue={"text-4xl":"","min-w-2em":""},Due={"text-md":""},Bl=rt({__name:"DashboardEntry",setup(e){return(t,r)=>(ie(),ve("div",$ue,[X("div",null,[X("div",Iue,[Dt(t.$slots,"body")]),X("div",Due,[Dt(t.$slots,"header")])])]))}}),zue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Fue=rt({__name:"TestsEntry",setup(e){function t(r){it.success=!1,it.failed=!1,it.skipped=!1,r!=="total"&&(it[r]=!0)}return(r,o)=>(ie(),ve("div",zue,[Ne(Bl,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:We(()=>[...o[4]||(o[4]=[Qe(" Pass ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsSuccess),1)]),_:1}),Ne(Bl,{class:ot({"text-red5":K(Oe).summary.testsFailed,op50:!K(Oe).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:We(()=>[...o[5]||(o[5]=[Qe(" Fail ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsFailed),1)]),_:1},8,["class"]),K(Oe).summary.testsSkipped?(ie(),Ve(Bl,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:We(()=>[...o[6]||(o[6]=[Qe(" Skip ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsSkipped),1)]),_:1})):He("",!0),K(Oe).summary.testsTodo?(ie(),Ve(Bl,{key:1,op50:"","data-testid":"todo-entry"},{header:We(()=>[...o[7]||(o[7]=[Qe(" Todo ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsTodo),1)]),_:1})):He("",!0),Ne(Bl,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:We(()=>[...o[8]||(o[8]=[Qe(" Total ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.totalTests),1)]),_:1})]))}}),Hue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Bue={key:0,class:"text-gray-5"},Wue={"aria-labelledby":"tests",m:"y-4 x-2"},que=rt({__name:"TestsFilesContainer",setup(e){return(t,r)=>(ie(),ve("div",Hue,[K(Oe).summary.files===0&&K(Ms)?(ie(),ve("div",Bue," No tests found ")):He("",!0),X("section",Wue,[Ne(Fue)]),Ne(Rue)]))}}),jue={h:"full",flex:"~ col"},Uue={class:"scrolls","flex-auto":"","py-1":""},Iy=rt({__name:"Dashboard",setup(e){return(t,r)=>(ie(),ve("div",jue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon-dashboard"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),X("div",Uue,[Ne(que)])]))}});function Vue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var bh="http://www.w3.org/1999/xhtml";const Dy={svg:"http://www.w3.org/2000/svg",xhtml:bh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ff(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Dy.hasOwnProperty(t)?{space:Dy[t],local:e}:e}function Gue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===bh&&t.documentElement.namespaceURI===bh?t.createElement(e):t.createElementNS(r,e)}}function Kue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ex(e){var t=ff(e);return(t.local?Kue:Gue)(t)}function Xue(){}function Tp(e){return e==null?Xue:function(){return this.querySelector(e)}}function Yue(e){typeof e!="function"&&(e=Tp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s=I&&(I=R+1);!($=P[I])&&++I=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function xfe(e){e||(e=kfe);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;ct?1:e>=t?0:NaN}function Sfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _fe(){return Array.from(this)}function Tfe(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?Ife:typeof t=="function"?zfe:Dfe)(e,t,r??"")):el(this.node(),e)}function el(e,t){return e.style.getPropertyValue(t)||Ox(e).getComputedStyle(e,null).getPropertyValue(t)}function Hfe(e){return function(){delete this[e]}}function Bfe(e,t){return function(){this[e]=t}}function Wfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function qfe(e,t){return arguments.length>1?this.each((t==null?Hfe:typeof t=="function"?Wfe:Bfe)(e,t)):this.node()[e]}function Px(e){return e.trim().split(/^|\s+/)}function Cp(e){return e.classList||new Rx(e)}function Rx(e){this._node=e,this._names=Px(e.getAttribute("class")||"")}Rx.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function $x(e,t){for(var r=Cp(e),o=-1,s=t.length;++o=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function vde(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r{}};function Ua(){for(var e=0,t=arguments.length,r={},o;e=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Zc.prototype=Ua.prototype={constructor:Zc,on:function(e,t){var r=this._,o=Ede(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c0)for(var r=new Array(s),o=0,s,c;o()=>e;function wh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}wh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Mde(e){return!e.ctrlKey&&!e.button}function Nde(){return this.parentNode}function Ode(e,t){return t??{x:e.x,y:e.y}}function Pde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rde(){var e=Mde,t=Nde,r=Ode,o=Pde,s={},c=Ua("start","drag","end"),f=0,d,h,p,g,v=0;function b(_){_.on("mousedown.drag",w).filter(o).on("touchstart.drag",P).on("touchmove.drag",M,Lde).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(_,$){if(!(g||!e.call(this,_,$))){var W=I(this,t.call(this,_,$),_,$,"mouse");W&&(Kn(_.view).on("mousemove.drag",E,Ta).on("mouseup.drag",L,Ta),Fx(_.view),Rd(_),p=!1,d=_.clientX,h=_.clientY,W("start",_))}}function E(_){if(js(_),!p){var $=_.clientX-d,W=_.clientY-h;p=$*$+W*W>v}s.mouse("drag",_)}function L(_){Kn(_.view).on("mousemove.drag mouseup.drag",null),Hx(_.view,p),js(_),s.mouse("end",_)}function P(_,$){if(e.call(this,_,$)){var W=_.changedTouches,ne=t.call(this,_,$),ee=W.length,Z,G;for(Z=0;Z>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ide.exec(e))?new Yn(t[1],t[2],t[3],1):(t=Dde.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zde.exec(e))?Dc(t[1],t[2],t[3],t[4]):(t=Fde.exec(e))?Dc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hde.exec(e))?Uy(t[1],t[2]/100,t[3]/100,1):(t=Bde.exec(e))?Uy(t[1],t[2]/100,t[3]/100,t[4]):Fy.hasOwnProperty(e)?Wy(Fy[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function Wy(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function Dc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Yn(e,t,r,o)}function jde(e){return e instanceof Va||(e=Aa(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function xh(e,t,r,o){return arguments.length===1?jde(e):new Yn(e,t,r,o??1)}function Yn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Ep(Yn,xh,Bx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(Vo(this.r),Vo(this.g),Vo(this.b),Mu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qy,formatHex:qy,formatHex8:Ude,formatRgb:jy,toString:jy}));function qy(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}`}function Ude(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}${Bo((isNaN(this.opacity)?1:this.opacity)*255)}`}function jy(){const e=Mu(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function Mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function Uy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,r,o)}function Wx(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=Aa(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r0&&h<1?0:f,new Mr(f,d,h,e.opacity)}function Vde(e,t,r,o){return arguments.length===1?Wx(e):new Mr(e,t,r,o??1)}function Mr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Ep(Mr,Vde,Bx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new Mr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Yn($d(e>=240?e-240:e+120,s,o),$d(e,s,o),$d(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Mr(Vy(this.h),zc(this.s),zc(this.l),Mu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mu(this.opacity);return`${e===1?"hsl(":"hsla("}${Vy(this.h)}, ${zc(this.s)*100}%, ${zc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Vy(e){return e=(e||0)%360,e<0?e+360:e}function zc(e){return Math.max(0,Math.min(1,e||0))}function $d(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const qx=e=>()=>e;function Gde(e,t){return function(r){return e+r*t}}function Kde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function Xde(e){return(e=+e)==1?jx:function(t,r){return r-t?Kde(t,r,e):qx(isNaN(t)?r:t)}}function jx(e,t){var r=t-e;return r?Gde(e,r):qx(isNaN(e)?t:e)}const Gy=(function e(t){var r=Xde(t);function o(s,c){var f=r((s=xh(s)).r,(c=xh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=jx(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o})(1);function to(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Id=new RegExp(kh.source,"g");function Yde(e){return function(){return e}}function Zde(e){return function(t){return e(t)+""}}function Jde(e,t){var r=kh.lastIndex=Id.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=kh.exec(e))&&(s=Id.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:to(o,s)})),r=Id.lastIndex;return r180?g+=360:g-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:to(p,g)})):g&&v.push(s(v)+"rotate("+g+o)}function d(p,g,v,b){p!==g?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:to(p,g)}):g&&v.push(s(v)+"skewX("+g+o)}function h(p,g,v,b,w,E){if(p!==v||g!==b){var L=w.push(s(w)+"scale(",null,",",null,")");E.push({i:L-4,x:to(p,v)},{i:L-2,x:to(g,b)})}else(v!==1||b!==1)&&w.push(s(w)+"scale("+v+","+b+")")}return function(p,g){var v=[],b=[];return p=e(p),g=e(g),c(p.translateX,p.translateY,g.translateX,g.translateY,v,b),f(p.rotate,g.rotate,v,b),d(p.skewX,g.skewX,v,b),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,b),p=g=null,function(w){for(var E=-1,L=b.length,P;++E=0&&e._call.call(void 0,t),e=e._next;--nl}function Yy(){Ko=(Ou=La.now())+df,nl=Vl=0;try{ahe()}finally{nl=0,uhe(),Ko=0}}function che(){var e=La.now(),t=e-Ou;t>Gx&&(df-=t,Ou=e)}function uhe(){for(var e,t=Nu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Nu=r);Gl=e,_h(o)}function _h(e){if(!nl){Vl&&(Vl=clearTimeout(Vl));var t=e-Ko;t>24?(e<1/0&&(Vl=setTimeout(Yy,e-La.now()-df)),Wl&&(Wl=clearInterval(Wl))):(Wl||(Ou=La.now(),Wl=setInterval(che,Gx)),nl=1,Kx(Yy))}}function Zy(e,t,r){var o=new Pu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var fhe=Ua("start","end","cancel","interrupt"),dhe=[],Xx=0,Jy=1,Th=2,Jc=3,Qy=4,Ch=5,Qc=6;function hf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;hhe(e,r,{name:t,index:o,group:s,on:fhe,tween:dhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Xx})}function Mp(e,t){var r=Fr(e,t);if(r.state>Xx)throw new Error("too late; already scheduled");return r}function ni(e,t){var r=Fr(e,t);if(r.state>Jc)throw new Error("too late; already running");return r}function Fr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function hhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Lp(c,0,r.time);function c(p){r.state=Jy,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var g,v,b,w;if(r.state!==Jy)return h();for(g in o)if(w=o[g],w.name===r.name){if(w.state===Jc)return Zy(f);w.state===Qy?(w.state=Qc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[g]):+gTh&&o.state=0&&(t=t.slice(0,r)),!t||t==="start"})}function qhe(e,t,r){var o,s,c=Whe(t)?Mp:ni;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function jhe(e,t){var r=this._id;return arguments.length<2?Fr(this.node(),r).on.on(e):this.each(qhe(r,e,t))}function Uhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Vhe(){return this.on("end.remove",Uhe(this._id))}function Ghe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Tp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f()=>e;function ype(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function xi(e,t,r){this.k=e,this.x=t,this.y=r}xi.prototype={constructor:xi,scale:function(e){return e===1?this:new xi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Op=new xi(1,0,0);xi.prototype;function Dd(e){e.stopImmediatePropagation()}function ql(e){e.preventDefault(),e.stopImmediatePropagation()}function bpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function wpe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function e0(){return this.__zoom||Op}function xpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function kpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Spe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function _pe(){var e=bpe,t=wpe,r=Spe,o=xpe,s=kpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=she,p=Ua("start","zoom","end"),g,v,b,w=500,E=150,L=0,P=10;function M(C){C.property("__zoom",e0).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",j).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(C,k,z,B){var ce=C.selection?C.selection():C;ce.property("__zoom",e0),C!==ce?$(C,k,z,B):ce.interrupt().each(function(){W(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},M.scaleBy=function(C,k,z,B){M.scaleTo(C,function(){var ce=this.__zoom.k,be=typeof k=="function"?k.apply(this,arguments):k;return ce*be},z,B)},M.scaleTo=function(C,k,z,B){M.transform(C,function(){var ce=t.apply(this,arguments),be=this.__zoom,Se=z==null?_(ce):typeof z=="function"?z.apply(this,arguments):z,Be=be.invert(Se),Ae=typeof k=="function"?k.apply(this,arguments):k;return r(I(R(be,Ae),Se,Be),ce,f)},z,B)},M.translateBy=function(C,k,z,B){M.transform(C,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),f)},null,B)},M.translateTo=function(C,k,z,B,ce){M.transform(C,function(){var be=t.apply(this,arguments),Se=this.__zoom,Be=B==null?_(be):typeof B=="function"?B.apply(this,arguments):B;return r(Op.translate(Be[0],Be[1]).scale(Se.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof z=="function"?-z.apply(this,arguments):-z),be,f)},B,ce)};function R(C,k){return k=Math.max(c[0],Math.min(c[1],k)),k===C.k?C:new xi(k,C.x,C.y)}function I(C,k,z){var B=k[0]-z[0]*C.k,ce=k[1]-z[1]*C.k;return B===C.x&&ce===C.y?C:new xi(C.k,B,ce)}function _(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function $(C,k,z,B){C.on("start.zoom",function(){W(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(B).end()}).tween("zoom",function(){var ce=this,be=arguments,Se=W(ce,be).event(B),Be=t.apply(ce,be),Ae=z==null?_(Be):typeof z=="function"?z.apply(ce,be):z,Ke=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),je=ce.__zoom,Fe=typeof k=="function"?k.apply(ce,be):k,Pe=h(je.invert(Ae).concat(Ke/je.k),Fe.invert(Ae).concat(Ke/Fe.k));return function(F){if(F===1)F=Fe;else{var Y=Pe(F),re=Ke/Y[2];F=new xi(re,Ae[0]-Y[0]*re,Ae[1]-Y[1]*re)}Se.zoom(null,F)}})}function W(C,k,z){return!z&&C.__zooming||new ne(C,k)}function ne(C,k){this.that=C,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,k),this.taps=0}ne.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,k){return this.mouse&&C!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var k=Kn(this.that).datum();p.call(C,this.that,new ype(C,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),k)}};function ee(C,...k){if(!e.apply(this,arguments))return;var z=W(this,k).event(C),B=this.__zoom,ce=Math.max(c[0],Math.min(c[1],B.k*Math.pow(2,o.apply(this,arguments)))),be=vi(C);if(z.wheel)(z.mouse[0][0]!==be[0]||z.mouse[0][1]!==be[1])&&(z.mouse[1]=B.invert(z.mouse[0]=be)),clearTimeout(z.wheel);else{if(B.k===ce)return;z.mouse=[be,B.invert(be)],eu(this),z.start()}ql(C),z.wheel=setTimeout(Se,E),z.zoom("mouse",r(I(R(B,ce),z.mouse[0],z.mouse[1]),z.extent,f));function Se(){z.wheel=null,z.end()}}function Z(C,...k){if(b||!e.apply(this,arguments))return;var z=C.currentTarget,B=W(this,k,!0).event(C),ce=Kn(C.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ke,!0),be=vi(C,z),Se=C.clientX,Be=C.clientY;Fx(C.view),Dd(C),B.mouse=[be,this.__zoom.invert(be)],eu(this),B.start();function Ae(je){if(ql(je),!B.moved){var Fe=je.clientX-Se,Pe=je.clientY-Be;B.moved=Fe*Fe+Pe*Pe>L}B.event(je).zoom("mouse",r(I(B.that.__zoom,B.mouse[0]=vi(je,z),B.mouse[1]),B.extent,f))}function Ke(je){ce.on("mousemove.zoom mouseup.zoom",null),Hx(je.view,B.moved),ql(je),B.event(je).end()}}function G(C,...k){if(e.apply(this,arguments)){var z=this.__zoom,B=vi(C.changedTouches?C.changedTouches[0]:C,this),ce=z.invert(B),be=z.k*(C.shiftKey?.5:2),Se=r(I(R(z,be),B,ce),t.apply(this,k),f);ql(C),d>0?Kn(this).transition().duration(d).call($,Se,B,C):Kn(this).call(M.transform,Se,B,C)}}function j(C,...k){if(e.apply(this,arguments)){var z=C.touches,B=z.length,ce=W(this,k,C.changedTouches.length===B).event(C),be,Se,Be,Ae;for(Dd(C),Se=0;Se=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b,s=c,!(c=c[M=P<<1|L]))return s[M]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(L=t>=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b;while((M=P<<1|L)===(R=(E>=b)<<1|w>=v));return s[R]=c,s[M]=f,e}function Cpe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,v=-1/0;for(r=0;rg&&(g=s),cv&&(v=c));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),r=0;re||e>=s||o>t||t>=c;)switch(p=(tg||(d=E.y0)>v||(h=E.x1)=M)<<1|e>=P)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=E)}else{var R=e-+this._x.call(null,w.data),I=t-+this._y.call(null,w.data),_=R*R+I*I;if(_=(b=(f+h)/2))?f=b:h=b,(L=v>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[P=L<<1|E]))return this;if(!r.length)break;(t[P+1&3]||t[P+2&3]||t[P+3&3])&&(o=t,M=P)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[P]=c:delete t[P],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function Ope(e){for(var t=0,r=e.length;tb.index){var j=w-ee.x-ee.vx,N=E-ee.y-ee.vy,O=j*j+N*N;Ow+G||WE+G||nep.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(r=new Array(g),p=0;p[t($,W,f),$])),_;for(P=0,d=new Array(M);P(e=(Vpe*e+Gpe)%r0)/r0}function Xpe(e){return e.x}function Ype(e){return e.y}var Zpe=10,Jpe=Math.PI*(3-Math.sqrt(5));function Qpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Lp(v),p=Ua("tick","end"),g=Kpe();e==null&&(e=[]);function v(){b(),p.call("tick",t),r1?(P==null?d.delete(L):d.set(L,E(P)),t):d.get(L)},find:function(L,P,M){var R=0,I=e.length,_,$,W,ne,ee;for(M==null?M=1/0:M*=M,R=0;R1?(p.on(L,P),t):p.on(L)}}}function ege(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(w){var E,L=e.length,P=Pp(e,Xpe,Ype).visitAfter(v);for(o=w,E=0;E=d)return;(w.data!==t||w.next)&&(M===0&&(M=io(r),_+=M*M),R===0&&(R=io(r),_+=R*R),_.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function i0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function oo(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=oo.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:i0(t[o])&&i0(r[o])?t[o]=oo(t[o],r[o]):t[o]=r[o])}),t},{})}const e1={mergeArrays:!0};oo.options=e1;oo.withOptions=(e,...t)=>{oo.options={mergeArrays:!0,...e};const r=oo(...t);return oo.options=e1,r};var ige=oo;function oge(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function sge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function t1(e){e.preventDefault(),e.stopPropagation()}function n1(e){return typeof e=="number"}function mo(e,t){return n1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function lge(e){return`${e.source.id}-${e.target.id}`}function r1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function age(e){return`url(#${r1(e.color)})`}function cge(e){return{size:e,padding:(t,r)=>mo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const i1={Arrow:e=>cge(e)},uge=(e,t,r)=>[t/2,r/2],fge=(e,t,r)=>[o0(0,t),o0(0,r)];function o0(e,t){return Math.random()*(t-e)+e}const Eh={Centered:uge,Randomized:fge};function dge(){return{autoResize:!1,callbacks:{},hooks:{},initial:sge(),nodeRadius:16,marker:i1.Arrow(4),modifiers:{},positionInitializer:Eh.Centered,simulation:{alphas:rge(),forces:oge()},zoom:{initial:1,min:.1,max:2}}}function hge(e={}){return ige.withOptions({mergeArrays:!1},dge(),e)}function pge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>t1(g)).on("dblclick",g=>r?.(g)).on("dblclick.zoom",null).on("pointermove",g=>o?.(g)).on("pointerup",g=>s?.(g)).style("cursor","grab");return e&&p.call(h.transform,Op.translate(c,f).scale(d)),p.append("g")}function gge({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function mge({config:e,onDragStart:t,onDragEnd:r}){const o=Rde().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Kn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Kn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function vge({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:yge({links:c},r)}function yge(e,t){const r=[...bge(e,t),...wge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function bge(e,t){return o1(e,t,(r,o)=>r.target.id===o.id)}function wge(e,t){return o1(e,t,(r,o)=>r.source.id===o.id)}function o1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function Ah(e){return e.x??0}function Lh(e){return e.y??0}function $p({source:e,target:t}){const r=new tl(Ah(e),Lh(e)),o=new tl(Ah(t),Lh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function s1({center:e,node:t}){const r=new tl(Ah(t),Lh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new tl(0,1))),{n:r,c:o}}function l1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=$p({source:t,target:r});return{start:o.add(c.multiply(mo(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function xge(e){const{start:t,end:r}=l1(e);return`M${t.x},${t.y} + L${r.x},${r.y}`}function kge(e){const{start:t,end:r}=l1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Sge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=$p({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(mo(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(mo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y} + A${v},${v},0,0,1,${g.x},${g.y}`}function _ge({center:e,config:t,node:r}){const{n:o,c:s}=s1({center:e,node:r}),c=mo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),g=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y} + A${c},${c},0,1,0,${g.x},${g.y}`}function Tge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=$p({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Cge({center:e,config:t,node:r}){const{n:o,c:s}=s1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*mo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Vs={line:{labelTransform:kge,path:xge},arc:{labelTransform:Tge,path:Sge},reflexive:{labelTransform:Cge,path:_ge}};function Ege(e){return e.append("g").classed("links",!0).selectAll("path")}function Age({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>lge(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>age(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Lge(e){Mge(e),Nge(e)}function Mge({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Vs.reflexive.path({config:t,node:s.source,center:e}):a1(r,s.source,s.target)?Vs.arc.path({config:t,source:s.source,target:s.target}):Vs.line.path({config:t,source:s.source,target:s.target}))}function Nge({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Vs.reflexive.labelTransform({config:e,node:s.source,center:t}):a1(r,s.source,s.target)?Vs.arc.labelTransform({config:e,source:s.source,target:s.target}):Vs.line.labelTransform({config:e,source:s.source,target:s.target}))}function a1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Oge(e){return e.append("defs").selectAll("marker")}function Pge({config:e,graph:t,selection:r}){return r?.data(Rge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>r1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",$ge(e.marker.path)),s})}function Rge(e){return[...new Set(e.links.map(t=>t.color))]}function $ge(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ige(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Dge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",b=>mo(e,b)).on("contextmenu",(b,w)=>{t1(b),o(w)}).on("pointerdown",(b,w)=>Fge(b,w,s??o)).style("fill",b=>b.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const zge=500;function Fge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>zge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Hge(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Bge({center:e,config:t,graph:r,onTick:o}){const s=Qpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",tge(()=>e().x).strength(p)).force("y",nge(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",ege().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",qpe().radius(p=>d.radiusMultiplier*mo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Upe(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function Wge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=_pe().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}var qge=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(Vue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return tl.of([this.width,this.height]).divide(2).subtract(tl.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(n1(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Pge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Age({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Dge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=Bge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=Wge({config:this.config,canvasContainer:()=>Kn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=pge({applyZoom:this.scale!==1,container:Kn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Ege(this.canvas),this.nodeSelection=Ige(this.canvas),this.markerSelection=Oge(this.canvas),this.drag=mge({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){Hge(this.nodeSelection),Lge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Kn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){gge({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=vge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function s0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function jge(e){return{...e}}function Ip(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Uge(e){const t=e.map(o=>Jw(o)),r=eL(t);return t.map(({raw:o,id:s,splits:c})=>Ip({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:s.includes("node_modules")?r.get(o)??o:c.pop()},isFocused:!1,id:s,type:"external"}))}function Vge(e,t){return Ip({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function Gge(e,t){if(!e)return s0({});const r=Uge(e.externalized),o=e.inlined.map(d=>Vge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const g=c[d],v=c[p];if(!(g===void 0||v===void 0))return jge({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return s0({nodes:s,links:f})}const Kge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Xge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Yge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Zge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Jge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Qge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},c1=rt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=vr("tooltip");return e.state==="pass"?(ie(),ve("div",Kge)):e.failedSnapshot?at((ie(),ve("div",Xge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(ie(),ve("div",Yge)):e.mode==="todo"?at((ie(),ve("div",Zge,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?at((ie(),ve("div",Jge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ie(),ve("div",Qge))}}}),ol=zE(),eme=xE(ol),tme={border:"b base","p-4":""},nme=["innerHTML"],rme=rt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ie(),ve("div",tme,[X("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Re(t(e.time))+" | "+Re(e.taskName)+" | "+Re(e.type),3),X("pre",{"data-type":"html",innerHTML:e.content},null,8,nme)]))}}),ime={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},ome={key:1,p6:""},sme=rt({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Tx.value;if(o){const s=wp(ol.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(oa(h))}))}});function r(o){const s=o&&ft.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?$A(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(ie(),ve("div",ime,[(ie(!0),ve(nt,null,$n(t.value,({taskId:c,type:f,time:d,content:h})=>(ie(),ve("div",{key:c,"font-mono":""},[Ne(rme,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(ie(),ve("div",ome,[...s[0]||(s[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),X("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),u1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(u1);var fr=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},As,Kl,Do;class lme{constructor(...t){As.set(this,new Map),Kl.set(this,new Map),Do.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),fr(this,Do,"f").has(o)||fr(this,Do,"f").set(o,new Set);const c=fr(this,Do,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&fr(this,Kl,"f").set(o,d),f=!1,h)continue;const p=fr(this,As,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);fr(this,As,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of fr(this,Do,"f").values())Object.freeze(t);return this}_getTestState(){return{types:fr(this,As,"f"),extensions:fr(this,Kl,"f")}}}As=new WeakMap,Kl=new WeakMap,Do=new WeakMap;const ame=new lme(u1)._freeze();function Ma(e){if(gr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function f1(e,t){const r=t?ame.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function d1(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Mh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Ma(e)}const tu=rt({__name:"CodeMirrorContainer",props:da({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:da(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Yu(e,"modelValue"),s=U_(),c={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ge();return Mi(async()=>{const d=hce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.on("refresh",()=>{r("codemirror",d)}),d.on("change",()=>{r("codemirror",d)}),d.setSize("100%","100%"),d.clearHistory(),Nn.value=d,setTimeout(()=>Nn.value?.refresh(),100)}),(d,h)=>(ie(),ve("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[X("textarea",{ref_key:"el",ref:f},null,512)],2))}}),cme=rt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ge(""),c=Ft(void 0),f=Ge(!1),d=Ge(!0),h=Ge(!1),p=Ge();xt(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ft.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Z){console.error("cannot fetch file",Z)}await Et(),d.value=!1}},{immediate:!0}),xt(()=>[d.value,h.value,r.file,hx.value,px.value],([Z,G,j,N,O])=>{!Z&&!G&&(N!=null?Et(()=>{const C=p.value,k=C??{line:(N??1)-1,ch:O??0};C?p.value=void 0:(Nn.value?.scrollIntoView(k,100),Et(()=>{Nn.value?.focus(),Nn.value?.setCursor(k)}))}):Et(()=>{Nn.value?.focus()}))},{flush:"post"});const g=ke(()=>r.file?.filepath?.split(/\./g).pop()||"js"),v=Ge(),b=ke(()=>{const Z=[];function G(j){j.result?.errors&&Z.push(...j.result.errors),j.type==="suite"&&j.tasks.forEach(G)}return r.file?.tasks.forEach(G),Z}),w=ke(()=>{const Z=[];function G(j){j.type==="test"&&Z.push(...j.annotations),j.type==="suite"&&j.tasks.forEach(G)}return r.file?.tasks.forEach(G),Z}),E=[],L=[],P=[],M=Ge(!1);function R(){P.forEach(([Z,G,j])=>{Z.removeEventListener("click",G),j()}),P.length=0}Ow(v,()=>{Nn.value?.refresh()});function I(){f.value=c.value!==Nn.value.getValue()}xt(f,Z=>{o("draft",Z)},{immediate:!0});function _(Z){const j=(Z?.stacks||[]).filter(z=>z.file&&z.file===r.file?.filepath)?.[0];if(!j)return;const N=document.createElement("div");N.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(j.column)}^ ${Z.name}: ${Z?.message||""}`,N.appendChild(O);const C=document.createElement("span");C.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",C.tabIndex=0,C.ariaLabel="Open in Editor",bw(C,{content:"Open in Editor",placement:"bottom"},!1);const k=async()=>{await bp(j.file,j.line,j.column)};C.addEventListener("click",k),N.appendChild(C),P.push([C,k,()=>ap(C)]),L.push(Nn.value.addLineClass(j.line-1,"wrap","bg-red-500/10")),E.push(Nn.value.addLineWidget(j.line-1,N))}function $(Z){if(!Z.location)return;const{line:G,file:j}=Z.location;if(j!==r.file?.filepath)return;const N=document.createElement("div");N.classList.add("wrap","bg-active","py-3","px-6","my-1"),N.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const C=document.createElement("span");C.textContent=`${Z.type}: `,C.classList.add("font-bold");const k=document.createElement("span");k.classList.add("whitespace-pre"),k.textContent=Z.message.replace(/[^\r]\n/,`\r +`),O.append(C,k),N.append(O);const z=Z.attachment;if(z?.path||z?.body)if(z.contentType?.startsWith("image/")){const B=document.createElement("a"),ce=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const be=z.path||z.body;typeof be=="string"&&(be.startsWith("http://")||be.startsWith("https://"))?(ce.setAttribute("src",be),B.referrerPolicy="no-referrer"):ce.setAttribute("src",Ma(z)),B.target="_blank",B.href=ce.src,B.append(ce),N.append(B)}else{const B=document.createElement("a");B.href=Ma(z),B.download=f1(Z.message,z.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ce=document.createElement("div");ce.classList.add("i-carbon:download","block");const be=document.createElement("span");be.textContent="Download",B.append(ce,be),N.append(B)}E.push(Nn.value.addLineWidget(G-1,N))}const{pause:W,resume:ne}=xt([Nn,b,w,Ms],([Z,G,j,N])=>{if(!Z){E.length=0,L.length=0,R();return}N&&(Z.off("changes",I),R(),E.forEach(O=>O.clear()),L.forEach(O=>Z?.removeLineClass(O,"wrap")),E.length=0,L.length=0,setTimeout(()=>{G.forEach(_),j.forEach($),M.value||Z.clearHistory(),Z.on("changes",I)},100))},{flush:"post"});hp(()=>[Ms.value,h.value,p.value],([Z,G],j)=>{Z&&!G&&j&&j[2]&&Nn.value?.setCursor(j[2])},{debounce:100,flush:"post"});async function ee(Z){if(h.value)return;W(),h.value=!0,await Et();const G=Nn.value;G&&(G.setOption("readOnly",!0),await Et(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",I),R(),E.forEach(j=>j.clear()),L.forEach(j=>G?.removeLineClass(j,"wrap")),E.length=0,L.length=0;try{M.value=!0,await ft.rpc.saveTestFile(r.file.filepath,Z),c.value=Z,f.value=!1}catch(j){console.error("error saving file",j)}M.value||G?.clearHistory();try{await Uv(Ms).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Uv(Ms).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(_),w.value.forEach($),G?.on("changes",I),h.value=!1,await Et(),G&&(G.setOption("readOnly",!1),await Et(),G.refresh()),ne()}return $a(R),(Z,G)=>(ie(),Ve(tu,ki({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=j=>s.value=j),"h-full":""},{lineNumbers:!0,readOnly:K(gr),saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ee}),null,16,["modelValue","mode"]))}}),Dp=rt({__name:"Modal",props:da({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(ie(),ve("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:zt(t.value?{}:{transform:o.value})},[Dt(c.$slots,"default")],6)],2))}}),ume={class:"overflow-auto max-h-120"},fme={"my-2":"","mx-4":""},dme={"op-70":""},hme={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},pme=["onClick"],gme=rt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=Ge(10),s=ke(()=>{const h=pr.value?.importDurations;if(!h)return[];const p=ei.value.root,g=[];for(const b in h){const w=h[b],E=w.external?tL(b):af(p,b);g.push({importedFile:b,relativeFile:f(E),selfTime:w.selfTime,totalTime:w.totalTime,formattedSelfTime:Fo(w.selfTime),formattedTotalTime:Fo(w.totalTime),selfTimeClass:_u(w.selfTime),totalTimeClass:_u(w.totalTime),external:w.external})}return g.sort((b,w)=>w.totalTime-b.totalTime)}),c=ke(()=>s.value.slice(0,o.value));function f(d){return d.length<=45?d:`...${d.slice(-45)}`}return(d,h)=>(ie(),ve("div",ume,[X("h1",fme,[h[1]||(h[1]=Qe(" Import Duration Breakdown ",-1)),X("span",dme,"(ordered by Total Time) (Top "+Re(Math.min(o.value,c.value.length))+")",1)]),X("table",hme,[h[2]||(h[2]=X("thead",null,[X("tr",null,[X("th",null," Module "),X("th",null," Self "),X("th",null," Total "),X("th",null," % ")])],-1)),X("tbody",null,[(ie(!0),ve(nt,null,$n(c.value,p=>(ie(),ve("tr",{key:p.importedFile},[X("td",{class:"cursor-pointer pr-2",style:zt({color:p.external?"var(--color-node-external)":void 0}),onClick:g=>r("select",p.importedFile,p.external?"external":"inline")},Re(p.relativeFile),13,pme),X("td",{"pr-2":"",class:ot(p.selfTimeClass)},Re(p.formattedSelfTime),3),X("td",{"pr-2":"",class:ot(p.totalTimeClass)},Re(p.formattedTotalTime),3),X("td",{"pr-2":"",class:ot(p.totalTimeClass)},Re(Math.round(p.totalTime/s.value[0].totalTime*100))+"% ",3)]))),128))])]),o.valueo.value+=5)}," Show more ")):He("",!0)]))}}),Cs=rt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,r)=>(ie(),ve("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Dt(t.$slots,"default")],2))}}),mme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},vme={"p-4":"",relative:""},yme={flex:"","justify-between":""},bme={"mr-8":"",flex:"","gap-2":"","items-center":""},wme={op50:"","font-mono":"","text-sm":""},xme={key:0,"p-5":""},kme={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},Sme={key:0},_me={p:"x3 y-1","bg-overlay":"",border:"base b t"},Tme=rt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const r=e,o=t,s=TE(()=>{if(pr.value?.id){if(r.type==="inline")return ft.rpc.getTransformResult(r.projectName,r.id,pr.value.id,!!Zn);if(r.type==="external")return ft.rpc.getExternalResult(r.id,pr.value.id)}}),c=ke(()=>{const I=pr.value?.importDurations||{};return I[r.id]||I[NA("/@fs/",r.id)]||{}}),f=ke(()=>r.id?.split(/\./g).pop()||"js"),d=ke(()=>s.value?.source?.trim()||""),h=ke(()=>!s.value||!("code"in s.value)||!ei.value.experimental?.fsModuleCache?void 0:s.value.code.lastIndexOf("vitestCache=")!==-1),p=ke(()=>!s.value||!("code"in s.value)?null:s.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=ke(()=>!s.value||!("map"in s.value)?{mappings:""}:{mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}),v=[],b=[],w=[];function E(I,_){const $=I.coordsChar({left:_.clientX,top:_.clientY}),W=I.findMarksAt($);if(W.length!==1)return;const ne=W[0].title;if(ne){const ee=W[0].attributes?.["data-external"]==="true"?"external":"inline";o("select",ne,ee)}}function L(I){const _=document.createElement("div");return _.classList.add("mb-5"),I.forEach(({resolvedId:$,totalTime:W,external:ne})=>{const ee=document.createElement("div");ee.append(document.createTextNode("import "));const Z=document.createElement("span"),G=af(ei.value.root,$);Z.textContent=`"/${G}"`,Z.className="hover:underline decoration-gray cursor-pointer select-none",ee.append(Z),Z.addEventListener("click",()=>{o("select",$,ne?"external":"inline")});const j=document.createElement("span");j.textContent=` ${Fo(W)}`;const N=_u(W);N&&j.classList.add(N),ee.append(j),_.append(ee)}),_}function P(I){const _=document.createElement("div");_.className="flex ml-2",_.textContent=Fo(I);const $=_u(I);return $&&_.classList.add($),_}function M(I){if(w.forEach(_=>_.clear()),w.length=0,v.forEach(_=>_.remove()),v.length=0,b.forEach(_=>_.clear()),b.length=0,s.value&&"modules"in s.value){I.off("mousedown",E),I.on("mousedown",E);const _=s.value.untrackedModules;if(_?.length){const $=L(_);v.push($),w.push(I.addLineWidget(0,$,{above:!0}))}s.value.modules?.forEach($=>{const W={line:$.start.line-1,ch:$.start.column},ne={line:$.end.line-1,ch:$.end.column},ee=I.markText(W,ne,{title:$.resolvedId,attributes:{"data-external":String($.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});b.push(ee);const Z=P($.totalTime+($.transformTime||0));_?.length||Z.classList.add("-mt-5"),v.push(Z),I.addWidget({line:$.end.line-1,ch:$.end.column+1},Z,!1)})}}function R(){o("back")}return Cw("Escape",()=>{o("close")}),(I,_)=>{const $=vr("tooltip");return ie(),ve("div",mme,[X("div",vme,[X("div",yme,[X("p",null,[e.canUndo?at((ie(),Ve(_t,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:_[0]||(_[0]=W=>R())},null,512)),[[$,"Go Back",void 0,{bottom:!0}]]):He("",!0),_[7]||(_[7]=Qe(" Module Info ",-1)),Ne(K(Qi),{class:"inline","cursor-help":""},{popper:We(()=>[Qe(" This is module is "+Re(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(ie(),ve(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(ie(),ve(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:We(()=>[Ne(Cs,{type:"custom","ml-1":"",style:zt({backgroundColor:`var(--color-node-${e.type})`})},{default:We(()=>[Qe(Re(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(ie(),Ve(K(Qi),{key:1,class:"inline","cursor-help":""},{popper:We(()=>[..._[4]||(_[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:We(()=>[Ne(Cs,{type:"tip","ml-2":""},{default:We(()=>[..._[3]||(_[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):He("",!0),h.value===!1?(ie(),Ve(K(Qi),{key:2,class:"inline","cursor-help":""},{popper:We(()=>[..._[6]||(_[6]=[X("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),X("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:We(()=>[Ne(Cs,{type:"warning","ml-2":""},{default:We(()=>[..._[5]||(_[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):He("",!0)]),X("div",bme,[c.value.selfTime!=null&&c.value.external!==!0?(ie(),Ve(K(Qi),{key:0,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(c.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(c.value.selfTime)},{default:We(()=>[Qe(" self: "+Re(K(Fo)(c.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0),c.value.totalTime!=null?(ie(),Ve(K(Qi),{key:1,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(c.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(c.value.totalTime)},{default:We(()=>[Qe(" total: "+Re(K(Fo)(c.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0),K(s)&&"transformTime"in K(s)&&K(s).transformTime?(ie(),Ve(K(Qi),{key:2,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(K(s).transformTime))+" to transform this module by Vite plugins. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(K(s).transformTime)},{default:We(()=>[Qe(" transform: "+Re(K(Fo)(K(s).transformTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0)])]),X("p",wme,Re(e.id),1),Ne(_t,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:_[1]||(_[1]=W=>o("close"))})]),K(s)?(ie(),ve(nt,{key:1},[X("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[_[8]||(_[8]=X("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(ie(),ve("div",kme," Transformed ")):He("",!0),(ie(),Ve(tu,ki({key:e.id,"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:f.value,onCodemirror:_[2]||(_[2]=W=>M(W))}),null,16,["model-value","mode"])),p.value!=null?(ie(),Ve(tu,ki({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):He("",!0)],2),g.value.mappings!==""?(ie(),ve("div",Sme,[X("div",_me," Source map (v"+Re(g.value.version)+") ",1),Ne(tu,ki({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):He("",!0)],64)):(ie(),ve("div",xme," No transform result found for this module. "))])}}}),Cme={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Eme={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},Ame={flex:"~ gap-1","items-center":"","select-none":""},Lme={class:"pr-2"},Mme=["id","checked","onChange"],Nme=["for"],Ome={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},Pme=rt({__name:"ViewModuleGraph",props:da({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Yu(e,"modelValue"),{graph:o}=v_(t),s=Ge(),c=Ge(!1),f=Ge(),d=qE(f),h=Ge(),p=Ge(null),g=Ft(o.value),v=ke(()=>{let j="";const N=pr.value?.importDurations||{};for(const O in N){const{totalTime:C}=N[O];if(C>=500){j="text-red";break}else C>=100&&(j="text-orange")}return j}),b=Ge(ei.value?.experimental?.printImportBreakdown??v.value==="text-red");Mi(()=>{g.value=L(o.value,null,2),ne()}),Ia(()=>{h.value?.shutdown()}),xt(o,()=>{g.value=L(o.value,p.value,2),ne()});function w(){g.value=o.value,ne()}function E(){b.value=!b.value}function L(j,N,O=2){if(!j.nodes.length||j.nodes.length<=50)return j;const C=new Map;j.nodes.forEach(Ae=>C.set(Ae.id,new Set)),j.links.forEach(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),je=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);C.get(Ke)?.add(je),C.get(je)?.add(Ke)});let k;if(N)k=[N];else{const Ae=new Set(j.links.map(je=>typeof je.target=="object"?je.target.id:String(je.target))),Ke=j.nodes.filter(je=>je.type==="inline"&&!Ae.has(je.id));k=Ke.length>0?[Ke[0].id]:[j.nodes[0].id]}const z=new Set,B=k.map(Ae=>({id:Ae,level:0}));for(;B.length>0;){const{id:Ae,level:Ke}=B.shift();z.has(Ae)||Ke>O||(z.add(Ae),Ke{z.has(Fe)||B.push({id:Fe,level:Ke+1})}))}const ce=new Map(j.nodes.map(Ae=>[Ae.id,Ae])),be=Array.from(z).map(Ae=>ce.get(Ae)).filter(Ae=>Ae!==void 0),Se=new Map(be.map(Ae=>[Ae.id,Ae])),Be=j.links.map(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),je=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);if(z.has(Ke)&&z.has(je)){const Fe=Se.get(Ke),Pe=Se.get(je);if(Fe&&Pe)return{...Ae,source:Fe,target:Pe}}return null}).filter(Ae=>Ae!==null);return{nodes:be,links:Be}}function P(j,N){h.value?.filterNodesByType(N,j)}function M(j,N){f.value={id:j,type:N},c.value=!0}function R(){d.undo()}function I(){c.value=!1,d.clear()}function _(j){p.value=j,g.value=L(o.value,j,2),W(),ne()}function $(){p.value=null,g.value=L(o.value,null,2),W(),ne()}function W(){const j=g.value.nodes.map(C=>{let k,z;return C.id===p.value?(k="var(--color-node-focused)",z="var(--color-node-focused)"):C.type==="inline"?(k=C.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",z=k):(k="var(--color-node-external)",z="var(--color-node-external)"),Ip({...C,color:k,label:C.label?{...C.label,color:z}:C.label})}),N=new Map(j.map(C=>[C.id,C])),O=g.value.links.map(C=>{const k=typeof C.source=="object"?C.source.id:String(C.source),z=typeof C.target=="object"?C.target.id:String(C.target);return{...C,source:N.get(k),target:N.get(z)}});g.value={nodes:j,links:O}}function ne(j=!1){if(h.value?.shutdown(),j&&!r.value){r.value=!0;return}if(!g.value||!s.value)return;const N=g.value.nodes.length;let O=1,C=.5;N>300?(O=.3,C=.2):N>200?(O=.4,C=.3):N>100?(O=.5,C=.3):N>50&&(O=.7,O=.4),h.value=new qge(s.value,g.value,hge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:k,newWidth:z})=>k===0&&z===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:i1.Arrow(2),modifiers:{node:G},positionInitializer:o.value.nodes.length===1?Eh.Centered:Eh.Randomized,zoom:{initial:O,min:C,max:1.5}}))}const ee=j=>j.button===0,Z=j=>j.button===2;function G(j){if(gr)return;let N=0,O=0,C=0,k=!1;j.on("pointerdown",(z,B)=>{!B.x||!B.y||(k=Z(z),!(!ee(z)&&!k)&&(N=B.x,O=B.y,C=Date.now()))}).on("pointerup",(z,B)=>{if(!B.x||!B.y)return;const ce=Z(z);if(!ee(z)&&!ce||Date.now()-C>500)return;const be=B.x-N,Se=B.y-O;be**2+Se**2<100&&(!ce&&!z.shiftKey?M(B.id,B.type):(ce||z.shiftKey)&&(z.preventDefault(),B.type==="inline"&&_(B.id)))}).on("contextmenu",z=>{z.preventDefault()})}return(j,N)=>{const O=vr("tooltip");return ie(),ve("div",Cme,[X("div",null,[X("div",Eme,[X("div",Ame,[X("div",Lme,Re(g.value.nodes.length)+"/"+Re(K(o).nodes.length)+" "+Re(g.value.nodes.length===1?"module":"modules"),1),at(X("input",{id:"hide-node-modules","onUpdate:modelValue":N[0]||(N[0]=C=>r.value=C),type:"checkbox"},null,512),[[Zb,r.value]]),N[9]||(N[9]=X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(ie(!0),ve(nt,null,$n(h.value?.nodeTypes.sort(),C=>(ie(),ve("div",{key:C,flex:"~ gap-1","items-center":"","select-none":""},[X("input",{id:`type-${C}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(C),onChange:k=>P(C,k.target.checked)},null,40,Mme),X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${C}`,"border-b-2":"",style:zt({"border-color":`var(--color-node-${C})`})},Re(C)+" Modules",13,Nme)]))),128)),N[10]||(N[10]=X("div",{"flex-auto":""},null,-1)),N[11]||(N[11]=X("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[X("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),X("div",null,[at(Ne(_t,{icon:"i-carbon-notebook",class:ot(v.value),onClick:N[1]||(N[1]=C=>E())},null,8,["class"]),[[O,`${b.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),X("div",null,[at(Ne(_t,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:N[2]||(N[2]=C=>w())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),X("div",null,[at(Ne(_t,{icon:"i-carbon-reset",onClick:N[3]||(N[3]=C=>$())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),b.value?(ie(),ve("div",Ome,[Ne(gme,{onSelect:N[4]||(N[4]=(C,k)=>M(C,k))})])):He("",!0),X("div",{ref_key:"el",ref:s},null,512),Ne(Dp,{modelValue:c.value,"onUpdate:modelValue":N[8]||(N[8]=C=>c.value=C),direction:"right"},{default:We(()=>[f.value?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(Tme,{id:f.value.id,"project-name":e.projectName,type:f.value.type,"can-undo":K(d).undoStack.value.length>1,onClose:N[5]||(N[5]=C=>I()),onSelect:N[6]||(N[6]=(C,k)=>M(C,k)),onBack:N[7]||(N[7]=C=>R())},null,8,["id","project-name","type","can-undo"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])])}}});function h1(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function p1(){const e=Ge(!1),t=Ge(Date.now()),r=Ge(),o=ke(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Rme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},$me={"p-4":"",relative:"",border:"base b"},Ime={op50:"","font-mono":"","text-sm":""},Dme={op50:"","font-mono":"","text-sm":""},zme={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Fme=["src","alt"],Hme={key:1},Bme=rt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Cw("Escape",()=>{r("close")}),(o,s)=>(ie(),ve("div",Rme,[X("div",$me,[s[1]||(s[1]=X("p",null,"Screenshot error",-1)),X("p",Ime,Re(e.file),1),X("p",Dme,Re(e.name),1),Ne(_t,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),X("div",zme,[e.url?(ie(),ve("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,Fme)):(ie(),ve("div",Hme," Something was wrong, the image cannot be resolved. "))])]))}}),g1=Ni(Bme,[["__scopeId","data-v-08ce44b7"]]),Wme={class:"scrolls scrolls-rounded task-error"},qme=["onClickPassive"],jme=["innerHTML"],Ume=rt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=ke(()=>wp(ol.value)),s=ke(()=>!!t.error?.diff),c=ke(()=>t.error.diff?o.value.toHtml(oa(t.error.diff)):void 0);function f(d){return oce(d.file,t.filename)?pce(t.fileId,d):bp(d.file,d.line,d.column)}return(d,h)=>{const p=vr("tooltip");return ie(),ve("div",Wme,[X("pre",null,[X("b",null,Re(e.error.name),1),Qe(": "+Re(e.error.message),1)]),(ie(!0),ve(nt,null,$n(e.error.stacks,(g,v)=>(ie(),ve("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[X("pre",null," - "+Re(r(g.file))+":"+Re(g.line)+":"+Re(g.column),1),at(X("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(g)},null,40,qme),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(ie(),ve("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,jme)):He("",!0)])}}}),m1=Ni(Ume,[["__scopeId","data-v-1fcfe7a4"]]),Vme={"h-full":"",class:"scrolls"},Gme=["id"],Kme={flex:"~ gap-2 items-center"},Xme={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Yme=["innerHTML"],Zme={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Jme=rt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(g=>r(g,p+1))]}const o=ke(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],g=h.result;if(g?.errors?.[0]){const b={id:h.id,file:h,name:h.name,fullName:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(b)}return p.length>0?dx(ol.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=p1();return(h,p)=>{const g=vr("tooltip");return ie(),ve("div",Vme,[o.value.length?(ie(!0),ve(nt,{key:0},$n(o.value,v=>(ie(),ve("div",{id:v.id,key:v.id},[X("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:zt({"margin-left":`${v.result?.htmlError?.5:2*v.level+.5}rem`})},[X("div",Kme,[X("span",null,Re(v.name),1),K(Zn)&&v.meta?.failScreenshotPath?(ie(),ve(nt,{key:0},[at(Ne(_t,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>K(f)(v)},null,8,["onClick"]),[[g,"View screenshot error",void 0,{bottom:!0}]]),at(Ne(_t,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>K(h1)(v)},null,8,["onClick"]),[[g,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):He("",!0)]),v.result?.htmlError?(ie(),ve("div",Xme,[X("pre",{innerHTML:v.result.htmlError},null,8,Yme)])):v.result?.errors?(ie(!0),ve(nt,{key:1},$n(v.result.errors,(b,w)=>(ie(),Ve(m1,{key:w,error:b,filename:e.file.name,root:K(ei).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):He("",!0)],4)],8,Gme))),128)):(ie(),ve("div",Zme," All tests passed in this file ")),K(Zn)?(ie(),Ve(Dp,{key:2,modelValue:K(c),"onUpdate:modelValue":p[1]||(p[1]=v=>Mt(c)?c.value=v:null),direction:"right"},{default:We(()=>[K(s)?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(g1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:p[0]||(p[0]=v=>c.value=!1)},null,8,["file","name","url"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])):He("",!0)])}}}),Qme=Ni(Jme,[["__scopeId","data-v-9d875d6e"]]),eve=["href","referrerPolicy"],tve=["src"],nve=rt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=ke(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Ma(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(ie(),ve("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:K(d1)(e.annotation.attachment)?"no-referrer":void 0},[X("img",{src:r.value},null,8,tve)],8,eve)):He("",!0)}}),rve={class:"flex flex-col gap-4"},ive={key:0},ove=rt({__name:"ArtifactTemplate",setup(e){const t=yb();return(r,o)=>(ie(),ve("article",rve,[X("h1",null,[Dt(r.$slots,"title")]),K(t).message?(ie(),ve("p",ive,[Dt(r.$slots,"message")])):He("",!0),Dt(r.$slots,"default")]))}}),v1=Symbol("tabContext"),Ru={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},sve={class:"flex flex-col items-center gap-6"},lve={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},ave=["id","aria-selected","aria-controls","onClick"],cve=rt({__name:"SmallTabs",setup(e){const t=Ge(null),r=Ge([]),o=Yh();return dr(v1,{id:o,activeTab:t,registerTab:s=>{r.value.some(({id:c})=>c===s.id)||r.value.push(s),r.value.length===1&&(t.value=s.id)},unregisterTab:s=>{const c=r.value.findIndex(({id:f})=>f===s.id);c>-1&&r.value.splice(c,1),t.value===s.id&&(t.value=r.value[0]?.id??null)}}),(s,c)=>(ie(),ve("div",sve,[X("div",lve,[(ie(!0),ve(nt,null,$n(r.value,f=>(ie(),ve("button",{id:K(Ru).tab(f.id,K(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":K(Ru).tabpanel(f.id,K(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Re(f.title),9,ave))),128))]),Dt(s.$slots,"default")]))}}),uve=["id","aria-labelledby","hidden"],Bc=rt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=pn(v1);if(!r)throw new Error("TabPane must be used within Tabs");const o=Yh(),s=ke(()=>r.activeTab.value===o);return Mi(()=>{r.registerTab({...t,id:o})}),Ia(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(ie(),ve("div",{id:K(Ru).tabpanel(K(o),K(r).id),role:"tabpanel","aria-labelledby":K(Ru).tab(K(o),K(r).id),hidden:!s.value,class:"max-w-full"},[Dt(c.$slots,"default")],8,uve))}}),y1=rt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,')}")`;return(r,o)=>(ie(),ve("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:zt({backgroundImage:t})},[Dt(r.$slots,"default")],4))}}),fve=["href","referrerPolicy"],dve=["src"],zd=rt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=ke(()=>Mh(e.attachment));return(r,o)=>(ie(),Ve(y1,null,{default:We(()=>[X("a",{target:"_blank",href:t.value,referrerPolicy:K(d1)(e.attachment)?"no-referrer":void 0},[X("img",{src:t.value},null,8,dve)],8,fve)]),_:1}))}}),hve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},pve=["src"],gve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},mve=["src"],vve=["id"],yve=["for"],bve=rt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=ke(()=>Mh(e.reference)),r=ke(()=>Mh(e.actual)),o=ke(()=>Math.max(e.reference.width,e.actual.width)),s=ke(()=>Math.max(e.reference.height,e.actual.height)),c=Ge(50),f=Yh();return(d,h)=>(ie(),Ve(y1,null,{default:We(()=>[X("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:zt({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[X("div",hve,[X("img",{src:t.value},null,8,pve)]),X("div",gve,[X("img",{src:r.value},null,8,mve)]),h[1]||(h[1]=X("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),at(X("input",{id:K(f),"onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,vve),[[Yb,c.value]]),X("output",{for:K(f),class:"sr-only"}," Showing "+Re(c.value)+"% reference, "+Re(100-c.value)+"% actual ",9,yve)],4)]),_:1}))}}),wve=rt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=ke(()=>({diff:e.regression.attachments.find(r=>r.name==="diff"),reference:e.regression.attachments.find(r=>r.name==="reference"),actual:e.regression.attachments.find(r=>r.name==="actual")}));return(r,o)=>(ie(),Ve(ove,null,{title:We(()=>[...o[0]||(o[0]=[Qe(" Visual Regression ",-1)])]),message:We(()=>[Qe(Re(e.regression.message),1)]),default:We(()=>[Ne(cve,null,{default:We(()=>[t.value.diff?(ie(),Ve(Bc,{key:t.value.diff.path,title:"Diff"},{default:We(()=>[Ne(zd,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):He("",!0),t.value.reference?(ie(),Ve(Bc,{key:t.value.reference.path,title:"Reference"},{default:We(()=>[Ne(zd,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):He("",!0),t.value.actual?(ie(),Ve(Bc,{key:t.value.actual.path,title:"Actual"},{default:We(()=>[Ne(zd,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):He("",!0),t.value.reference&&t.value.actual?(ie(),Ve(Bc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:We(()=>[Ne(bve,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):He("",!0)]),_:1})]),_:1}))}}),xve={"h-full":"",class:"scrolls"},kve={key:0},Sve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},_ve={flex:"~ gap-2 items-center"},Tve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Cve=["innerHTML"],Eve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Ave={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Lve={class:"flex gap-2","overflow-hidden":""},Mve={class:"font-bold","ws-nowrap":"",truncate:""},Nve=["href","download"],Ove=["onClick"],Pve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Rve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},$ve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Ive=["onClick"],Dve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},zve={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},Fve={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Hve={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Bve=rt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=ke(()=>!t.test.result||!t.test.result.errors?.length?null:dx(ol.value,[t.test])[0]);function o(v){return gce(t.test,v)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=p1();function h(v){return`${af(ei.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=ke(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,b)=>{const w=vr("tooltip");return ie(),ve("div",xve,[r.value?(ie(),ve("div",kve,[X("div",Sve,[X("div",_ve,[K(Zn)&&e.test.meta?.failScreenshotPath?(ie(),ve(nt,{key:0},[at(Ne(_t,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=E=>K(f)(e.test))},null,512),[[w,"View screenshot error",void 0,{bottom:!0}]]),at(Ne(_t,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=E=>K(h1)(e.test))},null,512),[[w,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):He("",!0)]),e.test.result?.htmlError?(ie(),ve("div",Tve,[X("pre",{innerHTML:e.test.result.htmlError},null,8,Cve)])):e.test.result?.errors?(ie(!0),ve(nt,{key:1},$n(e.test.result.errors,(E,L)=>(ie(),Ve(m1,{key:L,"file-id":e.test.file.id,error:E,filename:e.test.file.name,root:K(ei).root},null,8,["file-id","error","filename","root"]))),128)):He("",!0)])])):(ie(),ve("div",Eve," All tests passed in this file ")),e.test.annotations.length?(ie(),ve(nt,{key:2},[b[5]||(b[5]=X("h1",{"m-2":""}," Test Annotations ",-1)),(ie(!0),ve(nt,null,$n(e.test.annotations,E=>(ie(),ve("div",{key:E.type+E.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",Ave,[X("div",Lve,[X("span",Mve,Re(E.type),1),E.attachment&&!E.attachment.contentType?.startsWith("image/")?(ie(),ve("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:K(Ma)(E.attachment),download:K(f1)(E.message,E.attachment.contentType)},[...b[4]||(b[4]=[X("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,Nve)):He("",!0)]),X("div",null,[E.location&&E.location.file===e.test.file.filepath?at((ie(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(E.location)},[Qe(Re(h(E.location)),1)],8,Ove)),[[w,"Open in Editor",void 0,{bottom:!0}]]):E.location&&E.location.file!==e.test.file.filepath?(ie(),ve("span",Pve,Re(h(E.location)),1)):He("",!0)])]),X("div",Rve,Re(E.message),1),Ne(nve,{annotation:E},null,8,["annotation"])]))),128))],64)):He("",!0),e.test.artifacts.length?(ie(),ve(nt,{key:3},[b[6]||(b[6]=X("h1",{"m-2":""}," Test Artifacts ",-1)),(ie(!0),ve(nt,null,$n(e.test.artifacts,(E,L)=>(ie(),ve("div",{key:E.type+L,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",$ve,[X("div",null,[E.location&&E.location.file===e.test.file.filepath?at((ie(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:P=>o(E.location)},[Qe(Re(h(E.location)),1)],8,Ive)),[[w,"Open in Editor",void 0,{bottom:!0}]]):E.location&&E.location.file!==e.test.file.filepath?(ie(),ve("span",Dve,Re(h(E.location)),1)):He("",!0)])]),E.type==="internal:toMatchScreenshot"&&E.kind==="visual-regression"?(ie(),Ve(wve,{key:0,regression:E},null,8,["regression"])):He("",!0)]))),128))],64)):He("",!0),g.value.length?(ie(),ve(nt,{key:4},[b[7]||(b[7]=X("h1",{"m-2":""}," Test Meta ",-1)),X("div",zve,[(ie(!0),ve(nt,null,$n(g.value,([E,L])=>(ie(),ve(nt,{key:E},[X("div",Fve,Re(E),1),X("pre",Hve,Re(L),1)],64))),128))])],64)):He("",!0),K(Zn)?(ie(),Ve(Dp,{key:5,modelValue:K(c),"onUpdate:modelValue":b[3]||(b[3]=E=>Mt(c)?c.value=E:null),direction:"right"},{default:We(()=>[K(s)?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(g1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:b[2]||(b[2]=E=>c.value=!1)},null,8,["file","name","url"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])):He("",!0)])}}}),Wve=Ni(Bve,[["__scopeId","data-v-1a68630b"]]),qve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},jve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Uve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Vve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Gve={class:"flex text-lg"},Kve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Xve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Yve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Zve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Jve=["flex-1"],l0=rt({__name:"FileDetails",setup(e){const t=Ge({nodes:[],links:[]}),r=Ge(!1),o=Ge(!1),s=Ge(!1),c=Ge(void 0),f=Ge(!0),d=ke(()=>Bs.value?ft.state.idMap.get(Bs.value):void 0),h=ke(()=>{const _=Gt.value;if(!(!_||!_.filepath))return{filepath:_.filepath,projectName:_.file.projectName||""}}),p=ke(()=>Gt.value&&yp(Gt.value)),g=ke(()=>!!Gt.value?.meta?.typecheck);function v(){const _=Gt.value?.filepath;_&&fetch(`/__open-in-editor?file=${encodeURIComponent(_)}`)}function b(_){_==="graph"&&(o.value=!0),hn.value=_}const w=ke(()=>Tx.value?.reduce((_,{size:$})=>_+$,0)??0);function E(_){r.value=_}const L=/[/\\]node_modules[/\\]/;async function P(_=!1){if(!(s.value||h.value?.filepath===c.value&&!_)){s.value=!0,await Et();try{const $=h.value;if(!$){s.value=!1;return}if(_||!c.value||$.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let W=await ft.rpc.getModuleGraph($.projectName,$.filepath,!!Zn);f.value&&(gr&&(W=typeof window.structuredClone<"u"?window.structuredClone(W):KA(W)),W.inlined=W.inlined.filter(ne=>!L.test(ne)),W.externalized=W.externalized.filter(ne=>!L.test(ne))),t.value=Gge(W,$.filepath),c.value=$.filepath}b("graph")}finally{await new Promise($=>setTimeout($,100)),s.value=!1}}}hp(()=>[h.value,hn.value,f.value],([,_,$],W)=>{_==="graph"&&P(W&&$!==W[2])},{debounce:100,immediate:!0});const M=ke(()=>{const _=Gt.value?.file.projectName||"";return Oe.colors.get(_)||Qw(Gt.value?.file.projectName)}),R=ke(()=>ex(M.value)),I=ke(()=>{const _=Bs.value;if(!_)return Gt.value?.name;const $=[];let W=ft.state.idMap.get(_);for(;W;)$.push(W.name),W=W.suite?W.suite:W===W.file?void 0:W.file;return $.reverse().join(" > ")});return(_,$)=>{const W=vr("tooltip");return K(Gt)?(ie(),ve("div",qve,[X("div",null,[X("div",jve,[Ne(c1,{state:K(Gt).result?.state,mode:K(Gt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?at((ie(),ve("div",Uve,null,512)),[[W,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):He("",!0),K(Gt)?.file.projectName?(ie(),ve("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:zt({backgroundColor:M.value,color:R.value})},Re(K(Gt).file.projectName),5)):He("",!0),X("div",Vve,Re(I.value),1),X("div",Gve,[K(gr)?He("",!0):at((ie(),Ve(_t,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!K(Gt)?.filepath,onClick:v},null,8,["disabled"])),[[W,"Open in editor",void 0,{bottom:!0}]])])]),X("div",Kve,[X("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==null}]),"data-testid":"btn-report",onClick:$[0]||($[0]=ne=>b(null))},[...$[5]||($[5]=[X("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),X("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="graph"}]),onClick:$[1]||($[1]=ne=>b("graph"))},[s.value?(ie(),ve("span",Xve)):(ie(),ve("span",Yve)),$[6]||($[6]=Qe(" Module Graph ",-1))],2),X("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="editor"}]),onClick:$[2]||($[2]=ne=>b("editor"))},[$[7]||($[7]=X("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Re(r.value?"* ":"")+"Code ",1)],2),X("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="console",op20:K(hn)!=="console"&&w.value===0}]),onClick:$[3]||($[3]=ne=>b("console"))},[$[8]||($[8]=X("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Re(w.value)+") ",1)],2)])]),X("div",Zve,[o.value?(ie(),ve("div",{key:0,"flex-1":K(hn)==="graph"&&""},[at(Ne(Pme,{modelValue:f.value,"onUpdate:modelValue":$[4]||($[4]=ne=>f.value=ne),graph:t.value,"data-testid":"graph","project-name":K(Gt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ro,K(hn)==="graph"&&!s.value]])],8,Jve)):He("",!0),K(hn)==="editor"?(ie(),Ve(cme,{key:K(Gt).id,file:K(Gt),"data-testid":"editor",onDraft:E},null,8,["file"])):K(hn)==="console"?(ie(),Ve(sme,{key:2,file:K(Gt),"data-testid":"console"},null,8,["file"])):!K(hn)&&!d.value&&K(Gt)?(ie(),Ve(Qme,{key:3,file:K(Gt),"data-testid":"report"},null,8,["file"])):!K(hn)&&d.value?(ie(),Ve(Wve,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):He("",!0)])])):He("",!0)}}}),Qve=""+new URL("../favicon.svg",import.meta.url).href;function eye(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let nu;function Nh(){Nh.init||(Nh.init=!0,nu=eye()!==-1)}var pf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Nh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",nu&&this.$el.appendChild(e),e.data="about:blank",nu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!nu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const tye=lb();ob("data-v-b329ee4c");const nye={class:"resize-observer",tabindex:"-1"};sb();const rye=tye((e,t,r,o,s,c)=>(ie(),Ve("div",nye)));pf.render=rye;pf.__scopeId="data-v-b329ee4c";pf.__file="src/components/ResizeObserver.vue";function ru(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(t){return typeof t}:ru=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function iye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oye(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,o=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v1){var p=d.find(function(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Et(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function w1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new hye(e,o,r);e._vue_visibilityState=s}}function pye(e,t,r){var o=t.value,s=t.oldValue;if(!b1(o,s)){var c=e._vue_visibilityState;if(!o){x1(e);return}c?c.createObserver(o,r):w1(e,{value:o},r)}}function x1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var gye={beforeMount:w1,updated:pye,unmounted:x1},mye={itemsLimit:1e3},vye=/(auto|scroll)/;function k1(e,t){return e.parentNode===null?t:k1(e.parentNode,t.concat([e]))}var Fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},yye=function(t){return Fd(t,"overflow")+Fd(t,"overflow-y")+Fd(t,"overflow-x")},bye=function(t){return vye.test(yye(t))};function c0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=k1(e.parentNode,[]),r=0;r{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Uu({id:Sye++,index:t,used:!0,key:o,type:s}),f=Gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let L,P,M,R,I;if(!p)L=P=R=I=M=0;else if(this.$_prerender)L=R=0,P=I=Math.min(this.prerender,h.length),M=null;else{const G=this.getScroll();if(t){let O=G.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&OG.start&&(k=z),z=~~((C+k)/2);while(z!==B);for(z<0&&(z=0),L=z,M=g[p-1].accumulator,P=z;Pp&&(P=p)),R=L;Rp&&(P=p),R<0&&(R=0),I>p&&(I=p),M=Math.ceil(p/o)*r}}P-L>mye.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let _;const $=L<=this.$_endIndex&&P>=this.$_startIndex;if($)for(let G=0,j=w.length;G=P)&&this.unuseView(_));const W=$?null:new Map;let ne,ee,Z;for(let G=L;G=N.length)&&(_=this.addView(w,G,ne,j,ee),this.unuseView(_,!0),N=b.get(ee)),_=N[Z],W.set(ee,Z+1)),v.delete(_.nr.key),_.nr.used=!0,_.nr.index=G,_.nr.key=j,_.nr.type=ee,v.set(j,_),O=!0;else if(!_.nr.used&&(_.nr.used=!0,O=!0,N)){const C=N.indexOf(_);C!==-1&&N.splice(C,1)}_.item=ne,O&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(_.position=g[G-1].accumulator,_.offset=0):(_.position=Math.floor(G/o)*r,_.offset=G%o*s)}return this.$_startIndex=L,this.$_endIndex=P,this.emitUpdate&&this.$emit("update",L,P,R,I),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:$}},getListenerTarget(){let e=c0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Rh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=c0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const _ye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Tye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Cye(e,t,r,o,s,c){const f=Go("ResizeObserver"),d=vr("observe-visibility");return at((ie(),ve("div",{class:ot(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(ie(),ve("div",_ye,[Dt(e.$slots,"before")],512)):He("v-if",!0),(ie(),Ve(Xd(r.listTag),{ref:"wrapper",style:zt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:We(()=>[(ie(!0),ve(nt,null,$n(s.pool,h=>(ie(),Ve(Xd(r.itemTag),ki({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},q_(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:We(()=>[Dt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Dt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ie(),ve("div",Tye,[Dt(e.$slots,"after")],512)):He("v-if",!0),Ne(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}zp.render=Cye;zp.__file="src/components/RecycleScroller.vue";function Eye(e){const t=ke(()=>hh.value?!1:!it.onlyTests),r=ke(()=>Vn.value===""),o=Ge(Vn.value);hp(()=>Vn.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Vn.value="",h&&e.value?.focus()}function c(h){it.failed=!1,it.success=!1,it.skipped=!1,it.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,g,v,b){Qs.value&&(gn.value.search=h?.trim()??"",gn.value.failed=p,gn.value.success=g,gn.value.skipped=v,gn.value.onlyTests=b)}return xt(()=>[o.value,it.failed,it.success,it.skipped,it.onlyTests],([h,p,g,v,b])=>{d(h,p,g,v,b),Oe.filterNodes()},{flush:"post"}),xt(()=>Dr.value.length,h=>{h&&(gn.value.expandAll=void 0)},{flush:"post"}),{initialized:Qs,filter:it,search:Vn,disableFilter:t,isFiltered:Zw,isFilteredByStatus:hh,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:cf,testsTotal:JA,uiEntries:Jn}}const Aye=["open"],Lye=rt({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ge(!0);return(r,o)=>(ie(),ve("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[X("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Dt(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Dt(r.$slots,"default")],40,Aye))}}),Mye={"flex-1":"","ms-2":"","select-none":""},Wc=rt({__name:"FilterStatus",props:da({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue");return(r,o)=>(ie(),ve("label",ki({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Gc(s=>t.value=!t.value,["prevent"]))}),[X("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),at(X("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[Zb,t.value]]),X("span",Mye,Re(e.label),1)],16))}}),Nye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Oye=rt({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(ie(),ve("button",Nye,[X("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Pye=["aria-label","data-current"],Rye={key:1,"w-4":""},$ye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Iye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Dye={"text-sm":"",truncate:"","font-light":""},zye=["text","innerHTML"],Fye={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Hye={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Bye={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Wye={key:1},qye=rt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=ke(()=>ft.state.idMap.get(e.taskId)),r=ke(()=>{if(gr)return!1;const P=t.value;return P&&yp(P)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Oe.collapseNode(e.taskId):Oe.expandNode(e.taskId)}async function s(P){e.onItemClick?.(P),Os.value&&(Cu.value=!0,await Et()),e.type==="file"?await _p([P.file]):await Xce(P)}function c(P){return ft.rpc.updateSnapshot(P.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(P,M)=>`${e.taskId}-${M}`)),d=ke(()=>{const P=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${P.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>Yw(e.name)),g=ke(()=>{const P=ZA.value,M=p.value;return P?M.replace(P,R=>`${R}`):M}),v=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>v.value?"color-red5 dark:color-#f43f5e":null);function E(){const P=t.value;e.type==="file"?e.onItemClick?.(P):gx(P)}const L=ke(()=>ex(e.projectNameColor));return(P,M)=>{const R=vr("tooltip");return t.value?(ie(),ve("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:zt(d.value),"aria-label":e.name,"data-current":e.current,onClick:M[2]||(M[2]=I=>o())},[e.indent>0?(ie(!0),ve(nt,{key:0},$n(f.value,I=>(ie(),ve("div",{key:I,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):He("",!0),e.type==="file"||e.type==="suite"?(ie(),ve("div",Rye,[X("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):He("",!0),Ne(c1,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),X("div",$ye,[e.type==="file"&&e.typecheck?at((ie(),ve("div",Iye,null,512)),[[R,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):He("",!0),X("span",Dye,[e.type==="file"&&e.projectName?(ie(),ve("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:zt({backgroundColor:e.projectNameColor,color:L.value})},Re(e.projectName),5)):He("",!0),X("span",{text:e.state==="fail"?"red-500":"",innerHTML:g.value},null,8,zye)]),typeof e.duration=="number"?(ie(),ve("span",Fye,Re(e.duration>0?e.duration:"< 1")+"ms ",1)):He("",!0)]),X("div",Hye,[!K(gr)&&r.value?at((ie(),Ve(Oye,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=Gc(I=>c(t.value),["prevent","stop"]))},null,512)),[[R,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):He("",!0),Ne(K(Qi),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:We(()=>[v.value?(ie(),ve("div",Bye,[M[5]||(M[5]=X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),X("div",null,[Qe(Re(b.value)+": this feature is not available, you have disabled ",1),M[3]||(M[3]=X("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=Qe(" in your configuration file.",-1))]),M[6]||(M[6]=X("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(ie(),ve("div",Wye,Re(b.value),1))]),default:We(()=>[Ne(_t,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Gc(E,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),K(gr)?He("",!0):at((ie(),Ve(_t,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=Gc(I=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[R,h.value,void 0,{bottom:!0}]])])],12,Pye)):He("",!0)}}}),jye=Ni(qye,[["__scopeId","data-v-58d301d8"]]),Uye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Vye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Gye=["op"],Kye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Xye={"text-red5":""},Yye={"text-yellow5":""},Zye={"text-green5":""},Jye={class:"text-purple5:50"},Qye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},e0e=["disabled"],t0e=["disabled"],n0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},r0e=rt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>ei.value.includeTaskLocation),s=Ge(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:g,disableClearSearch:v,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:L,testsTotal:P,uiEntries:M}=Eye(s),R=Ge("grid-cols-2"),I=Ge("grid-col-span-2"),_=Ge();return Ow(()=>_.value,([{contentRect:$}])=>{$.width<420?(R.value="grid-cols-2",I.value="grid-col-span-2"):(R.value="grid-cols-4",I.value="grid-col-span-4")}),($,W)=>{const ne=vr("tooltip");return ie(),ve("div",{ref_key:"testExplorerRef",ref:_,h:"full",flex:"~ col"},[X("div",null,[X("div",Uye,[Dt($.$slots,"header",{filteredFiles:K(p)||K(g)?K(L):void 0})]),X("div",Vye,[W[13]||(W[13]=X("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),at(X("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":W[0]||(W[0]=ee=>Mt(d)?d.value=ee:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:K(d).length?"100":"50",onKeydown:[W[1]||(W[1]=ih(ee=>K(w)(!1),["esc"])),W[2]||(W[2]=ih(ee=>r("run",K(p)||K(g)?K(L):void 0),["enter"]))]},null,40,Gye),[[Yb,K(d)]]),at(Ne(_t,{disabled:K(v),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:W[3]||(W[3]=ee=>K(w)(!0))},null,8,["disabled"]),[[ne,"Clear search",void 0,{bottom:!0}]])]),X("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:ot(R.value)},[X("div",{class:ot(I.value),flex:"~ gap-2 items-center"},[W[14]||(W[14]=X("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),W[15]||(W[15]=X("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),at(Ne(_t,{disabled:K(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:W[4]||(W[4]=ee=>K(E)(!1))},null,8,["disabled"]),[[ne,"Clear Filter",void 0,{bottom:!0}]])],2),Ne(Wc,{modelValue:K(f).failed,"onUpdate:modelValue":W[5]||(W[5]=ee=>K(f).failed=ee),label:"Fail"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).success,"onUpdate:modelValue":W[6]||(W[6]=ee=>K(f).success=ee),label:"Pass"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).skipped,"onUpdate:modelValue":W[7]||(W[7]=ee=>K(f).skipped=ee),label:"Skip"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).onlyTests,"onUpdate:modelValue":W[8]||(W[8]=ee=>K(f).onlyTests=ee),label:"Only Tests"},null,8,["modelValue"])],2)]),X("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:W[12]||(W[12]=(...ee)=>K(Bv)&&K(Bv)(...ee))},[Ne(Lye,null,W_({default:We(()=>[(K(p)||K(g))&&K(M).length===0?(ie(),ve(nt,{key:0},[K(c)?(ie(),ve("div",Qye,[W[18]||(W[18]=X("div",{op30:""}," No matched test ",-1)),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(K(v)?null:"hover:op100"),disabled:K(v),onClickPassive:W[9]||(W[9]=ee=>K(w)(!0))}," Clear Search ",42,e0e),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(K(h)?null:"hover:op100"),disabled:K(h),onClickPassive:W[10]||(W[10]=ee=>K(E)(!0))}," Clear Filter ",42,t0e),X("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:W[11]||(W[11]=(...ee)=>K(b)&&K(b)(...ee))}," Clear All ",32)])):(ie(),ve("div",n0e,[...W[19]||(W[19]=[X("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),X("div",{op30:""}," Loading... ",-1)])]))],64)):(ie(),Ve(K(zp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:K(M),buffer:100},{default:We(({item:ee})=>[Ne(jye,{class:ot(["h-28px m-0 p-0",K(po)===ee.id?"bg-active":""]),"task-id":ee.id,expandable:ee.expandable,type:ee.type,current:K(po)===ee.id,indent:ee.indent,name:ee.name,typecheck:ee.typecheck===!0,"project-name":ee.projectName??"","project-name-color":ee.projectNameColor??"",state:ee.state,duration:ee.duration,opened:ee.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[K(c)?{name:"summary",fn:We(()=>[X("div",Kye,[X("span",Xye," FAIL ("+Re(K(P).failed)+") ",1),W[16]||(W[16]=X("span",null,"/",-1)),X("span",Yye," RUNNING ("+Re(K(P).running)+") ",1),X("span",Zye," PASS ("+Re(K(P).success)+") ",1),W[17]||(W[17]=X("span",null,"/",-1)),X("span",Jye," SKIP ("+Re(K(f).onlyTests?K(P).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),i0e={class:"flex text-lg"},o0e=rt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const r=ke(()=>ol.value?"light":"dark");async function o(f){Os.value&&(Cu.value=!0,await Et(),go.value&&(Eu(!0),await Et())),f?.length?await _p(f):await Gce()}function s(){Oe.collapseAllNodes()}function c(){Oe.expandAllNodes()}return(f,d)=>{const h=vr("tooltip");return ie(),Ve(r0e,{border:"r base","on-item-click":K(vce),nested:!0,onRun:o},{header:We(({filteredFiles:p})=>[d[8]||(d[8]=X("img",{"w-6":"","h-6":"",src:Qve,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=X("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),X("div",i0e,[at(Ne(_t,{title:"Collapse tests",disabled:!K(Qs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=g=>s())},null,8,["disabled"]),[[ro,!K(sy)],[h,"Collapse tests",void 0,{bottom:!0}]]),at(Ne(_t,{disabled:!K(Qs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=g=>c())},null,8,["disabled"]),[[ro,K(sy)],[h,"Expand tests",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=g=>K(Eu)(!0))},null,512),[[ro,K(mh)&&!K(Os)||!K(Ws)],[h,"Dashboard",void 0,{bottom:!0}]]),K(mh)&&!K(Os)?(ie(),Ve(K(Qi),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:We(()=>[...d[6]||(d[6]=[X("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),X("div",null,"Coverage enabled but missing html reporter."),X("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:We(()=>[d[7]||(d[7]=X("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):He("",!0),K(Os)?at((ie(),Ve(_t,{key:1,disabled:K(Cu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=g=>K(yce)())},null,8,["disabled"])),[[ro,!K(go)],[h,"Coverage",void 0,{bottom:!0}]]):He("",!0),K(Oe).summary.failedSnapshot&&!K(gr)?at((ie(),Ve(_t,{key:2,icon:"i-carbon:result-old",disabled:!K(Oe).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=g=>K(Oe).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):He("",!0),K(gr)?He("",!0):at((ie(),Ve(_t,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:g=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),at(Ne(_t,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=g=>K(eme)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),s0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},l0e=rt({__name:"ProgressBar",setup(e){const{width:t}=Pw(),r=ke(()=>[Oe.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Ms.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Oe.summary.files;return d>0?t.value*Oe.summary.filesSuccess/d:0}),s=ke(()=>{const d=Oe.summary.files;return d>0?t.value*Oe.summary.filesFailed/d:0}),c=ke(()=>Oe.summary.files-Oe.summary.filesFailed-Oe.summary.filesSuccess),f=ke(()=>{const d=Oe.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ie(),ve("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(r.value)},[X("div",s0e,[X("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ot(r.value),style:zt(`width: ${s.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ot(r.value),style:zt(`left: ${s.value}px; width: ${o.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ot(r.value),style:zt(`left: ${o.value+s.value}px; width: ${f.value}px;`)},"   ",6)])],2))}}),a0e=Ni(l0e,[["__scopeId","data-v-5320005b"]]),c0e={"h-screen":"","w-screen":"",overflow:"hidden"},u0e=rt({__name:"index",setup(e){const t=mce(),r=Nc(({panes:g})=>{h(),d(g)},0),o=Nc(({panes:g})=>{g.forEach((v,b)=>{qs.value[b]=v.size}),f(g),p()},0),s=Nc(({panes:g})=>{g.forEach((v,b)=>{co.value[b]=v.size}),d(g),p()},0),c=Nc(({panes:g})=>{f(g),h()},0);function f(g){At.navigation=g[0].size,At.details.size=g[1].size}function d(g){At.details.browser=g[0].size,At.details.main=g[1].size}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(ie(),ve(nt,null,[Ne(a0e),X("div",c0e,[Ne(K(Gv),{class:"pt-4px",onResized:K(o),onResize:K(c)},{default:We(()=>[Ne(K(Rc),{size:K(qs)[0]},{default:We(()=>[Ne(o0e)]),_:1},8,["size"]),Ne(K(Rc),{size:K(qs)[1]},{default:We(()=>[K(Zn)?(ie(),Ve(K(Gv),{id:"details-splitpanes",key:"browser-detail",onResize:K(r),onResized:K(s)},{default:We(()=>[Ne(K(Rc),{size:K(co)[0],"min-size":"10"},{default:We(()=>[v[0]||(Ys(-1,!0),(v[0]=Ne(sue)).cacheIndex=0,Ys(1),v[0])]),_:1},8,["size"]),Ne(K(Rc),{size:K(co)[1]},{default:We(()=>[K(t)?(ie(),Ve(Iy,{key:"summary"})):K(go)?(ie(),Ve($y,{key:"coverage",src:K(Oy)},null,8,["src"])):(ie(),Ve(l0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ie(),Ve(BT,{key:"ui-detail"},{default:We(()=>[K(t)?(ie(),Ve(Iy,{key:"summary"})):K(go)?(ie(),Ve($y,{key:"coverage",src:K(Oy)},null,8,["src"])):(ie(),Ve(l0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(cue)],64))}}),f0e=[{name:"index",path:"/",component:u0e,props:!0}];/*! + * vue-router v4.6.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Ls=typeof document<"u";function S1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function d0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&S1(e.default)}const bt=Object.assign;function Hd(e,t){const r={};for(const o in t){const s=t[o];r[o]=zr(s)?s.map(e):e(s)}return r}const la=()=>{},zr=Array.isArray;function u0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const _1=/#/g,h0e=/&/g,p0e=/\//g,g0e=/=/g,m0e=/\?/g,T1=/\+/g,v0e=/%5B/g,y0e=/%5D/g,C1=/%5E/g,b0e=/%60/g,E1=/%7B/g,w0e=/%7C/g,A1=/%7D/g,x0e=/%20/g;function Fp(e){return e==null?"":encodeURI(""+e).replace(w0e,"|").replace(v0e,"[").replace(y0e,"]")}function k0e(e){return Fp(e).replace(E1,"{").replace(A1,"}").replace(C1,"^")}function $h(e){return Fp(e).replace(T1,"%2B").replace(x0e,"+").replace(_1,"%23").replace(h0e,"%26").replace(b0e,"`").replace(E1,"{").replace(A1,"}").replace(C1,"^")}function S0e(e){return $h(e).replace(g0e,"%3D")}function _0e(e){return Fp(e).replace(_1,"%23").replace(m0e,"%3F")}function T0e(e){return _0e(e).replace(p0e,"%2F")}function Na(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const C0e=/\/$/,E0e=e=>e.replace(C0e,"");function Bd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=N0e(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Na(f)}}function A0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function f0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function L0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&rl(t.matched[o],r.matched[s])&&L1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function rl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!M0e(e[r],t[r]))return!1;return!0}function M0e(e,t){return zr(e)?d0(e,t):zr(t)?d0(t,e):e===t}function d0(e,t){return zr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function N0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Gi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ih=(function(e){return e.pop="pop",e.push="push",e})({}),Wd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function O0e(e){if(!e)if(Ls){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),E0e(e)}const P0e=/^[^#]+#/;function R0e(e,t){return e.replace(P0e,"#")+t}function $0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const gf=()=>({left:window.scrollX,top:window.scrollY});function I0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=$0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function h0(e,t){return(history.state?history.state.position-t:-1)+e}const Dh=new Map;function D0e(e,t){Dh.set(e,t)}function z0e(e){const t=Dh.get(e);return Dh.delete(e),t}function F0e(e){return typeof e=="string"||e&&typeof e=="object"}function M1(e){return typeof e=="string"||typeof e=="symbol"}let qt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const N1=Symbol("");qt.MATCHER_NOT_FOUND+"",qt.NAVIGATION_GUARD_REDIRECT+"",qt.NAVIGATION_ABORTED+"",qt.NAVIGATION_CANCELLED+"",qt.NAVIGATION_DUPLICATED+"";function il(e,t){return bt(new Error,{type:e,[N1]:!0},t)}function pi(e,t){return e instanceof Error&&N1 in e&&(t==null||!!(e.type&t))}const H0e=["params","query","hash"];function B0e(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of H0e)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function W0e(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&$h(s)):[o&&$h(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function q0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=zr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const j0e=Symbol(""),g0=Symbol(""),Hp=Symbol(""),O1=Symbol(""),zh=Symbol("");function jl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function no(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(il(qt.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):F0e(b)?h(il(qt.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},g=c(()=>e.call(o&&o.instances[s],t,r,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function qd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(S1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(no(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const v=d0e(g)?g.default:g;f.mods[d]=g,f.components[d]=v;const b=(v.__vccOpts||v)[t];return b&&no(b,r,o,f,d,s)()}))}}return c}function U0e(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;frl(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>rl(p,h))||s.push(h))}return[r,o,s]}/*! + * vue-router v4.6.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let V0e=()=>location.protocol+"//"+location.host;function P1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),f0(d,"")}return f0(r,e)+o+s}function G0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=P1(e,location),E=r.value,L=t.value;let P=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}P=L?b.position-L.position:0}else o(w);s.forEach(M=>{M(r.value,E,{delta:P,type:Ih.pop,direction:P?P>0?Wd.forward:Wd.back:Wd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:gf()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function m0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?gf():null}}function K0e(e){const{history:t,location:r}=window,o={value:P1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,g){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:V0e()+e+h;try{t[g?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[g?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,m0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:gf()});c(g.current,g,!0),c(h,bt({},m0(o.value,h,null),{position:g.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function X0e(e){e=O0e(e);const t=K0e(e),r=G0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:R0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Y0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),X0e(e)}let Wo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var rn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(rn||{});const Z0e={type:Wo.Static,value:""},J0e=/[a-zA-Z0-9_]/;function Q0e(e){if(!e)return[[]];if(e==="/")return[[Z0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=rn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",g="";function v(){p&&(r===rn.Static?c.push({type:Wo.Static,value:p}):r===rn.Param||r===rn.ParamRegExp||r===rn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Wo.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;dt.length?t.length===1&&t[0]===On.Static+On.Segment?1:-1:0}function R1(e,t){let r=0;const o=e.score,s=t.score;for(;r0&&t[t.length-1]<0}const ibe={strict:!1,end:!0,sensitive:!1};function obe(e,t,r){const o=nbe(Q0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function sbe(e,t){const r=[],o=new Map;t=u0(ibe,t);function s(v){return o.get(v)}function c(v,b,w){const E=!w,L=w0(v);L.aliasOf=w&&w.record;const P=u0(t,v),M=[L];if("alias"in v){const _=typeof v.alias=="string"?[v.alias]:v.alias;for(const $ of _)M.push(w0(bt({},L,{components:w?w.record.components:L.components,path:$,aliasOf:w?w.record:L})))}let R,I;for(const _ of M){const{path:$}=_;if(b&&$[0]!=="/"){const W=b.record.path,ne=W[W.length-1]==="/"?"":"/";_.path=b.record.path+($&&ne+$)}if(R=obe(_,b,P),w?w.alias.push(R):(I=I||R,I!==R&&I.alias.push(R),E&&v.name&&!x0(R)&&f(v.name)),$1(R)&&h(R),L.children){const W=L.children;for(let ne=0;ne{f(I)}:la}function f(v){if(M1(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const b=cbe(v,r);r.splice(b,0,v),v.record.name&&!x0(v)&&o.set(v.record.name,v)}function p(v,b){let w,E={},L,P;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw il(qt.MATCHER_NOT_FOUND,{location:v});P=w.record.name,E=bt(b0(b.params,w.keys.filter(I=>!I.optional).concat(w.parent?w.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),v.params&&b0(v.params,w.keys.map(I=>I.name))),L=w.stringify(E)}else if(v.path!=null)L=v.path,w=r.find(I=>I.re.test(L)),w&&(E=w.parse(L),P=w.record.name);else{if(w=b.name?o.get(b.name):r.find(I=>I.re.test(b.path)),!w)throw il(qt.MATCHER_NOT_FOUND,{location:v,currentLocation:b});P=w.record.name,E=bt({},b.params,v.params),L=w.stringify(E)}const M=[];let R=w;for(;R;)M.unshift(R.record),R=R.parent;return{name:P,path:L,params:E,matched:M,meta:abe(M)}}e.forEach(v=>c(v));function g(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:g,getRoutes:d,getRecordMatcher:s}}function b0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function w0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:lbe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function lbe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function x0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function abe(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function cbe(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;R1(e,t[c])<0?o=c:r=c+1}const s=ube(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function ube(e){let t=e;for(;t=t.parent;)if($1(t)&&R1(e,t)===0)return t}function $1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function k0(e){const t=pn(Hp),r=pn(O1),o=ke(()=>{const h=K(e.to);return t.resolve(h)}),s=ke(()=>{const{matched:h}=o.value,{length:p}=h,g=h[p-1],v=r.matched;if(!g||!v.length)return-1;const b=v.findIndex(rl.bind(null,g));if(b>-1)return b;const w=S0(h[p-2]);return p>1&&S0(g)===w&&v[v.length-1].path!==w?v.findIndex(rl.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&gbe(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&L1(r.params,o.value.params));function d(h={}){if(pbe(h)){const p=t[K(e.replace)?"replace":"push"](K(e.to)).catch(la);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function fbe(e){return e.length===1?e[0]:e}const dbe=rt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:k0,setup(e,{slots:t}){const r=ir(k0(e)),{options:o}=pn(Hp),s=ke(()=>({[_0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[_0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&fbe(t.default(r));return e.custom?c:za("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),hbe=dbe;function pbe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function gbe(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!zr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function S0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const _0=(e,t,r)=>e??t??r,mbe=rt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=pn(zh),s=ke(()=>e.route||o.value),c=pn(g0,0),f=ke(()=>{let p=K(c);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);dr(g0,ke(()=>f.value+1)),dr(j0e,d),dr(zh,s);const h=Ge();return xt(()=>[h.value,d.value,e.name],([p,g,v],[b,w,E])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===b&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!rl(g,w)||!b)&&(g.enterCallbacks[v]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=d.value,b=v&&v.components[g];if(!b)return T0(r.default,{Component:b,route:p});const w=v.props[g],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,P=za(b,bt({},E,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return T0(r.default,{Component:P,route:p})||P}}});function T0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const vbe=mbe;function ybe(e){const t=sbe(e.routes,e),r=e.parseQuery||W0e,o=e.stringifyQuery||p0,s=e.history,c=jl(),f=jl(),d=jl(),h=Ft(Gi);let p=Gi;Ls&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Hd.bind(null,F=>""+F),v=Hd.bind(null,T0e),b=Hd.bind(null,Na);function w(F,Y){let re,le;return M1(F)?(re=t.getRecordMatcher(F),le=Y):le=F,t.addRoute(le,re)}function E(F){const Y=t.getRecordMatcher(F);Y&&t.removeRoute(Y)}function L(){return t.getRoutes().map(F=>F.record)}function P(F){return!!t.getRecordMatcher(F)}function M(F,Y){if(Y=bt({},Y||h.value),typeof F=="string"){const Q=Bd(r,F,Y.path),he=t.resolve({path:Q.path},Y),de=s.createHref(Q.fullPath);return bt(Q,he,{params:b(he.params),hash:Na(Q.hash),redirectedFrom:void 0,href:de})}let re;if(F.path!=null)re=bt({},F,{path:Bd(r,F.path,Y.path).path});else{const Q=bt({},F.params);for(const he in Q)Q[he]==null&&delete Q[he];re=bt({},F,{params:v(Q)}),Y.params=v(Y.params)}const le=t.resolve(re,Y),ae=F.hash||"";le.params=g(b(le.params));const D=A0e(o,bt({},F,{hash:k0e(ae),path:le.path})),q=s.createHref(D);return bt({fullPath:D,hash:ae,query:o===p0?q0e(F.query):F.query||{}},le,{redirectedFrom:void 0,href:q})}function R(F){return typeof F=="string"?Bd(r,F,h.value.path):bt({},F)}function I(F,Y){if(p!==F)return il(qt.NAVIGATION_CANCELLED,{from:Y,to:F})}function _(F){return ne(F)}function $(F){return _(bt(R(F),{replace:!0}))}function W(F,Y){const re=F.matched[F.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ae=typeof le=="function"?le(F,Y):le;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=R(ae):{path:ae},ae.params={}),bt({query:F.query,hash:F.hash,params:ae.path!=null?{}:F.params},ae)}}function ne(F,Y){const re=p=M(F),le=h.value,ae=F.state,D=F.force,q=F.replace===!0,Q=W(re,le);if(Q)return ne(bt(R(Q),{state:typeof Q=="object"?bt({},ae,Q.state):ae,force:D,replace:q}),Y||re);const he=re;he.redirectedFrom=Y;let de;return!D&&L0e(o,le,re)&&(de=il(qt.NAVIGATION_DUPLICATED,{to:he,from:le}),Be(le,le,!0,!1)),(de?Promise.resolve(de):G(he,le)).catch(ge=>pi(ge)?pi(ge,qt.NAVIGATION_GUARD_REDIRECT)?ge:Se(ge):ce(ge,he,le)).then(ge=>{if(ge){if(pi(ge,qt.NAVIGATION_GUARD_REDIRECT))return ne(bt({replace:q},R(ge.to),{state:typeof ge.to=="object"?bt({},ae,ge.to.state):ae,force:D}),Y||he)}else ge=N(he,le,!0,q,ae);return j(he,le,ge),ge})}function ee(F,Y){const re=I(F,Y);return re?Promise.reject(re):Promise.resolve()}function Z(F){const Y=je.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(F):F()}function G(F,Y){let re;const[le,ae,D]=U0e(F,Y);re=qd(le.reverse(),"beforeRouteLeave",F,Y);for(const Q of le)Q.leaveGuards.forEach(he=>{re.push(no(he,F,Y))});const q=ee.bind(null,F,Y);return re.push(q),Pe(re).then(()=>{re=[];for(const Q of c.list())re.push(no(Q,F,Y));return re.push(q),Pe(re)}).then(()=>{re=qd(ae,"beforeRouteUpdate",F,Y);for(const Q of ae)Q.updateGuards.forEach(he=>{re.push(no(he,F,Y))});return re.push(q),Pe(re)}).then(()=>{re=[];for(const Q of D)if(Q.beforeEnter)if(zr(Q.beforeEnter))for(const he of Q.beforeEnter)re.push(no(he,F,Y));else re.push(no(Q.beforeEnter,F,Y));return re.push(q),Pe(re)}).then(()=>(F.matched.forEach(Q=>Q.enterCallbacks={}),re=qd(D,"beforeRouteEnter",F,Y,Z),re.push(q),Pe(re))).then(()=>{re=[];for(const Q of f.list())re.push(no(Q,F,Y));return re.push(q),Pe(re)}).catch(Q=>pi(Q,qt.NAVIGATION_CANCELLED)?Q:Promise.reject(Q))}function j(F,Y,re){d.list().forEach(le=>Z(()=>le(F,Y,re)))}function N(F,Y,re,le,ae){const D=I(F,Y);if(D)return D;const q=Y===Gi,Q=Ls?history.state:{};re&&(le||q?s.replace(F.fullPath,bt({scroll:q&&Q&&Q.scroll},ae)):s.push(F.fullPath,ae)),h.value=F,Be(F,Y,re,q),Se()}let O;function C(){O||(O=s.listen((F,Y,re)=>{if(!Fe.listening)return;const le=M(F),ae=W(le,Fe.currentRoute.value);if(ae){ne(bt(ae,{replace:!0,force:!0}),le).catch(la);return}p=le;const D=h.value;Ls&&D0e(h0(D.fullPath,re.delta),gf()),G(le,D).catch(q=>pi(q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_CANCELLED)?q:pi(q,qt.NAVIGATION_GUARD_REDIRECT)?(ne(bt(R(q.to),{force:!0}),le).then(Q=>{pi(Q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===Ih.pop&&s.go(-1,!1)}).catch(la),Promise.reject()):(re.delta&&s.go(-re.delta,!1),ce(q,le,D))).then(q=>{q=q||N(le,D,!1),q&&(re.delta&&!pi(q,qt.NAVIGATION_CANCELLED)?s.go(-re.delta,!1):re.type===Ih.pop&&pi(q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),j(le,D,q)}).catch(la)}))}let k=jl(),z=jl(),B;function ce(F,Y,re){Se(F);const le=z.list();return le.length?le.forEach(ae=>ae(F,Y,re)):console.error(F),Promise.reject(F)}function be(){return B&&h.value!==Gi?Promise.resolve():new Promise((F,Y)=>{k.add([F,Y])})}function Se(F){return B||(B=!F,C(),k.list().forEach(([Y,re])=>F?re(F):Y()),k.reset()),F}function Be(F,Y,re,le){const{scrollBehavior:ae}=e;if(!Ls||!ae)return Promise.resolve();const D=!re&&z0e(h0(F.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return Et().then(()=>ae(F,Y,D)).then(q=>q&&I0e(q)).catch(q=>ce(q,F,Y))}const Ae=F=>s.go(F);let Ke;const je=new Set,Fe={currentRoute:h,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:L,resolve:M,options:e,push:_,replace:$,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:z.add,isReady:be,install(F){F.component("RouterLink",hbe),F.component("RouterView",vbe),F.config.globalProperties.$router=Fe,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>K(h)}),Ls&&!Ke&&h.value===Gi&&(Ke=!0,_(s.location).catch(le=>{}));const Y={};for(const le in Gi)Object.defineProperty(Y,le,{get:()=>h.value[le],enumerable:!0});F.provide(Hp,Fe),F.provide(O1,Gh(Y)),F.provide(zh,h);const re=F.unmount;je.add(F),F.unmount=function(){je.delete(F),je.size<1&&(p=Gi,O&&O(),O=null,h.value=Gi,Ke=!1,B=!1),re()}}};function Pe(F){return F.reduce((Y,re)=>Y.then(()=>Z(re)),Promise.resolve())}return Fe}const bbe={tooltip:pE};ww.options.instantMove=!0;ww.options.distance=10;function wbe(){return ybe({history:Y0e(),routes:f0e})}const xbe=[wbe],Bp=Qb(vC);xbe.forEach(e=>{Bp.use(e())});Object.entries(bbe).forEach(([e,t])=>{Bp.directive(e,t)});Bp.mount("#app"); diff --git a/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-DlhE0rqZ.css b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-DlhE0rqZ.css new file mode 100644 index 000000000000..20addcb9cbf0 --- /dev/null +++ b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-DlhE0rqZ.css @@ -0,0 +1 @@ +.CodeMirror-simplescroll-horizontal div,.CodeMirror-simplescroll-vertical div{position:absolute;background:#ccc;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #bbb;border-radius:2px}.CodeMirror-simplescroll-horizontal,.CodeMirror-simplescroll-vertical{position:absolute;z-index:6;background:#eee}.CodeMirror-simplescroll-horizontal{bottom:0;left:0;height:8px}.CodeMirror-simplescroll-horizontal div{bottom:0;height:100%}.CodeMirror-simplescroll-vertical{right:0;top:0;width:8px}.CodeMirror-simplescroll-vertical div{right:0;width:100%}.CodeMirror-overlayscroll .CodeMirror-scrollbar-filler,.CodeMirror-overlayscroll .CodeMirror-gutter-filler{display:none}.CodeMirror-overlayscroll-horizontal div,.CodeMirror-overlayscroll-vertical div{position:absolute;background:#bcd;border-radius:3px}.CodeMirror-overlayscroll-horizontal,.CodeMirror-overlayscroll-vertical{position:absolute;z-index:6}.CodeMirror-overlayscroll-horizontal{bottom:0;left:0;height:6px}.CodeMirror-overlayscroll-horizontal div{bottom:0;height:100%}.CodeMirror-overlayscroll-vertical{right:0;top:0;width:6px}.CodeMirror-overlayscroll-vertical div{right:0;width:100%}#tester-container[data-v-2e86b8c3]:not([data-ready]){width:100%;height:100%;display:flex;align-items:center;justify-content:center}[data-ready] #tester-ui[data-v-2e86b8c3]{width:var(--viewport-width);height:var(--viewport-height);transform:var(--tester-transform);margin-left:var(--tester-margin-left)}#vitest-ui-coverage{width:100%;height:calc(100vh - 42px);border:none}.number[data-v-1bd0f2ea]{font-weight:400;text-align:right}.unhandled-errors[data-v-1bd0f2ea]{--cm-ttc-c-thumb: #ccc}html.dark .unhandled-errors[data-v-1bd0f2ea]{--cm-ttc-c-thumb: #444}:root{--color-link-label: var(--color-text);--color-link: #ddd;--color-node-external: #6C5C33;--color-node-inline: #8bc4a0;--color-node-root: #6e9aa5;--color-node-focused: #e67e22;--color-node-label: var(--color-text);--color-node-stroke: var(--color-text)}html.dark{--color-text: #fff;--color-link: #333;--color-node-external: #c0ad79;--color-node-inline: #468b60;--color-node-root: #467d8b;--color-node-focused: #f39c12}.graph{height:calc(100% - 39px)!important}.graph .node{stroke-width:2px;stroke-opacity:.5}.graph .link{stroke-width:2px}.graph .node:hover:not(.focused){filter:none!important}.graph .node__label{transform:translateY(20px);font-weight:100;filter:brightness(.5)}html.dark .graph .node__label{filter:brightness(1.2)}.scrolls[data-v-08ce44b7]{place-items:center}.task-error[data-v-1fcfe7a4]{--cm-ttc-c-thumb: #ccc}html.dark .task-error[data-v-1fcfe7a4]{--cm-ttc-c-thumb: #444}.task-error[data-v-9d875d6e]{--cm-ttc-c-thumb: #ccc}html.dark .task-error[data-v-9d875d6e]{--cm-ttc-c-thumb: #444}.task-error[data-v-1a68630b]{--cm-ttc-c-thumb: #ccc}html.dark .task-error[data-v-1a68630b]{--cm-ttc-c-thumb: #444}.details-panel{-webkit-user-select:none;user-select:none;width:100%}.checkbox:focus-within{outline:none;margin-bottom:0!important;border-bottom-width:1px}.vertical-line[data-v-58d301d8]:first-of-type{border-left-width:2px}.vertical-line+.vertical-line[data-v-58d301d8]{border-right-width:1px}.test-actions[data-v-58d301d8]{display:none}.item-wrapper:hover .test-actions[data-v-58d301d8]{display:flex}.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.in-progress[data-v-5320005b]{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px;animation:in-progress-stripes-5320005b 2s linear infinite}@keyframes in-progress-stripes-5320005b{0%{background-position:40px 0}to{background-position:0 0}}.graph,.graph>svg{display:block}.graph{height:100%;touch-action:none;width:100%}.graph *{-webkit-touch-callout:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.link{fill:none;stroke-width:4px}.node{--color-stroke: var(--color-node-stroke, rgba(0, 0, 0, .5));cursor:pointer;stroke:none;stroke-width:2px;transition:filter .25s ease,stroke .25s ease,stroke-dasharray .25s ease}.node:hover:not(.focused){filter:brightness(80%);stroke:var(--color-stroke);stroke-dasharray:4px}.node.focused{stroke:var(--color-stroke)}.link__label,.node__label{pointer-events:none;text-anchor:middle}.grabbed{cursor:grabbing!important}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging .splitpanes__pane,*:has(.splitpanes--dragging){-webkit-user-select:none;user-select:none;pointer-events:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out;will-change:width}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out;will-change:height}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.default-theme.splitpanes .splitpanes__pane{background-color:#f2f2f2}.default-theme.splitpanes .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.default-theme.splitpanes .splitpanes__splitter:before,.default-theme.splitpanes .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.default-theme.splitpanes .splitpanes__splitter:hover:before,.default-theme.splitpanes .splitpanes__splitter:hover:after{background-color:#00000040}.default-theme.splitpanes .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}:root{--cm-scheme: light;--cm-foreground: #6e6e6e;--cm-background: #f4f4f4;--cm-comment: #a8a8a8;--cm-string: #555555;--cm-literal: #333333;--cm-keyword: #000000;--cm-function: #4f4f4f;--cm-deleted: #333333;--cm-class: #333333;--cm-builtin: #757575;--cm-property: #333333;--cm-namespace: #4f4f4f;--cm-punctuation: #ababab;--cm-decorator: var(--cm-class);--cm-operator: var(--cm-punctuation);--cm-number: var(--cm-literal);--cm-boolean: var(--cm-literal);--cm-variable: var(--cm-literal);--cm-constant: var(--cm-literal);--cm-symbol: var(--cm-literal);--cm-interpolation: var(--cm-literal);--cm-selector: var(--cm-keyword);--cm-keyword-control: var(--cm-keyword);--cm-regex: var(--cm-string);--cm-json-property: var(--cm-property);--cm-inline-background: var(--cm-background);--cm-comment-style: italic;--cm-url-decoration: underline;--cm-line-number: #a5a5a5;--cm-line-number-gutter: #333333;--cm-line-highlight-background: #eeeeee;--cm-selection-background: #aaaaaa;--cm-marker-color: var(--cm-foreground);--cm-marker-opacity: .4;--cm-marker-font-size: .8em;--cm-font-size: 1em;--cm-line-height: 1.5em;--cm-font-family: monospace;--cm-inline-font-size: var(--cm-font-size);--cm-block-font-size: var(--cm-font-size);--cm-tab-size: 2;--cm-block-padding-x: 1em;--cm-block-padding-y: 1em;--cm-block-margin-x: 0;--cm-block-margin-y: .5em;--cm-block-radius: .3em;--cm-inline-padding-x: .3em;--cm-inline-padding-y: .1em;--cm-inline-radius: .3em}.cm-s-vars.CodeMirror{background-color:var(--cm-background);color:var(--cm-foreground)}.cm-s-vars .CodeMirror-gutters{background:var(--cm-line-number-gutter);color:var(--cm-line-number);border:none}.cm-s-vars .CodeMirror-guttermarker,.cm-s-vars .CodeMirror-guttermarker-subtle,.cm-s-vars .CodeMirror-linenumber{color:var(--cm-line-number)}.cm-s-vars div.CodeMirror-selected,.cm-s-vars.CodeMirror-focused div.CodeMirror-selected{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::selection,.cm-s-vars .CodeMirror-line>span::selection,.cm-s-vars .CodeMirror-line>span>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::-moz-selection,.cm-s-vars .CodeMirror-line>span::-moz-selection,.cm-s-vars .CodeMirror-line>span>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-activeline-background{background:var(--cm-line-highlight-background)}.cm-s-vars .cm-keyword{color:var(--cm-keyword)}.cm-s-vars .cm-variable,.cm-s-vars .cm-variable-2,.cm-s-vars .cm-variable-3,.cm-s-vars .cm-type{color:var(--cm-variable)}.cm-s-vars .cm-builtin{color:var(--cm-builtin)}.cm-s-vars .cm-atom{color:var(--cm-literal)}.cm-s-vars .cm-number{color:var(--cm-number)}.cm-s-vars .cm-def{color:var(--cm-decorator)}.cm-s-vars .cm-string,.cm-s-vars .cm-string-2{color:var(--cm-string)}.cm-s-vars .cm-comment{color:var(--cm-comment)}.cm-s-vars .cm-tag{color:var(--cm-builtin)}.cm-s-vars .cm-meta{color:var(--cm-namespace)}.cm-s-vars .cm-attribute,.cm-s-vars .cm-property{color:var(--cm-property)}.cm-s-vars .cm-qualifier{color:var(--cm-keyword)}.cm-s-vars .cm-error{color:var(--prism-deleted)}.cm-s-vars .cm-operator,.cm-s-vars .cm-bracket{color:var(--cm-punctuation)}.cm-s-vars .CodeMirror-matchingbracket{text-decoration:underline}.cm-s-vars .CodeMirror-cursor{border-left:1px solid currentColor}html,body{height:100%;font-family:Readex Pro,sans-serif;scroll-behavior:smooth}:root{--color-text-light: #000;--color-text-dark: #ddd;--color-text: var(--color-text-light);--background-color: #e4e4e4}html.dark{--color-text: var(--color-text-dark);--background-color: #141414;color:var(--color-text);background-color:var(--background-color);color-scheme:dark}.CodeMirror{height:100%!important;width:100%!important;font-family:inherit}.cm-s-vars .cm-tag{color:var(--cm-keyword)}:root{--cm-foreground: #393a3480;--cm-background: transparent;--cm-comment: #a0ada0;--cm-string: #b56959;--cm-literal: #2f8a89;--cm-number: #296aa3;--cm-keyword: #1c6b48;--cm-function: #6c7834;--cm-boolean: #1c6b48;--cm-constant: #a65e2b;--cm-deleted: #a14f55;--cm-class: #2993a3;--cm-builtin: #ab5959;--cm-property: #b58451;--cm-namespace: #b05a78;--cm-punctuation: #8e8f8b;--cm-decorator: #bd8f8f;--cm-regex: #ab5e3f;--cm-json-property: #698c96;--cm-line-number-gutter: #f8f8f8;--cm-ttc-c-thumb: #eee;--cm-ttc-c-track: white}html.dark{--cm-scheme: dark;--cm-foreground: #d4cfbf80;--cm-background: transparent;--cm-comment: #758575;--cm-string: #d48372;--cm-literal: #429988;--cm-keyword: #4d9375;--cm-boolean: #1c6b48;--cm-number: #6394bf;--cm-variable: #c2b36e;--cm-function: #a1b567;--cm-deleted: #a14f55;--cm-class: #54b1bf;--cm-builtin: #e0a569;--cm-property: #dd8e6e;--cm-namespace: #db889a;--cm-punctuation: #858585;--cm-decorator: #bd8f8f;--cm-regex: #ab5e3f;--cm-json-property: #6b8b9e;--cm-line-number: #888888;--cm-line-number-gutter: #161616;--cm-line-highlight-background: #444444;--cm-selection-background: #44444450;--cm-ttc-c-thumb: #222;--cm-ttc-c-track: #111}.splitpanes__pane{background-color:unset!important}.splitpanes__splitter{position:relative;background-color:#7d7d7d1a;z-index:10}.splitpanes__splitter:before{content:"";position:absolute;left:0;top:0;transition:opacity .4s;background-color:#7d7d7d1a;opacity:0;z-index:1}.splitpanes__splitter:hover:before{opacity:1}.splitpanes--vertical>.splitpanes__splitter:before{left:0;right:-10px;height:100%}.splitpanes--horizontal>.splitpanes__splitter:before{top:0;bottom:-10px;width:100%}.splitpanes.loading .splitpanes__pane{transition:none!important;height:100%}.CodeMirror-scroll{scrollbar-width:none}.CodeMirror-scroll::-webkit-scrollbar,.codemirror-scrolls::-webkit-scrollbar{display:none}.codemirror-scrolls{overflow:auto!important;scrollbar-width:thin;scrollbar-color:var(--cm-ttc-c-thumb) var(--cm-ttc-c-track)}.CodeMirror-simplescroll-horizontal,.CodeMirror-simplescroll-vertical{background-color:var(--cm-ttc-c-track)!important;border:none!important}.CodeMirror-simplescroll-horizontal div,.CodeMirror-simplescroll-vertical div{background-color:var(--cm-ttc-c-thumb)!important;border:none!important}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:var(--cm-ttc-c-track)!important}.CodeMirror{overflow:unset!important}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar{display:none!important}.CodeMirror-scroll{margin-bottom:unset!important;margin-right:unset!important;padding-bottom:unset!important}.scrolls::-webkit-scrollbar{width:8px;height:8px}.scrolls{overflow:auto!important;scrollbar-width:thin;scrollbar-color:var(--cm-ttc-c-thumb) var(--cm-ttc-c-track)}.scrolls::-webkit-scrollbar-track{background:var(--cm-ttc-c-track)}.scrolls::-webkit-scrollbar-thumb{background-color:var(--cm-ttc-c-thumb);border:2px solid var(--cm-ttc-c-thumb)}.scrolls::-webkit-scrollbar-thumb,.scrolls-rounded::-webkit-scrollbar-track{border-radius:3px}.scrolls::-webkit-scrollbar-corner{background-color:var(--cm-ttc-c-track)}.v-popper__popper .v-popper__inner{font-size:12px;padding:4px 6px;border-radius:4px;background-color:var(--background-color);color:var(--color-text)}.v-popper__popper .v-popper__arrow-outer{border-color:var(--background-color)}.codemirror-busy>.CodeMirror>.CodeMirror-scroll>.CodeMirror-sizer .CodeMirror-lines{cursor:wait!important}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.dark .dark\:i-carbon-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-arrow-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-checkmark,.i-carbon\:checkmark,[i-carbon-checkmark=""],[i-carbon\:checkmark=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-checkmark-outline-error,[i-carbon-checkmark-outline-error=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 24a10 10 0 1 1 10-10h2a12 12 0 1 0-12 12Z'/%3E%3Cpath fill='currentColor' d='M12 15.59L9.41 13L8 14.41l4 4l7-7L17.59 10zM30 24a6 6 0 1 0-6 6a6.007 6.007 0 0 0 6-6m-2 0a3.95 3.95 0 0 1-.567 2.019l-5.452-5.452A3.95 3.95 0 0 1 24 20a4.005 4.005 0 0 1 4 4m-8 0a3.95 3.95 0 0 1 .567-2.019l5.452 5.452A3.95 3.95 0 0 1 24 28a4.005 4.005 0 0 1-4-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-close,.i-carbon\:close,[i-carbon-close=""],[i-carbon\:close=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-compare,.i-carbon\:compare,[i-carbon-compare=""],[i-carbon\:compare=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28 6H18V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h10v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2M4 15h6.17l-2.58 2.59L9 19l5-5l-5-5l-1.41 1.41L10.17 13H4V4h12v20H4Zm12 13v-2a2 2 0 0 0 2-2V8h10v9h-6.17l2.58-2.59L23 13l-5 5l5 5l1.41-1.41L21.83 19H28v9Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-content-delivery-network{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='21' cy='21' r='2' fill='currentColor'/%3E%3Ccircle cx='7' cy='7' r='2' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M27 31a4 4 0 1 1 4-4a4.01 4.01 0 0 1-4 4m0-6a2 2 0 1 0 2 2a2.006 2.006 0 0 0-2-2'/%3E%3Cpath fill='currentColor' d='M30 16A14.04 14.04 0 0 0 16 2a13.04 13.04 0 0 0-6.8 1.8l1.1 1.7a24 24 0 0 1 2.4-1A25.1 25.1 0 0 0 10 15H4a11.15 11.15 0 0 1 1.4-4.7L3.9 9A13.84 13.84 0 0 0 2 16a14 14 0 0 0 14 14a13.4 13.4 0 0 0 5.2-1l-.6-1.9a11.44 11.44 0 0 1-5.2.9A21.07 21.07 0 0 1 12 17h17.9a3.4 3.4 0 0 0 .1-1M12.8 27.6a13 13 0 0 1-5.3-3.1A12.5 12.5 0 0 1 4 17h6a25 25 0 0 0 2.8 10.6M12 15a21.45 21.45 0 0 1 3.3-11h1.4A21.45 21.45 0 0 1 20 15Zm10 0a23.3 23.3 0 0 0-2.8-10.6A12.09 12.09 0 0 1 27.9 15Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-dashboard,.i-carbon\:dashboard{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M24 21h2v5h-2zm-4-5h2v10h-2zm-9 10a5.006 5.006 0 0 1-5-5h2a3 3 0 1 0 3-3v-2a5 5 0 0 1 0 10'/%3E%3Cpath fill='currentColor' d='M28 2H4a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V4a2 2 0 0 0-2-2m0 9H14V4h14ZM12 4v7H4V4ZM4 28V13h24l.002 15Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-document,[i-carbon-document=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m25.7 9.3l-7-7c-.2-.2-.4-.3-.7-.3H8c-1.1 0-2 .9-2 2v24c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V10c0-.3-.1-.5-.3-.7M18 4.4l5.6 5.6H18zM24 28H8V4h8v6c0 1.1.9 2 2 2h6z'/%3E%3Cpath fill='currentColor' d='M10 22h12v2H10zm0-6h12v2H10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-ibm-cloud-direct-link-2-connect{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.2 13c.4 1.2 1.5 2 2.8 2c1.7 0 3-1.3 3-3s-1.3-3-3-3c-1.3 0-2.4.8-2.8 2H5c-1.1 0-2 .9-2 2v6H0v2h3v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4h-2v4H5V13zm2.8-2c.6 0 1 .4 1 1s-.4 1-1 1s-1-.4-1-1s.4-1 1-1'/%3E%3Cpath fill='currentColor' d='M29 11V5c0-1.1-.9-2-2-2H13c-1.1 0-2 .9-2 2v4h2V5h14v14H14.8c-.4-1.2-1.5-2-2.8-2c-1.7 0-3 1.3-3 3s1.3 3 3 3c1.3 0 2.4-.8 2.8-2H27c1.1 0 2-.9 2-2v-6h3v-2zM12 21c-.6 0-1-.4-1-1s.4-1 1-1s1 .4 1 1s-.4 1-1 1'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-launch{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 28H6a2.003 2.003 0 0 1-2-2V6a2.003 2.003 0 0 1 2-2h10v2H6v20h20V16h2v10a2.003 2.003 0 0 1-2 2'/%3E%3Cpath fill='currentColor' d='M20 2v2h6.586L18 12.586L19.414 14L28 5.414V12h2V2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-notebook{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 10h7v2h-7zm0 5h7v2h-7zm0 5h7v2h-7z'/%3E%3Cpath fill='currentColor' d='M28 5H4a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V7a2 2 0 0 0-2-2M4 7h11v18H4Zm13 18V7h11l.002 18Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-reset{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-timer,[i-carbon-timer=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 11h2v9h-2zm-2-9h6v2h-6z'/%3E%3Cpath fill='currentColor' d='m28 9l-1.42-1.41l-2.25 2.25a10.94 10.94 0 1 0 1.18 1.65ZM16 26a9 9 0 1 1 9-9a9 9 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-wifi-off{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='16' cy='25' r='2' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M30 3.414L28.586 2L2 28.586L3.414 30l10.682-10.682a5.94 5.94 0 0 1 6.01 1.32l1.414-1.414a7.97 7.97 0 0 0-5.125-2.204l3.388-3.388a12 12 0 0 1 4.564 2.765l1.413-1.414a14 14 0 0 0-4.426-2.903l2.997-2.997a18 18 0 0 1 4.254 3.075L30 10.743v-.002a20 20 0 0 0-4.19-3.138zm-15.32 9.664l2.042-2.042C16.48 11.023 16.243 11 16 11a13.95 13.95 0 0 0-9.771 3.993l1.414 1.413a11.97 11.97 0 0 1 7.037-3.328M16 7a18 18 0 0 1 4.232.525l1.643-1.642A19.95 19.95 0 0 0 2 10.74v.023l1.404 1.404A17.92 17.92 0 0 1 16 7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:chart-relationship{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 6a3.996 3.996 0 0 0-3.858 3H17.93A7.996 7.996 0 1 0 9 17.93v4.212a4 4 0 1 0 2 0v-4.211a7.95 7.95 0 0 0 3.898-1.62l3.669 3.67A3.95 3.95 0 0 0 18 22a4 4 0 1 0 4-4a3.95 3.95 0 0 0-2.019.567l-3.67-3.67A7.95 7.95 0 0 0 17.932 11h4.211A3.993 3.993 0 1 0 26 6M12 26a2 2 0 1 1-2-2a2 2 0 0 1 2 2m-2-10a6 6 0 1 1 6-6a6.007 6.007 0 0 1-6 6m14 6a2 2 0 1 1-2-2a2 2 0 0 1 2 2m2-10a2 2 0 1 1 2-2a2 2 0 0 1-2 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:checkbox{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:checkbox-checked-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M14 21.5l-5-4.957L10.59 15L14 18.346L21.409 11L23 12.577Z'/%3E%3Cpath fill='none' d='m14 21.5l-5-4.957L10.59 15L14 18.346L21.409 11L23 12.577Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:chevron-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 22L6 12l1.4-1.4l8.6 8.6l8.6-8.6L26 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:chevron-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:circle-dash,[i-carbon\:circle-dash=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7.7 4.7a14.7 14.7 0 0 0-3 3.1L6.3 9a13.3 13.3 0 0 1 2.6-2.7zm-3.1 7.6l-1.9-.6A12.5 12.5 0 0 0 2 16h2a11.5 11.5 0 0 1 .6-3.7m-1.9 8.1a14.4 14.4 0 0 0 2 3.9l1.6-1.2a12.9 12.9 0 0 1-1.7-3.3zm5.1 6.9a14.4 14.4 0 0 0 3.9 2l.6-1.9A12.9 12.9 0 0 1 9 25.7zm3.9-24.6l.6 1.9A11.5 11.5 0 0 1 16 4V2a12.5 12.5 0 0 0-4.3.7m12.5 24.6a15.2 15.2 0 0 0 3.1-3.1L25.7 23a11.5 11.5 0 0 1-2.7 2.7zm3.2-7.6l1.9.6A15.5 15.5 0 0 0 30 16h-2a11.5 11.5 0 0 1-.6 3.7m1.8-8.1a14.4 14.4 0 0 0-2-3.9l-1.6 1.2a12.9 12.9 0 0 1 1.7 3.3zm-5.1-7a14.4 14.4 0 0 0-3.9-2l-.6 1.9a12.9 12.9 0 0 1 3.3 1.7zm-3.8 24.7l-.6-1.9a11.5 11.5 0 0 1-3.7.6v2a21.4 21.4 0 0 0 4.3-.7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:code{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9zM1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23zm11.42 9.484L17.64 6l1.932.517L14.352 26z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:code-reference,[i-carbon\:code-reference=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 20v2h4.586L2 28.586L3.414 30L10 23.414V28h2v-8zm26-10l-6-6l-1.414 1.414L27.172 10l-4.586 4.586L24 16zm-16.08 7.484l4.15-15.483l1.932.517l-4.15 15.484zM4 10l6-6l1.414 1.414L6.828 10l4.586 4.586L10 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:collapse-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 15h-2V7H13V5h15a2 2 0 0 1 2 2Z'/%3E%3Cpath fill='currentColor' d='M25 20h-2v-8H8v-2h15a2 2 0 0 1 2 2Z'/%3E%3Cpath fill='currentColor' d='M18 27H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2M4 17v8h14.001L18 17Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:document-blank,[i-carbon\:document-blank=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m25.7 9.3l-7-7A.9.9 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h16a2.006 2.006 0 0 0 2-2V10a.9.9 0 0 0-.3-.7M18 4.4l5.6 5.6H18ZM24 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:expand-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10h14a2.003 2.003 0 0 0 2-2V4a2.003 2.003 0 0 0-2-2H12a2.003 2.003 0 0 0-2 2v1H6V2H4v23a2.003 2.003 0 0 0 2 2h4v1a2.003 2.003 0 0 0 2 2h14a2.003 2.003 0 0 0 2-2v-4a2.003 2.003 0 0 0-2-2H12a2.003 2.003 0 0 0-2 2v1H6v-8h4v1a2.003 2.003 0 0 0 2 2h14a2.003 2.003 0 0 0 2-2v-4a2.003 2.003 0 0 0-2-2H12a2.003 2.003 0 0 0-2 2v1H6V7h4v1a2.003 2.003 0 0 0 2 2m0-6h14l.001 4H12Zm0 20h14l.001 4H12Zm0-10h14l.001 4H12Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:filter{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 28h-4a2 2 0 0 1-2-2v-7.59L4.59 11A2 2 0 0 1 4 9.59V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v3.59a2 2 0 0 1-.59 1.41L20 18.41V26a2 2 0 0 1-2 2M6 6v3.59l8 8V26h4v-8.41l8-8V6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:filter-remove{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 11.414L28.586 10L24 14.586L19.414 10L18 11.414L22.586 16L18 20.585L19.415 22L24 17.414L28.587 22L30 20.587L25.414 16z'/%3E%3Cpath fill='currentColor' d='M4 4a2 2 0 0 0-2 2v3.17a2 2 0 0 0 .586 1.415L10 18v8a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2h-2v2h-4v-8.83l-.586-.585L4 9.171V6h20v2h2V6a2 2 0 0 0-2-2Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:folder-details-reference{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 28h7v2h-7zm0-4h14v2H16zm0-4h14v2H16zM4 20v2h4.586L2 28.586L3.414 30L10 23.414V28h2v-8zM28 8H16l-3.414-3.414A2 2 0 0 0 11.172 4H4a2 2 0 0 0-2 2v12h2V6h7.172l3.414 3.414l.586.586H28v8h2v-8a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:folder-off{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28 8h-2.586L30 3.414L28.586 2L2 28.586L3.414 30l2-2H28a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2m0 18H7.414l16-16H28zM4 6h7.172l3.414 3.414l.586.586H18V8h-2l-3.414-3.414A2 2 0 0 0 11.172 4H4a2 2 0 0 0-2 2v18h2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:image{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 14a3 3 0 1 0-3-3a3 3 0 0 0 3 3m0-4a1 1 0 1 1-1 1a1 1 0 0 1 1-1'/%3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 22H6v-6l5-5l5.59 5.59a2 2 0 0 0 2.82 0L21 19l5 5Zm0-4.83l-3.59-3.59a2 2 0 0 0-2.82 0L18 19.17l-5.59-5.59a2 2 0 0 0-2.82 0L6 17.17V6h20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:image-reference{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 20v2h4.586L2 28.586L3.414 30L10 23.414V28h2v-8zm15-6a3 3 0 1 0-3-3a3 3 0 0 0 3 3m0-4a1 1 0 1 1-1 1a1 1 0 0 1 1-1'/%3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v10h2V6h20v15.17l-3.59-3.59a2 2 0 0 0-2.82 0L18 19.17L11.83 13l-1.414 1.416L14 18l2.59 2.59a2 2 0 0 0 2.82 0L21 19l5 5v2H16v2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:information-square,[i-carbon\:information-square=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8'/%3E%3Cpath fill='currentColor' d='M26 28H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v20a2 2 0 0 1-2 2M6 6v20h20V6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:intrusion-prevention{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='22' cy='23.887' r='2' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.522A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.478L30 24zM22 28a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4m3-18H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h21a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2M4 4v4h21V4zm8 24H4v-4h8v-2H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h8z'/%3E%3Cpath fill='currentColor' d='M28 12H7a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5v-2H7v-4h21v2h2v-2a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:mobile{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 4H10a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h12a2.003 2.003 0 0 0 2-2V6a2 2 0 0 0-2-2m0 2v2H10V6ZM10 28V10h12v18Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:mobile-add{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28 24h-4v-4h-2v4h-4v2h4v4h2v-4h4z'/%3E%3Cpath fill='currentColor' d='M10 28V10h12v7h2V6a2 2 0 0 0-2-2H10a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h6v-2Zm0-22h12v2H10Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:play{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28M8 6.69v18.62L24.925 16Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:play-filled-alt{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:redo,[i-carbon\:redo=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:renew{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:report{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 18h8v2h-8zm0-5h12v2H10zm0 10h5v2h-5z'/%3E%3Cpath fill='currentColor' d='M25 5h-3V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v1H7a2 2 0 0 0-2 2v21a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2M12 4h8v4h-8Zm13 24H7V7h3v3h12V7h3Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:result-old{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 13h2v2h-2zm4 0h8v2h-8zm-4 5h2v2h-2zm0 5h2v2h-2z'/%3E%3Cpath fill='currentColor' d='M7 28V7h3v3h12V7h3v8h2V7a2 2 0 0 0-2-2h-3V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v1H7a2 2 0 0 0-2 2v21a2 2 0 0 0 2 2h9v-2Zm5-24h8v4h-8Z'/%3E%3Cpath fill='currentColor' d='M18 19v2.413A6.996 6.996 0 1 1 24 32v-2a5 5 0 1 0-4.576-7H22v2h-6v-6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:search{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:side-panel-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28 4H4c-1.1 0-2 .9-2 2v20c0 1.1.9 2 2 2h24c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M10 26H4V6h6zm18-11H17.8l3.6-3.6L20 10l-6 6l6 6l1.4-1.4l-3.6-3.6H28v9H12V6h16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:tablet{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 24v2h-6v-2z'/%3E%3Cpath fill='currentColor' d='M25 30H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v24a2.003 2.003 0 0 1-2 2M7 4v24h18V4Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:terminal-3270{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 21h6v2h-6z'/%3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 2v4H6V6ZM6 26V12h20v14Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-logos\:typescript-icon{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%233178C6' d='M20 0h216c11.046 0 20 8.954 20 20v216c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20V20C0 8.954 8.954 0 20 0'/%3E%3Cpath fill='%23FFF' d='M150.518 200.475v27.62q6.738 3.453 15.938 5.179T185.849 235q9.934 0 18.874-1.899t15.678-6.257q6.738-4.359 10.669-11.394q3.93-7.033 3.93-17.391q0-7.51-2.246-13.163a30.8 30.8 0 0 0-6.479-10.055q-4.232-4.402-10.149-7.898t-13.347-6.602q-5.442-2.245-9.761-4.359t-7.342-4.316q-3.024-2.2-4.665-4.661t-1.641-5.567q0-2.848 1.468-5.135q1.469-2.288 4.147-3.927t6.565-2.547q3.887-.906 8.638-.906q3.456 0 7.299.518q3.844.517 7.732 1.597a54 54 0 0 1 7.558 2.719a41.7 41.7 0 0 1 6.781 3.797v-25.807q-6.306-2.417-13.778-3.582T198.633 107q-9.847 0-18.658 2.115q-8.811 2.114-15.506 6.602q-6.694 4.49-10.582 11.437Q150 134.102 150 143.769q0 12.342 7.127 21.06t21.638 14.759a292 292 0 0 1 10.625 4.575q4.924 2.244 8.509 4.66t5.658 5.265t2.073 6.474a9.9 9.9 0 0 1-1.296 4.963q-1.295 2.287-3.93 3.97t-6.565 2.632t-9.2.95q-8.983 0-17.794-3.151t-16.327-9.451m-46.036-68.733H140V109H41v22.742h35.345V233h28.137z'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;width:1em;height:1em}.container{width:100%}.tab-button,[tab-button=""]{height:100%;padding-left:1rem;padding-right:1rem;font-weight:300;opacity:.5}.border-base,[border~=base]{border-color:#6b72801a}.bg-active{background-color:#6b728014}.bg-base,[bg-base=""]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .bg-base,.dark [bg-base=""]{--un-bg-opacity:1;background-color:rgb(17 17 17 / var(--un-bg-opacity))}.bg-header,[bg-header=""]{background-color:#6b72800d}.bg-overlay,[bg-overlay=""],[bg~=overlay]{background-color:#eeeeee80}.dark .bg-overlay,.dark [bg-overlay=""],.dark [bg~=overlay]{background-color:#22222280}.dark .highlight{--un-bg-opacity:1;background-color:rgb(50 50 56 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(234 179 6 / var(--un-text-opacity))}.highlight{--un-bg-opacity:1;background-color:rgb(234 179 6 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(50 50 56 / var(--un-text-opacity))}.tab-button-active{background-color:#6b72801a;opacity:1}[hover~=bg-active]:hover{background-color:#6b728014}.tab-button:hover,[tab-button=""]:hover{opacity:.8}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\[clip-path\:polygon\(0\%_0\%\,var\(--split\)_0\%\,var\(--split\)_100\%\,0\%_100\%\)\]{clip-path:polygon(0% 0%,var(--split) 0%,var(--split) 100%,0% 100%)}.\[clip-path\:polygon\(var\(--split\)_0\%\,100\%_0\%\,100\%_100\%\,var\(--split\)_100\%\)\]{clip-path:polygon(var(--split) 0%,100% 0%,100% 100%,var(--split) 100%)}.sr-only,[sr-only=""]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.sticky,[sticky=""]{position:sticky}.before\:absolute:before{position:absolute}.static{position:static}.inset-0,[inset-0=""]{inset:0}.bottom-0{bottom:0}.left-\[--split\]{left:var(--split)}.left-0{left:0}.right-0,[right~="0"]{right:0}.right-5px,[right-5px=""]{right:5px}.top-0{top:0}.top-5px,[top-5px=""]{top:5px}[top~="-1"]{top:-.25rem}.before\:top-1\/2:before{top:50%}.z-10,[z-10=""]{z-index:10}.z-40{z-index:40}.z-5,[z-5=""]{z-index:5}.grid,[grid~="~"]{display:grid}.grid-col-span-2{grid-column:span 2/span 2}.grid-col-span-4,[grid-col-span-4=""],[grid-col-span-4~="~"]{grid-column:span 4/span 4}[grid-col-span-4~="placeholder:"]::placeholder{grid-column:span 4/span 4}.auto-cols-max,[grid~=auto-cols-max]{grid-auto-columns:max-content}.cols-\[1\.5em_1fr\],[grid~="cols-[1.5em_1fr]"]{grid-template-columns:1.5em 1fr}.cols-\[auto_min-content_auto\],[grid~="cols-[auto_min-content_auto]"]{grid-template-columns:auto min-content auto}.cols-\[min-content_1fr_min-content\],[grid~="cols-[min-content_1fr_min-content]"]{grid-template-columns:min-content 1fr min-content}.rows-\[auto_auto\],[grid~="rows-[auto_auto]"]{grid-template-rows:auto auto}.rows-\[min-content_auto\],[grid~="rows-[min-content_auto]"]{grid-template-rows:min-content auto}.rows-\[min-content_min-content\],[grid~="rows-[min-content_min-content]"]{grid-template-rows:min-content min-content}.rows-\[min-content\],[grid~="rows-[min-content]"]{grid-template-rows:min-content}.cols-1,.grid-cols-1,[grid~=cols-1]{grid-template-columns:repeat(1,minmax(0,1fr))}.cols-2,.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.rows-1,[grid~=rows-1]{grid-template-rows:repeat(1,minmax(0,1fr))}.m-0{margin:0}.m-2,[m-2=""]{margin:.5rem}.ma,[ma=""]{margin:auto}.mx-1,[mx-1=""]{margin-left:.25rem;margin-right:.25rem}.mx-2,[m~=x-2],[mx-2=""]{margin-left:.5rem;margin-right:.5rem}.mx-4,[mx-4=""]{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0,[my-0=""]{margin-top:0;margin-bottom:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2,[my-2=""]{margin-top:.5rem;margin-bottom:.5rem}[m~=y-4]{margin-top:1rem;margin-bottom:1rem}.-mt-5{margin-top:-1.25rem}.\!mb-none{margin-bottom:0!important}.mb-1,[mb-1=""]{margin-bottom:.25rem}.mb-1px{margin-bottom:1px}.mb-2,[mb-2=""]{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.ml-1,[ml-1=""]{margin-left:.25rem}.ml-2,[ml-2=""]{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-8,[mr-8=""]{margin-right:2rem}.ms,[ms=""]{margin-inline-start:1rem}.ms-2,[ms-2=""]{margin-inline-start:.5rem}.mt-\[8px\]{margin-top:8px}.mt-2,[m~=t2],[mt-2=""]{margin-top:.5rem}.mt-3{margin-top:.75rem}.inline,[inline=""]{display:inline}.block,[block=""]{display:block}.inline-block{display:inline-block}.hidden{display:none}.before\:size-\[16px\]:before{width:16px;height:16px}.h-1\.4em,[h-1\.4em=""]{height:1.4em}.h-1\.5em{height:1.5em}.h-10,[h-10=""]{height:2.5rem}.h-1px,[h-1px=""]{height:1px}.h-28px,[h-28px=""]{height:28px}.h-3px,[h-3px=""]{height:3px}.h-41px,[h-41px=""]{height:41px}.h-6,[h-6=""]{height:1.5rem}.h-8,[h-8=""]{height:2rem}.h-full,[h-full=""],[h~=full]{height:100%}.h-screen,[h-screen=""]{height:100vh}.h1{height:.25rem}.h3{height:.75rem}.h4{height:1rem}.max-h-120{max-height:30rem}.max-h-full,[max-h-full=""]{max-height:100%}.max-w-full{max-width:100%}.max-w-screen,[max-w-screen=""]{max-width:100vw}.max-w-xl,[max-w-xl=""]{max-width:36rem}.min-h-1em{min-height:1em}.min-h-75,[min-h-75=""]{min-height:18.75rem}.min-w-1em{min-width:1em}.min-w-2em,[min-w-2em=""]{min-width:2em}.w-\[2px\],.w-2px,[w-2px=""]{width:2px}.w-1\.4em,[w-1\.4em=""]{width:1.4em}.w-1\.5em,[w-1\.5em=""]{width:1.5em}.w-350,[w-350=""]{width:87.5rem}.w-4,[w-4=""]{width:1rem}.w-6,[w-6=""]{width:1.5rem}.w-80,[w-80=""]{width:20rem}.w-fit{width:fit-content}.w-full,[w-full=""]{width:100%}.w-min{width:min-content}.w-screen,[w-screen=""]{width:100vw}.open\:max-h-52[open],[open\:max-h-52=""][open]{max-height:13rem}.flex,[flex=""],[flex~="~"]{display:flex}.flex-inline,.inline-flex,[inline-flex=""]{display:inline-flex}.flex-1,[flex-1=""]{flex:1 1 0%}.flex-auto,[flex-auto=""]{flex:1 1 auto}.flex-shrink-0,[flex-shrink-0=""]{flex-shrink:0}.flex-grow-1,[flex-grow-1=""]{flex-grow:1}.flex-col,[flex-col=""],[flex~=col]{flex-direction:column}[flex~=wrap]{flex-wrap:wrap}.table{display:table}.origin-center,[origin-center=""]{transform-origin:center}.origin-top{transform-origin:top}.-translate-x-1\/2{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-3,[translate-x-3=""]{--un-translate-x:.75rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.before\:-translate-y-1\/2:before{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.before\:translate-x-\[calc\(-50\%\+1px\)\]:before{--un-translate-x: calc(-50% + 1px) ;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-0,[rotate-0=""]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:0deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-180,[rotate-180=""]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-90,[rotate-90=""]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:90deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.animate-spin,[animate-spin=""]{animation:spin 1s linear infinite}.animate-reverse{animation-direction:reverse}.animate-count-1,[animate-count-1=""]{animation-iteration-count:1}.cursor-help,[cursor-help=""]{cursor:help}.cursor-pointer,[cursor-pointer=""],.hover\:cursor-pointer:hover{cursor:pointer}.cursor-col-resize{cursor:col-resize}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize{resize:both}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-end,[items-end=""]{align-items:flex-end}.items-center,[flex~=items-center],[grid~=items-center],[items-center=""]{align-items:center}.justify-end,[justify-end=""]{justify-content:flex-end}.justify-center,[justify-center=""]{justify-content:center}.justify-between,[flex~=justify-between],[justify-between=""]{justify-content:space-between}.justify-evenly,[justify-evenly=""]{justify-content:space-evenly}.justify-items-center,[justify-items-center=""]{justify-items:center}.gap-0,[gap-0=""]{gap:0}.gap-1,[flex~=gap-1],[gap-1=""]{gap:.25rem}.gap-2,[flex~=gap-2],[gap-2=""]{gap:.5rem}.gap-4,[flex~=gap-4]{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1,[grid~=gap-x-1]{column-gap:.25rem}.gap-x-2,[gap-x-2=""],[gap~=x-2],[grid~=gap-x-2]{column-gap:.5rem}.gap-y-1{row-gap:.25rem}[gap~=y-3]{row-gap:.75rem}.overflow-auto,[overflow-auto=""]{overflow:auto}.overflow-hidden,[overflow-hidden=""],[overflow~=hidden]{overflow:hidden}.truncate,[truncate=""]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre,[whitespace-pre=""]{white-space:pre}.ws-nowrap,[ws-nowrap=""]{white-space:nowrap}.b,.border,[border~="~"]{border-width:1px}.b-2,[b-2=""]{border-width:2px}.before\:border-\[2px\]:before{border-width:2px}.border-b,.border-b-1,[border~=b]{border-bottom-width:1px}.border-b-2,[border-b-2=""],[border~=b-2]{border-bottom-width:2px}.border-l,[border~=l]{border-left-width:1px}.border-l-2px{border-left-width:2px}.border-r,.border-r-1px,[border~=r]{border-right-width:1px}.border-t,[border~=t]{border-top-width:1px}.dark [border~="dark:gray-400"]{--un-border-opacity:1;border-color:rgb(156 163 175 / var(--un-border-opacity))}[border~="$cm-namespace"]{border-color:var(--cm-namespace)}[border~="gray-400/50"]{border-color:#9ca3af80}[border~=gray-500]{--un-border-opacity:1;border-color:rgb(107 114 128 / var(--un-border-opacity))}[border~=red-500]{--un-border-opacity:1;border-color:rgb(239 68 68 / var(--un-border-opacity))}.before\:border-black:before{--un-border-opacity:1;border-color:rgb(0 0 0 / var(--un-border-opacity))}.border-rounded,.rounded,.rounded-1,[border-rounded=""],[border~=rounded],[rounded-1=""],[rounded=""]{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.before\:rounded-full:before{border-radius:9999px}[border~=dotted]{border-style:dotted}[border~=solid]{border-style:solid}.\!bg-gray-4{--un-bg-opacity:1 !important;background-color:rgb(156 163 175 / var(--un-bg-opacity))!important}.bg-\[\#eee\]{--un-bg-opacity:1;background-color:rgb(238 238 238 / var(--un-bg-opacity))}.bg-\[\#fafafa\]{--un-bg-opacity:1;background-color:rgb(250 250 250 / var(--un-bg-opacity))}.bg-\[size\:16px_16px\]{background-size:16px 16px}.bg-current,[bg-current=""]{background-color:currentColor}.bg-gray{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity))}.bg-gray-500\:35{background-color:#6b728059}.bg-green5,[bg-green5=""]{--un-bg-opacity:1;background-color:rgb(34 197 94 / var(--un-bg-opacity))}.bg-indigo\/60{background-color:#818cf899}.bg-orange{--un-bg-opacity:1;background-color:rgb(251 146 60 / var(--un-bg-opacity))}.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113 / var(--un-bg-opacity))}.bg-red-500\/10,[bg~="red-500/10"],[bg~="red500/10"]{background-color:#ef44441a}.bg-red5,[bg-red5=""]{--un-bg-opacity:1;background-color:rgb(239 68 68 / var(--un-bg-opacity))}.bg-white,[bg-white=""]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.bg-yellow5,[bg-yellow5=""]{--un-bg-opacity:1;background-color:rgb(234 179 8 / var(--un-bg-opacity))}.dark .\!dark\:bg-gray-7{--un-bg-opacity:1 !important;background-color:rgb(55 65 81 / var(--un-bg-opacity))!important}.dark .dark\:bg-\[\#222\]{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}.dark .dark\:bg-\[\#3a3a3a\]{--un-bg-opacity:1;background-color:rgb(58 58 58 / var(--un-bg-opacity))}.dark [bg~="dark:#111"]{--un-bg-opacity:1;background-color:rgb(17 17 17 / var(--un-bg-opacity))}[bg~=gray-200]{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}[bg~="gray/10"]{background-color:#9ca3af1a}[bg~="gray/30"]{background-color:#9ca3af4d}[bg~="green-500/10"]{background-color:#22c55e1a}[bg~=transparent]{background-color:transparent}[bg~="yellow-500/10"]{background-color:#eab3081a}.before\:bg-white:before{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.bg-center{background-position:center}[fill-opacity~=".05"]{--un-fill-opacity:.0005}.p-0,[p-0=""]{padding:0}.p-0\.5,[p-0\.5=""]{padding:.125rem}.p-1,[p-1=""]{padding:.25rem}.p-2,.p2,[p-2=""],[p~="2"],[p2=""]{padding:.5rem}.p-4,[p-4=""]{padding:1rem}.p-5,[p-5=""]{padding:1.25rem}.p6,[p6=""]{padding:1.5rem}[p~="3"]{padding:.75rem}.p-y-1,.py-1,[p~=y-1],[p~=y1],[py-1=""]{padding-top:.25rem;padding-bottom:.25rem}.px,[p~=x-4],[p~=x4]{padding-left:1rem;padding-right:1rem}.px-0{padding-left:0;padding-right:0}.px-2,[p~=x-2],[p~=x2]{padding-left:.5rem;padding-right:.5rem}.px-3,[p~=x3],[px-3=""]{padding-left:.75rem;padding-right:.75rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py,[p~=y4]{padding-top:1rem;padding-bottom:1rem}.py-0\.5,[p~="y0.5"]{padding-top:.125rem;padding-bottom:.125rem}.py-2,[p~=y2],[py-2=""]{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2,[pb-2=""]{padding-bottom:.5rem}.pe-2\.5,[pe-2\.5=""]{padding-inline-end:.625rem}.pl-1,[pl-1=""]{padding-left:.25rem}.pr-2,[p~=r2],[pr-2=""]{padding-right:.5rem}.pt{padding-top:1rem}.pt-4px{padding-top:4px}[p~=l3]{padding-left:.75rem}.text-center,[text-center=""],[text~=center]{text-align:center}.indent,[indent=""]{text-indent:1.5rem}.text-2xl,[text-2xl=""]{font-size:1.5rem;line-height:2rem}.text-4xl,[text-4xl=""]{font-size:2.25rem;line-height:2.5rem}.text-lg,[text-lg=""]{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""],[text~=sm]{font-size:.875rem;line-height:1.25rem}.text-xs,[text-xs=""],[text~=xs]{font-size:.75rem;line-height:1rem}[text~="5xl"]{font-size:3rem;line-height:1}.dark .dark\:text-red-300{--un-text-opacity:1;color:rgb(252 165 165 / var(--un-text-opacity))}.dark .dark\:text-white,.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-\[\#add467\]{--un-text-opacity:1;color:rgb(173 212 103 / var(--un-text-opacity))}.text-black{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-gray-5,.text-gray-500,[text-gray-500=""]{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.text-green-500,.text-green5,[text-green-500=""],[text-green5=""],[text~=green-500]{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-orange{--un-text-opacity:1;color:rgb(251 146 60 / var(--un-text-opacity))}.text-purple5\:50{color:#a855f780}.dark .dark\:c-red-400,.text-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.color-red5,.text-red-500,.text-red5,[text-red-500=""],[text-red5=""],[text~=red-500],[text~=red500]{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.c-red-600,.text-red-600{--un-text-opacity:1;color:rgb(220 38 38 / var(--un-text-opacity))}.text-yellow-500,.text-yellow5,[text-yellow-500=""],[text-yellow5=""],[text~=yellow-500]{--un-text-opacity:1;color:rgb(234 179 8 / var(--un-text-opacity))}.text-yellow-500\/80{color:#eab308cc}[text~="red500/70"]{color:#ef4444b3}.dark .dark\:color-\#f43f5e{--un-text-opacity:1;color:rgb(244 63 94 / var(--un-text-opacity))}.font-bold,[font-bold=""]{font-weight:700}.font-light,[font-light=""],[font~=light]{font-weight:300}.font-thin,[font-thin=""]{font-weight:100}.font-mono,[font-mono=""]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.capitalize,[capitalize=""]{text-transform:capitalize}.aria-\[selected\=true\]\:underline[aria-selected=true],.underline,.hover\:underline:hover{text-decoration-line:underline}.decoration-gray{-webkit-text-decoration-color:rgb(156 163 175 / var(--un-line-opacity));--un-line-opacity:1;text-decoration-color:rgb(156 163 175 / var(--un-line-opacity))}.decoration-red{-webkit-text-decoration-color:rgb(248 113 113 / var(--un-line-opacity));--un-line-opacity:1;text-decoration-color:rgb(248 113 113 / var(--un-line-opacity))}.underline-offset-4{text-underline-offset:4px}.tab,[tab=""]{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.\!op-100{opacity:1!important}.dark .dark\:op85{opacity:.85}.dark [dark~=op75],.op75{opacity:.75}.op-50,.op50,.opacity-50,[op-50=""],[op~="50"],[op50=""]{opacity:.5}.op-70,.op70,[op-70=""],[opacity~="70"]{opacity:.7}.op-90,[op-90=""]{opacity:.9}.op100,[op~="100"],[op100=""]{opacity:1}.op20,[op20=""]{opacity:.2}.op30,[op30=""]{opacity:.3}.op65,[op65=""]{opacity:.65}.op80,[op80=""]{opacity:.8}.opacity-0{opacity:0}.opacity-60,[opacity-60=""]{opacity:.6}[opacity~="10"]{opacity:.1}[hover\:op100~="default:"]:hover:default{opacity:1}.hover\:op100:hover,[hover\:op100~="~"]:hover,[hover~=op100]:hover{opacity:1}[hover~=op80]:hover{opacity:.8}[op~="hover:100"]:hover{opacity:1}[hover\:op100~="disabled:"]:hover:disabled{opacity:1}.shadow-\[0_0_3px_rgb\(0_0_0\/\.2\)\,0_0_10px_rgb\(0_0_0\/\.5\)\]{--un-shadow:0 0 3px rgb(0 0 0/.2),0 0 10px rgb(0 0 0/.5);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-0{outline-width:0px}.focus-within\:has-focus-visible\:outline-2:has(:focus-visible):focus-within{outline-width:2px}.dark .dark\:outline-white{--un-outline-color-opacity:1;outline-color:rgb(255 255 255 / var(--un-outline-color-opacity))}.outline-black{--un-outline-color-opacity:1;outline-color:rgb(0 0 0 / var(--un-outline-color-opacity))}.outline-offset-4{outline-offset:4px}.outline,.outline-solid{outline-style:solid}[outline~=none]{outline:2px solid transparent;outline-offset:2px}.backdrop-blur-sm,[backdrop-blur-sm=""]{--un-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.backdrop-saturate-0,[backdrop-saturate-0=""]{--un-backdrop-saturate:saturate(0);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter,[filter=""]{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.before\:content-\[\'\'\]:before{content:""}@media (min-width: 768px){.md\:grid-cols-\[200px_1fr\]{grid-template-columns:200px 1fr}} diff --git a/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/bg.png b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/bg.png new file mode 100644 index 000000000000..718b0677a886 Binary files /dev/null and b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/bg.png differ diff --git a/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/favicon.ico b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/favicon.ico new file mode 100644 index 000000000000..c02d0b033f7c Binary files /dev/null and b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/favicon.ico differ diff --git a/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/favicon.svg b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/favicon.svg new file mode 100644 index 000000000000..fd9daaf619d2 --- /dev/null +++ b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/favicon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/html.meta.json.gz b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/html.meta.json.gz new file mode 100644 index 000000000000..bd17cf8c2b0e Binary files /dev/null and b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/html.meta.json.gz differ diff --git a/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/index.html b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/index.html new file mode 100644 index 000000000000..b5e5c1f63b04 --- /dev/null +++ b/test/cli/test/fixtures/reporters/html/all-passing-or-skipped/index.html @@ -0,0 +1,32 @@ + + + + + + + + Vitest + + + + + + + + + +
+ + diff --git a/test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js b/test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js new file mode 100644 index 000000000000..b10f7b76b378 --- /dev/null +++ b/test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js @@ -0,0 +1,57 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/** +* @vue/shared v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Fh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},Rs=[],Xr=()=>{},C0=()=>!1,$u=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hh=e=>e.startsWith("onUpdate:"),on=Object.assign,Bh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},$S=Object.prototype.hasOwnProperty,wt=(e,t)=>$S.call(e,t),Ze=Array.isArray,$s=e=>Oa(e)==="[object Map]",Iu=e=>Oa(e)==="[object Set]",Bm=e=>Oa(e)==="[object Date]",et=e=>typeof e=="function",Ht=e=>typeof e=="string",Pr=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",E0=e=>(kt(e)||et(e))&&et(e.then)&&et(e.catch),A0=Object.prototype.toString,Oa=e=>A0.call(e),IS=e=>Oa(e).slice(8,-1),L0=e=>Oa(e)==="[object Object]",Du=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xl=Fh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},DS=/-\w/g,sr=zu(e=>e.replace(DS,t=>t.slice(1).toUpperCase())),zS=/\B([A-Z])/g,Ai=zu(e=>e.replace(zS,"-$1").toLowerCase()),Fu=zu(e=>e.charAt(0).toUpperCase()+e.slice(1)),qc=zu(e=>e?`on${Fu(e)}`:""),Gn=(e,t)=>!Object.is(e,t),jc=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Wh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},N0=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let Wm;const Hu=()=>Wm||(Wm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(e){if(Ze(e)){const t={};for(let r=0;r{if(r){const o=r.split(HS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(Ht(e))t=e;else if(Ze(e))for(let r=0;rBu(r,t))}const R0=e=>!!(e&&e.__v_isRef===!0),Re=e=>Ht(e)?e:e==null?"":Ze(e)||kt(e)&&(e.toString===A0||!et(e.toString))?R0(e)?Re(e.value):JSON.stringify(e,$0,2):String(e),$0=(e,t)=>R0(t)?$0(e,t.value):$s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[fd(o,c)+" =>"]=s,r),{})}:Iu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>fd(r))}:Pr(t)?fd(t):kt(t)&&!Ze(t)&&!L0(t)?String(t):t,fd=(e,t="")=>{var r;return Pr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** +* @vue/reactivity v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let bn;class GS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=bn,!t&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0&&--this._on===0&&(bn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r0)return;if(Zl){let t=Zl;for(Zl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Yl;){let t=Yl;for(Yl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function H0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function B0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Uh(o),XS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function jd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(W0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function W0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===aa)||(e.globalVersion=aa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!jd(e))))return;e.flags|=2;const t=e.dep,r=Tt,o=Nr;Tt=e,Nr=!0;try{H0(e);const s=e.fn(e._value);(t.version===0||Gn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Tt=r,Nr=o,B0(e),e.flags&=-3}}function Uh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)Uh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function XS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Nr=!0;const q0=[];function Si(){q0.push(Nr),Nr=!1}function _i(){const e=q0.pop();Nr=e===void 0?!0:e}function qm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Tt;Tt=void 0;try{t()}finally{Tt=r}}}let aa=0;class YS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Tt||!Nr||Tt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Tt)r=this.activeLink=new YS(Tt,this),Tt.deps?(r.prevDep=Tt.depsTail,Tt.depsTail.nextDep=r,Tt.depsTail=r):Tt.deps=Tt.depsTail=r,j0(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=Tt.depsTail,r.nextDep=void 0,Tt.depsTail.nextDep=r,Tt.depsTail=r,Tt.deps===r&&(Tt.deps=o)}return r}trigger(t){this.version++,aa++,this.notify(t)}notify(t){qh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{jh()}}}function j0(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)j0(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const iu=new WeakMap,qo=Symbol(""),Ud=Symbol(""),ca=Symbol("");function wn(e,t,r){if(Nr&&Tt){let o=iu.get(e);o||iu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Wu),s.map=o,s.key=r),s.track()}}function bi(e,t,r,o,s,c){const f=iu.get(e);if(!f){aa++;return}const d=h=>{h&&h.trigger()};if(qh(),t==="clear")f.forEach(d);else{const h=Ze(e),p=h&&Du(r);if(h&&r==="length"){const g=Number(o);f.forEach((v,b)=>{(b==="length"||b===ca||!Pr(b)&&b>=g)&&d(v)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(ca)),t){case"add":h?p&&d(f.get("length")):(d(f.get(qo)),$s(e)&&d(f.get(Ud)));break;case"delete":h||(d(f.get(qo)),$s(e)&&d(f.get(Ud)));break;case"set":$s(e)&&d(f.get(qo));break}}jh()}function ZS(e,t){const r=iu.get(e);return r&&r.get(t)}function _s(e){const t=mt(e);return t===e?t:(wn(t,"iterate",ca),or(e)?t:t.map(Rr))}function qu(e){return wn(e=mt(e),"iterate",ca),e}function Yi(e,t){return Ti(e)?jo(e)?Ks(Rr(t)):Ks(t):Rr(t)}const JS={__proto__:null,[Symbol.iterator](){return hd(this,Symbol.iterator,e=>Yi(this,e))},concat(...e){return _s(this).concat(...e.map(t=>Ze(t)?_s(t):t))},entries(){return hd(this,"entries",e=>(e[1]=Yi(this,e[1]),e))},every(e,t){return fi(this,"every",e,t,void 0,arguments)},filter(e,t){return fi(this,"filter",e,t,r=>r.map(o=>Yi(this,o)),arguments)},find(e,t){return fi(this,"find",e,t,r=>Yi(this,r),arguments)},findIndex(e,t){return fi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return fi(this,"findLast",e,t,r=>Yi(this,r),arguments)},findLastIndex(e,t){return fi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return fi(this,"forEach",e,t,void 0,arguments)},includes(...e){return pd(this,"includes",e)},indexOf(...e){return pd(this,"indexOf",e)},join(e){return _s(this).join(e)},lastIndexOf(...e){return pd(this,"lastIndexOf",e)},map(e,t){return fi(this,"map",e,t,void 0,arguments)},pop(){return Dl(this,"pop")},push(...e){return Dl(this,"push",e)},reduce(e,...t){return jm(this,"reduce",e,t)},reduceRight(e,...t){return jm(this,"reduceRight",e,t)},shift(){return Dl(this,"shift")},some(e,t){return fi(this,"some",e,t,void 0,arguments)},splice(...e){return Dl(this,"splice",e)},toReversed(){return _s(this).toReversed()},toSorted(e){return _s(this).toSorted(e)},toSpliced(...e){return _s(this).toSpliced(...e)},unshift(...e){return Dl(this,"unshift",e)},values(){return hd(this,"values",e=>Yi(this,e))}};function hd(e,t,r){const o=qu(e),s=o[t]();return o!==e&&!or(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const QS=Array.prototype;function fi(e,t,r,o,s,c){const f=qu(e),d=f!==e&&!or(e),h=f[t];if(h!==QS[t]){const v=h.apply(e,c);return d?Rr(v):v}let p=r;f!==e&&(d?p=function(v,b){return r.call(this,Yi(e,v),b,e)}:r.length>2&&(p=function(v,b){return r.call(this,v,b,e)}));const g=h.call(f,p,o);return d&&s?s(g):g}function jm(e,t,r,o){const s=qu(e);let c=r;return s!==e&&(or(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,Yi(e,d),h,e)}),s[t](c,...o)}function pd(e,t,r){const o=mt(e);wn(o,"iterate",ca);const s=o[t](...r);return(s===-1||s===!1)&&ju(r[0])?(r[0]=mt(r[0]),o[t](...r)):s}function Dl(e,t,r=[]){Si(),qh();const o=mt(e)[t].apply(e,r);return jh(),_i(),o}const e_=Fh("__proto__,__v_isRef,__isVue"),U0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pr));function t_(e){Pr(e)||(e=String(e));const t=mt(this);return wn(t,"has",e),t.hasOwnProperty(e)}class V0{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?f_:Y0:c?X0:K0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Ze(t);if(!s){let h;if(f&&(h=JS[r]))return h;if(r==="hasOwnProperty")return t_}const d=Reflect.get(t,r,Mt(t)?t:o);if((Pr(r)?U0.has(r):e_(r))||(s||wn(t,"get",r),c))return d;if(Mt(d)){const h=f&&Du(r)?d:d.value;return s&&kt(h)?Gs(h):h}return kt(d)?s?Gs(d):ir(d):d}}class G0 extends V0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=Ze(t)&&Du(r);if(!this._isShallow){const p=Ti(c);if(!or(o)&&!Ti(o)&&(c=mt(c),o=mt(o)),!f&&Mt(c)&&!Mt(o))return p||(c.value=o),!0}const d=f?Number(r)e,Tc=e=>Reflect.getPrototypeOf(e);function s_(e,t,r){return function(...o){const s=this.__v_raw,c=mt(s),f=$s(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),g=r?Vd:t?Ks:Rr;return!t&&wn(c,"iterate",h?Ud:qo),{next(){const{value:v,done:b}=p.next();return b?{value:v,done:b}:{value:d?[g(v[0]),g(v[1])]:g(v),done:b}},[Symbol.iterator](){return this}}}}function Cc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function l_(e,t){const r={get(s){const c=this.__v_raw,f=mt(c),d=mt(s);e||(Gn(s,d)&&wn(f,"get",s),wn(f,"get",d));const{has:h}=Tc(f),p=t?Vd:e?Ks:Rr;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&wn(mt(s),"iterate",qo),s.size},has(s){const c=this.__v_raw,f=mt(c),d=mt(s);return e||(Gn(s,d)&&wn(f,"has",s),wn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=mt(d),p=t?Vd:e?Ks:Rr;return!e&&wn(h,"iterate",qo),d.forEach((g,v)=>s.call(c,p(g),p(v),f))}};return on(r,e?{add:Cc("add"),set:Cc("set"),delete:Cc("delete"),clear:Cc("clear")}:{add(s){!t&&!or(s)&&!Ti(s)&&(s=mt(s));const c=mt(this);return Tc(c).has.call(c,s)||(c.add(s),bi(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!Ti(c)&&(c=mt(c));const f=mt(this),{has:d,get:h}=Tc(f);let p=d.call(f,s);p||(s=mt(s),p=d.call(f,s));const g=h.call(f,s);return f.set(s,c),p?Gn(c,g)&&bi(f,"set",s,c):bi(f,"add",s,c),this},delete(s){const c=mt(this),{has:f,get:d}=Tc(c);let h=f.call(c,s);h||(s=mt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&bi(c,"delete",s,void 0),p},clear(){const s=mt(this),c=s.size!==0,f=s.clear();return c&&bi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=s_(s,e,t)}),r}function Vh(e,t){const r=l_(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const a_={get:Vh(!1,!1)},c_={get:Vh(!1,!0)},u_={get:Vh(!0,!1)};const K0=new WeakMap,X0=new WeakMap,Y0=new WeakMap,f_=new WeakMap;function d_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function h_(e){return e.__v_skip||!Object.isExtensible(e)?0:d_(IS(e))}function ir(e){return Ti(e)?e:Kh(e,!1,r_,a_,K0)}function Gh(e){return Kh(e,!1,o_,c_,X0)}function Gs(e){return Kh(e,!0,i_,u_,Y0)}function Kh(e,t,r,o,s){if(!kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=h_(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function jo(e){return Ti(e)?jo(e.__v_raw):!!(e&&e.__v_isReactive)}function Ti(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function ju(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function Uu(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&M0(e,"__v_skip",!0),e}const Rr=e=>kt(e)?ir(e):e,Ks=e=>kt(e)?Gs(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function Ge(e){return Z0(e,!1)}function Ft(e){return Z0(e,!0)}function Z0(e,t){return Mt(e)?e:new p_(e,t)}class p_{constructor(t,r){this.dep=new Wu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:mt(t),this._value=r?t:Rr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||or(t)||Ti(t);t=o?t:mt(t),Gn(t,r)&&(this._rawValue=t,this._value=o?t:Rr(t),this.dep.trigger())}}function K(e){return Mt(e)?e.value:e}function Xt(e){return et(e)?e():K(e)}const g_={get:(e,t,r)=>t==="__v_raw"?e:K(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Mt(s)&&!Mt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function J0(e){return jo(e)?e:new Proxy(e,g_)}class m_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Wu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Q0(e){return new m_(e)}function v_(e){const t=Ze(e)?new Array(e.length):{};for(const r in e)t[r]=eb(e,r);return t}class y_{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=mt(t);let s=!0,c=t;if(!Ze(t)||!Du(String(r)))do s=!ju(c)||or(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=K(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Mt(this._raw[this._key])){const r=this._object[this._key];if(Mt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return ZS(this._raw,this._key)}}class b_{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function w_(e,t,r){return Mt(e)?e:et(e)?new b_(e):kt(e)&&arguments.length>1?eb(e,t,r):Ge(e)}function eb(e,t,r){return new y_(e,t,r)}class x_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Wu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=aa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Tt!==this)return F0(this,!0),!0}get value(){const t=this.dep.track();return W0(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function k_(e,t,r=!1){let o,s;return et(e)?o=e:(o=e.get,s=e.set),new x_(o,s,r)}const Ec={},ou=new WeakMap;let $o;function S_(e,t=!1,r=$o){if(r){let o=ou.get(r);o||ou.set(r,o=[]),o.push(e)}}function __(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=_=>s?_:or(_)||s===!1||s===0?wi(_,1):wi(_);let g,v,b,w,E=!1,L=!1;if(Mt(e)?(v=()=>e.value,E=or(e)):jo(e)?(v=()=>p(e),E=!0):Ze(e)?(L=!0,E=e.some(_=>jo(_)||or(_)),v=()=>e.map(_=>{if(Mt(_))return _.value;if(jo(_))return p(_);if(et(_))return h?h(_,2):_()})):et(e)?t?v=h?()=>h(e,2):e:v=()=>{if(b){Si();try{b()}finally{_i()}}const _=$o;$o=g;try{return h?h(e,3,[w]):e(w)}finally{$o=_}}:v=Xr,t&&s){const _=v,$=s===!0?1/0:s;v=()=>wi(_(),$)}const P=I0(),M=()=>{g.stop(),P&&P.active&&Bh(P.effects,g)};if(c&&t){const _=t;t=(...$)=>{_(...$),M()}}let R=L?new Array(e.length).fill(Ec):Ec;const I=_=>{if(!(!(g.flags&1)||!g.dirty&&!_))if(t){const $=g.run();if(s||E||(L?$.some((W,ne)=>Gn(W,R[ne])):Gn($,R))){b&&b();const W=$o;$o=g;try{const ne=[$,R===Ec?void 0:L&&R[0]===Ec?[]:R,w];R=$,h?h(t,3,ne):t(...ne)}finally{$o=W}}}else g.run()};return d&&d(I),g=new D0(v),g.scheduler=f?()=>f(I,!1):I,w=_=>S_(_,!1,g),b=g.onStop=()=>{const _=ou.get(g);if(_){if(h)h(_,4);else for(const $ of _)$();ou.delete(g)}},t?o?I(!0):R=g.run():f?f(I.bind(null,!0),!0):g.run(),M.pause=g.pause.bind(g),M.resume=g.resume.bind(g),M.stop=M,M}function wi(e,t=1/0,r){if(t<=0||!kt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Mt(e))wi(e.value,t,r);else if(Ze(e))for(let o=0;o{wi(o,t,r)});else if(L0(e)){for(const o in e)wi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&wi(e[o],t,r)}return e}/** +* @vue/runtime-core v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Pa(e,t,r,o){try{return o?e(...o):e()}catch(s){Ra(s,t,r)}}function $r(e,t,r,o){if(et(e)){const s=Pa(e,t,r,o);return s&&E0(s)&&s.catch(c=>{Ra(c,t,r)}),s}if(Ze(e)){const s=[];for(let c=0;c>>1,s=Pn[o],c=ua(s);c=ua(r)?Pn.push(e):Pn.splice(C_(t),0,e),e.flags|=1,nb()}}function nb(){su||(su=tb.then(ib))}function Gd(e){Ze(e)?Is.push(...e):Zi&&e.id===-1?Zi.splice(Es+1,0,e):e.flags&1||(Is.push(e),e.flags|=1),nb()}function Um(e,t,r=Gr+1){for(;rua(r)-ua(o));if(Is.length=0,Zi){Zi.push(...t);return}for(Zi=t,Es=0;Ese.id==null?e.flags&2?-1:1/0:e.id;function ib(e){try{for(Gr=0;GrWe;function We(e,t=mn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ys(-1);const c=lu(t);let f;try{f=e(...s)}finally{lu(c),o._d&&Ys(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function at(e,t){if(mn===null)return e;const r=Qu(mn),o=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport,yi=Symbol("_leaveCb"),Ac=Symbol("_enterCb");function A_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mi(()=>{e.isMounted=!0}),$a(()=>{e.isUnmounting=!0}),e}const ur=[Function,Array],cb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ur,onEnter:ur,onAfterEnter:ur,onEnterCancelled:ur,onBeforeLeave:ur,onLeave:ur,onAfterLeave:ur,onLeaveCancelled:ur,onBeforeAppear:ur,onAppear:ur,onAfterAppear:ur,onAppearCancelled:ur},ub=e=>{const t=e.subTree;return t.component?ub(t.component):t},L_={name:"BaseTransition",props:cb,setup(e,{slots:t}){const r=ti(),o=A_();return()=>{const s=t.default&&hb(t.default(),!0);if(!s||!s.length)return;const c=fb(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return gd(c);const h=Vm(c);if(!h)return gd(c);let p=Kd(h,f,o,r,v=>p=v);h.type!==ln&&fa(h,p);let g=r.subTree&&Vm(r.subTree);if(g&&g.type!==ln&&!Kr(g,h)&&ub(r).type!==ln){let v=Kd(g,f,o,r);if(fa(g,v),d==="out-in"&&h.type!==ln)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,g=void 0},gd(c);d==="in-out"&&h.type!==ln?v.delayLeave=(b,w,E)=>{const L=db(o,g);L[String(g.key)]=g,b[yi]=()=>{w(),b[yi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{E(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return c}}};function fb(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==ln){t=r;break}}return t}const M_=L_;function db(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Kd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:E,onLeaveCancelled:L,onBeforeAppear:P,onAppear:M,onAfterAppear:R,onAppearCancelled:I}=t,_=String(e.key),$=db(r,e),W=(Z,G)=>{Z&&$r(Z,o,9,G)},ne=(Z,G)=>{const j=G[1];W(Z,G),Ze(Z)?Z.every(N=>N.length<=1)&&j():Z.length<=1&&j()},ee={mode:f,persisted:d,beforeEnter(Z){let G=h;if(!r.isMounted)if(c)G=P||h;else return;Z[yi]&&Z[yi](!0);const j=$[_];j&&Kr(e,j)&&j.el[yi]&&j.el[yi](),W(G,[Z])},enter(Z){let G=p,j=g,N=v;if(!r.isMounted)if(c)G=M||p,j=R||g,N=I||v;else return;let O=!1;const C=Z[Ac]=k=>{O||(O=!0,k?W(N,[Z]):W(j,[Z]),ee.delayedLeave&&ee.delayedLeave(),Z[Ac]=void 0)};G?ne(G,[Z,C]):C()},leave(Z,G){const j=String(e.key);if(Z[Ac]&&Z[Ac](!0),r.isUnmounting)return G();W(b,[Z]);let N=!1;const O=Z[yi]=C=>{N||(N=!0,G(),C?W(L,[Z]):W(E,[Z]),Z[yi]=void 0,$[j]===e&&delete $[j])};$[j]=e,w?ne(w,[Z,O]):O()},clone(Z){const G=Kd(Z,t,r,o,s);return s&&s(G),G}};return ee}function gd(e){if(Gu(e))return e=uo(e),e.children=null,e}function Vm(e){if(!Gu(e))return ab(e.type)&&e.children?fb(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&et(r.default))return r.default()}}function fa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,fa(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hb(e,t=!1,r){let o=[],s=0;for(let c=0;c1)for(let c=0;cJl(E,t&&(Ze(t)?t[L]:t),r,o,s));return}if(Ds(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Jl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Qu(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,g=d.refs===vt?d.refs={}:d.refs,v=d.setupState,b=mt(v),w=v===vt?C0:E=>wt(b,E);if(p!=null&&p!==h){if(Gm(t),Ht(p))g[p]=null,w(p)&&(v[p]=null);else if(Mt(p)){p.value=null;const E=t;E.k&&(g[E.k]=null)}}if(et(h))Pa(h,d,12,[f,g]);else{const E=Ht(h),L=Mt(h);if(E||L){const P=()=>{if(e.f){const M=E?w(h)?v[h]:g[h]:h.value;if(s)Ze(M)&&Bh(M,c);else if(Ze(M))M.includes(c)||M.push(c);else if(E)g[h]=[c],w(h)&&(v[h]=g[h]);else{const R=[c];h.value=R,e.k&&(g[e.k]=R)}}else E?(g[h]=f,w(h)&&(v[h]=f)):L&&(h.value=f,e.k&&(g[e.k]=f))};if(f){const M=()=>{P(),au.delete(e)};M.id=-1,au.set(e,M),jn(M,r)}else Gm(e),P()}}}function Gm(e){const t=au.get(e);t&&(t.flags|=8,au.delete(e))}Hu().requestIdleCallback;Hu().cancelIdleCallback;const Ds=e=>!!e.type.__asyncLoader,Gu=e=>e.type.__isKeepAlive;function N_(e,t){gb(e,"a",t)}function O_(e,t){gb(e,"da",t)}function gb(e,t,r=xn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ku(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Gu(s.parent.vnode)&&P_(o,t,r,s),s=s.parent}}function P_(e,t,r,o){const s=Ku(t,e,o,!0);Ia(()=>{Bh(o[t],s)},r)}function Ku(e,t,r=xn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Si();const d=Da(r),h=$r(t,r,e,f);return d(),_i(),h});return o?s.unshift(c):s.push(c),c}}const Li=e=>(t,r=xn)=>{(!pa||e==="sp")&&Ku(e,(...o)=>t(...o),r)},R_=Li("bm"),Mi=Li("m"),$_=Li("bu"),I_=Li("u"),$a=Li("bum"),Ia=Li("um"),D_=Li("sp"),z_=Li("rtg"),F_=Li("rtc");function H_(e,t=xn){Ku("ec",e,t)}const Zh="components",B_="directives";function Go(e,t){return Jh(Zh,e,!0,t)||e}const mb=Symbol.for("v-ndc");function Xd(e){return Ht(e)?Jh(Zh,e,!1)||e:e||mb}function vr(e){return Jh(B_,e)}function Jh(e,t,r=!0,o=!1){const s=mn||xn;if(s){const c=s.type;if(e===Zh){const d=PT(c,!1);if(d&&(d===t||d===sr(t)||d===Fu(sr(t))))return c}const f=Km(s[e]||c[e],t)||Km(s.appContext[e],t);return!f&&o?c:f}}function Km(e,t){return e&&(e[t]||e[sr(t)]||e[Fu(sr(t))])}function $n(e,t,r,o){let s;const c=r,f=Ze(e);if(f||Ht(e)){const d=f&&jo(e);let h=!1,p=!1;d&&(h=!or(e),p=Ti(e),e=qu(e)),s=new Array(e.length);for(let g=0,v=e.length;gt(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function Dt(e,t,r={},o,s){if(mn.ce||mn.parent&&Ds(mn.parent)&&mn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),ie(),Ve(nt,null,[Ne("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),ie();const f=c&&vb(c(r)),d=r.key||f&&f.key,h=Ve(nt,{key:(d&&!Pr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function vb(e){return e.some(t=>Zs(t)?!(t.type===ln||t.type===nt&&!vb(t.children)):!0)?e:null}function q_(e,t){const r={};for(const o in e)r[qc(o)]=e[o];return r}const Yd=e=>e?jb(e)?Qu(e):Yd(e.parent):null,Ql=on(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yd(e.parent),$root:e=>Yd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xb(e),$forceUpdate:e=>e.f||(e.f=()=>{Xh(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>nT.bind(e)}),md=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),j_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;if(t[0]!=="$"){const b=f[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(md(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if(wt(c,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Zd&&(f[t]=0)}}const p=Ql[t];let g,v;if(p)return t==="$attrs"&&wn(e.attrs,"get",""),p(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(v=h.config.globalProperties,wt(v,t))return v[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return md(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,props:c,type:f}},d){let h;return!!(r[d]||e!==vt&&d[0]!=="$"&&wt(e,d)||md(t,d)||wt(c,d)||wt(o,d)||wt(Ql,d)||wt(s.config.globalProperties,d)||(h=f.__cssModules)&&h[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function yb(){return bb().slots}function U_(){return bb().attrs}function bb(e){const t=ti();return t.setupContext||(t.setupContext=Vb(t))}function cu(e){return Ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function da(e,t){return!e||!t?e||t:Ze(e)&&Ze(t)?e.concat(t):on({},cu(e),cu(t))}let Zd=!0;function V_(e){const t=xb(e),r=e.proxy,o=e.ctx;Zd=!1,t.beforeCreate&&Xm(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:g,beforeMount:v,mounted:b,beforeUpdate:w,updated:E,activated:L,deactivated:P,beforeDestroy:M,beforeUnmount:R,destroyed:I,unmounted:_,render:$,renderTracked:W,renderTriggered:ne,errorCaptured:ee,serverPrefetch:Z,expose:G,inheritAttrs:j,components:N,directives:O,filters:C}=t;if(p&&G_(p,o,null),f)for(const B in f){const ce=f[B];et(ce)&&(o[B]=ce.bind(r))}if(s){const B=s.call(r,r);kt(B)&&(e.data=ir(B))}if(Zd=!0,c)for(const B in c){const ce=c[B],be=et(ce)?ce.bind(r,r):et(ce.get)?ce.get.bind(r,r):Xr,Se=!et(ce)&&et(ce.set)?ce.set.bind(r):Xr,Be=ke({get:be,set:Se});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ae=>Be.value=Ae})}if(d)for(const B in d)wb(d[B],o,r,B);if(h){const B=et(h)?h.call(r):h;Reflect.ownKeys(B).forEach(ce=>{dr(ce,B[ce])})}g&&Xm(g,e,"c");function z(B,ce){Ze(ce)?ce.forEach(be=>B(be.bind(r))):ce&&B(ce.bind(r))}if(z(R_,v),z(Mi,b),z($_,w),z(I_,E),z(N_,L),z(O_,P),z(H_,ee),z(F_,W),z(z_,ne),z($a,R),z(Ia,_),z(D_,Z),Ze(G))if(G.length){const B=e.exposed||(e.exposed={});G.forEach(ce=>{Object.defineProperty(B,ce,{get:()=>r[ce],set:be=>r[ce]=be,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===Xr&&(e.render=$),j!=null&&(e.inheritAttrs=j),N&&(e.components=N),O&&(e.directives=O),Z&&pb(e)}function G_(e,t,r=Xr){Ze(e)&&(e=Jd(e));for(const o in e){const s=e[o];let c;kt(s)?"default"in s?c=pn(s.from||o,s.default,!0):c=pn(s.from||o):c=pn(s),Mt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Xm(e,t,r){$r(Ze(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function wb(e,t,r,o){let s=o.includes(".")?Tb(r,o):()=>r[o];if(Ht(e)){const c=t[e];et(c)&&xt(s,c)}else if(et(e))xt(s,e.bind(r));else if(kt(e))if(Ze(e))e.forEach(c=>wb(c,t,r,o));else{const c=et(e.handler)?e.handler.bind(r):t[e.handler];et(c)&&xt(s,c,e)}}function xb(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>uu(h,p,f,!0)),uu(h,t,f)),kt(t)&&c.set(t,h),h}function uu(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&uu(e,c,r,!0),s&&s.forEach(f=>uu(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=K_[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const K_={data:Ym,props:Zm,emits:Zm,methods:Ul,computed:Ul,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Ul,directives:Ul,watch:Y_,provide:Ym,inject:X_};function Ym(e,t){return t?e?function(){return on(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function X_(e,t){return Ul(Jd(e),Jd(t))}function Jd(e){if(Ze(e)){const t={};for(let r=0;r1)return r&&et(t)?t.call(o&&o.proxy):t}}function Sb(){return!!(ti()||Uo)}const Q_=Symbol.for("v-scx"),eT=()=>pn(Q_);function _b(e,t){return Xu(e,null,t)}function tT(e,t){return Xu(e,null,{flush:"sync"})}function xt(e,t,r){return Xu(e,t,r)}function Xu(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=on({},r),h=t&&o||!t&&c!=="post";let p;if(pa){if(c==="sync"){const w=eT();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Xr,w.resume=Xr,w.pause=Xr,w}}const g=xn;d.call=(w,E,L)=>$r(w,g,E,L);let v=!1;c==="post"?d.scheduler=w=>{jn(w,g&&g.suspense)}:c!=="sync"&&(v=!0,d.scheduler=(w,E)=>{E?w():Xh(w)}),d.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const b=__(e,t,d);return pa&&(p?p.push(b):h&&b()),b}function nT(e,t,r){const o=this.proxy,s=Ht(e)?e.includes(".")?Tb(o,e):()=>o[e]:e.bind(o,o);let c;et(t)?c=t:(c=t.handler,r=t);const f=Da(this),d=Xu(s,c.bind(o),r);return f(),d}function Tb(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s{let g,v=vt,b;return tT(()=>{const w=e[s];Gn(g,w)&&(g=w,p())}),{get(){return h(),r.get?r.get(g):g},set(w){const E=r.set?r.set(w):w;if(!Gn(E,g)&&!(v!==vt&&Gn(w,v)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(g=w,p()),o.emit(`update:${t}`,E),Gn(w,E)&&Gn(w,v)&&!Gn(E,b)&&p(),v=w,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Cb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sr(t)}Modifiers`]||e[`${Ai(t)}Modifiers`];function rT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Cb(o,t.slice(7));f&&(f.trim&&(s=r.map(g=>Ht(g)?g.trim():g)),f.number&&(s=r.map(Wh)));let d,h=o[d=qc(t)]||o[d=qc(sr(t))];!h&&c&&(h=o[d=qc(Ai(t))]),h&&$r(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,$r(p,e,6,s)}}const iT=new WeakMap;function Eb(e,t,r=!1){const o=r?iT:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!et(e)){const h=p=>{const g=Eb(p,t,!0);g&&(d=!0,on(f,g))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(kt(e)&&o.set(e,null),null):(Ze(c)?c.forEach(h=>f[h]=null):on(f,c),kt(e)&&o.set(e,f),f)}function Zu(e,t){return!e||!$u(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Ai(t))||wt(e,t))}function Jm(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:g,props:v,data:b,setupState:w,ctx:E,inheritAttrs:L}=e,P=lu(e);let M,R;try{if(r.shapeFlag&4){const _=s||o,$=_;M=Lr(p.call($,_,g,v,w,b,E)),R=d}else{const _=t;M=Lr(_.length>1?_(v,{attrs:d,slots:f,emit:h}):_(v,null)),R=t.props?d:sT(d)}}catch(_){ea.length=0,Ra(_,e,1),M=Ne(ln)}let I=M;if(R&&L!==!1){const _=Object.keys(R),{shapeFlag:$}=I;_.length&&$&7&&(c&&_.some(Hh)&&(R=lT(R,c)),I=uo(I,R,!1,!0))}return r.dirs&&(I=uo(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(r.dirs):r.dirs),r.transition&&fa(I,r.transition),M=I,lu(P),M}function oT(e,t=!0){let r;for(let o=0;o{let t;for(const r in e)(r==="class"||r==="style"||$u(r))&&((t||(t={}))[r]=e[r]);return t},lT=(e,t)=>{const r={};for(const o in e)(!Hh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function aT(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Qm(o,f,p):!!f;if(h&8){const g=t.dynamicProps;for(let v=0;vObject.create(Ab),Mb=e=>Object.getPrototypeOf(e)===Ab;function cT(e,t,r,o=!1){const s={},c=Lb();e.propsDefaults=Object.create(null),Nb(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function uT(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=mt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const g=e.vnode.dynamicProps;for(let v=0;v{h=!0;const[b,w]=Ob(v,t,!0);on(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!c&&!h)return kt(e)&&o.set(e,Rs),Rs;if(Ze(c))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",tp=e=>Ze(e)?e.map(Lr):[Lr(e)],dT=(e,t,r)=>{if(t._n)return t;const o=We((...s)=>tp(t(...s)),r);return o._c=!1,o},Pb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(ep(s))continue;const c=e[s];if(et(c))t[s]=dT(s,c,o);else if(c!=null){const f=tp(c);t[s]=()=>f}}},Rb=(e,t)=>{const r=tp(t);e.slots.default=()=>r},$b=(e,t,r)=>{for(const o in t)(r||!ep(o))&&(e[o]=t[o])},hT=(e,t,r)=>{const o=e.slots=Lb();if(e.vnode.shapeFlag&32){const s=t._;s?($b(o,t,r),r&&M0(o,"_",s,!0)):Pb(t,o)}else t&&Rb(e,t)},pT=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:$b(s,t,r):(c=!t.$stable,Pb(t,s)),f=t}else t&&(Rb(e,t),f={default:1});if(c)for(const d in s)!ep(d)&&f[d]==null&&delete s[d]},jn=_T;function gT(e){return mT(e)}function mT(e,t){const r=Hu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:b,setScopeId:w=Xr,insertStaticContent:E}=e,L=(D,q,Q,he=null,de=null,ge=null,Ce=void 0,Ee=null,xe=!!q.dynamicChildren)=>{if(D===q)return;D&&!Kr(D,q)&&(he=F(D),Ae(D,de,ge,!0),D=null),q.patchFlag===-2&&(xe=!1,q.dynamicChildren=null);const{type:ye,ref:J,shapeFlag:ue}=q;switch(ye){case Ju:P(D,q,Q,he);break;case ln:M(D,q,Q,he);break;case yd:D==null&&R(q,Q,he,Ce);break;case nt:N(D,q,Q,he,de,ge,Ce,Ee,xe);break;default:ue&1?$(D,q,Q,he,de,ge,Ce,Ee,xe):ue&6?O(D,q,Q,he,de,ge,Ce,Ee,xe):(ue&64||ue&128)&&ye.process(D,q,Q,he,de,ge,Ce,Ee,xe,le)}J!=null&&de?Jl(J,D&&D.ref,ge,q||D,!q):J==null&&D&&D.ref!=null&&Jl(D.ref,null,ge,D,!0)},P=(D,q,Q,he)=>{if(D==null)o(q.el=d(q.children),Q,he);else{const de=q.el=D.el;q.children!==D.children&&p(de,q.children)}},M=(D,q,Q,he)=>{D==null?o(q.el=h(q.children||""),Q,he):q.el=D.el},R=(D,q,Q,he)=>{[D.el,D.anchor]=E(D.children,q,Q,he,D.el,D.anchor)},I=({el:D,anchor:q},Q,he)=>{let de;for(;D&&D!==q;)de=b(D),o(D,Q,he),D=de;o(q,Q,he)},_=({el:D,anchor:q})=>{let Q;for(;D&&D!==q;)Q=b(D),s(D),D=Q;s(q)},$=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{if(q.type==="svg"?Ce="svg":q.type==="math"&&(Ce="mathml"),D==null)W(q,Q,he,de,ge,Ce,Ee,xe);else{const ye=D.el&&D.el._isVueCE?D.el:null;try{ye&&ye._beginPatch(),Z(D,q,de,ge,Ce,Ee,xe)}finally{ye&&ye._endPatch()}}},W=(D,q,Q,he,de,ge,Ce,Ee)=>{let xe,ye;const{props:J,shapeFlag:ue,transition:oe,dirs:$e}=D;if(xe=D.el=f(D.type,ge,J&&J.is,J),ue&8?g(xe,D.children):ue&16&&ee(D.children,xe,null,he,de,vd(D,ge),Ce,Ee),$e&&Mo(D,null,he,"created"),ne(xe,D,D.scopeId,Ce,he),J){for(const ct in J)ct!=="value"&&!Xl(ct)&&c(xe,ct,null,J[ct],ge,he);"value"in J&&c(xe,"value",null,J.value,ge),(ye=J.onVnodeBeforeMount)&&Vr(ye,he,D)}$e&&Mo(D,null,he,"beforeMount");const Je=vT(de,oe);Je&&oe.beforeEnter(xe),o(xe,q,Q),((ye=J&&J.onVnodeMounted)||Je||$e)&&jn(()=>{ye&&Vr(ye,he,D),Je&&oe.enter(xe),$e&&Mo(D,null,he,"mounted")},de)},ne=(D,q,Q,he,de)=>{if(Q&&w(D,Q),he)for(let ge=0;ge{for(let ye=xe;ye{const Ee=q.el=D.el;let{patchFlag:xe,dynamicChildren:ye,dirs:J}=q;xe|=D.patchFlag&16;const ue=D.props||vt,oe=q.props||vt;let $e;if(Q&&No(Q,!1),($e=oe.onVnodeBeforeUpdate)&&Vr($e,Q,q,D),J&&Mo(q,D,Q,"beforeUpdate"),Q&&No(Q,!0),(ue.innerHTML&&oe.innerHTML==null||ue.textContent&&oe.textContent==null)&&g(Ee,""),ye?G(D.dynamicChildren,ye,Ee,Q,he,vd(q,de),ge):Ce||ce(D,q,Ee,null,Q,he,vd(q,de),ge,!1),xe>0){if(xe&16)j(Ee,ue,oe,Q,de);else if(xe&2&&ue.class!==oe.class&&c(Ee,"class",null,oe.class,de),xe&4&&c(Ee,"style",ue.style,oe.style,de),xe&8){const Je=q.dynamicProps;for(let ct=0;ct{$e&&Vr($e,Q,q,D),J&&Mo(q,D,Q,"updated")},he)},G=(D,q,Q,he,de,ge,Ce)=>{for(let Ee=0;Ee{if(q!==Q){if(q!==vt)for(const ge in q)!Xl(ge)&&!(ge in Q)&&c(D,ge,q[ge],null,de,he);for(const ge in Q){if(Xl(ge))continue;const Ce=Q[ge],Ee=q[ge];Ce!==Ee&&ge!=="value"&&c(D,ge,Ee,Ce,de,he)}"value"in Q&&c(D,"value",q.value,Q.value,de)}},N=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{const ye=q.el=D?D.el:d(""),J=q.anchor=D?D.anchor:d("");let{patchFlag:ue,dynamicChildren:oe,slotScopeIds:$e}=q;$e&&(Ee=Ee?Ee.concat($e):$e),D==null?(o(ye,Q,he),o(J,Q,he),ee(q.children||[],Q,J,de,ge,Ce,Ee,xe)):ue>0&&ue&64&&oe&&D.dynamicChildren?(G(D.dynamicChildren,oe,Q,de,ge,Ce,Ee),(q.key!=null||de&&q===de.subTree)&&Ib(D,q,!0)):ce(D,q,Q,J,de,ge,Ce,Ee,xe)},O=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{q.slotScopeIds=Ee,D==null?q.shapeFlag&512?de.ctx.activate(q,Q,he,Ce,xe):C(q,Q,he,de,ge,Ce,xe):k(D,q,xe)},C=(D,q,Q,he,de,ge,Ce)=>{const Ee=D.component=LT(D,he,de);if(Gu(D)&&(Ee.ctx.renderer=le),MT(Ee,!1,Ce),Ee.asyncDep){if(de&&de.registerDep(Ee,z,Ce),!D.el){const xe=Ee.subTree=Ne(ln);M(null,xe,q,Q),D.placeholder=xe.el}}else z(Ee,D,q,Q,de,ge,Ce)},k=(D,q,Q)=>{const he=q.component=D.component;if(aT(D,q,Q))if(he.asyncDep&&!he.asyncResolved){B(he,q,Q);return}else he.next=q,he.update();else q.el=D.el,he.vnode=q},z=(D,q,Q,he,de,ge,Ce)=>{const Ee=()=>{if(D.isMounted){let{next:ue,bu:oe,u:$e,parent:Je,vnode:ct}=D;{const jt=Db(D);if(jt){ue&&(ue.el=ct.el,B(D,ue,Ce)),jt.asyncDep.then(()=>{D.isUnmounted||Ee()});return}}let dt=ue,Nt;No(D,!1),ue?(ue.el=ct.el,B(D,ue,Ce)):ue=ct,oe&&jc(oe),(Nt=ue.props&&ue.props.onVnodeBeforeUpdate)&&Vr(Nt,Je,ue,ct),No(D,!0);const ut=Jm(D),Yt=D.subTree;D.subTree=ut,L(Yt,ut,v(Yt.el),F(Yt),D,de,ge),ue.el=ut.el,dt===null&&Qh(D,ut.el),$e&&jn($e,de),(Nt=ue.props&&ue.props.onVnodeUpdated)&&jn(()=>Vr(Nt,Je,ue,ct),de)}else{let ue;const{el:oe,props:$e}=q,{bm:Je,m:ct,parent:dt,root:Nt,type:ut}=D,Yt=Ds(q);No(D,!1),Je&&jc(Je),!Yt&&(ue=$e&&$e.onVnodeBeforeMount)&&Vr(ue,dt,q),No(D,!0);{Nt.ce&&Nt.ce._def.shadowRoot!==!1&&Nt.ce._injectChildStyle(ut);const jt=D.subTree=Jm(D);L(null,jt,Q,he,D,de,ge),q.el=jt.el}if(ct&&jn(ct,de),!Yt&&(ue=$e&&$e.onVnodeMounted)){const jt=q;jn(()=>Vr(ue,dt,jt),de)}(q.shapeFlag&256||dt&&Ds(dt.vnode)&&dt.vnode.shapeFlag&256)&&D.a&&jn(D.a,de),D.isMounted=!0,q=Q=he=null}};D.scope.on();const xe=D.effect=new D0(Ee);D.scope.off();const ye=D.update=xe.run.bind(xe),J=D.job=xe.runIfDirty.bind(xe);J.i=D,J.id=D.uid,xe.scheduler=()=>Xh(J),No(D,!0),ye()},B=(D,q,Q)=>{q.component=D;const he=D.vnode.props;D.vnode=q,D.next=null,uT(D,q.props,he,Q),pT(D,q.children,Q),Si(),Um(D),_i()},ce=(D,q,Q,he,de,ge,Ce,Ee,xe=!1)=>{const ye=D&&D.children,J=D?D.shapeFlag:0,ue=q.children,{patchFlag:oe,shapeFlag:$e}=q;if(oe>0){if(oe&128){Se(ye,ue,Q,he,de,ge,Ce,Ee,xe);return}else if(oe&256){be(ye,ue,Q,he,de,ge,Ce,Ee,xe);return}}$e&8?(J&16&&Pe(ye,de,ge),ue!==ye&&g(Q,ue)):J&16?$e&16?Se(ye,ue,Q,he,de,ge,Ce,Ee,xe):Pe(ye,de,ge,!0):(J&8&&g(Q,""),$e&16&&ee(ue,Q,he,de,ge,Ce,Ee,xe))},be=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{D=D||Rs,q=q||Rs;const ye=D.length,J=q.length,ue=Math.min(ye,J);let oe;for(oe=0;oeJ?Pe(D,de,ge,!0,!1,ue):ee(q,Q,he,de,ge,Ce,Ee,xe,ue)},Se=(D,q,Q,he,de,ge,Ce,Ee,xe)=>{let ye=0;const J=q.length;let ue=D.length-1,oe=J-1;for(;ye<=ue&&ye<=oe;){const $e=D[ye],Je=q[ye]=xe?Ji(q[ye]):Lr(q[ye]);if(Kr($e,Je))L($e,Je,Q,null,de,ge,Ce,Ee,xe);else break;ye++}for(;ye<=ue&&ye<=oe;){const $e=D[ue],Je=q[oe]=xe?Ji(q[oe]):Lr(q[oe]);if(Kr($e,Je))L($e,Je,Q,null,de,ge,Ce,Ee,xe);else break;ue--,oe--}if(ye>ue){if(ye<=oe){const $e=oe+1,Je=$eoe)for(;ye<=ue;)Ae(D[ye],de,ge,!0),ye++;else{const $e=ye,Je=ye,ct=new Map;for(ye=Je;ye<=oe;ye++){const Bt=q[ye]=xe?Ji(q[ye]):Lr(q[ye]);Bt.key!=null&&ct.set(Bt.key,ye)}let dt,Nt=0;const ut=oe-Je+1;let Yt=!1,jt=0;const Fn=new Array(ut);for(ye=0;ye=ut){Ae(Bt,de,ge,!0);continue}let Hn;if(Bt.key!=null)Hn=ct.get(Bt.key);else for(dt=Je;dt<=oe;dt++)if(Fn[dt-Je]===0&&Kr(Bt,q[dt])){Hn=dt;break}Hn===void 0?Ae(Bt,de,ge,!0):(Fn[Hn-Je]=ye+1,Hn>=jt?jt=Hn:Yt=!0,L(Bt,q[Hn],Q,null,de,ge,Ce,Ee,xe),Nt++)}const Hr=Yt?yT(Fn):Rs;for(dt=Hr.length-1,ye=ut-1;ye>=0;ye--){const Bt=Je+ye,Hn=q[Bt],lt=q[Bt+1],yo=Bt+1{const{el:ge,type:Ce,transition:Ee,children:xe,shapeFlag:ye}=D;if(ye&6){Be(D.component.subTree,q,Q,he);return}if(ye&128){D.suspense.move(q,Q,he);return}if(ye&64){Ce.move(D,q,Q,le);return}if(Ce===nt){o(ge,q,Q);for(let ue=0;ueEe.enter(ge),de);else{const{leave:ue,delayLeave:oe,afterLeave:$e}=Ee,Je=()=>{D.ctx.isUnmounted?s(ge):o(ge,q,Q)},ct=()=>{ge._isLeaving&&ge[yi](!0),ue(ge,()=>{Je(),$e&&$e()})};oe?oe(ge,Je,ct):ct()}else o(ge,q,Q)},Ae=(D,q,Q,he=!1,de=!1)=>{const{type:ge,props:Ce,ref:Ee,children:xe,dynamicChildren:ye,shapeFlag:J,patchFlag:ue,dirs:oe,cacheIndex:$e}=D;if(ue===-2&&(de=!1),Ee!=null&&(Si(),Jl(Ee,null,Q,D,!0),_i()),$e!=null&&(q.renderCache[$e]=void 0),J&256){q.ctx.deactivate(D);return}const Je=J&1&&oe,ct=!Ds(D);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Vr(dt,q,D),J&6)Fe(D.component,Q,he);else{if(J&128){D.suspense.unmount(Q,he);return}Je&&Mo(D,null,q,"beforeUnmount"),J&64?D.type.remove(D,q,Q,le,he):ye&&!ye.hasOnce&&(ge!==nt||ue>0&&ue&64)?Pe(ye,q,Q,!1,!0):(ge===nt&&ue&384||!de&&J&16)&&Pe(xe,q,Q),he&&Ke(D)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||Je)&&jn(()=>{dt&&Vr(dt,q,D),Je&&Mo(D,null,q,"unmounted")},Q)},Ke=D=>{const{type:q,el:Q,anchor:he,transition:de}=D;if(q===nt){je(Q,he);return}if(q===yd){_(D);return}const ge=()=>{s(Q),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(D.shapeFlag&1&&de&&!de.persisted){const{leave:Ce,delayLeave:Ee}=de,xe=()=>Ce(Q,ge);Ee?Ee(D.el,ge,xe):xe()}else ge()},je=(D,q)=>{let Q;for(;D!==q;)Q=b(D),s(D),D=Q;s(q)},Fe=(D,q,Q)=>{const{bum:he,scope:de,job:ge,subTree:Ce,um:Ee,m:xe,a:ye}=D;tv(xe),tv(ye),he&&jc(he),de.stop(),ge&&(ge.flags|=8,Ae(Ce,D,q,Q)),Ee&&jn(Ee,q),jn(()=>{D.isUnmounted=!0},q)},Pe=(D,q,Q,he=!1,de=!1,ge=0)=>{for(let Ce=ge;Ce{if(D.shapeFlag&6)return F(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();const q=b(D.anchor||D.el),Q=q&&q[E_];return Q?b(Q):q};let Y=!1;const re=(D,q,Q)=>{D==null?q._vnode&&Ae(q._vnode,null,null,!0):L(q._vnode||null,D,q,null,null,null,Q),q._vnode=D,Y||(Y=!0,Um(),rb(),Y=!1)},le={p:L,um:Ae,m:Be,r:Ke,mt:C,mc:ee,pc:ce,pbc:G,n:F,o:e};return{render:re,hydrate:void 0,createApp:J_(re)}}function vd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function No({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ib(e,t,r=!1){const o=e.children,s=t.children;if(Ze(o)&&Ze(s))for(let c=0;c>1,e[r[d]]0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function Db(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Db(t)}function tv(e){if(e)for(let t=0;te.__isSuspense;let eh=0;const bT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)wT(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}xT(e,t,r,o,s,f,d,h,p)}},hydrate:kT,normalize:ST},np=bT;function ha(e,t){const r=e.props&&e.props[t];et(r)&&r()}function wT(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:g}}=h,v=g("div"),b=e.suspense=Fb(e,s,o,t,v,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,v,null,o,b,c,f),b.deps>0?(ha(e,"onPending"),ha(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),zs(b,e.ssFallback)):b.resolve(!1,!0)}function xT(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:L,isInFallback:P,isHydrating:M}=v;if(L)v.pendingBranch=b,Kr(L,b)?(h(L,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():P&&(M||(h(E,w,r,o,s,null,c,f,d),zs(v,w)))):(v.pendingId=eh++,M?(v.isHydrating=!1,v.activeBranch=L):p(L,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),P?(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():(h(E,w,r,o,s,null,c,f,d),zs(v,w))):E&&Kr(E,b)?(h(E,b,r,o,s,v,c,f,d),v.resolve(!0)):(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0&&v.resolve()));else if(E&&Kr(E,b))h(E,b,r,o,s,v,c,f,d),zs(v,b);else if(ha(t,"onPending"),v.pendingBranch=b,b.shapeFlag&512?v.pendingId=b.component.suspenseId:v.pendingId=eh++,h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0)v.resolve();else{const{timeout:R,pendingId:I}=v;R>0?setTimeout(()=>{v.pendingId===I&&v.fallback(w)},R):R===0&&v.fallback(w)}}function Fb(e,t,r,o,s,c,f,d,h,p,g=!1){const{p:v,m:b,um:w,n:E,o:{parentNode:L,remove:P}}=p;let M;const R=TT(e);R&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const I=e.props?N0(e.props.timeout):void 0,_=c,$={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:eh++,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(W=!1,ne=!1){const{vnode:ee,activeBranch:Z,pendingBranch:G,pendingId:j,effects:N,parentComponent:O,container:C,isInFallback:k}=$;let z=!1;$.isHydrating?$.isHydrating=!1:W||(z=Z&&G.transition&&G.transition.mode==="out-in",z&&(Z.transition.afterLeave=()=>{j===$.pendingId&&(b(G,C,c===_?E(Z):c,0),Gd(N),k&&ee.ssFallback&&(ee.ssFallback.el=null))}),Z&&(L(Z.el)===C&&(c=E(Z)),w(Z,O,$,!0),!z&&k&&ee.ssFallback&&jn(()=>ee.ssFallback.el=null,$)),z||b(G,C,c,0)),zs($,G),$.pendingBranch=null,$.isInFallback=!1;let B=$.parent,ce=!1;for(;B;){if(B.pendingBranch){B.effects.push(...N),ce=!0;break}B=B.parent}!ce&&!z&&Gd(N),$.effects=[],R&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!ne&&t.resolve()),ha(ee,"onResolve")},fallback(W){if(!$.pendingBranch)return;const{vnode:ne,activeBranch:ee,parentComponent:Z,container:G,namespace:j}=$;ha(ne,"onFallback");const N=E(ee),O=()=>{$.isInFallback&&(v(null,W,G,N,Z,null,j,d,h),zs($,W))},C=W.transition&&W.transition.mode==="out-in";C&&(ee.transition.afterLeave=O),$.isInFallback=!0,w(ee,Z,null,!0),C||O()},move(W,ne,ee){$.activeBranch&&b($.activeBranch,W,ne,ee),$.container=W},next(){return $.activeBranch&&E($.activeBranch)},registerDep(W,ne,ee){const Z=!!$.pendingBranch;Z&&$.deps++;const G=W.vnode.el;W.asyncDep.catch(j=>{Ra(j,W,0)}).then(j=>{if(W.isUnmounted||$.isUnmounted||$.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:N}=W;nh(W,j),G&&(N.el=G);const O=!G&&W.subTree.el;ne(W,N,L(G||W.subTree.el),G?null:E(W.subTree),$,f,ee),O&&(N.placeholder=null,P(O)),Qh(W,N.el),Z&&--$.deps===0&&$.resolve()})},unmount(W,ne){$.isUnmounted=!0,$.activeBranch&&w($.activeBranch,r,W,ne),$.pendingBranch&&w($.pendingBranch,r,W,ne)}};return $}function kT(e,t,r,o,s,c,f,d,h){const p=t.suspense=Fb(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),g=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),g}function ST(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=nv(o?r.default:r),e.ssFallback=o?nv(r.fallback):Ne(ln)}function nv(e){let t;if(et(e)){const r=Xs&&e._c;r&&(e._d=!1,ie()),e=e(),r&&(e._d=!0,t=Xn,Hb())}return Ze(e)&&(e=oT(e)),e=Lr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function _T(e,t){t&&t.pendingBranch?Ze(e)?t.effects.push(...e):t.effects.push(e):Gd(e)}function zs(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Qh(o,s))}function TT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Ju=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),yd=Symbol.for("v-stc"),ea=[];let Xn=null;function ie(e=!1){ea.push(Xn=e?null:[])}function Hb(){ea.pop(),Xn=ea[ea.length-1]||null}let Xs=1;function Ys(e,t=!1){Xs+=e,e<0&&Xn&&t&&(Xn.hasOnce=!0)}function Bb(e){return e.dynamicChildren=Xs>0?Xn||Rs:null,Hb(),Xs>0&&Xn&&Xn.push(e),e}function ve(e,t,r,o,s,c){return Bb(X(e,t,r,o,s,c,!0))}function Ve(e,t,r,o,s){return Bb(Ne(e,t,r,o,s,!0))}function Zs(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}const Wb=({key:e})=>e??null,Uc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||Mt(e)||et(e)?{i:mn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wb(t),ref:t&&Uc(t),scopeId:Vu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:mn};return d?(rp(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ht(r)?8:16),Xs>0&&!f&&Xn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Xn.push(h),h}const Ne=CT;function CT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===mb)&&(e=ln),Zs(e)){const d=uo(e,t,!0);return r&&rp(d,r),Xs>0&&!c&&Xn&&(d.shapeFlag&6?Xn[Xn.indexOf(e)]=d:Xn.push(d)),d.patchFlag=-2,d}if(RT(e)&&(e=e.__vccOpts),t){t=qb(t);let{class:d,style:h}=t;d&&!Ht(d)&&(t.class=ot(d)),kt(h)&&(ju(h)&&!Ze(h)&&(h=on({},h)),t.style=zt(h))}const f=Ht(e)?1:zb(e)?128:ab(e)?64:kt(e)?4:et(e)?2:0;return X(e,t,r,o,s,f,c,!0)}function qb(e){return e?ju(e)||Mb(e)?on({},e):e:null}function uo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?ki(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Wb(p),ref:t&&t.ref?r&&c?Ze(c)?c.concat(Uc(t)):[c,Uc(t)]:Uc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&uo(e.ssContent),ssFallback:e.ssFallback&&uo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&fa(g,h.clone(g)),g}function Qe(e=" ",t=0){return Ne(Ju,null,e,t)}function He(e="",t=!1){return t?(ie(),Ve(ln,null,e)):Ne(ln,null,e)}function Lr(e){return e==null||typeof e=="boolean"?Ne(ln):Ze(e)?Ne(nt,null,e.slice()):Zs(e)?Ji(e):Ne(Ju,null,String(e))}function Ji(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:uo(e)}function rp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Ze(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),rp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Mb(t)?t._ctx=mn:s===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:mn},r=32):(t=String(t),o&64?(r=16,t=[Qe(t)]):r=8);e.children=t,e.shapeFlag|=r}function ki(...e){const t={};for(let r=0;rxn||mn;let fu,th;{const e=Hu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};fu=t("__VUE_INSTANCE_SETTERS__",r=>xn=r),th=t("__VUE_SSR_SETTERS__",r=>pa=r)}const Da=e=>{const t=xn;return fu(e),e.scope.on(),()=>{e.scope.off(),fu(t)}},rv=()=>{xn&&xn.scope.off(),fu(null)};function jb(e){return e.vnode.shapeFlag&4}let pa=!1;function MT(e,t=!1,r=!1){t&&th(t);const{props:o,children:s}=e.vnode,c=jb(e);cT(e,o,c,t),hT(e,s,r||t);const f=c?NT(e,t):void 0;return t&&th(!1),f}function NT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,j_);const{setup:o}=r;if(o){Si();const s=e.setupContext=o.length>1?Vb(e):null,c=Da(e),f=Pa(o,e,0,[e.props,s]),d=E0(f);if(_i(),c(),(d||e.sp)&&!Ds(e)&&pb(e),d){if(f.then(rv,rv),t)return f.then(h=>{nh(e,h)}).catch(h=>{Ra(h,e,0)});e.asyncDep=f}else nh(e,f)}else Ub(e)}function nh(e,t,r){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kt(t)&&(e.setupState=J0(t)),Ub(e)}function Ub(e,t,r){const o=e.type;e.render||(e.render=o.render||Xr);{const s=Da(e);Si();try{V_(e)}finally{_i(),s()}}}const OT={get(e,t){return wn(e,"get",""),e[t]}};function Vb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,OT),slots:e.slots,emit:e.emit,expose:t}}function Qu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(J0(Uu(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ql)return Ql[r](e)},has(t,r){return r in t||r in Ql}})):e.proxy}function PT(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function RT(e){return et(e)&&"__vccOpts"in e}const ke=(e,t)=>k_(e,t,pa);function za(e,t,r){try{Ys(-1);const o=arguments.length;return o===2?kt(t)&&!Ze(t)?Zs(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Zs(r)&&(r=[r]),Ne(e,t,r))}finally{Ys(1)}}const $T="3.5.25";/** +* @vue/runtime-dom v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let rh;const iv=typeof window<"u"&&window.trustedTypes;if(iv)try{rh=iv.createPolicy("vue",{createHTML:e=>e})}catch{}const Gb=rh?e=>rh.createHTML(e):e=>e,IT="http://www.w3.org/2000/svg",DT="http://www.w3.org/1998/Math/MathML",mi=typeof document<"u"?document:null,ov=mi&&mi.createElement("template"),zT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?mi.createElementNS(IT,e):t==="mathml"?mi.createElementNS(DT,e):r?mi.createElement(e,{is:r}):mi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{ov.innerHTML=Gb(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const d=ov.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Ui="transition",zl="animation",ga=Symbol("_vtc"),Kb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},FT=on({},cb,Kb),HT=e=>(e.displayName="Transition",e.props=FT,e),BT=HT((e,{slots:t})=>za(M_,WT(e),t)),Oo=(e,t=[])=>{Ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},sv=e=>e?Ze(e)?e.some(t=>t.length>1):e.length>1:!1;function WT(e){const t={};for(const N in e)N in Kb||(t[N]=e[N]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=qT(s),L=E&&E[0],P=E&&E[1],{onBeforeEnter:M,onEnter:R,onEnterCancelled:I,onLeave:_,onLeaveCancelled:$,onBeforeAppear:W=M,onAppear:ne=R,onAppearCancelled:ee=I}=t,Z=(N,O,C,k)=>{N._enterCancelled=k,Po(N,O?g:d),Po(N,O?p:f),C&&C()},G=(N,O)=>{N._isLeaving=!1,Po(N,v),Po(N,w),Po(N,b),O&&O()},j=N=>(O,C)=>{const k=N?ne:R,z=()=>Z(O,N,C);Oo(k,[O,z]),lv(()=>{Po(O,N?h:c),di(O,N?g:d),sv(k)||av(O,o,L,z)})};return on(t,{onBeforeEnter(N){Oo(M,[N]),di(N,c),di(N,f)},onBeforeAppear(N){Oo(W,[N]),di(N,h),di(N,p)},onEnter:j(!1),onAppear:j(!0),onLeave(N,O){N._isLeaving=!0;const C=()=>G(N,O);di(N,v),N._enterCancelled?(di(N,b),fv(N)):(fv(N),di(N,b)),lv(()=>{N._isLeaving&&(Po(N,v),di(N,w),sv(_)||av(N,o,P,C))}),Oo(_,[N,C])},onEnterCancelled(N){Z(N,!1,void 0,!0),Oo(I,[N])},onAppearCancelled(N){Z(N,!0,void 0,!0),Oo(ee,[N])},onLeaveCancelled(N){G(N),Oo($,[N])}})}function qT(e){if(e==null)return null;if(kt(e))return[bd(e.enter),bd(e.leave)];{const t=bd(e);return[t,t]}}function bd(e){return N0(e)}function di(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ga]||(e[ga]=new Set)).add(t)}function Po(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ga];r&&(r.delete(t),r.size||(e[ga]=void 0))}function lv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jT=0;function av(e,t,r,o){const s=e._endId=++jT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=UT(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g(r[E]||"").split(", "),s=o(`${Ui}Delay`),c=o(`${Ui}Duration`),f=cv(s,c),d=o(`${zl}Delay`),h=o(`${zl}Duration`),p=cv(d,h);let g=null,v=0,b=0;t===Ui?f>0&&(g=Ui,v=f,b=c.length):t===zl?p>0&&(g=zl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Ui:zl:null,b=g?g===Ui?c.length:h.length:0);const w=g===Ui&&/\b(?:transform|all)(?:,|$)/.test(o(`${Ui}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:w}}function cv(e,t){for(;e.lengthuv(r)+uv(e[o])))}function uv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fv(e){return(e?e.ownerDocument:document).body.offsetHeight}function VT(e,t,r){const o=e[ga];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const du=Symbol("_vod"),Xb=Symbol("_vsh"),ro={name:"show",beforeMount(e,{value:t},{transition:r}){e[du]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Fl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Fl(e,!0),o.enter(e)):o.leave(e,()=>{Fl(e,!1)}):Fl(e,t))},beforeUnmount(e,{value:t}){Fl(e,t)}};function Fl(e,t){e.style.display=t?e[du]:"none",e[Xb]=!t}const GT=Symbol(""),KT=/(?:^|;)\s*display\s*:/;function XT(e,t,r){const o=e.style,s=Ht(r);let c=!1;if(r&&!s){if(t)if(Ht(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Vc(o,d,"")}else for(const f in t)r[f]==null&&Vc(o,f,"");for(const f in r)f==="display"&&(c=!0),Vc(o,f,r[f])}else if(s){if(t!==r){const f=o[GT];f&&(r+=";"+f),o.cssText=r,c=KT.test(r)}}else t&&e.removeAttribute("style");du in e&&(e[du]=c?o.display:"",e[Xb]&&(o.display="none"))}const dv=/\s*!important$/;function Vc(e,t,r){if(Ze(r))r.forEach(o=>Vc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=YT(e,t);dv.test(r)?e.setProperty(Ai(o),r.replace(dv,""),"important"):e[o]=r}}const hv=["Webkit","Moz","ms"],wd={};function YT(e,t){const r=wd[t];if(r)return r;let o=sr(t);if(o!=="filter"&&o in e)return wd[t]=o;o=Fu(o);for(let s=0;sxd||(eC.then(()=>xd=0),xd=Date.now());function nC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(rC(o,r.value),t,5,[o])};return r.value=e,r.attached=tC(),r}function rC(e,t){if(Ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const bv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,iC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?VT(e,o,f):t==="style"?XT(e,r,o):$u(t)?Hh(t)||JT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):oC(e,t,o,f))?(mv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?mv(e,sr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),gv(e,t,o,f))};function oC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&bv(t)&&et(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return bv(t)&&Ht(r)?!1:t in e}const hu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ze(t)?r=>jc(t,r):t};function sC(e){e.target.composing=!0}function wv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fs=Symbol("_assign");function xv(e,t,r){return t&&(e=e.trim()),r&&(e=Wh(e)),e}const Yb={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Fs]=hu(s);const c=o||s.props&&s.props.type==="number";zo(e,t?"change":"input",f=>{f.target.composing||e[Fs](xv(e.value,r,c))}),(r||c)&&zo(e,"change",()=>{e.value=xv(e.value,r,c)}),t||(zo(e,"compositionstart",sC),zo(e,"compositionend",wv),zo(e,"change",wv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Fs]=hu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Wh(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},Zb={deep:!0,created(e,t,r){e[Fs]=hu(r),zo(e,"change",()=>{const o=e._modelValue,s=lC(e),c=e.checked,f=e[Fs];if(Ze(o)){const d=P0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(Iu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Jb(e,c))})},mounted:kv,beforeUpdate(e,t,r){e[Fs]=hu(r),kv(e,t,r)}};function kv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Ze(t))s=P0(t,o.props.value)>-1;else if(Iu(t))s=t.has(o.props.value);else{if(t===r)return;s=Bu(t,Jb(e,!0))}e.checked!==s&&(e.checked=s)}function lC(e){return"_value"in e?e._value:e.value}function Jb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const aC=["ctrl","shift","alt","meta"],cC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>aC.some(r=>e[`${r}Key`]&&!t.includes(r))},Gc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Ai(s.key);if(t.some(f=>f===c||uC[f]===c))return e(s)}))},fC=on({patchProp:iC},zT);let Sv;function dC(){return Sv||(Sv=gT(fC))}const Qb=((...e)=>{const t=dC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=pC(o);if(!s)return;const c=t._component;!et(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,hC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function hC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pC(e){return Ht(e)?document.querySelector(e):e}const Ni=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},gC={};function mC(e,t){const r=Go("RouterView");return ie(),Ve(r)}const vC=Ni(gC,[["render",mC]]),yC=["top","right","bottom","left"],_v=["start","end"],Tv=yC.reduce((e,t)=>e.concat(t,t+"-"+_v[0],t+"-"+_v[1]),[]),ma=Math.min,Io=Math.max,bC={left:"right",right:"left",bottom:"top",top:"bottom"},wC={start:"end",end:"start"};function oh(e,t,r){return Io(e,ma(t,r))}function Xo(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Or(e){return e.split("-")[1]}function ew(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}function Fa(e){return["top","bottom"].includes(Qr(e))?"y":"x"}function op(e){return ew(Fa(e))}function tw(e,t,r){r===void 0&&(r=!1);const o=Or(e),s=op(e),c=ip(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=gu(f)),[f,gu(f)]}function xC(e){const t=gu(e);return[pu(e),t,pu(t)]}function pu(e){return e.replace(/start|end/g,t=>wC[t])}function kC(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function SC(e,t,r,o){const s=Or(e);let c=kC(Qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(pu)))),c}function gu(e){return e.replace(/left|right|bottom|top/g,t=>bC[t])}function _C(e){return{top:0,right:0,bottom:0,left:0,...e}}function nw(e){return typeof e!="number"?_C(e):{top:e,right:e,bottom:e,left:e}}function ta(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Cv(e,t,r){let{reference:o,floating:s}=e;const c=Fa(t),f=op(t),d=ip(f),h=Qr(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:g,y:o.y-s.height};break;case"bottom":w={x:g,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}switch(Or(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const TC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:v}=Cv(p,o,h),b=o,w={},E=0;for(let L=0;L({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:g=0}=Xo(e,t)||{};if(p==null)return{};const v=nw(g),b={x:r,y:o},w=op(s),E=ip(w),L=await f.getDimensions(p),P=w==="y",M=P?"top":"left",R=P?"bottom":"right",I=P?"clientHeight":"clientWidth",_=c.reference[E]+c.reference[w]-b[w]-c.floating[E],$=b[w]-c.reference[w],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ne=W?W[I]:0;(!ne||!await(f.isElement==null?void 0:f.isElement(W)))&&(ne=d.floating[I]||c.floating[E]);const ee=_/2-$/2,Z=ne/2-L[E]/2-1,G=ma(v[M],Z),j=ma(v[R],Z),N=G,O=ne-L[E]-j,C=ne/2-L[E]/2+ee,k=oh(N,C,O),z=!h.arrow&&Or(s)!=null&&C!==k&&c.reference[E]/2-(COr(s)===e),...r.filter(s=>Or(s)!==e)]:r.filter(s=>Qr(s)===s)).filter(s=>e?Or(s)===e||(t?pu(s)!==s:!1):!0)}const AC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:g=!1,alignment:v,allowedPlacements:b=Tv,autoAlignment:w=!0,...E}=Xo(e,t),L=v!==void 0||b===Tv?EC(v||null,w,b):b,P=await ef(t,E),M=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[M];if(R==null)return{};const I=tw(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const _=[P[Qr(R)],P[I[0]],P[I[1]]],$=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:_}],W=L[M+1];if(W)return{data:{index:M+1,overflows:$},reset:{placement:W}};const ne=$.map(G=>{const j=Or(G.placement);return[G.placement,j&&g?G.overflows.slice(0,2).reduce((N,O)=>N+O,0):G.overflows[0],G.overflows]}).sort((G,j)=>G[1]-j[1]),Z=((s=ne.filter(G=>G[2].slice(0,Or(G[0])?2:3).every(j=>j<=0))[0])==null?void 0:s[0])||ne[0][0];return Z!==d?{data:{index:M+1,overflows:$},reset:{placement:Z}}:{}}}},LC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:L=!0,...P}=Xo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Qr(s),R=Qr(d)===d,I=await(h.isRTL==null?void 0:h.isRTL(p.floating)),_=b||(R||!L?[gu(d)]:xC(d));!b&&E!=="none"&&_.push(...SC(d,L,E,I));const $=[d,..._],W=await ef(t,P),ne=[];let ee=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&ne.push(W[M]),v){const N=tw(s,f,I);ne.push(W[N[0]],W[N[1]])}if(ee=[...ee,{placement:s,overflows:ne}],!ne.every(N=>N<=0)){var Z,G;const N=(((Z=c.flip)==null?void 0:Z.index)||0)+1,O=$[N];if(O)return{data:{index:N,overflows:ee},reset:{placement:O}};let C=(G=ee.filter(k=>k.overflows[0]<=0).sort((k,z)=>k.overflows[1]-z.overflows[1])[0])==null?void 0:G.placement;if(!C)switch(w){case"bestFit":{var j;const k=(j=ee.map(z=>[z.placement,z.overflows.filter(B=>B>0).reduce((B,ce)=>B+ce,0)]).sort((z,B)=>z[1]-B[1])[0])==null?void 0:j[0];k&&(C=k);break}case"initialPlacement":C=d;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function MC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Qr(r),d=Or(r),h=Fa(r)==="y",p=["left","top"].includes(f)?-1:1,g=c&&h?-1:1,v=Xo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*g,y:b*p}:{x:b*p,y:w*g}}const NC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await MC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},OC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:P=>{let{x:M,y:R}=P;return{x:M,y:R}}},...h}=Xo(e,t),p={x:r,y:o},g=await ef(t,h),v=Fa(Qr(s)),b=ew(v);let w=p[b],E=p[v];if(c){const P=b==="y"?"top":"left",M=b==="y"?"bottom":"right",R=w+g[P],I=w-g[M];w=oh(R,w,I)}if(f){const P=v==="y"?"top":"left",M=v==="y"?"bottom":"right",R=E+g[P],I=E-g[M];E=oh(R,E,I)}const L=d.fn({...t,[b]:w,[v]:E});return{...L,data:{x:L.x-r,y:L.y-o}}}}},PC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Xo(e,t),h=await ef(t,d),p=Qr(r),g=Or(r),v=Fa(r)==="y",{width:b,height:w}=o.floating;let E,L;p==="top"||p==="bottom"?(E=p,L=g===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,E=g==="end"?"top":"bottom");const P=w-h[E],M=b-h[L],R=!t.middlewareData.shift;let I=P,_=M;if(v){const W=b-h.left-h.right;_=g||R?ma(M,W):W}else{const W=w-h.top-h.bottom;I=g||R?ma(P,W):W}if(R&&!g){const W=Io(h.left,0),ne=Io(h.right,0),ee=Io(h.top,0),Z=Io(h.bottom,0);v?_=b-2*(W!==0||ne!==0?W+ne:Io(h.left,h.right)):I=w-2*(ee!==0||Z!==0?ee+Z:Io(h.top,h.bottom))}await f({...t,availableWidth:_,availableHeight:I});const $=await s.getDimensions(c.floating);return b!==$.width||w!==$.height?{reset:{rects:!0}}:{}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yr(e){return hr(e).getComputedStyle(e)}const Ev=Math.min,na=Math.max,mu=Math.round;function rw(e){const t=Yr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=mu(r)!==s||mu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function fo(e){return ow(e)?(e.nodeName||"").toLowerCase():""}let Lc;function iw(){if(Lc)return Lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Lc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Lc):navigator.userAgent}function Zr(e){return e instanceof hr(e).HTMLElement}function so(e){return e instanceof hr(e).Element}function ow(e){return e instanceof hr(e).Node}function Av(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function tf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Yr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function RC(e){return["table","td","th"].includes(fo(e))}function sh(e){const t=/firefox/i.test(iw()),r=Yr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function sw(){return!/^((?!chrome|android).)*safari/i.test(iw())}function sp(e){return["html","body","#document"].includes(fo(e))}function lw(e){return so(e)?e:e.contextElement}const aw={x:1,y:1};function Hs(e){const t=lw(e);if(!Zr(t))return aw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=rw(t);let f=(c?mu(r.width):r.width)/o,d=(c?mu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function va(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=lw(e);let h=aw;t&&(o?so(o)&&(h=Hs(o)):h=Hs(e));const p=d?hr(d):window,g=!sw()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const L=hr(d),P=o&&so(o)?hr(o):o;let M=L.frameElement;for(;M&&o&&P!==L;){const R=Hs(M),I=M.getBoundingClientRect(),_=getComputedStyle(M);I.x+=(M.clientLeft+parseFloat(_.paddingLeft))*R.x,I.y+=(M.clientTop+parseFloat(_.paddingTop))*R.y,v*=R.x,b*=R.y,w*=R.x,E*=R.y,v+=I.x,b+=I.y,M=hr(M).frameElement}}return{width:w,height:E,top:b,right:v+w,bottom:b+E,left:v,x:v,y:b}}function lo(e){return((ow(e)?e.ownerDocument:e.document)||window.document).documentElement}function nf(e){return so(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cw(e){return va(lo(e)).left+nf(e).scrollLeft}function ya(e){if(fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Av(e)&&e.host||lo(e);return Av(t)?t.host:t}function uw(e){const t=ya(e);return sp(t)?t.ownerDocument.body:Zr(t)&&tf(t)?t:uw(t)}function vu(e,t){var r;t===void 0&&(t=[]);const o=uw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=hr(o);return s?t.concat(c,c.visualViewport||[],tf(o)?o:[]):t.concat(o,vu(o))}function Lv(e,t,r){return t==="viewport"?ta((function(o,s){const c=hr(o),f=lo(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=sw();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):so(t)?ta((function(o,s){const c=va(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Zr(o)?Hs(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):ta((function(o){const s=lo(o),c=nf(o),f=o.ownerDocument.body,d=na(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=na(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+cw(o);const g=-c.scrollTop;return Yr(f).direction==="rtl"&&(p+=na(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(lo(e)))}function Mv(e){return Zr(e)&&Yr(e).position!=="fixed"?e.offsetParent:null}function Nv(e){const t=hr(e);let r=Mv(e);for(;r&&RC(r)&&Yr(r).position==="static";)r=Mv(r);return r&&(fo(r)==="html"||fo(r)==="body"&&Yr(r).position==="static"&&!sh(r))?t:r||(function(o){let s=ya(o);for(;Zr(s)&&!sp(s);){if(sh(s))return s;s=ya(s)}return null})(e)||t}function $C(e,t,r){const o=Zr(t),s=lo(t),c=va(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((fo(t)!=="body"||tf(s))&&(f=nf(t)),Zr(t)){const h=va(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=cw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const IC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=vu(p).filter((P=>so(P)&&fo(P)!=="body")),w=null;const E=Yr(p).position==="fixed";let L=E?ya(p):p;for(;so(L)&&!sp(L);){const P=Yr(L),M=sh(L);(E?M||w:M||P.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=P:b=b.filter((R=>R!==L)),L=ya(L)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Lv(t,g,s);return p.top=na(v.top,p.top),p.right=Ev(v.right,p.right),p.bottom=Ev(v.bottom,p.bottom),p.left=na(v.left,p.left),p}),Lv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Zr(r),c=lo(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((fo(r)!=="body"||tf(c))&&(f=nf(r)),Zr(r))){const p=va(r);d=Hs(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:so,getDimensions:function(e){return Zr(e)?rw(e):e.getBoundingClientRect()},getOffsetParent:Nv,getDocumentElement:lo,getScale:Hs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Nv,c=this.getDimensions;return{reference:$C(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yr(e).direction==="rtl"},DC=(e,t,r)=>{const o=new Map,s={platform:IC,...r},c={...s.platform,_c:o};return TC(e,t,{...s,platform:c})},ao={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function ba(e,t){let r=ao.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=ao.themes[r.$extend]||{}:(r=null,o=ao[t]):r=null;while(r);return o}function zC(e){const t=[e];let r=ao.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Ov(e){const t=[e];let r=ao.themes[e]||{};do r.$extend?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t}let wa=!1;if(typeof window<"u"){wa=!1;try{const e=Object.defineProperty({},"passive",{get(){wa=!0}});window.addEventListener("test",null,e)}catch{}}let fw=!1;typeof window<"u"&&typeof navigator<"u"&&(fw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const dw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Pv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Rv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function $v(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function kd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Ro=null;const Iv={};function Dv(e){let t=Iv[e];return t||(t=Iv[e]=[]),t}let lh=function(){};typeof window<"u"&&(lh=window.Element);function ht(e){return function(t){return ba(t.theme,e)}}const Sd="__floating-vue__popper",hw=()=>rt({name:"VPopper",provide(){return{[Sd]:{parentPopper:this}}},inject:{[Sd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>dw.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,lh,Boolean],default:ht("container")},boundary:{type:[String,lh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Sd])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(NC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(AC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(OC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(LC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(CC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(PC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await DC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ro&&this.instantMove&&Ro.instantMove&&Ro!==this.parentPopper){Ro.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ro=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await kd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...vu(this.$_referenceNode),...vu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,$v(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Ov(this.theme)){const o=Dv(r);$v(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Ro===this&&(Ro=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await kd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Pv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Pv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Rv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Rv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,wa?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ra>=e.left&&ra<=e.right&&ia>=e.top&&ia<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ra-Ki,o=ia-Xi,s=t.left+t.width/2-Ki+(t.top+t.height/2)-Xi+t.width+t.height,c=Ki+r*s,f=Xi+o*s;return Mc(Ki,Xi,c,f,t.left,t.top,t.left,t.bottom)||Mc(Ki,Xi,c,f,t.left,t.top,t.right,t.top)||Mc(Ki,Xi,c,f,t.right,t.top,t.right,t.bottom)||Mc(Ki,Xi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(fw){const e=wa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>zv(t),e),document.addEventListener("touchend",t=>Fv(t,!0),e)}else window.addEventListener("mousedown",e=>zv(e),!0),window.addEventListener("click",e=>Fv(e,!1),!0);window.addEventListener("resize",BC)}function zv(e,t){for(let r=0;r=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Hv(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Hv(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Hv(e,t,r){return r.closeAllPopover||r.closePopover&&t||HC(e,r)&&!t}function HC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function BC(){for(let e=0;e{Ki=ra,Xi=ia,ra=e.clientX,ia=e.clientY},wa?{passive:!0}:void 0);function Mc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const WC={extends:hw()},rf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function qC(e,t,r,o,s,c){return ie(),ve("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Dt(e.$slots,"default",qS(qb(e.slotData)))],2)}const jC=rf(WC,[["render",qC]]);function UC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Kc;function ah(){ah.init||(ah.init=!0,Kc=UC()!==-1)}var of={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ah(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Kc&&this.$el.appendChild(e),e.data="about:blank",Kc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Kc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const VC=lb();ob("data-v-b329ee4c");const GC={class:"resize-observer",tabindex:"-1"};sb();const KC=VC((e,t,r,o,s,c)=>(ie(),Ve("div",GC)));of.render=KC;of.__scopeId="data-v-b329ee4c";of.__file="src/components/ResizeObserver.vue";const pw=(e="theme")=>({computed:{themeClass(){return zC(this[e])}}}),XC=rt({name:"VPopperContent",components:{ResizeObserver:of},mixins:[pw()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),YC=["id","aria-hidden","tabindex","data-popper-placement"],ZC={ref:"inner",class:"v-popper__inner"},JC=X("div",{class:"v-popper__arrow-outer"},null,-1),QC=X("div",{class:"v-popper__arrow-inner"},null,-1),eE=[JC,QC];function tE(e,t,r,o,s,c){const f=Go("ResizeObserver");return ie(),ve("div",{id:e.popperId,ref:"popover",class:ot(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:zt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=ih(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:zt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",ZC,[e.mounted?(ie(),ve(nt,{key:0},[X("div",null,[Dt(e.$slots,"default")]),e.handleResize?(ie(),Ve(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):He("",!0)],64)):He("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:zt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},eE,4)],4)],46,YC)}const gw=rf(XC,[["render",tE]]),mw={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let ch=function(){};typeof window<"u"&&(ch=window.Element);const nE=rt({name:"VPopperWrapper",components:{Popper:jC,PopperContent:gw},mixins:[mw,pw("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ch,Boolean],default:void 0},boundary:{type:[String,ch],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function rE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return ie(),Ve(d,ki({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:w,hide:E,handleResize:L,onResize:P,classes:M,result:R})=>[Dt(e.$slots,"default",{shown:p,show:w,hide:E}),Ne(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":L,classes:M,result:R,onHide:E,onResize:P},{default:We(()=>[Dt(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const lp=rf(nE,[["render",rE]]);({...lp});({...lp});const iE={...lp,name:"VTooltip",vPopperTheme:"tooltip"},oE=rt({name:"VTooltipDirective",components:{Popper:hw(),PopperContent:gw},mixins:[mw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ba(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ba(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),sE=["innerHTML"],lE=["textContent"];function aE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return ie(),Ve(d,ki({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:w,handleResize:E,onResize:L,classes:P,result:M})=>[Ne(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":E,classes:P,result:M,onHide:w,onResize:L},{default:We(()=>[e.html?(ie(),ve("div",{key:0,innerHTML:e.finalContent},null,8,sE)):(ie(),ve("div",{key:1,textContent:Re(e.finalContent)},null,8,lE))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const cE=rf(oE,[["render",aE]]),vw="v-popper--has-tooltip";function uE(e,t){let r=e.placement;if(!r&&t)for(const o of dw)t[o]&&(r=o);return r||(r=ba(e.theme||"tooltip","placement")),r}function yw(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=uE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let _d,xa,fE=0;function dE(){if(_d)return;xa=Ge([]),_d=Qb({name:"VTooltipDirectiveApp",setup(){return{directives:xa}},render(){return this.directives.map(t=>za(cE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),_d.mount(e)}function bw(e,t,r){dE();const o=Ge(yw(e,t,r)),s=Ge(!1),c={id:fE++,options:o,shown:s};return xa.value.push(c),e.classList&&e.classList.add(vw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function ap(e){if(e.$_popper){const t=xa.value.indexOf(e.$_popper.item);t!==-1&&xa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(vw)}function Wv(e,{value:t,modifiers:r}){const o=yw(e,t,r);if(!o.content||ba(o.theme||"tooltip","disabled"))ap(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=bw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const hE={beforeMount:Wv,updated:Wv,beforeUnmount(e){ap(e)}},pE=hE,Qi=iE,ww={options:ao};function cp(e){return I0()?(KS(e),!0):!1}const Td=new WeakMap,gE=(...e)=>{var t;const r=e[0],o=(t=ti())==null?void 0:t.proxy;if(o==null&&!Sb())throw new Error("injectLocal must be called in setup");return o&&Td.has(o)&&r in Td.get(o)?Td.get(o)[r]:pn(...e)},mE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const vE=Object.prototype.toString,yE=e=>vE.call(e)==="[object Object]",bE=()=>+Date.now(),yu=()=>{};function up(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const fp=e=>e();function xw(e,t={}){let r,o,s=yu;const c=h=>{clearTimeout(h),s(),s=yu};let f;return h=>{const p=Xt(e),g=Xt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},p)})}}function kw(e=fp,t={}){const{initialState:r="active"}=t,o=Yo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Gs(o),pause:s,resume:c,eventFilter:f}}function qv(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function jv(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function wE(e){return ti()}function Cd(e){return Array.isArray(e)?e:[e]}function Yo(...e){if(e.length!==1)return w_(...e);const t=e[0];return typeof t=="function"?Gs(Q0(()=>({get:t,set:yu}))):Ge(t)}function Nc(e,t=200,r={}){return up(xw(t,r),e)}function Sw(e,t,r={}){const{eventFilter:o=fp,...s}=r;return xt(e,up(o,t),s)}function _w(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=kw(o,{initialState:s});return{stop:Sw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function dp(e,t=!0,r){wE()?Mi(e,r):t?e():Et(e)}function uh(e,t=!1){function r(v,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:L}={}){let P=null;const R=[new Promise(I=>{P=xt(e,_=>{v(_)!==t&&(P?P():Et(()=>P?.()),I(_))},{flush:b,deep:w,immediate:!0})})];return E!=null&&R.push(qv(E,L).then(()=>Xt(e)).finally(()=>P?.())),Promise.race(R)}function o(v,b){if(!Mt(v))return r(_=>_===v,b);const{flush:w="sync",deep:E=!1,timeout:L,throwOnTimeout:P}=b??{};let M=null;const I=[new Promise(_=>{M=xt([e,v],([$,W])=>{t!==($===W)&&(M?M():Et(()=>M?.()),_($))},{flush:w,deep:E,immediate:!0})})];return L!=null&&I.push(qv(L,P).then(()=>Xt(e)).finally(()=>(M?.(),Xt(e)))),Promise.race(I)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(w=>{const E=Array.from(w);return E.includes(v)||E.includes(Xt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let w=-1;return r(()=>(w+=1,w>=v),b)}return Array.isArray(Xt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return uh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return uh(e,!t)}}}function Uv(e){return uh(e)}function xE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=Ft(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Xt(r);return c.value=c.value===h?Xt(o):h,c.value}}return s?f:[c,f]}function hp(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Sw(e,t,{...c,eventFilter:xw(o,{maxWait:s})})}function kE(e,t,r={}){const{eventFilter:o=fp,...s}=r,c=up(o,t);let f,d,h;if(s.flush==="sync"){const p=Ft(!1);d=()=>{},f=g=>{p.value=!0,g(),p.value=!1},h=xt(e,(...g)=>{p.value||c(...g)},s)}else{const p=[],g=Ft(0),v=Ft(0);d=()=>{g.value=v.value},p.push(xt(e,()=>{v.value++},{...s,flush:"sync"})),f=b=>{const w=v.value;b(),g.value+=v.value-w},p.push(xt(e,(...b)=>{const w=g.value>0&&g.value===v.value;g.value=0,v.value=0,!w&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function SE(e,t,r){return xt(e,t,{...r,immediate:!0})}function _E(e,t,r){const o=xt(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function TE(e,t,r){let o;Mt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=yu}=o,h=Ft(!s),p=f?Ft(t):Ge(t);let g=0;return _b(async v=>{if(!h.value)return;g++;const b=g;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(L=>{v(()=>{c&&(c.value=!1),w||L()})});b===g&&(p.value=E)}catch(E){d(E)}finally{c&&b===g&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ir=mE?window:void 0;function bu(e){var t;const r=Xt(e);return(t=r?.$el)!=null?t:r}function ho(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,g)=>(d.addEventListener(h,p,g),()=>d.removeEventListener(h,p,g)),s=ke(()=>{const d=Cd(Xt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=SE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>bu(p)))!=null?h:[Ir].filter(p=>p!=null),Cd(Xt(s.value?e[1]:e[0])),Cd(K(s.value?e[2]:e[1])),Xt(s.value?e[3]:e[2])]},([d,h,p,g])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const v=yE(g)?{...g}:g;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,v)))))},{flush:"post"}),f=()=>{c(),r()};return cp(r),f}function CE(){const e=Ft(!1),t=ti();return t&&Mi(()=>{e.value=!0},t),e}function Tw(e){const t=CE();return ke(()=>(t.value,!!e()))}function EE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Cw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Ir,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=EE(t);return ho(s,c,g=>{g.repeat&&Xt(d)||h(g)&&r(g)},f)}function AE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ir,once:c=!1}=t,f=Ft(!1),d=ke(()=>o?1e3/Xt(o):null);let h=0,p=null;function g(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&Er&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Ft(typeof o=="number"),f=Ft(),d=Ft(!1),h=p=>{d.value=p.matches};return _b(()=>{if(c.value){c.value=!s.value;const p=Xt(e).split(",");d.value=p.some(g=>{const v=g.includes("not all"),b=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=jv(b[1])),w&&E&&(E=o<=jv(w[1])),v?!E:E});return}s.value&&(f.value=r.matchMedia(Xt(e)),d.value=f.value.matches)}),ho(f,"change",h,{passive:!0}),ke(()=>d.value)}function Aw(e){return JSON.parse(JSON.stringify(e))}const Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pc="__vueuse_ssr_handlers__",NE=OE();function OE(){return Pc in Oc||(Oc[Pc]=Oc[Pc]||{}),Oc[Pc]}function Lw(e,t){return NE[e]||t}function PE(e){return Ew("(prefers-color-scheme: dark)",e)}function RE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const $E={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Vv="vueuse-storage";function Mw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Ir,eventFilter:b,onError:w=j=>{console.error(j)},initOnMounted:E}=o,L=(g?Ft:Ge)(typeof t=="function"?t():t),P=ke(()=>Xt(e));if(!r)try{r=Lw("getDefaultStorage",()=>{var j;return(j=Ir)==null?void 0:j.localStorage})()}catch(j){w(j)}if(!r)return L;const M=Xt(t),R=RE(M),I=(s=o.serializer)!=null?s:$E[R],{pause:_,resume:$}=_w(L,()=>ne(L.value),{flush:c,deep:f,eventFilter:b});xt(P,()=>Z(),{flush:c}),v&&d&&dp(()=>{r instanceof Storage?ho(v,"storage",Z,{passive:!0}):ho(v,Vv,G),E&&Z()}),E||Z();function W(j,N){if(v){const O={key:P.value,oldValue:j,newValue:N,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Vv,{detail:O}))}}function ne(j){try{const N=r.getItem(P.value);if(j==null)W(N,null),r.removeItem(P.value);else{const O=I.write(j);N!==O&&(r.setItem(P.value,O),W(N,O))}}catch(N){w(N)}}function ee(j){const N=j?j.newValue:r.getItem(P.value);if(N==null)return h&&M!=null&&r.setItem(P.value,I.write(M)),M;if(!j&&p){const O=I.read(N);return typeof p=="function"?p(O,M):R==="object"&&!Array.isArray(O)?{...M,...O}:O}else return typeof N!="string"?N:I.read(N)}function Z(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){L.value=M;return}if(!(j&&j.key!==P.value)){_();try{j?.newValue!==I.write(L.value)&&(L.value=ee(j))}catch(N){w(N)}finally{j?Et($):$()}}}}function G(j){Z(j.detail)}return L}const IE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function DE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ir,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=PE({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?Yo(o):Mw(f,o,c,{window:s,listenToStorageChanges:d})),L=ke(()=>E.value==="auto"?w.value:E.value),P=Lw("updateHTMLAttrs",(_,$,W)=>{const ne=typeof _=="string"?s?.document.querySelector(_):bu(_);if(!ne)return;const ee=new Set,Z=new Set;let G=null;if($==="class"){const N=W.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{N.includes(O)?ee.add(O):Z.add(O)})}else G={key:$,value:W};if(ee.size===0&&Z.size===0&&G===null)return;let j;g&&(j=s.document.createElement("style"),j.appendChild(document.createTextNode(IE)),s.document.head.appendChild(j));for(const N of ee)ne.classList.add(N);for(const N of Z)ne.classList.remove(N);G&&ne.setAttribute(G.key,G.value),g&&(s.getComputedStyle(j).opacity,document.head.removeChild(j))});function M(_){var $;P(t,r,($=v[_])!=null?$:_)}function R(_){e.onChanged?e.onChanged(_,M):M(_)}xt(L,R,{flush:"post",immediate:!0}),dp(()=>R(L.value));const I=ke({get(){return p?E.value:L.value},set(_){E.value=_}});return Object.assign(I,{store:E,system:w,state:L})}function zE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=DE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function Nw(e){return e}function FE(e,t){return e.value=t}function HE(e){return e?typeof e=="function"?e:Aw:Nw}function BE(e){return e?typeof e=="function"?e:Aw:Nw}function WE(e,t={}){const{clone:r=!1,dump:o=HE(r),parse:s=BE(r),setSource:c=FE}=t;function f(){return Uu({snapshot:o(e.value),timestamp:bE()})}const d=Ge(f()),h=Ge([]),p=Ge([]),g=I=>{c(e,s(I.snapshot)),d.value=I},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const I=h.value.shift();I&&(p.value.unshift(d.value),g(I))},E=()=>{const I=p.value.shift();I&&(h.value.unshift(d.value),g(I))},L=()=>{g(d.value)},P=ke(()=>[d.value,...h.value]),M=ke(()=>h.value.length>0),R=ke(()=>p.value.length>0);return{source:e,undoStack:h,redoStack:p,last:d,history:P,canUndo:M,canRedo:R,clear:b,commit:v,reset:L,undo:w,redo:E}}function qE(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s}=t,{eventFilter:c,pause:f,resume:d,isActive:h}=kw(s),{ignoreUpdates:p,ignorePrevAsyncUpdates:g,stop:v}=kE(e,P,{deep:r,flush:o,eventFilter:c});function b(_,$){g(),p(()=>{_.value=$})}const w=WE(e,{...t,clone:t.clone||r,setSource:b}),{clear:E,commit:L}=w;function P(){g(),L()}function M(_){d(),_&&P()}function R(_){let $=!1;const W=()=>$=!0;p(()=>{_(W)}),$||P()}function I(){v(),E()}return{...w,isTracking:h,pause:f,resume:M,commit:P,batch:R,dispose:I}}function Ow(e,t,r={}){const{window:o=Ir,...s}=r;let c;const f=Tw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const v=Xt(e);return Array.isArray(v)?v.map(b=>bu(b)):[bu(v)]}),p=xt(h,v=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of v)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return cp(g),{isSupported:f,stop:g}}function sf(e,t,r={}){const{window:o=Ir}=r;return Mw(e,t,o?.localStorage,r)}function jE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ir}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const I=d.location.hash||"",_=I.indexOf("?");return _>0?I.slice(_):""}else return(d.location.hash||"").replace(/^#/,"")}function g(I){const _=I.toString();if(e==="history")return`${_?`?${_}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${_?`#${_}`:""}`;const $=d.location.hash||"#",W=$.indexOf("?");return W>0?`${d.location.search||""}${$.slice(0,W)}${_?`?${_}`:""}`:`${d.location.search||""}${$}${_?`?${_}`:""}`}function v(){return new URLSearchParams(p())}function b(I){const _=new Set(Object.keys(h));for(const $ of I.keys()){const W=I.getAll($);h[$]=W.length>1?W:I.get($)||"",_.delete($)}Array.from(_).forEach($=>delete h[$])}const{pause:w,resume:E}=_w(h,()=>{const I=new URLSearchParams("");Object.keys(h).forEach(_=>{const $=h[_];Array.isArray($)?$.forEach(W=>I.append(_,W)):o&&$==null||s&&!$?I.delete(_):I.set(_,$)}),L(I,!1)},{deep:!0});function L(I,_){w(),_&&b(I),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+g(I)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+g(I)),E()}function P(){c&&L(v(),!0)}const M={passive:!0};ho(d,"popstate",P,M),e!=="history"&&ho(d,"hashchange",P,M);const R=v();return R.keys().next().value?b(R):Object.assign(h,r),h}function Pw(e={}){const{window:t=Ir,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Ft(r),h=Ft(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:w}=t.visualViewport;d.value=Math.round(v*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),dp(p);const g={passive:!0};if(ho("resize",p,g),t&&f==="visual"&&t.visualViewport&&ho(t.visualViewport,"resize",p,g),s){const v=Ew("(orientation: portrait)");xt(v,()=>p())}return{width:d,height:h}}const Gv={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=yb(),c=Ge([]),f=ke(()=>c.value.reduce((F,Y)=>(F[~~Y.id]=Y)&&F,{})),d=ke(()=>c.value.length),h=Ge(null),p=Ge(!1),g=Ge({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ge({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",P,{passive:!1}),document.addEventListener("mouseup",M),"ontouchstart"in window&&(document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M))},E=()=>{document.removeEventListener("mousemove",P,{passive:!1}),document.removeEventListener("mouseup",M),"ontouchstart"in window&&(document.removeEventListener("touchmove",P,{passive:!1}),document.removeEventListener("touchend",M))},L=(F,Y)=>{const re=F.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ae}=re.getBoundingClientRect(),{clientX:D,clientY:q}="ontouchstart"in window&&F.touches?F.touches[0]:F;g.value.cursorOffset=o.horizontal?q-ae:D-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Y},P=F=>{g.value.mouseDown&&(F.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{ne($(F)),Fe("resize",{event:F},!0)}))},M=F=>{g.value.dragging&&(window.getSelection().removeAllRanges(),Fe("resized",{event:F},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,E()},100)},R=(F,Y)=>{"ontouchstart"in window&&(F.preventDefault(),v.value.splitter===Y?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,I(F,Y),v.value.splitter=null):(v.value.splitter=Y,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||Fe("splitter-click",{event:F,index:Y},!0)},I=(F,Y)=>{if(Fe("splitter-dblclick",{event:F,index:Y},!0),o.maximizePanes){let re=0;c.value=c.value.map((le,ae)=>(le.size=ae===Y?le.max:le.min,ae!==Y&&(re+=le.min),le)),c.value[Y].size-=re,Fe("pane-maximize",{event:F,index:Y,pane:c.value[Y]}),Fe("resized",{event:F,index:Y},!0)}},_=(F,Y)=>{Fe("pane-click",{event:F,index:f.value[Y].index,pane:f.value[Y]})},$=F=>{const Y=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&F.touches?F.touches[0]:F;return{x:re-(o.horizontal?0:g.value.cursorOffset)-Y.left,y:le-(o.horizontal?g.value.cursorOffset:0)-Y.top}},W=F=>{F=F[o.horizontal?"y":"x"];const Y=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(F=Y-F),F*100/Y},ne=F=>{const Y=g.value.activeSplitter;let re={prevPanesSize:Z(Y),nextPanesSize:G(Y),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:re.prevPanesSize),ae=100-(o.pushOtherPanes?0:re.nextPanesSize),D=Math.max(Math.min(W(F),ae),le);let q=[Y,Y+1],Q=c.value[q[0]]||null,he=c.value[q[1]]||null;const de=Q.max<100&&D>=Q.max+re.prevPanesSize,ge=he.max<100&&D<=100-(he.max+G(Y+1));if(de||ge){de?(Q.size=Q.max,he.size=Math.max(100-Q.max-re.prevPanesSize-re.nextPanesSize,0)):(Q.size=Math.max(100-he.max-re.prevPanesSize-G(Y+1),0),he.size=he.max);return}if(o.pushOtherPanes){const Ce=ee(re,D);if(!Ce)return;({sums:re,panesToResize:q}=Ce),Q=c.value[q[0]]||null,he=c.value[q[1]]||null}Q!==null&&(Q.size=Math.min(Math.max(D-re.prevPanesSize-re.prevReachedMinPanes,Q.min),Q.max)),he!==null&&(he.size=Math.min(Math.max(100-D-re.nextPanesSize-re.nextReachedMinPanes,he.min),he.max))},ee=(F,Y)=>{const re=g.value.activeSplitter,le=[re,re+1];return Y{D>le[0]&&D<=re&&(ae.size=ae.min,F.prevReachedMinPanes+=ae.min)}),F.prevPanesSize=Z(le[0]),le[0]===void 0)?(F.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ae,D)=>{D>0&&D<=re&&(ae.size=ae.min,F.prevReachedMinPanes+=ae.min)}),c.value[le[1]].size=100-F.prevReachedMinPanes-c.value[0].min-F.prevPanesSize-F.nextPanesSize,null):Y>100-F.nextPanesSize-c.value[le[1]].min&&(le[1]=N(re).index,F.nextReachedMinPanes=0,le[1]>re+1&&c.value.forEach((ae,D)=>{D>re&&D{D=re+1&&(ae.size=ae.min,F.nextReachedMinPanes+=ae.min)}),c.value[le[0]].size=100-F.prevPanesSize-G(le[0]-1),null):{sums:F,panesToResize:le}},Z=F=>c.value.reduce((Y,re,le)=>Y+(lec.value.reduce((Y,re,le)=>Y+(le>F+1?re.size:0),0),j=F=>[...c.value].reverse().find(Y=>Y.indexY.min)||{},N=F=>c.value.find(Y=>Y.index>F+1&&Y.size>Y.min)||{},O=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const re of Y){const le=re.classList.contains("splitpanes__pane"),ae=re.classList.contains("splitpanes__splitter");!le&&!ae&&(re.remove(),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))}},C=(F,Y,re=!1)=>{const le=F-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),re||(ae.onmousedown=D=>L(D,le),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=D=>L(D,le)),ae.onclick=D=>R(D,le+1)),ae.ondblclick=D=>I(D,le+1),Y.parentNode.insertBefore(ae,Y)},k=F=>{F.onmousedown=void 0,F.onclick=void 0,F.ondblclick=void 0,F.remove()},z=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const le of Y)le.className.includes("splitpanes__splitter")&&k(le);let re=0;for(const le of Y)le.className.includes("splitpanes__pane")&&(!re&&o.firstSplitter?C(re,le,!0):re&&C(re,le),re++)},B=({uid:F,...Y})=>{const re=f.value[F];for(const[le,ae]of Object.entries(Y))re[le]=ae},ce=F=>{var Y;let re=-1;Array.from(((Y=h.value)==null?void 0:Y.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(F.el))),c.value.splice(re,0,{...F,index:re}),c.value.forEach((le,ae)=>le.index=ae),p.value&&Et(()=>{z(),Se({addedPane:c.value[re]}),Fe("pane-add",{pane:c.value[re]})})},be=F=>{const Y=c.value.findIndex(le=>le.id===F);c.value[Y].el=null;const re=c.value.splice(Y,1)[0];c.value.forEach((le,ae)=>le.index=ae),Et(()=>{z(),Fe("pane-remove",{pane:re}),Se({removedPane:{...re}})})},Se=(F={})=>{!F.addedPane&&!F.removedPane?Ae():c.value.some(Y=>Y.givenSize!==null||Y.min||Y.max<100)?Ke(F):Be(),p.value&&Fe("resized")},Be=()=>{const F=100/d.value;let Y=0;const re=[],le=[];for(const ae of c.value)ae.size=Math.max(Math.min(F,ae.max),ae.min),Y-=ae.size,ae.size>=ae.max&&re.push(ae.id),ae.size<=ae.min&&le.push(ae.id);Y>.1&&je(Y,re,le)},Ae=()=>{let F=100;const Y=[],re=[];let le=0;for(const D of c.value)F-=D.size,D.givenSize!==null&&le++,D.size>=D.max&&Y.push(D.id),D.size<=D.min&&re.push(D.id);let ae=100;if(F>.1){for(const D of c.value)D.givenSize===null&&(D.size=Math.max(Math.min(F/(d.value-le),D.max),D.min)),ae-=D.size;ae>.1&&je(ae,Y,re)}},Ke=({addedPane:F,removedPane:Y}={})=>{let re=100/d.value,le=0;const ae=[],D=[];(F?.givenSize??null)!==null&&(re=(100-F.givenSize)/(d.value-1));for(const q of c.value)le-=q.size,q.size>=q.max&&ae.push(q.id),q.size<=q.min&&D.push(q.id);if(!(Math.abs(le)<.1)){for(const q of c.value)F?.givenSize!==null&&F?.id===q.id||(q.size=Math.max(Math.min(re,q.max),q.min)),le-=q.size,q.size>=q.max&&ae.push(q.id),q.size<=q.min&&D.push(q.id);le>.1&&je(le,ae,D)}},je=(F,Y,re)=>{let le;F>0?le=F/(d.value-Y.length):le=F/(d.value-re.length),c.value.forEach((ae,D)=>{if(F>0&&!Y.includes(ae.id)){const q=Math.max(Math.min(ae.size+le,ae.max),ae.min),Q=q-ae.size;F-=Q,ae.size=q}else if(!re.includes(ae.id)){const q=Math.max(Math.min(ae.size+le,ae.max),ae.min),Q=q-ae.size;F-=Q,ae.size=q}}),Math.abs(F)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Fe=(F,Y=void 0,re=!1)=>{const le=Y?.index??g.value.activeSplitter??null;r(F,{...Y,...le!==null&&{index:le},...re&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ae=>({min:ae.min,max:ae.max,size:ae.size}))})};xt(()=>o.firstSplitter,()=>z()),Mi(()=>{O(),z(),Se(),Fe("ready"),p.value=!0}),$a(()=>p.value=!1);const Pe=()=>{var F;return za("div",{ref:h,class:b.value},(F=s.default)==null?void 0:F.call(s))};return dr("panes",c),dr("indexedPanes",f),dr("horizontal",ke(()=>o.horizontal)),dr("requestUpdate",B),dr("onPaneAdd",ce),dr("onPaneRemove",be),dr("onPaneClick",_),(F,Y)=>(ie(),Ve(Xd(Pe)))}},Rc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=pn("requestUpdate"),s=pn("onPaneAdd"),c=pn("horizontal"),f=pn("onPaneRemove"),d=pn("onPaneClick"),h=(t=ti())==null?void 0:t.uid,p=pn("indexedPanes"),g=ke(()=>p.value[h]),v=Ge(null),b=ke(()=>{const P=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(P,E.value),w.value)}),w=ke(()=>{const P=parseFloat(r.minSize);return isNaN(P)?0:P}),E=ke(()=>{const P=parseFloat(r.maxSize);return isNaN(P)?100:P}),L=ke(()=>{var P;return`${c.value?"height":"width"}: ${(P=g.value)==null?void 0:P.size}%`});return xt(()=>b.value,P=>o({uid:h,size:P})),xt(()=>w.value,P=>o({uid:h,min:P})),xt(()=>E.value,P=>o({uid:h,max:P})),Mi(()=>{s({id:h,el:v.value,min:w.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),$a(()=>f(h)),(P,M)=>(ie(),ve("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:M[0]||(M[0]=R=>K(d)(R,P._.uid)),style:zt(L.value)},[Dt(P.$slots,"default")],4))}},tr=Ge([414,896]);function Rw(e){return e!=null}function pp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const UE=/^[A-Za-z]:\//;function VE(e=""){return e&&e.replace(/\\/g,"/").replace(UE,t=>t.toUpperCase())}const GE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const $w=function(...e){e=e.map(o=>VE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:KE();!s||s.length===0||(t=`${s}/${t}`,r=Kv(s))}return t=XE(t,!r),r&&!Kv(t)?`/${t}`:t.length>0?t:"."};function XE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Kv=function(e){return GE.test(e)};var YE=44,Xv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ZE=new Uint8Array(64),Iw=new Uint8Array(128);for(let e=0;e>>=1,c&&(r=-2147483648|-r),t+r}function Yv(e,t){return e.pos>=t?!1:e.peek()!==YE}var JE=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function QE(e){const{length:t}=e,r=new JE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos>1),c=e[s][lf]-t;if(c===0)return wu=!0,s;c<0?r=s+1:o=s-1}return wu=!1,r-1}function lA(e,t,r){for(let o=r+1;o=0&&e[o][lf]===t;r=o--);return r}function cA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return wu=f!==-1&&e[f][lf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=sA(e,t,d,h)}var uA="`line` must be greater than 0 (lines start at line 1)",fA="`column` must be greater than or equal to 0 (columns start at column 0)",Zv=-1,dA=1;function hA(e){var t;return(t=e)._decoded||(t._decoded=QE(e._encoded))}function pA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(uA);if(o<0)throw new Error(fA);const c=hA(e);if(r>=c.length)return $c(null,null,null,null);const f=c[r],d=gA(f,e._decodedMemo,r,o,s||dA);if(d===-1)return $c(null,null,null,null);const h=f[d];if(h.length===1)return $c(null,null,null,null);const{names:p,resolvedSources:g}=e;return $c(g[h[nA]],h[rA]+1,h[iA],h.length===5?p[h[oA]]:null)}function $c(e,t,r,o){return{source:e,line:t,column:r,name:o}}function gA(e,t,r,o,s){let c=cA(e,o,t,r);return wu?c=(s===Zv?lA:aA)(e,o,c):s===Zv&&c++,c===-1||c===e.length?-1:c}const Dw=/^\s*at .*(?:\S:\d+|\(native\))/m,mA=/^(?:eval@)?(?:\[native code\])?$/,vA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function zw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function yA(e){let t=e.trim();if(mA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=zw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function bA(e){let t=e.trim();if(!Dw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=zw(o?o[1]:r);let d=o&&r||"",h=s&&["eval",""].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:$w(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function wA(e,t={}){const{ignoreStackEntries:r=vA}=t;return(Dw.test(e)?kA(e):xA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Jv(r,s.file)?null:s;const d=new SA(f,s.file),h=TA(d,s);if(!h)return s;const{line:p,column:g,source:v,name:b}=h;let w=v||s.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),Jv(r,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:b||s.method}:s}).filter(s=>s!=null)}function Jv(e,t){return e.some(r=>t.match(r))}function xA(e){return e.split(` +`).map(t=>yA(t)).filter(Rw)}function kA(e){return e.split(` +`).map(t=>bA(t)).filter(Rw)}class SA{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=_A(),this.url=r,this.resolvedSources=(c||[]).map(f=>$w(f||"",r))}}function _A(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function TA(e,t){const r=pA(e,t);return r.column==null?null:r}const CA=/^[A-Za-z]:\//;function Fw(e=""){return e&&e.replace(/\\/g,"/").replace(CA,t=>t.toUpperCase())}const EA=/^[/\\]{2}/,AA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,LA=/^[A-Za-z]:$/,Qv=/^\/([A-Za-z]:)?$/,MA=function(e){if(e.length===0)return".";e=Fw(e);const t=e.match(EA),r=xu(e),o=e[e.length-1]==="/";return e=Hw(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),LA.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!xu(e)?`/${e}`:e)},NA=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return MA(t)};function OA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ey=function(...e){e=e.map(o=>Fw(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:OA();!s||s.length===0||(t=`${s}/${t}`,r=xu(s))}return t=Hw(t,!r),r&&!xu(t)?`/${t}`:t.length>0?t:"."};function Hw(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const xu=function(e){return AA.test(e)},af=function(e,t){const r=ey(e).replace(Qv,"$1").split("/"),o=ey(t).replace(Qv,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function PA(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;rJs(t)?[t]:[t,...gp(t.tasks)])}function $A(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const ty="q",ny="s";function IA(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const DA=Math.random.bind(Math),zA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function FA(e=21){let t="",r=e;for(;r--;)t+=zA[DA()*64|0];return t}const HA=6e4,qw=e=>e,BA=qw,{clearTimeout:ry,setTimeout:WA}=globalThis;function qA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=qw,deserialize:d=BA,resolver:h,bind:p="rpc",timeout:g=HA,proxify:v=!0}=t;let b=!1;const w=new Map;let E,L;async function P($,W,ne,ee){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${$}"`);const Z={m:$,a:W,t:ty};ee&&(Z.o=!0);const G=async B=>r(f(B));if(ne){await G(Z);return}if(E)try{await E}finally{E=void 0}let{promise:j,resolve:N,reject:O}=IA();const C=FA();Z.i=C;let k;async function z(B=Z){return g>=0&&(k=WA(()=>{try{if(t.onTimeoutError?.call(L,$,W)!==!0)throw new Error(`[birpc] timeout on calling "${$}"`)}catch(ce){O(ce)}w.delete(C)},g),typeof k=="object"&&(k=k.unref?.())),w.set(C,{resolve:N,reject:O,timeoutId:k,method:$}),await G(B),j}try{t.onRequest?await t.onRequest.call(L,Z,z,N):await z()}catch(B){if(t.onGeneralError?.call(L,B)!==!0)throw B;return}finally{ry(k),w.delete(C)}return j}const M={$call:($,...W)=>P($,W,!1),$callOptional:($,...W)=>P($,W,!1,!0),$callEvent:($,...W)=>P($,W,!0),$callRaw:$=>P($.method,$.args,$.event,$.optional),$rejectPendingCalls:I,get $closed(){return b},get $meta(){return t.meta},$close:R,$functions:e};v?L=new Proxy({},{get($,W){if(Object.prototype.hasOwnProperty.call(M,W))return M[W];if(W==="then"&&!c.includes("then")&&!("then"in e))return;const ne=(...Z)=>P(W,Z,!0);if(c.includes(W))return ne.asEvent=ne,ne;const ee=(...Z)=>P(W,Z,!1);return ee.asEvent=ne,ee}}):L=M;function R($){b=!0,w.forEach(({reject:W,method:ne})=>{const ee=new Error(`[birpc] rpc is closed, cannot call "${ne}"`);if($)return $.cause??=ee,W($);W(ee)}),w.clear(),s(_)}function I($){const W=Array.from(w.values()).map(({method:ne,reject:ee})=>$?$({method:ne,reject:ee}):ee(new Error(`[birpc]: rejected pending call "${ne}".`)));return w.clear(),W}async function _($,...W){let ne;try{ne=d($)}catch(ee){if(t.onGeneralError?.call(L,ee)!==!0)throw ee;return}if(ne.t===ty){const{m:ee,a:Z,o:G}=ne;let j,N,O=await(h?h.call(L,ee,e[ee]):e[ee]);if(G&&(O||=()=>{}),!O)N=new Error(`[birpc] function "${ee}" not found`);else try{j=await O.apply(p==="rpc"?L:e,Z)}catch(C){N=C}if(ne.i){if(N&&t.onFunctionError&&t.onFunctionError.call(L,N,ee,Z)===!0)return;if(!N)try{await r(f({t:ny,i:ne.i,r:j}),...W);return}catch(C){if(N=C,t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}try{await r(f({t:ny,i:ne.i,e:N}),...W)}catch(C){if(t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}}}else{const{i:ee,r:Z,e:G}=ne,j=w.get(ee);j&&(ry(j.timeoutId),G?j.reject(G):j.resolve(Z)),w.delete(ee)}}return E=o(_),L}const{parse:jw,stringify:jA}=JSON,{keys:UA}=Object,ka=String,Uw="string",iy={},ku="object",Vw=(e,t)=>t,VA=e=>e instanceof ka?ka(e):e,GA=(e,t)=>typeof t===Uw?new ka(t):t,Gw=(e,t,r,o)=>{const s=[];for(let c=UA(r),{length:f}=c,d=0;d{const o=ka(t.push(r)-1);return e.set(r,o),o},fh=(e,t)=>{const r=jw(e,GA).map(VA),o=r[0],s=t||Vw,c=typeof o===ku&&o?Gw(r,new Set,o,s):o;return s.call({"":c},"",c)},Kw=(e,t,r)=>{const o=t&&typeof t===ku?(g,v)=>g===""||-1jw(Kw(e));class Xw{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Bw(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function XA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const g=d({ws:new h(e),state:new Xw,waitForConnection:M,reconnect:L},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate(R,I){r.onTestAnnotate?.(R,I)},onTestArtifactRecord(R,I){r.onTestArtifactRecord?.(R,I)},onSpecsCollected(R,I){R?.forEach(([_,$])=>{g.state.clearFiles({config:_},[$])}),r.onSpecsCollected?.(R,I)},onPathsCollected(R){g.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){g.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,I){g.state.updateTasks(R),r.onTaskUpdate?.(R,I)},onUserConsoleLog(R){g.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,I,_,$){r.onFinished?.(R,I,_,$)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},w={post:R=>g.ws.send(R),on:R=>v=R,serialize:R=>Kw(R,(I,_)=>_ instanceof Error?{name:_.name,message:_.message,stack:_.stack}:_),deserialize:fh,timeout:-1};g.rpc=qA(b,w);let E;function L(R=!1){R&&(p=c),g.ws=new h(e),P()}function P(){E=new Promise((R,I)=>{const _=setTimeout(()=>{I(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&R(),g.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(_)})}),g.ws.addEventListener("message",R=>{v(R.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}P();function M(){return E}return g}const dh=Ft([]),Jn=Ft([]),Dr=sf("vitest-ui_task-tree-opened",[],{shallow:!0}),Su=ke(()=>new Set(Dr.value)),gn=sf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Vn=Ge(gn.value.search),YA={"&":"&","<":"<",">":">",'"':""","'":"'"};function Yw(e){return e.replace(/[&<>"']/g,t=>YA[t])}const ZA=ke(()=>{const e=Vn.value.toLowerCase();return e.length?new RegExp(`(${Yw(e)})`,"gi"):null}),Zw=ke(()=>Vn.value.trim()!==""),it=ir({failed:gn.value.failed,success:gn.value.success,skipped:gn.value.skipped,onlyTests:gn.value.onlyTests}),hh=ke(()=>!!(it.failed||it.success||it.skipped)),cf=Ft([]),Qs=Ge(!1),sy=ke(()=>{const e=gn.value.expandAll;return Dr.value.length>0?e!==!0:e!==!1}),JA=ke(()=>{const e=Zw.value,t=hh.value,r=it.onlyTests,o=Oe.summary.filesFailed,s=Oe.summary.filesSuccess,c=Oe.summary.filesSkipped,f=Oe.summary.filesRunning,d=cf.value;return Oe.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ha(e){return Object.hasOwn(e,"tasks")}function QA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Fo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function Ed(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function eL(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:g,candidate:v}=c;t.set(g,v);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Jw(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function tL(e){return Jw(e).raw}function Xc(e){if(e>=500)return"danger";if(e>=100)return"warning"}function _u(e){const t=Xc(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Qw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function ex(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function nL(e){return e.type==="test"}function rL(e){return e.mode==="run"&&e.type==="test"}function In(e){return e.type==="file"}function Ci(e){return e.type==="file"||e.type==="suite"}function iL(e=Oe.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function Sa(e,t=!1){let r=Oe.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Su.value.size>0&&Su.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Oe.colors.get(e.projectName||"")||Qw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Oe.nodes.set(e.id,r),Oe.root.tasks.push(r)),t)for(let o=0;o0),[r,o]}function oL(e){const t=Oe.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!Js(r)||Ba(t.parentId,r,!1)}function Ba(e,t,r){const o=Oe.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Oe.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Js(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Su.value.size>0&&Su.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Oe.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ha(t)))for(let f=0;fuf.value==="idle"),eo=Ge([]);function cL(e,t,r){return e?ox(e,t,r):!1}function mp(e,t){const r=[...rx(e,t)];Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function*rx(e,t){for(const r of iL())yield*ix(r,e,t)}function*ix(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of gh(e,o,w=>ly(w,t,r)))c.push([v,b]);else{for(const[v,b]of gh(e,o,w=>ly(w,t,r)))Ci(b)?(s.set(b.id,v),In(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!In(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...fL(c,r.onlyTests,o,d,f)].reverse(),p=Oe.nodes,g=new Set(h.filter(v=>In(v)||Ci(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>In(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function uL(e,t,r,o,s){if(o){if(In(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}function*fL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Ci(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Oe.nodes.get(d.parentId);for(;p;)r.add(p.id),In(p)&&o.add(p.id),p=Oe.nodes.get(p.parentId);yield d;continue}if(h){const p=uL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Oe.nodes.get(d.parentId);p&&In(p)&&o.add(p.id),yield d}}}function dL(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function ox(e,t,r){if(t.length===0||QA(e.name,t))if(r.success||r.failed||r.skipped){if(dL(e,r))return!0}else return!0;return!1}function*gh(e,t,r){const o=r(e);if(o)if(nL(e)){let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}else if(In(e))t.add(e.id);else{t.add(e.id);let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}if(yield[o,e],Ci(e))for(let s=0;smr(o.id))}function gL(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&vp(Jn.value.filter(In),!0)}function vp(e,t){for(const r of e)Ci(r)&&(r.expanded=!0,vp(r.tasks,!1));t&&(gn.value.expandAll=!1,Dr.value=[])}function*mL(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function yp(e){return Ww(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function vL(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Sa(s,t)),dh.value=[...Oe.root.tasks],mp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function yL(e){queueMicrotask(()=>{const t=Oe.pendingTasks,r=ft.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function bL(e,t){const r=Oe.pendingTasks,s=ft.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function ay(e,t,r,o,s,c){e&&TL(r);const f=!e;queueMicrotask(()=>{t?kL(f):SL(f)}),queueMicrotask(()=>{CL(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=dh.value&&yp(dh.value.map(d=>mr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{_L(o,s,t)})}function*wL(){yield*Jn.value.filter(rL)}function xL(){const e=ft.state.idMap;let t;for(const r of wL())t=e.get(r.parentId),t&&Ha(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function kL(e){const t=ft.state.getFiles(),r=Oe.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c!r.has(d)).map(d=>mr(d)).filter(Boolean);let s;for(let d=0;dc.get(v)).filter(Boolean)))}}function _L(e,t,r=!1){const o=gn.value.expandAll,s=o!==!0,c=new Set(Dr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{cy(e,t,r)}),Qs.value||queueMicrotask(()=>{(Jn.value.length||r)&&(Qs.value=!0)}),f&&(queueMicrotask(()=>{gL(c,r),s&&(gn.value.expandAll=!1)}),queueMicrotask(()=>{cy(e,t,r)}))}function cy(e,t,r){mp(e,t),r&&(xL(),uf.value="idle")}function Tu(e){let t;for(let r=0;rr.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,mr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:w}=sx(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,c.testsTodo+=w,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsFailed=c.testsFailed,e.testsTodo=c.testsTodo,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function sx(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of lx(e))(!r||cL(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function EL(e,t,r,o,s,c){if(t)return r.map(f=>sx(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*lx(e){const t=pp(e);let r;for(let o=0;oo.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),vL(t,!0,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){bL(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){yL(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return EL(t,r,o,s,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}collapseNode(t){queueMicrotask(()=>{sL(t)})}expandNode(t){queueMicrotask(()=>{hL(t,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{lL()})}expandAllNodes(){queueMicrotask(()=>{pL(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}filterNodes(){queueMicrotask(()=>{mp(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}}const Oe=new AL;function ax(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yc={exports:{}},LL=Yc.exports,uy;function vo(){return uy||(uy=1,(function(e,t){(function(r,o){e.exports=o()})(LL,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),P=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),I=/Android/.test(r),_=R||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),$=R||/Mac/.test(o),W=/\bCrOS\b/.test(r),ne=/win/i.test(o),ee=E&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,g=!0);var Z=$&&(v||E&&(ee==null||ee<12.11)),G=s||h&&p>=9;function j(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var N=function(n,i){var a=n.className,l=j(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function C(n,i){return O(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var m=0;m=i)return y+(i-m);y+=x-m,y+=a-y%a,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l"€"&&(n.toUpperCase()!=n.toLowerCase()||$e.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Je(n)?!0:i.test(n):Je(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\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 ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Yt(n,i,a){for(;(a<0?i>0:ia?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;mi||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",m),u=!0)}u||l(i,a,"ltr")}var Hr=null;function Bt(n,i,a){var l;Hr=null;for(var u=0;ui)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:Hr=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:Hr=u)}return l??Hr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(T,H,V){this.level=T,this.from=H,this.to=V}return function(T,H){var V=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!l.test(T))return!1;for(var se=T.length,te=[],pe=0;pe-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function Pt(n,i){var a=ri(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u0}function yr(n){n.prototype.on=function(i,a){Xe(this,i,a)},n.prototype.off=function(i,a){an(this,i,a)}}function cn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Zo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function kn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Oi(n){cn(n),Zo(n)}function sl(n){return n.target||n.srcElement}function br(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),$&&n.ctrlKey&&i==1&&(i=3),i}var mf=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),Jo;function Ga(n){if(Jo==null){var i=k("span","​");C(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Jo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Jo?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var ll;function Pi(n){if(ll!=null)return ll;var i=C(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:ll=l.right-a.right<3}var cr=` + +b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(` +`,i);u==-1&&(u=n.length);var m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Ri=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Ka=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),wr=null;function vf(n){if(wr!=null)return wr;var i=C(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return wr=Math.abs(a.left-l.left)>1}var Qo={},xr={};function kr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Qo[n]=i}function bo(n,i){xr[n]=i}function es(n){if(typeof n=="string"&&xr.hasOwnProperty(n))n=xr[n];else if(n&&typeof n.name=="string"&&xr.hasOwnProperty(n.name)){var i=xr[n.name];typeof i=="string"&&(i={name:i}),n=oe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return es("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return es("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function ts(n,i){i=es(i);var a=Qo[i.name];if(!a)return ts(n,"text/plain");var l=a(n,i);if($i.hasOwnProperty(i.name)){var u=$i[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var $i={};function ns(n,i){var a=$i.hasOwnProperty(n)?$i[n]:$i[n]={};Y(i,a)}function Br(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function al(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function rs(n,i,a){return n.startState?n.startState(i,a):!0}var $t=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.posi},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function qe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],m=u.chunkSize();if(i=n.first&&ia?fe(a,qe(n,a).text.length):I1(i,qe(n,i.line).text.length)}function I1(n,i){var a=n.ch;return a==null||a>i?fe(n.line,i):a<0?fe(n.line,0):n}function qp(n,i){for(var a=[],l=0;lthis.maxLookAhead&&(this.maxLookAhead=n),i},Wr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(n,i,a){return i instanceof Xa?new Wr(n,Br(n.mode,i.state),a,i.lookAhead):new Wr(n,Br(n.mode,i),a)},Wr.prototype.save=function(n){var i=n!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xa(i,this.maxLookAhead):i};function jp(n,i,a,l){var u=[n.state.modeGen],m={};Yp(n,i.text,n.doc.mode,a,function(T,H){return u.push(T,H)},m,l);for(var y=a.state,x=function(T){a.baseTokens=u;var H=n.state.overlays[T],V=1,se=0;a.state=!0,Yp(n,i.text,H.mode,a,function(te,pe){for(var we=V;sete&&u.splice(V,1,te,u[V+1],Te),V+=2,se=Math.min(te,Te)}if(pe)if(H.opaque)u.splice(we,V-we,te,"overlay "+pe),V=we+2;else for(;wen.options.maxHighlightLength&&Br(n.doc.mode,l.state),m=jp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function ul(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Wr(l,!0,i);var m=D1(n,i,a),y=m>l.first&&qe(l,m-1).stateAfter,x=y?Wr.fromSaved(l,y,m):new Wr(l,rs(l.mode),m);return l.iter(m,i,function(S){yf(n,S.text,x);var T=x.line;S.stateAfter=T==i-1||T%5==0||T>=u.viewFrom&&Ti.start)return m}throw new Error("Mode "+n.name+" failed to advance stream.")}var Gp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Kp(n,i,a,l){var u=n.doc,m=u.mode,y;i=tt(u,i);var x=qe(u,i.line),S=ul(n,i.line,a),T=new $t(x.text,n.options.tabSize,S),H;for(l&&(H=[]);(l||T.posn.options.maxHighlightLength?(x=!1,y&&yf(n,i,l,H.pos),H.pos=i.length,V=null):V=Xp(bf(a,H,l.state,se),m),se){var te=se[0].name;te&&(V="m-"+(V?te+" "+V:te))}if(!x||T!=V){for(;Sy;--x){if(x<=m.first)return m.first;var S=qe(m,x-1),T=S.stateAfter;if(T&&(!a||x+(T instanceof Xa?T.lookAhead:0)<=m.modeFrontier))return x;var H=re(S.text,null,n.options.tabSize);(u==null||l>H)&&(u=x-1,l=H)}return u}function z1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontiera;l--){var u=qe(n,l).stateAfter;if(u&&(!(u instanceof Xa)||l+u.lookAhead=i:m.to>i);(l||(l=[])).push(new Ya(y,m.from,S?null:m.to))}}return l}function j1(n,i,a){var l;if(n)for(var u=0;u=i:m.to>i);if(x||m.from==i&&y.type=="bookmark"&&(!a||m.marker.insertLeft)){var S=m.from==null||(y.inclusiveLeft?m.from<=i:m.from0&&x)for(var ze=0;ze0)){var H=[S,1],V=Ie(T.from,x.from),se=Ie(T.to,x.to);(V<0||!y.inclusiveLeft&&!V)&&H.push({from:T.from,to:x.from}),(se>0||!y.inclusiveRight&&!se)&&H.push({from:x.to,to:T.to}),u.splice.apply(u,H),S+=H.length-3}}return u}function Qp(n){var i=n.markedSpans;if(i){for(var a=0;ai)&&(!l||xf(l,m.marker)<0)&&(l=m.marker)}return l}function rg(n,i,a,l,u){var m=qe(n,i),y=oi&&m.markedSpans;if(y)for(var x=0;x=0&&V<=0||H<=0&&V>=0)&&(H<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.to,a)>=0:Ie(T.to,a)>0)||H>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.from,l)<=0:Ie(T.from,l)<0)))return!0}}}function Sr(n){for(var i;i=ng(n);)n=i.find(-1,!0).line;return n}function G1(n){for(var i;i=Qa(n);)n=i.find(1,!0).line;return n}function K1(n){for(var i,a;i=Qa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function kf(n,i){var a=qe(n,i),l=Sr(a);return a==l?i:A(l)}function ig(n,i){if(i>n.lastLine())return i;var a=qe(n,i),l;if(!Ii(n,a))return i;for(;l=Qa(a);)a=l.find(1,!0).line;return A(a)+1}function Ii(n,i){var a=oi&&i.markedSpans;if(a){for(var l=void 0,u=0;ui.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var os=function(n,i,a){this.text=n,eg(this,i),this.height=a?a(this):1};os.prototype.lineNo=function(){return A(this)},yr(os);function X1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Qp(n),eg(n,a);var u=l?l(n):1;u!=n.height&&Qn(n,u)}function Y1(n){n.parent=null,Qp(n)}var Z1={},J1={};function og(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?J1:Z1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function sg(n,i){var a=z("span",null,null,g?"padding-right: .1px":null),l={pre:z("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var m=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=ek,Pi(n.display.measure)&&(y=lt(m,n.doc.direction))&&(l.addToken=nk(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&A(m);rk(m,l,Up(n,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Be(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Be(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ga(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(g){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Pt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Be(l.pre.className,l.textClass||"")),l}function Q1(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ek(n,i,a,l,u,m,y){if(i){var x=n.splitSpaces?tk(i,n.trailingSpace):i,S=n.cm.state.specialChars,T=!1,H;if(!S.test(i))n.col+=i.length,H=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,H),h&&p<9&&(T=!0),n.pos+=i.length;else{H=document.createDocumentFragment();for(var V=0;;){S.lastIndex=V;var se=S.exec(i),te=se?se.index-V:i.length-V;if(te){var pe=document.createTextNode(x.slice(V,V+te));h&&p<9?H.appendChild(k("span",[pe])):H.appendChild(pe),n.map.push(n.pos,n.pos+te,pe),n.col+=te,n.pos+=te}if(!se)break;V+=te+1;var we=void 0;if(se[0]==" "){var Te=n.cm.options.tabSize,Le=Te-n.col%Te;we=H.appendChild(k("span",Ee(Le),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=Le}else se[0]=="\r"||se[0]==` +`?(we=H.appendChild(k("span",se[0]=="\r"?"␍":"␤","cm-invalidchar")),we.setAttribute("cm-text",se[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?H.appendChild(k("span",[we])):H.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||T||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Me=k("span",[H],De,m);if(y)for(var ze in y)y.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&Me.setAttribute(ze,y[ze]);return n.content.appendChild(Me)}n.content.appendChild(H)}}function tk(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;uT&&V.from<=T));se++);if(V.to>=H)return n(a,l,u,m,y,x,S);n(a,l.slice(0,V.to-T),u,m,null,x,S),m=null,l=l.slice(V.to-T),T=V.to}}}function lg(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function rk(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;yS||st.collapsed&&Ue.to==S&&Ue.from==S)){if(Ue.to!=null&&Ue.to!=S&&te>Ue.to&&(te=Ue.to,we=""),st.className&&(pe+=" "+st.className),st.css&&(se=(se?se+";":"")+st.css),st.startStyle&&Ue.from==S&&(Te+=" "+st.startStyle),st.endStyle&&Ue.to==te&&(ze||(ze=[])).push(st.endStyle,Ue.to),st.title&&((De||(De={})).title=st.title),st.attributes)for(var St in st.attributes)(De||(De={}))[St]=st.attributes[St];st.collapsed&&(!Le||xf(Le.marker,st)<0)&&(Le=Ue)}else Ue.from>S&&te>Ue.from&&(te=Ue.from)}if(ze)for(var tn=0;tn=x)break;for(var qn=Math.min(x,te);;){if(H){var Cn=S+H.length;if(!Le){var Ut=Cn>qn?H.slice(0,qn-S):H;i.addToken(i,Ut,V?V+pe:pe,Te,S+Ut.length==te?we:"",se,De)}if(Cn>=qn){H=H.slice(qn-S),S=qn;break}S=Cn,Te=""}H=u.slice(m,m=a[T++]),V=og(a[T++],i.cm.options)}}}function ag(n,i,a){this.line=i,this.rest=K1(i),this.size=this.rest?A(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ii(n,i)}function tc(n,i,a){for(var l=[],u,m=i;m2&&m.push((S.bottom+T.top)/2-a.top)}}m.push(a.bottom-a.top)}}function gg(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;la)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function pk(n,i){i=Sr(i);var a=A(i),l=n.display.externalMeasured=new ag(n.doc,i,a);l.lineN=a;var u=l.built=sg(n,l);return l.text=u.pre,C(n.display.lineMeasure,u.pre),l}function mg(n,i,a,l){return jr(n,ls(n,i),a,l)}function Af(n,i){if(i>=n.display.viewFrom&&i=a.lineN&&ii)&&(m=S-x,u=m-1,i>=S&&(y="right")),u!=null){if(l=n[T+2],x==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;T&&n[T-2]==n[T-3]&&n[T-1].insertLeft;)l=n[(T-=3)+2],y="left";if(a=="right"&&u==S-x)for(;T=0&&(a=n[u]).left==a.right;u--);return a}function mk(n,i,a,l){var u=yg(i.map,a,l),m=u.node,y=u.start,x=u.end,S=u.collapse,T;if(m.nodeType==3){for(var H=0;H<4;H++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x0&&(S=l="right");var V;n.options.lineWrapping&&(V=m.getClientRects()).length>1?T=V[l=="right"?V.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!y&&(!T||!T.left&&!T.right)){var se=m.parentNode.getClientRects()[0];se?T={left:se.left,right:se.left+cs(n.display),top:se.top,bottom:se.bottom}:T=vg}for(var te=T.top-i.rect.top,pe=T.bottom-i.rect.top,we=(te+pe)/2,Te=i.view.measure.heights,Le=0;Le=l.text.length?(S=l.text.length,T="before"):S<=0&&(S=0,T="after"),!x)return y(T=="before"?S-1:S,T=="before");function H(pe,we,Te){var Le=x[we],De=Le.level==1;return y(Te?pe-1:pe,De!=Te)}var V=Bt(x,S,T),se=Hr,te=H(S,V,T=="before");return se!=null&&(te.other=H(S,se,T!="before")),te}function _g(n,i){var a=0;i=tt(n.doc,i),n.options.lineWrapping||(a=cs(n.display)*i.ch);var l=qe(n.doc,i.line),u=si(l)+nc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Mf(n,i,a,l,u){var m=fe(n,i,a);return m.xRel=u,l&&(m.outside=l),m}function Nf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Mf(l.first,0,null,-1,-1);var u=U(l,a),m=l.first+l.size-1;if(u>m)return Mf(l.first+l.size-1,qe(l,m).text.length,null,1,1);i<0&&(i=0);for(var y=qe(l,u);;){var x=yk(n,y,u,i,a),S=V1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var T=S.find(1);if(T.line==u)return T;y=qe(l,u=T.line)}}function Tg(n,i,a,l){l-=Lf(i);var u=i.text.length,m=jt(function(y){return jr(n,a,y-1).bottom<=l},u,0);return u=jt(function(y){return jr(n,a,y).top>l},m,u),{begin:m,end:u}}function Cg(n,i,a,l){a||(a=ls(n,i));var u=rc(n,i,jr(n,a,l),"line").top;return Tg(n,i,a,u)}function Of(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function yk(n,i,a,l,u){u-=si(i);var m=ls(n,i),y=Lf(i),x=0,S=i.text.length,T=!0,H=lt(i,n.doc.direction);if(H){var V=(n.options.lineWrapping?wk:bk)(n,i,a,m,H,l,u);T=V.level!=1,x=T?V.from:V.to-1,S=T?V.to:V.from-1}var se=null,te=null,pe=jt(function(Ye){var Ue=jr(n,m,Ye);return Ue.top+=y,Ue.bottom+=y,Of(Ue,l,u,!1)?(Ue.top<=u&&Ue.left<=l&&(se=Ye,te=Ue),!0):!1},x,S),we,Te,Le=!1;if(te){var De=l-te.left=ze.bottom?1:0}return pe=Yt(i.text,pe,1),Mf(a,pe,Te,Le,l-we)}function bk(n,i,a,l,u,m,y){var x=jt(function(V){var se=u[V],te=se.level!=1;return Of(_r(n,fe(a,te?se.to:se.from,te?"before":"after"),"line",i,l),m,y,!0)},0,u.length-1),S=u[x];if(x>0){var T=S.level!=1,H=_r(n,fe(a,T?S.from:S.to,T?"after":"before"),"line",i,l);Of(H,m,y,!0)&&H.top>y&&(S=u[x-1])}return S}function wk(n,i,a,l,u,m,y){var x=Tg(n,i,l,y),S=x.begin,T=x.end;/\s/.test(i.text.charAt(T-1))&&T--;for(var H=null,V=null,se=0;se=T||te.to<=S)){var pe=te.level!=1,we=jr(n,l,pe?Math.min(T,te.to)-1:Math.max(S,te.from)).right,Te=weTe)&&(H=te,V=Te)}}return H||(H=u[u.length-1]),H.fromT&&(H={from:H.from,to:T,level:H.level}),H}var xo;function as(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(xo==null){xo=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)xo.appendChild(document.createTextNode("x")),xo.appendChild(k("br"));xo.appendChild(document.createTextNode("x"))}C(n.measure,xo);var a=xo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function cs(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");C(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Pf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,m=i.gutters.firstChild,y=0;m;m=m.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=m.offsetLeft+m.clientLeft+u,l[x]=m.clientWidth}return{fixedPos:Rf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Rf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Eg(n){var i=as(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/cs(n.display)-3);return function(u){if(Ii(n.doc,u))return 0;var m=0;if(u.widgets)for(var y=0;y0&&(T=qe(n.doc,S.line).text).length==S.ch){var H=re(T,T.length,n.options.tabSize)-T.length;S=fe(S.line,Math.max(0,Math.round((m-pg(n.display).left)/cs(n.display))-H))}return S}function So(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;li)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)oi&&kf(n.doc,i)u.viewFrom?zi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)zi(n);else if(i<=u.viewFrom){var m=oc(n,a,a+l,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=l):zi(n)}else if(a>=u.viewTo){var y=oc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):zi(n)}else{var x=oc(n,i,i,-1),S=oc(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(tc(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):zi(n)}var T=u.externalMeasured;T&&(a=u.lineN&&i=l.viewTo)){var m=l.view[So(n,i)];if(m.node!=null){var y=m.changes||(m.changes=[]);ae(y,a)==-1&&y.push(a)}}}function zi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function oc(n,i,a,l){var u=So(n,i),m,y=n.display.view;if(!oi||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,S=0;S0){if(u==y.length-1)return null;m=x+y[u].size-i,u++}else m=x-i;i+=m,a+=m}for(;kf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function xk(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=tc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=tc(n,i,l.viewFrom).concat(l.view):l.viewFroma&&(l.view=l.view.slice(0,So(n,a)))),l.viewTo=a}function Ag(n){for(var i=n.display.view,a=0,l=0;l=n.display.viewTo||S.to().line0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function sc(n,i){return n.top-i.top||n.left-i.left}function kk(n,i,a){var l=n.display,u=n.doc,m=document.createDocumentFragment(),y=pg(n.display),x=y.left,S=Math.max(l.sizerWidth,wo(n)-l.sizer.offsetLeft)-y.right,T=u.direction=="ltr";function H(Me,ze,Ye,Ue){ze<0&&(ze=0),ze=Math.round(ze),Ue=Math.round(Ue),m.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+Me+`px; + top: `+ze+"px; width: "+(Ye??S-Me)+`px; + height: `+(Ue-ze)+"px"))}function V(Me,ze,Ye){var Ue=qe(u,Me),st=Ue.text.length,St,tn;function Ot(Ut,En){return ic(n,fe(Me,Ut),"div",Ue,En)}function qn(Ut,En,sn){var Kt=Cg(n,Ue,null,Ut),Vt=En=="ltr"==(sn=="after")?"left":"right",It=sn=="after"?Kt.begin:Kt.end-(/\s/.test(Ue.text.charAt(Kt.end-1))?2:1);return Ot(It,Vt)[Vt]}var Cn=lt(Ue,u.direction);return Fn(Cn,ze||0,Ye??st,function(Ut,En,sn,Kt){var Vt=sn=="ltr",It=Ot(Ut,Vt?"left":"right"),An=Ot(En-1,Vt?"right":"left"),ks=ze==null&&Ut==0,ji=Ye==null&&En==st,fn=Kt==0,Ur=!Cn||Kt==Cn.length-1;if(An.top-It.top<=3){var nn=(T?ks:ji)&&fn,cd=(T?ji:ks)&&Ur,ui=nn?x:(Vt?It:An).left,Ao=cd?S:(Vt?An:It).right;H(ui,It.top,Ao-ui,It.bottom)}else{var Lo,yn,Ss,ud;Vt?(Lo=T&&ks&&fn?x:It.left,yn=T?S:qn(Ut,sn,"before"),Ss=T?x:qn(En,sn,"after"),ud=T&&ji&&Ur?S:An.right):(Lo=T?qn(Ut,sn,"before"):x,yn=!T&&ks&&fn?S:It.right,Ss=!T&&ji&&Ur?x:An.left,ud=T?qn(En,sn,"after"):S),H(Lo,It.top,yn-Lo,It.bottom),It.bottom0?i.blinker=setInterval(function(){n.hasFocus()||us(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Mg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Ff(n))}function zf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&us(n))},100)}function Ff(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Pt(n,"focus",n,i),n.state.focused=!0,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Df(n))}function us(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,N(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function lc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y.005||te<-.005)&&(un.display.sizerWidth){var we=Math.ceil(H/cs(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Ng(n){if(n.widgets)for(var i=0;i=y&&(m=U(i,si(qe(i,S))-n.wrapper.clientHeight),y=S)}return{from:m,to:Math.max(y,m+1)}}function Sk(n,i){if(!Rt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!M){var y=k("div","​",null,`position: absolute; + top: `+(i.top-a.viewOffset-nc(n.display))+`px; + height: `+(i.bottom-i.top+qr(n)+a.barHeight)+`px; + left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function _k(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?fe(i.line,i.ch+1,"before"):i,i=i.ch?fe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,x=_r(n,i),S=!a||a==i?x:_r(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var T=Hf(n,u),H=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(yl(n,T.scrollTop),Math.abs(n.doc.scrollTop-H)>1&&(y=!0)),T.scrollLeft!=null&&(_o(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function Tk(n,i){var a=Hf(n,i);a.scrollTop!=null&&yl(n,a.scrollTop),a.scrollLeft!=null&&_o(n,a.scrollLeft)}function Hf(n,i){var a=n.display,l=as(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=Ef(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var x=n.doc.height+Cf(a),S=i.topx-l;if(i.topu+m){var H=Math.min(i.top,(T?x:i.bottom)-m);H!=u&&(y.scrollTop=H)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,se=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,te=wo(n)-a.gutters.offsetWidth,pe=i.right-i.left>te;return pe&&(i.right=i.left+te),i.left<10?y.scrollLeft=0:i.leftte+se-3&&(y.scrollLeft=i.right+(pe?0:10)-te),y}function Bf(n,i){i!=null&&(cc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function fs(n){cc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function vl(n,i,a){(i!=null||a!=null)&&cc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ck(n,i){cc(n),n.curOp.scrollToPos=i}function cc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=_g(n,i.from),l=_g(n,i.to);Og(n,a,l,i.margin)}}function Og(n,i,a,l){var u=Hf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});vl(n,u.scrollLeft,u.scrollTop)}function yl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||qf(n,{top:i}),Pg(n,i,!0),s&&qf(n),xl(n,100))}function Pg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function _o(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function bl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Cf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+qr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var To=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Xe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Xe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};To.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var m=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},To.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},To.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},To.prototype.zeroWidthHack=function(){var n=$&&!P?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},To.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),m=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},To.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var wl=function(){};wl.prototype.update=function(){return{bottom:0,right:0}},wl.prototype.setScrollLeft=function(){},wl.prototype.setScrollTop=function(){},wl.prototype.clear=function(){};function ds(n,i){i||(i=bl(n));var a=n.display.barWidth,l=n.display.barHeight;Rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&lc(n),Rg(n,bl(n)),a=n.display.barWidth,l=n.display.barHeight}function Rg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var $g={native:To,null:wl};function Ig(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&N(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new $g[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Xe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?_o(n,i):yl(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var Ek=0;function Co(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.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:++Ek,markArrays:null},ik(n.curOp)}function Eo(n){var i=n.curOp;i&&sk(i,function(a){for(var l=0;l=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new uc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Mk(n){n.updatedDisplay=n.mustUpdate&&Wf(n.cm,n.update)}function Nk(n){var i=n.cm,a=i.display;n.updatedDisplay&&lc(i),n.barMeasure=bl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=mg(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+qr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-wo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Ok(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ul(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(m){if(l.line>=n.display.viewFrom){var y=m.styles,x=m.text.length>n.options.maxHighlightLength?Br(i.mode,l.state):null,S=jp(n,m,l,!0);x&&(l.state=x),m.styles=S.styles;var T=m.styleClasses,H=S.classes;H?m.styleClasses=H:T&&(m.styleClasses=null);for(var V=!y||y.length!=m.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),se=0;!V&&sea)return xl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var m=0;m=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Ag(n)==0)return!1;Fg(n)&&(zi(n),i.dims=Pf(n));var u=l.first+l.size,m=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFromy&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),oi&&(m=kf(n.doc,m),y=ig(n.doc,y));var x=m!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;xk(n,m,y),a.viewOffset=si(qe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Ag(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var T=Ik(n);return S>4&&(a.lineDiv.style.display="none"),zk(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Dk(T),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,xl(n,400)),a.updateLineNumbers=null,!0}function Dg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==wo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Cf(n.display)-Ef(n),a.top)}),i.visible=ac(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ac(n.display,n.doc,a));if(!Wf(n,i))break;lc(n);var u=bl(n);ml(n),ds(n,u),Uf(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function qf(n,i){var a=new uc(n,i);if(Wf(n,a)){lc(n),Dg(n,a);var l=bl(n);ml(n),ds(n,l),Uf(n,l),a.finish()}}function zk(n,i,a){var l=n.display,u=n.options.lineNumbers,m=l.lineDiv,y=m.firstChild;function x(pe){var we=pe.nextSibling;return g&&$&&n.display.currentWheelTarget==pe?pe.style.display="none":pe.parentNode.removeChild(pe),we}for(var S=l.view,T=l.viewFrom,H=0;H-1&&(te=!1),cg(n,V,T,a)),te&&(O(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(_e(n.options,T)))),y=V.node.nextSibling}T+=V.size}for(;y;)y=x(y)}function jf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Jt(n,"gutterChanged",n)}function Uf(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+qr(n)+"px"}function zg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Rf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,m=l+"px",y=0;y=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!g&&!(s&&_)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Vf(l.gutters,l.lineNumbers),Hg(u),a.init(u)}var fc=0,ai=null;h?ai=-.53:s?ai=15:b?ai=-.7:L&&(ai=-1/3);function Bg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Hk(n){var i=Bg(n);return i.x*=ai,i.y*=ai,i}function Wg(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=Bg(i),l=a.x,u=a.y,m=ai;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,m=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,T=x.scrollHeight>x.clientHeight;if(l&&S||u&&T){if(u&&$&&g){e:for(var H=i.target,V=y.view;H!=x;H=H.parentNode)for(var se=0;se=0&&Ie(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return is(this.anchor,this.head)},gt.prototype.to=function(){return Sn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Tr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(se,te){return Ie(se.from(),te.from())}),a=ae(i,u);for(var m=1;m0:S>=0){var T=is(x.from(),y.from()),H=Sn(x.to(),y.to()),V=x.empty()?y.from()==y.head:x.from()==x.head;m<=a&&--a,i.splice(--m,2,new gt(V?H:T,V?T:H))}}return new er(i,a)}function Fi(n,i){return new er([new gt(n,i||n)],0)}function Hi(n){return n.text?fe(n.from.line+n.text.length-1,xe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function qg(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Hi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Hi(i).ch-i.to.ch),fe(a,l)}function Gf(n,i){for(var a=[],l=0;l1&&n.remove(x.line+1,pe-1),n.insert(x.line+1,Le)}Jt(n,"change",n,i)}function Bi(n,i,a){function l(u,m,y){if(u.linked)for(var x=0;x1&&!n.done[n.done.length-2].ranges)return n.done.pop(),xe(n.done)}function Xg(n,i,a,l){var u=n.history;u.undone.length=0;var m=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>m-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=qk(u,u.lastOp==l)))x=xe(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,x.to)==0?x.to=Hi(i):y.changes.push(Yf(n,i));else{var S=xe(u.done);for((!S||!S.ranges)&&hc(n.sel,u.done),y={changes:[Yf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=m,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Pt(n,"historyAdded")}function jk(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Uk(n,i,a,l){var u=n.history,m=l&&l.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||jk(n,m,xe(u.done),i))?u.done[u.done.length-1]=i:hc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,l&&l.clearRedo!==!1&&Kg(u.undone)}function hc(n,i){var a=xe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Yg(n,i,a,l){var u=i["spans_"+n.id],m=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[m]=y.markedSpans),++m})}function Vk(n){if(!n)return null;for(var i,a=0;a-1&&(xe(x)[V]=T[V],delete T[V])}}return l}function Zf(n,i,a,l){if(l){var u=n.anchor;if(a){var m=Ie(i,u)<0;m!=Ie(a,u)<0?(u=i,i=a):m!=Ie(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function pc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),un(n,new er([Zf(n.sel.primary(),i,a,u)],0),l)}function Jg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),m=0;m=i.ch:x.to>i.ch))){if(u&&(Pt(S,"beforeCursorEnter"),S.explicitlyCleared))if(m.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var V=S.find(l<0?1:-1),se=void 0;if((l<0?H:T)&&(V=im(n,V,-l,V&&V.line==i.line?m:null)),V&&V.line==i.line&&(se=Ie(V,a))&&(l<0?se<0:se>0))return ps(n,V,i,l,u)}var te=S.find(l<0?-1:1);return(l<0?T:H)&&(te=im(n,te,l,te.line==i.line?m:null)),te?ps(n,te,i,l,u):null}}return i}function mc(n,i,a,l,u){var m=l||1,y=ps(n,i,a,m,u)||!u&&ps(n,i,a,m,!0)||ps(n,i,a,-m,u)||!u&&ps(n,i,a,-m,!0);return y||(n.cantEdit=!0,fe(n.first,0))}function im(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?tt(n,fe(i.line-1)):null:a>0&&i.ch==(l||qe(n,i.line)).text.length?i.line=0;--u)lm(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else lm(n,i)}}function lm(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=Gf(n,i);Xg(n,i,a,n.cm?n.cm.curOp.id:NaN),_l(n,i,a,wf(n,i));var l=[];Bi(n,function(u,m){!m&&ae(l,u.history)==-1&&(fm(u.history,i),l.push(u.history)),_l(u,i,null,wf(u,i))})}}function vc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,m,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,T=0;T=0;--te){var pe=se(te);if(pe)return pe.v}}}}function am(n,i){if(i!=0&&(n.first+=i,n.sel=new er(ye(n.sel.ranges,function(u){return new gt(fe(u.anchor.line+i,u.anchor.ch),fe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){_n(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;ln.lastLine())){if(i.from.linem&&(i={from:i.from,to:fe(m,qe(n,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ii(n,i.from,i.to),a||(a=Gf(n,i)),n.cm?Xk(n.cm,i,l):Xf(n,i,l),gc(n,a,Q),n.cantEdit&&mc(n,fe(n.firstLine(),0))&&(n.cantEdit=!1)}}function Xk(n,i,a){var l=n.doc,u=n.display,m=i.from,y=i.to,x=!1,S=m.line;n.options.lineWrapping||(S=A(Sr(qe(l,m.line))),l.iter(S,y.line+1,function(te){if(te==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ar(n),Xf(l,i,a,Eg(n)),n.options.lineWrapping||(l.iter(S,m.line+i.text.length,function(te){var pe=ec(te);pe>u.maxLineLength&&(u.maxLine=te,u.maxLineLength=pe,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),z1(l,m.line),xl(n,400);var T=i.text.length-(y.line-m.line)-1;i.full?_n(n):m.line==y.line&&i.text.length==1&&!Ug(n.doc,i)?Di(n,m.line,"text"):_n(n,m.line,y.line+1,T);var H=Bn(n,"changes"),V=Bn(n,"change");if(V||H){var se={from:m,to:y,text:i.text,removed:i.removed,origin:i.origin};V&&Jt(n,"change",n,se),H&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(se)}n.display.selForContextMenu=null}function ms(n,i,a,l,u){var m;l||(l=a),Ie(l,a)<0&&(m=[l,a],a=m[0],l=m[1]),typeof i=="string"&&(i=n.splitLines(i)),gs(n,{from:a,to:l,text:i,origin:u})}function cm(n,i,a,l){a1||!(this.children[0]instanceof Cl))){var x=[];this.collapse(x),this.children=[new Cl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i50){for(var y=u.lines.length%25+25,x=y;x10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;ln.display.maxLineLength&&(n.display.maxLine=T,n.display.maxLineLength=H,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&_n(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&nm(n.doc)),n&&Jt(n,"markerCleared",n,this,l,u),i&&Eo(n),this.parent&&this.parent.clear()}},Wi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u0||y==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=z("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(rg(n,i.line,i,a,m)||i.line!=a.line&&rg(n,a.line,i,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");H1()}m.addToHistory&&Xg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,T;if(n.iter(x,a.line+1,function(V){S&&m.collapsed&&!S.options.lineWrapping&&Sr(V)==S.display.maxLine&&(T=!0),m.collapsed&&x!=i.line&&Qn(V,0),W1(V,new Ya(m,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),m.collapsed&&n.iter(i.line,a.line+1,function(V){Ii(n,V)&&Qn(V,0)}),m.clearOnEnter&&Xe(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(F1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),m.collapsed&&(m.id=++hm,m.atomic=!0),S){if(T&&(S.curOp.updateMaxLine=!0),m.collapsed)_n(S,i.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=i.line;H<=a.line;H++)Di(S,H,"text");m.atomic&&nm(S.doc),Jt(S,"markerAdded",S,m)}return m}var Ll=function(n,i){this.markers=n,this.primary=i;for(var a=0;a=0;S--)gs(this,l[S]);x?em(this,x):this.cm&&fs(this.cm)}),undo:en(function(){vc(this,"undo")}),redo:en(function(){vc(this,"redo")}),undoSelection:en(function(){vc(this,"undo",!0)}),redoSelection:en(function(){vc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=tt(this,n),i=tt(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(m){var y=m.markedSpans;if(y)for(var x=0;x=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;ln)return i=n,!0;n-=m,++a}),tt(this,fe(a,i))},indexFromPos:function(n){n=tt(this,n);var i=n.ch;if(n.linei&&(i=n.from),n.to!=null&&n.to-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var H=n.dataTransfer.getData("Text");if(H){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),gc(i.doc,Fi(a,a)),V)for(var se=0;se=0;x--)ms(n.doc,"",l[x].from,l[x].to,"+delete");fs(n)})}function Qf(n,i,a){var l=Yt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function ed(n,i,a){var l=Qf(n,i.ch,a);return l==null?null:new fe(i.line,l,a<0?"after":"before")}function td(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var m=lt(a,i.doc.direction);if(m){var y=u<0?xe(m):m[0],x=u<0==(y.level==1),S=x?"after":"before",T;if(y.level>0||i.doc.direction=="rtl"){var H=ls(i,a);T=u<0?a.text.length-1:0;var V=jr(i,H,T).top;T=jt(function(se){return jr(i,H,se).top==V},u<0==(y.level==1)?y.from:y.to-1,T),S=="before"&&(T=Qf(a,T,1))}else T=u<0?y.to:y.from;return new fe(l,T,S)}}return new fe(l,u<0?a.text.length:0,u<0?"before":"after")}function cS(n,i,a,l){var u=lt(i,n.doc.direction);if(!u)return ed(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var m=Bt(u,a.ch,a.sticky),y=u[m];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from=y.from&&se>=H.begin)){var te=V?"before":"after";return new fe(a.line,se,te)}}var pe=function(Le,De,Me){for(var ze=function(St,tn){return tn?new fe(a.line,x(St,1),"before"):new fe(a.line,St,"after")};Le>=0&&Le0==(Ye.level!=1),st=Ue?Me.begin:x(Me.end,-1);if(Ye.from<=st&&st0?H.end:x(H.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=pe(l>0?0:u.length-1,l,T(Te)),we)?we:null}var Ol={selectAll:om,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Q)},killLine:function(n){return bs(n,function(i){if(i.empty()){var a=qe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line0)u=new fe(u.line,u.ch+1),n.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),fe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=qe(n.doc,u.line-1).text;y&&(u=new fe(u.line,1),n.replaceRange(m.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),fe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;ln&&Ie(i,this.pos)==0&&a==this.button};var Rl,$l;function mS(n,i){var a=+new Date;return $l&&$l.compare(a,n,i)?(Rl=$l=null,"triple"):Rl&&Rl.compare(a,n,i)?($l=new rd(a,n,i),Rl=null,"double"):(Rl=new rd(a,n,i),$l=null,"single")}function Lm(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,li(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!id(i,n)){var l=ko(i,n),u=br(n),m=l?mS(l,u):"single";Pe(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&vS(i,u,l,m,n))&&(u==1?l?bS(i,l,m,n):sl(n)==a.scroller&&cn(n):u==2?(l&&pc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):zf(i)))}}}function vS(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Pl(n,wm(m,u),u,function(y){if(typeof y=="string"&&(y=Ol[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=q}finally{n.state.suppressEdits=!1}return x})}function yS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var m=W?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=$?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!($?a.altKey:a.ctrlKey)),u}function bS(n,i,a,l){h?setTimeout(F(Mg,n),0):n.curOp.focus=be(je(n));var u=yS(n,a,l),m=n.doc.sel,y;n.options.dragDrop&&mf&&!n.isReadOnly()&&a=="single"&&(y=m.contains(i))>-1&&(Ie((y=m.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?wS(n,l,i,u):xS(n,l,i,u)}function wS(n,i,a,l){var u=n.display,m=!1,y=Qt(n,function(T){g&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:zf(n)),an(u.wrapper.ownerDocument,"mouseup",y),an(u.wrapper.ownerDocument,"mousemove",x),an(u.scroller,"dragstart",S),an(u.scroller,"drop",y),m||(cn(T),l.addNew||pc(n.doc,a,null,null,l.extend),g&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(T){m=m||Math.abs(i.clientX-T.clientX)+Math.abs(i.clientY-T.clientY)>=10},S=function(){return m=!0};g&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Xe(u.wrapper.ownerDocument,"mouseup",y),Xe(u.wrapper.ownerDocument,"mousemove",x),Xe(u.scroller,"dragstart",S),Xe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Mm(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(fe(i.line,0),tt(n.doc,fe(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function xS(n,i,a,l){h&&zf(n);var u=n.display,m=n.doc;cn(i);var y,x,S=m.sel,T=S.ranges;if(l.addNew&&!l.extend?(x=m.sel.contains(a),x>-1?y=T[x]:y=new gt(a,a)):(y=m.sel.primary(),x=m.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=ko(n,i,!0,!0),x=-1;else{var H=Mm(n,a,l.unit);l.extend?y=Zf(y,H.anchor,H.head,l.extend):y=H}l.addNew?x==-1?(x=T.length,un(m,Tr(n,T.concat([y]),x),{scroll:!1,origin:"*mouse"})):T.length>1&&T[x].empty()&&l.unit=="char"&&!l.extend?(un(m,Tr(n,T.slice(0,x).concat(T.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=m.sel):Jf(m,x,y,he):(x=0,un(m,new er([y],0),he),S=m.sel);var V=a;function se(Me){if(Ie(V,Me)!=0)if(V=Me,l.unit=="rectangle"){for(var ze=[],Ye=n.options.tabSize,Ue=re(qe(m,a.line).text,a.ch,Ye),st=re(qe(m,Me.line).text,Me.ch,Ye),St=Math.min(Ue,st),tn=Math.max(Ue,st),Ot=Math.min(a.line,Me.line),qn=Math.min(n.lastLine(),Math.max(a.line,Me.line));Ot<=qn;Ot++){var Cn=qe(m,Ot).text,Ut=ge(Cn,St,Ye);St==tn?ze.push(new gt(fe(Ot,Ut),fe(Ot,Ut))):Cn.length>Ut&&ze.push(new gt(fe(Ot,Ut),fe(Ot,ge(Cn,tn,Ye))))}ze.length||ze.push(new gt(a,a)),un(m,Tr(n,S.ranges.slice(0,x).concat(ze),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Me)}else{var En=y,sn=Mm(n,Me,l.unit),Kt=En.anchor,Vt;Ie(sn.anchor,Kt)>0?(Vt=sn.head,Kt=is(En.from(),sn.anchor)):(Vt=sn.anchor,Kt=Sn(En.to(),sn.head));var It=S.ranges.slice(0);It[x]=kS(n,new gt(tt(m,Kt),Vt)),un(m,Tr(n,It,x),he)}}var te=u.wrapper.getBoundingClientRect(),pe=0;function we(Me){var ze=++pe,Ye=ko(n,Me,!0,l.unit=="rectangle");if(Ye)if(Ie(Ye,V)!=0){n.curOp.focus=be(je(n)),se(Ye);var Ue=ac(u,m);(Ye.line>=Ue.to||Ye.linete.bottom?20:0;st&&setTimeout(Qt(n,function(){pe==ze&&(u.scroller.scrollTop+=st,we(Me))}),50)}}function Te(Me){n.state.selectingText=!1,pe=1/0,Me&&(cn(Me),u.input.focus()),an(u.wrapper.ownerDocument,"mousemove",Le),an(u.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var Le=Qt(n,function(Me){Me.buttons===0||!br(Me)?Te(Me):we(Me)}),De=Qt(n,Te);n.state.selectingText=De,Xe(u.wrapper.ownerDocument,"mousemove",Le),Xe(u.wrapper.ownerDocument,"mouseup",De)}function kS(n,i){var a=i.anchor,l=i.head,u=qe(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var m=lt(u);if(!m)return i;var y=Bt(m,a.ch,a.sticky),x=m[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var S=y+(x.from==a.ch==(x.level!=1)?0:1);if(S==0||S==m.length)return i;var T;if(l.line!=a.line)T=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var H=Bt(m,l.ch,l.sticky),V=H-y||(l.ch-a.ch)*(x.level==1?-1:1);H==S-1||H==S?T=V<0:T=V>0}var se=m[S+(T?-1:0)],te=T==(se.level==1),pe=te?se.from:se.to,we=te?"after":"before";return a.ch==pe&&a.sticky==we?i:new gt(new fe(a.line,pe,we),l)}function Nm(n,i,a,l){var u,m;if(i.touches)u=i.touches[0].clientX,m=i.touches[0].clientY;else try{u=i.clientX,m=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&cn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(m>x.bottom||!Bn(n,a))return kn(i);m-=x.top-y.viewOffset;for(var S=0;S=u){var H=U(n.doc,m),V=n.display.gutterSpecs[S];return Pt(n,a,n,H,V.className,i),kn(i)}}}function id(n,i){return Nm(n,i,"gutterClick",!0)}function Om(n,i){li(n.display,i)||SS(n,i)||Rt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function SS(n,i){return Bn(n,"gutterContextMenu")?Nm(n,i,"gutterContextMenu",!1):!1}function Pm(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gl(n)}var ws={toString:function(){return"CodeMirror.Init"}},Rm={},xc={};function _S(n){var i=n.optionHandlers;function a(l,u,m,y){n.defaults[l]=u,m&&(i[l]=y?function(x,S,T){T!=ws&&m(x,S,T)}:m)}n.defineOption=a,n.Init=ws,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Kf(l)},!0),a("indentUnit",2,Kf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Sl(l),gl(l),_n(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var m=[],y=l.doc.first;l.doc.iter(function(S){for(var T=0;;){var H=S.text.indexOf(u,T);if(H==-1)break;T=H+u.length,m.push(fe(y,H))}y++});for(var x=m.length-1;x>=0;x--)ms(l.doc,u,m[x],fe(m[x].line,m[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,m){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=ws&&l.refresh()}),a("specialCharPlaceholder",Q1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",_?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!ne),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Pm(l),kl(l)},!0),a("keyMap","default",function(l,u,m){var y=bc(u),x=m!=ws&&bc(m);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,CS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Vf(u,l.options.lineNumbers),kl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Rf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ds(l)},!0),a("scrollbarStyle","native",function(l){Ig(l),ds(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Vf(l.options.gutters,u),kl(l)},!0),a("firstLineNumber",1,kl,!0),a("lineNumberFormatter",function(l){return l},kl,!0),a("showCursorWhenSelecting",!1,ml,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(us(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,TS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ml,!0),a("singleCursorHeightPerLine",!0,ml,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Sl,!0),a("addModeClass",!1,Sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function TS(n,i,a){var l=a&&a!=ws;if(!i!=!l){var u=n.display.dragFunctions,m=i?Xe:an;m(n.display.scroller,"dragstart",u.start),m(n.display.scroller,"dragenter",u.enter),m(n.display.scroller,"dragover",u.over),m(n.display.scroller,"dragleave",u.leave),m(n.display.scroller,"drop",u.drop)}}function CS(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(N(n.display.wrapper,"CodeMirror-wrap"),_f(n)),$f(n),_n(n),gl(n),setTimeout(function(){return ds(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?Y(i):{},Y(Rm,i,!1);var l=i.value;typeof l=="string"?l=new Tn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Ct.inputStyles[i.inputStyle](this),m=this.display=new Fk(n,l,u,i);m.wrapper.CodeMirror=this,Pm(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ig(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 le,keySeq:null,specialChars:null},i.autofocus&&!_&&m.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),ES(this),iS(),Co(this),this.curOp.forceUpdate=!0,Vg(this,l),i.autofocus&&!_||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Ff(a)},20):us(this);for(var y in xc)xc.hasOwnProperty(y)&&xc[y](this,i[y],ws);Fg(this),i.finishInit&&i.finishInit(this);for(var x=0;x400}Xe(i.scroller,"touchstart",function(S){if(!Rt(n,S)&&!m(S)&&!id(n,S)){i.input.ensurePolled(),clearTimeout(a);var T=+new Date;i.activeTouch={start:T,moved:!1,prev:T-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),Xe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Xe(i.scroller,"touchend",function(S){var T=i.activeTouch;if(T&&!li(i,S)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=n.coordsChar(i.activeTouch,"page"),V;!T.prev||y(T,T.prev)?V=new gt(H,H):!T.prev.prev||y(T,T.prev.prev)?V=n.findWordAt(H):V=new gt(fe(H.line,0),tt(n.doc,fe(H.line+1,0))),n.setSelection(V.anchor,V.head),n.focus(),cn(S)}u()}),Xe(i.scroller,"touchcancel",u),Xe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(yl(n,i.scroller.scrollTop),_o(n,i.scroller.scrollLeft,!0),Pt(n,"scroll",n))}),Xe(i.scroller,"mousewheel",function(S){return Wg(n,S)}),Xe(i.scroller,"DOMMouseScroll",function(S){return Wg(n,S)}),Xe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Rt(n,S)||Oi(S)},over:function(S){Rt(n,S)||(rS(n,S),Oi(S))},start:function(S){return nS(n,S)},drop:Qt(n,tS),leave:function(S){Rt(n,S)||mm(n)}};var x=i.input.getField();Xe(x,"keyup",function(S){return Em.call(n,S)}),Xe(x,"keydown",Qt(n,Cm)),Xe(x,"keypress",Qt(n,Am)),Xe(x,"focus",function(S){return Ff(n,S)}),Xe(x,"blur",function(S){return us(n,S)})}var od=[];Ct.defineInitHook=function(n){return od.push(n)};function Il(n,i,a,l){var u=n.doc,m;a==null&&(a="add"),a=="smart"&&(u.mode.indent?m=ul(n,i).state:a="prev");var y=n.options.tabSize,x=qe(u,i),S=re(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var T=x.text.match(/^\s*/)[0],H;if(!l&&!/\S/.test(x.text))H=0,a="not";else if(a=="smart"&&(H=u.mode.indent(m,x.text.slice(T.length),x.text),H==q||H>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?H=re(qe(u,i-1).text,null,y):H=0:a=="add"?H=S+n.options.indentUnit:a=="subtract"?H=S-n.options.indentUnit:typeof a=="number"&&(H=S+a),H=Math.max(0,H);var V="",se=0;if(n.options.indentWithTabs)for(var te=Math.floor(H/y);te;--te)se+=y,V+=" ";if(sey,S=cr(i),T=null;if(x&&l.ranges.length>1)if(Cr&&Cr.text.join(` +`)==i){if(l.ranges.length%Cr.text.length==0){T=[];for(var H=0;H=0;se--){var te=l.ranges[se],pe=te.from(),we=te.to();te.empty()&&(a&&a>0?pe=fe(pe.line,pe.ch-a):n.state.overwrite&&!x?we=fe(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(S).length)):x&&Cr&&Cr.lineWise&&Cr.text.join(` +`)==S.join(` +`)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:T?T[se%T.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};gs(n.doc,Te),Jt(n,"inputRead",n,Te)}i&&!x&&Im(n,i),fs(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function $m(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return sd(i,a,0,null,"paste")}),!0}function Im(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var x=0;x-1){y=Il(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Il(n,u.head.line,"smart"));y&&Jt(n,"electricInput",n,u.head.line)}}}function Dm(n){for(var i=[],a=[],l=0;lm&&(Il(this,x.head.line,l,!0),m=x.head.line,y==this.doc.sel.primIndex&&fs(this));else{var S=x.from(),T=x.to(),H=Math.max(m,S.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=H;V0&&Jf(this.doc,y,new gt(S,se[y].to()),Q)}}}),getTokenAt:function(l,u){return Kp(this,l,u)},getLineTokens:function(l,u){return Kp(this,fe(l),u,!0)},getTokenTypeAt:function(l){l=tt(this.doc,l);var u=Up(this,qe(this.doc,l.line)),m=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var T=m+y>>1;if((T?u[T*2-1]:0)>=x)y=T;else if(u[T*2+1]S&&(l=S,y=!0),x=qe(this.doc,l)}else x=l;return rc(this,x,{top:0,left:0},u||"page",m||y).top+(y?this.doc.height-si(x):0)},defaultTextHeight:function(){return as(this.display)},defaultCharWidth:function(){return cs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,m,y,x){var S=this.display;l=_r(this,tt(this.doc,l));var T=l.bottom,H=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")T=l.top;else if(y=="above"||y=="near"){var V=Math.max(S.wrapper.clientHeight,this.doc.height),se=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>V)&&l.top>u.offsetHeight?T=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=V&&(T=l.bottom),H+u.offsetWidth>se&&(H=se-u.offsetWidth)}u.style.top=T+"px",u.style.left=u.style.right="",x=="right"?(H=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=H+"px"),m&&Tk(this,{left:H,top:T,right:H+u.offsetWidth,bottom:T+u.offsetHeight})},triggerOnKeyDown:vn(Cm),triggerOnKeyPress:vn(Am),triggerOnKeyUp:Em,triggerOnMouseDown:vn(Lm),execCommand:function(l){if(Ol.hasOwnProperty(l))return Ol[l].call(null,this)},triggerElectric:vn(function(l){Im(this,l)}),findPosH:function(l,u,m,y){var x=1;u<0&&(x=-1,u=-u);for(var S=tt(this.doc,l),T=0;T0&&H(m.charAt(y-1));)--y;for(;x.5||this.options.lineWrapping)&&$f(this),Pt(this,"refresh",this)}),swapDoc:vn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Vg(this,l),gl(this),this.display.input.reset(),vl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},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}},yr(n),n.registerHelper=function(l,u,m){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=m},n.registerGlobalHelper=function(l,u,m,y){n.registerHelper(l,u,y),a[l]._global.push({pred:m,val:y})}}function ad(n,i,a,l,u){var m=i,y=a,x=qe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function T(){var De=i.line+S;return De=n.first+n.size?!1:(i=new fe(De,i.ch,i.sticky),x=qe(n,De))}function H(De){var Me;if(l=="codepoint"){var ze=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(ze))Me=null;else{var Ye=a>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;Me=new fe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ye?2:1))),-a)}}else u?Me=cS(n.cm,x,i,a):Me=ed(x,i,a);if(Me==null)if(!De&&T())i=td(u,n.cm,x,i.line,S);else return!1;else i=Me;return!0}if(l=="char"||l=="codepoint")H();else if(l=="column")H(!0);else if(l=="word"||l=="group")for(var V=null,se=l=="group",te=n.cm&&n.cm.getHelper(i,"wordChars"),pe=!0;!(a<0&&!H(!pe));pe=!1){var we=x.text.charAt(i.ch)||` +`,Te=ct(we,te)?"w":se&&we==` +`?"n":!se||/\s/.test(we)?null:"p";if(se&&!pe&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,H(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!H(!pe))break}var Le=mc(n,i,m,y,!0);return pt(m,Le)&&(Le.hitSide=!0),Le}function Fm(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Pe(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*as(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var T;T=Nf(n,m,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,ld(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(x){for(var S=x.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}Xe(u,"paste",function(x){!m(x)||Rt(l,x)||$m(x,l)||p<=11&&setTimeout(Qt(l,function(){return i.updateFromDOM()}),20)}),Xe(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Xe(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Xe(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Xe(u,"touchstart",function(){return a.forceCompositionEnd()}),Xe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!m(x)||Rt(l,x))){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=Dm(l);kc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,Q),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=Cr.text.join(` +`);if(x.clipboardData.setData("Text",T),x.clipboardData.getData("Text")==T){x.preventDefault();return}}var H=zm(),V=H.firstChild;ld(V),l.display.lineSpace.insertBefore(H,l.display.lineSpace.firstChild),V.value=Cr.text.join(` +`);var se=be(Fe(u));Ae(V),setTimeout(function(){l.display.lineSpace.removeChild(H),se.focus(),se==u&&a.showPrimarySelection()},50)}}Xe(u,"copy",y),Xe(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Lg(this.cm,!1);return n.focus=be(Fe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line=i.display.viewFrom&&Hm(i,l)||{node:x[0].measure.map[2],offset:0},T=u.linen.firstLine()&&(l=fe(l.line-1,qe(n.doc,l.line-1).length)),u.ch==qe(n.doc,u.line).text.length&&u.linei.viewTo-1)return!1;var m,y,x;l.line==i.viewFrom||(m=So(n,l.line))==0?(y=A(i.view[0].line),x=i.view[0].node):(y=A(i.view[m].line),x=i.view[m-1].node.nextSibling);var S=So(n,u.line),T,H;if(S==i.view.length-1?(T=i.viewTo-1,H=i.lineDiv.lastChild):(T=A(i.view[S+1].line)-1,H=i.view[S+1].node.previousSibling),!x)return!1;for(var V=n.doc.splitLines(MS(n,x,H,y,T)),se=ii(n.doc,fe(y,0),fe(T,qe(n.doc,T).text.length));V.length>1&&se.length>1;)if(xe(V)==xe(se))V.pop(),se.pop(),T--;else if(V[0]==se[0])V.shift(),se.shift(),y++;else break;for(var te=0,pe=0,we=V[0],Te=se[0],Le=Math.min(we.length,Te.length);tel.ch&&De.charCodeAt(De.length-pe-1)==Me.charCodeAt(Me.length-pe-1);)te--,pe++;V[V.length-1]=De.slice(0,De.length-pe).replace(/^\u200b+/,""),V[0]=V[0].slice(te).replace(/\u200b+$/,"");var Ye=fe(y,te),Ue=fe(T,se.length?xe(se).length-pe:0);if(V.length>1||V[0]||Ie(Ye,Ue))return ms(n.doc,V,Ye,Ue,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Wn(this.cm,function(){return _n(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Qt(this.cm,sd)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Hm(n,i){var a=Af(n,i.line);if(!a||a.hidden)return null;var l=qe(n.doc,i.line),u=gg(a,l,i.line),m=lt(l,n.doc.direction),y="left";if(m){var x=Bt(m,i.ch);y=x%2?"right":"left"}var S=yg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function LS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function xs(n,i){return i&&(n.bad=!0),n}function MS(n,i,a,l,u){var m="",y=!1,x=n.doc.lineSeparator(),S=!1;function T(te){return function(pe){return pe.id==te}}function H(){y&&(m+=x,S&&(m+=x),y=S=!1)}function V(te){te&&(H(),m+=te)}function se(te){if(te.nodeType==1){var pe=te.getAttribute("cm-text");if(pe){V(pe);return}var we=te.getAttribute("cm-marker"),Te;if(we){var Le=n.findMarks(fe(l,0),fe(u+1,0),T(+we));Le.length&&(Te=Le[0].find(0))&&V(ii(n.doc,Te.from,Te.to).join(x));return}if(te.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;De&&H();for(var Me=0;Me=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Xe(u,"paste",function(y){Rt(l,y)||$m(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function m(y){if(!Rt(l,y)){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=Dm(l);kc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Q):(a.prevInput="",u.value=x.text.join(` +`),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Xe(u,"cut",m),Xe(u,"copy",m),Xe(n.scroller,"paste",function(y){if(!(li(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Xe(n.lineSpace,"selectstart",function(y){li(n,y)||cn(y)}),Xe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Wt.prototype.createField=function(n){this.wrapper=zm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;ld(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Wt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Lg(n);if(n.options.moveInputWithCursor){var u=_r(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},Wt.prototype.showSelection=function(n){var i=this.cm,a=i.display;C(a.cursorDiv,n.cursors),C(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Wt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||be(Fe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Wt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Wt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ri(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||$&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l="​"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y1e3||u.indexOf(` +`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=ko(a,n),y=l.scroller.scrollTop;if(!m||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(m)==-1&&Qt(a,un)(a.doc,Fi(m),Q);var S=u.style.cssText,T=i.wrapper.style.cssText,H=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(n.clientY-H.top-5)+"px; left: "+(n.clientX-H.left-5)+`px; + z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var V;g&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=te,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function se(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te="​"+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"​",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function te(){if(i.contextMenuPending==te&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput=="​"?Qt(a,om)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),G){Oi(n);var pe=function(){an(window,"mouseup",pe),setTimeout(te,20)};Xe(window,"mouseup",pe)}else setTimeout(te,50)},Wt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function OS(n,i){if(i=i?Y(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=be(Fe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Xe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(an(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function PS(n){n.off=an,n.on=Xe,n.wheelEventPixels=Hk,n.Doc=Tn,n.splitLines=cr,n.countColumn=re,n.findColumn=ge,n.isWordChar=Je,n.Pass=q,n.signal=Pt,n.Line=os,n.changeEnd=Hi,n.scrollbarModel=$g,n.Pos=fe,n.cmpPos=Ie,n.modes=Qo,n.mimeModes=xr,n.resolveMode=es,n.getMode=ts,n.modeExtensions=$i,n.extendMode=ns,n.copyState=Br,n.startState=rs,n.innerMode=al,n.commands=Ol,n.keyMap=ci,n.keyName=xm,n.isModifierKey=bm,n.lookupKey=ys,n.normalizeKeyMap=aS,n.StringStream=$t,n.SharedTextMarker=Ll,n.TextMarker=Wi,n.LineWidget=Al,n.e_preventDefault=cn,n.e_stopPropagation=Zo,n.e_stop=Oi,n.addClass=Se,n.contains=ce,n.rmClass=N,n.keyNames=qi}_S(Ct),AS(Ct);var RS="iter insert remove copy getEditor constructor".split(" ");for(var _c in Tn.prototype)Tn.prototype.hasOwnProperty(_c)&&ae(RS,_c)<0&&(Ct.prototype[_c]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Tn.prototype[_c]));return yr(Tn),Ct.inputStyles={textarea:Wt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),kr.apply(this,arguments)},Ct.defineMIME=bo,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){Tn.prototype[n]=i},Ct.fromTextArea=OS,PS(Ct),Ct.version="5.65.18",Ct}))})(Yc)),Yc.exports}var ML=vo();const NL=ax(ML);var Ad={},Er={};const OL="Á",PL="á",RL="Ă",$L="ă",IL="∾",DL="∿",zL="∾̳",FL="Â",HL="â",BL="´",WL="А",qL="а",jL="Æ",UL="æ",VL="⁡",GL="𝔄",KL="𝔞",XL="À",YL="à",ZL="ℵ",JL="ℵ",QL="Α",eM="α",tM="Ā",nM="ā",rM="⨿",iM="&",oM="&",sM="⩕",lM="⩓",aM="∧",cM="⩜",uM="⩘",fM="⩚",dM="∠",hM="⦤",pM="∠",gM="⦨",mM="⦩",vM="⦪",yM="⦫",bM="⦬",wM="⦭",xM="⦮",kM="⦯",SM="∡",_M="∟",TM="⊾",CM="⦝",EM="∢",AM="Å",LM="⍼",MM="Ą",NM="ą",OM="𝔸",PM="𝕒",RM="⩯",$M="≈",IM="⩰",DM="≊",zM="≋",FM="'",HM="⁡",BM="≈",WM="≊",qM="Å",jM="å",UM="𝒜",VM="𝒶",GM="≔",KM="*",XM="≈",YM="≍",ZM="Ã",JM="ã",QM="Ä",eN="ä",tN="∳",nN="⨑",rN="≌",iN="϶",oN="‵",sN="∽",lN="⋍",aN="∖",cN="⫧",uN="⊽",fN="⌅",dN="⌆",hN="⌅",pN="⎵",gN="⎶",mN="≌",vN="Б",yN="б",bN="„",wN="∵",xN="∵",kN="∵",SN="⦰",_N="϶",TN="ℬ",CN="ℬ",EN="Β",AN="β",LN="ℶ",MN="≬",NN="𝔅",ON="𝔟",PN="⋂",RN="◯",$N="⋃",IN="⨀",DN="⨁",zN="⨂",FN="⨆",HN="★",BN="▽",WN="△",qN="⨄",jN="⋁",UN="⋀",VN="⤍",GN="⧫",KN="▪",XN="▴",YN="▾",ZN="◂",JN="▸",QN="␣",e2="▒",t2="░",n2="▓",r2="█",i2="=⃥",o2="≡⃥",s2="⫭",l2="⌐",a2="𝔹",c2="𝕓",u2="⊥",f2="⊥",d2="⋈",h2="⧉",p2="┐",g2="╕",m2="╖",v2="╗",y2="┌",b2="╒",w2="╓",x2="╔",k2="─",S2="═",_2="┬",T2="╤",C2="╥",E2="╦",A2="┴",L2="╧",M2="╨",N2="╩",O2="⊟",P2="⊞",R2="⊠",$2="┘",I2="╛",D2="╜",z2="╝",F2="└",H2="╘",B2="╙",W2="╚",q2="│",j2="║",U2="┼",V2="╪",G2="╫",K2="╬",X2="┤",Y2="╡",Z2="╢",J2="╣",Q2="├",eO="╞",tO="╟",nO="╠",rO="‵",iO="˘",oO="˘",sO="¦",lO="𝒷",aO="ℬ",cO="⁏",uO="∽",fO="⋍",dO="⧅",hO="\\",pO="⟈",gO="•",mO="•",vO="≎",yO="⪮",bO="≏",wO="≎",xO="≏",kO="Ć",SO="ć",_O="⩄",TO="⩉",CO="⩋",EO="∩",AO="⋒",LO="⩇",MO="⩀",NO="ⅅ",OO="∩︀",PO="⁁",RO="ˇ",$O="ℭ",IO="⩍",DO="Č",zO="č",FO="Ç",HO="ç",BO="Ĉ",WO="ĉ",qO="∰",jO="⩌",UO="⩐",VO="Ċ",GO="ċ",KO="¸",XO="¸",YO="⦲",ZO="¢",JO="·",QO="·",eP="𝔠",tP="ℭ",nP="Ч",rP="ч",iP="✓",oP="✓",sP="Χ",lP="χ",aP="ˆ",cP="≗",uP="↺",fP="↻",dP="⊛",hP="⊚",pP="⊝",gP="⊙",mP="®",vP="Ⓢ",yP="⊖",bP="⊕",wP="⊗",xP="○",kP="⧃",SP="≗",_P="⨐",TP="⫯",CP="⧂",EP="∲",AP="”",LP="’",MP="♣",NP="♣",OP=":",PP="∷",RP="⩴",$P="≔",IP="≔",DP=",",zP="@",FP="∁",HP="∘",BP="∁",WP="ℂ",qP="≅",jP="⩭",UP="≡",VP="∮",GP="∯",KP="∮",XP="𝕔",YP="ℂ",ZP="∐",JP="∐",QP="©",eR="©",tR="℗",nR="∳",rR="↵",iR="✗",oR="⨯",sR="𝒞",lR="𝒸",aR="⫏",cR="⫑",uR="⫐",fR="⫒",dR="⋯",hR="⤸",pR="⤵",gR="⋞",mR="⋟",vR="↶",yR="⤽",bR="⩈",wR="⩆",xR="≍",kR="∪",SR="⋓",_R="⩊",TR="⊍",CR="⩅",ER="∪︀",AR="↷",LR="⤼",MR="⋞",NR="⋟",OR="⋎",PR="⋏",RR="¤",$R="↶",IR="↷",DR="⋎",zR="⋏",FR="∲",HR="∱",BR="⌭",WR="†",qR="‡",jR="ℸ",UR="↓",VR="↡",GR="⇓",KR="‐",XR="⫤",YR="⊣",ZR="⤏",JR="˝",QR="Ď",e$="ď",t$="Д",n$="д",r$="‡",i$="⇊",o$="ⅅ",s$="ⅆ",l$="⤑",a$="⩷",c$="°",u$="∇",f$="Δ",d$="δ",h$="⦱",p$="⥿",g$="𝔇",m$="𝔡",v$="⥥",y$="⇃",b$="⇂",w$="´",x$="˙",k$="˝",S$="`",_$="˜",T$="⋄",C$="⋄",E$="⋄",A$="♦",L$="♦",M$="¨",N$="ⅆ",O$="ϝ",P$="⋲",R$="÷",$$="÷",I$="⋇",D$="⋇",z$="Ђ",F$="ђ",H$="⌞",B$="⌍",W$="$",q$="𝔻",j$="𝕕",U$="¨",V$="˙",G$="⃜",K$="≐",X$="≑",Y$="≐",Z$="∸",J$="∔",Q$="⊡",eI="⌆",tI="∯",nI="¨",rI="⇓",iI="⇐",oI="⇔",sI="⫤",lI="⟸",aI="⟺",cI="⟹",uI="⇒",fI="⊨",dI="⇑",hI="⇕",pI="∥",gI="⤓",mI="↓",vI="↓",yI="⇓",bI="⇵",wI="̑",xI="⇊",kI="⇃",SI="⇂",_I="⥐",TI="⥞",CI="⥖",EI="↽",AI="⥟",LI="⥗",MI="⇁",NI="↧",OI="⊤",PI="⤐",RI="⌟",$I="⌌",II="𝒟",DI="𝒹",zI="Ѕ",FI="ѕ",HI="⧶",BI="Đ",WI="đ",qI="⋱",jI="▿",UI="▾",VI="⇵",GI="⥯",KI="⦦",XI="Џ",YI="џ",ZI="⟿",JI="É",QI="é",eD="⩮",tD="Ě",nD="ě",rD="Ê",iD="ê",oD="≖",sD="≕",lD="Э",aD="э",cD="⩷",uD="Ė",fD="ė",dD="≑",hD="ⅇ",pD="≒",gD="𝔈",mD="𝔢",vD="⪚",yD="È",bD="è",wD="⪖",xD="⪘",kD="⪙",SD="∈",_D="⏧",TD="ℓ",CD="⪕",ED="⪗",AD="Ē",LD="ē",MD="∅",ND="∅",OD="◻",PD="∅",RD="▫",$D=" ",ID=" ",DD=" ",zD="Ŋ",FD="ŋ",HD=" ",BD="Ę",WD="ę",qD="𝔼",jD="𝕖",UD="⋕",VD="⧣",GD="⩱",KD="ε",XD="Ε",YD="ε",ZD="ϵ",JD="≖",QD="≕",ez="≂",tz="⪖",nz="⪕",rz="⩵",iz="=",oz="≂",sz="≟",lz="⇌",az="≡",cz="⩸",uz="⧥",fz="⥱",dz="≓",hz="ℯ",pz="ℰ",gz="≐",mz="⩳",vz="≂",yz="Η",bz="η",wz="Ð",xz="ð",kz="Ë",Sz="ë",_z="€",Tz="!",Cz="∃",Ez="∃",Az="ℰ",Lz="ⅇ",Mz="ⅇ",Nz="≒",Oz="Ф",Pz="ф",Rz="♀",$z="ffi",Iz="ff",Dz="ffl",zz="𝔉",Fz="𝔣",Hz="fi",Bz="◼",Wz="▪",qz="fj",jz="♭",Uz="fl",Vz="▱",Gz="ƒ",Kz="𝔽",Xz="𝕗",Yz="∀",Zz="∀",Jz="⋔",Qz="⫙",eF="ℱ",tF="⨍",nF="½",rF="⅓",iF="¼",oF="⅕",sF="⅙",lF="⅛",aF="⅔",cF="⅖",uF="¾",fF="⅗",dF="⅜",hF="⅘",pF="⅚",gF="⅝",mF="⅞",vF="⁄",yF="⌢",bF="𝒻",wF="ℱ",xF="ǵ",kF="Γ",SF="γ",_F="Ϝ",TF="ϝ",CF="⪆",EF="Ğ",AF="ğ",LF="Ģ",MF="Ĝ",NF="ĝ",OF="Г",PF="г",RF="Ġ",$F="ġ",IF="≥",DF="≧",zF="⪌",FF="⋛",HF="≥",BF="≧",WF="⩾",qF="⪩",jF="⩾",UF="⪀",VF="⪂",GF="⪄",KF="⋛︀",XF="⪔",YF="𝔊",ZF="𝔤",JF="≫",QF="⋙",eH="⋙",tH="ℷ",nH="Ѓ",rH="ѓ",iH="⪥",oH="≷",sH="⪒",lH="⪤",aH="⪊",cH="⪊",uH="⪈",fH="≩",dH="⪈",hH="≩",pH="⋧",gH="𝔾",mH="𝕘",vH="`",yH="≥",bH="⋛",wH="≧",xH="⪢",kH="≷",SH="⩾",_H="≳",TH="𝒢",CH="ℊ",EH="≳",AH="⪎",LH="⪐",MH="⪧",NH="⩺",OH=">",PH=">",RH="≫",$H="⋗",IH="⦕",DH="⩼",zH="⪆",FH="⥸",HH="⋗",BH="⋛",WH="⪌",qH="≷",jH="≳",UH="≩︀",VH="≩︀",GH="ˇ",KH=" ",XH="½",YH="ℋ",ZH="Ъ",JH="ъ",QH="⥈",e3="↔",t3="⇔",n3="↭",r3="^",i3="ℏ",o3="Ĥ",s3="ĥ",l3="♥",a3="♥",c3="…",u3="⊹",f3="𝔥",d3="ℌ",h3="ℋ",p3="⤥",g3="⤦",m3="⇿",v3="∻",y3="↩",b3="↪",w3="𝕙",x3="ℍ",k3="―",S3="─",_3="𝒽",T3="ℋ",C3="ℏ",E3="Ħ",A3="ħ",L3="≎",M3="≏",N3="⁃",O3="‐",P3="Í",R3="í",$3="⁣",I3="Î",D3="î",z3="И",F3="и",H3="İ",B3="Е",W3="е",q3="¡",j3="⇔",U3="𝔦",V3="ℑ",G3="Ì",K3="ì",X3="ⅈ",Y3="⨌",Z3="∭",J3="⧜",Q3="℩",eB="IJ",tB="ij",nB="Ī",rB="ī",iB="ℑ",oB="ⅈ",sB="ℐ",lB="ℑ",aB="ı",cB="ℑ",uB="⊷",fB="Ƶ",dB="⇒",hB="℅",pB="∞",gB="⧝",mB="ı",vB="⊺",yB="∫",bB="∬",wB="ℤ",xB="∫",kB="⊺",SB="⋂",_B="⨗",TB="⨼",CB="⁣",EB="⁢",AB="Ё",LB="ё",MB="Į",NB="į",OB="𝕀",PB="𝕚",RB="Ι",$B="ι",IB="⨼",DB="¿",zB="𝒾",FB="ℐ",HB="∈",BB="⋵",WB="⋹",qB="⋴",jB="⋳",UB="∈",VB="⁢",GB="Ĩ",KB="ĩ",XB="І",YB="і",ZB="Ï",JB="ï",QB="Ĵ",e5="ĵ",t5="Й",n5="й",r5="𝔍",i5="𝔧",o5="ȷ",s5="𝕁",l5="𝕛",a5="𝒥",c5="𝒿",u5="Ј",f5="ј",d5="Є",h5="є",p5="Κ",g5="κ",m5="ϰ",v5="Ķ",y5="ķ",b5="К",w5="к",x5="𝔎",k5="𝔨",S5="ĸ",_5="Х",T5="х",C5="Ќ",E5="ќ",A5="𝕂",L5="𝕜",M5="𝒦",N5="𝓀",O5="⇚",P5="Ĺ",R5="ĺ",$5="⦴",I5="ℒ",D5="Λ",z5="λ",F5="⟨",H5="⟪",B5="⦑",W5="⟨",q5="⪅",j5="ℒ",U5="«",V5="⇤",G5="⤟",K5="←",X5="↞",Y5="⇐",Z5="⤝",J5="↩",Q5="↫",e8="⤹",t8="⥳",n8="↢",r8="⤙",i8="⤛",o8="⪫",s8="⪭",l8="⪭︀",a8="⤌",c8="⤎",u8="❲",f8="{",d8="[",h8="⦋",p8="⦏",g8="⦍",m8="Ľ",v8="ľ",y8="Ļ",b8="ļ",w8="⌈",x8="{",k8="Л",S8="л",_8="⤶",T8="“",C8="„",E8="⥧",A8="⥋",L8="↲",M8="≤",N8="≦",O8="⟨",P8="⇤",R8="←",$8="←",I8="⇐",D8="⇆",z8="↢",F8="⌈",H8="⟦",B8="⥡",W8="⥙",q8="⇃",j8="⌊",U8="↽",V8="↼",G8="⇇",K8="↔",X8="↔",Y8="⇔",Z8="⇆",J8="⇋",Q8="↭",eW="⥎",tW="↤",nW="⊣",rW="⥚",iW="⋋",oW="⧏",sW="⊲",lW="⊴",aW="⥑",cW="⥠",uW="⥘",fW="↿",dW="⥒",hW="↼",pW="⪋",gW="⋚",mW="≤",vW="≦",yW="⩽",bW="⪨",wW="⩽",xW="⩿",kW="⪁",SW="⪃",_W="⋚︀",TW="⪓",CW="⪅",EW="⋖",AW="⋚",LW="⪋",MW="⋚",NW="≦",OW="≶",PW="≶",RW="⪡",$W="≲",IW="⩽",DW="≲",zW="⥼",FW="⌊",HW="𝔏",BW="𝔩",WW="≶",qW="⪑",jW="⥢",UW="↽",VW="↼",GW="⥪",KW="▄",XW="Љ",YW="љ",ZW="⇇",JW="≪",QW="⋘",e4="⌞",t4="⇚",n4="⥫",r4="◺",i4="Ŀ",o4="ŀ",s4="⎰",l4="⎰",a4="⪉",c4="⪉",u4="⪇",f4="≨",d4="⪇",h4="≨",p4="⋦",g4="⟬",m4="⇽",v4="⟦",y4="⟵",b4="⟵",w4="⟸",x4="⟷",k4="⟷",S4="⟺",_4="⟼",T4="⟶",C4="⟶",E4="⟹",A4="↫",L4="↬",M4="⦅",N4="𝕃",O4="𝕝",P4="⨭",R4="⨴",$4="∗",I4="_",D4="↙",z4="↘",F4="◊",H4="◊",B4="⧫",W4="(",q4="⦓",j4="⇆",U4="⌟",V4="⇋",G4="⥭",K4="‎",X4="⊿",Y4="‹",Z4="𝓁",J4="ℒ",Q4="↰",eq="↰",tq="≲",nq="⪍",rq="⪏",iq="[",oq="‘",sq="‚",lq="Ł",aq="ł",cq="⪦",uq="⩹",fq="<",dq="<",hq="≪",pq="⋖",gq="⋋",mq="⋉",vq="⥶",yq="⩻",bq="◃",wq="⊴",xq="◂",kq="⦖",Sq="⥊",_q="⥦",Tq="≨︀",Cq="≨︀",Eq="¯",Aq="♂",Lq="✠",Mq="✠",Nq="↦",Oq="↦",Pq="↧",Rq="↤",$q="↥",Iq="▮",Dq="⨩",zq="М",Fq="м",Hq="—",Bq="∺",Wq="∡",qq=" ",jq="ℳ",Uq="𝔐",Vq="𝔪",Gq="℧",Kq="µ",Xq="*",Yq="⫰",Zq="∣",Jq="·",Qq="⊟",ej="−",tj="∸",nj="⨪",rj="∓",ij="⫛",oj="…",sj="∓",lj="⊧",aj="𝕄",cj="𝕞",uj="∓",fj="𝓂",dj="ℳ",hj="∾",pj="Μ",gj="μ",mj="⊸",vj="⊸",yj="∇",bj="Ń",wj="ń",xj="∠⃒",kj="≉",Sj="⩰̸",_j="≋̸",Tj="ʼn",Cj="≉",Ej="♮",Aj="ℕ",Lj="♮",Mj=" ",Nj="≎̸",Oj="≏̸",Pj="⩃",Rj="Ň",$j="ň",Ij="Ņ",Dj="ņ",zj="≇",Fj="⩭̸",Hj="⩂",Bj="Н",Wj="н",qj="–",jj="⤤",Uj="↗",Vj="⇗",Gj="↗",Kj="≠",Xj="≐̸",Yj="​",Zj="​",Jj="​",Qj="​",eU="≢",tU="⤨",nU="≂̸",rU="≫",iU="≪",oU=` +`,sU="∄",lU="∄",aU="𝔑",cU="𝔫",uU="≧̸",fU="≱",dU="≱",hU="≧̸",pU="⩾̸",gU="⩾̸",mU="⋙̸",vU="≵",yU="≫⃒",bU="≯",wU="≯",xU="≫̸",kU="↮",SU="⇎",_U="⫲",TU="∋",CU="⋼",EU="⋺",AU="∋",LU="Њ",MU="њ",NU="↚",OU="⇍",PU="‥",RU="≦̸",$U="≰",IU="↚",DU="⇍",zU="↮",FU="⇎",HU="≰",BU="≦̸",WU="⩽̸",qU="⩽̸",jU="≮",UU="⋘̸",VU="≴",GU="≪⃒",KU="≮",XU="⋪",YU="⋬",ZU="≪̸",JU="∤",QU="⁠",e6=" ",t6="𝕟",n6="ℕ",r6="⫬",i6="¬",o6="≢",s6="≭",l6="∦",a6="∉",c6="≠",u6="≂̸",f6="∄",d6="≯",h6="≱",p6="≧̸",g6="≫̸",m6="≹",v6="⩾̸",y6="≵",b6="≎̸",w6="≏̸",x6="∉",k6="⋵̸",S6="⋹̸",_6="∉",T6="⋷",C6="⋶",E6="⧏̸",A6="⋪",L6="⋬",M6="≮",N6="≰",O6="≸",P6="≪̸",R6="⩽̸",$6="≴",I6="⪢̸",D6="⪡̸",z6="∌",F6="∌",H6="⋾",B6="⋽",W6="⊀",q6="⪯̸",j6="⋠",U6="∌",V6="⧐̸",G6="⋫",K6="⋭",X6="⊏̸",Y6="⋢",Z6="⊐̸",J6="⋣",Q6="⊂⃒",eV="⊈",tV="⊁",nV="⪰̸",rV="⋡",iV="≿̸",oV="⊃⃒",sV="⊉",lV="≁",aV="≄",cV="≇",uV="≉",fV="∤",dV="∦",hV="∦",pV="⫽⃥",gV="∂̸",mV="⨔",vV="⊀",yV="⋠",bV="⊀",wV="⪯̸",xV="⪯̸",kV="⤳̸",SV="↛",_V="⇏",TV="↝̸",CV="↛",EV="⇏",AV="⋫",LV="⋭",MV="⊁",NV="⋡",OV="⪰̸",PV="𝒩",RV="𝓃",$V="∤",IV="∦",DV="≁",zV="≄",FV="≄",HV="∤",BV="∦",WV="⋢",qV="⋣",jV="⊄",UV="⫅̸",VV="⊈",GV="⊂⃒",KV="⊈",XV="⫅̸",YV="⊁",ZV="⪰̸",JV="⊅",QV="⫆̸",eG="⊉",tG="⊃⃒",nG="⊉",rG="⫆̸",iG="≹",oG="Ñ",sG="ñ",lG="≸",aG="⋪",cG="⋬",uG="⋫",fG="⋭",dG="Ν",hG="ν",pG="#",gG="№",mG=" ",vG="≍⃒",yG="⊬",bG="⊭",wG="⊮",xG="⊯",kG="≥⃒",SG=">⃒",_G="⤄",TG="⧞",CG="⤂",EG="≤⃒",AG="<⃒",LG="⊴⃒",MG="⤃",NG="⊵⃒",OG="∼⃒",PG="⤣",RG="↖",$G="⇖",IG="↖",DG="⤧",zG="Ó",FG="ó",HG="⊛",BG="Ô",WG="ô",qG="⊚",jG="О",UG="о",VG="⊝",GG="Ő",KG="ő",XG="⨸",YG="⊙",ZG="⦼",JG="Œ",QG="œ",e9="⦿",t9="𝔒",n9="𝔬",r9="˛",i9="Ò",o9="ò",s9="⧁",l9="⦵",a9="Ω",c9="∮",u9="↺",f9="⦾",d9="⦻",h9="‾",p9="⧀",g9="Ō",m9="ō",v9="Ω",y9="ω",b9="Ο",w9="ο",x9="⦶",k9="⊖",S9="𝕆",_9="𝕠",T9="⦷",C9="“",E9="‘",A9="⦹",L9="⊕",M9="↻",N9="⩔",O9="∨",P9="⩝",R9="ℴ",$9="ℴ",I9="ª",D9="º",z9="⊶",F9="⩖",H9="⩗",B9="⩛",W9="Ⓢ",q9="𝒪",j9="ℴ",U9="Ø",V9="ø",G9="⊘",K9="Õ",X9="õ",Y9="⨶",Z9="⨷",J9="⊗",Q9="Ö",eK="ö",tK="⌽",nK="‾",rK="⏞",iK="⎴",oK="⏜",sK="¶",lK="∥",aK="∥",cK="⫳",uK="⫽",fK="∂",dK="∂",hK="П",pK="п",gK="%",mK=".",vK="‰",yK="⊥",bK="‱",wK="𝔓",xK="𝔭",kK="Φ",SK="φ",_K="ϕ",TK="ℳ",CK="☎",EK="Π",AK="π",LK="⋔",MK="ϖ",NK="ℏ",OK="ℎ",PK="ℏ",RK="⨣",$K="⊞",IK="⨢",DK="+",zK="∔",FK="⨥",HK="⩲",BK="±",WK="±",qK="⨦",jK="⨧",UK="±",VK="ℌ",GK="⨕",KK="𝕡",XK="ℙ",YK="£",ZK="⪷",JK="⪻",QK="≺",e7="≼",t7="⪷",n7="≺",r7="≼",i7="≺",o7="⪯",s7="≼",l7="≾",a7="⪯",c7="⪹",u7="⪵",f7="⋨",d7="⪯",h7="⪳",p7="≾",g7="′",m7="″",v7="ℙ",y7="⪹",b7="⪵",w7="⋨",x7="∏",k7="∏",S7="⌮",_7="⌒",T7="⌓",C7="∝",E7="∝",A7="∷",L7="∝",M7="≾",N7="⊰",O7="𝒫",P7="𝓅",R7="Ψ",$7="ψ",I7=" ",D7="𝔔",z7="𝔮",F7="⨌",H7="𝕢",B7="ℚ",W7="⁗",q7="𝒬",j7="𝓆",U7="ℍ",V7="⨖",G7="?",K7="≟",X7='"',Y7='"',Z7="⇛",J7="∽̱",Q7="Ŕ",eX="ŕ",tX="√",nX="⦳",rX="⟩",iX="⟫",oX="⦒",sX="⦥",lX="⟩",aX="»",cX="⥵",uX="⇥",fX="⤠",dX="⤳",hX="→",pX="↠",gX="⇒",mX="⤞",vX="↪",yX="↬",bX="⥅",wX="⥴",xX="⤖",kX="↣",SX="↝",_X="⤚",TX="⤜",CX="∶",EX="ℚ",AX="⤍",LX="⤏",MX="⤐",NX="❳",OX="}",PX="]",RX="⦌",$X="⦎",IX="⦐",DX="Ř",zX="ř",FX="Ŗ",HX="ŗ",BX="⌉",WX="}",qX="Р",jX="р",UX="⤷",VX="⥩",GX="”",KX="”",XX="↳",YX="ℜ",ZX="ℛ",JX="ℜ",QX="ℝ",eY="ℜ",tY="▭",nY="®",rY="®",iY="∋",oY="⇋",sY="⥯",lY="⥽",aY="⌋",cY="𝔯",uY="ℜ",fY="⥤",dY="⇁",hY="⇀",pY="⥬",gY="Ρ",mY="ρ",vY="ϱ",yY="⟩",bY="⇥",wY="→",xY="→",kY="⇒",SY="⇄",_Y="↣",TY="⌉",CY="⟧",EY="⥝",AY="⥕",LY="⇂",MY="⌋",NY="⇁",OY="⇀",PY="⇄",RY="⇌",$Y="⇉",IY="↝",DY="↦",zY="⊢",FY="⥛",HY="⋌",BY="⧐",WY="⊳",qY="⊵",jY="⥏",UY="⥜",VY="⥔",GY="↾",KY="⥓",XY="⇀",YY="˚",ZY="≓",JY="⇄",QY="⇌",eZ="‏",tZ="⎱",nZ="⎱",rZ="⫮",iZ="⟭",oZ="⇾",sZ="⟧",lZ="⦆",aZ="𝕣",cZ="ℝ",uZ="⨮",fZ="⨵",dZ="⥰",hZ=")",pZ="⦔",gZ="⨒",mZ="⇉",vZ="⇛",yZ="›",bZ="𝓇",wZ="ℛ",xZ="↱",kZ="↱",SZ="]",_Z="’",TZ="’",CZ="⋌",EZ="⋊",AZ="▹",LZ="⊵",MZ="▸",NZ="⧎",OZ="⧴",PZ="⥨",RZ="℞",$Z="Ś",IZ="ś",DZ="‚",zZ="⪸",FZ="Š",HZ="š",BZ="⪼",WZ="≻",qZ="≽",jZ="⪰",UZ="⪴",VZ="Ş",GZ="ş",KZ="Ŝ",XZ="ŝ",YZ="⪺",ZZ="⪶",JZ="⋩",QZ="⨓",eJ="≿",tJ="С",nJ="с",rJ="⊡",iJ="⋅",oJ="⩦",sJ="⤥",lJ="↘",aJ="⇘",cJ="↘",uJ="§",fJ=";",dJ="⤩",hJ="∖",pJ="∖",gJ="✶",mJ="𝔖",vJ="𝔰",yJ="⌢",bJ="♯",wJ="Щ",xJ="щ",kJ="Ш",SJ="ш",_J="↓",TJ="←",CJ="∣",EJ="∥",AJ="→",LJ="↑",MJ="­",NJ="Σ",OJ="σ",PJ="ς",RJ="ς",$J="∼",IJ="⩪",DJ="≃",zJ="≃",FJ="⪞",HJ="⪠",BJ="⪝",WJ="⪟",qJ="≆",jJ="⨤",UJ="⥲",VJ="←",GJ="∘",KJ="∖",XJ="⨳",YJ="⧤",ZJ="∣",JJ="⌣",QJ="⪪",eQ="⪬",tQ="⪬︀",nQ="Ь",rQ="ь",iQ="⌿",oQ="⧄",sQ="/",lQ="𝕊",aQ="𝕤",cQ="♠",uQ="♠",fQ="∥",dQ="⊓",hQ="⊓︀",pQ="⊔",gQ="⊔︀",mQ="√",vQ="⊏",yQ="⊑",bQ="⊏",wQ="⊑",xQ="⊐",kQ="⊒",SQ="⊐",_Q="⊒",TQ="□",CQ="□",EQ="⊓",AQ="⊏",LQ="⊑",MQ="⊐",NQ="⊒",OQ="⊔",PQ="▪",RQ="□",$Q="▪",IQ="→",DQ="𝒮",zQ="𝓈",FQ="∖",HQ="⌣",BQ="⋆",WQ="⋆",qQ="☆",jQ="★",UQ="ϵ",VQ="ϕ",GQ="¯",KQ="⊂",XQ="⋐",YQ="⪽",ZQ="⫅",JQ="⊆",QQ="⫃",eee="⫁",tee="⫋",nee="⊊",ree="⪿",iee="⥹",oee="⊂",see="⋐",lee="⊆",aee="⫅",cee="⊆",uee="⊊",fee="⫋",dee="⫇",hee="⫕",pee="⫓",gee="⪸",mee="≻",vee="≽",yee="≻",bee="⪰",wee="≽",xee="≿",kee="⪰",See="⪺",_ee="⪶",Tee="⋩",Cee="≿",Eee="∋",Aee="∑",Lee="∑",Mee="♪",Nee="¹",Oee="²",Pee="³",Ree="⊃",$ee="⋑",Iee="⪾",Dee="⫘",zee="⫆",Fee="⊇",Hee="⫄",Bee="⊃",Wee="⊇",qee="⟉",jee="⫗",Uee="⥻",Vee="⫂",Gee="⫌",Kee="⊋",Xee="⫀",Yee="⊃",Zee="⋑",Jee="⊇",Qee="⫆",ete="⊋",tte="⫌",nte="⫈",rte="⫔",ite="⫖",ote="⤦",ste="↙",lte="⇙",ate="↙",cte="⤪",ute="ß",fte=" ",dte="⌖",hte="Τ",pte="τ",gte="⎴",mte="Ť",vte="ť",yte="Ţ",bte="ţ",wte="Т",xte="т",kte="⃛",Ste="⌕",_te="𝔗",Tte="𝔱",Cte="∴",Ete="∴",Ate="∴",Lte="Θ",Mte="θ",Nte="ϑ",Ote="ϑ",Pte="≈",Rte="∼",$te="  ",Ite=" ",Dte=" ",zte="≈",Fte="∼",Hte="Þ",Bte="þ",Wte="˜",qte="∼",jte="≃",Ute="≅",Vte="≈",Gte="⨱",Kte="⊠",Xte="×",Yte="⨰",Zte="∭",Jte="⤨",Qte="⌶",ene="⫱",tne="⊤",nne="𝕋",rne="𝕥",ine="⫚",one="⤩",sne="‴",lne="™",ane="™",cne="▵",une="▿",fne="◃",dne="⊴",hne="≜",pne="▹",gne="⊵",mne="◬",vne="≜",yne="⨺",bne="⃛",wne="⨹",xne="⧍",kne="⨻",Sne="⏢",_ne="𝒯",Tne="𝓉",Cne="Ц",Ene="ц",Ane="Ћ",Lne="ћ",Mne="Ŧ",Nne="ŧ",One="≬",Pne="↞",Rne="↠",$ne="Ú",Ine="ú",Dne="↑",zne="↟",Fne="⇑",Hne="⥉",Bne="Ў",Wne="ў",qne="Ŭ",jne="ŭ",Une="Û",Vne="û",Gne="У",Kne="у",Xne="⇅",Yne="Ű",Zne="ű",Jne="⥮",Qne="⥾",ere="𝔘",tre="𝔲",nre="Ù",rre="ù",ire="⥣",ore="↿",sre="↾",lre="▀",are="⌜",cre="⌜",ure="⌏",fre="◸",dre="Ū",hre="ū",pre="¨",gre="_",mre="⏟",vre="⎵",yre="⏝",bre="⋃",wre="⊎",xre="Ų",kre="ų",Sre="𝕌",_re="𝕦",Tre="⤒",Cre="↑",Ere="↑",Are="⇑",Lre="⇅",Mre="↕",Nre="↕",Ore="⇕",Pre="⥮",Rre="↿",$re="↾",Ire="⊎",Dre="↖",zre="↗",Fre="υ",Hre="ϒ",Bre="ϒ",Wre="Υ",qre="υ",jre="↥",Ure="⊥",Vre="⇈",Gre="⌝",Kre="⌝",Xre="⌎",Yre="Ů",Zre="ů",Jre="◹",Qre="𝒰",eie="𝓊",tie="⋰",nie="Ũ",rie="ũ",iie="▵",oie="▴",sie="⇈",lie="Ü",aie="ü",cie="⦧",uie="⦜",fie="ϵ",die="ϰ",hie="∅",pie="ϕ",gie="ϖ",mie="∝",vie="↕",yie="⇕",bie="ϱ",wie="ς",xie="⊊︀",kie="⫋︀",Sie="⊋︀",_ie="⫌︀",Tie="ϑ",Cie="⊲",Eie="⊳",Aie="⫨",Lie="⫫",Mie="⫩",Nie="В",Oie="в",Pie="⊢",Rie="⊨",$ie="⊩",Iie="⊫",Die="⫦",zie="⊻",Fie="∨",Hie="⋁",Bie="≚",Wie="⋮",qie="|",jie="‖",Uie="|",Vie="‖",Gie="∣",Kie="|",Xie="❘",Yie="≀",Zie=" ",Jie="𝔙",Qie="𝔳",eoe="⊲",toe="⊂⃒",noe="⊃⃒",roe="𝕍",ioe="𝕧",ooe="∝",soe="⊳",loe="𝒱",aoe="𝓋",coe="⫋︀",uoe="⊊︀",foe="⫌︀",doe="⊋︀",hoe="⊪",poe="⦚",goe="Ŵ",moe="ŵ",voe="⩟",yoe="∧",boe="⋀",woe="≙",xoe="℘",koe="𝔚",Soe="𝔴",_oe="𝕎",Toe="𝕨",Coe="℘",Eoe="≀",Aoe="≀",Loe="𝒲",Moe="𝓌",Noe="⋂",Ooe="◯",Poe="⋃",Roe="▽",$oe="𝔛",Ioe="𝔵",Doe="⟷",zoe="⟺",Foe="Ξ",Hoe="ξ",Boe="⟵",Woe="⟸",qoe="⟼",joe="⋻",Uoe="⨀",Voe="𝕏",Goe="𝕩",Koe="⨁",Xoe="⨂",Yoe="⟶",Zoe="⟹",Joe="𝒳",Qoe="𝓍",ese="⨆",tse="⨄",nse="△",rse="⋁",ise="⋀",ose="Ý",sse="ý",lse="Я",ase="я",cse="Ŷ",use="ŷ",fse="Ы",dse="ы",hse="¥",pse="𝔜",gse="𝔶",mse="Ї",vse="ї",yse="𝕐",bse="𝕪",wse="𝒴",xse="𝓎",kse="Ю",Sse="ю",_se="ÿ",Tse="Ÿ",Cse="Ź",Ese="ź",Ase="Ž",Lse="ž",Mse="З",Nse="з",Ose="Ż",Pse="ż",Rse="ℨ",$se="​",Ise="Ζ",Dse="ζ",zse="𝔷",Fse="ℨ",Hse="Ж",Bse="ж",Wse="⇝",qse="𝕫",jse="ℤ",Use="𝒵",Vse="𝓏",Gse="‍",Kse="‌",cx={Aacute:OL,aacute:PL,Abreve:RL,abreve:$L,ac:IL,acd:DL,acE:zL,Acirc:FL,acirc:HL,acute:BL,Acy:WL,acy:qL,AElig:jL,aelig:UL,af:VL,Afr:GL,afr:KL,Agrave:XL,agrave:YL,alefsym:ZL,aleph:JL,Alpha:QL,alpha:eM,Amacr:tM,amacr:nM,amalg:rM,amp:iM,AMP:oM,andand:sM,And:lM,and:aM,andd:cM,andslope:uM,andv:fM,ang:dM,ange:hM,angle:pM,angmsdaa:gM,angmsdab:mM,angmsdac:vM,angmsdad:yM,angmsdae:bM,angmsdaf:wM,angmsdag:xM,angmsdah:kM,angmsd:SM,angrt:_M,angrtvb:TM,angrtvbd:CM,angsph:EM,angst:AM,angzarr:LM,Aogon:MM,aogon:NM,Aopf:OM,aopf:PM,apacir:RM,ap:$M,apE:IM,ape:DM,apid:zM,apos:FM,ApplyFunction:HM,approx:BM,approxeq:WM,Aring:qM,aring:jM,Ascr:UM,ascr:VM,Assign:GM,ast:KM,asymp:XM,asympeq:YM,Atilde:ZM,atilde:JM,Auml:QM,auml:eN,awconint:tN,awint:nN,backcong:rN,backepsilon:iN,backprime:oN,backsim:sN,backsimeq:lN,Backslash:aN,Barv:cN,barvee:uN,barwed:fN,Barwed:dN,barwedge:hN,bbrk:pN,bbrktbrk:gN,bcong:mN,Bcy:vN,bcy:yN,bdquo:bN,becaus:wN,because:xN,Because:kN,bemptyv:SN,bepsi:_N,bernou:TN,Bernoullis:CN,Beta:EN,beta:AN,beth:LN,between:MN,Bfr:NN,bfr:ON,bigcap:PN,bigcirc:RN,bigcup:$N,bigodot:IN,bigoplus:DN,bigotimes:zN,bigsqcup:FN,bigstar:HN,bigtriangledown:BN,bigtriangleup:WN,biguplus:qN,bigvee:jN,bigwedge:UN,bkarow:VN,blacklozenge:GN,blacksquare:KN,blacktriangle:XN,blacktriangledown:YN,blacktriangleleft:ZN,blacktriangleright:JN,blank:QN,blk12:e2,blk14:t2,blk34:n2,block:r2,bne:i2,bnequiv:o2,bNot:s2,bnot:l2,Bopf:a2,bopf:c2,bot:u2,bottom:f2,bowtie:d2,boxbox:h2,boxdl:p2,boxdL:g2,boxDl:m2,boxDL:v2,boxdr:y2,boxdR:b2,boxDr:w2,boxDR:x2,boxh:k2,boxH:S2,boxhd:_2,boxHd:T2,boxhD:C2,boxHD:E2,boxhu:A2,boxHu:L2,boxhU:M2,boxHU:N2,boxminus:O2,boxplus:P2,boxtimes:R2,boxul:$2,boxuL:I2,boxUl:D2,boxUL:z2,boxur:F2,boxuR:H2,boxUr:B2,boxUR:W2,boxv:q2,boxV:j2,boxvh:U2,boxvH:V2,boxVh:G2,boxVH:K2,boxvl:X2,boxvL:Y2,boxVl:Z2,boxVL:J2,boxvr:Q2,boxvR:eO,boxVr:tO,boxVR:nO,bprime:rO,breve:iO,Breve:oO,brvbar:sO,bscr:lO,Bscr:aO,bsemi:cO,bsim:uO,bsime:fO,bsolb:dO,bsol:hO,bsolhsub:pO,bull:gO,bullet:mO,bump:vO,bumpE:yO,bumpe:bO,Bumpeq:wO,bumpeq:xO,Cacute:kO,cacute:SO,capand:_O,capbrcup:TO,capcap:CO,cap:EO,Cap:AO,capcup:LO,capdot:MO,CapitalDifferentialD:NO,caps:OO,caret:PO,caron:RO,Cayleys:$O,ccaps:IO,Ccaron:DO,ccaron:zO,Ccedil:FO,ccedil:HO,Ccirc:BO,ccirc:WO,Cconint:qO,ccups:jO,ccupssm:UO,Cdot:VO,cdot:GO,cedil:KO,Cedilla:XO,cemptyv:YO,cent:ZO,centerdot:JO,CenterDot:QO,cfr:eP,Cfr:tP,CHcy:nP,chcy:rP,check:iP,checkmark:oP,Chi:sP,chi:lP,circ:aP,circeq:cP,circlearrowleft:uP,circlearrowright:fP,circledast:dP,circledcirc:hP,circleddash:pP,CircleDot:gP,circledR:mP,circledS:vP,CircleMinus:yP,CirclePlus:bP,CircleTimes:wP,cir:xP,cirE:kP,cire:SP,cirfnint:_P,cirmid:TP,cirscir:CP,ClockwiseContourIntegral:EP,CloseCurlyDoubleQuote:AP,CloseCurlyQuote:LP,clubs:MP,clubsuit:NP,colon:OP,Colon:PP,Colone:RP,colone:$P,coloneq:IP,comma:DP,commat:zP,comp:FP,compfn:HP,complement:BP,complexes:WP,cong:qP,congdot:jP,Congruent:UP,conint:VP,Conint:GP,ContourIntegral:KP,copf:XP,Copf:YP,coprod:ZP,Coproduct:JP,copy:QP,COPY:eR,copysr:tR,CounterClockwiseContourIntegral:nR,crarr:rR,cross:iR,Cross:oR,Cscr:sR,cscr:lR,csub:aR,csube:cR,csup:uR,csupe:fR,ctdot:dR,cudarrl:hR,cudarrr:pR,cuepr:gR,cuesc:mR,cularr:vR,cularrp:yR,cupbrcap:bR,cupcap:wR,CupCap:xR,cup:kR,Cup:SR,cupcup:_R,cupdot:TR,cupor:CR,cups:ER,curarr:AR,curarrm:LR,curlyeqprec:MR,curlyeqsucc:NR,curlyvee:OR,curlywedge:PR,curren:RR,curvearrowleft:$R,curvearrowright:IR,cuvee:DR,cuwed:zR,cwconint:FR,cwint:HR,cylcty:BR,dagger:WR,Dagger:qR,daleth:jR,darr:UR,Darr:VR,dArr:GR,dash:KR,Dashv:XR,dashv:YR,dbkarow:ZR,dblac:JR,Dcaron:QR,dcaron:e$,Dcy:t$,dcy:n$,ddagger:r$,ddarr:i$,DD:o$,dd:s$,DDotrahd:l$,ddotseq:a$,deg:c$,Del:u$,Delta:f$,delta:d$,demptyv:h$,dfisht:p$,Dfr:g$,dfr:m$,dHar:v$,dharl:y$,dharr:b$,DiacriticalAcute:w$,DiacriticalDot:x$,DiacriticalDoubleAcute:k$,DiacriticalGrave:S$,DiacriticalTilde:_$,diam:T$,diamond:C$,Diamond:E$,diamondsuit:A$,diams:L$,die:M$,DifferentialD:N$,digamma:O$,disin:P$,div:R$,divide:$$,divideontimes:I$,divonx:D$,DJcy:z$,djcy:F$,dlcorn:H$,dlcrop:B$,dollar:W$,Dopf:q$,dopf:j$,Dot:U$,dot:V$,DotDot:G$,doteq:K$,doteqdot:X$,DotEqual:Y$,dotminus:Z$,dotplus:J$,dotsquare:Q$,doublebarwedge:eI,DoubleContourIntegral:tI,DoubleDot:nI,DoubleDownArrow:rI,DoubleLeftArrow:iI,DoubleLeftRightArrow:oI,DoubleLeftTee:sI,DoubleLongLeftArrow:lI,DoubleLongLeftRightArrow:aI,DoubleLongRightArrow:cI,DoubleRightArrow:uI,DoubleRightTee:fI,DoubleUpArrow:dI,DoubleUpDownArrow:hI,DoubleVerticalBar:pI,DownArrowBar:gI,downarrow:mI,DownArrow:vI,Downarrow:yI,DownArrowUpArrow:bI,DownBreve:wI,downdownarrows:xI,downharpoonleft:kI,downharpoonright:SI,DownLeftRightVector:_I,DownLeftTeeVector:TI,DownLeftVectorBar:CI,DownLeftVector:EI,DownRightTeeVector:AI,DownRightVectorBar:LI,DownRightVector:MI,DownTeeArrow:NI,DownTee:OI,drbkarow:PI,drcorn:RI,drcrop:$I,Dscr:II,dscr:DI,DScy:zI,dscy:FI,dsol:HI,Dstrok:BI,dstrok:WI,dtdot:qI,dtri:jI,dtrif:UI,duarr:VI,duhar:GI,dwangle:KI,DZcy:XI,dzcy:YI,dzigrarr:ZI,Eacute:JI,eacute:QI,easter:eD,Ecaron:tD,ecaron:nD,Ecirc:rD,ecirc:iD,ecir:oD,ecolon:sD,Ecy:lD,ecy:aD,eDDot:cD,Edot:uD,edot:fD,eDot:dD,ee:hD,efDot:pD,Efr:gD,efr:mD,eg:vD,Egrave:yD,egrave:bD,egs:wD,egsdot:xD,el:kD,Element:SD,elinters:_D,ell:TD,els:CD,elsdot:ED,Emacr:AD,emacr:LD,empty:MD,emptyset:ND,EmptySmallSquare:OD,emptyv:PD,EmptyVerySmallSquare:RD,emsp13:$D,emsp14:ID,emsp:DD,ENG:zD,eng:FD,ensp:HD,Eogon:BD,eogon:WD,Eopf:qD,eopf:jD,epar:UD,eparsl:VD,eplus:GD,epsi:KD,Epsilon:XD,epsilon:YD,epsiv:ZD,eqcirc:JD,eqcolon:QD,eqsim:ez,eqslantgtr:tz,eqslantless:nz,Equal:rz,equals:iz,EqualTilde:oz,equest:sz,Equilibrium:lz,equiv:az,equivDD:cz,eqvparsl:uz,erarr:fz,erDot:dz,escr:hz,Escr:pz,esdot:gz,Esim:mz,esim:vz,Eta:yz,eta:bz,ETH:wz,eth:xz,Euml:kz,euml:Sz,euro:_z,excl:Tz,exist:Cz,Exists:Ez,expectation:Az,exponentiale:Lz,ExponentialE:Mz,fallingdotseq:Nz,Fcy:Oz,fcy:Pz,female:Rz,ffilig:$z,fflig:Iz,ffllig:Dz,Ffr:zz,ffr:Fz,filig:Hz,FilledSmallSquare:Bz,FilledVerySmallSquare:Wz,fjlig:qz,flat:jz,fllig:Uz,fltns:Vz,fnof:Gz,Fopf:Kz,fopf:Xz,forall:Yz,ForAll:Zz,fork:Jz,forkv:Qz,Fouriertrf:eF,fpartint:tF,frac12:nF,frac13:rF,frac14:iF,frac15:oF,frac16:sF,frac18:lF,frac23:aF,frac25:cF,frac34:uF,frac35:fF,frac38:dF,frac45:hF,frac56:pF,frac58:gF,frac78:mF,frasl:vF,frown:yF,fscr:bF,Fscr:wF,gacute:xF,Gamma:kF,gamma:SF,Gammad:_F,gammad:TF,gap:CF,Gbreve:EF,gbreve:AF,Gcedil:LF,Gcirc:MF,gcirc:NF,Gcy:OF,gcy:PF,Gdot:RF,gdot:$F,ge:IF,gE:DF,gEl:zF,gel:FF,geq:HF,geqq:BF,geqslant:WF,gescc:qF,ges:jF,gesdot:UF,gesdoto:VF,gesdotol:GF,gesl:KF,gesles:XF,Gfr:YF,gfr:ZF,gg:JF,Gg:QF,ggg:eH,gimel:tH,GJcy:nH,gjcy:rH,gla:iH,gl:oH,glE:sH,glj:lH,gnap:aH,gnapprox:cH,gne:uH,gnE:fH,gneq:dH,gneqq:hH,gnsim:pH,Gopf:gH,gopf:mH,grave:vH,GreaterEqual:yH,GreaterEqualLess:bH,GreaterFullEqual:wH,GreaterGreater:xH,GreaterLess:kH,GreaterSlantEqual:SH,GreaterTilde:_H,Gscr:TH,gscr:CH,gsim:EH,gsime:AH,gsiml:LH,gtcc:MH,gtcir:NH,gt:OH,GT:PH,Gt:RH,gtdot:$H,gtlPar:IH,gtquest:DH,gtrapprox:zH,gtrarr:FH,gtrdot:HH,gtreqless:BH,gtreqqless:WH,gtrless:qH,gtrsim:jH,gvertneqq:UH,gvnE:VH,Hacek:GH,hairsp:KH,half:XH,hamilt:YH,HARDcy:ZH,hardcy:JH,harrcir:QH,harr:e3,hArr:t3,harrw:n3,Hat:r3,hbar:i3,Hcirc:o3,hcirc:s3,hearts:l3,heartsuit:a3,hellip:c3,hercon:u3,hfr:f3,Hfr:d3,HilbertSpace:h3,hksearow:p3,hkswarow:g3,hoarr:m3,homtht:v3,hookleftarrow:y3,hookrightarrow:b3,hopf:w3,Hopf:x3,horbar:k3,HorizontalLine:S3,hscr:_3,Hscr:T3,hslash:C3,Hstrok:E3,hstrok:A3,HumpDownHump:L3,HumpEqual:M3,hybull:N3,hyphen:O3,Iacute:P3,iacute:R3,ic:$3,Icirc:I3,icirc:D3,Icy:z3,icy:F3,Idot:H3,IEcy:B3,iecy:W3,iexcl:q3,iff:j3,ifr:U3,Ifr:V3,Igrave:G3,igrave:K3,ii:X3,iiiint:Y3,iiint:Z3,iinfin:J3,iiota:Q3,IJlig:eB,ijlig:tB,Imacr:nB,imacr:rB,image:iB,ImaginaryI:oB,imagline:sB,imagpart:lB,imath:aB,Im:cB,imof:uB,imped:fB,Implies:dB,incare:hB,in:"∈",infin:pB,infintie:gB,inodot:mB,intcal:vB,int:yB,Int:bB,integers:wB,Integral:xB,intercal:kB,Intersection:SB,intlarhk:_B,intprod:TB,InvisibleComma:CB,InvisibleTimes:EB,IOcy:AB,iocy:LB,Iogon:MB,iogon:NB,Iopf:OB,iopf:PB,Iota:RB,iota:$B,iprod:IB,iquest:DB,iscr:zB,Iscr:FB,isin:HB,isindot:BB,isinE:WB,isins:qB,isinsv:jB,isinv:UB,it:VB,Itilde:GB,itilde:KB,Iukcy:XB,iukcy:YB,Iuml:ZB,iuml:JB,Jcirc:QB,jcirc:e5,Jcy:t5,jcy:n5,Jfr:r5,jfr:i5,jmath:o5,Jopf:s5,jopf:l5,Jscr:a5,jscr:c5,Jsercy:u5,jsercy:f5,Jukcy:d5,jukcy:h5,Kappa:p5,kappa:g5,kappav:m5,Kcedil:v5,kcedil:y5,Kcy:b5,kcy:w5,Kfr:x5,kfr:k5,kgreen:S5,KHcy:_5,khcy:T5,KJcy:C5,kjcy:E5,Kopf:A5,kopf:L5,Kscr:M5,kscr:N5,lAarr:O5,Lacute:P5,lacute:R5,laemptyv:$5,lagran:I5,Lambda:D5,lambda:z5,lang:F5,Lang:H5,langd:B5,langle:W5,lap:q5,Laplacetrf:j5,laquo:U5,larrb:V5,larrbfs:G5,larr:K5,Larr:X5,lArr:Y5,larrfs:Z5,larrhk:J5,larrlp:Q5,larrpl:e8,larrsim:t8,larrtl:n8,latail:r8,lAtail:i8,lat:o8,late:s8,lates:l8,lbarr:a8,lBarr:c8,lbbrk:u8,lbrace:f8,lbrack:d8,lbrke:h8,lbrksld:p8,lbrkslu:g8,Lcaron:m8,lcaron:v8,Lcedil:y8,lcedil:b8,lceil:w8,lcub:x8,Lcy:k8,lcy:S8,ldca:_8,ldquo:T8,ldquor:C8,ldrdhar:E8,ldrushar:A8,ldsh:L8,le:M8,lE:N8,LeftAngleBracket:O8,LeftArrowBar:P8,leftarrow:R8,LeftArrow:$8,Leftarrow:I8,LeftArrowRightArrow:D8,leftarrowtail:z8,LeftCeiling:F8,LeftDoubleBracket:H8,LeftDownTeeVector:B8,LeftDownVectorBar:W8,LeftDownVector:q8,LeftFloor:j8,leftharpoondown:U8,leftharpoonup:V8,leftleftarrows:G8,leftrightarrow:K8,LeftRightArrow:X8,Leftrightarrow:Y8,leftrightarrows:Z8,leftrightharpoons:J8,leftrightsquigarrow:Q8,LeftRightVector:eW,LeftTeeArrow:tW,LeftTee:nW,LeftTeeVector:rW,leftthreetimes:iW,LeftTriangleBar:oW,LeftTriangle:sW,LeftTriangleEqual:lW,LeftUpDownVector:aW,LeftUpTeeVector:cW,LeftUpVectorBar:uW,LeftUpVector:fW,LeftVectorBar:dW,LeftVector:hW,lEg:pW,leg:gW,leq:mW,leqq:vW,leqslant:yW,lescc:bW,les:wW,lesdot:xW,lesdoto:kW,lesdotor:SW,lesg:_W,lesges:TW,lessapprox:CW,lessdot:EW,lesseqgtr:AW,lesseqqgtr:LW,LessEqualGreater:MW,LessFullEqual:NW,LessGreater:OW,lessgtr:PW,LessLess:RW,lesssim:$W,LessSlantEqual:IW,LessTilde:DW,lfisht:zW,lfloor:FW,Lfr:HW,lfr:BW,lg:WW,lgE:qW,lHar:jW,lhard:UW,lharu:VW,lharul:GW,lhblk:KW,LJcy:XW,ljcy:YW,llarr:ZW,ll:JW,Ll:QW,llcorner:e4,Lleftarrow:t4,llhard:n4,lltri:r4,Lmidot:i4,lmidot:o4,lmoustache:s4,lmoust:l4,lnap:a4,lnapprox:c4,lne:u4,lnE:f4,lneq:d4,lneqq:h4,lnsim:p4,loang:g4,loarr:m4,lobrk:v4,longleftarrow:y4,LongLeftArrow:b4,Longleftarrow:w4,longleftrightarrow:x4,LongLeftRightArrow:k4,Longleftrightarrow:S4,longmapsto:_4,longrightarrow:T4,LongRightArrow:C4,Longrightarrow:E4,looparrowleft:A4,looparrowright:L4,lopar:M4,Lopf:N4,lopf:O4,loplus:P4,lotimes:R4,lowast:$4,lowbar:I4,LowerLeftArrow:D4,LowerRightArrow:z4,loz:F4,lozenge:H4,lozf:B4,lpar:W4,lparlt:q4,lrarr:j4,lrcorner:U4,lrhar:V4,lrhard:G4,lrm:K4,lrtri:X4,lsaquo:Y4,lscr:Z4,Lscr:J4,lsh:Q4,Lsh:eq,lsim:tq,lsime:nq,lsimg:rq,lsqb:iq,lsquo:oq,lsquor:sq,Lstrok:lq,lstrok:aq,ltcc:cq,ltcir:uq,lt:fq,LT:dq,Lt:hq,ltdot:pq,lthree:gq,ltimes:mq,ltlarr:vq,ltquest:yq,ltri:bq,ltrie:wq,ltrif:xq,ltrPar:kq,lurdshar:Sq,luruhar:_q,lvertneqq:Tq,lvnE:Cq,macr:Eq,male:Aq,malt:Lq,maltese:Mq,Map:"⤅",map:Nq,mapsto:Oq,mapstodown:Pq,mapstoleft:Rq,mapstoup:$q,marker:Iq,mcomma:Dq,Mcy:zq,mcy:Fq,mdash:Hq,mDDot:Bq,measuredangle:Wq,MediumSpace:qq,Mellintrf:jq,Mfr:Uq,mfr:Vq,mho:Gq,micro:Kq,midast:Xq,midcir:Yq,mid:Zq,middot:Jq,minusb:Qq,minus:ej,minusd:tj,minusdu:nj,MinusPlus:rj,mlcp:ij,mldr:oj,mnplus:sj,models:lj,Mopf:aj,mopf:cj,mp:uj,mscr:fj,Mscr:dj,mstpos:hj,Mu:pj,mu:gj,multimap:mj,mumap:vj,nabla:yj,Nacute:bj,nacute:wj,nang:xj,nap:kj,napE:Sj,napid:_j,napos:Tj,napprox:Cj,natural:Ej,naturals:Aj,natur:Lj,nbsp:Mj,nbump:Nj,nbumpe:Oj,ncap:Pj,Ncaron:Rj,ncaron:$j,Ncedil:Ij,ncedil:Dj,ncong:zj,ncongdot:Fj,ncup:Hj,Ncy:Bj,ncy:Wj,ndash:qj,nearhk:jj,nearr:Uj,neArr:Vj,nearrow:Gj,ne:Kj,nedot:Xj,NegativeMediumSpace:Yj,NegativeThickSpace:Zj,NegativeThinSpace:Jj,NegativeVeryThinSpace:Qj,nequiv:eU,nesear:tU,nesim:nU,NestedGreaterGreater:rU,NestedLessLess:iU,NewLine:oU,nexist:sU,nexists:lU,Nfr:aU,nfr:cU,ngE:uU,nge:fU,ngeq:dU,ngeqq:hU,ngeqslant:pU,nges:gU,nGg:mU,ngsim:vU,nGt:yU,ngt:bU,ngtr:wU,nGtv:xU,nharr:kU,nhArr:SU,nhpar:_U,ni:TU,nis:CU,nisd:EU,niv:AU,NJcy:LU,njcy:MU,nlarr:NU,nlArr:OU,nldr:PU,nlE:RU,nle:$U,nleftarrow:IU,nLeftarrow:DU,nleftrightarrow:zU,nLeftrightarrow:FU,nleq:HU,nleqq:BU,nleqslant:WU,nles:qU,nless:jU,nLl:UU,nlsim:VU,nLt:GU,nlt:KU,nltri:XU,nltrie:YU,nLtv:ZU,nmid:JU,NoBreak:QU,NonBreakingSpace:e6,nopf:t6,Nopf:n6,Not:r6,not:i6,NotCongruent:o6,NotCupCap:s6,NotDoubleVerticalBar:l6,NotElement:a6,NotEqual:c6,NotEqualTilde:u6,NotExists:f6,NotGreater:d6,NotGreaterEqual:h6,NotGreaterFullEqual:p6,NotGreaterGreater:g6,NotGreaterLess:m6,NotGreaterSlantEqual:v6,NotGreaterTilde:y6,NotHumpDownHump:b6,NotHumpEqual:w6,notin:x6,notindot:k6,notinE:S6,notinva:_6,notinvb:T6,notinvc:C6,NotLeftTriangleBar:E6,NotLeftTriangle:A6,NotLeftTriangleEqual:L6,NotLess:M6,NotLessEqual:N6,NotLessGreater:O6,NotLessLess:P6,NotLessSlantEqual:R6,NotLessTilde:$6,NotNestedGreaterGreater:I6,NotNestedLessLess:D6,notni:z6,notniva:F6,notnivb:H6,notnivc:B6,NotPrecedes:W6,NotPrecedesEqual:q6,NotPrecedesSlantEqual:j6,NotReverseElement:U6,NotRightTriangleBar:V6,NotRightTriangle:G6,NotRightTriangleEqual:K6,NotSquareSubset:X6,NotSquareSubsetEqual:Y6,NotSquareSuperset:Z6,NotSquareSupersetEqual:J6,NotSubset:Q6,NotSubsetEqual:eV,NotSucceeds:tV,NotSucceedsEqual:nV,NotSucceedsSlantEqual:rV,NotSucceedsTilde:iV,NotSuperset:oV,NotSupersetEqual:sV,NotTilde:lV,NotTildeEqual:aV,NotTildeFullEqual:cV,NotTildeTilde:uV,NotVerticalBar:fV,nparallel:dV,npar:hV,nparsl:pV,npart:gV,npolint:mV,npr:vV,nprcue:yV,nprec:bV,npreceq:wV,npre:xV,nrarrc:kV,nrarr:SV,nrArr:_V,nrarrw:TV,nrightarrow:CV,nRightarrow:EV,nrtri:AV,nrtrie:LV,nsc:MV,nsccue:NV,nsce:OV,Nscr:PV,nscr:RV,nshortmid:$V,nshortparallel:IV,nsim:DV,nsime:zV,nsimeq:FV,nsmid:HV,nspar:BV,nsqsube:WV,nsqsupe:qV,nsub:jV,nsubE:UV,nsube:VV,nsubset:GV,nsubseteq:KV,nsubseteqq:XV,nsucc:YV,nsucceq:ZV,nsup:JV,nsupE:QV,nsupe:eG,nsupset:tG,nsupseteq:nG,nsupseteqq:rG,ntgl:iG,Ntilde:oG,ntilde:sG,ntlg:lG,ntriangleleft:aG,ntrianglelefteq:cG,ntriangleright:uG,ntrianglerighteq:fG,Nu:dG,nu:hG,num:pG,numero:gG,numsp:mG,nvap:vG,nvdash:yG,nvDash:bG,nVdash:wG,nVDash:xG,nvge:kG,nvgt:SG,nvHarr:_G,nvinfin:TG,nvlArr:CG,nvle:EG,nvlt:AG,nvltrie:LG,nvrArr:MG,nvrtrie:NG,nvsim:OG,nwarhk:PG,nwarr:RG,nwArr:$G,nwarrow:IG,nwnear:DG,Oacute:zG,oacute:FG,oast:HG,Ocirc:BG,ocirc:WG,ocir:qG,Ocy:jG,ocy:UG,odash:VG,Odblac:GG,odblac:KG,odiv:XG,odot:YG,odsold:ZG,OElig:JG,oelig:QG,ofcir:e9,Ofr:t9,ofr:n9,ogon:r9,Ograve:i9,ograve:o9,ogt:s9,ohbar:l9,ohm:a9,oint:c9,olarr:u9,olcir:f9,olcross:d9,oline:h9,olt:p9,Omacr:g9,omacr:m9,Omega:v9,omega:y9,Omicron:b9,omicron:w9,omid:x9,ominus:k9,Oopf:S9,oopf:_9,opar:T9,OpenCurlyDoubleQuote:C9,OpenCurlyQuote:E9,operp:A9,oplus:L9,orarr:M9,Or:N9,or:O9,ord:P9,order:R9,orderof:$9,ordf:I9,ordm:D9,origof:z9,oror:F9,orslope:H9,orv:B9,oS:W9,Oscr:q9,oscr:j9,Oslash:U9,oslash:V9,osol:G9,Otilde:K9,otilde:X9,otimesas:Y9,Otimes:Z9,otimes:J9,Ouml:Q9,ouml:eK,ovbar:tK,OverBar:nK,OverBrace:rK,OverBracket:iK,OverParenthesis:oK,para:sK,parallel:lK,par:aK,parsim:cK,parsl:uK,part:fK,PartialD:dK,Pcy:hK,pcy:pK,percnt:gK,period:mK,permil:vK,perp:yK,pertenk:bK,Pfr:wK,pfr:xK,Phi:kK,phi:SK,phiv:_K,phmmat:TK,phone:CK,Pi:EK,pi:AK,pitchfork:LK,piv:MK,planck:NK,planckh:OK,plankv:PK,plusacir:RK,plusb:$K,pluscir:IK,plus:DK,plusdo:zK,plusdu:FK,pluse:HK,PlusMinus:BK,plusmn:WK,plussim:qK,plustwo:jK,pm:UK,Poincareplane:VK,pointint:GK,popf:KK,Popf:XK,pound:YK,prap:ZK,Pr:JK,pr:QK,prcue:e7,precapprox:t7,prec:n7,preccurlyeq:r7,Precedes:i7,PrecedesEqual:o7,PrecedesSlantEqual:s7,PrecedesTilde:l7,preceq:a7,precnapprox:c7,precneqq:u7,precnsim:f7,pre:d7,prE:h7,precsim:p7,prime:g7,Prime:m7,primes:v7,prnap:y7,prnE:b7,prnsim:w7,prod:x7,Product:k7,profalar:S7,profline:_7,profsurf:T7,prop:C7,Proportional:E7,Proportion:A7,propto:L7,prsim:M7,prurel:N7,Pscr:O7,pscr:P7,Psi:R7,psi:$7,puncsp:I7,Qfr:D7,qfr:z7,qint:F7,qopf:H7,Qopf:B7,qprime:W7,Qscr:q7,qscr:j7,quaternions:U7,quatint:V7,quest:G7,questeq:K7,quot:X7,QUOT:Y7,rAarr:Z7,race:J7,Racute:Q7,racute:eX,radic:tX,raemptyv:nX,rang:rX,Rang:iX,rangd:oX,range:sX,rangle:lX,raquo:aX,rarrap:cX,rarrb:uX,rarrbfs:fX,rarrc:dX,rarr:hX,Rarr:pX,rArr:gX,rarrfs:mX,rarrhk:vX,rarrlp:yX,rarrpl:bX,rarrsim:wX,Rarrtl:xX,rarrtl:kX,rarrw:SX,ratail:_X,rAtail:TX,ratio:CX,rationals:EX,rbarr:AX,rBarr:LX,RBarr:MX,rbbrk:NX,rbrace:OX,rbrack:PX,rbrke:RX,rbrksld:$X,rbrkslu:IX,Rcaron:DX,rcaron:zX,Rcedil:FX,rcedil:HX,rceil:BX,rcub:WX,Rcy:qX,rcy:jX,rdca:UX,rdldhar:VX,rdquo:GX,rdquor:KX,rdsh:XX,real:YX,realine:ZX,realpart:JX,reals:QX,Re:eY,rect:tY,reg:nY,REG:rY,ReverseElement:iY,ReverseEquilibrium:oY,ReverseUpEquilibrium:sY,rfisht:lY,rfloor:aY,rfr:cY,Rfr:uY,rHar:fY,rhard:dY,rharu:hY,rharul:pY,Rho:gY,rho:mY,rhov:vY,RightAngleBracket:yY,RightArrowBar:bY,rightarrow:wY,RightArrow:xY,Rightarrow:kY,RightArrowLeftArrow:SY,rightarrowtail:_Y,RightCeiling:TY,RightDoubleBracket:CY,RightDownTeeVector:EY,RightDownVectorBar:AY,RightDownVector:LY,RightFloor:MY,rightharpoondown:NY,rightharpoonup:OY,rightleftarrows:PY,rightleftharpoons:RY,rightrightarrows:$Y,rightsquigarrow:IY,RightTeeArrow:DY,RightTee:zY,RightTeeVector:FY,rightthreetimes:HY,RightTriangleBar:BY,RightTriangle:WY,RightTriangleEqual:qY,RightUpDownVector:jY,RightUpTeeVector:UY,RightUpVectorBar:VY,RightUpVector:GY,RightVectorBar:KY,RightVector:XY,ring:YY,risingdotseq:ZY,rlarr:JY,rlhar:QY,rlm:eZ,rmoustache:tZ,rmoust:nZ,rnmid:rZ,roang:iZ,roarr:oZ,robrk:sZ,ropar:lZ,ropf:aZ,Ropf:cZ,roplus:uZ,rotimes:fZ,RoundImplies:dZ,rpar:hZ,rpargt:pZ,rppolint:gZ,rrarr:mZ,Rrightarrow:vZ,rsaquo:yZ,rscr:bZ,Rscr:wZ,rsh:xZ,Rsh:kZ,rsqb:SZ,rsquo:_Z,rsquor:TZ,rthree:CZ,rtimes:EZ,rtri:AZ,rtrie:LZ,rtrif:MZ,rtriltri:NZ,RuleDelayed:OZ,ruluhar:PZ,rx:RZ,Sacute:$Z,sacute:IZ,sbquo:DZ,scap:zZ,Scaron:FZ,scaron:HZ,Sc:BZ,sc:WZ,sccue:qZ,sce:jZ,scE:UZ,Scedil:VZ,scedil:GZ,Scirc:KZ,scirc:XZ,scnap:YZ,scnE:ZZ,scnsim:JZ,scpolint:QZ,scsim:eJ,Scy:tJ,scy:nJ,sdotb:rJ,sdot:iJ,sdote:oJ,searhk:sJ,searr:lJ,seArr:aJ,searrow:cJ,sect:uJ,semi:fJ,seswar:dJ,setminus:hJ,setmn:pJ,sext:gJ,Sfr:mJ,sfr:vJ,sfrown:yJ,sharp:bJ,SHCHcy:wJ,shchcy:xJ,SHcy:kJ,shcy:SJ,ShortDownArrow:_J,ShortLeftArrow:TJ,shortmid:CJ,shortparallel:EJ,ShortRightArrow:AJ,ShortUpArrow:LJ,shy:MJ,Sigma:NJ,sigma:OJ,sigmaf:PJ,sigmav:RJ,sim:$J,simdot:IJ,sime:DJ,simeq:zJ,simg:FJ,simgE:HJ,siml:BJ,simlE:WJ,simne:qJ,simplus:jJ,simrarr:UJ,slarr:VJ,SmallCircle:GJ,smallsetminus:KJ,smashp:XJ,smeparsl:YJ,smid:ZJ,smile:JJ,smt:QJ,smte:eQ,smtes:tQ,SOFTcy:nQ,softcy:rQ,solbar:iQ,solb:oQ,sol:sQ,Sopf:lQ,sopf:aQ,spades:cQ,spadesuit:uQ,spar:fQ,sqcap:dQ,sqcaps:hQ,sqcup:pQ,sqcups:gQ,Sqrt:mQ,sqsub:vQ,sqsube:yQ,sqsubset:bQ,sqsubseteq:wQ,sqsup:xQ,sqsupe:kQ,sqsupset:SQ,sqsupseteq:_Q,square:TQ,Square:CQ,SquareIntersection:EQ,SquareSubset:AQ,SquareSubsetEqual:LQ,SquareSuperset:MQ,SquareSupersetEqual:NQ,SquareUnion:OQ,squarf:PQ,squ:RQ,squf:$Q,srarr:IQ,Sscr:DQ,sscr:zQ,ssetmn:FQ,ssmile:HQ,sstarf:BQ,Star:WQ,star:qQ,starf:jQ,straightepsilon:UQ,straightphi:VQ,strns:GQ,sub:KQ,Sub:XQ,subdot:YQ,subE:ZQ,sube:JQ,subedot:QQ,submult:eee,subnE:tee,subne:nee,subplus:ree,subrarr:iee,subset:oee,Subset:see,subseteq:lee,subseteqq:aee,SubsetEqual:cee,subsetneq:uee,subsetneqq:fee,subsim:dee,subsub:hee,subsup:pee,succapprox:gee,succ:mee,succcurlyeq:vee,Succeeds:yee,SucceedsEqual:bee,SucceedsSlantEqual:wee,SucceedsTilde:xee,succeq:kee,succnapprox:See,succneqq:_ee,succnsim:Tee,succsim:Cee,SuchThat:Eee,sum:Aee,Sum:Lee,sung:Mee,sup1:Nee,sup2:Oee,sup3:Pee,sup:Ree,Sup:$ee,supdot:Iee,supdsub:Dee,supE:zee,supe:Fee,supedot:Hee,Superset:Bee,SupersetEqual:Wee,suphsol:qee,suphsub:jee,suplarr:Uee,supmult:Vee,supnE:Gee,supne:Kee,supplus:Xee,supset:Yee,Supset:Zee,supseteq:Jee,supseteqq:Qee,supsetneq:ete,supsetneqq:tte,supsim:nte,supsub:rte,supsup:ite,swarhk:ote,swarr:ste,swArr:lte,swarrow:ate,swnwar:cte,szlig:ute,Tab:fte,target:dte,Tau:hte,tau:pte,tbrk:gte,Tcaron:mte,tcaron:vte,Tcedil:yte,tcedil:bte,Tcy:wte,tcy:xte,tdot:kte,telrec:Ste,Tfr:_te,tfr:Tte,there4:Cte,therefore:Ete,Therefore:Ate,Theta:Lte,theta:Mte,thetasym:Nte,thetav:Ote,thickapprox:Pte,thicksim:Rte,ThickSpace:$te,ThinSpace:Ite,thinsp:Dte,thkap:zte,thksim:Fte,THORN:Hte,thorn:Bte,tilde:Wte,Tilde:qte,TildeEqual:jte,TildeFullEqual:Ute,TildeTilde:Vte,timesbar:Gte,timesb:Kte,times:Xte,timesd:Yte,tint:Zte,toea:Jte,topbot:Qte,topcir:ene,top:tne,Topf:nne,topf:rne,topfork:ine,tosa:one,tprime:sne,trade:lne,TRADE:ane,triangle:cne,triangledown:une,triangleleft:fne,trianglelefteq:dne,triangleq:hne,triangleright:pne,trianglerighteq:gne,tridot:mne,trie:vne,triminus:yne,TripleDot:bne,triplus:wne,trisb:xne,tritime:kne,trpezium:Sne,Tscr:_ne,tscr:Tne,TScy:Cne,tscy:Ene,TSHcy:Ane,tshcy:Lne,Tstrok:Mne,tstrok:Nne,twixt:One,twoheadleftarrow:Pne,twoheadrightarrow:Rne,Uacute:$ne,uacute:Ine,uarr:Dne,Uarr:zne,uArr:Fne,Uarrocir:Hne,Ubrcy:Bne,ubrcy:Wne,Ubreve:qne,ubreve:jne,Ucirc:Une,ucirc:Vne,Ucy:Gne,ucy:Kne,udarr:Xne,Udblac:Yne,udblac:Zne,udhar:Jne,ufisht:Qne,Ufr:ere,ufr:tre,Ugrave:nre,ugrave:rre,uHar:ire,uharl:ore,uharr:sre,uhblk:lre,ulcorn:are,ulcorner:cre,ulcrop:ure,ultri:fre,Umacr:dre,umacr:hre,uml:pre,UnderBar:gre,UnderBrace:mre,UnderBracket:vre,UnderParenthesis:yre,Union:bre,UnionPlus:wre,Uogon:xre,uogon:kre,Uopf:Sre,uopf:_re,UpArrowBar:Tre,uparrow:Cre,UpArrow:Ere,Uparrow:Are,UpArrowDownArrow:Lre,updownarrow:Mre,UpDownArrow:Nre,Updownarrow:Ore,UpEquilibrium:Pre,upharpoonleft:Rre,upharpoonright:$re,uplus:Ire,UpperLeftArrow:Dre,UpperRightArrow:zre,upsi:Fre,Upsi:Hre,upsih:Bre,Upsilon:Wre,upsilon:qre,UpTeeArrow:jre,UpTee:Ure,upuparrows:Vre,urcorn:Gre,urcorner:Kre,urcrop:Xre,Uring:Yre,uring:Zre,urtri:Jre,Uscr:Qre,uscr:eie,utdot:tie,Utilde:nie,utilde:rie,utri:iie,utrif:oie,uuarr:sie,Uuml:lie,uuml:aie,uwangle:cie,vangrt:uie,varepsilon:fie,varkappa:die,varnothing:hie,varphi:pie,varpi:gie,varpropto:mie,varr:vie,vArr:yie,varrho:bie,varsigma:wie,varsubsetneq:xie,varsubsetneqq:kie,varsupsetneq:Sie,varsupsetneqq:_ie,vartheta:Tie,vartriangleleft:Cie,vartriangleright:Eie,vBar:Aie,Vbar:Lie,vBarv:Mie,Vcy:Nie,vcy:Oie,vdash:Pie,vDash:Rie,Vdash:$ie,VDash:Iie,Vdashl:Die,veebar:zie,vee:Fie,Vee:Hie,veeeq:Bie,vellip:Wie,verbar:qie,Verbar:jie,vert:Uie,Vert:Vie,VerticalBar:Gie,VerticalLine:Kie,VerticalSeparator:Xie,VerticalTilde:Yie,VeryThinSpace:Zie,Vfr:Jie,vfr:Qie,vltri:eoe,vnsub:toe,vnsup:noe,Vopf:roe,vopf:ioe,vprop:ooe,vrtri:soe,Vscr:loe,vscr:aoe,vsubnE:coe,vsubne:uoe,vsupnE:foe,vsupne:doe,Vvdash:hoe,vzigzag:poe,Wcirc:goe,wcirc:moe,wedbar:voe,wedge:yoe,Wedge:boe,wedgeq:woe,weierp:xoe,Wfr:koe,wfr:Soe,Wopf:_oe,wopf:Toe,wp:Coe,wr:Eoe,wreath:Aoe,Wscr:Loe,wscr:Moe,xcap:Noe,xcirc:Ooe,xcup:Poe,xdtri:Roe,Xfr:$oe,xfr:Ioe,xharr:Doe,xhArr:zoe,Xi:Foe,xi:Hoe,xlarr:Boe,xlArr:Woe,xmap:qoe,xnis:joe,xodot:Uoe,Xopf:Voe,xopf:Goe,xoplus:Koe,xotime:Xoe,xrarr:Yoe,xrArr:Zoe,Xscr:Joe,xscr:Qoe,xsqcup:ese,xuplus:tse,xutri:nse,xvee:rse,xwedge:ise,Yacute:ose,yacute:sse,YAcy:lse,yacy:ase,Ycirc:cse,ycirc:use,Ycy:fse,ycy:dse,yen:hse,Yfr:pse,yfr:gse,YIcy:mse,yicy:vse,Yopf:yse,yopf:bse,Yscr:wse,yscr:xse,YUcy:kse,yucy:Sse,yuml:_se,Yuml:Tse,Zacute:Cse,zacute:Ese,Zcaron:Ase,zcaron:Lse,Zcy:Mse,zcy:Nse,Zdot:Ose,zdot:Pse,zeetrf:Rse,ZeroWidthSpace:$se,Zeta:Ise,zeta:Dse,zfr:zse,Zfr:Fse,ZHcy:Hse,zhcy:Bse,zigrarr:Wse,zopf:qse,Zopf:jse,Zscr:Use,zscr:Vse,zwj:Gse,zwnj:Kse},Xse="Á",Yse="á",Zse="Â",Jse="â",Qse="´",ele="Æ",tle="æ",nle="À",rle="à",ile="&",ole="&",sle="Å",lle="å",ale="Ã",cle="ã",ule="Ä",fle="ä",dle="¦",hle="Ç",ple="ç",gle="¸",mle="¢",vle="©",yle="©",ble="¤",wle="°",xle="÷",kle="É",Sle="é",_le="Ê",Tle="ê",Cle="È",Ele="è",Ale="Ð",Lle="ð",Mle="Ë",Nle="ë",Ole="½",Ple="¼",Rle="¾",$le=">",Ile=">",Dle="Í",zle="í",Fle="Î",Hle="î",Ble="¡",Wle="Ì",qle="ì",jle="¿",Ule="Ï",Vle="ï",Gle="«",Kle="<",Xle="<",Yle="¯",Zle="µ",Jle="·",Qle=" ",eae="¬",tae="Ñ",nae="ñ",rae="Ó",iae="ó",oae="Ô",sae="ô",lae="Ò",aae="ò",cae="ª",uae="º",fae="Ø",dae="ø",hae="Õ",pae="õ",gae="Ö",mae="ö",vae="¶",yae="±",bae="£",wae='"',xae='"',kae="»",Sae="®",_ae="®",Tae="§",Cae="­",Eae="¹",Aae="²",Lae="³",Mae="ß",Nae="Þ",Oae="þ",Pae="×",Rae="Ú",$ae="ú",Iae="Û",Dae="û",zae="Ù",Fae="ù",Hae="¨",Bae="Ü",Wae="ü",qae="Ý",jae="ý",Uae="¥",Vae="ÿ",Gae={Aacute:Xse,aacute:Yse,Acirc:Zse,acirc:Jse,acute:Qse,AElig:ele,aelig:tle,Agrave:nle,agrave:rle,amp:ile,AMP:ole,Aring:sle,aring:lle,Atilde:ale,atilde:cle,Auml:ule,auml:fle,brvbar:dle,Ccedil:hle,ccedil:ple,cedil:gle,cent:mle,copy:vle,COPY:yle,curren:ble,deg:wle,divide:xle,Eacute:kle,eacute:Sle,Ecirc:_le,ecirc:Tle,Egrave:Cle,egrave:Ele,ETH:Ale,eth:Lle,Euml:Mle,euml:Nle,frac12:Ole,frac14:Ple,frac34:Rle,gt:$le,GT:Ile,Iacute:Dle,iacute:zle,Icirc:Fle,icirc:Hle,iexcl:Ble,Igrave:Wle,igrave:qle,iquest:jle,Iuml:Ule,iuml:Vle,laquo:Gle,lt:Kle,LT:Xle,macr:Yle,micro:Zle,middot:Jle,nbsp:Qle,not:eae,Ntilde:tae,ntilde:nae,Oacute:rae,oacute:iae,Ocirc:oae,ocirc:sae,Ograve:lae,ograve:aae,ordf:cae,ordm:uae,Oslash:fae,oslash:dae,Otilde:hae,otilde:pae,Ouml:gae,ouml:mae,para:vae,plusmn:yae,pound:bae,quot:wae,QUOT:xae,raquo:kae,reg:Sae,REG:_ae,sect:Tae,shy:Cae,sup1:Eae,sup2:Aae,sup3:Lae,szlig:Mae,THORN:Nae,thorn:Oae,times:Pae,Uacute:Rae,uacute:$ae,Ucirc:Iae,ucirc:Dae,Ugrave:zae,ugrave:Fae,uml:Hae,Uuml:Bae,uuml:Wae,Yacute:qae,yacute:jae,yen:Uae,yuml:Vae},Kae="&",Xae="'",Yae=">",Zae="<",Jae='"',ux={amp:Kae,apos:Xae,gt:Yae,lt:Zae,quot:Jae};var Ts={};const Qae={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 fy;function ece(){if(fy)return Ts;fy=1;var e=Ts&&Ts.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ts,"__esModule",{value:!0});var t=e(Qae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return Ts.default=o,Ts}var dy;function hy(){if(dy)return Er;dy=1;var e=Er&&Er.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Er,"__esModule",{value:!0}),Er.decodeHTML=Er.decodeHTMLStrict=Er.decodeXML=void 0;var t=e(cx),r=e(Gae),o=e(ux),s=e(ece()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Er.decodeXML=f(o.default),Er.decodeHTMLStrict=f(t.default);function f(p){var g=h(p);return function(v){return String(v).replace(c,g)}}var d=function(p,g){return p1?g(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,R){return function(I){return I.replace(R,function(_){return M[_]}).replace(p,v)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(M){return M.replace(w,v)}Ln.escape=E;function L(M){return M.replace(o,v)}Ln.escapeUTF8=L;function P(M){return function(R){return R.replace(w,function(I){return M[I]||v(I)})}}return Ln}var my;function tce(){return my||(my=1,(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=hy(),r=gy();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=gy();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=hy();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Ad)),Ad}var Ld,vy;function nce(){if(vy)return Ld;vy=1;function e(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function t(N,O){for(var C=0;C=N.length?{done:!0}:{done:!1,value:N[k++]}},e:function(Be){throw Be},f:z}}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 B=!0,ce=!1,be;return{s:function(){C=C.call(N)},n:function(){var Be=C.next();return B=Be.done,Be},e:function(Be){ce=!0,be=Be},f:function(){try{!B&&C.return!=null&&C.return()}finally{if(ce)throw be}}}}function s(N,O){if(N){if(typeof N=="string")return c(N,O);var C=Object.prototype.toString.call(N).slice(8,-1);if(C==="Object"&&N.constructor&&(C=N.constructor.name),C==="Map"||C==="Set")return Array.from(N);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(N,O)}}function c(N,O){(O==null||O>N.length)&&(O=N.length);for(var C=0,k=new Array(O);C0?N*40+55:0,ce=O>0?O*40+55:0,be=C>0?C*40+55:0;k[z]=v([B,ce,be])}function g(N){for(var O=N.toString(16);O.length<2;)O="0"+O;return O}function v(N){var O=[],C=o(N),k;try{for(C.s();!(k=C.n()).done;){var z=k.value;O.push(g(z))}}catch(B){C.e(B)}finally{C.f()}return"#"+O.join("")}function b(N,O,C,k){var z;return O==="text"?z=I(C,k):O==="display"?z=E(N,C,k):O==="xterm256Foreground"?z=W(N,k.colors[C]):O==="xterm256Background"?z=ne(N,k.colors[C]):O==="rgb"&&(z=w(N,C)),z}function w(N,O){O=O.substring(2).slice(0,-1);var C=+O.substr(0,2),k=O.substring(5).split(";"),z=k.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return $(N,(C===38?"color:#":"background-color:#")+z)}function E(N,O,C){O=parseInt(O,10);var k={"-1":function(){return"
"},0:function(){return N.length&&L(N)},1:function(){return _(N,"b")},3:function(){return _(N,"i")},4:function(){return _(N,"u")},8:function(){return $(N,"display:none")},9:function(){return _(N,"strike")},22:function(){return $(N,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee(N,"i")},24:function(){return ee(N,"u")},39:function(){return W(N,C.fg)},49:function(){return ne(N,C.bg)},53:function(){return $(N,"text-decoration:overline")}},z;return k[O]?z=k[O]():4"}).join("")}function P(N,O){for(var C=[],k=N;k<=O;k++)C.push(k);return C}function M(N){return function(O){return(N===null||O.category!==N)&&N!=="all"}}function R(N){N=parseInt(N,10);var O=null;return N===0?O="all":N===1?O="bold":2")}function $(N,O){return _(N,"span",O)}function W(N,O){return _(N,"span","color:"+O)}function ne(N,O){return _(N,"span","background-color:"+O)}function ee(N,O){var C;if(N.slice(-1)[0]===O&&(C=N.pop()),C)return""}function Z(N,O,C){var k=!1,z=3;function B(){return""}function ce(q,Q){return C("xterm256Foreground",Q),""}function be(q,Q){return C("xterm256Background",Q),""}function Se(q){return O.newline?C("display",-1):C("text",q),""}function Be(q,Q){k=!0,Q.trim().length===0&&(Q="0"),Q=Q.trimRight(";").split(";");var he=o(Q),de;try{for(he.s();!(de=he.n()).done;){var ge=de.value;C("display",ge)}}catch(Ce){he.e(Ce)}finally{he.f()}return""}function Ae(q){return C("text",q),""}function Ke(q){return C("rgb",q),""}var je=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ce},{pattern:/^\x1b\[48;5;(\d+)m/,sub:be},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ae}];function Fe(q,Q){Q>z&&k||(k=!1,N=N.replace(q.pattern,q.sub))}var Pe=[],F=N,Y=F.length;e:for(;Y>0;){for(var re=0,le=0,ae=je.length;le/g,">").replace(/"/g,""").replace(/'/g,"'")}function oce(e,t){return t&&e.endsWith(t)}async function bp(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function wp(e){return new ice({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function sce(e){return e===null||typeof e!="function"&&typeof e!="object"}function fx(e){let t=e;if(sce(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=wA(t.stack||"",{ignoreStackEntries:[]}),t}function lce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`${t.name}: ${e.toHtml(oa(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(oa(t.stack)):r=`${t.name}: ${t.message}${e.toHtml(oa(t.stack))}`),r.length>0?r:null}function dx(e,t){const r=wp(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>lce(r,f)).filter(f=>f!=null).join("

");return c?.length&&(s.htmlError=c),o})}const Wa=jE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),po=Yo(Wa,"file"),hn=Yo(Wa,"view"),hx=Yo(Wa,"line"),px=Yo(Wa,"column"),Bs=Yo(Wa,"test");var yy={exports:{}},by;function xp(){return by||(by=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function A(Zt){return{type:Zt,style:"keyword"}}var U=A("keyword a"),me=A("keyword b"),_e=A("keyword c"),fe=A("keyword d"),Ie=A("operator"),pt={type:"atom",style:"atom"};return{if:A("if"),while:U,with:U,else:me,do:me,try:me,finally:me,return:fe,break:fe,continue:fe,new:A("new"),delete:_e,void:_e,throw:_e,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:Ie,typeof:Ie,instanceof:Ie,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:A("this"),class:A("class"),super:A("atom"),yield:_e,export:A("export"),import:A("import"),extends:_e,await:_e}})(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(A){for(var U=!1,me,_e=!1;(me=A.next())!=null;){if(!U){if(me=="/"&&!_e)return;me=="["?_e=!0:_e&&me=="]"&&(_e=!1)}U=!U&&me=="\\"}}var P,M;function R(A,U,me){return P=A,M=me,U}function I(A,U){var me=A.next();if(me=='"'||me=="'")return U.tokenize=_(me),U.tokenize(A,U);if(me=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(me=="."&&A.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(me))return R(me);if(me=="="&&A.eat(">"))return R("=>","operator");if(me=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(me))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(me=="/")return A.eat("*")?(U.tokenize=$,$(A,U)):A.eat("/")?(A.skipToEnd(),R("comment","comment")):Qn(A,U,1)?(L(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(A.eat("="),R("operator","operator",A.current()));if(me=="`")return U.tokenize=W,W(A,U);if(me=="#"&&A.peek()=="!")return A.skipToEnd(),R("meta","meta");if(me=="#"&&A.eatWhile(v))return R("variable","property");if(me=="<"&&A.match("!--")||me=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),R("comment","comment");if(w.test(me))return(me!=">"||!U.lexical||U.lexical.type!=">")&&(A.eat("=")?(me=="!"||me=="=")&&A.eat("="):/[<>*+\-|&?]/.test(me)&&(A.eat(me),me==">"&&A.eat(me))),me=="?"&&A.eat(".")?R("."):R("operator","operator",A.current());if(v.test(me)){A.eatWhile(v);var _e=A.current();if(U.lastType!="."){if(b.propertyIsEnumerable(_e)){var fe=b[_e];return R(fe.type,fe.style,_e)}if(_e=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",_e)}return R("variable","variable",_e)}}function _(A){return function(U,me){var _e=!1,fe;if(d&&U.peek()=="@"&&U.match(E))return me.tokenize=I,R("jsonld-keyword","meta");for(;(fe=U.next())!=null&&!(fe==A&&!_e);)_e=!_e&&fe=="\\";return _e||(me.tokenize=I),R("string","string")}}function $(A,U){for(var me=!1,_e;_e=A.next();){if(_e=="/"&&me){U.tokenize=I;break}me=_e=="*"}return R("comment","comment")}function W(A,U){for(var me=!1,_e;(_e=A.next())!=null;){if(!me&&(_e=="`"||_e=="$"&&A.eat("{"))){U.tokenize=I;break}me=!me&&_e=="\\"}return R("quasi","string-2",A.current())}var ne="([{}])";function ee(A,U){U.fatArrowAt&&(U.fatArrowAt=null);var me=A.string.indexOf("=>",A.start);if(!(me<0)){if(g){var _e=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,me));_e&&(me=_e.index)}for(var fe=0,Ie=!1,pt=me-1;pt>=0;--pt){var Zt=A.string.charAt(pt),Sn=ne.indexOf(Zt);if(Sn>=0&&Sn<3){if(!fe){++pt;break}if(--fe==0){Zt=="("&&(Ie=!0);break}}else if(Sn>=3&&Sn<6)++fe;else if(v.test(Zt))Ie=!0;else if(/["'\/`]/.test(Zt))for(;;--pt){if(pt==0)return;var is=A.string.charAt(pt-1);if(is==Zt&&A.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ie&&!fe){++pt;break}}Ie&&!fe&&(U.fatArrowAt=pt)}}var Z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(A,U,me,_e,fe,Ie){this.indented=A,this.column=U,this.type=me,this.prev=fe,this.info=Ie,_e!=null&&(this.align=_e)}function j(A,U){if(!p)return!1;for(var me=A.localVars;me;me=me.next)if(me.name==U)return!0;for(var _e=A.context;_e;_e=_e.prev)for(var me=_e.vars;me;me=me.next)if(me.name==U)return!0}function N(A,U,me,_e,fe){var Ie=A.cc;for(O.state=A,O.stream=fe,O.marked=null,O.cc=Ie,O.style=U,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var pt=Ie.length?Ie.pop():h?ae:re;if(pt(me,_e)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:me=="variable"&&j(A,_e)?"variable-2":U}}}var O={state:null,marked:null,cc:null};function C(){for(var A=arguments.length-1;A>=0;A--)O.cc.push(arguments[A])}function k(){return C.apply(null,arguments),!0}function z(A,U){for(var me=U;me;me=me.next)if(me.name==A)return!0;return!1}function B(A){var U=O.state;if(O.marked="def",!!p){if(U.context){if(U.lexical.info=="var"&&U.context&&U.context.block){var me=ce(A,U.context);if(me!=null){U.context=me;return}}else if(!z(A,U.localVars)){U.localVars=new Be(A,U.localVars);return}}s.globalVars&&!z(A,U.globalVars)&&(U.globalVars=new Be(A,U.globalVars))}}function ce(A,U){if(U)if(U.block){var me=ce(A,U.prev);return me?me==U.prev?U:new Se(me,U.vars,!0):null}else return z(A,U.vars)?U:new Se(U.prev,new Be(A,U.vars),!1);else return null}function be(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function Se(A,U,me){this.prev=A,this.vars=U,this.block=me}function Be(A,U){this.name=A,this.next=U}var Ae=new Be("this",new Be("arguments",null));function Ke(){O.state.context=new Se(O.state.context,O.state.localVars,!1),O.state.localVars=Ae}function je(){O.state.context=new Se(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ke.lex=je.lex=!0;function Fe(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Fe.lex=!0;function Pe(A,U){var me=function(){var _e=O.state,fe=_e.indented;if(_e.lexical.type=="stat")fe=_e.lexical.indented;else for(var Ie=_e.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;_e.lexical=new G(fe,O.stream.column(),A,null,_e.lexical,U)};return me.lex=!0,me}function F(){var A=O.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}F.lex=!0;function Y(A){function U(me){return me==A?k():A==";"||me=="}"||me==")"||me=="]"?C():k(U)}return U}function re(A,U){return A=="var"?k(Pe("vardef",U),Zo,Y(";"),F):A=="keyword a"?k(Pe("form"),q,re,F):A=="keyword b"?k(Pe("form"),re,F):A=="keyword d"?O.stream.match(/^\s*$/,!1)?k():k(Pe("stat"),he,Y(";"),F):A=="debugger"?k(Y(";")):A=="{"?k(Pe("}"),je,jt,F,Fe):A==";"?k():A=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==F&&O.state.cc.pop()(),k(Pe("form"),q,re,F,Jo)):A=="function"?k(cr):A=="for"?k(Pe("form"),je,Ga,re,Fe,F):A=="class"||g&&U=="interface"?(O.marked="keyword",k(Pe("form",A=="class"?A:U),Qo,F)):A=="variable"?g&&U=="declare"?(O.marked="keyword",k(re)):g&&(U=="module"||U=="enum"||U=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",U=="enum"?k(qe):U=="type"?k(Ka,Y("operator"),lt,Y(";")):k(Pe("form"),kn,Y("{"),Pe("}"),jt,F,F)):g&&U=="namespace"?(O.marked="keyword",k(Pe("form"),ae,re,F)):g&&U=="abstract"?(O.marked="keyword",k(re)):k(Pe("stat"),$e):A=="switch"?k(Pe("form"),q,Y("{"),Pe("}","switch"),je,jt,F,F,Fe):A=="case"?k(ae,Y(":")):A=="default"?k(Y(":")):A=="catch"?k(Pe("form"),Ke,le,re,F,Fe):A=="export"?k(Pe("stat"),es,F):A=="import"?k(Pe("stat"),$i,F):A=="async"?k(re):U=="@"?k(ae,re):C(Pe("stat"),ae,Y(";"),F)}function le(A){if(A=="(")return k(wr,Y(")"))}function ae(A,U){return Q(A,U,!1)}function D(A,U){return Q(A,U,!0)}function q(A){return A!="("?C():k(Pe(")"),he,Y(")"),F)}function Q(A,U,me){if(O.state.fatArrowAt==O.stream.start){var _e=me?ye:xe;if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Y("=>"),_e,Fe);if(A=="variable")return C(Ke,kn,Y("=>"),_e,Fe)}var fe=me?ge:de;return Z.hasOwnProperty(A)?k(fe):A=="function"?k(cr,fe):A=="class"||g&&U=="interface"?(O.marked="keyword",k(Pe("form"),vf,F)):A=="keyword c"||A=="async"?k(me?D:ae):A=="("?k(Pe(")"),he,Y(")"),F,fe):A=="operator"||A=="spread"?k(me?D:ae):A=="["?k(Pe("]"),$t,F,fe):A=="{"?Yt(ct,"}",null,fe):A=="quasi"?C(Ce,fe):A=="new"?k(J(me)):k()}function he(A){return A.match(/[;\}\)\],]/)?C():C(ae)}function de(A,U){return A==","?k(he):ge(A,U,!1)}function ge(A,U,me){var _e=me==!1?de:ge,fe=me==!1?ae:D;if(A=="=>")return k(Ke,me?ye:xe,Fe);if(A=="operator")return/\+\+|--/.test(U)||g&&U=="!"?k(_e):g&&U=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Pe(">"),ut(lt,">"),F,_e):U=="?"?k(ae,Y(":"),fe):k(fe);if(A=="quasi")return C(Ce,_e);if(A!=";"){if(A=="(")return Yt(D,")","call",_e);if(A==".")return k(Je,_e);if(A=="[")return k(Pe("]"),he,Y("]"),F,_e);if(g&&U=="as")return O.marked="keyword",k(lt,_e);if(A=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),k(fe)}}function Ce(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(Ce):k(he,Ee)}function Ee(A){if(A=="}")return O.marked="string-2",O.state.tokenize=W,k(Ce)}function xe(A){return ee(O.stream,O.state),C(A=="{"?re:ae)}function ye(A){return ee(O.stream,O.state),C(A=="{"?re:D)}function J(A){return function(U){return U=="."?k(A?oe:ue):U=="variable"&&g?k(Bn,A?ge:de):C(A?D:ae)}}function ue(A,U){if(U=="target")return O.marked="keyword",k(de)}function oe(A,U){if(U=="target")return O.marked="keyword",k(ge)}function $e(A){return A==":"?k(F,re):C(de,Y(";"),F)}function Je(A){if(A=="variable")return O.marked="property",k()}function ct(A,U){if(A=="async")return O.marked="property",k(ct);if(A=="variable"||O.style=="keyword"){if(O.marked="property",U=="get"||U=="set")return k(dt);var me;return g&&O.state.fatArrowAt==O.stream.start&&(me=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+me[0].length),k(Nt)}else{if(A=="number"||A=="string")return O.marked=d?"property":O.style+" property",k(Nt);if(A=="jsonld-keyword")return k(Nt);if(g&&be(U))return O.marked="keyword",k(ct);if(A=="[")return k(ae,Fn,Y("]"),Nt);if(A=="spread")return k(D,Nt);if(U=="*")return O.marked="keyword",k(ct);if(A==":")return C(Nt)}}function dt(A){return A!="variable"?C(Nt):(O.marked="property",k(cr))}function Nt(A){if(A==":")return k(D);if(A=="(")return C(cr)}function ut(A,U,me){function _e(fe,Ie){if(me?me.indexOf(fe)>-1:fe==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),k(function(Zt,Sn){return Zt==U||Sn==U?C():C(A)},_e)}return fe==U||Ie==U?k():me&&me.indexOf(";")>-1?C(A):k(Y(U))}return function(fe,Ie){return fe==U||Ie==U?k():C(A,_e)}}function Yt(A,U,me){for(var _e=3;_e"),lt);if(A=="quasi")return C(an,ar)}function yo(A){if(A=="=>")return k(lt)}function Xe(A){return A.match(/[\}\)\]]/)?k():A==","||A==";"?k(Xe):C(ri,Xe)}function ri(A,U){if(A=="variable"||O.style=="keyword")return O.marked="property",k(ri);if(U=="?"||A=="number"||A=="string")return k(ri);if(A==":")return k(lt);if(A=="[")return k(Y("variable"),Hr,Y("]"),ri);if(A=="(")return C(Ri,ri);if(!A.match(/[;\}\)\],]/))return k()}function an(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(an):k(lt,Pt)}function Pt(A){if(A=="}")return O.marked="string-2",O.state.tokenize=W,k(an)}function Rt(A,U){return A=="variable"&&O.stream.match(/^\s*[?:]/,!1)||U=="?"?k(Rt):A==":"?k(lt):A=="spread"?k(Rt):C(lt)}function ar(A,U){if(U=="<")return k(Pe(">"),ut(lt,">"),F,ar);if(U=="|"||A=="."||U=="&")return k(lt);if(A=="[")return k(lt,Y("]"),ar);if(U=="extends"||U=="implements")return O.marked="keyword",k(lt);if(U=="?")return k(lt,Y(":"),lt)}function Bn(A,U){if(U=="<")return k(Pe(">"),ut(lt,">"),F,ar)}function yr(){return C(lt,cn)}function cn(A,U){if(U=="=")return k(lt)}function Zo(A,U){return U=="enum"?(O.marked="keyword",k(qe)):C(kn,Fn,br,mf)}function kn(A,U){if(g&&be(U))return O.marked="keyword",k(kn);if(A=="variable")return B(U),k();if(A=="spread")return k(kn);if(A=="[")return Yt(sl,"]");if(A=="{")return Yt(Oi,"}")}function Oi(A,U){return A=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(U),k(br)):(A=="variable"&&(O.marked="property"),A=="spread"?k(kn):A=="}"?C():A=="["?k(ae,Y("]"),Y(":"),Oi):k(Y(":"),kn,br))}function sl(){return C(kn,br)}function br(A,U){if(U=="=")return k(D)}function mf(A){if(A==",")return k(Zo)}function Jo(A,U){if(A=="keyword b"&&U=="else")return k(Pe("form","else"),re,F)}function Ga(A,U){if(U=="await")return k(Ga);if(A=="(")return k(Pe(")"),ll,F)}function ll(A){return A=="var"?k(Zo,Pi):A=="variable"?k(Pi):C(Pi)}function Pi(A,U){return A==")"?k():A==";"?k(Pi):U=="in"||U=="of"?(O.marked="keyword",k(ae,Pi)):C(ae,Pi)}function cr(A,U){if(U=="*")return O.marked="keyword",k(cr);if(A=="variable")return B(U),k(cr);if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Bt,re,Fe);if(g&&U=="<")return k(Pe(">"),ut(yr,">"),F,cr)}function Ri(A,U){if(U=="*")return O.marked="keyword",k(Ri);if(A=="variable")return B(U),k(Ri);if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Bt,Fe);if(g&&U=="<")return k(Pe(">"),ut(yr,">"),F,Ri)}function Ka(A,U){if(A=="keyword"||A=="variable")return O.marked="type",k(Ka);if(U=="<")return k(Pe(">"),ut(yr,">"),F)}function wr(A,U){return U=="@"&&k(ae,wr),A=="spread"?k(wr):g&&be(U)?(O.marked="keyword",k(wr)):g&&A=="this"?k(Fn,br):C(kn,Fn,br)}function vf(A,U){return A=="variable"?Qo(A,U):xr(A,U)}function Qo(A,U){if(A=="variable")return B(U),k(xr)}function xr(A,U){if(U=="<")return k(Pe(">"),ut(yr,">"),F,xr);if(U=="extends"||U=="implements"||g&&A==",")return U=="implements"&&(O.marked="keyword"),k(g?lt:ae,xr);if(A=="{")return k(Pe("}"),kr,F)}function kr(A,U){if(A=="async"||A=="variable"&&(U=="static"||U=="get"||U=="set"||g&&be(U))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",k(kr);if(A=="variable"||O.style=="keyword")return O.marked="property",k(bo,kr);if(A=="number"||A=="string")return k(bo,kr);if(A=="[")return k(ae,Fn,Y("]"),bo,kr);if(U=="*")return O.marked="keyword",k(kr);if(g&&A=="(")return C(Ri,kr);if(A==";"||A==",")return k(kr);if(A=="}")return k();if(U=="@")return k(ae,kr)}function bo(A,U){if(U=="!"||U=="?")return k(bo);if(A==":")return k(lt,br);if(U=="=")return k(D);var me=O.state.lexical.prev,_e=me&&me.info=="interface";return C(_e?Ri:cr)}function es(A,U){return U=="*"?(O.marked="keyword",k(rs,Y(";"))):U=="default"?(O.marked="keyword",k(ae,Y(";"))):A=="{"?k(ut(ts,"}"),rs,Y(";")):C(re)}function ts(A,U){if(U=="as")return O.marked="keyword",k(Y("variable"));if(A=="variable")return C(D,ts)}function $i(A){return A=="string"?k():A=="("?C(ae):A=="."?C(de):C(ns,Br,rs)}function ns(A,U){return A=="{"?Yt(ns,"}"):(A=="variable"&&B(U),U=="*"&&(O.marked="keyword"),k(al))}function Br(A){if(A==",")return k(ns,Br)}function al(A,U){if(U=="as")return O.marked="keyword",k(ns)}function rs(A,U){if(U=="from")return O.marked="keyword",k(ae)}function $t(A){return A=="]"?k():C(ut(D,"]"))}function qe(){return C(Pe("form"),kn,Y("{"),Pe("}"),ut(ii,"}"),F,F)}function ii(){return C(kn,br)}function cl(A,U){return A.lastType=="operator"||A.lastType==","||w.test(U.charAt(0))||/[,.]/.test(U.charAt(0))}function Qn(A,U,me){return U.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(U.lastType)||U.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(me||0)))}return{startState:function(A){var U={tokenize:I,lastType:"sof",cc:[],lexical:new G((A||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:A||0};return s.globalVars&&typeof s.globalVars=="object"&&(U.globalVars=s.globalVars),U},token:function(A,U){if(A.sol()&&(U.lexical.hasOwnProperty("align")||(U.lexical.align=!1),U.indented=A.indentation(),ee(A,U)),U.tokenize!=$&&A.eatSpace())return null;var me=U.tokenize(A,U);return P=="comment"?me:(U.lastType=P=="operator"&&(M=="++"||M=="--")?"incdec":P,N(U,me,P,M,A))},indent:function(A,U){if(A.tokenize==$||A.tokenize==W)return r.Pass;if(A.tokenize!=I)return 0;var me=U&&U.charAt(0),_e=A.lexical,fe;if(!/^\s*else\b/.test(U))for(var Ie=A.cc.length-1;Ie>=0;--Ie){var pt=A.cc[Ie];if(pt==F)_e=_e.prev;else if(pt!=Jo&&pt!=Fe)break}for(;(_e.type=="stat"||_e.type=="form")&&(me=="}"||(fe=A.cc[A.cc.length-1])&&(fe==de||fe==ge)&&!/^[,\.=+\-*:?[\(]/.test(U));)_e=_e.prev;f&&_e.type==")"&&_e.prev.type=="stat"&&(_e=_e.prev);var Zt=_e.type,Sn=me==Zt;return Zt=="vardef"?_e.indented+(A.lastType=="operator"||A.lastType==","?_e.info.length+1:0):Zt=="form"&&me=="{"?_e.indented:Zt=="form"?_e.indented+c:Zt=="stat"?_e.indented+(cl(A,U)?f||c:0):_e.info=="switch"&&!Sn&&s.doubleIndentSwitch!=!1?_e.indented+(/^(?:case|default)\b/.test(U)?c:2*c):_e.align?_e.column+(Sn?0:1):_e.indented+(Sn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Qn,skipExpression:function(A){N(A,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),yy.exports}xp();var wy={exports:{}},xy;function kp(){return xy||(xy=1,(function(e,t){(function(r){r(vo())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var g in p)h[g]=p[g];for(var g in f)h[g]=f[g];var v,b;function w(k,z){function B(Se){return z.tokenize=Se,Se(k,z)}var ce=k.next();if(ce=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(P("atom","]]>")):null:k.match("--")?B(P("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(M(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),z.tokenize=P("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",z.tokenize=E,"tag bracket");if(ce=="&"){var be;return k.eat("#")?k.eat("x")?be=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):be=k.eatWhile(/[\d]/)&&k.eat(";"):be=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),be?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function E(k,z){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return z.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){z.tokenize=w,z.state=W,z.tagName=z.tagStart=null;var ce=z.tokenize(k,z);return ce?ce+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=L(B),z.stringStartCol=k.column(),z.tokenize(k,z)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(k){var z=function(B,ce){for(;!B.eol();)if(B.next()==k){ce.tokenize=E;break}return"string"};return z.isInAttribute=!0,z}function P(k,z){return function(B,ce){for(;!B.eol();){if(B.match(z)){ce.tokenize=w;break}B.next()}return k}}function M(k){return function(z,B){for(var ce;(ce=z.next())!=null;){if(ce=="<")return B.tokenize=M(k+1),B.tokenize(z,B);if(ce==">")if(k==1){B.tokenize=w;break}else return B.tokenize=M(k-1),B.tokenize(z,B)}return"meta"}}function R(k){return k&&k.toLowerCase()}function I(k,z,B){this.prev=k.context,this.tagName=z||"",this.indent=k.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(z)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function _(k){k.context&&(k.context=k.context.prev)}function $(k,z){for(var B;;){if(!k.context||(B=k.context.tagName,!h.contextGrabbers.hasOwnProperty(R(B))||!h.contextGrabbers[R(B)].hasOwnProperty(R(z))))return;_(k)}}function W(k,z,B){return k=="openTag"?(B.tagStart=z.column(),ne):k=="closeTag"?ee:W}function ne(k,z,B){return k=="word"?(B.tagName=z.current(),b="tag",j):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",j(k,z,B)):(b="error",ne)}function ee(k,z,B){if(k=="word"){var ce=z.current();return B.context&&B.context.tagName!=ce&&h.implicitlyClosed.hasOwnProperty(R(B.context.tagName))&&_(B),B.context&&B.context.tagName==ce||h.matchClosing===!1?(b="tag",Z):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Z(k,z,B)):(b="error",G)}function Z(k,z,B){return k!="endTag"?(b="error",Z):(_(B),W)}function G(k,z,B){return b="error",Z(k,z,B)}function j(k,z,B){if(k=="word")return b="attribute",N;if(k=="endTag"||k=="selfcloseTag"){var ce=B.tagName,be=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(ce))?$(B,ce):($(B,ce),B.context=new I(B,ce,be==B.indented)),W}return b="error",j}function N(k,z,B){return k=="equals"?O:(h.allowMissing||(b="error"),j(k,z,B))}function O(k,z,B){return k=="string"?C:k=="word"&&h.allowUnquoted?(b="string",j):(b="error",j(k,z,B))}function C(k,z,B){return k=="string"?C:j(k,z,B)}return{startState:function(k){var z={tokenize:w,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(z.baseIndent=k),z},token:function(k,z){if(!z.tagName&&k.sol()&&(z.indented=k.indentation()),k.eatSpace())return null;v=null;var B=z.tokenize(k,z);return(B||v)&&B!="comment"&&(b=null,z.state=z.state(v||B,k,z),b&&(B=b=="error"?B+" error":b)),B},indent:function(k,z,B){var ce=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ce&&ce.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/$/,blockCommentStart:"",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==O&&(k.state=j)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var z=[],B=k.context;B;B=B.prev)z.push(B.tagName);return z.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),wy.exports}kp();var ky={exports:{}},Sy={exports:{}},_y;function ace(){return _y||(_y=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineMode("css",function(G,j){var N=j.inline;j.propertyKeywords||(j=r.resolveMode("text/css"));var O=G.indentUnit,C=j.tokenHooks,k=j.documentTypes||{},z=j.mediaTypes||{},B=j.mediaFeatures||{},ce=j.mediaValueKeywords||{},be=j.propertyKeywords||{},Se=j.nonStandardPropertyKeywords||{},Be=j.fontProperties||{},Ae=j.counterDescriptors||{},Ke=j.colorKeywords||{},je=j.valueKeywords||{},Fe=j.allowNested,Pe=j.lineComment,F=j.supportsAtComponent===!0,Y=G.highlightNonStandardPropertyKeywords!==!1,re,le;function ae(J,ue){return re=ue,J}function D(J,ue){var oe=J.next();if(C[oe]){var $e=C[oe](J,ue);if($e!==!1)return $e}if(oe=="@")return J.eatWhile(/[\w\\\-]/),ae("def",J.current());if(oe=="="||(oe=="~"||oe=="|")&&J.eat("="))return ae(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=q(oe),ue.tokenize(J,ue);if(oe=="#")return J.eatWhile(/[\w\\\-]/),ae("atom","hash");if(oe=="!")return J.match(/^\s*\w*/),ae("keyword","important");if(/\d/.test(oe)||oe=="."&&J.eat(/\d/))return J.eatWhile(/[\w.%]/),ae("number","unit");if(oe==="-"){if(/[\d.]/.test(J.peek()))return J.eatWhile(/[\w.%]/),ae("number","unit");if(J.match(/^-[\w\\\-]*/))return J.eatWhile(/[\w\\\-]/),J.match(/^\s*:/,!1)?ae("variable-2","variable-definition"):ae("variable-2","variable");if(J.match(/^\w+-/))return ae("meta","meta")}else return/[,+>*\/]/.test(oe)?ae(null,"select-op"):oe=="."&&J.match(/^-?[_a-z][_a-z0-9-]*/i)?ae("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ae(null,oe):J.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(J.current())&&(ue.tokenize=Q),ae("variable callee","variable")):/[\w\\\-]/.test(oe)?(J.eatWhile(/[\w\\\-]/),ae("property","word")):ae(null,null)}function q(J){return function(ue,oe){for(var $e=!1,Je;(Je=ue.next())!=null;){if(Je==J&&!$e){J==")"&&ue.backUp(1);break}$e=!$e&&Je=="\\"}return(Je==J||!$e&&J!=")")&&(oe.tokenize=null),ae("string","string")}}function Q(J,ue){return J.next(),J.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=q(")"),ae(null,"(")}function he(J,ue,oe){this.type=J,this.indent=ue,this.prev=oe}function de(J,ue,oe,$e){return J.context=new he(oe,ue.indentation()+($e===!1?0:O),J.context),oe}function ge(J){return J.context.prev&&(J.context=J.context.prev),J.context.type}function Ce(J,ue,oe){return ye[oe.context.type](J,ue,oe)}function Ee(J,ue,oe,$e){for(var Je=$e||1;Je>0;Je--)oe.context=oe.context.prev;return Ce(J,ue,oe)}function xe(J){var ue=J.current().toLowerCase();je.hasOwnProperty(ue)?le="atom":Ke.hasOwnProperty(ue)?le="keyword":le="variable"}var ye={};return ye.top=function(J,ue,oe){if(J=="{")return de(oe,ue,"block");if(J=="}"&&oe.context.prev)return ge(oe);if(F&&/@component/i.test(J))return de(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(J))return de(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(J))return de(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(J))return oe.stateArg=J,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(J))return"keyframes";if(J&&J.charAt(0)=="@")return de(oe,ue,"at");if(J=="hash")le="builtin";else if(J=="word")le="tag";else{if(J=="variable-definition")return"maybeprop";if(J=="interpolation")return de(oe,ue,"interpolation");if(J==":")return"pseudo";if(Fe&&J=="(")return de(oe,ue,"parens")}return oe.context.type},ye.block=function(J,ue,oe){if(J=="word"){var $e=ue.current().toLowerCase();return be.hasOwnProperty($e)?(le="property","maybeprop"):Se.hasOwnProperty($e)?(le=Y?"string-2":"property","maybeprop"):Fe?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return J=="meta"?"block":!Fe&&(J=="hash"||J=="qualifier")?(le="error","block"):ye.top(J,ue,oe)},ye.maybeprop=function(J,ue,oe){return J==":"?de(oe,ue,"prop"):Ce(J,ue,oe)},ye.prop=function(J,ue,oe){if(J==";")return ge(oe);if(J=="{"&&Fe)return de(oe,ue,"propBlock");if(J=="}"||J=="{")return Ee(J,ue,oe);if(J=="(")return de(oe,ue,"parens");if(J=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(J=="word")xe(ue);else if(J=="interpolation")return de(oe,ue,"interpolation");return"prop"},ye.propBlock=function(J,ue,oe){return J=="}"?ge(oe):J=="word"?(le="property","maybeprop"):oe.context.type},ye.parens=function(J,ue,oe){return J=="{"||J=="}"?Ee(J,ue,oe):J==")"?ge(oe):J=="("?de(oe,ue,"parens"):J=="interpolation"?de(oe,ue,"interpolation"):(J=="word"&&xe(ue),"parens")},ye.pseudo=function(J,ue,oe){return J=="meta"?"pseudo":J=="word"?(le="variable-3",oe.context.type):Ce(J,ue,oe)},ye.documentTypes=function(J,ue,oe){return J=="word"&&k.hasOwnProperty(ue.current())?(le="tag",oe.context.type):ye.atBlock(J,ue,oe)},ye.atBlock=function(J,ue,oe){if(J=="(")return de(oe,ue,"atBlock_parens");if(J=="}"||J==";")return Ee(J,ue,oe);if(J=="{")return ge(oe)&&de(oe,ue,Fe?"block":"top");if(J=="interpolation")return de(oe,ue,"interpolation");if(J=="word"){var $e=ue.current().toLowerCase();$e=="only"||$e=="not"||$e=="and"||$e=="or"?le="keyword":z.hasOwnProperty($e)?le="attribute":B.hasOwnProperty($e)?le="property":ce.hasOwnProperty($e)?le="keyword":be.hasOwnProperty($e)?le="property":Se.hasOwnProperty($e)?le=Y?"string-2":"property":je.hasOwnProperty($e)?le="atom":Ke.hasOwnProperty($e)?le="keyword":le="error"}return oe.context.type},ye.atComponentBlock=function(J,ue,oe){return J=="}"?Ee(J,ue,oe):J=="{"?ge(oe)&&de(oe,ue,Fe?"block":"top",!1):(J=="word"&&(le="error"),oe.context.type)},ye.atBlock_parens=function(J,ue,oe){return J==")"?ge(oe):J=="{"||J=="}"?Ee(J,ue,oe,2):ye.atBlock(J,ue,oe)},ye.restricted_atBlock_before=function(J,ue,oe){return J=="{"?de(oe,ue,"restricted_atBlock"):J=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(J,ue,oe)},ye.restricted_atBlock=function(J,ue,oe){return J=="}"?(oe.stateArg=null,ge(oe)):J=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ae.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},ye.keyframes=function(J,ue,oe){return J=="word"?(le="variable","keyframes"):J=="{"?de(oe,ue,"top"):Ce(J,ue,oe)},ye.at=function(J,ue,oe){return J==";"?ge(oe):J=="{"||J=="}"?Ee(J,ue,oe):(J=="word"?le="tag":J=="hash"&&(le="builtin"),"at")},ye.interpolation=function(J,ue,oe){return J=="}"?ge(oe):J=="{"||J==";"?Ee(J,ue,oe):(J=="word"?le="variable":J!="variable"&&J!="("&&J!=")"&&(le="error"),"interpolation")},{startState:function(J){return{tokenize:null,state:N?"block":"top",stateArg:null,context:new he(N?"block":"top",J||0,null)}},token:function(J,ue){if(!ue.tokenize&&J.eatSpace())return null;var oe=(ue.tokenize||D)(J,ue);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(ue.state=ye[ue.state](re,J,ue)),le},indent:function(J,ue){var oe=J.context,$e=ue&&ue.charAt(0),Je=oe.indent;return oe.type=="prop"&&($e=="}"||$e==")")&&(oe=oe.prev),oe.prev&&($e=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,Je=oe.indent):($e==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||$e=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(Je=Math.max(0,oe.indent-O))),Je},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Pe,fold:"brace"}});function o(G){for(var j={},N=0;N-1?v.backUp(E.length-L):E.match(/<\/?$/)&&(v.backUp(E.length),v.match(b,!1)||v.match(E)),w}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var w=v.match(f(b));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"","i")}function p(v,b){for(var w in v)for(var E=b[w]||(b[w]=[]),L=v[w],P=L.length-1;P>=0;P--)E.unshift(L[P])}function g(v,b){for(var w=0;w=0;M--)E.script.unshift(["type",P[M].matches,P[M].mode]);function R(I,_){var $=w.token(I,_.htmlState),W=/\btag\b/.test($),ne;if(W&&!/[<>\s\/]/.test(I.current())&&(ne=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(ne))_.inTag=ne+" ";else if(_.inTag&&W&&/>$/.test(I.current())){var ee=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var Z=I.current()==">"&&g(E[ee[1]],ee[2]),G=r.getMode(v,Z),j=h(ee[1],!0),N=h(ee[1],!1);_.token=function(O,C){return O.match(j,!1)?(C.token=R,C.localState=C.localMode=null,null):s(O,N,C.localMode.token(O,C.localState))},_.localMode=G,_.localState=r.startState(G,w.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=I.current(),I.eol()&&(_.inTag+=" "));return $}return{startState:function(){var I=r.startState(w);return{token:R,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var _;return I.localState&&(_=r.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:_,htmlState:r.copyState(w,I.htmlState)}},token:function(I,_){return _.token(I,_)},indent:function(I,_,$){return!I.localMode||/^\s*<\//.test(_)?w.indent(I.htmlState,_,$):I.localMode.indent?I.localMode.indent(I.localState,_,$):r.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||w}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),ky.exports}cce();var Cy={exports:{}},Ey;function uce(){return Ey||(Ey=1,(function(e,t){(function(r){r(vo(),kp(),xp())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var L=d.indent(w,"","");return w.tagName=E,L}function g(w,E){return E.context.mode==d?v(w,E,E.context):b(w,E,E.context)}function v(w,E,L){if(L.depth==2)return w.match(/^.*?\*\//)?L.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(L.state);var P=p(L.state),M=L.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?P-=c.indentUnit:L.prev.state.lexical&&(P=L.prev.state.lexical.indented)}else L.depth==1&&(P+=c.indentUnit);return E.context=new o(r.startState(h,P),h,0,E.context),null}if(L.depth==1){if(w.peek()=="<")return d.skipAttribute(L.state),E.context=new o(r.startState(d,p(L.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return L.depth=2,g(w,E)}var R=d.token(w,L.state),I=w.current(),_;return/\btag\b/.test(R)?/>$/.test(I)?L.state.context?L.depth=0:E.context=E.context.prev:/^-1&&w.backUp(I.length-_),R}function b(w,E,L){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,L.state))return E.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,E.context),h.skipExpression(L.state),null;var P=h.token(w,L.state);if(!P&&L.depth!=null){var M=w.current();M=="{"?L.depth++:M=="}"&&--L.depth==0&&(E.context=E.context.prev)}return P}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,E,L){return w.context.mode.indent(w.context.state,E,L)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Cy.exports}uce();var Ay={exports:{}},Ly;function fce(){return Ly||(Ly=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineOption("placeholder","",function(p,g,v){var b=v&&v!=r.Init;if(g&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!g&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Ay.exports}fce();var My={exports:{}},Ny;function dce(){return Ny||(Ny=1,(function(e,t){(function(r){r(vo())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",w=v[b],E=p.pos;function L(){r.off(document,"mousemove",P),r.off(document,"mouseup",L)}function P(M){if(M.which!=1)return L();p.moveTo(E+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",P),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientXb.right?1:0:w=v.clientYb.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var g=this.screen*(this.size/this.total);gf.clientWidth+1,g=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(g?h:0)-f.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),My.exports}dce();const Nn=Ft();function hce(e,t,r={}){const o=NL.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Ia(()=>{Nn.value=void 0}),Uu(o)}async function gx(e){_a({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function pce(e,t){_a({file:e,column:t.column-1,line:t.line,view:"editor",test:Bs.value})}function gce(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return bp(s,r,o);_a({file:e.file.id,column:o-1,line:r,view:"editor",test:Bs.value})}const pr=Ge(),Ws=Ge(!0),go=Ge(!1),Cu=Ge(!0),Ns=ke(()=>ei.value?.coverage),mh=ke(()=>Ns.value?.enabled),Os=ke(()=>mh.value&&!!Ns.value.htmlReporter),qs=sf("vitest-ui_splitpanes-mainSizes",[33,67]),co=sf("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:qs.value[0],details:{size:qs.value[1],browser:co.value[0],main:co.value[1]}}),Oy=ke(()=>{if(Os.value){const e=Ns.value.reportsDirectory.lastIndexOf("/"),t=Ns.value.htmlReporter?.subdir;return t?`/${Ns.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${Ns.value.reportsDirectory.slice(e+1)}/index.html`}});xt(uf,e=>{Cu.value=e==="running"},{immediate:!0});function mce(){const e=po.value;if(e&&e.length>0){const t=mr(e);t?(pr.value=t,Ws.value=!1,go.value=!1):_E(()=>ft.state.getFiles(),()=>{pr.value=mr(e),Ws.value=!1,go.value=!1})}return Ws}function Eu(e){Ws.value=e,go.value=!1,e&&(pr.value=void 0,po.value="")}function _a({file:e,line:t,view:r,test:o,column:s}){po.value=e,hx.value=t,px.value=s,hn.value=r,Bs.value=o,pr.value=mr(e),Eu(!1)}function vce(e){e.type==="test"?hn.value==="editor"?gx(e):_a({file:e.file.id,line:null,column:null,view:hn.value,test:e.id}):_a({file:e.file.id,test:null,line:null,view:hn.value,column:null})}function yce(){go.value=!0,Ws.value=!1,pr.value=void 0,po.value=""}function bce(){At.details.browser=100,At.details.main=0,co.value=[100,0]}function mx(){if(Zn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function wce(){At.details.browser=mx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main]}function xce(){At.navigation=33,At.details.size=67,qs.value=[33,67]}function vx(){At.details.main!==0&&(At.details.browser=mx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main])}const kce={setCurrentFileId(e){po.value=e,pr.value=mr(e),Eu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Zn?.provider==="webdriverio"&&vx(),await new Promise(r=>requestAnimationFrame(r))}},Sce=location.port,_ce=[location.hostname,Sce].filter(Boolean).join(":"),Tce=`${location.protocol==="https:"?"wss:":"ws:"}//${_ce}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,gr=!!window.METADATA_PATH;var rr=Uint8Array,Ps=Uint16Array,Cce=Int32Array,yx=new rr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),bx=new rr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ece=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wx=function(e,t){for(var r=new Ps(31),o=0;o<31;++o)r[o]=t+=1<>1|(Lt&21845)<<1;Vi=(Vi&52428)>>2|(Vi&13107)<<2,Vi=(Vi&61680)>>4|(Vi&3855)<<4,vh[Lt]=((Vi&65280)>>8|(Vi&255)<<8)>>1}var sa=(function(e,t,r){for(var o=e.length,s=0,c=new Ps(t);s>h]=p}else for(d=new Ps(o),s=0;s>15-e[s]);return d}),qa=new rr(288);for(var Lt=0;Lt<144;++Lt)qa[Lt]=8;for(var Lt=144;Lt<256;++Lt)qa[Lt]=9;for(var Lt=256;Lt<280;++Lt)qa[Lt]=7;for(var Lt=280;Lt<288;++Lt)qa[Lt]=8;var Sx=new rr(32);for(var Lt=0;Lt<32;++Lt)Sx[Lt]=5;var Nce=sa(qa,9,1),Oce=sa(Sx,5,1),Md=function(e){for(var t=e[0],r=1;rt&&(t=e[r]);return t},Ar=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Nd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Pce=function(e){return(e+7)/8|0},_x=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new rr(e.subarray(t,r))},Rce=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Un=function(e,t,r){var o=new Error(t||Rce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Un),!r)throw o;return o},Sp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(ae){var D=r.length;if(ae>D){var q=new rr(Math.max(D*2,ae));q.set(r),r=q}},g=t.f||0,v=t.p||0,b=t.b||0,w=t.l,E=t.d,L=t.m,P=t.n,M=s*8;do{if(!w){g=Ar(e,v,1);var R=Ar(e,v+1,3);if(v+=3,R)if(R==1)w=Nce,E=Oce,L=9,P=5;else if(R==2){var W=Ar(e,v,31)+257,ne=Ar(e,v+10,15)+4,ee=W+Ar(e,v+5,31)+1;v+=14;for(var Z=new rr(ee),G=new rr(19),j=0;j>4;if(I<16)Z[j++]=I;else{var z=0,B=0;for(I==16?(B=3+Ar(e,v,3),v+=2,z=Z[j-1]):I==17?(B=3+Ar(e,v,7),v+=3):I==18&&(B=11+Ar(e,v,127),v+=7);B--;)Z[j++]=z}}var ce=Z.subarray(0,W),be=Z.subarray(W);L=Md(ce),P=Md(be),w=sa(ce,L,1),E=sa(be,P,1)}else Un(1);else{var I=Pce(v)+4,_=e[I-4]|e[I-3]<<8,$=I+_;if($>s){h&&Un(0);break}d&&p(b+_),r.set(e.subarray(I,$),b),t.b=b+=_,t.p=v=$*8,t.f=g;continue}if(v>M){h&&Un(0);break}}d&&p(b+131072);for(var Se=(1<>4;if(v+=z&15,v>M){h&&Un(0);break}if(z||Un(2),Ke<256)r[b++]=Ke;else if(Ke==256){Ae=v,w=null;break}else{var je=Ke-254;if(Ke>264){var j=Ke-257,Fe=yx[j];je=Ar(e,v,(1<>4;Pe||Un(3),v+=Pe&15;var be=Mce[F];if(F>3){var Fe=bx[F];be+=Nd(e,v)&(1<M){h&&Un(0);break}d&&p(b+131072);var Y=b+je;if(b>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},zce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Un(6,"invalid zlib data"),(e[1]>>5&1)==1&&Un(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Fce(e,t){return Sp(e,{i:2},t,t)}function Hce(e,t){var r=Ice(e);return r+8>e.length&&Un(6,"invalid gzip data"),Sp(e.subarray(r,-8),{i:2},new rr(Dce(e)),t)}function Bce(e,t){return Sp(e.subarray(zce(e),-4),{i:2},t,t)}function Wce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Hce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Fce(e,t):Bce(e,t)}var yh=typeof TextDecoder<"u"&&new TextDecoder,qce=0;try{yh.decode($ce,{stream:!0}),qce=1}catch{}var jce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:_x(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Py(e,t){var r;if(yh)return yh.decode(e);var o=jce(e),s=o.s,r=o.r;return r.length&&Un(8),s}const Od=()=>{},dn=()=>Promise.resolve();function Uce(){const e=ir({state:new Xw,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:dn,getTransformResult:dn,onDone:Od,onTaskUpdate:Od,writeFile:dn,rerun:dn,rerunTask:dn,updateSnapshot:dn,resolveSnapshotPath:dn,snapshotSaved:dn,onAfterSuiteRun:dn,onCancel:dn,getCountOfFailedTests:()=>0,sendLog:dn,resolveSnapshotRawPath:dn,readSnapshotFile:dn,saveSnapshotFile:dn,readTestFile:async d=>t.sources[d],removeSnapshotFile:dn,onUnhandledError:Od,saveTestFile:dn,getProvidedContext:()=>({}),getTestFiles:dn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=new Uint8Array(await d.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Py(Wce(h));t=fh(g)}else t=fh(Py(h));const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return gr?Uce():XA(Tce,{reactive:(t,r)=>r==="state"?ir(t):Ft(t),handlers:{onTestAnnotate(t,r){Oe.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Oe.recordTestArtifact(t,r)},onTaskUpdate(t,r){Oe.resumeRun(t,r),uf.value="running"},onSpecsCollected(t,r){Oe.startTime=r||performance.now()},onFinished(t,r,o,s){Oe.endRun(s),eo.value=(r||[]).map(fx)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),ei=Ft({}),Ho=Ge("CONNECTING"),Gt=ke(()=>{const e=po.value;return e?mr(e):void 0}),Tx=ke(()=>gp(Gt.value).map(e=>e?.logs||[]).flat()||[]);function mr(e){const t=ft.state.idMap.get(e);return t||void 0}const Vce=ke(()=>Ho.value==="OPEN"),Pd=ke(()=>Ho.value==="CONNECTING");ke(()=>Ho.value==="CLOSED");function Gce(){return _p(ft.state.getFiles())}function Cx(e){delete e.result;const t=Oe.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ha(e)))for(const r of e.tasks)Cx(r)}function Kce(e){const t=Oe.nodes;e.forEach(r=>{delete r.result,gp(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,In(o)&&(o.collectDuration=void 0))})}function _p(e){return Kce(e),Oe.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function Xce(e){return Cx(e),Oe.startRun(),ft.rpc.rerunTask(e.id)}const Zn=window.__vitest_browser_runner__;window.__vitest_ui_api__=kce;xt(()=>ft.ws,e=>{Ho.value=gr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Ho.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Bw(h,d,f);return p.mode="skip",p})),Oe.loadFiles(t,s),ft.state.collectFiles(t),Oe.startRun(),eo.value=(o||[]).map(fx),ei.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Ho.value==="CONNECTING"&&(Ho.value="CLOSED")},1e3)})},{immediate:!0});const Yce=["aria-label","opacity","disabled","hover"],_t=rt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ie(),ve("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Dt(t.$slots,"default",{},()=>[X("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,Yce))}}),Zce={h:"full",flex:"~ col"},Jce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Qce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},eue={class:"pointer-events-none","text-sm":""},tue={key:0},nue={id:"tester-container",relative:""},rue=["data-scale"],Ry=20,iue=100,oue=rt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return tr.value[0]===g[0]&&tr.value[1]===g[1]}const{width:o,height:s}=Pw();async function c(p){tr.value=t[p],Zn?.provider==="webdriverio"&&vx()}const f=ke(()=>{if(Zn?.provider==="webdriverio"){const[w,E]=tr.value;return{width:w,height:E}}const v=o.value*(At.details.size/100)*(At.details.browser/100)-Ry,b=s.value-iue;return{width:v,height:b}}),d=ke(()=>{if(Zn?.provider==="webdriverio")return 1;const[p,g]=tr.value,{width:v,height:b}=f.value,w=v>p?1:v/p,E=b>g?1:b/g;return Math.min(1,w,E)}),h=ke(()=>{const p=f.value.width,g=tr.value[0];return`${Math.trunc((p+Ry-g)/2)}px`});return(p,g)=>{const v=vr("tooltip");return ie(),ve("div",Zce,[X("div",Jce,[at(Ne(_t,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=b=>K(xce)())},null,512),[[ro,K(At).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),at(Ne(_t,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=b=>K(bce)())},null,512),[[ro,K(At).details.main>0],[v,"Hide Right Panel",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=b=>K(wce)())},null,512),[[ro,K(At).details.main===0],[v,"Show Right Panel",void 0,{bottom:!0}]])]),X("div",Qce,[at(Ne(_t,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[3]||(g[3]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[4]||(g[4]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[5]||(g[5]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",eue,[Qe(Re(K(tr)[0])+"x"+Re(K(tr)[1])+"px ",1),d.value<1?(ie(),ve("span",tue,"("+Re((d.value*100).toFixed(0))+"%)",1)):He("",!0)])]),X("div",nue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:zt({"--viewport-width":`${K(tr)[0]}px`,"--viewport-height":`${K(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,rue)])])}}}),sue=Ni(oue,[["__scopeId","data-v-2e86b8c3"]]),lue={"text-2xl":""},aue={"text-lg":"",op50:""},cue=rt({__name:"ConnectionOverlay",setup(e){return(t,r)=>K(Vce)?He("",!0):(ie(),ve("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>K(ft).reconnect&&K(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(K(Pd)?"animate-pulse":"")},[X("div",{text:"5xl",class:ot(K(Pd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",lue,Re(K(Pd)?"Connecting...":"Disconnected"),1),X("div",aue," Check your terminal or start a new server with `"+Re(K(Zn)?`vitest --browser=${K(Zn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),uue={h:"full",flex:"~ col"},fue={"flex-auto":"","py-1":"","bg-white":""},due=["src"],$y=rt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ie(),ve("div",uue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon:folder-details-reference"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),X("div",fue,[X("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,due)])]))}}),hue={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},pue={"font-bold":""},gue={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},mue=["font-bold"],vue={text:"red500/70"},yue={key:1,text:"sm","mb-2":""},bue={"font-bold":""},wue={key:2,text:"sm","mb-2":""},xue={"font-bold":""},kue=rt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(ie(),ve(nt,null,[X("h4",hue,[X("span",pue,[Qe(Re(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(ie(),ve(nt,{key:0},[Qe(":")],64)):He("",!0)]),Qe(" "+Re(e.error.message),1)]),e.error.stacks?.length?(ie(),ve("p",gue,[(ie(!0),ve(nt,null,$n(e.error.stacks,(o,s)=>(ie(),ve("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Qe("❯ "+Re(o.method)+" "+Re(o.file)+":",1),X("span",vue,Re(o.line)+":"+Re(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,mue))),128))])):He("",!0),e.error.VITEST_TEST_PATH?(ie(),ve("p",yue,[r[1]||(r[1]=Qe(" This error originated in ",-1)),X("span",bue,Re(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):He("",!0),e.error.VITEST_TEST_NAME?(ie(),ve("div",wue,[r[3]||(r[3]=Qe(" The latest test that might've caused the error is ",-1)),X("span",xue,Re(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Qe(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):He("",!0)],64))}}),Sue={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},_ue={class:"number","data-testid":"num-files"},Tue={class:"number"},Cue={class:"number","text-red5":""},Eue={class:"number","text-red5":""},Aue={class:"number","text-red5":""},Lue={class:"number","data-testid":"run-time"},Mue={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Nue={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Oue={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Pue=rt({__name:"TestFilesEntry",setup(e){return(t,r)=>(ie(),ve(nt,null,[X("div",Sue,[r[8]||(r[8]=X("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=X("div",null,"Files",-1)),X("div",_ue,Re(K(Oe).summary.files),1),K(Oe).summary.filesSuccess?(ie(),ve(nt,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",Tue,Re(K(Oe).summary.filesSuccess),1)],64)):He("",!0),K(Oe).summary.filesFailed?(ie(),ve(nt,{key:1},[r[2]||(r[2]=X("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=X("div",null," Fail ",-1)),X("div",Cue,Re(K(Oe).summary.filesFailed),1)],64)):He("",!0),K(Oe).summary.filesSnapshotFailed?(ie(),ve(nt,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=X("div",null," Snapshot Fail ",-1)),X("div",Eue,Re(K(Oe).summary.filesSnapshotFailed),1)],64)):He("",!0),K(eo).length?(ie(),ve(nt,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=X("div",null," Errors ",-1)),X("div",Aue,Re(K(eo).length),1)],64)):He("",!0),r[10]||(r[10]=X("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=X("div",null,"Time",-1)),X("div",Lue,Re(K(Oe).summary.time),1)]),K(eo).length?(ie(),ve("div",Mue,[r[15]||(r[15]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",Nue,[Qe(" Vitest caught "+Re(K(eo).length)+" error"+Re(K(eo).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=X("br",null,null,-1)),r[13]||(r[13]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",Oue,[r[14]||(r[14]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ie(!0),ve(nt,null,$n(K(eo),(o,s)=>(ie(),Ve(kue,{key:s,error:o},null,8,["error"]))),128))])])):He("",!0)],64))}}),Rue=Ni(Pue,[["__scopeId","data-v-1bd0f2ea"]]),$ue={"p-2":"","text-center":"",flex:""},Iue={"text-4xl":"","min-w-2em":""},Due={"text-md":""},Bl=rt({__name:"DashboardEntry",setup(e){return(t,r)=>(ie(),ve("div",$ue,[X("div",null,[X("div",Iue,[Dt(t.$slots,"body")]),X("div",Due,[Dt(t.$slots,"header")])])]))}}),zue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Fue=rt({__name:"TestsEntry",setup(e){function t(r){it.success=!1,it.failed=!1,it.skipped=!1,r!=="total"&&(it[r]=!0)}return(r,o)=>(ie(),ve("div",zue,[Ne(Bl,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:We(()=>[...o[4]||(o[4]=[Qe(" Pass ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsSuccess),1)]),_:1}),Ne(Bl,{class:ot({"text-red5":K(Oe).summary.testsFailed,op50:!K(Oe).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:We(()=>[...o[5]||(o[5]=[Qe(" Fail ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsFailed),1)]),_:1},8,["class"]),K(Oe).summary.testsSkipped?(ie(),Ve(Bl,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:We(()=>[...o[6]||(o[6]=[Qe(" Skip ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsSkipped),1)]),_:1})):He("",!0),K(Oe).summary.testsTodo?(ie(),Ve(Bl,{key:1,op50:"","data-testid":"todo-entry"},{header:We(()=>[...o[7]||(o[7]=[Qe(" Todo ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsTodo),1)]),_:1})):He("",!0),Ne(Bl,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:We(()=>[...o[8]||(o[8]=[Qe(" Total ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.totalTests),1)]),_:1})]))}}),Hue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Bue={key:0,class:"text-gray-5"},Wue={"aria-labelledby":"tests",m:"y-4 x-2"},que=rt({__name:"TestsFilesContainer",setup(e){return(t,r)=>(ie(),ve("div",Hue,[K(Oe).summary.files===0&&K(Ms)?(ie(),ve("div",Bue," No tests found ")):He("",!0),X("section",Wue,[Ne(Fue)]),Ne(Rue)]))}}),jue={h:"full",flex:"~ col"},Uue={class:"scrolls","flex-auto":"","py-1":""},Iy=rt({__name:"Dashboard",setup(e){return(t,r)=>(ie(),ve("div",jue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon-dashboard"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),X("div",Uue,[Ne(que)])]))}});function Vue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var bh="http://www.w3.org/1999/xhtml";const Dy={svg:"http://www.w3.org/2000/svg",xhtml:bh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ff(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Dy.hasOwnProperty(t)?{space:Dy[t],local:e}:e}function Gue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===bh&&t.documentElement.namespaceURI===bh?t.createElement(e):t.createElementNS(r,e)}}function Kue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ex(e){var t=ff(e);return(t.local?Kue:Gue)(t)}function Xue(){}function Tp(e){return e==null?Xue:function(){return this.querySelector(e)}}function Yue(e){typeof e!="function"&&(e=Tp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s=I&&(I=R+1);!($=P[I])&&++I=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function xfe(e){e||(e=kfe);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;ct?1:e>=t?0:NaN}function Sfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _fe(){return Array.from(this)}function Tfe(){for(var e=this._groups,t=0,r=e.length;t1?this.each((t==null?Ife:typeof t=="function"?zfe:Dfe)(e,t,r??"")):el(this.node(),e)}function el(e,t){return e.style.getPropertyValue(t)||Ox(e).getComputedStyle(e,null).getPropertyValue(t)}function Hfe(e){return function(){delete this[e]}}function Bfe(e,t){return function(){this[e]=t}}function Wfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function qfe(e,t){return arguments.length>1?this.each((t==null?Hfe:typeof t=="function"?Wfe:Bfe)(e,t)):this.node()[e]}function Px(e){return e.trim().split(/^|\s+/)}function Cp(e){return e.classList||new Rx(e)}function Rx(e){this._node=e,this._names=Px(e.getAttribute("class")||"")}Rx.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function $x(e,t){for(var r=Cp(e),o=-1,s=t.length;++o=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function vde(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r{}};function Ua(){for(var e=0,t=arguments.length,r={},o;e=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Zc.prototype=Ua.prototype={constructor:Zc,on:function(e,t){var r=this._,o=Ede(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c0)for(var r=new Array(s),o=0,s,c;o()=>e;function wh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}wh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Mde(e){return!e.ctrlKey&&!e.button}function Nde(){return this.parentNode}function Ode(e,t){return t??{x:e.x,y:e.y}}function Pde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rde(){var e=Mde,t=Nde,r=Ode,o=Pde,s={},c=Ua("start","drag","end"),f=0,d,h,p,g,v=0;function b(_){_.on("mousedown.drag",w).filter(o).on("touchstart.drag",P).on("touchmove.drag",M,Lde).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(_,$){if(!(g||!e.call(this,_,$))){var W=I(this,t.call(this,_,$),_,$,"mouse");W&&(Kn(_.view).on("mousemove.drag",E,Ta).on("mouseup.drag",L,Ta),Fx(_.view),Rd(_),p=!1,d=_.clientX,h=_.clientY,W("start",_))}}function E(_){if(js(_),!p){var $=_.clientX-d,W=_.clientY-h;p=$*$+W*W>v}s.mouse("drag",_)}function L(_){Kn(_.view).on("mousemove.drag mouseup.drag",null),Hx(_.view,p),js(_),s.mouse("end",_)}function P(_,$){if(e.call(this,_,$)){var W=_.changedTouches,ne=t.call(this,_,$),ee=W.length,Z,G;for(Z=0;Z>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ide.exec(e))?new Yn(t[1],t[2],t[3],1):(t=Dde.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zde.exec(e))?Dc(t[1],t[2],t[3],t[4]):(t=Fde.exec(e))?Dc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hde.exec(e))?Uy(t[1],t[2]/100,t[3]/100,1):(t=Bde.exec(e))?Uy(t[1],t[2]/100,t[3]/100,t[4]):Fy.hasOwnProperty(e)?Wy(Fy[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function Wy(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function Dc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Yn(e,t,r,o)}function jde(e){return e instanceof Va||(e=Aa(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function xh(e,t,r,o){return arguments.length===1?jde(e):new Yn(e,t,r,o??1)}function Yn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Ep(Yn,xh,Bx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(Vo(this.r),Vo(this.g),Vo(this.b),Mu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qy,formatHex:qy,formatHex8:Ude,formatRgb:jy,toString:jy}));function qy(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}`}function Ude(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}${Bo((isNaN(this.opacity)?1:this.opacity)*255)}`}function jy(){const e=Mu(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function Mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function Uy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,r,o)}function Wx(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=Aa(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r0&&h<1?0:f,new Mr(f,d,h,e.opacity)}function Vde(e,t,r,o){return arguments.length===1?Wx(e):new Mr(e,t,r,o??1)}function Mr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Ep(Mr,Vde,Bx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new Mr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Yn($d(e>=240?e-240:e+120,s,o),$d(e,s,o),$d(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Mr(Vy(this.h),zc(this.s),zc(this.l),Mu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mu(this.opacity);return`${e===1?"hsl(":"hsla("}${Vy(this.h)}, ${zc(this.s)*100}%, ${zc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Vy(e){return e=(e||0)%360,e<0?e+360:e}function zc(e){return Math.max(0,Math.min(1,e||0))}function $d(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const qx=e=>()=>e;function Gde(e,t){return function(r){return e+r*t}}function Kde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function Xde(e){return(e=+e)==1?jx:function(t,r){return r-t?Kde(t,r,e):qx(isNaN(t)?r:t)}}function jx(e,t){var r=t-e;return r?Gde(e,r):qx(isNaN(e)?t:e)}const Gy=(function e(t){var r=Xde(t);function o(s,c){var f=r((s=xh(s)).r,(c=xh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=jx(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o})(1);function to(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Id=new RegExp(kh.source,"g");function Yde(e){return function(){return e}}function Zde(e){return function(t){return e(t)+""}}function Jde(e,t){var r=kh.lastIndex=Id.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=kh.exec(e))&&(s=Id.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:to(o,s)})),r=Id.lastIndex;return r180?g+=360:g-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:to(p,g)})):g&&v.push(s(v)+"rotate("+g+o)}function d(p,g,v,b){p!==g?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:to(p,g)}):g&&v.push(s(v)+"skewX("+g+o)}function h(p,g,v,b,w,E){if(p!==v||g!==b){var L=w.push(s(w)+"scale(",null,",",null,")");E.push({i:L-4,x:to(p,v)},{i:L-2,x:to(g,b)})}else(v!==1||b!==1)&&w.push(s(w)+"scale("+v+","+b+")")}return function(p,g){var v=[],b=[];return p=e(p),g=e(g),c(p.translateX,p.translateY,g.translateX,g.translateY,v,b),f(p.rotate,g.rotate,v,b),d(p.skewX,g.skewX,v,b),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,b),p=g=null,function(w){for(var E=-1,L=b.length,P;++E=0&&e._call.call(void 0,t),e=e._next;--nl}function Yy(){Ko=(Ou=La.now())+df,nl=Vl=0;try{ahe()}finally{nl=0,uhe(),Ko=0}}function che(){var e=La.now(),t=e-Ou;t>Gx&&(df-=t,Ou=e)}function uhe(){for(var e,t=Nu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Nu=r);Gl=e,_h(o)}function _h(e){if(!nl){Vl&&(Vl=clearTimeout(Vl));var t=e-Ko;t>24?(e<1/0&&(Vl=setTimeout(Yy,e-La.now()-df)),Wl&&(Wl=clearInterval(Wl))):(Wl||(Ou=La.now(),Wl=setInterval(che,Gx)),nl=1,Kx(Yy))}}function Zy(e,t,r){var o=new Pu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var fhe=Ua("start","end","cancel","interrupt"),dhe=[],Xx=0,Jy=1,Th=2,Jc=3,Qy=4,Ch=5,Qc=6;function hf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;hhe(e,r,{name:t,index:o,group:s,on:fhe,tween:dhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Xx})}function Mp(e,t){var r=Fr(e,t);if(r.state>Xx)throw new Error("too late; already scheduled");return r}function ni(e,t){var r=Fr(e,t);if(r.state>Jc)throw new Error("too late; already running");return r}function Fr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function hhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Lp(c,0,r.time);function c(p){r.state=Jy,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var g,v,b,w;if(r.state!==Jy)return h();for(g in o)if(w=o[g],w.name===r.name){if(w.state===Jc)return Zy(f);w.state===Qy?(w.state=Qc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[g]):+gTh&&o.state=0&&(t=t.slice(0,r)),!t||t==="start"})}function qhe(e,t,r){var o,s,c=Whe(t)?Mp:ni;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function jhe(e,t){var r=this._id;return arguments.length<2?Fr(this.node(),r).on.on(e):this.each(qhe(r,e,t))}function Uhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Vhe(){return this.on("end.remove",Uhe(this._id))}function Ghe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Tp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f()=>e;function ype(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function xi(e,t,r){this.k=e,this.x=t,this.y=r}xi.prototype={constructor:xi,scale:function(e){return e===1?this:new xi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Op=new xi(1,0,0);xi.prototype;function Dd(e){e.stopImmediatePropagation()}function ql(e){e.preventDefault(),e.stopImmediatePropagation()}function bpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function wpe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function e0(){return this.__zoom||Op}function xpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function kpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Spe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function _pe(){var e=bpe,t=wpe,r=Spe,o=xpe,s=kpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=she,p=Ua("start","zoom","end"),g,v,b,w=500,E=150,L=0,P=10;function M(C){C.property("__zoom",e0).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",j).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(C,k,z,B){var ce=C.selection?C.selection():C;ce.property("__zoom",e0),C!==ce?$(C,k,z,B):ce.interrupt().each(function(){W(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},M.scaleBy=function(C,k,z,B){M.scaleTo(C,function(){var ce=this.__zoom.k,be=typeof k=="function"?k.apply(this,arguments):k;return ce*be},z,B)},M.scaleTo=function(C,k,z,B){M.transform(C,function(){var ce=t.apply(this,arguments),be=this.__zoom,Se=z==null?_(ce):typeof z=="function"?z.apply(this,arguments):z,Be=be.invert(Se),Ae=typeof k=="function"?k.apply(this,arguments):k;return r(I(R(be,Ae),Se,Be),ce,f)},z,B)},M.translateBy=function(C,k,z,B){M.transform(C,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),f)},null,B)},M.translateTo=function(C,k,z,B,ce){M.transform(C,function(){var be=t.apply(this,arguments),Se=this.__zoom,Be=B==null?_(be):typeof B=="function"?B.apply(this,arguments):B;return r(Op.translate(Be[0],Be[1]).scale(Se.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof z=="function"?-z.apply(this,arguments):-z),be,f)},B,ce)};function R(C,k){return k=Math.max(c[0],Math.min(c[1],k)),k===C.k?C:new xi(k,C.x,C.y)}function I(C,k,z){var B=k[0]-z[0]*C.k,ce=k[1]-z[1]*C.k;return B===C.x&&ce===C.y?C:new xi(C.k,B,ce)}function _(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function $(C,k,z,B){C.on("start.zoom",function(){W(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(B).end()}).tween("zoom",function(){var ce=this,be=arguments,Se=W(ce,be).event(B),Be=t.apply(ce,be),Ae=z==null?_(Be):typeof z=="function"?z.apply(ce,be):z,Ke=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),je=ce.__zoom,Fe=typeof k=="function"?k.apply(ce,be):k,Pe=h(je.invert(Ae).concat(Ke/je.k),Fe.invert(Ae).concat(Ke/Fe.k));return function(F){if(F===1)F=Fe;else{var Y=Pe(F),re=Ke/Y[2];F=new xi(re,Ae[0]-Y[0]*re,Ae[1]-Y[1]*re)}Se.zoom(null,F)}})}function W(C,k,z){return!z&&C.__zooming||new ne(C,k)}function ne(C,k){this.that=C,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,k),this.taps=0}ne.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,k){return this.mouse&&C!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var k=Kn(this.that).datum();p.call(C,this.that,new ype(C,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),k)}};function ee(C,...k){if(!e.apply(this,arguments))return;var z=W(this,k).event(C),B=this.__zoom,ce=Math.max(c[0],Math.min(c[1],B.k*Math.pow(2,o.apply(this,arguments)))),be=vi(C);if(z.wheel)(z.mouse[0][0]!==be[0]||z.mouse[0][1]!==be[1])&&(z.mouse[1]=B.invert(z.mouse[0]=be)),clearTimeout(z.wheel);else{if(B.k===ce)return;z.mouse=[be,B.invert(be)],eu(this),z.start()}ql(C),z.wheel=setTimeout(Se,E),z.zoom("mouse",r(I(R(B,ce),z.mouse[0],z.mouse[1]),z.extent,f));function Se(){z.wheel=null,z.end()}}function Z(C,...k){if(b||!e.apply(this,arguments))return;var z=C.currentTarget,B=W(this,k,!0).event(C),ce=Kn(C.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ke,!0),be=vi(C,z),Se=C.clientX,Be=C.clientY;Fx(C.view),Dd(C),B.mouse=[be,this.__zoom.invert(be)],eu(this),B.start();function Ae(je){if(ql(je),!B.moved){var Fe=je.clientX-Se,Pe=je.clientY-Be;B.moved=Fe*Fe+Pe*Pe>L}B.event(je).zoom("mouse",r(I(B.that.__zoom,B.mouse[0]=vi(je,z),B.mouse[1]),B.extent,f))}function Ke(je){ce.on("mousemove.zoom mouseup.zoom",null),Hx(je.view,B.moved),ql(je),B.event(je).end()}}function G(C,...k){if(e.apply(this,arguments)){var z=this.__zoom,B=vi(C.changedTouches?C.changedTouches[0]:C,this),ce=z.invert(B),be=z.k*(C.shiftKey?.5:2),Se=r(I(R(z,be),B,ce),t.apply(this,k),f);ql(C),d>0?Kn(this).transition().duration(d).call($,Se,B,C):Kn(this).call(M.transform,Se,B,C)}}function j(C,...k){if(e.apply(this,arguments)){var z=C.touches,B=z.length,ce=W(this,k,C.changedTouches.length===B).event(C),be,Se,Be,Ae;for(Dd(C),Se=0;Se=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b,s=c,!(c=c[M=P<<1|L]))return s[M]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(L=t>=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b;while((M=P<<1|L)===(R=(E>=b)<<1|w>=v));return s[R]=c,s[M]=f,e}function Cpe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,v=-1/0;for(r=0;rg&&(g=s),cv&&(v=c));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),r=0;re||e>=s||o>t||t>=c;)switch(p=(tg||(d=E.y0)>v||(h=E.x1)=M)<<1|e>=P)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=E)}else{var R=e-+this._x.call(null,w.data),I=t-+this._y.call(null,w.data),_=R*R+I*I;if(_=(b=(f+h)/2))?f=b:h=b,(L=v>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[P=L<<1|E]))return this;if(!r.length)break;(t[P+1&3]||t[P+2&3]||t[P+3&3])&&(o=t,M=P)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[P]=c:delete t[P],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function Ope(e){for(var t=0,r=e.length;tb.index){var j=w-ee.x-ee.vx,N=E-ee.y-ee.vy,O=j*j+N*N;Ow+G||WE+G||nep.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(r=new Array(g),p=0;p[t($,W,f),$])),_;for(P=0,d=new Array(M);P(e=(Vpe*e+Gpe)%r0)/r0}function Xpe(e){return e.x}function Ype(e){return e.y}var Zpe=10,Jpe=Math.PI*(3-Math.sqrt(5));function Qpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Lp(v),p=Ua("tick","end"),g=Kpe();e==null&&(e=[]);function v(){b(),p.call("tick",t),r1?(P==null?d.delete(L):d.set(L,E(P)),t):d.get(L)},find:function(L,P,M){var R=0,I=e.length,_,$,W,ne,ee;for(M==null?M=1/0:M*=M,R=0;R1?(p.on(L,P),t):p.on(L)}}}function ege(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(w){var E,L=e.length,P=Pp(e,Xpe,Ype).visitAfter(v);for(o=w,E=0;E=d)return;(w.data!==t||w.next)&&(M===0&&(M=io(r),_+=M*M),R===0&&(R=io(r),_+=R*R),_.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function i0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function oo(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=oo.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:i0(t[o])&&i0(r[o])?t[o]=oo(t[o],r[o]):t[o]=r[o])}),t},{})}const e1={mergeArrays:!0};oo.options=e1;oo.withOptions=(e,...t)=>{oo.options={mergeArrays:!0,...e};const r=oo(...t);return oo.options=e1,r};var ige=oo;function oge(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function sge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function t1(e){e.preventDefault(),e.stopPropagation()}function n1(e){return typeof e=="number"}function mo(e,t){return n1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function lge(e){return`${e.source.id}-${e.target.id}`}function r1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function age(e){return`url(#${r1(e.color)})`}function cge(e){return{size:e,padding:(t,r)=>mo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const i1={Arrow:e=>cge(e)},uge=(e,t,r)=>[t/2,r/2],fge=(e,t,r)=>[o0(0,t),o0(0,r)];function o0(e,t){return Math.random()*(t-e)+e}const Eh={Centered:uge,Randomized:fge};function dge(){return{autoResize:!1,callbacks:{},hooks:{},initial:sge(),nodeRadius:16,marker:i1.Arrow(4),modifiers:{},positionInitializer:Eh.Centered,simulation:{alphas:rge(),forces:oge()},zoom:{initial:1,min:.1,max:2}}}function hge(e={}){return ige.withOptions({mergeArrays:!1},dge(),e)}function pge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>t1(g)).on("dblclick",g=>r?.(g)).on("dblclick.zoom",null).on("pointermove",g=>o?.(g)).on("pointerup",g=>s?.(g)).style("cursor","grab");return e&&p.call(h.transform,Op.translate(c,f).scale(d)),p.append("g")}function gge({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function mge({config:e,onDragStart:t,onDragEnd:r}){const o=Rde().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Kn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Kn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function vge({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:yge({links:c},r)}function yge(e,t){const r=[...bge(e,t),...wge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function bge(e,t){return o1(e,t,(r,o)=>r.target.id===o.id)}function wge(e,t){return o1(e,t,(r,o)=>r.source.id===o.id)}function o1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function Ah(e){return e.x??0}function Lh(e){return e.y??0}function $p({source:e,target:t}){const r=new tl(Ah(e),Lh(e)),o=new tl(Ah(t),Lh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function s1({center:e,node:t}){const r=new tl(Ah(t),Lh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new tl(0,1))),{n:r,c:o}}function l1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=$p({source:t,target:r});return{start:o.add(c.multiply(mo(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function xge(e){const{start:t,end:r}=l1(e);return`M${t.x},${t.y} + L${r.x},${r.y}`}function kge(e){const{start:t,end:r}=l1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Sge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=$p({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(mo(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(mo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y} + A${v},${v},0,0,1,${g.x},${g.y}`}function _ge({center:e,config:t,node:r}){const{n:o,c:s}=s1({center:e,node:r}),c=mo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),g=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y} + A${c},${c},0,1,0,${g.x},${g.y}`}function Tge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=$p({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Cge({center:e,config:t,node:r}){const{n:o,c:s}=s1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*mo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Vs={line:{labelTransform:kge,path:xge},arc:{labelTransform:Tge,path:Sge},reflexive:{labelTransform:Cge,path:_ge}};function Ege(e){return e.append("g").classed("links",!0).selectAll("path")}function Age({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>lge(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>age(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Lge(e){Mge(e),Nge(e)}function Mge({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Vs.reflexive.path({config:t,node:s.source,center:e}):a1(r,s.source,s.target)?Vs.arc.path({config:t,source:s.source,target:s.target}):Vs.line.path({config:t,source:s.source,target:s.target}))}function Nge({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Vs.reflexive.labelTransform({config:e,node:s.source,center:t}):a1(r,s.source,s.target)?Vs.arc.labelTransform({config:e,source:s.source,target:s.target}):Vs.line.labelTransform({config:e,source:s.source,target:s.target}))}function a1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Oge(e){return e.append("defs").selectAll("marker")}function Pge({config:e,graph:t,selection:r}){return r?.data(Rge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>r1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",$ge(e.marker.path)),s})}function Rge(e){return[...new Set(e.links.map(t=>t.color))]}function $ge(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ige(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Dge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",b=>mo(e,b)).on("contextmenu",(b,w)=>{t1(b),o(w)}).on("pointerdown",(b,w)=>Fge(b,w,s??o)).style("fill",b=>b.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const zge=500;function Fge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>zge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Hge(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Bge({center:e,config:t,graph:r,onTick:o}){const s=Qpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",tge(()=>e().x).strength(p)).force("y",nge(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",ege().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",qpe().radius(p=>d.radiusMultiplier*mo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Upe(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function Wge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=_pe().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}var qge=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(Vue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return tl.of([this.width,this.height]).divide(2).subtract(tl.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(n1(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=Pge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Age({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Dge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=Bge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=Wge({config:this.config,canvasContainer:()=>Kn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=pge({applyZoom:this.scale!==1,container:Kn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Ege(this.canvas),this.nodeSelection=Ige(this.canvas),this.markerSelection=Oge(this.canvas),this.drag=mge({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){Hge(this.nodeSelection),Lge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Kn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){gge({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=vge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function s0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function jge(e){return{...e}}function Ip(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Uge(e){const t=e.map(o=>Jw(o)),r=eL(t);return t.map(({raw:o,id:s,splits:c})=>Ip({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:s.includes("node_modules")?r.get(o)??o:c.pop()},isFocused:!1,id:s,type:"external"}))}function Vge(e,t){return Ip({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function Gge(e,t){if(!e)return s0({});const r=Uge(e.externalized),o=e.inlined.map(d=>Vge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const g=c[d],v=c[p];if(!(g===void 0||v===void 0))return jge({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return s0({nodes:s,links:f})}const Kge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Xge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Yge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Zge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Jge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Qge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},c1=rt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=vr("tooltip");return e.state==="pass"?(ie(),ve("div",Kge)):e.failedSnapshot?at((ie(),ve("div",Xge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(ie(),ve("div",Yge)):e.mode==="todo"?at((ie(),ve("div",Zge,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?at((ie(),ve("div",Jge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ie(),ve("div",Qge))}}}),ol=zE(),eme=xE(ol),tme={border:"b base","p-4":""},nme=["innerHTML"],rme=rt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ie(),ve("div",tme,[X("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Re(t(e.time))+" | "+Re(e.taskName)+" | "+Re(e.type),3),X("pre",{"data-type":"html",innerHTML:e.content},null,8,nme)]))}}),ime={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},ome={key:1,p6:""},sme=rt({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Tx.value;if(o){const s=wp(ol.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(oa(h))}))}});function r(o){const s=o&&ft.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?$A(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(ie(),ve("div",ime,[(ie(!0),ve(nt,null,$n(t.value,({taskId:c,type:f,time:d,content:h})=>(ie(),ve("div",{key:c,"font-mono":""},[Ne(rme,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(ie(),ve("div",ome,[...s[0]||(s[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),X("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),u1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(u1);var fr=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},As,Kl,Do;class lme{constructor(...t){As.set(this,new Map),Kl.set(this,new Map),Do.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),fr(this,Do,"f").has(o)||fr(this,Do,"f").set(o,new Set);const c=fr(this,Do,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&fr(this,Kl,"f").set(o,d),f=!1,h)continue;const p=fr(this,As,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);fr(this,As,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of fr(this,Do,"f").values())Object.freeze(t);return this}_getTestState(){return{types:fr(this,As,"f"),extensions:fr(this,Kl,"f")}}}As=new WeakMap,Kl=new WeakMap,Do=new WeakMap;const ame=new lme(u1)._freeze();function Ma(e){if(gr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function f1(e,t){const r=t?ame.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function d1(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Mh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Ma(e)}const tu=rt({__name:"CodeMirrorContainer",props:da({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:da(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Yu(e,"modelValue"),s=U_(),c={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ge();return Mi(async()=>{const d=hce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.on("refresh",()=>{r("codemirror",d)}),d.on("change",()=>{r("codemirror",d)}),d.setSize("100%","100%"),d.clearHistory(),Nn.value=d,setTimeout(()=>Nn.value?.refresh(),100)}),(d,h)=>(ie(),ve("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[X("textarea",{ref_key:"el",ref:f},null,512)],2))}}),cme=rt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ge(""),c=Ft(void 0),f=Ge(!1),d=Ge(!0),h=Ge(!1),p=Ge();xt(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ft.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Z){console.error("cannot fetch file",Z)}await Et(),d.value=!1}},{immediate:!0}),xt(()=>[d.value,h.value,r.file,hx.value,px.value],([Z,G,j,N,O])=>{!Z&&!G&&(N!=null?Et(()=>{const C=p.value,k=C??{line:(N??1)-1,ch:O??0};C?p.value=void 0:(Nn.value?.scrollIntoView(k,100),Et(()=>{Nn.value?.focus(),Nn.value?.setCursor(k)}))}):Et(()=>{Nn.value?.focus()}))},{flush:"post"});const g=ke(()=>r.file?.filepath?.split(/\./g).pop()||"js"),v=Ge(),b=ke(()=>{const Z=[];function G(j){j.result?.errors&&Z.push(...j.result.errors),j.type==="suite"&&j.tasks.forEach(G)}return r.file?.tasks.forEach(G),Z}),w=ke(()=>{const Z=[];function G(j){j.type==="test"&&Z.push(...j.annotations),j.type==="suite"&&j.tasks.forEach(G)}return r.file?.tasks.forEach(G),Z}),E=[],L=[],P=[],M=Ge(!1);function R(){P.forEach(([Z,G,j])=>{Z.removeEventListener("click",G),j()}),P.length=0}Ow(v,()=>{Nn.value?.refresh()});function I(){f.value=c.value!==Nn.value.getValue()}xt(f,Z=>{o("draft",Z)},{immediate:!0});function _(Z){const j=(Z?.stacks||[]).filter(z=>z.file&&z.file===r.file?.filepath)?.[0];if(!j)return;const N=document.createElement("div");N.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(j.column)}^ ${Z.name}: ${Z?.message||""}`,N.appendChild(O);const C=document.createElement("span");C.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",C.tabIndex=0,C.ariaLabel="Open in Editor",bw(C,{content:"Open in Editor",placement:"bottom"},!1);const k=async()=>{await bp(j.file,j.line,j.column)};C.addEventListener("click",k),N.appendChild(C),P.push([C,k,()=>ap(C)]),L.push(Nn.value.addLineClass(j.line-1,"wrap","bg-red-500/10")),E.push(Nn.value.addLineWidget(j.line-1,N))}function $(Z){if(!Z.location)return;const{line:G,file:j}=Z.location;if(j!==r.file?.filepath)return;const N=document.createElement("div");N.classList.add("wrap","bg-active","py-3","px-6","my-1"),N.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const C=document.createElement("span");C.textContent=`${Z.type}: `,C.classList.add("font-bold");const k=document.createElement("span");k.classList.add("whitespace-pre"),k.textContent=Z.message.replace(/[^\r]\n/,`\r +`),O.append(C,k),N.append(O);const z=Z.attachment;if(z?.path||z?.body)if(z.contentType?.startsWith("image/")){const B=document.createElement("a"),ce=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const be=z.path||z.body;typeof be=="string"&&(be.startsWith("http://")||be.startsWith("https://"))?(ce.setAttribute("src",be),B.referrerPolicy="no-referrer"):ce.setAttribute("src",Ma(z)),B.target="_blank",B.href=ce.src,B.append(ce),N.append(B)}else{const B=document.createElement("a");B.href=Ma(z),B.download=f1(Z.message,z.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ce=document.createElement("div");ce.classList.add("i-carbon:download","block");const be=document.createElement("span");be.textContent="Download",B.append(ce,be),N.append(B)}E.push(Nn.value.addLineWidget(G-1,N))}const{pause:W,resume:ne}=xt([Nn,b,w,Ms],([Z,G,j,N])=>{if(!Z){E.length=0,L.length=0,R();return}N&&(Z.off("changes",I),R(),E.forEach(O=>O.clear()),L.forEach(O=>Z?.removeLineClass(O,"wrap")),E.length=0,L.length=0,setTimeout(()=>{G.forEach(_),j.forEach($),M.value||Z.clearHistory(),Z.on("changes",I)},100))},{flush:"post"});hp(()=>[Ms.value,h.value,p.value],([Z,G],j)=>{Z&&!G&&j&&j[2]&&Nn.value?.setCursor(j[2])},{debounce:100,flush:"post"});async function ee(Z){if(h.value)return;W(),h.value=!0,await Et();const G=Nn.value;G&&(G.setOption("readOnly",!0),await Et(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",I),R(),E.forEach(j=>j.clear()),L.forEach(j=>G?.removeLineClass(j,"wrap")),E.length=0,L.length=0;try{M.value=!0,await ft.rpc.saveTestFile(r.file.filepath,Z),c.value=Z,f.value=!1}catch(j){console.error("error saving file",j)}M.value||G?.clearHistory();try{await Uv(Ms).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Uv(Ms).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(_),w.value.forEach($),G?.on("changes",I),h.value=!1,await Et(),G&&(G.setOption("readOnly",!1),await Et(),G.refresh()),ne()}return $a(R),(Z,G)=>(ie(),Ve(tu,ki({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=j=>s.value=j),"h-full":""},{lineNumbers:!0,readOnly:K(gr),saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ee}),null,16,["modelValue","mode"]))}}),Dp=rt({__name:"Modal",props:da({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(ie(),ve("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:zt(t.value?{}:{transform:o.value})},[Dt(c.$slots,"default")],6)],2))}}),ume={class:"overflow-auto max-h-120"},fme={"my-2":"","mx-4":""},dme={"op-70":""},hme={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},pme=["onClick"],gme=rt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=Ge(10),s=ke(()=>{const h=pr.value?.importDurations;if(!h)return[];const p=ei.value.root,g=[];for(const b in h){const w=h[b],E=w.external?tL(b):af(p,b);g.push({importedFile:b,relativeFile:f(E),selfTime:w.selfTime,totalTime:w.totalTime,formattedSelfTime:Fo(w.selfTime),formattedTotalTime:Fo(w.totalTime),selfTimeClass:_u(w.selfTime),totalTimeClass:_u(w.totalTime),external:w.external})}return g.sort((b,w)=>w.totalTime-b.totalTime)}),c=ke(()=>s.value.slice(0,o.value));function f(d){return d.length<=45?d:`...${d.slice(-45)}`}return(d,h)=>(ie(),ve("div",ume,[X("h1",fme,[h[1]||(h[1]=Qe(" Import Duration Breakdown ",-1)),X("span",dme,"(ordered by Total Time) (Top "+Re(Math.min(o.value,c.value.length))+")",1)]),X("table",hme,[h[2]||(h[2]=X("thead",null,[X("tr",null,[X("th",null," Module "),X("th",null," Self "),X("th",null," Total "),X("th",null," % ")])],-1)),X("tbody",null,[(ie(!0),ve(nt,null,$n(c.value,p=>(ie(),ve("tr",{key:p.importedFile},[X("td",{class:"cursor-pointer pr-2",style:zt({color:p.external?"var(--color-node-external)":void 0}),onClick:g=>r("select",p.importedFile,p.external?"external":"inline")},Re(p.relativeFile),13,pme),X("td",{"pr-2":"",class:ot(p.selfTimeClass)},Re(p.formattedSelfTime),3),X("td",{"pr-2":"",class:ot(p.totalTimeClass)},Re(p.formattedTotalTime),3),X("td",{"pr-2":"",class:ot(p.totalTimeClass)},Re(Math.round(p.totalTime/s.value[0].totalTime*100))+"% ",3)]))),128))])]),o.valueo.value+=5)}," Show more ")):He("",!0)]))}}),Cs=rt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,r)=>(ie(),ve("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Dt(t.$slots,"default")],2))}}),mme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},vme={"p-4":"",relative:""},yme={flex:"","justify-between":""},bme={"mr-8":"",flex:"","gap-2":"","items-center":""},wme={op50:"","font-mono":"","text-sm":""},xme={key:0,"p-5":""},kme={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},Sme={key:0},_me={p:"x3 y-1","bg-overlay":"",border:"base b t"},Tme=rt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const r=e,o=t,s=TE(()=>{if(pr.value?.id){if(r.type==="inline")return ft.rpc.getTransformResult(r.projectName,r.id,pr.value.id,!!Zn);if(r.type==="external")return ft.rpc.getExternalResult(r.id,pr.value.id)}}),c=ke(()=>{const I=pr.value?.importDurations||{};return I[r.id]||I[NA("/@fs/",r.id)]||{}}),f=ke(()=>r.id?.split(/\./g).pop()||"js"),d=ke(()=>s.value?.source?.trim()||""),h=ke(()=>!s.value||!("code"in s.value)||!ei.value.experimental?.fsModuleCache?void 0:s.value.code.lastIndexOf("vitestCache=")!==-1),p=ke(()=>!s.value||!("code"in s.value)?null:s.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=ke(()=>!s.value||!("map"in s.value)?{mappings:""}:{mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}),v=[],b=[],w=[];function E(I,_){const $=I.coordsChar({left:_.clientX,top:_.clientY}),W=I.findMarksAt($);if(W.length!==1)return;const ne=W[0].title;if(ne){const ee=W[0].attributes?.["data-external"]==="true"?"external":"inline";o("select",ne,ee)}}function L(I){const _=document.createElement("div");return _.classList.add("mb-5"),I.forEach(({resolvedId:$,totalTime:W,external:ne})=>{const ee=document.createElement("div");ee.append(document.createTextNode("import "));const Z=document.createElement("span"),G=af(ei.value.root,$);Z.textContent=`"/${G}"`,Z.className="hover:underline decoration-gray cursor-pointer select-none",ee.append(Z),Z.addEventListener("click",()=>{o("select",$,ne?"external":"inline")});const j=document.createElement("span");j.textContent=` ${Fo(W)}`;const N=_u(W);N&&j.classList.add(N),ee.append(j),_.append(ee)}),_}function P(I){const _=document.createElement("div");_.className="flex ml-2",_.textContent=Fo(I);const $=_u(I);return $&&_.classList.add($),_}function M(I){if(w.forEach(_=>_.clear()),w.length=0,v.forEach(_=>_.remove()),v.length=0,b.forEach(_=>_.clear()),b.length=0,s.value&&"modules"in s.value){I.off("mousedown",E),I.on("mousedown",E);const _=s.value.untrackedModules;if(_?.length){const $=L(_);v.push($),w.push(I.addLineWidget(0,$,{above:!0}))}s.value.modules?.forEach($=>{const W={line:$.start.line-1,ch:$.start.column},ne={line:$.end.line-1,ch:$.end.column},ee=I.markText(W,ne,{title:$.resolvedId,attributes:{"data-external":String($.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});b.push(ee);const Z=P($.totalTime+($.transformTime||0));_?.length||Z.classList.add("-mt-5"),v.push(Z),I.addWidget({line:$.end.line-1,ch:$.end.column+1},Z,!1)})}}function R(){o("back")}return Cw("Escape",()=>{o("close")}),(I,_)=>{const $=vr("tooltip");return ie(),ve("div",mme,[X("div",vme,[X("div",yme,[X("p",null,[e.canUndo?at((ie(),Ve(_t,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:_[0]||(_[0]=W=>R())},null,512)),[[$,"Go Back",void 0,{bottom:!0}]]):He("",!0),_[7]||(_[7]=Qe(" Module Info ",-1)),Ne(K(Qi),{class:"inline","cursor-help":""},{popper:We(()=>[Qe(" This is module is "+Re(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(ie(),ve(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(ie(),ve(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:We(()=>[Ne(Cs,{type:"custom","ml-1":"",style:zt({backgroundColor:`var(--color-node-${e.type})`})},{default:We(()=>[Qe(Re(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(ie(),Ve(K(Qi),{key:1,class:"inline","cursor-help":""},{popper:We(()=>[..._[4]||(_[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:We(()=>[Ne(Cs,{type:"tip","ml-2":""},{default:We(()=>[..._[3]||(_[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):He("",!0),h.value===!1?(ie(),Ve(K(Qi),{key:2,class:"inline","cursor-help":""},{popper:We(()=>[..._[6]||(_[6]=[X("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),X("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:We(()=>[Ne(Cs,{type:"warning","ml-2":""},{default:We(()=>[..._[5]||(_[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):He("",!0)]),X("div",bme,[c.value.selfTime!=null&&c.value.external!==!0?(ie(),Ve(K(Qi),{key:0,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(c.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(c.value.selfTime)},{default:We(()=>[Qe(" self: "+Re(K(Fo)(c.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0),c.value.totalTime!=null?(ie(),Ve(K(Qi),{key:1,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(c.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(c.value.totalTime)},{default:We(()=>[Qe(" total: "+Re(K(Fo)(c.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0),K(s)&&"transformTime"in K(s)&&K(s).transformTime?(ie(),Ve(K(Qi),{key:2,class:"inline","cursor-help":""},{popper:We(()=>[Qe(" It took "+Re(K(Ed)(K(s).transformTime))+" to transform this module by Vite plugins. ",1)]),default:We(()=>[Ne(Cs,{type:K(Xc)(K(s).transformTime)},{default:We(()=>[Qe(" transform: "+Re(K(Fo)(K(s).transformTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0)])]),X("p",wme,Re(e.id),1),Ne(_t,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:_[1]||(_[1]=W=>o("close"))})]),K(s)?(ie(),ve(nt,{key:1},[X("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[_[8]||(_[8]=X("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(ie(),ve("div",kme," Transformed ")):He("",!0),(ie(),Ve(tu,ki({key:e.id,"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:f.value,onCodemirror:_[2]||(_[2]=W=>M(W))}),null,16,["model-value","mode"])),p.value!=null?(ie(),Ve(tu,ki({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):He("",!0)],2),g.value.mappings!==""?(ie(),ve("div",Sme,[X("div",_me," Source map (v"+Re(g.value.version)+") ",1),Ne(tu,ki({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):He("",!0)],64)):(ie(),ve("div",xme," No transform result found for this module. "))])}}}),Cme={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Eme={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},Ame={flex:"~ gap-1","items-center":"","select-none":""},Lme={class:"pr-2"},Mme=["id","checked","onChange"],Nme=["for"],Ome={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},Pme=rt({__name:"ViewModuleGraph",props:da({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Yu(e,"modelValue"),{graph:o}=v_(t),s=Ge(),c=Ge(!1),f=Ge(),d=qE(f),h=Ge(),p=Ge(null),g=Ft(o.value),v=ke(()=>{let j="";const N=pr.value?.importDurations||{};for(const O in N){const{totalTime:C}=N[O];if(C>=500){j="text-red";break}else C>=100&&(j="text-orange")}return j}),b=Ge(ei.value?.experimental?.printImportBreakdown??v.value==="text-red");Mi(()=>{g.value=L(o.value,null,2),ne()}),Ia(()=>{h.value?.shutdown()}),xt(o,()=>{g.value=L(o.value,p.value,2),ne()});function w(){g.value=o.value,ne()}function E(){b.value=!b.value}function L(j,N,O=2){if(!j.nodes.length||j.nodes.length<=50)return j;const C=new Map;j.nodes.forEach(Ae=>C.set(Ae.id,new Set)),j.links.forEach(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),je=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);C.get(Ke)?.add(je),C.get(je)?.add(Ke)});let k;if(N)k=[N];else{const Ae=new Set(j.links.map(je=>typeof je.target=="object"?je.target.id:String(je.target))),Ke=j.nodes.filter(je=>je.type==="inline"&&!Ae.has(je.id));k=Ke.length>0?[Ke[0].id]:[j.nodes[0].id]}const z=new Set,B=k.map(Ae=>({id:Ae,level:0}));for(;B.length>0;){const{id:Ae,level:Ke}=B.shift();z.has(Ae)||Ke>O||(z.add(Ae),Ke{z.has(Fe)||B.push({id:Fe,level:Ke+1})}))}const ce=new Map(j.nodes.map(Ae=>[Ae.id,Ae])),be=Array.from(z).map(Ae=>ce.get(Ae)).filter(Ae=>Ae!==void 0),Se=new Map(be.map(Ae=>[Ae.id,Ae])),Be=j.links.map(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),je=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);if(z.has(Ke)&&z.has(je)){const Fe=Se.get(Ke),Pe=Se.get(je);if(Fe&&Pe)return{...Ae,source:Fe,target:Pe}}return null}).filter(Ae=>Ae!==null);return{nodes:be,links:Be}}function P(j,N){h.value?.filterNodesByType(N,j)}function M(j,N){f.value={id:j,type:N},c.value=!0}function R(){d.undo()}function I(){c.value=!1,d.clear()}function _(j){p.value=j,g.value=L(o.value,j,2),W(),ne()}function $(){p.value=null,g.value=L(o.value,null,2),W(),ne()}function W(){const j=g.value.nodes.map(C=>{let k,z;return C.id===p.value?(k="var(--color-node-focused)",z="var(--color-node-focused)"):C.type==="inline"?(k=C.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",z=k):(k="var(--color-node-external)",z="var(--color-node-external)"),Ip({...C,color:k,label:C.label?{...C.label,color:z}:C.label})}),N=new Map(j.map(C=>[C.id,C])),O=g.value.links.map(C=>{const k=typeof C.source=="object"?C.source.id:String(C.source),z=typeof C.target=="object"?C.target.id:String(C.target);return{...C,source:N.get(k),target:N.get(z)}});g.value={nodes:j,links:O}}function ne(j=!1){if(h.value?.shutdown(),j&&!r.value){r.value=!0;return}if(!g.value||!s.value)return;const N=g.value.nodes.length;let O=1,C=.5;N>300?(O=.3,C=.2):N>200?(O=.4,C=.3):N>100?(O=.5,C=.3):N>50&&(O=.7,O=.4),h.value=new qge(s.value,g.value,hge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:k,newWidth:z})=>k===0&&z===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:i1.Arrow(2),modifiers:{node:G},positionInitializer:o.value.nodes.length===1?Eh.Centered:Eh.Randomized,zoom:{initial:O,min:C,max:1.5}}))}const ee=j=>j.button===0,Z=j=>j.button===2;function G(j){if(gr)return;let N=0,O=0,C=0,k=!1;j.on("pointerdown",(z,B)=>{!B.x||!B.y||(k=Z(z),!(!ee(z)&&!k)&&(N=B.x,O=B.y,C=Date.now()))}).on("pointerup",(z,B)=>{if(!B.x||!B.y)return;const ce=Z(z);if(!ee(z)&&!ce||Date.now()-C>500)return;const be=B.x-N,Se=B.y-O;be**2+Se**2<100&&(!ce&&!z.shiftKey?M(B.id,B.type):(ce||z.shiftKey)&&(z.preventDefault(),B.type==="inline"&&_(B.id)))}).on("contextmenu",z=>{z.preventDefault()})}return(j,N)=>{const O=vr("tooltip");return ie(),ve("div",Cme,[X("div",null,[X("div",Eme,[X("div",Ame,[X("div",Lme,Re(g.value.nodes.length)+"/"+Re(K(o).nodes.length)+" "+Re(g.value.nodes.length===1?"module":"modules"),1),at(X("input",{id:"hide-node-modules","onUpdate:modelValue":N[0]||(N[0]=C=>r.value=C),type:"checkbox"},null,512),[[Zb,r.value]]),N[9]||(N[9]=X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(ie(!0),ve(nt,null,$n(h.value?.nodeTypes.sort(),C=>(ie(),ve("div",{key:C,flex:"~ gap-1","items-center":"","select-none":""},[X("input",{id:`type-${C}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(C),onChange:k=>P(C,k.target.checked)},null,40,Mme),X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${C}`,"border-b-2":"",style:zt({"border-color":`var(--color-node-${C})`})},Re(C)+" Modules",13,Nme)]))),128)),N[10]||(N[10]=X("div",{"flex-auto":""},null,-1)),N[11]||(N[11]=X("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[X("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),X("div",null,[at(Ne(_t,{icon:"i-carbon-notebook",class:ot(v.value),onClick:N[1]||(N[1]=C=>E())},null,8,["class"]),[[O,`${b.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),X("div",null,[at(Ne(_t,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:N[2]||(N[2]=C=>w())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),X("div",null,[at(Ne(_t,{icon:"i-carbon-reset",onClick:N[3]||(N[3]=C=>$())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),b.value?(ie(),ve("div",Ome,[Ne(gme,{onSelect:N[4]||(N[4]=(C,k)=>M(C,k))})])):He("",!0),X("div",{ref_key:"el",ref:s},null,512),Ne(Dp,{modelValue:c.value,"onUpdate:modelValue":N[8]||(N[8]=C=>c.value=C),direction:"right"},{default:We(()=>[f.value?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(Tme,{id:f.value.id,"project-name":e.projectName,type:f.value.type,"can-undo":K(d).undoStack.value.length>1,onClose:N[5]||(N[5]=C=>I()),onSelect:N[6]||(N[6]=(C,k)=>M(C,k)),onBack:N[7]||(N[7]=C=>R())},null,8,["id","project-name","type","can-undo"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])])}}});function h1(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function p1(){const e=Ge(!1),t=Ge(Date.now()),r=Ge(),o=ke(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Rme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},$me={"p-4":"",relative:"",border:"base b"},Ime={op50:"","font-mono":"","text-sm":""},Dme={op50:"","font-mono":"","text-sm":""},zme={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Fme=["src","alt"],Hme={key:1},Bme=rt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Cw("Escape",()=>{r("close")}),(o,s)=>(ie(),ve("div",Rme,[X("div",$me,[s[1]||(s[1]=X("p",null,"Screenshot error",-1)),X("p",Ime,Re(e.file),1),X("p",Dme,Re(e.name),1),Ne(_t,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),X("div",zme,[e.url?(ie(),ve("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,Fme)):(ie(),ve("div",Hme," Something was wrong, the image cannot be resolved. "))])]))}}),g1=Ni(Bme,[["__scopeId","data-v-08ce44b7"]]),Wme={class:"scrolls scrolls-rounded task-error"},qme=["onClickPassive"],jme=["innerHTML"],Ume=rt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=ke(()=>wp(ol.value)),s=ke(()=>!!t.error?.diff),c=ke(()=>t.error.diff?o.value.toHtml(oa(t.error.diff)):void 0);function f(d){return oce(d.file,t.filename)?pce(t.fileId,d):bp(d.file,d.line,d.column)}return(d,h)=>{const p=vr("tooltip");return ie(),ve("div",Wme,[X("pre",null,[X("b",null,Re(e.error.name),1),Qe(": "+Re(e.error.message),1)]),(ie(!0),ve(nt,null,$n(e.error.stacks,(g,v)=>(ie(),ve("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[X("pre",null," - "+Re(r(g.file))+":"+Re(g.line)+":"+Re(g.column),1),at(X("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(g)},null,40,qme),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(ie(),ve("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,jme)):He("",!0)])}}}),m1=Ni(Ume,[["__scopeId","data-v-1fcfe7a4"]]),Vme={"h-full":"",class:"scrolls"},Gme=["id"],Kme={flex:"~ gap-2 items-center"},Xme={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Yme=["innerHTML"],Zme={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Jme=rt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(g=>r(g,p+1))]}const o=ke(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],g=h.result;if(g?.errors?.[0]){const b={id:h.id,file:h,name:h.name,fullName:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(b)}return p.length>0?dx(ol.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=p1();return(h,p)=>{const g=vr("tooltip");return ie(),ve("div",Vme,[o.value.length?(ie(!0),ve(nt,{key:0},$n(o.value,v=>(ie(),ve("div",{id:v.id,key:v.id},[X("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:zt({"margin-left":`${v.result?.htmlError?.5:2*v.level+.5}rem`})},[X("div",Kme,[X("span",null,Re(v.name),1),K(Zn)&&v.meta?.failScreenshotPath?(ie(),ve(nt,{key:0},[at(Ne(_t,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>K(f)(v)},null,8,["onClick"]),[[g,"View screenshot error",void 0,{bottom:!0}]]),at(Ne(_t,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>K(h1)(v)},null,8,["onClick"]),[[g,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):He("",!0)]),v.result?.htmlError?(ie(),ve("div",Xme,[X("pre",{innerHTML:v.result.htmlError},null,8,Yme)])):v.result?.errors?(ie(!0),ve(nt,{key:1},$n(v.result.errors,(b,w)=>(ie(),Ve(m1,{key:w,error:b,filename:e.file.name,root:K(ei).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):He("",!0)],4)],8,Gme))),128)):(ie(),ve("div",Zme," All tests passed in this file ")),K(Zn)?(ie(),Ve(Dp,{key:2,modelValue:K(c),"onUpdate:modelValue":p[1]||(p[1]=v=>Mt(c)?c.value=v:null),direction:"right"},{default:We(()=>[K(s)?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(g1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:p[0]||(p[0]=v=>c.value=!1)},null,8,["file","name","url"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])):He("",!0)])}}}),Qme=Ni(Jme,[["__scopeId","data-v-9d875d6e"]]),eve=["href","referrerPolicy"],tve=["src"],nve=rt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=ke(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Ma(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(ie(),ve("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:K(d1)(e.annotation.attachment)?"no-referrer":void 0},[X("img",{src:r.value},null,8,tve)],8,eve)):He("",!0)}}),rve={class:"flex flex-col gap-4"},ive={key:0},ove=rt({__name:"ArtifactTemplate",setup(e){const t=yb();return(r,o)=>(ie(),ve("article",rve,[X("h1",null,[Dt(r.$slots,"title")]),K(t).message?(ie(),ve("p",ive,[Dt(r.$slots,"message")])):He("",!0),Dt(r.$slots,"default")]))}}),v1=Symbol("tabContext"),Ru={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},sve={class:"flex flex-col items-center gap-6"},lve={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},ave=["id","aria-selected","aria-controls","onClick"],cve=rt({__name:"SmallTabs",setup(e){const t=Ge(null),r=Ge([]),o=Yh();return dr(v1,{id:o,activeTab:t,registerTab:s=>{r.value.some(({id:c})=>c===s.id)||r.value.push(s),r.value.length===1&&(t.value=s.id)},unregisterTab:s=>{const c=r.value.findIndex(({id:f})=>f===s.id);c>-1&&r.value.splice(c,1),t.value===s.id&&(t.value=r.value[0]?.id??null)}}),(s,c)=>(ie(),ve("div",sve,[X("div",lve,[(ie(!0),ve(nt,null,$n(r.value,f=>(ie(),ve("button",{id:K(Ru).tab(f.id,K(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":K(Ru).tabpanel(f.id,K(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Re(f.title),9,ave))),128))]),Dt(s.$slots,"default")]))}}),uve=["id","aria-labelledby","hidden"],Bc=rt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=pn(v1);if(!r)throw new Error("TabPane must be used within Tabs");const o=Yh(),s=ke(()=>r.activeTab.value===o);return Mi(()=>{r.registerTab({...t,id:o})}),Ia(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(ie(),ve("div",{id:K(Ru).tabpanel(K(o),K(r).id),role:"tabpanel","aria-labelledby":K(Ru).tab(K(o),K(r).id),hidden:!s.value,class:"max-w-full"},[Dt(c.$slots,"default")],8,uve))}}),y1=rt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,')}")`;return(r,o)=>(ie(),ve("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:zt({backgroundImage:t})},[Dt(r.$slots,"default")],4))}}),fve=["href","referrerPolicy"],dve=["src"],zd=rt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=ke(()=>Mh(e.attachment));return(r,o)=>(ie(),Ve(y1,null,{default:We(()=>[X("a",{target:"_blank",href:t.value,referrerPolicy:K(d1)(e.attachment)?"no-referrer":void 0},[X("img",{src:t.value},null,8,dve)],8,fve)]),_:1}))}}),hve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},pve=["src"],gve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},mve=["src"],vve=["id"],yve=["for"],bve=rt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=ke(()=>Mh(e.reference)),r=ke(()=>Mh(e.actual)),o=ke(()=>Math.max(e.reference.width,e.actual.width)),s=ke(()=>Math.max(e.reference.height,e.actual.height)),c=Ge(50),f=Yh();return(d,h)=>(ie(),Ve(y1,null,{default:We(()=>[X("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:zt({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[X("div",hve,[X("img",{src:t.value},null,8,pve)]),X("div",gve,[X("img",{src:r.value},null,8,mve)]),h[1]||(h[1]=X("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),at(X("input",{id:K(f),"onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,vve),[[Yb,c.value]]),X("output",{for:K(f),class:"sr-only"}," Showing "+Re(c.value)+"% reference, "+Re(100-c.value)+"% actual ",9,yve)],4)]),_:1}))}}),wve=rt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=ke(()=>({diff:e.regression.attachments.find(r=>r.name==="diff"),reference:e.regression.attachments.find(r=>r.name==="reference"),actual:e.regression.attachments.find(r=>r.name==="actual")}));return(r,o)=>(ie(),Ve(ove,null,{title:We(()=>[...o[0]||(o[0]=[Qe(" Visual Regression ",-1)])]),message:We(()=>[Qe(Re(e.regression.message),1)]),default:We(()=>[Ne(cve,null,{default:We(()=>[t.value.diff?(ie(),Ve(Bc,{key:t.value.diff.path,title:"Diff"},{default:We(()=>[Ne(zd,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):He("",!0),t.value.reference?(ie(),Ve(Bc,{key:t.value.reference.path,title:"Reference"},{default:We(()=>[Ne(zd,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):He("",!0),t.value.actual?(ie(),Ve(Bc,{key:t.value.actual.path,title:"Actual"},{default:We(()=>[Ne(zd,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):He("",!0),t.value.reference&&t.value.actual?(ie(),Ve(Bc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:We(()=>[Ne(bve,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):He("",!0)]),_:1})]),_:1}))}}),xve={"h-full":"",class:"scrolls"},kve={key:0},Sve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},_ve={flex:"~ gap-2 items-center"},Tve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Cve=["innerHTML"],Eve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Ave={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Lve={class:"flex gap-2","overflow-hidden":""},Mve={class:"font-bold","ws-nowrap":"",truncate:""},Nve=["href","download"],Ove=["onClick"],Pve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Rve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},$ve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},Ive=["onClick"],Dve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},zve={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},Fve={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Hve={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Bve=rt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=ke(()=>!t.test.result||!t.test.result.errors?.length?null:dx(ol.value,[t.test])[0]);function o(v){return gce(t.test,v)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=p1();function h(v){return`${af(ei.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=ke(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,b)=>{const w=vr("tooltip");return ie(),ve("div",xve,[r.value?(ie(),ve("div",kve,[X("div",Sve,[X("div",_ve,[K(Zn)&&e.test.meta?.failScreenshotPath?(ie(),ve(nt,{key:0},[at(Ne(_t,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=E=>K(f)(e.test))},null,512),[[w,"View screenshot error",void 0,{bottom:!0}]]),at(Ne(_t,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=E=>K(h1)(e.test))},null,512),[[w,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):He("",!0)]),e.test.result?.htmlError?(ie(),ve("div",Tve,[X("pre",{innerHTML:e.test.result.htmlError},null,8,Cve)])):e.test.result?.errors?(ie(!0),ve(nt,{key:1},$n(e.test.result.errors,(E,L)=>(ie(),Ve(m1,{key:L,"file-id":e.test.file.id,error:E,filename:e.test.file.name,root:K(ei).root},null,8,["file-id","error","filename","root"]))),128)):He("",!0)])])):(ie(),ve("div",Eve," All tests passed in this file ")),e.test.annotations.length?(ie(),ve(nt,{key:2},[b[5]||(b[5]=X("h1",{"m-2":""}," Test Annotations ",-1)),(ie(!0),ve(nt,null,$n(e.test.annotations,E=>(ie(),ve("div",{key:E.type+E.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",Ave,[X("div",Lve,[X("span",Mve,Re(E.type),1),E.attachment&&!E.attachment.contentType?.startsWith("image/")?(ie(),ve("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:K(Ma)(E.attachment),download:K(f1)(E.message,E.attachment.contentType)},[...b[4]||(b[4]=[X("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,Nve)):He("",!0)]),X("div",null,[E.location&&E.location.file===e.test.file.filepath?at((ie(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(E.location)},[Qe(Re(h(E.location)),1)],8,Ove)),[[w,"Open in Editor",void 0,{bottom:!0}]]):E.location&&E.location.file!==e.test.file.filepath?(ie(),ve("span",Pve,Re(h(E.location)),1)):He("",!0)])]),X("div",Rve,Re(E.message),1),Ne(nve,{annotation:E},null,8,["annotation"])]))),128))],64)):He("",!0),e.test.artifacts.length?(ie(),ve(nt,{key:3},[b[6]||(b[6]=X("h1",{"m-2":""}," Test Artifacts ",-1)),(ie(!0),ve(nt,null,$n(e.test.artifacts,(E,L)=>(ie(),ve("div",{key:E.type+L,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",$ve,[X("div",null,[E.location&&E.location.file===e.test.file.filepath?at((ie(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:P=>o(E.location)},[Qe(Re(h(E.location)),1)],8,Ive)),[[w,"Open in Editor",void 0,{bottom:!0}]]):E.location&&E.location.file!==e.test.file.filepath?(ie(),ve("span",Dve,Re(h(E.location)),1)):He("",!0)])]),E.type==="internal:toMatchScreenshot"&&E.kind==="visual-regression"?(ie(),Ve(wve,{key:0,regression:E},null,8,["regression"])):He("",!0)]))),128))],64)):He("",!0),g.value.length?(ie(),ve(nt,{key:4},[b[7]||(b[7]=X("h1",{"m-2":""}," Test Meta ",-1)),X("div",zve,[(ie(!0),ve(nt,null,$n(g.value,([E,L])=>(ie(),ve(nt,{key:E},[X("div",Fve,Re(E),1),X("pre",Hve,Re(L),1)],64))),128))])],64)):He("",!0),K(Zn)?(ie(),Ve(Dp,{key:5,modelValue:K(c),"onUpdate:modelValue":b[3]||(b[3]=E=>Mt(c)?c.value=E:null),direction:"right"},{default:We(()=>[K(s)?(ie(),Ve(np,{key:0},{default:We(()=>[Ne(g1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:b[2]||(b[2]=E=>c.value=!1)},null,8,["file","name","url"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])):He("",!0)])}}}),Wve=Ni(Bve,[["__scopeId","data-v-1a68630b"]]),qve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},jve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Uve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Vve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Gve={class:"flex text-lg"},Kve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Xve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Yve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Zve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Jve=["flex-1"],l0=rt({__name:"FileDetails",setup(e){const t=Ge({nodes:[],links:[]}),r=Ge(!1),o=Ge(!1),s=Ge(!1),c=Ge(void 0),f=Ge(!0),d=ke(()=>Bs.value?ft.state.idMap.get(Bs.value):void 0),h=ke(()=>{const _=Gt.value;if(!(!_||!_.filepath))return{filepath:_.filepath,projectName:_.file.projectName||""}}),p=ke(()=>Gt.value&&yp(Gt.value)),g=ke(()=>!!Gt.value?.meta?.typecheck);function v(){const _=Gt.value?.filepath;_&&fetch(`/__open-in-editor?file=${encodeURIComponent(_)}`)}function b(_){_==="graph"&&(o.value=!0),hn.value=_}const w=ke(()=>Tx.value?.reduce((_,{size:$})=>_+$,0)??0);function E(_){r.value=_}const L=/[/\\]node_modules[/\\]/;async function P(_=!1){if(!(s.value||h.value?.filepath===c.value&&!_)){s.value=!0,await Et();try{const $=h.value;if(!$){s.value=!1;return}if(_||!c.value||$.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let W=await ft.rpc.getModuleGraph($.projectName,$.filepath,!!Zn);f.value&&(gr&&(W=typeof window.structuredClone<"u"?window.structuredClone(W):KA(W)),W.inlined=W.inlined.filter(ne=>!L.test(ne)),W.externalized=W.externalized.filter(ne=>!L.test(ne))),t.value=Gge(W,$.filepath),c.value=$.filepath}b("graph")}finally{await new Promise($=>setTimeout($,100)),s.value=!1}}}hp(()=>[h.value,hn.value,f.value],([,_,$],W)=>{_==="graph"&&P(W&&$!==W[2])},{debounce:100,immediate:!0});const M=ke(()=>{const _=Gt.value?.file.projectName||"";return Oe.colors.get(_)||Qw(Gt.value?.file.projectName)}),R=ke(()=>ex(M.value)),I=ke(()=>{const _=Bs.value;if(!_)return Gt.value?.name;const $=[];let W=ft.state.idMap.get(_);for(;W;)$.push(W.name),W=W.suite?W.suite:W===W.file?void 0:W.file;return $.reverse().join(" > ")});return(_,$)=>{const W=vr("tooltip");return K(Gt)?(ie(),ve("div",qve,[X("div",null,[X("div",jve,[Ne(c1,{state:K(Gt).result?.state,mode:K(Gt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?at((ie(),ve("div",Uve,null,512)),[[W,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):He("",!0),K(Gt)?.file.projectName?(ie(),ve("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:zt({backgroundColor:M.value,color:R.value})},Re(K(Gt).file.projectName),5)):He("",!0),X("div",Vve,Re(I.value),1),X("div",Gve,[K(gr)?He("",!0):at((ie(),Ve(_t,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!K(Gt)?.filepath,onClick:v},null,8,["disabled"])),[[W,"Open in editor",void 0,{bottom:!0}]])])]),X("div",Kve,[X("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==null}]),"data-testid":"btn-report",onClick:$[0]||($[0]=ne=>b(null))},[...$[5]||($[5]=[X("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),X("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="graph"}]),onClick:$[1]||($[1]=ne=>b("graph"))},[s.value?(ie(),ve("span",Xve)):(ie(),ve("span",Yve)),$[6]||($[6]=Qe(" Module Graph ",-1))],2),X("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="editor"}]),onClick:$[2]||($[2]=ne=>b("editor"))},[$[7]||($[7]=X("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Re(r.value?"* ":"")+"Code ",1)],2),X("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":K(hn)==="console",op20:K(hn)!=="console"&&w.value===0}]),onClick:$[3]||($[3]=ne=>b("console"))},[$[8]||($[8]=X("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Re(w.value)+") ",1)],2)])]),X("div",Zve,[o.value?(ie(),ve("div",{key:0,"flex-1":K(hn)==="graph"&&""},[at(Ne(Pme,{modelValue:f.value,"onUpdate:modelValue":$[4]||($[4]=ne=>f.value=ne),graph:t.value,"data-testid":"graph","project-name":K(Gt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ro,K(hn)==="graph"&&!s.value]])],8,Jve)):He("",!0),K(hn)==="editor"?(ie(),Ve(cme,{key:K(Gt).id,file:K(Gt),"data-testid":"editor",onDraft:E},null,8,["file"])):K(hn)==="console"?(ie(),Ve(sme,{key:2,file:K(Gt),"data-testid":"console"},null,8,["file"])):!K(hn)&&!d.value&&K(Gt)?(ie(),Ve(Qme,{key:3,file:K(Gt),"data-testid":"report"},null,8,["file"])):!K(hn)&&d.value?(ie(),Ve(Wve,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):He("",!0)])])):He("",!0)}}}),Qve=""+new URL("../favicon.svg",import.meta.url).href;function eye(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let nu;function Nh(){Nh.init||(Nh.init=!0,nu=eye()!==-1)}var pf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Nh(),Et(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",nu&&this.$el.appendChild(e),e.data="about:blank",nu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!nu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const tye=lb();ob("data-v-b329ee4c");const nye={class:"resize-observer",tabindex:"-1"};sb();const rye=tye((e,t,r,o,s,c)=>(ie(),Ve("div",nye)));pf.render=rye;pf.__scopeId="data-v-b329ee4c";pf.__file="src/components/ResizeObserver.vue";function ru(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(t){return typeof t}:ru=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function iye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oye(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,o=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v1){var p=d.find(function(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Et(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function w1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new hye(e,o,r);e._vue_visibilityState=s}}function pye(e,t,r){var o=t.value,s=t.oldValue;if(!b1(o,s)){var c=e._vue_visibilityState;if(!o){x1(e);return}c?c.createObserver(o,r):w1(e,{value:o},r)}}function x1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var gye={beforeMount:w1,updated:pye,unmounted:x1},mye={itemsLimit:1e3},vye=/(auto|scroll)/;function k1(e,t){return e.parentNode===null?t:k1(e.parentNode,t.concat([e]))}var Fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},yye=function(t){return Fd(t,"overflow")+Fd(t,"overflow-y")+Fd(t,"overflow-x")},bye=function(t){return vye.test(yye(t))};function c0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=k1(e.parentNode,[]),r=0;r{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Uu({id:Sye++,index:t,used:!0,key:o,type:s}),f=Gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let L,P,M,R,I;if(!p)L=P=R=I=M=0;else if(this.$_prerender)L=R=0,P=I=Math.min(this.prerender,h.length),M=null;else{const G=this.getScroll();if(t){let O=G.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&OG.start&&(k=z),z=~~((C+k)/2);while(z!==B);for(z<0&&(z=0),L=z,M=g[p-1].accumulator,P=z;Pp&&(P=p)),R=L;Rp&&(P=p),R<0&&(R=0),I>p&&(I=p),M=Math.ceil(p/o)*r}}P-L>mye.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let _;const $=L<=this.$_endIndex&&P>=this.$_startIndex;if($)for(let G=0,j=w.length;G=P)&&this.unuseView(_));const W=$?null:new Map;let ne,ee,Z;for(let G=L;G=N.length)&&(_=this.addView(w,G,ne,j,ee),this.unuseView(_,!0),N=b.get(ee)),_=N[Z],W.set(ee,Z+1)),v.delete(_.nr.key),_.nr.used=!0,_.nr.index=G,_.nr.key=j,_.nr.type=ee,v.set(j,_),O=!0;else if(!_.nr.used&&(_.nr.used=!0,O=!0,N)){const C=N.indexOf(_);C!==-1&&N.splice(C,1)}_.item=ne,O&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(_.position=g[G-1].accumulator,_.offset=0):(_.position=Math.floor(G/o)*r,_.offset=G%o*s)}return this.$_startIndex=L,this.$_endIndex=P,this.emitUpdate&&this.$emit("update",L,P,R,I),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:$}},getListenerTarget(){let e=c0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Rh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=c0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const _ye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Tye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Cye(e,t,r,o,s,c){const f=Go("ResizeObserver"),d=vr("observe-visibility");return at((ie(),ve("div",{class:ot(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(ie(),ve("div",_ye,[Dt(e.$slots,"before")],512)):He("v-if",!0),(ie(),Ve(Xd(r.listTag),{ref:"wrapper",style:zt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:We(()=>[(ie(!0),ve(nt,null,$n(s.pool,h=>(ie(),Ve(Xd(r.itemTag),ki({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},q_(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:We(()=>[Dt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Dt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ie(),ve("div",Tye,[Dt(e.$slots,"after")],512)):He("v-if",!0),Ne(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}zp.render=Cye;zp.__file="src/components/RecycleScroller.vue";function Eye(e){const t=ke(()=>hh.value?!1:!it.onlyTests),r=ke(()=>Vn.value===""),o=Ge(Vn.value);hp(()=>Vn.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){Vn.value="",h&&e.value?.focus()}function c(h){it.failed=!1,it.success=!1,it.skipped=!1,it.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,g,v,b){Qs.value&&(gn.value.search=h?.trim()??"",gn.value.failed=p,gn.value.success=g,gn.value.skipped=v,gn.value.onlyTests=b)}return xt(()=>[o.value,it.failed,it.success,it.skipped,it.onlyTests],([h,p,g,v,b])=>{d(h,p,g,v,b),Oe.filterNodes()},{flush:"post"}),xt(()=>Dr.value.length,h=>{h&&(gn.value.expandAll=void 0)},{flush:"post"}),{initialized:Qs,filter:it,search:Vn,disableFilter:t,isFiltered:Zw,isFilteredByStatus:hh,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:cf,testsTotal:JA,uiEntries:Jn}}const Aye=["open"],Lye=rt({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ge(!0);return(r,o)=>(ie(),ve("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[X("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Dt(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Dt(r.$slots,"default")],40,Aye))}}),Mye={"flex-1":"","ms-2":"","select-none":""},Wc=rt({__name:"FilterStatus",props:da({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue");return(r,o)=>(ie(),ve("label",ki({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Gc(s=>t.value=!t.value,["prevent"]))}),[X("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),at(X("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[Zb,t.value]]),X("span",Mye,Re(e.label),1)],16))}}),Nye={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Oye=rt({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(ie(),ve("button",Nye,[X("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Pye=["aria-label","data-current"],Rye={key:1,"w-4":""},$ye={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Iye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Dye={"text-sm":"",truncate:"","font-light":""},zye=["text","innerHTML"],Fye={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Hye={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Bye={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Wye={key:1},qye=rt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=ke(()=>ft.state.idMap.get(e.taskId)),r=ke(()=>{if(gr)return!1;const P=t.value;return P&&yp(P)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Oe.collapseNode(e.taskId):Oe.expandNode(e.taskId)}async function s(P){e.onItemClick?.(P),Os.value&&(Cu.value=!0,await Et()),e.type==="file"?await _p([P.file]):await Xce(P)}function c(P){return ft.rpc.updateSnapshot(P.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(P,M)=>`${e.taskId}-${M}`)),d=ke(()=>{const P=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${P.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>Yw(e.name)),g=ke(()=>{const P=ZA.value,M=p.value;return P?M.replace(P,R=>`${R}`):M}),v=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>v.value?"color-red5 dark:color-#f43f5e":null);function E(){const P=t.value;e.type==="file"?e.onItemClick?.(P):gx(P)}const L=ke(()=>ex(e.projectNameColor));return(P,M)=>{const R=vr("tooltip");return t.value?(ie(),ve("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:zt(d.value),"aria-label":e.name,"data-current":e.current,onClick:M[2]||(M[2]=I=>o())},[e.indent>0?(ie(!0),ve(nt,{key:0},$n(f.value,I=>(ie(),ve("div",{key:I,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):He("",!0),e.type==="file"||e.type==="suite"?(ie(),ve("div",Rye,[X("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):He("",!0),Ne(c1,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),X("div",$ye,[e.type==="file"&&e.typecheck?at((ie(),ve("div",Iye,null,512)),[[R,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):He("",!0),X("span",Dye,[e.type==="file"&&e.projectName?(ie(),ve("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:zt({backgroundColor:e.projectNameColor,color:L.value})},Re(e.projectName),5)):He("",!0),X("span",{text:e.state==="fail"?"red-500":"",innerHTML:g.value},null,8,zye)]),typeof e.duration=="number"?(ie(),ve("span",Fye,Re(e.duration>0?e.duration:"< 1")+"ms ",1)):He("",!0)]),X("div",Hye,[!K(gr)&&r.value?at((ie(),Ve(Oye,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=Gc(I=>c(t.value),["prevent","stop"]))},null,512)),[[R,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):He("",!0),Ne(K(Qi),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:We(()=>[v.value?(ie(),ve("div",Bye,[M[5]||(M[5]=X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),X("div",null,[Qe(Re(b.value)+": this feature is not available, you have disabled ",1),M[3]||(M[3]=X("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=Qe(" in your configuration file.",-1))]),M[6]||(M[6]=X("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(ie(),ve("div",Wye,Re(b.value),1))]),default:We(()=>[Ne(_t,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Gc(E,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),K(gr)?He("",!0):at((ie(),Ve(_t,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=Gc(I=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[R,h.value,void 0,{bottom:!0}]])])],12,Pye)):He("",!0)}}}),jye=Ni(qye,[["__scopeId","data-v-58d301d8"]]),Uye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Vye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Gye=["op"],Kye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Xye={"text-red5":""},Yye={"text-yellow5":""},Zye={"text-green5":""},Jye={class:"text-purple5:50"},Qye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},e0e=["disabled"],t0e=["disabled"],n0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},r0e=rt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>ei.value.includeTaskLocation),s=Ge(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:g,disableClearSearch:v,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:L,testsTotal:P,uiEntries:M}=Eye(s),R=Ge("grid-cols-2"),I=Ge("grid-col-span-2"),_=Ge();return Ow(()=>_.value,([{contentRect:$}])=>{$.width<420?(R.value="grid-cols-2",I.value="grid-col-span-2"):(R.value="grid-cols-4",I.value="grid-col-span-4")}),($,W)=>{const ne=vr("tooltip");return ie(),ve("div",{ref_key:"testExplorerRef",ref:_,h:"full",flex:"~ col"},[X("div",null,[X("div",Uye,[Dt($.$slots,"header",{filteredFiles:K(p)||K(g)?K(L):void 0})]),X("div",Vye,[W[13]||(W[13]=X("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),at(X("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":W[0]||(W[0]=ee=>Mt(d)?d.value=ee:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:K(d).length?"100":"50",onKeydown:[W[1]||(W[1]=ih(ee=>K(w)(!1),["esc"])),W[2]||(W[2]=ih(ee=>r("run",K(p)||K(g)?K(L):void 0),["enter"]))]},null,40,Gye),[[Yb,K(d)]]),at(Ne(_t,{disabled:K(v),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:W[3]||(W[3]=ee=>K(w)(!0))},null,8,["disabled"]),[[ne,"Clear search",void 0,{bottom:!0}]])]),X("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:ot(R.value)},[X("div",{class:ot(I.value),flex:"~ gap-2 items-center"},[W[14]||(W[14]=X("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),W[15]||(W[15]=X("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),at(Ne(_t,{disabled:K(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:W[4]||(W[4]=ee=>K(E)(!1))},null,8,["disabled"]),[[ne,"Clear Filter",void 0,{bottom:!0}]])],2),Ne(Wc,{modelValue:K(f).failed,"onUpdate:modelValue":W[5]||(W[5]=ee=>K(f).failed=ee),label:"Fail"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).success,"onUpdate:modelValue":W[6]||(W[6]=ee=>K(f).success=ee),label:"Pass"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).skipped,"onUpdate:modelValue":W[7]||(W[7]=ee=>K(f).skipped=ee),label:"Skip"},null,8,["modelValue"]),Ne(Wc,{modelValue:K(f).onlyTests,"onUpdate:modelValue":W[8]||(W[8]=ee=>K(f).onlyTests=ee),label:"Only Tests"},null,8,["modelValue"])],2)]),X("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:W[12]||(W[12]=(...ee)=>K(Bv)&&K(Bv)(...ee))},[Ne(Lye,null,W_({default:We(()=>[(K(p)||K(g))&&K(M).length===0?(ie(),ve(nt,{key:0},[K(c)?(ie(),ve("div",Qye,[W[18]||(W[18]=X("div",{op30:""}," No matched test ",-1)),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(K(v)?null:"hover:op100"),disabled:K(v),onClickPassive:W[9]||(W[9]=ee=>K(w)(!0))}," Clear Search ",42,e0e),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(K(h)?null:"hover:op100"),disabled:K(h),onClickPassive:W[10]||(W[10]=ee=>K(E)(!0))}," Clear Filter ",42,t0e),X("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:W[11]||(W[11]=(...ee)=>K(b)&&K(b)(...ee))}," Clear All ",32)])):(ie(),ve("div",n0e,[...W[19]||(W[19]=[X("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),X("div",{op30:""}," Loading... ",-1)])]))],64)):(ie(),Ve(K(zp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:K(M),buffer:100},{default:We(({item:ee})=>[Ne(jye,{class:ot(["h-28px m-0 p-0",K(po)===ee.id?"bg-active":""]),"task-id":ee.id,expandable:ee.expandable,type:ee.type,current:K(po)===ee.id,indent:ee.indent,name:ee.name,typecheck:ee.typecheck===!0,"project-name":ee.projectName??"","project-name-color":ee.projectNameColor??"",state:ee.state,duration:ee.duration,opened:ee.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[K(c)?{name:"summary",fn:We(()=>[X("div",Kye,[X("span",Xye," FAIL ("+Re(K(P).failed)+") ",1),W[16]||(W[16]=X("span",null,"/",-1)),X("span",Yye," RUNNING ("+Re(K(P).running)+") ",1),X("span",Zye," PASS ("+Re(K(P).success)+") ",1),W[17]||(W[17]=X("span",null,"/",-1)),X("span",Jye," SKIP ("+Re(K(f).onlyTests?K(P).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),i0e={class:"flex text-lg"},o0e=rt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const r=ke(()=>ol.value?"light":"dark");async function o(f){Os.value&&(Cu.value=!0,await Et(),go.value&&(Eu(!0),await Et())),f?.length?await _p(f):await Gce()}function s(){Oe.collapseAllNodes()}function c(){Oe.expandAllNodes()}return(f,d)=>{const h=vr("tooltip");return ie(),Ve(r0e,{border:"r base","on-item-click":K(vce),nested:!0,onRun:o},{header:We(({filteredFiles:p})=>[d[8]||(d[8]=X("img",{"w-6":"","h-6":"",src:Qve,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=X("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),X("div",i0e,[at(Ne(_t,{title:"Collapse tests",disabled:!K(Qs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=g=>s())},null,8,["disabled"]),[[ro,!K(sy)],[h,"Collapse tests",void 0,{bottom:!0}]]),at(Ne(_t,{disabled:!K(Qs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=g=>c())},null,8,["disabled"]),[[ro,K(sy)],[h,"Expand tests",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=g=>K(Eu)(!0))},null,512),[[ro,K(mh)&&!K(Os)||!K(Ws)],[h,"Dashboard",void 0,{bottom:!0}]]),K(mh)&&!K(Os)?(ie(),Ve(K(Qi),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:We(()=>[...d[6]||(d[6]=[X("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),X("div",null,"Coverage enabled but missing html reporter."),X("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:We(()=>[d[7]||(d[7]=X("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):He("",!0),K(Os)?at((ie(),Ve(_t,{key:1,disabled:K(Cu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=g=>K(yce)())},null,8,["disabled"])),[[ro,!K(go)],[h,"Coverage",void 0,{bottom:!0}]]):He("",!0),K(Oe).summary.failedSnapshot&&!K(gr)?at((ie(),Ve(_t,{key:2,icon:"i-carbon:result-old",disabled:!K(Oe).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=g=>K(Oe).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):He("",!0),K(gr)?He("",!0):at((ie(),Ve(_t,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:g=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),at(Ne(_t,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=g=>K(eme)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),s0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},l0e=rt({__name:"ProgressBar",setup(e){const{width:t}=Pw(),r=ke(()=>[Oe.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Ms.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Oe.summary.files;return d>0?t.value*Oe.summary.filesSuccess/d:0}),s=ke(()=>{const d=Oe.summary.files;return d>0?t.value*Oe.summary.filesFailed/d:0}),c=ke(()=>Oe.summary.files-Oe.summary.filesFailed-Oe.summary.filesSuccess),f=ke(()=>{const d=Oe.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ie(),ve("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(r.value)},[X("div",s0e,[X("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ot(r.value),style:zt(`width: ${s.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ot(r.value),style:zt(`left: ${s.value}px; width: ${o.value}px;`)},"   ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ot(r.value),style:zt(`left: ${o.value+s.value}px; width: ${f.value}px;`)},"   ",6)])],2))}}),a0e=Ni(l0e,[["__scopeId","data-v-5320005b"]]),c0e={"h-screen":"","w-screen":"",overflow:"hidden"},u0e=rt({__name:"index",setup(e){const t=mce(),r=Nc(({panes:g})=>{h(),d(g)},0),o=Nc(({panes:g})=>{g.forEach((v,b)=>{qs.value[b]=v.size}),f(g),p()},0),s=Nc(({panes:g})=>{g.forEach((v,b)=>{co.value[b]=v.size}),d(g),p()},0),c=Nc(({panes:g})=>{f(g),h()},0);function f(g){At.navigation=g[0].size,At.details.size=g[1].size}function d(g){At.details.browser=g[0].size,At.details.main=g[1].size}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(ie(),ve(nt,null,[Ne(a0e),X("div",c0e,[Ne(K(Gv),{class:"pt-4px",onResized:K(o),onResize:K(c)},{default:We(()=>[Ne(K(Rc),{size:K(qs)[0]},{default:We(()=>[Ne(o0e)]),_:1},8,["size"]),Ne(K(Rc),{size:K(qs)[1]},{default:We(()=>[K(Zn)?(ie(),Ve(K(Gv),{id:"details-splitpanes",key:"browser-detail",onResize:K(r),onResized:K(s)},{default:We(()=>[Ne(K(Rc),{size:K(co)[0],"min-size":"10"},{default:We(()=>[v[0]||(Ys(-1,!0),(v[0]=Ne(sue)).cacheIndex=0,Ys(1),v[0])]),_:1},8,["size"]),Ne(K(Rc),{size:K(co)[1]},{default:We(()=>[K(t)?(ie(),Ve(Iy,{key:"summary"})):K(go)?(ie(),Ve($y,{key:"coverage",src:K(Oy)},null,8,["src"])):(ie(),Ve(l0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ie(),Ve(BT,{key:"ui-detail"},{default:We(()=>[K(t)?(ie(),Ve(Iy,{key:"summary"})):K(go)?(ie(),Ve($y,{key:"coverage",src:K(Oy)},null,8,["src"])):(ie(),Ve(l0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(cue)],64))}}),f0e=[{name:"index",path:"/",component:u0e,props:!0}];/*! + * vue-router v4.6.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Ls=typeof document<"u";function S1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function d0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&S1(e.default)}const bt=Object.assign;function Hd(e,t){const r={};for(const o in t){const s=t[o];r[o]=zr(s)?s.map(e):e(s)}return r}const la=()=>{},zr=Array.isArray;function u0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const _1=/#/g,h0e=/&/g,p0e=/\//g,g0e=/=/g,m0e=/\?/g,T1=/\+/g,v0e=/%5B/g,y0e=/%5D/g,C1=/%5E/g,b0e=/%60/g,E1=/%7B/g,w0e=/%7C/g,A1=/%7D/g,x0e=/%20/g;function Fp(e){return e==null?"":encodeURI(""+e).replace(w0e,"|").replace(v0e,"[").replace(y0e,"]")}function k0e(e){return Fp(e).replace(E1,"{").replace(A1,"}").replace(C1,"^")}function $h(e){return Fp(e).replace(T1,"%2B").replace(x0e,"+").replace(_1,"%23").replace(h0e,"%26").replace(b0e,"`").replace(E1,"{").replace(A1,"}").replace(C1,"^")}function S0e(e){return $h(e).replace(g0e,"%3D")}function _0e(e){return Fp(e).replace(_1,"%23").replace(m0e,"%3F")}function T0e(e){return _0e(e).replace(p0e,"%2F")}function Na(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const C0e=/\/$/,E0e=e=>e.replace(C0e,"");function Bd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=N0e(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Na(f)}}function A0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function f0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function L0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&rl(t.matched[o],r.matched[s])&&L1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function rl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!M0e(e[r],t[r]))return!1;return!0}function M0e(e,t){return zr(e)?d0(e,t):zr(t)?d0(t,e):e===t}function d0(e,t){return zr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function N0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Gi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ih=(function(e){return e.pop="pop",e.push="push",e})({}),Wd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function O0e(e){if(!e)if(Ls){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),E0e(e)}const P0e=/^[^#]+#/;function R0e(e,t){return e.replace(P0e,"#")+t}function $0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const gf=()=>({left:window.scrollX,top:window.scrollY});function I0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=$0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function h0(e,t){return(history.state?history.state.position-t:-1)+e}const Dh=new Map;function D0e(e,t){Dh.set(e,t)}function z0e(e){const t=Dh.get(e);return Dh.delete(e),t}function F0e(e){return typeof e=="string"||e&&typeof e=="object"}function M1(e){return typeof e=="string"||typeof e=="symbol"}let qt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const N1=Symbol("");qt.MATCHER_NOT_FOUND+"",qt.NAVIGATION_GUARD_REDIRECT+"",qt.NAVIGATION_ABORTED+"",qt.NAVIGATION_CANCELLED+"",qt.NAVIGATION_DUPLICATED+"";function il(e,t){return bt(new Error,{type:e,[N1]:!0},t)}function pi(e,t){return e instanceof Error&&N1 in e&&(t==null||!!(e.type&t))}const H0e=["params","query","hash"];function B0e(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of H0e)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function W0e(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&$h(s)):[o&&$h(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function q0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=zr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const j0e=Symbol(""),g0=Symbol(""),Hp=Symbol(""),O1=Symbol(""),zh=Symbol("");function jl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function no(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(il(qt.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):F0e(b)?h(il(qt.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},g=c(()=>e.call(o&&o.instances[s],t,r,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function qd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(S1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(no(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const v=d0e(g)?g.default:g;f.mods[d]=g,f.components[d]=v;const b=(v.__vccOpts||v)[t];return b&&no(b,r,o,f,d,s)()}))}}return c}function U0e(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;frl(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>rl(p,h))||s.push(h))}return[r,o,s]}/*! + * vue-router v4.6.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let V0e=()=>location.protocol+"//"+location.host;function P1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),f0(d,"")}return f0(r,e)+o+s}function G0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=P1(e,location),E=r.value,L=t.value;let P=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}P=L?b.position-L.position:0}else o(w);s.forEach(M=>{M(r.value,E,{delta:P,type:Ih.pop,direction:P?P>0?Wd.forward:Wd.back:Wd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:gf()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function m0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?gf():null}}function K0e(e){const{history:t,location:r}=window,o={value:P1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,g){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:V0e()+e+h;try{t[g?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[g?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,m0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:gf()});c(g.current,g,!0),c(h,bt({},m0(o.value,h,null),{position:g.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function X0e(e){e=O0e(e);const t=K0e(e),r=G0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:R0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Y0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),X0e(e)}let Wo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var rn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(rn||{});const Z0e={type:Wo.Static,value:""},J0e=/[a-zA-Z0-9_]/;function Q0e(e){if(!e)return[[]];if(e==="/")return[[Z0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=rn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",g="";function v(){p&&(r===rn.Static?c.push({type:Wo.Static,value:p}):r===rn.Param||r===rn.ParamRegExp||r===rn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Wo.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;dt.length?t.length===1&&t[0]===On.Static+On.Segment?1:-1:0}function R1(e,t){let r=0;const o=e.score,s=t.score;for(;r0&&t[t.length-1]<0}const ibe={strict:!1,end:!0,sensitive:!1};function obe(e,t,r){const o=nbe(Q0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function sbe(e,t){const r=[],o=new Map;t=u0(ibe,t);function s(v){return o.get(v)}function c(v,b,w){const E=!w,L=w0(v);L.aliasOf=w&&w.record;const P=u0(t,v),M=[L];if("alias"in v){const _=typeof v.alias=="string"?[v.alias]:v.alias;for(const $ of _)M.push(w0(bt({},L,{components:w?w.record.components:L.components,path:$,aliasOf:w?w.record:L})))}let R,I;for(const _ of M){const{path:$}=_;if(b&&$[0]!=="/"){const W=b.record.path,ne=W[W.length-1]==="/"?"":"/";_.path=b.record.path+($&&ne+$)}if(R=obe(_,b,P),w?w.alias.push(R):(I=I||R,I!==R&&I.alias.push(R),E&&v.name&&!x0(R)&&f(v.name)),$1(R)&&h(R),L.children){const W=L.children;for(let ne=0;ne{f(I)}:la}function f(v){if(M1(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const b=cbe(v,r);r.splice(b,0,v),v.record.name&&!x0(v)&&o.set(v.record.name,v)}function p(v,b){let w,E={},L,P;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw il(qt.MATCHER_NOT_FOUND,{location:v});P=w.record.name,E=bt(b0(b.params,w.keys.filter(I=>!I.optional).concat(w.parent?w.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),v.params&&b0(v.params,w.keys.map(I=>I.name))),L=w.stringify(E)}else if(v.path!=null)L=v.path,w=r.find(I=>I.re.test(L)),w&&(E=w.parse(L),P=w.record.name);else{if(w=b.name?o.get(b.name):r.find(I=>I.re.test(b.path)),!w)throw il(qt.MATCHER_NOT_FOUND,{location:v,currentLocation:b});P=w.record.name,E=bt({},b.params,v.params),L=w.stringify(E)}const M=[];let R=w;for(;R;)M.unshift(R.record),R=R.parent;return{name:P,path:L,params:E,matched:M,meta:abe(M)}}e.forEach(v=>c(v));function g(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:g,getRoutes:d,getRecordMatcher:s}}function b0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function w0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:lbe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function lbe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function x0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function abe(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function cbe(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;R1(e,t[c])<0?o=c:r=c+1}const s=ube(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function ube(e){let t=e;for(;t=t.parent;)if($1(t)&&R1(e,t)===0)return t}function $1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function k0(e){const t=pn(Hp),r=pn(O1),o=ke(()=>{const h=K(e.to);return t.resolve(h)}),s=ke(()=>{const{matched:h}=o.value,{length:p}=h,g=h[p-1],v=r.matched;if(!g||!v.length)return-1;const b=v.findIndex(rl.bind(null,g));if(b>-1)return b;const w=S0(h[p-2]);return p>1&&S0(g)===w&&v[v.length-1].path!==w?v.findIndex(rl.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&gbe(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&L1(r.params,o.value.params));function d(h={}){if(pbe(h)){const p=t[K(e.replace)?"replace":"push"](K(e.to)).catch(la);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function fbe(e){return e.length===1?e[0]:e}const dbe=rt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:k0,setup(e,{slots:t}){const r=ir(k0(e)),{options:o}=pn(Hp),s=ke(()=>({[_0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[_0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&fbe(t.default(r));return e.custom?c:za("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),hbe=dbe;function pbe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function gbe(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!zr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function S0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const _0=(e,t,r)=>e??t??r,mbe=rt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=pn(zh),s=ke(()=>e.route||o.value),c=pn(g0,0),f=ke(()=>{let p=K(c);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);dr(g0,ke(()=>f.value+1)),dr(j0e,d),dr(zh,s);const h=Ge();return xt(()=>[h.value,d.value,e.name],([p,g,v],[b,w,E])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===b&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!rl(g,w)||!b)&&(g.enterCallbacks[v]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=d.value,b=v&&v.components[g];if(!b)return T0(r.default,{Component:b,route:p});const w=v.props[g],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,P=za(b,bt({},E,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return T0(r.default,{Component:P,route:p})||P}}});function T0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const vbe=mbe;function ybe(e){const t=sbe(e.routes,e),r=e.parseQuery||W0e,o=e.stringifyQuery||p0,s=e.history,c=jl(),f=jl(),d=jl(),h=Ft(Gi);let p=Gi;Ls&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Hd.bind(null,F=>""+F),v=Hd.bind(null,T0e),b=Hd.bind(null,Na);function w(F,Y){let re,le;return M1(F)?(re=t.getRecordMatcher(F),le=Y):le=F,t.addRoute(le,re)}function E(F){const Y=t.getRecordMatcher(F);Y&&t.removeRoute(Y)}function L(){return t.getRoutes().map(F=>F.record)}function P(F){return!!t.getRecordMatcher(F)}function M(F,Y){if(Y=bt({},Y||h.value),typeof F=="string"){const Q=Bd(r,F,Y.path),he=t.resolve({path:Q.path},Y),de=s.createHref(Q.fullPath);return bt(Q,he,{params:b(he.params),hash:Na(Q.hash),redirectedFrom:void 0,href:de})}let re;if(F.path!=null)re=bt({},F,{path:Bd(r,F.path,Y.path).path});else{const Q=bt({},F.params);for(const he in Q)Q[he]==null&&delete Q[he];re=bt({},F,{params:v(Q)}),Y.params=v(Y.params)}const le=t.resolve(re,Y),ae=F.hash||"";le.params=g(b(le.params));const D=A0e(o,bt({},F,{hash:k0e(ae),path:le.path})),q=s.createHref(D);return bt({fullPath:D,hash:ae,query:o===p0?q0e(F.query):F.query||{}},le,{redirectedFrom:void 0,href:q})}function R(F){return typeof F=="string"?Bd(r,F,h.value.path):bt({},F)}function I(F,Y){if(p!==F)return il(qt.NAVIGATION_CANCELLED,{from:Y,to:F})}function _(F){return ne(F)}function $(F){return _(bt(R(F),{replace:!0}))}function W(F,Y){const re=F.matched[F.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ae=typeof le=="function"?le(F,Y):le;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=R(ae):{path:ae},ae.params={}),bt({query:F.query,hash:F.hash,params:ae.path!=null?{}:F.params},ae)}}function ne(F,Y){const re=p=M(F),le=h.value,ae=F.state,D=F.force,q=F.replace===!0,Q=W(re,le);if(Q)return ne(bt(R(Q),{state:typeof Q=="object"?bt({},ae,Q.state):ae,force:D,replace:q}),Y||re);const he=re;he.redirectedFrom=Y;let de;return!D&&L0e(o,le,re)&&(de=il(qt.NAVIGATION_DUPLICATED,{to:he,from:le}),Be(le,le,!0,!1)),(de?Promise.resolve(de):G(he,le)).catch(ge=>pi(ge)?pi(ge,qt.NAVIGATION_GUARD_REDIRECT)?ge:Se(ge):ce(ge,he,le)).then(ge=>{if(ge){if(pi(ge,qt.NAVIGATION_GUARD_REDIRECT))return ne(bt({replace:q},R(ge.to),{state:typeof ge.to=="object"?bt({},ae,ge.to.state):ae,force:D}),Y||he)}else ge=N(he,le,!0,q,ae);return j(he,le,ge),ge})}function ee(F,Y){const re=I(F,Y);return re?Promise.reject(re):Promise.resolve()}function Z(F){const Y=je.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(F):F()}function G(F,Y){let re;const[le,ae,D]=U0e(F,Y);re=qd(le.reverse(),"beforeRouteLeave",F,Y);for(const Q of le)Q.leaveGuards.forEach(he=>{re.push(no(he,F,Y))});const q=ee.bind(null,F,Y);return re.push(q),Pe(re).then(()=>{re=[];for(const Q of c.list())re.push(no(Q,F,Y));return re.push(q),Pe(re)}).then(()=>{re=qd(ae,"beforeRouteUpdate",F,Y);for(const Q of ae)Q.updateGuards.forEach(he=>{re.push(no(he,F,Y))});return re.push(q),Pe(re)}).then(()=>{re=[];for(const Q of D)if(Q.beforeEnter)if(zr(Q.beforeEnter))for(const he of Q.beforeEnter)re.push(no(he,F,Y));else re.push(no(Q.beforeEnter,F,Y));return re.push(q),Pe(re)}).then(()=>(F.matched.forEach(Q=>Q.enterCallbacks={}),re=qd(D,"beforeRouteEnter",F,Y,Z),re.push(q),Pe(re))).then(()=>{re=[];for(const Q of f.list())re.push(no(Q,F,Y));return re.push(q),Pe(re)}).catch(Q=>pi(Q,qt.NAVIGATION_CANCELLED)?Q:Promise.reject(Q))}function j(F,Y,re){d.list().forEach(le=>Z(()=>le(F,Y,re)))}function N(F,Y,re,le,ae){const D=I(F,Y);if(D)return D;const q=Y===Gi,Q=Ls?history.state:{};re&&(le||q?s.replace(F.fullPath,bt({scroll:q&&Q&&Q.scroll},ae)):s.push(F.fullPath,ae)),h.value=F,Be(F,Y,re,q),Se()}let O;function C(){O||(O=s.listen((F,Y,re)=>{if(!Fe.listening)return;const le=M(F),ae=W(le,Fe.currentRoute.value);if(ae){ne(bt(ae,{replace:!0,force:!0}),le).catch(la);return}p=le;const D=h.value;Ls&&D0e(h0(D.fullPath,re.delta),gf()),G(le,D).catch(q=>pi(q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_CANCELLED)?q:pi(q,qt.NAVIGATION_GUARD_REDIRECT)?(ne(bt(R(q.to),{force:!0}),le).then(Q=>{pi(Q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===Ih.pop&&s.go(-1,!1)}).catch(la),Promise.reject()):(re.delta&&s.go(-re.delta,!1),ce(q,le,D))).then(q=>{q=q||N(le,D,!1),q&&(re.delta&&!pi(q,qt.NAVIGATION_CANCELLED)?s.go(-re.delta,!1):re.type===Ih.pop&&pi(q,qt.NAVIGATION_ABORTED|qt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),j(le,D,q)}).catch(la)}))}let k=jl(),z=jl(),B;function ce(F,Y,re){Se(F);const le=z.list();return le.length?le.forEach(ae=>ae(F,Y,re)):console.error(F),Promise.reject(F)}function be(){return B&&h.value!==Gi?Promise.resolve():new Promise((F,Y)=>{k.add([F,Y])})}function Se(F){return B||(B=!F,C(),k.list().forEach(([Y,re])=>F?re(F):Y()),k.reset()),F}function Be(F,Y,re,le){const{scrollBehavior:ae}=e;if(!Ls||!ae)return Promise.resolve();const D=!re&&z0e(h0(F.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return Et().then(()=>ae(F,Y,D)).then(q=>q&&I0e(q)).catch(q=>ce(q,F,Y))}const Ae=F=>s.go(F);let Ke;const je=new Set,Fe={currentRoute:h,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:L,resolve:M,options:e,push:_,replace:$,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:z.add,isReady:be,install(F){F.component("RouterLink",hbe),F.component("RouterView",vbe),F.config.globalProperties.$router=Fe,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>K(h)}),Ls&&!Ke&&h.value===Gi&&(Ke=!0,_(s.location).catch(le=>{}));const Y={};for(const le in Gi)Object.defineProperty(Y,le,{get:()=>h.value[le],enumerable:!0});F.provide(Hp,Fe),F.provide(O1,Gh(Y)),F.provide(zh,h);const re=F.unmount;je.add(F),F.unmount=function(){je.delete(F),je.size<1&&(p=Gi,O&&O(),O=null,h.value=Gi,Ke=!1,B=!1),re()}}};function Pe(F){return F.reduce((Y,re)=>Y.then(()=>Z(re)),Promise.resolve())}return Fe}const bbe={tooltip:pE};ww.options.instantMove=!0;ww.options.distance=10;function wbe(){return ybe({history:Y0e(),routes:f0e})}const xbe=[wbe],Bp=Qb(vC);xbe.forEach(e=>{Bp.use(e())});Object.entries(bbe).forEach(([e,t])=>{Bp.directive(e,t)});Bp.mount("#app"); diff --git a/test/cli/test/fixtures/reporters/html/fail/assets/index-DlhE0rqZ.css b/test/cli/test/fixtures/reporters/html/fail/assets/index-DlhE0rqZ.css new file mode 100644 index 000000000000..20addcb9cbf0 --- /dev/null +++ b/test/cli/test/fixtures/reporters/html/fail/assets/index-DlhE0rqZ.css @@ -0,0 +1 @@ +.CodeMirror-simplescroll-horizontal div,.CodeMirror-simplescroll-vertical div{position:absolute;background:#ccc;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #bbb;border-radius:2px}.CodeMirror-simplescroll-horizontal,.CodeMirror-simplescroll-vertical{position:absolute;z-index:6;background:#eee}.CodeMirror-simplescroll-horizontal{bottom:0;left:0;height:8px}.CodeMirror-simplescroll-horizontal div{bottom:0;height:100%}.CodeMirror-simplescroll-vertical{right:0;top:0;width:8px}.CodeMirror-simplescroll-vertical div{right:0;width:100%}.CodeMirror-overlayscroll .CodeMirror-scrollbar-filler,.CodeMirror-overlayscroll .CodeMirror-gutter-filler{display:none}.CodeMirror-overlayscroll-horizontal div,.CodeMirror-overlayscroll-vertical div{position:absolute;background:#bcd;border-radius:3px}.CodeMirror-overlayscroll-horizontal,.CodeMirror-overlayscroll-vertical{position:absolute;z-index:6}.CodeMirror-overlayscroll-horizontal{bottom:0;left:0;height:6px}.CodeMirror-overlayscroll-horizontal div{bottom:0;height:100%}.CodeMirror-overlayscroll-vertical{right:0;top:0;width:6px}.CodeMirror-overlayscroll-vertical div{right:0;width:100%}#tester-container[data-v-2e86b8c3]:not([data-ready]){width:100%;height:100%;display:flex;align-items:center;justify-content:center}[data-ready] #tester-ui[data-v-2e86b8c3]{width:var(--viewport-width);height:var(--viewport-height);transform:var(--tester-transform);margin-left:var(--tester-margin-left)}#vitest-ui-coverage{width:100%;height:calc(100vh - 42px);border:none}.number[data-v-1bd0f2ea]{font-weight:400;text-align:right}.unhandled-errors[data-v-1bd0f2ea]{--cm-ttc-c-thumb: #ccc}html.dark .unhandled-errors[data-v-1bd0f2ea]{--cm-ttc-c-thumb: #444}:root{--color-link-label: var(--color-text);--color-link: #ddd;--color-node-external: #6C5C33;--color-node-inline: #8bc4a0;--color-node-root: #6e9aa5;--color-node-focused: #e67e22;--color-node-label: var(--color-text);--color-node-stroke: var(--color-text)}html.dark{--color-text: #fff;--color-link: #333;--color-node-external: #c0ad79;--color-node-inline: #468b60;--color-node-root: #467d8b;--color-node-focused: #f39c12}.graph{height:calc(100% - 39px)!important}.graph .node{stroke-width:2px;stroke-opacity:.5}.graph .link{stroke-width:2px}.graph .node:hover:not(.focused){filter:none!important}.graph .node__label{transform:translateY(20px);font-weight:100;filter:brightness(.5)}html.dark .graph .node__label{filter:brightness(1.2)}.scrolls[data-v-08ce44b7]{place-items:center}.task-error[data-v-1fcfe7a4]{--cm-ttc-c-thumb: #ccc}html.dark .task-error[data-v-1fcfe7a4]{--cm-ttc-c-thumb: #444}.task-error[data-v-9d875d6e]{--cm-ttc-c-thumb: #ccc}html.dark .task-error[data-v-9d875d6e]{--cm-ttc-c-thumb: #444}.task-error[data-v-1a68630b]{--cm-ttc-c-thumb: #ccc}html.dark .task-error[data-v-1a68630b]{--cm-ttc-c-thumb: #444}.details-panel{-webkit-user-select:none;user-select:none;width:100%}.checkbox:focus-within{outline:none;margin-bottom:0!important;border-bottom-width:1px}.vertical-line[data-v-58d301d8]:first-of-type{border-left-width:2px}.vertical-line+.vertical-line[data-v-58d301d8]{border-right-width:1px}.test-actions[data-v-58d301d8]{display:none}.item-wrapper:hover .test-actions[data-v-58d301d8]{display:flex}.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.in-progress[data-v-5320005b]{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px;animation:in-progress-stripes-5320005b 2s linear infinite}@keyframes in-progress-stripes-5320005b{0%{background-position:40px 0}to{background-position:0 0}}.graph,.graph>svg{display:block}.graph{height:100%;touch-action:none;width:100%}.graph *{-webkit-touch-callout:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.link{fill:none;stroke-width:4px}.node{--color-stroke: var(--color-node-stroke, rgba(0, 0, 0, .5));cursor:pointer;stroke:none;stroke-width:2px;transition:filter .25s ease,stroke .25s ease,stroke-dasharray .25s ease}.node:hover:not(.focused){filter:brightness(80%);stroke:var(--color-stroke);stroke-dasharray:4px}.node.focused{stroke:var(--color-stroke)}.link__label,.node__label{pointer-events:none;text-anchor:middle}.grabbed{cursor:grabbing!important}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging .splitpanes__pane,*:has(.splitpanes--dragging){-webkit-user-select:none;user-select:none;pointer-events:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out;will-change:width}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out;will-change:height}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.default-theme.splitpanes .splitpanes__pane{background-color:#f2f2f2}.default-theme.splitpanes .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.default-theme.splitpanes .splitpanes__splitter:before,.default-theme.splitpanes .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.default-theme.splitpanes .splitpanes__splitter:hover:before,.default-theme.splitpanes .splitpanes__splitter:hover:after{background-color:#00000040}.default-theme.splitpanes .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}:root{--cm-scheme: light;--cm-foreground: #6e6e6e;--cm-background: #f4f4f4;--cm-comment: #a8a8a8;--cm-string: #555555;--cm-literal: #333333;--cm-keyword: #000000;--cm-function: #4f4f4f;--cm-deleted: #333333;--cm-class: #333333;--cm-builtin: #757575;--cm-property: #333333;--cm-namespace: #4f4f4f;--cm-punctuation: #ababab;--cm-decorator: var(--cm-class);--cm-operator: var(--cm-punctuation);--cm-number: var(--cm-literal);--cm-boolean: var(--cm-literal);--cm-variable: var(--cm-literal);--cm-constant: var(--cm-literal);--cm-symbol: var(--cm-literal);--cm-interpolation: var(--cm-literal);--cm-selector: var(--cm-keyword);--cm-keyword-control: var(--cm-keyword);--cm-regex: var(--cm-string);--cm-json-property: var(--cm-property);--cm-inline-background: var(--cm-background);--cm-comment-style: italic;--cm-url-decoration: underline;--cm-line-number: #a5a5a5;--cm-line-number-gutter: #333333;--cm-line-highlight-background: #eeeeee;--cm-selection-background: #aaaaaa;--cm-marker-color: var(--cm-foreground);--cm-marker-opacity: .4;--cm-marker-font-size: .8em;--cm-font-size: 1em;--cm-line-height: 1.5em;--cm-font-family: monospace;--cm-inline-font-size: var(--cm-font-size);--cm-block-font-size: var(--cm-font-size);--cm-tab-size: 2;--cm-block-padding-x: 1em;--cm-block-padding-y: 1em;--cm-block-margin-x: 0;--cm-block-margin-y: .5em;--cm-block-radius: .3em;--cm-inline-padding-x: .3em;--cm-inline-padding-y: .1em;--cm-inline-radius: .3em}.cm-s-vars.CodeMirror{background-color:var(--cm-background);color:var(--cm-foreground)}.cm-s-vars .CodeMirror-gutters{background:var(--cm-line-number-gutter);color:var(--cm-line-number);border:none}.cm-s-vars .CodeMirror-guttermarker,.cm-s-vars .CodeMirror-guttermarker-subtle,.cm-s-vars .CodeMirror-linenumber{color:var(--cm-line-number)}.cm-s-vars div.CodeMirror-selected,.cm-s-vars.CodeMirror-focused div.CodeMirror-selected{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::selection,.cm-s-vars .CodeMirror-line>span::selection,.cm-s-vars .CodeMirror-line>span>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::-moz-selection,.cm-s-vars .CodeMirror-line>span::-moz-selection,.cm-s-vars .CodeMirror-line>span>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-activeline-background{background:var(--cm-line-highlight-background)}.cm-s-vars .cm-keyword{color:var(--cm-keyword)}.cm-s-vars .cm-variable,.cm-s-vars .cm-variable-2,.cm-s-vars .cm-variable-3,.cm-s-vars .cm-type{color:var(--cm-variable)}.cm-s-vars .cm-builtin{color:var(--cm-builtin)}.cm-s-vars .cm-atom{color:var(--cm-literal)}.cm-s-vars .cm-number{color:var(--cm-number)}.cm-s-vars .cm-def{color:var(--cm-decorator)}.cm-s-vars .cm-string,.cm-s-vars .cm-string-2{color:var(--cm-string)}.cm-s-vars .cm-comment{color:var(--cm-comment)}.cm-s-vars .cm-tag{color:var(--cm-builtin)}.cm-s-vars .cm-meta{color:var(--cm-namespace)}.cm-s-vars .cm-attribute,.cm-s-vars .cm-property{color:var(--cm-property)}.cm-s-vars .cm-qualifier{color:var(--cm-keyword)}.cm-s-vars .cm-error{color:var(--prism-deleted)}.cm-s-vars .cm-operator,.cm-s-vars .cm-bracket{color:var(--cm-punctuation)}.cm-s-vars .CodeMirror-matchingbracket{text-decoration:underline}.cm-s-vars .CodeMirror-cursor{border-left:1px solid currentColor}html,body{height:100%;font-family:Readex Pro,sans-serif;scroll-behavior:smooth}:root{--color-text-light: #000;--color-text-dark: #ddd;--color-text: var(--color-text-light);--background-color: #e4e4e4}html.dark{--color-text: var(--color-text-dark);--background-color: #141414;color:var(--color-text);background-color:var(--background-color);color-scheme:dark}.CodeMirror{height:100%!important;width:100%!important;font-family:inherit}.cm-s-vars .cm-tag{color:var(--cm-keyword)}:root{--cm-foreground: #393a3480;--cm-background: transparent;--cm-comment: #a0ada0;--cm-string: #b56959;--cm-literal: #2f8a89;--cm-number: #296aa3;--cm-keyword: #1c6b48;--cm-function: #6c7834;--cm-boolean: #1c6b48;--cm-constant: #a65e2b;--cm-deleted: #a14f55;--cm-class: #2993a3;--cm-builtin: #ab5959;--cm-property: #b58451;--cm-namespace: #b05a78;--cm-punctuation: #8e8f8b;--cm-decorator: #bd8f8f;--cm-regex: #ab5e3f;--cm-json-property: #698c96;--cm-line-number-gutter: #f8f8f8;--cm-ttc-c-thumb: #eee;--cm-ttc-c-track: white}html.dark{--cm-scheme: dark;--cm-foreground: #d4cfbf80;--cm-background: transparent;--cm-comment: #758575;--cm-string: #d48372;--cm-literal: #429988;--cm-keyword: #4d9375;--cm-boolean: #1c6b48;--cm-number: #6394bf;--cm-variable: #c2b36e;--cm-function: #a1b567;--cm-deleted: #a14f55;--cm-class: #54b1bf;--cm-builtin: #e0a569;--cm-property: #dd8e6e;--cm-namespace: #db889a;--cm-punctuation: #858585;--cm-decorator: #bd8f8f;--cm-regex: #ab5e3f;--cm-json-property: #6b8b9e;--cm-line-number: #888888;--cm-line-number-gutter: #161616;--cm-line-highlight-background: #444444;--cm-selection-background: #44444450;--cm-ttc-c-thumb: #222;--cm-ttc-c-track: #111}.splitpanes__pane{background-color:unset!important}.splitpanes__splitter{position:relative;background-color:#7d7d7d1a;z-index:10}.splitpanes__splitter:before{content:"";position:absolute;left:0;top:0;transition:opacity .4s;background-color:#7d7d7d1a;opacity:0;z-index:1}.splitpanes__splitter:hover:before{opacity:1}.splitpanes--vertical>.splitpanes__splitter:before{left:0;right:-10px;height:100%}.splitpanes--horizontal>.splitpanes__splitter:before{top:0;bottom:-10px;width:100%}.splitpanes.loading .splitpanes__pane{transition:none!important;height:100%}.CodeMirror-scroll{scrollbar-width:none}.CodeMirror-scroll::-webkit-scrollbar,.codemirror-scrolls::-webkit-scrollbar{display:none}.codemirror-scrolls{overflow:auto!important;scrollbar-width:thin;scrollbar-color:var(--cm-ttc-c-thumb) var(--cm-ttc-c-track)}.CodeMirror-simplescroll-horizontal,.CodeMirror-simplescroll-vertical{background-color:var(--cm-ttc-c-track)!important;border:none!important}.CodeMirror-simplescroll-horizontal div,.CodeMirror-simplescroll-vertical div{background-color:var(--cm-ttc-c-thumb)!important;border:none!important}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:var(--cm-ttc-c-track)!important}.CodeMirror{overflow:unset!important}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar{display:none!important}.CodeMirror-scroll{margin-bottom:unset!important;margin-right:unset!important;padding-bottom:unset!important}.scrolls::-webkit-scrollbar{width:8px;height:8px}.scrolls{overflow:auto!important;scrollbar-width:thin;scrollbar-color:var(--cm-ttc-c-thumb) var(--cm-ttc-c-track)}.scrolls::-webkit-scrollbar-track{background:var(--cm-ttc-c-track)}.scrolls::-webkit-scrollbar-thumb{background-color:var(--cm-ttc-c-thumb);border:2px solid var(--cm-ttc-c-thumb)}.scrolls::-webkit-scrollbar-thumb,.scrolls-rounded::-webkit-scrollbar-track{border-radius:3px}.scrolls::-webkit-scrollbar-corner{background-color:var(--cm-ttc-c-track)}.v-popper__popper .v-popper__inner{font-size:12px;padding:4px 6px;border-radius:4px;background-color:var(--background-color);color:var(--color-text)}.v-popper__popper .v-popper__arrow-outer{border-color:var(--background-color)}.codemirror-busy>.CodeMirror>.CodeMirror-scroll>.CodeMirror-sizer .CodeMirror-lines{cursor:wait!important}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.dark .dark\:i-carbon-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.1 11.1 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1 1 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-arrow-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-checkmark,.i-carbon\:checkmark,[i-carbon-checkmark=""],[i-carbon\:checkmark=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-checkmark-outline-error,[i-carbon-checkmark-outline-error=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 24a10 10 0 1 1 10-10h2a12 12 0 1 0-12 12Z'/%3E%3Cpath fill='currentColor' d='M12 15.59L9.41 13L8 14.41l4 4l7-7L17.59 10zM30 24a6 6 0 1 0-6 6a6.007 6.007 0 0 0 6-6m-2 0a3.95 3.95 0 0 1-.567 2.019l-5.452-5.452A3.95 3.95 0 0 1 24 20a4.005 4.005 0 0 1 4 4m-8 0a3.95 3.95 0 0 1 .567-2.019l5.452 5.452A3.95 3.95 0 0 1 24 28a4.005 4.005 0 0 1-4-4'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-close,.i-carbon\:close,[i-carbon-close=""],[i-carbon\:close=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-compare,.i-carbon\:compare,[i-carbon-compare=""],[i-carbon\:compare=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28 6H18V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h10v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2M4 15h6.17l-2.58 2.59L9 19l5-5l-5-5l-1.41 1.41L10.17 13H4V4h12v20H4Zm12 13v-2a2 2 0 0 0 2-2V8h10v9h-6.17l2.58-2.59L23 13l-5 5l5 5l1.41-1.41L21.83 19H28v9Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-content-delivery-network{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='21' cy='21' r='2' fill='currentColor'/%3E%3Ccircle cx='7' cy='7' r='2' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M27 31a4 4 0 1 1 4-4a4.01 4.01 0 0 1-4 4m0-6a2 2 0 1 0 2 2a2.006 2.006 0 0 0-2-2'/%3E%3Cpath fill='currentColor' d='M30 16A14.04 14.04 0 0 0 16 2a13.04 13.04 0 0 0-6.8 1.8l1.1 1.7a24 24 0 0 1 2.4-1A25.1 25.1 0 0 0 10 15H4a11.15 11.15 0 0 1 1.4-4.7L3.9 9A13.84 13.84 0 0 0 2 16a14 14 0 0 0 14 14a13.4 13.4 0 0 0 5.2-1l-.6-1.9a11.44 11.44 0 0 1-5.2.9A21.07 21.07 0 0 1 12 17h17.9a3.4 3.4 0 0 0 .1-1M12.8 27.6a13 13 0 0 1-5.3-3.1A12.5 12.5 0 0 1 4 17h6a25 25 0 0 0 2.8 10.6M12 15a21.45 21.45 0 0 1 3.3-11h1.4A21.45 21.45 0 0 1 20 15Zm10 0a23.3 23.3 0 0 0-2.8-10.6A12.09 12.09 0 0 1 27.9 15Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-dashboard,.i-carbon\:dashboard{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M24 21h2v5h-2zm-4-5h2v10h-2zm-9 10a5.006 5.006 0 0 1-5-5h2a3 3 0 1 0 3-3v-2a5 5 0 0 1 0 10'/%3E%3Cpath fill='currentColor' d='M28 2H4a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V4a2 2 0 0 0-2-2m0 9H14V4h14ZM12 4v7H4V4ZM4 28V13h24l.002 15Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-document,[i-carbon-document=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m25.7 9.3l-7-7c-.2-.2-.4-.3-.7-.3H8c-1.1 0-2 .9-2 2v24c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V10c0-.3-.1-.5-.3-.7M18 4.4l5.6 5.6H18zM24 28H8V4h8v6c0 1.1.9 2 2 2h6z'/%3E%3Cpath fill='currentColor' d='M10 22h12v2H10zm0-6h12v2H10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-ibm-cloud-direct-link-2-connect{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.2 13c.4 1.2 1.5 2 2.8 2c1.7 0 3-1.3 3-3s-1.3-3-3-3c-1.3 0-2.4.8-2.8 2H5c-1.1 0-2 .9-2 2v6H0v2h3v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4h-2v4H5V13zm2.8-2c.6 0 1 .4 1 1s-.4 1-1 1s-1-.4-1-1s.4-1 1-1'/%3E%3Cpath fill='currentColor' d='M29 11V5c0-1.1-.9-2-2-2H13c-1.1 0-2 .9-2 2v4h2V5h14v14H14.8c-.4-1.2-1.5-2-2.8-2c-1.7 0-3 1.3-3 3s1.3 3 3 3c1.3 0 2.4-.8 2.8-2H27c1.1 0 2-.9 2-2v-6h3v-2zM12 21c-.6 0-1-.4-1-1s.4-1 1-1s1 .4 1 1s-.4 1-1 1'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-launch{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 28H6a2.003 2.003 0 0 1-2-2V6a2.003 2.003 0 0 1 2-2h10v2H6v20h20V16h2v10a2.003 2.003 0 0 1-2 2'/%3E%3Cpath fill='currentColor' d='M20 2v2h6.586L18 12.586L19.414 14L28 5.414V12h2V2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-notebook{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 10h7v2h-7zm0 5h7v2h-7zm0 5h7v2h-7z'/%3E%3Cpath fill='currentColor' d='M28 5H4a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V7a2 2 0 0 0-2-2M4 7h11v18H4Zm13 18V7h11l.002 18Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-reset{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-timer,[i-carbon-timer=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M15 11h2v9h-2zm-2-9h6v2h-6z'/%3E%3Cpath fill='currentColor' d='m28 9l-1.42-1.41l-2.25 2.25a10.94 10.94 0 1 0 1.18 1.65ZM16 26a9 9 0 1 1 9-9a9 9 0 0 1-9 9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon-wifi-off{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='16' cy='25' r='2' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M30 3.414L28.586 2L2 28.586L3.414 30l10.682-10.682a5.94 5.94 0 0 1 6.01 1.32l1.414-1.414a7.97 7.97 0 0 0-5.125-2.204l3.388-3.388a12 12 0 0 1 4.564 2.765l1.413-1.414a14 14 0 0 0-4.426-2.903l2.997-2.997a18 18 0 0 1 4.254 3.075L30 10.743v-.002a20 20 0 0 0-4.19-3.138zm-15.32 9.664l2.042-2.042C16.48 11.023 16.243 11 16 11a13.95 13.95 0 0 0-9.771 3.993l1.414 1.413a11.97 11.97 0 0 1 7.037-3.328M16 7a18 18 0 0 1 4.232.525l1.643-1.642A19.95 19.95 0 0 0 2 10.74v.023l1.404 1.404A17.92 17.92 0 0 1 16 7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:chart-relationship{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 6a3.996 3.996 0 0 0-3.858 3H17.93A7.996 7.996 0 1 0 9 17.93v4.212a4 4 0 1 0 2 0v-4.211a7.95 7.95 0 0 0 3.898-1.62l3.669 3.67A3.95 3.95 0 0 0 18 22a4 4 0 1 0 4-4a3.95 3.95 0 0 0-2.019.567l-3.67-3.67A7.95 7.95 0 0 0 17.932 11h4.211A3.993 3.993 0 1 0 26 6M12 26a2 2 0 1 1-2-2a2 2 0 0 1 2 2m-2-10a6 6 0 1 1 6-6a6.007 6.007 0 0 1-6 6m14 6a2 2 0 1 1-2-2a2 2 0 0 1 2 2m2-10a2 2 0 1 1 2-2a2 2 0 0 1-2 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:checkbox{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:checkbox-checked-filled{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M14 21.5l-5-4.957L10.59 15L14 18.346L21.409 11L23 12.577Z'/%3E%3Cpath fill='none' d='m14 21.5l-5-4.957L10.59 15L14 18.346L21.409 11L23 12.577Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:chevron-down{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 22L6 12l1.4-1.4l8.6 8.6l8.6-8.6L26 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:chevron-right{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:circle-dash,[i-carbon\:circle-dash=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7.7 4.7a14.7 14.7 0 0 0-3 3.1L6.3 9a13.3 13.3 0 0 1 2.6-2.7zm-3.1 7.6l-1.9-.6A12.5 12.5 0 0 0 2 16h2a11.5 11.5 0 0 1 .6-3.7m-1.9 8.1a14.4 14.4 0 0 0 2 3.9l1.6-1.2a12.9 12.9 0 0 1-1.7-3.3zm5.1 6.9a14.4 14.4 0 0 0 3.9 2l.6-1.9A12.9 12.9 0 0 1 9 25.7zm3.9-24.6l.6 1.9A11.5 11.5 0 0 1 16 4V2a12.5 12.5 0 0 0-4.3.7m12.5 24.6a15.2 15.2 0 0 0 3.1-3.1L25.7 23a11.5 11.5 0 0 1-2.7 2.7zm3.2-7.6l1.9.6A15.5 15.5 0 0 0 30 16h-2a11.5 11.5 0 0 1-.6 3.7m1.8-8.1a14.4 14.4 0 0 0-2-3.9l-1.6 1.2a12.9 12.9 0 0 1 1.7 3.3zm-5.1-7a14.4 14.4 0 0 0-3.9-2l-.6 1.9a12.9 12.9 0 0 1 3.3 1.7zm-3.8 24.7l-.6-1.9a11.5 11.5 0 0 1-3.7.6v2a21.4 21.4 0 0 0 4.3-.7'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:code{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9zM1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23zm11.42 9.484L17.64 6l1.932.517L14.352 26z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:code-reference,[i-carbon\:code-reference=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 20v2h4.586L2 28.586L3.414 30L10 23.414V28h2v-8zm26-10l-6-6l-1.414 1.414L27.172 10l-4.586 4.586L24 16zm-16.08 7.484l4.15-15.483l1.932.517l-4.15 15.484zM4 10l6-6l1.414 1.414L6.828 10l4.586 4.586L10 16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:collapse-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 15h-2V7H13V5h15a2 2 0 0 1 2 2Z'/%3E%3Cpath fill='currentColor' d='M25 20h-2v-8H8v-2h15a2 2 0 0 1 2 2Z'/%3E%3Cpath fill='currentColor' d='M18 27H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2M4 17v8h14.001L18 17Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:document-blank,[i-carbon\:document-blank=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m25.7 9.3l-7-7A.9.9 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h16a2.006 2.006 0 0 0 2-2V10a.9.9 0 0 0-.3-.7M18 4.4l5.6 5.6H18ZM24 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:expand-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10h14a2.003 2.003 0 0 0 2-2V4a2.003 2.003 0 0 0-2-2H12a2.003 2.003 0 0 0-2 2v1H6V2H4v23a2.003 2.003 0 0 0 2 2h4v1a2.003 2.003 0 0 0 2 2h14a2.003 2.003 0 0 0 2-2v-4a2.003 2.003 0 0 0-2-2H12a2.003 2.003 0 0 0-2 2v1H6v-8h4v1a2.003 2.003 0 0 0 2 2h14a2.003 2.003 0 0 0 2-2v-4a2.003 2.003 0 0 0-2-2H12a2.003 2.003 0 0 0-2 2v1H6V7h4v1a2.003 2.003 0 0 0 2 2m0-6h14l.001 4H12Zm0 20h14l.001 4H12Zm0-10h14l.001 4H12Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:filter{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M18 28h-4a2 2 0 0 1-2-2v-7.59L4.59 11A2 2 0 0 1 4 9.59V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v3.59a2 2 0 0 1-.59 1.41L20 18.41V26a2 2 0 0 1-2 2M6 6v3.59l8 8V26h4v-8.41l8-8V6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:filter-remove{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M30 11.414L28.586 10L24 14.586L19.414 10L18 11.414L22.586 16L18 20.585L19.415 22L24 17.414L28.587 22L30 20.587L25.414 16z'/%3E%3Cpath fill='currentColor' d='M4 4a2 2 0 0 0-2 2v3.17a2 2 0 0 0 .586 1.415L10 18v8a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2h-2v2h-4v-8.83l-.586-.585L4 9.171V6h20v2h2V6a2 2 0 0 0-2-2Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:folder-details-reference{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 28h7v2h-7zm0-4h14v2H16zm0-4h14v2H16zM4 20v2h4.586L2 28.586L3.414 30L10 23.414V28h2v-8zM28 8H16l-3.414-3.414A2 2 0 0 0 11.172 4H4a2 2 0 0 0-2 2v12h2V6h7.172l3.414 3.414l.586.586H28v8h2v-8a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:folder-off{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28 8h-2.586L30 3.414L28.586 2L2 28.586L3.414 30l2-2H28a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2m0 18H7.414l16-16H28zM4 6h7.172l3.414 3.414l.586.586H18V8h-2l-3.414-3.414A2 2 0 0 0 11.172 4H4a2 2 0 0 0-2 2v18h2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:image{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 14a3 3 0 1 0-3-3a3 3 0 0 0 3 3m0-4a1 1 0 1 1-1 1a1 1 0 0 1 1-1'/%3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 22H6v-6l5-5l5.59 5.59a2 2 0 0 0 2.82 0L21 19l5 5Zm0-4.83l-3.59-3.59a2 2 0 0 0-2.82 0L18 19.17l-5.59-5.59a2 2 0 0 0-2.82 0L6 17.17V6h20Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:image-reference{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 20v2h4.586L2 28.586L3.414 30L10 23.414V28h2v-8zm15-6a3 3 0 1 0-3-3a3 3 0 0 0 3 3m0-4a1 1 0 1 1-1 1a1 1 0 0 1 1-1'/%3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v10h2V6h20v15.17l-3.59-3.59a2 2 0 0 0-2.82 0L18 19.17L11.83 13l-1.414 1.416L14 18l2.59 2.59a2 2 0 0 0 2.82 0L21 19l5 5v2H16v2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:information-square,[i-carbon\:information-square=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8'/%3E%3Cpath fill='currentColor' d='M26 28H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v20a2 2 0 0 1-2 2M6 6v20h20V6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:intrusion-prevention{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='22' cy='23.887' r='2' fill='currentColor'/%3E%3Cpath fill='currentColor' d='M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.522A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.478L30 24zM22 28a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4m3-18H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h21a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2M4 4v4h21V4zm8 24H4v-4h8v-2H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h8z'/%3E%3Cpath fill='currentColor' d='M28 12H7a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5v-2H7v-4h21v2h2v-2a2 2 0 0 0-2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:mobile{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M22 4H10a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h12a2.003 2.003 0 0 0 2-2V6a2 2 0 0 0-2-2m0 2v2H10V6ZM10 28V10h12v18Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:mobile-add{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28 24h-4v-4h-2v4h-4v2h4v4h2v-4h4z'/%3E%3Cpath fill='currentColor' d='M10 28V10h12v7h2V6a2 2 0 0 0-2-2H10a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h6v-2Zm0-22h12v2H10Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:play{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28M8 6.69v18.62L24.925 16Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:play-filled-alt{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:redo,[i-carbon\:redo=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:renew{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:report{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 18h8v2h-8zm0-5h12v2H10zm0 10h5v2h-5z'/%3E%3Cpath fill='currentColor' d='M25 5h-3V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v1H7a2 2 0 0 0-2 2v21a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2M12 4h8v4h-8Zm13 24H7V7h3v3h12V7h3Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:result-old{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 13h2v2h-2zm4 0h8v2h-8zm-4 5h2v2h-2zm0 5h2v2h-2z'/%3E%3Cpath fill='currentColor' d='M7 28V7h3v3h12V7h3v8h2V7a2 2 0 0 0-2-2h-3V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v1H7a2 2 0 0 0-2 2v21a2 2 0 0 0 2 2h9v-2Zm5-24h8v4h-8Z'/%3E%3Cpath fill='currentColor' d='M18 19v2.413A6.996 6.996 0 1 1 24 32v-2a5 5 0 1 0-4.576-7H22v2h-6v-6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:search{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:side-panel-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M28 4H4c-1.1 0-2 .9-2 2v20c0 1.1.9 2 2 2h24c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M10 26H4V6h6zm18-11H17.8l3.6-3.6L20 10l-6 6l6 6l1.4-1.4l-3.6-3.6H28v9H12V6h16z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:tablet{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 24v2h-6v-2z'/%3E%3Cpath fill='currentColor' d='M25 30H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v24a2.003 2.003 0 0 1-2 2M7 4v24h18V4Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-carbon\:terminal-3270{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10 21h6v2h-6z'/%3E%3Cpath fill='currentColor' d='M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 2v4H6V6ZM6 26V12h20v14Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-logos\:typescript-icon{background:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%233178C6' d='M20 0h216c11.046 0 20 8.954 20 20v216c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20V20C0 8.954 8.954 0 20 0'/%3E%3Cpath fill='%23FFF' d='M150.518 200.475v27.62q6.738 3.453 15.938 5.179T185.849 235q9.934 0 18.874-1.899t15.678-6.257q6.738-4.359 10.669-11.394q3.93-7.033 3.93-17.391q0-7.51-2.246-13.163a30.8 30.8 0 0 0-6.479-10.055q-4.232-4.402-10.149-7.898t-13.347-6.602q-5.442-2.245-9.761-4.359t-7.342-4.316q-3.024-2.2-4.665-4.661t-1.641-5.567q0-2.848 1.468-5.135q1.469-2.288 4.147-3.927t6.565-2.547q3.887-.906 8.638-.906q3.456 0 7.299.518q3.844.517 7.732 1.597a54 54 0 0 1 7.558 2.719a41.7 41.7 0 0 1 6.781 3.797v-25.807q-6.306-2.417-13.778-3.582T198.633 107q-9.847 0-18.658 2.115q-8.811 2.114-15.506 6.602q-6.694 4.49-10.582 11.437Q150 134.102 150 143.769q0 12.342 7.127 21.06t21.638 14.759a292 292 0 0 1 10.625 4.575q4.924 2.244 8.509 4.66t5.658 5.265t2.073 6.474a9.9 9.9 0 0 1-1.296 4.963q-1.295 2.287-3.93 3.97t-6.565 2.632t-9.2.95q-8.983 0-17.794-3.151t-16.327-9.451m-46.036-68.733H140V109H41v22.742h35.345V233h28.137z'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;width:1em;height:1em}.container{width:100%}.tab-button,[tab-button=""]{height:100%;padding-left:1rem;padding-right:1rem;font-weight:300;opacity:.5}.border-base,[border~=base]{border-color:#6b72801a}.bg-active{background-color:#6b728014}.bg-base,[bg-base=""]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .bg-base,.dark [bg-base=""]{--un-bg-opacity:1;background-color:rgb(17 17 17 / var(--un-bg-opacity))}.bg-header,[bg-header=""]{background-color:#6b72800d}.bg-overlay,[bg-overlay=""],[bg~=overlay]{background-color:#eeeeee80}.dark .bg-overlay,.dark [bg-overlay=""],.dark [bg~=overlay]{background-color:#22222280}.dark .highlight{--un-bg-opacity:1;background-color:rgb(50 50 56 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(234 179 6 / var(--un-text-opacity))}.highlight{--un-bg-opacity:1;background-color:rgb(234 179 6 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(50 50 56 / var(--un-text-opacity))}.tab-button-active{background-color:#6b72801a;opacity:1}[hover~=bg-active]:hover{background-color:#6b728014}.tab-button:hover,[tab-button=""]:hover{opacity:.8}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\[clip-path\:polygon\(0\%_0\%\,var\(--split\)_0\%\,var\(--split\)_100\%\,0\%_100\%\)\]{clip-path:polygon(0% 0%,var(--split) 0%,var(--split) 100%,0% 100%)}.\[clip-path\:polygon\(var\(--split\)_0\%\,100\%_0\%\,100\%_100\%\,var\(--split\)_100\%\)\]{clip-path:polygon(var(--split) 0%,100% 0%,100% 100%,var(--split) 100%)}.sr-only,[sr-only=""]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.sticky,[sticky=""]{position:sticky}.before\:absolute:before{position:absolute}.static{position:static}.inset-0,[inset-0=""]{inset:0}.bottom-0{bottom:0}.left-\[--split\]{left:var(--split)}.left-0{left:0}.right-0,[right~="0"]{right:0}.right-5px,[right-5px=""]{right:5px}.top-0{top:0}.top-5px,[top-5px=""]{top:5px}[top~="-1"]{top:-.25rem}.before\:top-1\/2:before{top:50%}.z-10,[z-10=""]{z-index:10}.z-40{z-index:40}.z-5,[z-5=""]{z-index:5}.grid,[grid~="~"]{display:grid}.grid-col-span-2{grid-column:span 2/span 2}.grid-col-span-4,[grid-col-span-4=""],[grid-col-span-4~="~"]{grid-column:span 4/span 4}[grid-col-span-4~="placeholder:"]::placeholder{grid-column:span 4/span 4}.auto-cols-max,[grid~=auto-cols-max]{grid-auto-columns:max-content}.cols-\[1\.5em_1fr\],[grid~="cols-[1.5em_1fr]"]{grid-template-columns:1.5em 1fr}.cols-\[auto_min-content_auto\],[grid~="cols-[auto_min-content_auto]"]{grid-template-columns:auto min-content auto}.cols-\[min-content_1fr_min-content\],[grid~="cols-[min-content_1fr_min-content]"]{grid-template-columns:min-content 1fr min-content}.rows-\[auto_auto\],[grid~="rows-[auto_auto]"]{grid-template-rows:auto auto}.rows-\[min-content_auto\],[grid~="rows-[min-content_auto]"]{grid-template-rows:min-content auto}.rows-\[min-content_min-content\],[grid~="rows-[min-content_min-content]"]{grid-template-rows:min-content min-content}.rows-\[min-content\],[grid~="rows-[min-content]"]{grid-template-rows:min-content}.cols-1,.grid-cols-1,[grid~=cols-1]{grid-template-columns:repeat(1,minmax(0,1fr))}.cols-2,.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.rows-1,[grid~=rows-1]{grid-template-rows:repeat(1,minmax(0,1fr))}.m-0{margin:0}.m-2,[m-2=""]{margin:.5rem}.ma,[ma=""]{margin:auto}.mx-1,[mx-1=""]{margin-left:.25rem;margin-right:.25rem}.mx-2,[m~=x-2],[mx-2=""]{margin-left:.5rem;margin-right:.5rem}.mx-4,[mx-4=""]{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0,[my-0=""]{margin-top:0;margin-bottom:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2,[my-2=""]{margin-top:.5rem;margin-bottom:.5rem}[m~=y-4]{margin-top:1rem;margin-bottom:1rem}.-mt-5{margin-top:-1.25rem}.\!mb-none{margin-bottom:0!important}.mb-1,[mb-1=""]{margin-bottom:.25rem}.mb-1px{margin-bottom:1px}.mb-2,[mb-2=""]{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.ml-1,[ml-1=""]{margin-left:.25rem}.ml-2,[ml-2=""]{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-8,[mr-8=""]{margin-right:2rem}.ms,[ms=""]{margin-inline-start:1rem}.ms-2,[ms-2=""]{margin-inline-start:.5rem}.mt-\[8px\]{margin-top:8px}.mt-2,[m~=t2],[mt-2=""]{margin-top:.5rem}.mt-3{margin-top:.75rem}.inline,[inline=""]{display:inline}.block,[block=""]{display:block}.inline-block{display:inline-block}.hidden{display:none}.before\:size-\[16px\]:before{width:16px;height:16px}.h-1\.4em,[h-1\.4em=""]{height:1.4em}.h-1\.5em{height:1.5em}.h-10,[h-10=""]{height:2.5rem}.h-1px,[h-1px=""]{height:1px}.h-28px,[h-28px=""]{height:28px}.h-3px,[h-3px=""]{height:3px}.h-41px,[h-41px=""]{height:41px}.h-6,[h-6=""]{height:1.5rem}.h-8,[h-8=""]{height:2rem}.h-full,[h-full=""],[h~=full]{height:100%}.h-screen,[h-screen=""]{height:100vh}.h1{height:.25rem}.h3{height:.75rem}.h4{height:1rem}.max-h-120{max-height:30rem}.max-h-full,[max-h-full=""]{max-height:100%}.max-w-full{max-width:100%}.max-w-screen,[max-w-screen=""]{max-width:100vw}.max-w-xl,[max-w-xl=""]{max-width:36rem}.min-h-1em{min-height:1em}.min-h-75,[min-h-75=""]{min-height:18.75rem}.min-w-1em{min-width:1em}.min-w-2em,[min-w-2em=""]{min-width:2em}.w-\[2px\],.w-2px,[w-2px=""]{width:2px}.w-1\.4em,[w-1\.4em=""]{width:1.4em}.w-1\.5em,[w-1\.5em=""]{width:1.5em}.w-350,[w-350=""]{width:87.5rem}.w-4,[w-4=""]{width:1rem}.w-6,[w-6=""]{width:1.5rem}.w-80,[w-80=""]{width:20rem}.w-fit{width:fit-content}.w-full,[w-full=""]{width:100%}.w-min{width:min-content}.w-screen,[w-screen=""]{width:100vw}.open\:max-h-52[open],[open\:max-h-52=""][open]{max-height:13rem}.flex,[flex=""],[flex~="~"]{display:flex}.flex-inline,.inline-flex,[inline-flex=""]{display:inline-flex}.flex-1,[flex-1=""]{flex:1 1 0%}.flex-auto,[flex-auto=""]{flex:1 1 auto}.flex-shrink-0,[flex-shrink-0=""]{flex-shrink:0}.flex-grow-1,[flex-grow-1=""]{flex-grow:1}.flex-col,[flex-col=""],[flex~=col]{flex-direction:column}[flex~=wrap]{flex-wrap:wrap}.table{display:table}.origin-center,[origin-center=""]{transform-origin:center}.origin-top{transform-origin:top}.-translate-x-1\/2{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-3,[translate-x-3=""]{--un-translate-x:.75rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.before\:-translate-y-1\/2:before{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.before\:translate-x-\[calc\(-50\%\+1px\)\]:before{--un-translate-x: calc(-50% + 1px) ;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-0,[rotate-0=""]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:0deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-180,[rotate-180=""]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:180deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.rotate-90,[rotate-90=""]{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:90deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.animate-spin,[animate-spin=""]{animation:spin 1s linear infinite}.animate-reverse{animation-direction:reverse}.animate-count-1,[animate-count-1=""]{animation-iteration-count:1}.cursor-help,[cursor-help=""]{cursor:help}.cursor-pointer,[cursor-pointer=""],.hover\:cursor-pointer:hover{cursor:pointer}.cursor-col-resize{cursor:col-resize}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize{resize:both}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-end,[items-end=""]{align-items:flex-end}.items-center,[flex~=items-center],[grid~=items-center],[items-center=""]{align-items:center}.justify-end,[justify-end=""]{justify-content:flex-end}.justify-center,[justify-center=""]{justify-content:center}.justify-between,[flex~=justify-between],[justify-between=""]{justify-content:space-between}.justify-evenly,[justify-evenly=""]{justify-content:space-evenly}.justify-items-center,[justify-items-center=""]{justify-items:center}.gap-0,[gap-0=""]{gap:0}.gap-1,[flex~=gap-1],[gap-1=""]{gap:.25rem}.gap-2,[flex~=gap-2],[gap-2=""]{gap:.5rem}.gap-4,[flex~=gap-4]{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1,[grid~=gap-x-1]{column-gap:.25rem}.gap-x-2,[gap-x-2=""],[gap~=x-2],[grid~=gap-x-2]{column-gap:.5rem}.gap-y-1{row-gap:.25rem}[gap~=y-3]{row-gap:.75rem}.overflow-auto,[overflow-auto=""]{overflow:auto}.overflow-hidden,[overflow-hidden=""],[overflow~=hidden]{overflow:hidden}.truncate,[truncate=""]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre,[whitespace-pre=""]{white-space:pre}.ws-nowrap,[ws-nowrap=""]{white-space:nowrap}.b,.border,[border~="~"]{border-width:1px}.b-2,[b-2=""]{border-width:2px}.before\:border-\[2px\]:before{border-width:2px}.border-b,.border-b-1,[border~=b]{border-bottom-width:1px}.border-b-2,[border-b-2=""],[border~=b-2]{border-bottom-width:2px}.border-l,[border~=l]{border-left-width:1px}.border-l-2px{border-left-width:2px}.border-r,.border-r-1px,[border~=r]{border-right-width:1px}.border-t,[border~=t]{border-top-width:1px}.dark [border~="dark:gray-400"]{--un-border-opacity:1;border-color:rgb(156 163 175 / var(--un-border-opacity))}[border~="$cm-namespace"]{border-color:var(--cm-namespace)}[border~="gray-400/50"]{border-color:#9ca3af80}[border~=gray-500]{--un-border-opacity:1;border-color:rgb(107 114 128 / var(--un-border-opacity))}[border~=red-500]{--un-border-opacity:1;border-color:rgb(239 68 68 / var(--un-border-opacity))}.before\:border-black:before{--un-border-opacity:1;border-color:rgb(0 0 0 / var(--un-border-opacity))}.border-rounded,.rounded,.rounded-1,[border-rounded=""],[border~=rounded],[rounded-1=""],[rounded=""]{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.before\:rounded-full:before{border-radius:9999px}[border~=dotted]{border-style:dotted}[border~=solid]{border-style:solid}.\!bg-gray-4{--un-bg-opacity:1 !important;background-color:rgb(156 163 175 / var(--un-bg-opacity))!important}.bg-\[\#eee\]{--un-bg-opacity:1;background-color:rgb(238 238 238 / var(--un-bg-opacity))}.bg-\[\#fafafa\]{--un-bg-opacity:1;background-color:rgb(250 250 250 / var(--un-bg-opacity))}.bg-\[size\:16px_16px\]{background-size:16px 16px}.bg-current,[bg-current=""]{background-color:currentColor}.bg-gray{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity))}.bg-gray-500\:35{background-color:#6b728059}.bg-green5,[bg-green5=""]{--un-bg-opacity:1;background-color:rgb(34 197 94 / var(--un-bg-opacity))}.bg-indigo\/60{background-color:#818cf899}.bg-orange{--un-bg-opacity:1;background-color:rgb(251 146 60 / var(--un-bg-opacity))}.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113 / var(--un-bg-opacity))}.bg-red-500\/10,[bg~="red-500/10"],[bg~="red500/10"]{background-color:#ef44441a}.bg-red5,[bg-red5=""]{--un-bg-opacity:1;background-color:rgb(239 68 68 / var(--un-bg-opacity))}.bg-white,[bg-white=""]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.bg-yellow5,[bg-yellow5=""]{--un-bg-opacity:1;background-color:rgb(234 179 8 / var(--un-bg-opacity))}.dark .\!dark\:bg-gray-7{--un-bg-opacity:1 !important;background-color:rgb(55 65 81 / var(--un-bg-opacity))!important}.dark .dark\:bg-\[\#222\]{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}.dark .dark\:bg-\[\#3a3a3a\]{--un-bg-opacity:1;background-color:rgb(58 58 58 / var(--un-bg-opacity))}.dark [bg~="dark:#111"]{--un-bg-opacity:1;background-color:rgb(17 17 17 / var(--un-bg-opacity))}[bg~=gray-200]{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}[bg~="gray/10"]{background-color:#9ca3af1a}[bg~="gray/30"]{background-color:#9ca3af4d}[bg~="green-500/10"]{background-color:#22c55e1a}[bg~=transparent]{background-color:transparent}[bg~="yellow-500/10"]{background-color:#eab3081a}.before\:bg-white:before{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.bg-center{background-position:center}[fill-opacity~=".05"]{--un-fill-opacity:.0005}.p-0,[p-0=""]{padding:0}.p-0\.5,[p-0\.5=""]{padding:.125rem}.p-1,[p-1=""]{padding:.25rem}.p-2,.p2,[p-2=""],[p~="2"],[p2=""]{padding:.5rem}.p-4,[p-4=""]{padding:1rem}.p-5,[p-5=""]{padding:1.25rem}.p6,[p6=""]{padding:1.5rem}[p~="3"]{padding:.75rem}.p-y-1,.py-1,[p~=y-1],[p~=y1],[py-1=""]{padding-top:.25rem;padding-bottom:.25rem}.px,[p~=x-4],[p~=x4]{padding-left:1rem;padding-right:1rem}.px-0{padding-left:0;padding-right:0}.px-2,[p~=x-2],[p~=x2]{padding-left:.5rem;padding-right:.5rem}.px-3,[p~=x3],[px-3=""]{padding-left:.75rem;padding-right:.75rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py,[p~=y4]{padding-top:1rem;padding-bottom:1rem}.py-0\.5,[p~="y0.5"]{padding-top:.125rem;padding-bottom:.125rem}.py-2,[p~=y2],[py-2=""]{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2,[pb-2=""]{padding-bottom:.5rem}.pe-2\.5,[pe-2\.5=""]{padding-inline-end:.625rem}.pl-1,[pl-1=""]{padding-left:.25rem}.pr-2,[p~=r2],[pr-2=""]{padding-right:.5rem}.pt{padding-top:1rem}.pt-4px{padding-top:4px}[p~=l3]{padding-left:.75rem}.text-center,[text-center=""],[text~=center]{text-align:center}.indent,[indent=""]{text-indent:1.5rem}.text-2xl,[text-2xl=""]{font-size:1.5rem;line-height:2rem}.text-4xl,[text-4xl=""]{font-size:2.25rem;line-height:2.5rem}.text-lg,[text-lg=""]{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""],[text~=sm]{font-size:.875rem;line-height:1.25rem}.text-xs,[text-xs=""],[text~=xs]{font-size:.75rem;line-height:1rem}[text~="5xl"]{font-size:3rem;line-height:1}.dark .dark\:text-red-300{--un-text-opacity:1;color:rgb(252 165 165 / var(--un-text-opacity))}.dark .dark\:text-white,.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-\[\#add467\]{--un-text-opacity:1;color:rgb(173 212 103 / var(--un-text-opacity))}.text-black{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-gray-5,.text-gray-500,[text-gray-500=""]{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.text-green-500,.text-green5,[text-green-500=""],[text-green5=""],[text~=green-500]{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-orange{--un-text-opacity:1;color:rgb(251 146 60 / var(--un-text-opacity))}.text-purple5\:50{color:#a855f780}.dark .dark\:c-red-400,.text-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.color-red5,.text-red-500,.text-red5,[text-red-500=""],[text-red5=""],[text~=red-500],[text~=red500]{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.c-red-600,.text-red-600{--un-text-opacity:1;color:rgb(220 38 38 / var(--un-text-opacity))}.text-yellow-500,.text-yellow5,[text-yellow-500=""],[text-yellow5=""],[text~=yellow-500]{--un-text-opacity:1;color:rgb(234 179 8 / var(--un-text-opacity))}.text-yellow-500\/80{color:#eab308cc}[text~="red500/70"]{color:#ef4444b3}.dark .dark\:color-\#f43f5e{--un-text-opacity:1;color:rgb(244 63 94 / var(--un-text-opacity))}.font-bold,[font-bold=""]{font-weight:700}.font-light,[font-light=""],[font~=light]{font-weight:300}.font-thin,[font-thin=""]{font-weight:100}.font-mono,[font-mono=""]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.capitalize,[capitalize=""]{text-transform:capitalize}.aria-\[selected\=true\]\:underline[aria-selected=true],.underline,.hover\:underline:hover{text-decoration-line:underline}.decoration-gray{-webkit-text-decoration-color:rgb(156 163 175 / var(--un-line-opacity));--un-line-opacity:1;text-decoration-color:rgb(156 163 175 / var(--un-line-opacity))}.decoration-red{-webkit-text-decoration-color:rgb(248 113 113 / var(--un-line-opacity));--un-line-opacity:1;text-decoration-color:rgb(248 113 113 / var(--un-line-opacity))}.underline-offset-4{text-underline-offset:4px}.tab,[tab=""]{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.\!op-100{opacity:1!important}.dark .dark\:op85{opacity:.85}.dark [dark~=op75],.op75{opacity:.75}.op-50,.op50,.opacity-50,[op-50=""],[op~="50"],[op50=""]{opacity:.5}.op-70,.op70,[op-70=""],[opacity~="70"]{opacity:.7}.op-90,[op-90=""]{opacity:.9}.op100,[op~="100"],[op100=""]{opacity:1}.op20,[op20=""]{opacity:.2}.op30,[op30=""]{opacity:.3}.op65,[op65=""]{opacity:.65}.op80,[op80=""]{opacity:.8}.opacity-0{opacity:0}.opacity-60,[opacity-60=""]{opacity:.6}[opacity~="10"]{opacity:.1}[hover\:op100~="default:"]:hover:default{opacity:1}.hover\:op100:hover,[hover\:op100~="~"]:hover,[hover~=op100]:hover{opacity:1}[hover~=op80]:hover{opacity:.8}[op~="hover:100"]:hover{opacity:1}[hover\:op100~="disabled:"]:hover:disabled{opacity:1}.shadow-\[0_0_3px_rgb\(0_0_0\/\.2\)\,0_0_10px_rgb\(0_0_0\/\.5\)\]{--un-shadow:0 0 3px rgb(0 0 0/.2),0 0 10px rgb(0 0 0/.5);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-0{outline-width:0px}.focus-within\:has-focus-visible\:outline-2:has(:focus-visible):focus-within{outline-width:2px}.dark .dark\:outline-white{--un-outline-color-opacity:1;outline-color:rgb(255 255 255 / var(--un-outline-color-opacity))}.outline-black{--un-outline-color-opacity:1;outline-color:rgb(0 0 0 / var(--un-outline-color-opacity))}.outline-offset-4{outline-offset:4px}.outline,.outline-solid{outline-style:solid}[outline~=none]{outline:2px solid transparent;outline-offset:2px}.backdrop-blur-sm,[backdrop-blur-sm=""]{--un-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.backdrop-saturate-0,[backdrop-saturate-0=""]{--un-backdrop-saturate:saturate(0);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter,[filter=""]{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.before\:content-\[\'\'\]:before{content:""}@media (min-width: 768px){.md\:grid-cols-\[200px_1fr\]{grid-template-columns:200px 1fr}} diff --git a/test/cli/test/fixtures/reporters/html/fail/bg.png b/test/cli/test/fixtures/reporters/html/fail/bg.png new file mode 100644 index 000000000000..718b0677a886 Binary files /dev/null and b/test/cli/test/fixtures/reporters/html/fail/bg.png differ diff --git a/test/cli/test/fixtures/reporters/html/fail/favicon.ico b/test/cli/test/fixtures/reporters/html/fail/favicon.ico new file mode 100644 index 000000000000..c02d0b033f7c Binary files /dev/null and b/test/cli/test/fixtures/reporters/html/fail/favicon.ico differ diff --git a/test/cli/test/fixtures/reporters/html/fail/favicon.svg b/test/cli/test/fixtures/reporters/html/fail/favicon.svg new file mode 100644 index 000000000000..fd9daaf619d2 --- /dev/null +++ b/test/cli/test/fixtures/reporters/html/fail/favicon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/test/cli/test/fixtures/reporters/html/fail/html.meta.json.gz b/test/cli/test/fixtures/reporters/html/fail/html.meta.json.gz new file mode 100644 index 000000000000..bd17cf8c2b0e Binary files /dev/null and b/test/cli/test/fixtures/reporters/html/fail/html.meta.json.gz differ diff --git a/test/cli/test/fixtures/reporters/html/fail/index.html b/test/cli/test/fixtures/reporters/html/fail/index.html new file mode 100644 index 000000000000..b5e5c1f63b04 --- /dev/null +++ b/test/cli/test/fixtures/reporters/html/fail/index.html @@ -0,0 +1,32 @@ + + + + + + + + Vitest + + + + + + + + + +
+ + diff --git a/test/cli/test/fs-cached-check.test.ts b/test/cli/test/fs-cached-check.test.ts new file mode 100644 index 000000000000..6c6b772422d1 --- /dev/null +++ b/test/cli/test/fs-cached-check.test.ts @@ -0,0 +1,31 @@ +import { runInlineTests } from '#test-utils' +import { expect, test } from 'vitest' + +test('import a generated file', async () => { + const { stderr, stdout, testTree } = await runInlineTests({ + 'basic.test.js': /* js */ ` + import { expect, test } from "vitest" + import fs from "node:fs" + import path from "node:path" + test("import a generated file", async () => { + const dist = path.join(import.meta.dirname, "dist"); + await fs.promises.mkdir(dist, { recursive: true }); + await fs.promises.writeFile(path.join(dist, "generated.js"), "export default 'ok'"); + + // this file was just generated + const mod = await import("./dist/generated.js") + + expect(mod.default).toBe("ok"); + }) + `, + }) + expect(stdout).not.toContain('generated.js') + expect(stderr).toBe('') + expect(testTree()).toMatchInlineSnapshot(` + { + "basic.test.js": { + "import a generated file": "passed", + }, + } + `) +}) diff --git a/test/cli/test/get-state.test.ts b/test/cli/test/get-state.test.ts new file mode 100644 index 000000000000..d3c212a406ce --- /dev/null +++ b/test/cli/test/get-state.test.ts @@ -0,0 +1,45 @@ +import type { TestUserConfig } from 'vitest/node' +import { runInlineTests } from '#test-utils' +import { expect, test } from 'vitest' + +test.for([ + { isolate: true }, + { isolate: false, maxWorkers: 1 }, + { isolate: false, maxWorkers: 3 }, + { isolate: false, fileParallelism: false }, +] satisfies TestUserConfig[])(`getState().testPath during collection %s`, async (config) => { + const result = await runInlineTests( + { + 'a.test.ts': createTest('a.test.ts'), + 'b.test.ts': createTest('b.test.ts'), + 'c.test.ts': createTest('c.test.ts'), + }, + config, + ) + expect(result.stderr).toBe('') + expect(result.errorTree()).toMatchInlineSnapshot(` + { + "a.test.ts": { + "a.test.ts": "passed", + }, + "b.test.ts": { + "b.test.ts": "passed", + }, + "c.test.ts": { + "c.test.ts": "passed", + }, + } + `) +}) + +function createTest(fileName: string) { + return /* ts */` + import { expect, test } from 'vitest' + + const testPath = expect.getState().testPath; + + test("${fileName}", () => { + expect(testPath).toContain("${fileName}") + }) +` +} diff --git a/test/cli/test/global-setup-fail.test.ts b/test/cli/test/global-setup-fail.test.ts deleted file mode 100644 index 94afa18844bc..000000000000 --- a/test/cli/test/global-setup-fail.test.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { resolve } from 'pathe' -import { expect, it } from 'vitest' - -import { runVitest } from '../../test-utils' - -it('should fail', async () => { - const root = resolve(import.meta.dirname, '../fixtures/global-setup-fail') - const { stderr } = await runVitest({ root }) - - expect(stderr).toBeTruthy() - const msg = String(stderr) - .split(/\n/g) - .reverse() - .find(i => i.includes('Error: ')) - ?.trim() - expect(msg).toBe('Error: error') - expect(stderr).not.toContain('__vite_ssr_export_default__') - expect(stderr).toContain('globalSetup/error.ts:6:9') -}, 50000) diff --git a/test/cli/test/global-setup.test.ts b/test/cli/test/global-setup.test.ts new file mode 100644 index 000000000000..97e4e6bd00f5 --- /dev/null +++ b/test/cli/test/global-setup.test.ts @@ -0,0 +1,63 @@ +import { resolve } from 'pathe' +import { expect, it } from 'vitest' + +import { runVitest } from '../../test-utils' + +it('should fail', async () => { + const root = resolve(import.meta.dirname, '../fixtures/global-setup-fail') + const { stderr } = await runVitest({ root }) + + expect(stderr).toBeTruthy() + const msg = String(stderr) + .split(/\n/g) + .reverse() + .find(i => i.includes('Error: ')) + ?.trim() + expect(msg).toBe('Error: error') + expect(stderr).not.toContain('__vite_ssr_export_default__') + expect(stderr).toContain('globalSetup/error.ts:6:9') +}) + +it('runs global setup/teardown', async () => { + const { stderr, errorTree } = await runVitest({ + root: './fixtures/global-setup', + config: false, + globalSetup: [ + './globalSetup/default-export.js', + './globalSetup/named-exports.js', + './globalSetup/ts-with-imports.ts', + './globalSetup/another-vite-instance.ts', + './globalSetup/update-env.ts', + ], + $viteConfig: { + plugins: [ + { + name: 'a-vitest-plugin-that-changes-config', + config: () => ({ + test: { + setupFiles: [ + './setupFiles/add-something-to-global.ts', + 'setupFiles/without-relative-path-prefix.ts', + ], + }, + }), + }, + ], + }, + }) + + expect(stderr).toBe('') + expect(errorTree()).toMatchInlineSnapshot(` + { + "test/global-setup.test.ts": { + "server running": "passed", + "vite instance running": "passed", + }, + "test/setup-files.test.ts": { + "setup file has been loaded without relative path prefix": "passed", + "something has been added to global by setupFiles entry": "passed", + "the process.env is injected correctly": "passed", + }, + } + `) +}) diff --git a/test/cli/test/list-changed.test.ts b/test/cli/test/list-changed.test.ts index 90fe151a4c31..17de4c77826b 100644 --- a/test/cli/test/list-changed.test.ts +++ b/test/cli/test/list-changed.test.ts @@ -1,5 +1,5 @@ +import { editFile, resolvePath, runVitestCli } from '#test-utils' import { test as baseTest, expect } from 'vitest' -import { editFile, resolvePath, runVitestCli } from '../../test-utils' // ecosystem-ci updated package.json and make this test fail const test = baseTest.skipIf(!!process.env.ECOSYSTEM_CI) diff --git a/test/cli/test/no-unexpected-logging.test.ts b/test/cli/test/no-unexpected-logging.test.ts index ebd3678e3233..735632392fc4 100644 --- a/test/cli/test/no-unexpected-logging.test.ts +++ b/test/cli/test/no-unexpected-logging.test.ts @@ -1,4 +1,4 @@ -import { test } from 'vitest' +import { describe, expect, test } from 'vitest' import { runVitest, StableTestFileOrderSorter } from '../../test-utils' // Test to detect that there are no unexpected logs, like NodeJS MaxListenersExceededWarning diff --git a/test/config/test/node-sqlite.test.ts b/test/cli/test/node-builtins.test.ts similarity index 79% rename from test/config/test/node-sqlite.test.ts rename to test/cli/test/node-builtins.test.ts index 503110a1dfa4..1dd07e29bd01 100644 --- a/test/config/test/node-sqlite.test.ts +++ b/test/cli/test/node-builtins.test.ts @@ -1,9 +1,9 @@ +import { runInlineTests } from '#test-utils' import { expect, test } from 'vitest' -import { runInlineTests, ts } from '../../test-utils' const nodeMajor = Number(process.version.slice(1).split('.')[0]) -test.runIf(nodeMajor >= 22)('import node:sqlite', async () => { +test.runIf(nodeMajor >= 22)('can import node:sqlite', async () => { const { vitest, results } = await runInlineTests({ 'vitest.config.ts': { test: { @@ -11,7 +11,7 @@ test.runIf(nodeMajor >= 22)('import node:sqlite', async () => { execArgv: ['--experimental-sqlite', '--no-warnings=ExperimentalWarning'], }, }, - 'basic.test.ts': ts` + 'basic.test.ts': /* ts */` import { test, expect } from 'vitest' import sqlite from 'node:sqlite' diff --git a/test/cli/test/open-telemetry.test.ts b/test/cli/test/open-telemetry.test.ts index 2ac0968142dc..56b4ebbefa7c 100644 --- a/test/cli/test/open-telemetry.test.ts +++ b/test/cli/test/open-telemetry.test.ts @@ -1,6 +1,6 @@ import type { TestUserConfig } from 'vitest/node' import { playwright } from '@vitest/browser-playwright' -import { test } from 'vitest' +import { describe, expect, test } from 'vitest' import { runVitest } from '../../test-utils' describe.for([ diff --git a/test/cli/test/optimize-deps.test.ts b/test/cli/test/optimize-deps.test.ts new file mode 100644 index 000000000000..244268f689f3 --- /dev/null +++ b/test/cli/test/optimize-deps.test.ts @@ -0,0 +1,40 @@ +import { expect, test } from 'vitest' +import { runVitest } from '../../test-utils' + +test('optimize deps optimizes them into node_modules/.vite', async () => { + const { errorTree, stderr } = await runVitest({ + root: './fixtures/optimize-deps', + deps: { + optimizer: { + client: { + enabled: true, + }, + ssr: { + enabled: true, + }, + }, + }, + $viteConfig: { + optimizeDeps: { + include: ['@test/test-dep-url'], + }, + ssr: { + optimizeDeps: { + include: ['@test/test-dep-url'], + }, + }, + }, + }) + + expect(stderr).toBe('') + expect(errorTree()).toMatchInlineSnapshot(` + { + "ssr.test.ts": { + "import.meta.url": "passed", + }, + "web.test.ts": { + "import.meta.url": "passed", + }, + } + `) +}) diff --git a/test/config/test/projects.test.ts b/test/cli/test/projects.test.ts similarity index 83% rename from test/config/test/projects.test.ts rename to test/cli/test/projects.test.ts index c3eb200f60c2..a18ab39f9bcc 100644 --- a/test/config/test/projects.test.ts +++ b/test/cli/test/projects.test.ts @@ -1,6 +1,6 @@ +import { runInlineTests, runVitest } from '#test-utils' import { resolve } from 'pathe' import { describe, expect, it } from 'vitest' -import { runInlineTests, runVitest } from '../../test-utils' it('runs the workspace if there are several vitest config files', async () => { const { stderr, stdout } = await runVitest({ @@ -195,3 +195,38 @@ describe('the config file names', () => { expect(stderr).toContain('The file "unit.config.js" must start with "vitest.config"/"vite.config" or match the pattern "(vitest|vite).*.config.*" to be a valid project config.') }) }) + +describe('project filtering', () => { + const allProjects = ['project_1', 'project_2', 'space_1'] + + it.for([ + { pattern: 'project_1', expected: ['project_1'] }, + { pattern: '*', expected: allProjects }, + { pattern: '*j*', expected: ['project_1', 'project_2'] }, + { pattern: 'project*', expected: ['project_1', 'project_2'] }, + { pattern: 'space*', expected: ['space_1'] }, + { pattern: '!project_1', expected: ['project_2', 'space_1'] }, + { pattern: '!project*', expected: ['space_1'] }, + { pattern: '!project', expected: allProjects }, + ])('should match projects correctly: $pattern', async ({ pattern, expected }) => { + const { ctx, stderr, stdout } = await runVitest({ + root: 'fixtures/project', + reporters: ['default'], + project: pattern, + }) + + expect(stderr).toBeFalsy() + expect(stdout).toBeTruthy() + + for (const project of allProjects) { + if (expected.includes(project)) { + expect(stdout).toContain(project) + } + else { + expect(stdout).not.toContain(project) + } + } + + expect(ctx?.projects.map(p => p.name).sort()).toEqual(expected) + }) +}) diff --git a/test/public-mocker/test/mocker.test.ts b/test/cli/test/public-mocker.test.ts similarity index 94% rename from test/public-mocker/test/mocker.test.ts rename to test/cli/test/public-mocker.test.ts index 5a843e359d91..1f6fa3914617 100644 --- a/test/public-mocker/test/mocker.test.ts +++ b/test/cli/test/public-mocker.test.ts @@ -16,7 +16,7 @@ beforeAll(async () => { it('default server manual mocker works correctly', async () => { const { page } = await createTestServer({ - root: 'fixtures/manual-mock', + root: './fixtures/mocker/manual-mock', }) await expect.poll(() => page.locator('css=#mocked').textContent()).toBe('true') @@ -24,7 +24,7 @@ it('default server manual mocker works correctly', async () => { it('automock works correctly', async () => { const { page } = await createTestServer({ - root: 'fixtures/automock', + root: './fixtures/mocker/automock', }) await expect.poll(() => page.locator('css=#mocked').textContent()).toBe('42') @@ -32,7 +32,7 @@ it('automock works correctly', async () => { it('autospy works correctly', async () => { const { page } = await createTestServer({ - root: 'fixtures/autospy', + root: './fixtures/mocker/autospy', }) await expect.poll(() => page.locator('css=#mocked').textContent()).toBe('3, 42') @@ -40,7 +40,7 @@ it('autospy works correctly', async () => { it('redirect works correctly', async () => { const { page } = await createTestServer({ - root: 'fixtures/redirect', + root: './fixtures/mocker/redirect', }) await expect.poll(() => page.locator('css=#mocked').textContent()).toBe('42') diff --git a/test/reporters/tests/__snapshots__/default.test.ts.snap b/test/cli/test/reporters/__snapshots__/default.test.ts.snap similarity index 100% rename from test/reporters/tests/__snapshots__/default.test.ts.snap rename to test/cli/test/reporters/__snapshots__/default.test.ts.snap diff --git a/test/reporters/tests/__snapshots__/html.test.ts.snap b/test/cli/test/reporters/__snapshots__/html.test.ts.snap similarity index 81% rename from test/reporters/tests/__snapshots__/html.test.ts.snap rename to test/cli/test/reporters/__snapshots__/html.test.ts.snap index aaf1ed533ee6..151859a1ca8f 100644 --- a/test/reporters/tests/__snapshots__/html.test.ts.snap +++ b/test/cli/test/reporters/__snapshots__/html.test.ts.snap @@ -8,7 +8,7 @@ exports[`html reporter > resolves to "failing" status for test file "json-fail" "collectDuration": 0, "environmentLoad": 0, "file": [Circular], - "filepath": "/test/reporters/fixtures/json-fail.test.ts", + "filepath": "/test/cli/fixtures/reporters/json-fail.test.ts", "fullName": "json-fail.test.ts", "id": 0, "importDurations": {}, @@ -69,7 +69,7 @@ exports[`html reporter > resolves to "failing" status for test file "json-fail" "stacks": [ { "column": 13, - "file": "/test/reporters/fixtures/json-fail.test.ts", + "file": "/test/cli/fixtures/reporters/json-fail.test.ts", "line": 8, "method": "", }, @@ -91,25 +91,25 @@ exports[`html reporter > resolves to "failing" status for test file "json-fail" ], "moduleGraph": { "": { - "/test/reporters/fixtures/json-fail.test.ts": { + "/test/cli/fixtures/reporters/json-fail.test.ts": { "externalized": [], "graph": { - "/test/reporters/fixtures/json-fail.test.ts": [], + "/test/cli/fixtures/reporters/json-fail.test.ts": [], }, "inlined": [ - "/test/reporters/fixtures/json-fail.test.ts", + "/test/cli/fixtures/reporters/json-fail.test.ts", ], }, }, }, "paths": [ - "/test/reporters/fixtures/json-fail.test.ts", + "/test/cli/fixtures/reporters/json-fail.test.ts", ], "projects": [ "", ], "sources": { - "/test/reporters/fixtures/json-fail.test.ts": "import { expect, test } from 'vitest' + "/test/cli/fixtures/reporters/json-fail.test.ts": "import { expect, test } from 'vitest' // I am comment1 // I am comment2 @@ -132,7 +132,7 @@ exports[`html reporter > resolves to "passing" status for test file "all-passing "collectDuration": 0, "environmentLoad": 0, "file": [Circular], - "filepath": "/test/reporters/fixtures/all-passing-or-skipped.test.ts", + "filepath": "/test/cli/fixtures/reporters/all-passing-or-skipped.test.ts", "fullName": "all-passing-or-skipped.test.ts", "id": 0, "importDurations": {}, @@ -197,25 +197,25 @@ exports[`html reporter > resolves to "passing" status for test file "all-passing ], "moduleGraph": { "": { - "/test/reporters/fixtures/all-passing-or-skipped.test.ts": { + "/test/cli/fixtures/reporters/all-passing-or-skipped.test.ts": { "externalized": [], "graph": { - "/test/reporters/fixtures/all-passing-or-skipped.test.ts": [], + "/test/cli/fixtures/reporters/all-passing-or-skipped.test.ts": [], }, "inlined": [ - "/test/reporters/fixtures/all-passing-or-skipped.test.ts", + "/test/cli/fixtures/reporters/all-passing-or-skipped.test.ts", ], }, }, }, "paths": [ - "/test/reporters/fixtures/all-passing-or-skipped.test.ts", + "/test/cli/fixtures/reporters/all-passing-or-skipped.test.ts", ], "projects": [ "", ], "sources": { - "/test/reporters/fixtures/all-passing-or-skipped.test.ts": "import { expect, test } from 'vitest' + "/test/cli/fixtures/reporters/all-passing-or-skipped.test.ts": "import { expect, test } from 'vitest' test('2 + 3 = 5', () => { expect(2 + 3).toBe(5) diff --git a/test/reporters/tests/__snapshots__/json.test.ts.snap b/test/cli/test/reporters/__snapshots__/json.test.ts.snap similarity index 84% rename from test/reporters/tests/__snapshots__/json.test.ts.snap rename to test/cli/test/reporters/__snapshots__/json.test.ts.snap index 23a5e116c801..f6e6f29ff286 100644 --- a/test/reporters/tests/__snapshots__/json.test.ts.snap +++ b/test/cli/test/reporters/__snapshots__/json.test.ts.snap @@ -5,7 +5,7 @@ exports[`json reporter > generates correct report 1`] = ` "ancestorTitles": [], "failureMessages": [ "AssertionError: expected 2 to deeply equal 1 - at /test/reporters/fixtures/json-fail.test.ts:8:13", + at /test/cli/fixtures/reporters/json-fail.test.ts:8:13", ], "fullName": "should fail", "location": { diff --git a/test/reporters/tests/__snapshots__/junit.test.ts.snap b/test/cli/test/reporters/__snapshots__/junit.test.ts.snap similarity index 100% rename from test/reporters/tests/__snapshots__/junit.test.ts.snap rename to test/cli/test/reporters/__snapshots__/junit.test.ts.snap diff --git a/test/reporters/tests/__snapshots__/reporters.spec.ts.snap b/test/cli/test/reporters/__snapshots__/reporters.spec.ts.snap similarity index 100% rename from test/reporters/tests/__snapshots__/reporters.spec.ts.snap rename to test/cli/test/reporters/__snapshots__/reporters.spec.ts.snap diff --git a/test/cli/test/reporters/__snapshots__/reporters.test.ts.snap b/test/cli/test/reporters/__snapshots__/reporters.test.ts.snap new file mode 100644 index 000000000000..998fc0c125a8 --- /dev/null +++ b/test/cli/test/reporters/__snapshots__/reporters.test.ts.snap @@ -0,0 +1,1043 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`JUnit reporter (no outputFile entry) 1`] = ` +" + + +" +`; + +exports[`JUnit reporter 1`] = ` +" + + +" +`; + +exports[`JUnit reporter with custom function classnameTemplate 1`] = ` +" + + + + + + +" +`; + +exports[`JUnit reporter with custom string classname 1`] = ` +" + + + + + + +" +`; + +exports[`JUnit reporter with custom string classnameTemplate 1`] = ` +" + + + + + + +" +`; + +exports[`JUnit reporter with outputFile 1`] = ` +"JUNIT report written to /report.xml +" +`; + +exports[`JUnit reporter with outputFile 2`] = ` +" + + +" +`; + +exports[`JUnit reporter with outputFile in non-existing directory 1`] = ` +"JUNIT report written to /junitReportDirectory/deeply/nested/report.xml +" +`; + +exports[`JUnit reporter with outputFile in non-existing directory 2`] = ` +" + + +" +`; + +exports[`JUnit reporter with outputFile object 1`] = ` +"JUNIT report written to /report_object.xml +" +`; + +exports[`JUnit reporter with outputFile object 2`] = ` +" + + +" +`; + +exports[`JUnit reporter with outputFile object in non-existing directory 1`] = ` +"JUNIT report written to /junitReportDirectory_object/deeply/nested/report.xml +" +`; + +exports[`JUnit reporter with outputFile object in non-existing directory 2`] = ` +" + + +" +`; + +exports[`JUnit reporter without classname 1`] = ` +" + + + + + + +" +`; + +exports[`json reporter (no outputFile entry) 1`] = ` +{ + "numFailedTestSuites": 1, + "numFailedTests": 1, + "numPassedTestSuites": 1, + "numPassedTests": 6, + "numPendingTestSuites": 0, + "numPendingTests": 1, + "numTodoTests": 1, + "numTotalTestSuites": 2, + "numTotalTests": 9, + "snapshot": { + "_test": true, + "added": 100, + }, + "startTime": 1642587001759, + "success": false, + "testResults": [ + { + "assertionResults": [ + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.4422860145568848, + "failureMessages": [ + "AssertionError: expected 2.23606797749979 to equal 2 + at /vitest/test/core/test/basic.test.ts:8:32 + at /vitest/packages/vitest/dist/vi-ac0504aa.js:73:26 + at runTest (/vitest/packages/vitest/dist/entry.js:1689:40) + at async runSuite (/vitest/packages/vitest/dist/entry.js:1741:13) + at async runSuites (/vitest/packages/vitest/dist/entry.js:1769:5) + at async startTests (/vitest/packages/vitest/dist/entry.js:1774:3) + at async /vitest/packages/vitest/dist/entry.js:1798:7 + at async withEnv (/vitest/packages/vitest/dist/entry.js:1481:5) + at async run (/vitest/packages/vitest/dist/entry.js:1797:5) + at async file:///vitest/node_modules/.pnpm/tinypool@0.1.1/node_modules/tinypool/dist/esm/worker.js:96:20", + ], + "fullName": "suite Math.sqrt()", + "location": { + "column": 32, + "line": 8, + }, + "meta": {}, + "status": "failed", + "title": "Math.sqrt()", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.0237109661102295, + "failureMessages": [], + "fullName": "suite JSON", + "meta": {}, + "status": "passed", + "title": "JSON", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite async with timeout", + "meta": {}, + "status": "skipped", + "title": "async with timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 100.50598406791687, + "failureMessages": [], + "fullName": "suite timeout", + "meta": {}, + "status": "passed", + "title": "timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 20.184875011444092, + "failureMessages": [], + "fullName": "suite callback setup success ", + "meta": {}, + "status": "passed", + "title": "callback setup success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.33245420455932617, + "failureMessages": [], + "fullName": "suite callback test success ", + "meta": {}, + "status": "passed", + "title": "callback test success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 19.738605976104736, + "failureMessages": [], + "fullName": "suite callback setup success done(false)", + "meta": {}, + "status": "passed", + "title": "callback setup success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.1923508644104004, + "failureMessages": [], + "fullName": "suite callback test success done(false)", + "meta": {}, + "status": "passed", + "title": "callback test success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite todo test", + "meta": {}, + "status": "todo", + "title": "todo test", + }, + ], + "endTime": 1642587001759, + "message": "", + "name": "/vitest/test/core/test/basic.test.ts", + "startTime": 1642587001759, + "status": "failed", + }, + ], +} +`; + +exports[`json reporter 1`] = ` +{ + "numFailedTestSuites": 1, + "numFailedTests": 1, + "numPassedTestSuites": 1, + "numPassedTests": 6, + "numPendingTestSuites": 0, + "numPendingTests": 1, + "numTodoTests": 1, + "numTotalTestSuites": 2, + "numTotalTests": 9, + "snapshot": { + "_test": true, + "added": 100, + }, + "startTime": 1642587001759, + "success": false, + "testResults": [ + { + "assertionResults": [ + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.4422860145568848, + "failureMessages": [ + "AssertionError: expected 2.23606797749979 to equal 2 + at /vitest/test/core/test/basic.test.ts:8:32 + at /vitest/packages/vitest/dist/vi-ac0504aa.js:73:26 + at runTest (/vitest/packages/vitest/dist/entry.js:1689:40) + at async runSuite (/vitest/packages/vitest/dist/entry.js:1741:13) + at async runSuites (/vitest/packages/vitest/dist/entry.js:1769:5) + at async startTests (/vitest/packages/vitest/dist/entry.js:1774:3) + at async /vitest/packages/vitest/dist/entry.js:1798:7 + at async withEnv (/vitest/packages/vitest/dist/entry.js:1481:5) + at async run (/vitest/packages/vitest/dist/entry.js:1797:5) + at async file:///vitest/node_modules/.pnpm/tinypool@0.1.1/node_modules/tinypool/dist/esm/worker.js:96:20", + ], + "fullName": "suite Math.sqrt()", + "location": { + "column": 32, + "line": 8, + }, + "meta": {}, + "status": "failed", + "title": "Math.sqrt()", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.0237109661102295, + "failureMessages": [], + "fullName": "suite JSON", + "meta": {}, + "status": "passed", + "title": "JSON", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite async with timeout", + "meta": {}, + "status": "skipped", + "title": "async with timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 100.50598406791687, + "failureMessages": [], + "fullName": "suite timeout", + "meta": {}, + "status": "passed", + "title": "timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 20.184875011444092, + "failureMessages": [], + "fullName": "suite callback setup success ", + "meta": {}, + "status": "passed", + "title": "callback setup success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.33245420455932617, + "failureMessages": [], + "fullName": "suite callback test success ", + "meta": {}, + "status": "passed", + "title": "callback test success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 19.738605976104736, + "failureMessages": [], + "fullName": "suite callback setup success done(false)", + "meta": {}, + "status": "passed", + "title": "callback setup success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.1923508644104004, + "failureMessages": [], + "fullName": "suite callback test success done(false)", + "meta": {}, + "status": "passed", + "title": "callback test success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite todo test", + "meta": {}, + "status": "todo", + "title": "todo test", + }, + ], + "endTime": 1642587001759, + "message": "", + "name": "/vitest/test/core/test/basic.test.ts", + "startTime": 1642587001759, + "status": "failed", + }, + ], +} +`; + +exports[`json reporter with outputFile 1`] = ` +"JSON report written to /report.json +" +`; + +exports[`json reporter with outputFile 2`] = ` +{ + "numFailedTestSuites": 1, + "numFailedTests": 1, + "numPassedTestSuites": 1, + "numPassedTests": 6, + "numPendingTestSuites": 0, + "numPendingTests": 1, + "numTodoTests": 1, + "numTotalTestSuites": 2, + "numTotalTests": 9, + "snapshot": { + "_test": true, + "added": 100, + }, + "startTime": 1642587001759, + "success": false, + "testResults": [ + { + "assertionResults": [ + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.4422860145568848, + "failureMessages": [ + "AssertionError: expected 2.23606797749979 to equal 2 + at /vitest/test/core/test/basic.test.ts:8:32 + at /vitest/packages/vitest/dist/vi-ac0504aa.js:73:26 + at runTest (/vitest/packages/vitest/dist/entry.js:1689:40) + at async runSuite (/vitest/packages/vitest/dist/entry.js:1741:13) + at async runSuites (/vitest/packages/vitest/dist/entry.js:1769:5) + at async startTests (/vitest/packages/vitest/dist/entry.js:1774:3) + at async /vitest/packages/vitest/dist/entry.js:1798:7 + at async withEnv (/vitest/packages/vitest/dist/entry.js:1481:5) + at async run (/vitest/packages/vitest/dist/entry.js:1797:5) + at async file:///vitest/node_modules/.pnpm/tinypool@0.1.1/node_modules/tinypool/dist/esm/worker.js:96:20", + ], + "fullName": "suite Math.sqrt()", + "location": { + "column": 32, + "line": 8, + }, + "meta": {}, + "status": "failed", + "title": "Math.sqrt()", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.0237109661102295, + "failureMessages": [], + "fullName": "suite JSON", + "meta": {}, + "status": "passed", + "title": "JSON", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite async with timeout", + "meta": {}, + "status": "skipped", + "title": "async with timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 100.50598406791687, + "failureMessages": [], + "fullName": "suite timeout", + "meta": {}, + "status": "passed", + "title": "timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 20.184875011444092, + "failureMessages": [], + "fullName": "suite callback setup success ", + "meta": {}, + "status": "passed", + "title": "callback setup success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.33245420455932617, + "failureMessages": [], + "fullName": "suite callback test success ", + "meta": {}, + "status": "passed", + "title": "callback test success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 19.738605976104736, + "failureMessages": [], + "fullName": "suite callback setup success done(false)", + "meta": {}, + "status": "passed", + "title": "callback setup success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.1923508644104004, + "failureMessages": [], + "fullName": "suite callback test success done(false)", + "meta": {}, + "status": "passed", + "title": "callback test success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite todo test", + "meta": {}, + "status": "todo", + "title": "todo test", + }, + ], + "endTime": 1642587001759, + "message": "", + "name": "/vitest/test/core/test/basic.test.ts", + "startTime": 1642587001759, + "status": "failed", + }, + ], +} +`; + +exports[`json reporter with outputFile in non-existing directory 1`] = ` +"JSON report written to /jsonReportDirectory/deeply/nested/report.json +" +`; + +exports[`json reporter with outputFile in non-existing directory 2`] = ` +{ + "numFailedTestSuites": 1, + "numFailedTests": 1, + "numPassedTestSuites": 1, + "numPassedTests": 6, + "numPendingTestSuites": 0, + "numPendingTests": 1, + "numTodoTests": 1, + "numTotalTestSuites": 2, + "numTotalTests": 9, + "snapshot": { + "_test": true, + "added": 100, + }, + "startTime": 1642587001759, + "success": false, + "testResults": [ + { + "assertionResults": [ + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.4422860145568848, + "failureMessages": [ + "AssertionError: expected 2.23606797749979 to equal 2 + at /vitest/test/core/test/basic.test.ts:8:32 + at /vitest/packages/vitest/dist/vi-ac0504aa.js:73:26 + at runTest (/vitest/packages/vitest/dist/entry.js:1689:40) + at async runSuite (/vitest/packages/vitest/dist/entry.js:1741:13) + at async runSuites (/vitest/packages/vitest/dist/entry.js:1769:5) + at async startTests (/vitest/packages/vitest/dist/entry.js:1774:3) + at async /vitest/packages/vitest/dist/entry.js:1798:7 + at async withEnv (/vitest/packages/vitest/dist/entry.js:1481:5) + at async run (/vitest/packages/vitest/dist/entry.js:1797:5) + at async file:///vitest/node_modules/.pnpm/tinypool@0.1.1/node_modules/tinypool/dist/esm/worker.js:96:20", + ], + "fullName": "suite Math.sqrt()", + "location": { + "column": 32, + "line": 8, + }, + "meta": {}, + "status": "failed", + "title": "Math.sqrt()", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.0237109661102295, + "failureMessages": [], + "fullName": "suite JSON", + "meta": {}, + "status": "passed", + "title": "JSON", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite async with timeout", + "meta": {}, + "status": "skipped", + "title": "async with timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 100.50598406791687, + "failureMessages": [], + "fullName": "suite timeout", + "meta": {}, + "status": "passed", + "title": "timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 20.184875011444092, + "failureMessages": [], + "fullName": "suite callback setup success ", + "meta": {}, + "status": "passed", + "title": "callback setup success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.33245420455932617, + "failureMessages": [], + "fullName": "suite callback test success ", + "meta": {}, + "status": "passed", + "title": "callback test success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 19.738605976104736, + "failureMessages": [], + "fullName": "suite callback setup success done(false)", + "meta": {}, + "status": "passed", + "title": "callback setup success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.1923508644104004, + "failureMessages": [], + "fullName": "suite callback test success done(false)", + "meta": {}, + "status": "passed", + "title": "callback test success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite todo test", + "meta": {}, + "status": "todo", + "title": "todo test", + }, + ], + "endTime": 1642587001759, + "message": "", + "name": "/vitest/test/core/test/basic.test.ts", + "startTime": 1642587001759, + "status": "failed", + }, + ], +} +`; + +exports[`json reporter with outputFile object 1`] = ` +"JSON report written to /report_object.json +" +`; + +exports[`json reporter with outputFile object 2`] = ` +{ + "numFailedTestSuites": 1, + "numFailedTests": 1, + "numPassedTestSuites": 1, + "numPassedTests": 6, + "numPendingTestSuites": 0, + "numPendingTests": 1, + "numTodoTests": 1, + "numTotalTestSuites": 2, + "numTotalTests": 9, + "snapshot": { + "_test": true, + "added": 100, + }, + "startTime": 1642587001759, + "success": false, + "testResults": [ + { + "assertionResults": [ + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.4422860145568848, + "failureMessages": [ + "AssertionError: expected 2.23606797749979 to equal 2 + at /vitest/test/core/test/basic.test.ts:8:32 + at /vitest/packages/vitest/dist/vi-ac0504aa.js:73:26 + at runTest (/vitest/packages/vitest/dist/entry.js:1689:40) + at async runSuite (/vitest/packages/vitest/dist/entry.js:1741:13) + at async runSuites (/vitest/packages/vitest/dist/entry.js:1769:5) + at async startTests (/vitest/packages/vitest/dist/entry.js:1774:3) + at async /vitest/packages/vitest/dist/entry.js:1798:7 + at async withEnv (/vitest/packages/vitest/dist/entry.js:1481:5) + at async run (/vitest/packages/vitest/dist/entry.js:1797:5) + at async file:///vitest/node_modules/.pnpm/tinypool@0.1.1/node_modules/tinypool/dist/esm/worker.js:96:20", + ], + "fullName": "suite Math.sqrt()", + "location": { + "column": 32, + "line": 8, + }, + "meta": {}, + "status": "failed", + "title": "Math.sqrt()", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.0237109661102295, + "failureMessages": [], + "fullName": "suite JSON", + "meta": {}, + "status": "passed", + "title": "JSON", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite async with timeout", + "meta": {}, + "status": "skipped", + "title": "async with timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 100.50598406791687, + "failureMessages": [], + "fullName": "suite timeout", + "meta": {}, + "status": "passed", + "title": "timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 20.184875011444092, + "failureMessages": [], + "fullName": "suite callback setup success ", + "meta": {}, + "status": "passed", + "title": "callback setup success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.33245420455932617, + "failureMessages": [], + "fullName": "suite callback test success ", + "meta": {}, + "status": "passed", + "title": "callback test success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 19.738605976104736, + "failureMessages": [], + "fullName": "suite callback setup success done(false)", + "meta": {}, + "status": "passed", + "title": "callback setup success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.1923508644104004, + "failureMessages": [], + "fullName": "suite callback test success done(false)", + "meta": {}, + "status": "passed", + "title": "callback test success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite todo test", + "meta": {}, + "status": "todo", + "title": "todo test", + }, + ], + "endTime": 1642587001759, + "message": "", + "name": "/vitest/test/core/test/basic.test.ts", + "startTime": 1642587001759, + "status": "failed", + }, + ], +} +`; + +exports[`json reporter with outputFile object in non-existing directory 1`] = ` +"JSON report written to /jsonReportDirectory_object/deeply/nested/report.json +" +`; + +exports[`json reporter with outputFile object in non-existing directory 2`] = ` +{ + "numFailedTestSuites": 1, + "numFailedTests": 1, + "numPassedTestSuites": 1, + "numPassedTests": 6, + "numPendingTestSuites": 0, + "numPendingTests": 1, + "numTodoTests": 1, + "numTotalTestSuites": 2, + "numTotalTests": 9, + "snapshot": { + "_test": true, + "added": 100, + }, + "startTime": 1642587001759, + "success": false, + "testResults": [ + { + "assertionResults": [ + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.4422860145568848, + "failureMessages": [ + "AssertionError: expected 2.23606797749979 to equal 2 + at /vitest/test/core/test/basic.test.ts:8:32 + at /vitest/packages/vitest/dist/vi-ac0504aa.js:73:26 + at runTest (/vitest/packages/vitest/dist/entry.js:1689:40) + at async runSuite (/vitest/packages/vitest/dist/entry.js:1741:13) + at async runSuites (/vitest/packages/vitest/dist/entry.js:1769:5) + at async startTests (/vitest/packages/vitest/dist/entry.js:1774:3) + at async /vitest/packages/vitest/dist/entry.js:1798:7 + at async withEnv (/vitest/packages/vitest/dist/entry.js:1481:5) + at async run (/vitest/packages/vitest/dist/entry.js:1797:5) + at async file:///vitest/node_modules/.pnpm/tinypool@0.1.1/node_modules/tinypool/dist/esm/worker.js:96:20", + ], + "fullName": "suite Math.sqrt()", + "location": { + "column": 32, + "line": 8, + }, + "meta": {}, + "status": "failed", + "title": "Math.sqrt()", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 1.0237109661102295, + "failureMessages": [], + "fullName": "suite JSON", + "meta": {}, + "status": "passed", + "title": "JSON", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite async with timeout", + "meta": {}, + "status": "skipped", + "title": "async with timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 100.50598406791687, + "failureMessages": [], + "fullName": "suite timeout", + "meta": {}, + "status": "passed", + "title": "timeout", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 20.184875011444092, + "failureMessages": [], + "fullName": "suite callback setup success ", + "meta": {}, + "status": "passed", + "title": "callback setup success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.33245420455932617, + "failureMessages": [], + "fullName": "suite callback test success ", + "meta": {}, + "status": "passed", + "title": "callback test success ", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 19.738605976104736, + "failureMessages": [], + "fullName": "suite callback setup success done(false)", + "meta": {}, + "status": "passed", + "title": "callback setup success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "duration": 0.1923508644104004, + "failureMessages": [], + "fullName": "suite callback test success done(false)", + "meta": {}, + "status": "passed", + "title": "callback test success done(false)", + }, + { + "ancestorTitles": [ + "suite", + ], + "failureMessages": [], + "fullName": "suite todo test", + "meta": {}, + "status": "todo", + "title": "todo test", + }, + ], + "endTime": 1642587001759, + "message": "", + "name": "/vitest/test/core/test/basic.test.ts", + "startTime": 1642587001759, + "status": "failed", + }, + ], +} +`; + +exports[`tap reporter 1`] = ` +"TAP version 13 +1..1 +not ok 1 - basic.test.ts # time=145.99ms { + 1..1 + ok 1 - suite # time=1.90ms { + 1..9 + not ok 1 - Math.sqrt() # time=1.44ms + --- + error: + name: "AssertionError" + message: "expected 2.23606797749979 to equal 2" + at: "/vitest/test/core/test/basic.test.ts:8:32" + actual: "2.23606797749979" + expected: "2" + ... + ok 2 - JSON # time=1.02ms + ok 3 - async with timeout # SKIP + ok 4 - timeout # time=100.51ms + ok 5 - callback setup success # time=20.18ms + ok 6 - callback test success # time=0.33ms + ok 7 - callback setup success done(false) # time=19.74ms + ok 8 - callback test success done(false) # time=0.19ms + ok 9 - todo test # TODO + } +} +" +`; + +exports[`tap-flat reporter 1`] = ` +"TAP version 13 +1..9 +not ok 1 - basic.test.ts > suite > Math.sqrt() # time=1.44ms + --- + error: + name: "AssertionError" + message: "expected 2.23606797749979 to equal 2" + at: "/vitest/test/core/test/basic.test.ts:8:32" + actual: "2.23606797749979" + expected: "2" + ... +ok 2 - basic.test.ts > suite > JSON # time=1.02ms +ok 3 - basic.test.ts > suite > async with timeout # SKIP +ok 4 - basic.test.ts > suite > timeout # time=100.51ms +ok 5 - basic.test.ts > suite > callback setup success # time=20.18ms +ok 6 - basic.test.ts > suite > callback test success # time=0.33ms +ok 7 - basic.test.ts > suite > callback setup success done(false) # time=19.74ms +ok 8 - basic.test.ts > suite > callback test success done(false) # time=0.19ms +ok 9 - basic.test.ts > suite > todo test # TODO +" +`; diff --git a/test/cli/test/reporters/code-frame-line-limit.test.ts b/test/cli/test/reporters/code-frame-line-limit.test.ts new file mode 100644 index 000000000000..1ca19f8b1a14 --- /dev/null +++ b/test/cli/test/reporters/code-frame-line-limit.test.ts @@ -0,0 +1,9 @@ +import { runVitest } from '#test-utils' +import { resolve } from 'pathe' +import { expect, test } from 'vitest' + +test('show code frame', async () => { + const filename = resolve('./fixtures/reporters/code-frame-line-limit.test.ts') + const { stderr } = await runVitest({ root: './fixtures/reporters' }, [filename]) + expect(stderr).toContain('5| expect([{ prop: 7 },') +}) diff --git a/test/reporters/tests/configuration-options.test-d.ts b/test/cli/test/reporters/configuration-options.test-d.ts similarity index 100% rename from test/reporters/tests/configuration-options.test-d.ts rename to test/cli/test/reporters/configuration-options.test-d.ts diff --git a/test/reporters/tests/console.test.ts b/test/cli/test/reporters/console.test.ts similarity index 84% rename from test/reporters/tests/console.test.ts rename to test/cli/test/reporters/console.test.ts index b261daf2a7cf..6640ec4900f9 100644 --- a/test/reporters/tests/console.test.ts +++ b/test/cli/test/reporters/console.test.ts @@ -1,19 +1,19 @@ import type { UserConsoleLog } from 'vitest' -import type { Reporter } from 'vitest/reporters' +import type { Reporter } from 'vitest/node' +import { runVitest } from '#test-utils' import { resolve } from 'pathe' import { expect, test } from 'vitest' -import { DefaultReporter } from 'vitest/reporters' -import { runVitest } from '../../test-utils' +import { DefaultReporter } from 'vitest/node' class LogReporter extends DefaultReporter { isTTY = true } test('should print logs correctly', async () => { - const filename = resolve('./fixtures/console.test.ts') + const filename = resolve('./fixtures/reporters/console.test.ts') const { stdout, stderr } = await runVitest({ - root: './fixtures', + root: './fixtures/reporters', reporters: [new LogReporter() as any], }, [filename]) @@ -66,7 +66,7 @@ global stderr afterAll`, test.for(['forks', 'threads'])('interleave (pool = %s)', async (pool) => { const logs: UserConsoleLog[] = [] const { stderr } = await runVitest({ - root: './fixtures', + root: './fixtures/reporters', pool, reporters: [ { @@ -75,7 +75,7 @@ test.for(['forks', 'threads'])('interleave (pool = %s)', async (pool) => { }, } satisfies Reporter, ], - }, [resolve('./fixtures/console-interleave.test.ts')]) + }, [resolve('./fixtures/reporters/console-interleave.test.ts')]) expect(stderr).toBe('') expect(logs).toMatchObject([ { diff --git a/test/cli/test/reporters/custom-diff-config.test.ts b/test/cli/test/reporters/custom-diff-config.test.ts new file mode 100644 index 000000000000..96b6d2be3e13 --- /dev/null +++ b/test/cli/test/reporters/custom-diff-config.test.ts @@ -0,0 +1,23 @@ +import { runVitest } from '#test-utils' +import { resolve } from 'pathe' +import { expect, test } from 'vitest' + +test('custom diff config', async () => { + const filename = resolve('./fixtures/reporters/custom-diff-config.test.ts') + const diff = resolve('./fixtures/reporters/custom-diff-config.ts') + const { stderr } = await runVitest({ root: './fixtures/reporters', diff }, [filename]) + + expect(stderr).toBeTruthy() + expect(stderr).toContain('Expected to be') + expect(stderr).toContain('But got') +}) + +test('invalid diff config file', async () => { + const filename = resolve('./fixtures/reporters/custom-diff-config.test.ts') + const diff = resolve('./fixtures/reporters/invalid-diff-config.ts') + const { stderr } = await runVitest({ root: './fixtures/reporters', diff }, [filename]) + + expect(stderr).toBeTruthy() + expect(stderr).toContain('invalid diff config file') + expect(stderr).toContain('Must have a default export with config object') +}) diff --git a/test/cli/test/reporters/custom-reporter.test.ts b/test/cli/test/reporters/custom-reporter.test.ts new file mode 100644 index 000000000000..3a4a9ec23de4 --- /dev/null +++ b/test/cli/test/reporters/custom-reporter.test.ts @@ -0,0 +1,75 @@ +import { runVitest } from '#test-utils' +import { resolve } from 'pathe' +import { describe, expect, test } from 'vitest' +import TestReporter from '../../fixtures/reporters/implementations/custom-reporter' + +const reportersDir = resolve(import.meta.dirname, '../../fixtures/reporters/implementations') + +describe('custom reporters', () => { + test('custom reporter instances works', async () => { + const { stdout } = await runVitest({ + config: false, + root: './fixtures/reporters/basic', + reporters: [new TestReporter()], + }) + expect(stdout).includes('hello from custom reporter') + }) + + test('load no base on root custom reporter instances defined in configuration works', async () => { + const { stdout, stderr } = await runVitest({ + config: false, + root: './fixtures/reporters/basic', + reporters: [ + resolve(reportersDir, './custom-reporter.ts'), + ], + }) + expect(stderr).toBe('') + expect(stdout).includes('hello from custom reporter') + }) + + test('package.json dependencies reporter instances defined in configuration works', async () => { + const { stdout } = await runVitest({ + config: false, + root: './fixtures/reporters/basic', + reporters: ['@test/pkg-reporter', 'vitest-sonar-reporter'], + outputFile: './sonar-config.xml', + }) + expect(stdout).includes('hello from package reporter') + }) + + test('a path to a custom reporter defined in configuration works', async () => { + const { stdout } = await runVitest({ + root: './fixtures/reporters/basic', + config: false, + reporters: [ + resolve(reportersDir, './custom-reporter.js'), + ], + }) + expect(stdout).includes('hello from custom reporter') + }) + + test('overrides reporters by given a CLI argument --reporter works', async () => { + const { stdout } = await runVitest({ + root: './fixtures/reporters/basic', + config: './vitest.config.override.js', + $cliOptions: { + // @ts-expect-error reporter is not defined in types + reporter: resolve(reportersDir, './custom-reporter.js'), + }, + }) + expect(stdout).not.includes('hello from override') + expect(stdout).includes('hello from custom reporter') + }) + + test('custom reporter with options', async () => { + const { stdout } = await runVitest({ + root: './fixtures/reporters/basic', + config: false, + reporters: [ + [resolve(reportersDir, './custom-reporter.ts'), { some: { custom: 'option here' } }], + ], + }) + expect(stdout).includes('hello from custom reporter') + expect(stdout).includes('custom reporter options {"some":{"custom":"option here"}}') + }) +}) diff --git a/test/reporters/tests/default.test.ts b/test/cli/test/reporters/default.test.ts similarity index 87% rename from test/reporters/tests/default.test.ts rename to test/cli/test/reporters/default.test.ts index 89f365f7e66d..7478a48e45b3 100644 --- a/test/reporters/tests/default.test.ts +++ b/test/cli/test/reporters/default.test.ts @@ -1,14 +1,14 @@ import type { RunnerTask } from 'vitest/node' +import { runVitest, runVitestCli, StableTestFileOrderSorter } from '#test-utils' import { describe, expect, test } from 'vitest' -import { DefaultReporter } from 'vitest/reporters' -import { runVitest, runVitestCli, StableTestFileOrderSorter } from '../../test-utils' +import { DefaultReporter } from 'vitest/node' import { trimReporterOutput } from './utils' describe('default reporter', async () => { test('normal', async () => { const { stdout } = await runVitest({ include: ['b1.test.ts', 'b2.test.ts'], - root: 'fixtures/default', + root: 'fixtures/reporters/default', reporters: ['default'], fileParallelism: false, sequence: { @@ -51,7 +51,7 @@ describe('default reporter', async () => { test('normal without fails', async () => { const { stdout } = await runVitest({ include: ['b1.test.ts', 'b2.test.ts'], - root: 'fixtures/default', + root: 'fixtures/reporters/default', reporters: ['default'], fileParallelism: false, testNamePattern: 'passed', @@ -69,7 +69,7 @@ describe('default reporter', async () => { test('show full test suite when only one file', async () => { const { stdout } = await runVitest({ include: ['a.test.ts'], - root: 'fixtures/default', + root: 'fixtures/reporters/default', reporters: 'none', }) @@ -101,7 +101,7 @@ describe('default reporter', async () => { test('rerun should undo', async () => { const { vitest } = await runVitest({ - root: 'fixtures/default', + root: 'fixtures/reporters/default', watch: true, testNamePattern: 'passed', reporters: 'none', @@ -133,7 +133,7 @@ describe('default reporter', async () => { test('doesn\'t print error properties', async () => { const result = await runVitest({ - root: 'fixtures/error-props', + root: 'fixtures/reporters/error-props', reporters: 'default', env: { CI: '1' }, }) @@ -144,27 +144,27 @@ describe('default reporter', async () => { test('prints queued tests as soon as they are added', async () => { const { stdout, vitest } = await runVitest({ - include: ['fixtures/long-loading-task.test.ts'], + include: ['fixtures/reporters/long-loading-task.test.ts'], reporters: [['default', { isTTY: true, summary: true }]], - config: 'fixtures/vitest.config.ts', + config: 'fixtures/reporters/vitest.config.ts', watch: true, }) - await vitest.waitForStdout('❯ fixtures/long-loading-task.test.ts [queued]') + await vitest.waitForStdout('❯ fixtures/reporters/long-loading-task.test.ts [queued]') await vitest.waitForStdout('Waiting for file changes...') - expect(stdout).toContain('✓ fixtures/long-loading-task.test.ts (1 test)') + expect(stdout).toContain('✓ fixtures/reporters/long-loading-task.test.ts (1 test)') }) test('prints skipped tests by default when a single file is run', async () => { const { stdout } = await runVitest({ - include: ['fixtures/pass-and-skip-test-suites.test.ts'], + include: ['fixtures/reporters/pass-and-skip-test-suites.test.ts'], reporters: [['default', { isTTY: true, summary: false }]], - config: 'fixtures/vitest.config.ts', + config: 'fixtures/reporters/vitest.config.ts', }) expect(trimReporterOutput(stdout)).toMatchInlineSnapshot(` - "✓ fixtures/pass-and-skip-test-suites.test.ts (4 tests | 2 skipped) [...]ms + "✓ fixtures/reporters/pass-and-skip-test-suites.test.ts (4 tests | 2 skipped) [...]ms ✓ passing test #1 [...]ms ✓ passing suite (1) ✓ passing test #2 [...]ms @@ -176,14 +176,14 @@ describe('default reporter', async () => { test('hides skipped tests when --hideSkippedTests and a single file is run', async () => { const { stdout } = await runVitest({ - include: ['fixtures/pass-and-skip-test-suites.test.ts'], + include: ['fixtures/reporters/pass-and-skip-test-suites.test.ts'], reporters: [['default', { isTTY: true, summary: false }]], hideSkippedTests: true, config: false, }) expect(trimReporterOutput(stdout)).toMatchInlineSnapshot(` - "✓ fixtures/pass-and-skip-test-suites.test.ts (4 tests | 2 skipped) [...]ms + "✓ fixtures/reporters/pass-and-skip-test-suites.test.ts (4 tests | 2 skipped) [...]ms ✓ passing test #1 [...]ms ✓ passing suite (1) ✓ passing test #2 [...]ms" @@ -192,7 +192,7 @@ describe('default reporter', async () => { test('prints retry count', async () => { const { stdout } = await runVitest({ - include: ['fixtures/retry.test.ts'], + include: ['fixtures/reporters/retry.test.ts'], reporters: [['default', { isTTY: true, summary: false }]], retry: 3, config: false, @@ -204,7 +204,7 @@ describe('default reporter', async () => { test('prints repeat count', async () => { const { stdout } = await runVitest({ - include: ['fixtures/repeats.test.ts'], + include: ['fixtures/reporters/repeats.test.ts'], reporters: [['default', { isTTY: true, summary: false }]], config: false, }) @@ -216,7 +216,7 @@ describe('default reporter', async () => { test('prints 0-based index and 1-based index of the test case', async () => { const { stdout } = await runVitest({ include: ['print-index.test.ts'], - root: 'fixtures/default', + root: 'fixtures/reporters/default', reporters: 'none', }) @@ -231,13 +231,13 @@ describe('default reporter', async () => { test('test.each/for title format', async () => { const { stdout } = await runVitest({ - include: ['fixtures/test-for-title.test.ts'], + include: ['fixtures/reporters/test-for-title.test.ts'], reporters: [['default', { isTTY: true, summary: false }]], config: false, }) expect(trimReporterOutput(stdout)).toMatchInlineSnapshot(` - "✓ fixtures/test-for-title.test.ts (24 tests) [...]ms + "✓ fixtures/reporters/test-for-title.test.ts (24 tests) [...]ms ✓ test.for object : 0 = 'a', 2 = { te: 'st' } [...]ms ✓ test.for object : 0 = 'b', 2 = [ 'test' ] [...]ms ✓ test.each object : 0 = 'a', 2 = { te: 'st' } [...]ms @@ -269,7 +269,7 @@ describe('default reporter', async () => { const { stdout } = await runVitestCli( { preserveAnsi: true }, '--root', - 'fixtures/project-name', + 'fixtures/reporters/project-name', ) expect(stdout).toContain('Example project') @@ -284,7 +284,7 @@ describe('default reporter', async () => { } const { stderr } = await runVitest({ - root: 'fixtures/metadata', + root: 'fixtures/reporters/metadata', reporters: new Custom(), }) @@ -293,7 +293,7 @@ describe('default reporter', async () => { test('merge identical errors', async () => { const { stderr } = await runVitest({ - root: 'fixtures/merge-errors', + root: 'fixtures/reporters/merge-errors', reporters: [['default', { isTTY: true, summary: false }]], config: false, }) diff --git a/test/reporters/tests/dot.test.ts b/test/cli/test/reporters/dot.test.ts similarity index 89% rename from test/reporters/tests/dot.test.ts rename to test/cli/test/reporters/dot.test.ts index df11289d5da8..e7e3c72b6fad 100644 --- a/test/reporters/tests/dot.test.ts +++ b/test/cli/test/reporters/dot.test.ts @@ -1,10 +1,10 @@ +import { runVitest } from '#test-utils' import { describe, expect, test } from 'vitest' -import { runVitest } from '../../test-utils' describe.each([true, false])('{ isTTY: %s }', (isTTY) => { test('renders successful tests', async () => { const { stdout, stderr } = await runVitest({ - root: './fixtures', + root: './fixtures/reporters', include: ['./ok.test.ts'], reporters: [['dot', { isTTY }]], }) @@ -17,7 +17,7 @@ describe.each([true, false])('{ isTTY: %s }', (isTTY) => { test('renders failing tests', async () => { const { stdout, stderr } = await runVitest({ - root: './fixtures', + root: './fixtures/reporters', include: ['./some-failing.test.ts'], reporters: [['dot', { isTTY }]], }) @@ -31,7 +31,7 @@ describe.each([true, false])('{ isTTY: %s }', (isTTY) => { test('renders skipped tests', async () => { const { stdout, stderr } = await runVitest({ - root: './fixtures', + root: './fixtures/reporters', include: ['./all-skipped.test.ts'], reporters: [['dot', { isTTY }]], }) diff --git a/test/reporters/tests/error-to-json.test.ts b/test/cli/test/reporters/error-to-json.test.ts similarity index 57% rename from test/reporters/tests/error-to-json.test.ts rename to test/cli/test/reporters/error-to-json.test.ts index 8f74e5e0656a..d56af87166d9 100644 --- a/test/reporters/tests/error-to-json.test.ts +++ b/test/cli/test/reporters/error-to-json.test.ts @@ -1,7 +1,7 @@ +import { runVitest } from '#test-utils' import { expect, test } from 'vitest' -import { runVitest } from '../../test-utils' test('should print logs correctly', async () => { - const result = await runVitest({ root: './fixtures' }, ['error-to-json.test.ts']) + const result = await runVitest({ root: './fixtures/reporters' }, ['error-to-json.test.ts']) expect(result.stderr).toContain(`Serialized Error: { date: '1970-01-01T00:00:00.000Z' }`) }) diff --git a/test/reporters/tests/function-as-name.test.ts b/test/cli/test/reporters/function-as-name.test.ts similarity index 67% rename from test/reporters/tests/function-as-name.test.ts rename to test/cli/test/reporters/function-as-name.test.ts index 97a771dd7380..c683f9dda4dc 100644 --- a/test/reporters/tests/function-as-name.test.ts +++ b/test/cli/test/reporters/function-as-name.test.ts @@ -1,10 +1,10 @@ +import { runVitest } from '#test-utils' import { resolve } from 'pathe' import { expect, test } from 'vitest' -import { runVitest } from '../../test-utils' test('should print function name', async () => { - const filename = resolve('./fixtures/function-as-name.test.ts') - const { stdout } = await runVitest({ root: './fixtures' }, [filename]) + const filename = resolve('./fixtures/reporters/function-as-name.test.ts') + const { stdout } = await runVitest({ root: './fixtures/reporters' }, [filename]) expect(stdout).toBeTruthy() expect(stdout).toContain('function-as-name.test.ts > foo > Bar') @@ -16,8 +16,8 @@ test('should print function name', async () => { }) test('should print function name in benchmark', async () => { - const filename = resolve('./fixtures/function-as-name.bench.ts') - const { stdout } = await runVitest({ root: './fixtures' }, [filename], { mode: 'benchmark' }) + const filename = resolve('./fixtures/reporters/function-as-name.bench.ts') + const { stdout } = await runVitest({ root: './fixtures/reporters' }, [filename], { mode: 'benchmark' }) expect(stdout).toBeTruthy() expect(stdout).toContain('Bar') diff --git a/test/reporters/tests/github-actions.test.ts b/test/cli/test/reporters/github-actions.test.ts similarity index 54% rename from test/reporters/tests/github-actions.test.ts rename to test/cli/test/reporters/github-actions.test.ts index 3598510f6c35..66dc815483ee 100644 --- a/test/reporters/tests/github-actions.test.ts +++ b/test/cli/test/reporters/github-actions.test.ts @@ -1,18 +1,18 @@ import { sep } from 'node:path' +import { runVitest } from '#test-utils' import { resolve } from 'pathe' import { describe, expect, it } from 'vitest' -import { GithubActionsReporter } from '../../../packages/vitest/src/node/reporters' -import { runVitest } from '../../test-utils' +import { GithubActionsReporter } from 'vitest/node' describe(GithubActionsReporter, () => { it('uses absolute path by default', async () => { let { stdout, stderr } = await runVitest( - { reporters: new GithubActionsReporter(), root: './fixtures', include: ['**/some-failing.test.ts'] }, + { reporters: new GithubActionsReporter(), root: './fixtures/reporters', include: ['**/some-failing.test.ts'] }, ) - stdout = stdout.replace(resolve(import.meta.dirname, '..').replace(/:/g, '%3A'), '__TEST_DIR__') + stdout = stdout.replace(resolve(import.meta.dirname, '../..').replace(/:/g, '%3A'), '__TEST_DIR__') expect(stdout).toMatchInlineSnapshot(` " - ::error file=__TEST_DIR__/fixtures/some-failing.test.ts,title=some-failing.test.ts > 3 + 3 = 7,line=8,column=17::AssertionError: expected 6 to be 7 // Object.is equality%0A%0A- Expected%0A+ Received%0A%0A- 7%0A+ 6%0A%0A ❯ some-failing.test.ts:8:17%0A%0A + ::error file=__TEST_DIR__/fixtures/reporters/some-failing.test.ts,title=some-failing.test.ts > 3 + 3 = 7,line=8,column=17::AssertionError: expected 6 to be 7 // Object.is equality%0A%0A- Expected%0A+ Received%0A%0A- 7%0A+ 6%0A%0A ❯ some-failing.test.ts:8:17%0A%0A " `) expect(stderr).toBe('') @@ -23,14 +23,14 @@ describe(GithubActionsReporter, () => { { name: 'test-project', reporters: new GithubActionsReporter(), - root: './fixtures', + root: './fixtures/reporters', include: ['**/some-failing.test.ts'], }, ) - stdout = stdout.replace(resolve(import.meta.dirname, '..').replace(/:/g, '%3A'), '__TEST_DIR__') + stdout = stdout.replace(resolve(import.meta.dirname, '../..').replace(/:/g, '%3A'), '__TEST_DIR__') expect(stdout).toMatchInlineSnapshot(` " - ::error file=__TEST_DIR__/fixtures/some-failing.test.ts,title=[test-project] some-failing.test.ts > 3 + 3 = 7,line=8,column=17::AssertionError: expected 6 to be 7 // Object.is equality%0A%0A- Expected%0A+ Received%0A%0A- 7%0A+ 6%0A%0A ❯ some-failing.test.ts:8:17%0A%0A + ::error file=__TEST_DIR__/fixtures/reporters/some-failing.test.ts,title=[test-project] some-failing.test.ts > 3 + 3 = 7,line=8,column=17::AssertionError: expected 6 to be 7 // Object.is equality%0A%0A- Expected%0A+ Received%0A%0A- 7%0A+ 6%0A%0A ❯ some-failing.test.ts:8:17%0A%0A " `) expect(stderr).toBe('') @@ -42,19 +42,19 @@ describe(GithubActionsReporter, () => { reporters: new GithubActionsReporter({ onWritePath(path) { const normalized = path - .replace(resolve(import.meta.dirname, '..'), '') + .replace(resolve(import.meta.dirname, '../..'), '') .replaceAll(sep, '/') return `/some-custom-path${normalized}` }, }), - root: './fixtures', + root: './fixtures/reporters', include: ['**/some-failing.test.ts'], }, ) expect(stdout).toMatchInlineSnapshot(` " - ::error file=/some-custom-path/fixtures/some-failing.test.ts,title=some-failing.test.ts > 3 + 3 = 7,line=8,column=17::AssertionError: expected 6 to be 7 // Object.is equality%0A%0A- Expected%0A+ Received%0A%0A- 7%0A+ 6%0A%0A ❯ some-failing.test.ts:8:17%0A%0A + ::error file=/some-custom-path/fixtures/reporters/some-failing.test.ts,title=some-failing.test.ts > 3 + 3 = 7,line=8,column=17::AssertionError: expected 6 to be 7 // Object.is equality%0A%0A- Expected%0A+ Received%0A%0A- 7%0A+ 6%0A%0A ❯ some-failing.test.ts:8:17%0A%0A " `) expect(stderr).toBe('') diff --git a/test/reporters/tests/html.test.ts b/test/cli/test/reporters/html.test.ts similarity index 95% rename from test/reporters/tests/html.test.ts rename to test/cli/test/reporters/html.test.ts index bc54210a5a06..39df19047709 100644 --- a/test/reporters/tests/html.test.ts +++ b/test/cli/test/reporters/html.test.ts @@ -1,14 +1,14 @@ import fs from 'node:fs' import zlib from 'node:zlib' +import { runInlineTests, runVitest } from '#test-utils' import { playwright } from '@vitest/browser-playwright' import { parse } from 'flatted' import { resolve } from 'pathe' import { describe, expect, it } from 'vitest' -import { runInlineTests, runVitest } from '../../test-utils' describe('html reporter', async () => { - const vitestRoot = resolve(import.meta.dirname, '../../..') - const root = resolve(import.meta.dirname, '../fixtures') + const vitestRoot = resolve(import.meta.dirname, '../../../..') + const root = resolve(import.meta.dirname, '../../fixtures/reporters') it('resolves to "passing" status for test file "all-passing-or-skipped"', async () => { const basePath = 'html/all-passing-or-skipped' diff --git a/test/reporters/tests/import-durations.test.ts b/test/cli/test/reporters/import-durations.test.ts similarity index 95% rename from test/reporters/tests/import-durations.test.ts rename to test/cli/test/reporters/import-durations.test.ts index 39306adb2879..282225ed9fa8 100644 --- a/test/reporters/tests/import-durations.test.ts +++ b/test/cli/test/reporters/import-durations.test.ts @@ -1,9 +1,9 @@ +import { runVitest } from '#test-utils' import { resolve } from 'pathe' import { describe, expect, it } from 'vitest' -import { runVitest } from '../../test-utils' describe('import durations', () => { - const root = resolve(import.meta.dirname, '..', 'fixtures') + const root = resolve(import.meta.dirname, '..', '..', 'fixtures', 'reporters') it('should populate importDurations on File with import durations during execution', async () => { const { exitCode, ctx } = await runVitest({ diff --git a/test/reporters/tests/indicator-position.test.ts b/test/cli/test/reporters/indicator-position.test.ts similarity index 81% rename from test/reporters/tests/indicator-position.test.ts rename to test/cli/test/reporters/indicator-position.test.ts index b695232b950c..bcfa24db16be 100644 --- a/test/reporters/tests/indicator-position.test.ts +++ b/test/cli/test/reporters/indicator-position.test.ts @@ -1,14 +1,15 @@ import { readFileSync } from 'node:fs' +import { runVitest } from '#test-utils' import { resolve } from 'pathe' import { expect, test } from 'vitest' -import { runVitest } from '../../test-utils' test('should print correct indicator position', async () => { - const filename = resolve('./fixtures/indicator-position.test.js') - const { stderr } = await runVitest({ root: './fixtures' }, [filename]) + const filename = resolve('./fixtures/reporters/indicator-position.test.js') const code = readFileSync(filename, 'utf-8') - expect(code).toMatch(/\r\n/) + + const { stderr } = await runVitest({ root: './fixtures/reporters' }, [filename]) + expect(stderr).toBeTruthy() expect(stderr).toMatchInlineSnapshot(` " diff --git a/test/reporters/tests/json.test.ts b/test/cli/test/reporters/json.test.ts similarity index 96% rename from test/reporters/tests/json.test.ts rename to test/cli/test/reporters/json.test.ts index 54b973851cc4..f718712a04d6 100644 --- a/test/reporters/tests/json.test.ts +++ b/test/cli/test/reporters/json.test.ts @@ -1,11 +1,11 @@ +import { runVitest } from '#test-utils' import { resolve } from 'pathe' -import { describe, expect, it } from 'vitest' -import { runVitest } from '../../test-utils' +import { describe, expect, it } from 'vitest' describe('json reporter', async () => { - const root = resolve(import.meta.dirname, '..', 'fixtures') - const projectRoot = resolve(import.meta.dirname, '..', '..', '..') + const root = resolve(import.meta.dirname, '..', '..', 'fixtures', 'reporters') + const projectRoot = resolve(import.meta.dirname, '..', '..', '..', '..') it('generates correct report', async () => { const { stdout } = await runVitest({ @@ -37,7 +37,7 @@ describe('json reporter', async () => { return errorStack.replace(/\\/g, '/').replace(rootRegexp, '') }) expect(result).toMatchSnapshot() - }, 40000) + }) it('generates empty json with success: false', async () => { const { stdout } = await runVitest({ @@ -137,5 +137,5 @@ describe('json reporter', async () => { expect(data.testResults).toHaveLength(1) expect(data.testResults[0].status).toBe(expected) - }, 40000) + }) }) diff --git a/test/reporters/tests/junit.test.ts b/test/cli/test/reporters/junit.test.ts similarity index 88% rename from test/reporters/tests/junit.test.ts rename to test/cli/test/reporters/junit.test.ts index 1d27b9b6c2ff..c00d4969e0c0 100644 --- a/test/reporters/tests/junit.test.ts +++ b/test/cli/test/reporters/junit.test.ts @@ -1,11 +1,11 @@ +import type { Task } from '@vitest/runner' import type { RunnerTaskResult, RunnerTestCase, RunnerTestFile, RunnerTestSuite } from 'vitest' +import { runVitest, runVitestCli } from '#test-utils' import { createFileTask } from '@vitest/runner/utils' import { resolve } from 'pathe' import { expect, test } from 'vitest' -import { getDuration } from '../../../packages/vitest/src/node/reporters/junit' -import { runVitest, runVitestCli } from '../../test-utils' -const root = resolve(import.meta.dirname, '../fixtures') +const root = resolve(import.meta.dirname, '../../fixtures/reporters') test('calc the duration used by junit', () => { const result: RunnerTaskResult = { state: 'pass', duration: 0 } @@ -65,7 +65,7 @@ test('emits if a test has a syntax error', async () => { }) test('emits when beforeAll/afterAll failed', async () => { - const { stdout } = await runVitest({ reporters: 'junit', root: './fixtures/suite-hook-failure' }) + const { stdout } = await runVitest({ reporters: 'junit', root: './fixtures/reporters/suite-hook-failure' }) const xml = stabilizeReport(stdout) @@ -73,7 +73,7 @@ test('emits when beforeAll/afterAll failed', async () => { }) test('time', async () => { - const { stdout } = await runVitest({ reporters: 'junit', root: './fixtures/duration' }) + const { stdout } = await runVitest({ reporters: 'junit', root: './fixtures/reporters/duration' }) const xml = stabilizeReportWOTime(stdout) @@ -100,7 +100,7 @@ test('format error', async () => { }) test('write testsuite name relative to root config', async () => { - const { stdout } = await runVitest({ reporters: 'junit', root: './fixtures/better-testsuite-name' }) + const { stdout } = await runVitest({ reporters: 'junit', root: './fixtures/reporters/better-testsuite-name' }) const xml = stabilizeReport(stdout) @@ -111,7 +111,7 @@ test('write testsuite name relative to root config', async () => { test('options.suiteName changes name property', async () => { const { stdout } = await runVitest({ reporters: [['junit', { suiteName: 'some-custom-suiteName' }]], - root: './fixtures/default', + root: './fixtures/reporters/default', include: ['a.test.ts'], }) @@ -160,7 +160,7 @@ test('many errors without warning', async () => { 'run', '--reporter=junit', '--root', - resolve(import.meta.dirname, '../fixtures/many-errors'), + resolve(import.meta.dirname, '../fixtures/reporters/many-errors'), ) expect(stderr).not.toContain('MaxListenersExceededWarning') }) @@ -170,7 +170,7 @@ test('CLI reporter option preserves config file options', async () => { 'run', '--reporter=junit', '--root', - resolve(import.meta.dirname, '../fixtures/junit-cli-options'), + resolve(import.meta.dirname, '../../fixtures/reporters/junit-cli-options'), ) const xml = stabilizeReport(stdout) @@ -182,3 +182,15 @@ test('CLI reporter option preserves config file options', async () => { // Verify that addFileAttribute from config is preserved expect(xml).toContain('file="') }) + +function executionTime(durationMS: number) { + return (durationMS / 1000).toLocaleString('en-US', { + useGrouping: false, + maximumFractionDigits: 10, + }) +} + +export function getDuration(task: Task): string | undefined { + const duration = task.result?.duration ?? 0 + return executionTime(duration) +} diff --git a/test/reporters/tests/logger.test.ts b/test/cli/test/reporters/logger.test.ts similarity index 89% rename from test/reporters/tests/logger.test.ts rename to test/cli/test/reporters/logger.test.ts index 6c07a1761b46..b92c4f40150c 100644 --- a/test/reporters/tests/logger.test.ts +++ b/test/cli/test/reporters/logger.test.ts @@ -1,10 +1,10 @@ +import { runVitest } from '#test-utils' import { expect, test } from 'vitest' -import { runVitest } from '../../test-utils' test('cursor is hidden during test run in TTY', async () => { const { stdout } = await runVitest({ include: ['b1.test.ts'], - root: 'fixtures/default', + root: 'fixtures/reporters/default', reporters: 'none', watch: false, }, [], { tty: true, preserveAnsi: true }) diff --git a/test/reporters/tests/merge-reports.test.ts b/test/cli/test/reporters/merge-reports.test.ts similarity index 88% rename from test/reporters/tests/merge-reports.test.ts rename to test/cli/test/reporters/merge-reports.test.ts index fcf214577d06..85b8ff6992e0 100644 --- a/test/reporters/tests/merge-reports.test.ts +++ b/test/cli/test/reporters/merge-reports.test.ts @@ -1,15 +1,15 @@ import type { File, Test } from '@vitest/runner/types' import { rmSync } from 'node:fs' import { resolve } from 'node:path' +import { runVitest } from '#test-utils' import { createFileTask } from '@vitest/runner/utils' import { beforeEach, expect, test } from 'vitest' import { version } from 'vitest/package.json' import { writeBlob } from 'vitest/src/node/reporters/blob.js' -import { runVitest } from '../../test-utils' // always relative to CWD because it's used only from the CLI, // so we need to correctly resolve it here -const reportsDir = resolve('./fixtures/merge-reports/.vitest-reports') +const reportsDir = resolve('./fixtures/reporters/merge-reports/.vitest-reports') beforeEach(() => { rmSync(reportsDir, { force: true, recursive: true }) @@ -17,19 +17,19 @@ beforeEach(() => { test('merge reports', async () => { await runVitest({ - root: './fixtures/merge-reports', + root: './fixtures/reporters/merge-reports', include: ['first.test.ts'], reporters: [['blob', { outputFile: './.vitest-reports/first-run.json' }]], }) await runVitest({ - root: './fixtures/merge-reports', + root: './fixtures/reporters/merge-reports', include: ['second.test.ts'], reporters: [['blob', { outputFile: './.vitest-reports/second-run.json' }]], }) const { stdout: reporterDefault, stderr: stderrDefault, exitCode } = await runVitest({ - root: './fixtures/merge-reports', + root: './fixtures/reporters/merge-reports', mergeReports: reportsDir, reporters: [['default', { isTTY: false }]], }) @@ -112,7 +112,7 @@ test('merge reports', async () => { `) const { stdout: reporterJson } = await runVitest({ - root: './fixtures/merge-reports', + root: './fixtures/reporters/merge-reports', mergeReports: reportsDir, reporters: [['json', { outputFile: /** so it outputs into stdout */ null }]], }) @@ -179,7 +179,7 @@ test('merge reports', async () => { "ancestorTitles": [], "failureMessages": [ "AssertionError: expected 1 to be 2 // Object.is equality - at /fixtures/merge-reports/first.test.ts:15:13", + at /fixtures/reporters/merge-reports/first.test.ts:15:13", ], "fullName": "test 1-2", "meta": {}, @@ -189,7 +189,7 @@ test('merge reports', async () => { ], "endTime": "