diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/1704/data/16d45a6c75153e851baa84c5e27c2fda83a3139a.zip b/1704/data/16d45a6c75153e851baa84c5e27c2fda83a3139a.zip new file mode 100644 index 000000000..af464d3aa Binary files /dev/null and b/1704/data/16d45a6c75153e851baa84c5e27c2fda83a3139a.zip differ diff --git a/1704/data/38cca614e114aab5e91c625029a64c9d36273667.webm b/1704/data/38cca614e114aab5e91c625029a64c9d36273667.webm new file mode 100644 index 000000000..a348ffbf5 Binary files /dev/null and b/1704/data/38cca614e114aab5e91c625029a64c9d36273667.webm differ diff --git a/1704/data/56f69b15847b1aa3cf947b1063928115600a26b0.png b/1704/data/56f69b15847b1aa3cf947b1063928115600a26b0.png new file mode 100644 index 000000000..6d8723e95 Binary files /dev/null and b/1704/data/56f69b15847b1aa3cf947b1063928115600a26b0.png differ diff --git a/1704/index.html b/1704/index.html new file mode 100644 index 000000000..d78ce25ec --- /dev/null +++ b/1704/index.html @@ -0,0 +1,68 @@ + + + + + + + + + Playwright Test Report + + + + +
+ + + \ No newline at end of file diff --git a/1704/test-results.json b/1704/test-results.json new file mode 100644 index 000000000..86ca70e80 --- /dev/null +++ b/1704/test-results.json @@ -0,0 +1,7063 @@ +{ + "config": { + "configFile": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/playwright.config.ts", + "rootDir": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/suites", + "forbidOnly": false, + "fullyParallel": false, + "globalSetup": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/playwrightSetup.ts", + "globalTeardown": null, + "globalTimeout": 0, + "grep": {}, + "grepInvert": null, + "maxFailures": 0, + "metadata": { + "actualWorkers": 2 + }, + "preserveOutput": "always", + "reporter": [ + [ + "html", + { + "outputFolder": "./playwright-artifacts/playwright-report" + } + ], + [ + "json", + { + "outputFile": "./playwright-artifacts/test-results.json" + } + ] + ], + "reportSlowTests": { + "max": 5, + "threshold": 15000 + }, + "quiet": false, + "projects": [ + { + "outputDir": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/playwright-artifacts/test-results", + "repeatEach": 1, + "retries": 2, + "id": "chromium", + "name": "chromium", + "testDir": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/suites", + "testIgnore": [], + "testMatch": [ + "**/*.@(spec|test).?(c|m)[jt]s?(x)" + ], + "timeout": 120000 + }, + { + "outputDir": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/playwright-artifacts/test-results", + "repeatEach": 1, + "retries": 2, + "id": "safari", + "name": "safari", + "testDir": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/suites", + "testIgnore": [], + "testMatch": [ + "**/*.@(spec|test).?(c|m)[jt]s?(x)" + ], + "timeout": 120000 + } + ], + "shard": null, + "updateSnapshots": "missing", + "version": "1.42.1", + "workers": 2, + "webServer": { + "command": "npm run dev", + "port": 3000 + } + }, + "suites": [ + { + "title": "internalViewer/internalViewer.test.ts", + "file": "internalViewer/internalViewer.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test InternalViewer", + "file": "internalViewer/internalViewer.test.ts", + "line": 3, + "column": 6, + "specs": [ + { + "title": "Test internalViewer header link", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 2333, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:52:54.306Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "bbf5c844619cf507bedd-fb807d97e0b05ec268fc", + "file": "internalViewer/internalViewer.test.ts", + "line": 4, + "column": 9 + }, + { + "title": "Test internalViewer header link", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 2316, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:03.199Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "bbf5c844619cf507bedd-fd92e2909195446d618f", + "file": "internalViewer/internalViewer.test.ts", + "line": 4, + "column": 9 + } + ] + } + ] + }, + { + "title": "memoryViewer/memoryViewer.test.ts", + "file": "memoryViewer/memoryViewer.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Memory Viewer Widget", + "file": "memoryViewer/memoryViewer.test.ts", + "line": 8, + "column": 6, + "specs": [ + { + "title": "Memory viewer is visible and has correct status", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3976, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:52:54.349Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9018696e884d04f1a6b5-91e9bebf0aad45b31740", + "file": "memoryViewer/memoryViewer.test.ts", + "line": 25, + "column": 9 + }, + { + "title": "Memory viewer shows correct base metrics", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3294, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:52:58.455Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9018696e884d04f1a6b5-f1c98b9fee3c64c161c2", + "file": "memoryViewer/memoryViewer.test.ts", + "line": 33, + "column": 9 + }, + { + "title": "Memory viewer popup shows on hover with all metrics", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3341, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:01.751Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9018696e884d04f1a6b5-1c02b0cccbdcc375d24c", + "file": "memoryViewer/memoryViewer.test.ts", + "line": 48, + "column": 9 + }, + { + "title": "Memory viewer is visible and has correct status", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 4976, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:06.323Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9018696e884d04f1a6b5-96b55b29deac2f3f1c63", + "file": "memoryViewer/memoryViewer.test.ts", + "line": 25, + "column": 9 + }, + { + "title": "Memory viewer shows correct base metrics", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 4727, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:11.300Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9018696e884d04f1a6b5-24b49bcfb14f8ea9248b", + "file": "memoryViewer/memoryViewer.test.ts", + "line": 33, + "column": 9 + }, + { + "title": "Memory viewer popup shows on hover with all metrics", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 5214, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:16.029Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9018696e884d04f1a6b5-eb7c9644afca65ef27a9", + "file": "memoryViewer/memoryViewer.test.ts", + "line": 48, + "column": 9 + } + ] + } + ] + }, + { + "title": "nodes/nodes.test.ts", + "file": "nodes/nodes.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test Nodes page", + "file": "nodes/nodes.test.ts", + "line": 7, + "column": 6, + "specs": [ + { + "title": "Nodes page is OK", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 1054, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:52:56.795Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-e1732583c7eeca741496", + "file": "nodes/nodes.test.ts", + "line": 8, + "column": 9 + }, + { + "title": "Nodes page has nodes table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 1858, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:52:57.851Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-0b20a9a307afd1dd5033", + "file": "nodes/nodes.test.ts", + "line": 14, + "column": 9 + }, + { + "title": "Nodes page is OK", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 1586, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:21.252Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-bf95b0df97e12d005041", + "file": "nodes/nodes.test.ts", + "line": 8, + "column": 9 + }, + { + "title": "Nodes page has nodes table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 3052, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:22.839Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-27276561dc94b142dbcd", + "file": "nodes/nodes.test.ts", + "line": 14, + "column": 9 + } + ] + }, + { + "title": "Test Nodes Paginated Table", + "file": "nodes/nodes.test.ts", + "line": 25, + "column": 6, + "specs": [ + { + "title": "Table loads and displays data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 2733, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:52:59.710Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-d8c1a0b16a1d37fb9a1a", + "file": "nodes/nodes.test.ts", + "line": 32, + "column": 9 + }, + { + "title": "Search by hostname filters the table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3732, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:02.444Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-ad1e5f297bc7b282c53a", + "file": "nodes/nodes.test.ts", + "line": 42, + "column": 9 + }, + { + "title": "Table groups displayed correctly if group by option is selected", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3578, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:06.178Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-2a4657a1cbb187e76f52", + "file": "nodes/nodes.test.ts", + "line": 57, + "column": 9 + }, + { + "title": "Node count is displayed correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 2906, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:09.758Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-d76339721319832340c5", + "file": "nodes/nodes.test.ts", + "line": 76, + "column": 9 + }, + { + "title": "Uptime values are displayed in correct format", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 2875, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:12.665Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-d355cd055b78a763b55f", + "file": "nodes/nodes.test.ts", + "line": 88, + "column": 9 + }, + { + "title": "Refresh button updates the table data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 5881, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:15.541Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-4eded46a2b0a81e5eeb2", + "file": "nodes/nodes.test.ts", + "line": 101, + "column": 9 + }, + { + "title": "Row data can be retrieved correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 2935, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:21.424Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-c546dc6b5dc55c7801aa", + "file": "nodes/nodes.test.ts", + "line": 116, + "column": 9 + }, + { + "title": "Column values can be retrieved correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3204, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:24.360Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-b1a7f4c0f4466ce9a2f8", + "file": "nodes/nodes.test.ts", + "line": 132, + "column": 9 + }, + { + "title": "Table displays empty data message when no entities", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3799, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:27.565Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-73178c32ffed374b7564", + "file": "nodes/nodes.test.ts", + "line": 146, + "column": 9 + }, + { + "title": "Autorefresh updates data when initially empty data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 18434, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:31.365Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-1c8ef4c3a43c93a7ffd0", + "file": "nodes/nodes.test.ts", + "line": 160, + "column": 9 + }, + { + "title": "Table loads and displays data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 3462, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:25.892Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-4be8d949e2e78b78c323", + "file": "nodes/nodes.test.ts", + "line": 32, + "column": 9 + }, + { + "title": "Search by hostname filters the table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 4959, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:29.356Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-6dba9c00ddb5249131bc", + "file": "nodes/nodes.test.ts", + "line": 42, + "column": 9 + }, + { + "title": "Table groups displayed correctly if group by option is selected", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 4995, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:34.316Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-073d9ea87da34243ab4e", + "file": "nodes/nodes.test.ts", + "line": 57, + "column": 9 + }, + { + "title": "Node count is displayed correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 3680, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:39.313Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-cfd303a4348690adba49", + "file": "nodes/nodes.test.ts", + "line": 76, + "column": 9 + }, + { + "title": "Uptime values are displayed in correct format", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 3536, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:42.994Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-29db22f9bbc969b0a101", + "file": "nodes/nodes.test.ts", + "line": 88, + "column": 9 + }, + { + "title": "Refresh button updates the table data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 6629, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:46.532Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-ffa22a725090e9f87aa1", + "file": "nodes/nodes.test.ts", + "line": 101, + "column": 9 + }, + { + "title": "Row data can be retrieved correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 4061, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:53.162Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-f6e2c8d7a9ef5547b627", + "file": "nodes/nodes.test.ts", + "line": 116, + "column": 9 + }, + { + "title": "Column values can be retrieved correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 3637, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:57.224Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-347999c1d980fbe9847c", + "file": "nodes/nodes.test.ts", + "line": 132, + "column": 9 + }, + { + "title": "Table displays empty data message when no entities", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 5568, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:00.862Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-873269e69e591edb1252", + "file": "nodes/nodes.test.ts", + "line": 146, + "column": 9 + }, + { + "title": "Autorefresh updates data when initially empty data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 19057, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:06.434Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fefa58c6d5e81985f950-2e624e4b7cf5bf517423", + "file": "nodes/nodes.test.ts", + "line": 160, + "column": 9 + } + ] + } + ] + }, + { + "title": "sidebar/sidebar.test.ts", + "file": "sidebar/sidebar.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test Sidebar", + "file": "sidebar/sidebar.test.ts", + "line": 8, + "column": 6, + "specs": [ + { + "title": "Sidebar is visible and loads correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1264, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:05.099Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-316ba7673fe99ba2afc3", + "file": "sidebar/sidebar.test.ts", + "line": 15, + "column": 9 + }, + { + "title": "Logo button is visible and clickable", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1822, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:06.365Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-4776a26d896723c73ba4", + "file": "sidebar/sidebar.test.ts", + "line": 21, + "column": 9 + }, + { + "title": "Settings button is visible and clickable", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1571, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:08.188Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-116e1269f23a47b5ec8e", + "file": "sidebar/sidebar.test.ts", + "line": 28, + "column": 9 + }, + { + "title": "Settings button click opens drawer with correct sections", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 2369, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:09.761Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-f83026284ee7d80d646d", + "file": "sidebar/sidebar.test.ts", + "line": 35, + "column": 9 + }, + { + "title": "Documentation button is visible and clickable", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1508, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:12.130Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-f754944d3ba22cc86843", + "file": "sidebar/sidebar.test.ts", + "line": 54, + "column": 9 + }, + { + "title": "Account button is visible and clickable", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1562, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:13.640Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-69c1f4ff73145ac10b99", + "file": "sidebar/sidebar.test.ts", + "line": 61, + "column": 9 + }, + { + "title": "Sidebar can be collapsed and expanded", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 2495, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:15.203Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-cdd3f02da34fc1d8478b", + "file": "sidebar/sidebar.test.ts", + "line": 68, + "column": 9 + }, + { + "title": "Footer items are visible", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1106, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:17.700Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-5b97b23240b9496e3cf1", + "file": "sidebar/sidebar.test.ts", + "line": 86, + "column": 9 + }, + { + "title": "Can toggle experiments in settings", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4613, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:18.807Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-8c5fa3c788e145f910ba", + "file": "sidebar/sidebar.test.ts", + "line": 94, + "column": 9 + }, + { + "title": "Sidebar is visible and loads correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 2559, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:29.199Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-a0992cf6b94e55d41a2b", + "file": "sidebar/sidebar.test.ts", + "line": 15, + "column": 9 + }, + { + "title": "Logo button is visible and clickable", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 1986, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:31.872Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-4354e7acccbfda64c2ad", + "file": "sidebar/sidebar.test.ts", + "line": 21, + "column": 9 + }, + { + "title": "Settings button is visible and clickable", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 2766, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:33.859Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-4c06aa715fab42eb1fdb", + "file": "sidebar/sidebar.test.ts", + "line": 28, + "column": 9 + }, + { + "title": "Settings button click opens drawer with correct sections", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 2710, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:36.628Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-11ef89a3d13dc9519ffe", + "file": "sidebar/sidebar.test.ts", + "line": 35, + "column": 9 + }, + { + "title": "Documentation button is visible and clickable", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 2679, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:39.339Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-129cb56c9a403682f358", + "file": "sidebar/sidebar.test.ts", + "line": 54, + "column": 9 + }, + { + "title": "Account button is visible and clickable", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 2109, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:42.020Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-68670511a06da64f5d1b", + "file": "sidebar/sidebar.test.ts", + "line": 61, + "column": 9 + }, + { + "title": "Sidebar can be collapsed and expanded", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 3580, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:44.130Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-071c1957a426effe35ee", + "file": "sidebar/sidebar.test.ts", + "line": 68, + "column": 9 + }, + { + "title": "Footer items are visible", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 1670, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:47.711Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-1cad3917159e58888507", + "file": "sidebar/sidebar.test.ts", + "line": 86, + "column": 9 + }, + { + "title": "Can toggle experiments in settings", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 7361, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:49.383Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3d82d43fd4f9e4849f9c-6806dffe69b0e0acc0a6", + "file": "sidebar/sidebar.test.ts", + "line": 94, + "column": 9 + } + ] + } + ] + }, + { + "title": "storage/storage.test.ts", + "file": "storage/storage.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test Storage page", + "file": "storage/storage.test.ts", + "line": 7, + "column": 6, + "specs": [ + { + "title": "Storage page is OK", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1257, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:23.426Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-b7dea1f8ceb4cd60dd30", + "file": "storage/storage.test.ts", + "line": 8, + "column": 9 + }, + { + "title": "Storage page has groups table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1841, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:24.685Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-ea571754bf7373549655", + "file": "storage/storage.test.ts", + "line": 14, + "column": 9 + }, + { + "title": "Storage page has nodes table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1690, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:26.527Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-d7b01321827cef4cd164", + "file": "storage/storage.test.ts", + "line": 23, + "column": 9 + }, + { + "title": "Storage page is OK", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 1484, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:56.756Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-6ab7b4abce16c448532b", + "file": "storage/storage.test.ts", + "line": 8, + "column": 9 + }, + { + "title": "Storage page has groups table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 2793, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:58.241Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-20ff1fb3669b6da39922", + "file": "storage/storage.test.ts", + "line": 14, + "column": 9 + }, + { + "title": "Storage page has nodes table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 3261, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:01.035Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-3c2cd1079c68e4b3d9c9", + "file": "storage/storage.test.ts", + "line": 23, + "column": 9 + } + ] + }, + { + "title": "Test Storage Paginated Table", + "file": "storage/storage.test.ts", + "line": 33, + "column": 6, + "specs": [ + { + "title": "Table loads and displays data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3421, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:28.218Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-6a55589226408723fbdb", + "file": "storage/storage.test.ts", + "line": 48, + "column": 9 + }, + { + "title": "Search by pool name filters the table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4684, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:31.641Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-ec67fe18d52e6be9dac4", + "file": "storage/storage.test.ts", + "line": 58, + "column": 9 + }, + { + "title": "Radio button selection changes displayed data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4224, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:36.325Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-ba7104605942d26e64ab", + "file": "storage/storage.test.ts", + "line": 73, + "column": 9 + }, + { + "title": "Groups count is displayed correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3255, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:40.551Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-bb0fae6be28eaf1b6599", + "file": "storage/storage.test.ts", + "line": 88, + "column": 9 + }, + { + "title": "Row data can be retrieved correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3308, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:43.807Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-3816e5a0f9a725697588", + "file": "storage/storage.test.ts", + "line": 100, + "column": 9 + }, + { + "title": "Column values can be retrieved correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3282, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:47.116Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-64fa554d05a9f0c114e2", + "file": "storage/storage.test.ts", + "line": 115, + "column": 9 + }, + { + "title": "Clicking on Group ID header sorts the table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 8474, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:50.399Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-30be84d9195c13297bde", + "file": "storage/storage.test.ts", + "line": 129, + "column": 9 + }, + { + "title": "Table loads and displays data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 3913, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:04.297Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-1a5e4639c7a714d4cef1", + "file": "storage/storage.test.ts", + "line": 48, + "column": 9 + }, + { + "title": "Search by pool name filters the table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 5010, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:08.211Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-71705db781cd6bb89c8d", + "file": "storage/storage.test.ts", + "line": 58, + "column": 9 + }, + { + "title": "Radio button selection changes displayed data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 4517, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:13.223Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-457202a46d75040204b7", + "file": "storage/storage.test.ts", + "line": 73, + "column": 9 + }, + { + "title": "Groups count is displayed correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 3510, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:17.741Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-7ed6bb4846ab39edbbcd", + "file": "storage/storage.test.ts", + "line": 88, + "column": 9 + }, + { + "title": "Row data can be retrieved correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 3629, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:21.252Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-24292046b6279fe473db", + "file": "storage/storage.test.ts", + "line": 100, + "column": 9 + }, + { + "title": "Column values can be retrieved correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 4789, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:24.882Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-460a2c4e1eab69b99b05", + "file": "storage/storage.test.ts", + "line": 115, + "column": 9 + }, + { + "title": "Clicking on Group ID header sorts the table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "passed", + "duration": 9814, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:29.672Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "d969e94bd7792d423276-4c2937a37492103f2c9e", + "file": "storage/storage.test.ts", + "line": 129, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/diagnostics/diagnostics.test.ts", + "file": "tenant/diagnostics/diagnostics.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Diagnostics tab", + "file": "tenant/diagnostics/diagnostics.test.ts", + "line": 10, + "column": 6, + "specs": [ + { + "title": "Primary keys header is visible in Schema tab", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3485, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:49.809Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fe5439f6f0729749b7e8-696678bf72f6ee00e24a", + "file": "tenant/diagnostics/diagnostics.test.ts", + "line": 11, + "column": 9 + }, + { + "title": "No runnning queries in Queries if no queries are running", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 2953, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:53.295Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fe5439f6f0729749b7e8-040bf4764f46f49c4f3b", + "file": "tenant/diagnostics/diagnostics.test.ts", + "line": 32, + "column": 9 + }, + { + "title": "Running query is shown if query is running", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 7687, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:56.249Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fe5439f6f0729749b7e8-80896e9e6a7adb5f48bb", + "file": "tenant/diagnostics/diagnostics.test.ts", + "line": 47, + "column": 9 + }, + { + "title": "Primary keys header is visible in Schema tab", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 4520, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:25.503Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fe5439f6f0729749b7e8-f6dfbd25c39e8184057d", + "file": "tenant/diagnostics/diagnostics.test.ts", + "line": 11, + "column": 9 + }, + { + "title": "No runnning queries in Queries if no queries are running", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 5260, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:30.024Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fe5439f6f0729749b7e8-1be861f724c8e2b9d0f4", + "file": "tenant/diagnostics/diagnostics.test.ts", + "line": 32, + "column": 9 + }, + { + "title": "Running query is shown if query is running", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 10854, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:35.286Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "fe5439f6f0729749b7e8-c03bb6e59f745d87716e", + "file": "tenant/diagnostics/diagnostics.test.ts", + "line": 47, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/initialLoad.test.ts", + "file": "tenant/initialLoad.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Tenant initial load", + "file": "tenant/initialLoad.test.ts", + "line": 13, + "column": 6, + "specs": [ + { + "title": "Tenant diagnostics page is visible", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5395, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:53:58.881Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "f21915a2bc5b36c8949f-fe0251ae29d17dbb5c31", + "file": "tenant/initialLoad.test.ts", + "line": 14, + "column": 9 + }, + { + "title": "Tenant diagnostics page is visible when describe returns no data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5657, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:04.276Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "f21915a2bc5b36c8949f-4a0f8a70c6bf25ed7e93", + "file": "tenant/initialLoad.test.ts", + "line": 21, + "column": 9 + }, + { + "title": "Tenant page shows error message when describe returns 401", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3114, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:09.934Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "f21915a2bc5b36c8949f-c2cbf8225bb32ad943dc", + "file": "tenant/initialLoad.test.ts", + "line": 32, + "column": 9 + }, + { + "title": "Tenant page shows error message when describe returns 403", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3185, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:13.050Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "f21915a2bc5b36c8949f-9ac9867630fcb0fb3ffe", + "file": "tenant/initialLoad.test.ts", + "line": 44, + "column": 9 + }, + { + "title": "Tenant diagnostics page is visible", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 3, + "status": "failed", + "duration": 6346, + "error": { + "message": "Error: \u001b[31mTimed out 5000ms waiting for \u001b[39m\u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m()\u001b[22m\n\nLocator: locator('.kv-tenant-diagnostics')\nExpected: visible\nReceived: hidden\nCall log:\n \u001b[2m- expect.toBeVisible with timeout 5000ms\u001b[22m\n\u001b[2m - waiting for locator('.kv-tenant-diagnostics')\u001b[22m\n", + "stack": "Error: \u001b[31mTimed out 5000ms waiting for \u001b[39m\u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m()\u001b[22m\n\nLocator: locator('.kv-tenant-diagnostics')\nExpected: visible\nReceived: hidden\nCall log:\n \u001b[2m- expect.toBeVisible with timeout 5000ms\u001b[22m\n\u001b[2m - waiting for locator('.kv-tenant-diagnostics')\u001b[22m\n\n at /home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/suites/tenant/initialLoad.test.ts:18:62", + "location": { + "file": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/suites/tenant/initialLoad.test.ts", + "column": 62, + "line": 18 + }, + "snippet": " 16 | await tenantPage.goto(pageQueryParams);\n 17 |\n> 18 | await expect(page.locator('.kv-tenant-diagnostics')).toBeVisible();\n | ^\n 19 | });\n 20 |\n 21 | test('Tenant diagnostics page is visible when describe returns no data', async ({page}) => {" + }, + "errors": [ + { + "location": { + "file": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/suites/tenant/initialLoad.test.ts", + "column": 62, + "line": 18 + }, + "message": "Error: \u001b[31mTimed out 5000ms waiting for \u001b[39m\u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m()\u001b[22m\n\nLocator: locator('.kv-tenant-diagnostics')\nExpected: visible\nReceived: hidden\nCall log:\n \u001b[2m- expect.toBeVisible with timeout 5000ms\u001b[22m\n\u001b[2m - waiting for locator('.kv-tenant-diagnostics')\u001b[22m\n\n\n 16 | await tenantPage.goto(pageQueryParams);\n 17 |\n> 18 | await expect(page.locator('.kv-tenant-diagnostics')).toBeVisible();\n | ^\n 19 | });\n 20 |\n 21 | test('Tenant diagnostics page is visible when describe returns no data', async ({page}) => {\n\n at /home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/suites/tenant/initialLoad.test.ts:18:62" + } + ], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:39.491Z", + "attachments": [ + { + "name": "screenshot", + "contentType": "image/png", + "path": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/playwright-artifacts/test-results/tenant-initialLoad-Tenant-initial-load-Tenant-diagnostics-page-is-visible-safari/test-failed-1.png" + }, + { + "name": "video", + "contentType": "video/webm", + "path": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/playwright-artifacts/test-results/tenant-initialLoad-Tenant-initial-load-Tenant-diagnostics-page-is-visible-safari/video.webm" + } + ], + "errorLocation": { + "file": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/tests/suites/tenant/initialLoad.test.ts", + "column": 62, + "line": 18 + } + }, + { + "workerIndex": 4, + "status": "passed", + "duration": 7324, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 1, + "startTime": "2024-11-28T09:58:46.492Z", + "attachments": [ + { + "name": "trace", + "contentType": "application/zip", + "path": "/home/runner/work/ydb-embedded-ui/ydb-embedded-ui/playwright-artifacts/test-results/tenant-initialLoad-Tenant-initial-load-Tenant-diagnostics-page-is-visible-safari-retry1/trace.zip" + } + ] + } + ], + "status": "flaky" + } + ], + "id": "f21915a2bc5b36c8949f-2dd5db31718a9070ba77", + "file": "tenant/initialLoad.test.ts", + "line": 14, + "column": 9 + }, + { + "title": "Tenant diagnostics page is visible when describe returns no data", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 5306, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:54.209Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "f21915a2bc5b36c8949f-8b425c70004753b4705f", + "file": "tenant/initialLoad.test.ts", + "line": 21, + "column": 9 + }, + { + "title": "Tenant page shows error message when describe returns 401", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 4858, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:59.516Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "f21915a2bc5b36c8949f-2f3a69f9309ef9b12367", + "file": "tenant/initialLoad.test.ts", + "line": 32, + "column": 9 + }, + { + "title": "Tenant page shows error message when describe returns 403", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 5124, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:04.376Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "f21915a2bc5b36c8949f-934a58dddfc695e5f6cb", + "file": "tenant/initialLoad.test.ts", + "line": 44, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/queryEditor/planToSvg.test.ts", + "file": "tenant/queryEditor/planToSvg.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test Plan to SVG functionality", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 10, + "column": 6, + "specs": [ + { + "title": "Plan to SVG experiment shows execution plan in new tab", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 7390, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:03.958Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "5036955eb0b2cd46628f-61fe3b89dadeaca9443a", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 24, + "column": 9 + }, + { + "title": "Statistics setting becomes disabled when execution plan experiment is enabled", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6174, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:11.350Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "5036955eb0b2cd46628f-08180ee4c6273ebb71a1", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 51, + "column": 9 + }, + { + "title": "Statistics mode changes when toggling execution plan experiment", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 9456, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:17.525Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "5036955eb0b2cd46628f-6a403c615f0587292987", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 74, + "column": 9 + }, + { + "title": "Statistics setting shows tooltip when disabled by execution plan experiment", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 5240, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:26.982Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "5036955eb0b2cd46628f-d86686b1ed476a14aa5f", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 99, + "column": 9 + }, + { + "title": "Plan to SVG experiment shows execution plan in new tab", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 11542, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:46.168Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "5036955eb0b2cd46628f-e006270f95ef60686544", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 24, + "column": 9 + }, + { + "title": "Statistics setting becomes disabled when execution plan experiment is enabled", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 11175, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:58:57.712Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "5036955eb0b2cd46628f-7057835460061548b447", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 51, + "column": 9 + }, + { + "title": "Statistics mode changes when toggling execution plan experiment", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 16585, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:08.888Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "5036955eb0b2cd46628f-7aa07dab6a152fc510ca", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 74, + "column": 9 + }, + { + "title": "Statistics setting shows tooltip when disabled by execution plan experiment", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 8976, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:25.475Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "5036955eb0b2cd46628f-6d1051364ecbbeea79c0", + "file": "tenant/queryEditor/planToSvg.test.ts", + "line": 99, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/queryEditor/queryEditor.test.ts", + "file": "tenant/queryEditor/queryEditor.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test Query Editor", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 16, + "column": 6, + "specs": [ + { + "title": "Run button executes YQL script", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5889, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:16.260Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-4613fd3fbf3700c21144", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 30, + "column": 9 + }, + { + "title": "Run button executes Scan", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5287, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:22.150Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-ebb72e428ae99137e418", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 37, + "column": 9 + }, + { + "title": "Explain button executes YQL script explanation", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 6766, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:27.438Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-a9e086e4a122db77dc9b", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 44, + "column": 9 + }, + { + "title": "Explain button executes Scan explanation", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 6111, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:34.205Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-a17ea33ac30e82f17684", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 55, + "column": 9 + }, + { + "title": "Error is displayed for invalid query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4329, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:40.317Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-1c42b2137d542a50f85a", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 69, + "column": 9 + }, + { + "title": "Run and Explain buttons are disabled when query is empty", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 3430, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:44.647Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-db7953cd070360858a52", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 81, + "column": 9 + }, + { + "title": "Stop button and elapsed time label appear when query is running", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5359, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:48.079Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-434e60f9511fc7bb0a7d", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 93, + "column": 9 + }, + { + "title": "Stop button and elapsed time label disappear after query is stopped", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 9340, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:53.439Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-fb85988ef8aaa87fb685", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 103, + "column": 9 + }, + { + "title": "Query execution is terminated when stop button is clicked", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 6081, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:02.780Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-c552c04f118f13459c94", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 117, + "column": 9 + }, + { + "title": "Stop button is not visible for quick queries", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5902, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:08.863Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-d2b83567d4e4ac181e99", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 129, + "column": 9 + }, + { + "title": "Stop button works for Execute mode", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 7548, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:14.766Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-9f2256997726f55a1dfc", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 140, + "column": 9 + }, + { + "title": "Stop button works for Explain mode", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 9782, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:22.315Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-3724160e7c257b467633", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 152, + "column": 9 + }, + { + "title": "Changing tab inside results pane doesnt change results view", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 7680, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:32.099Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-f0692155a2d5c8245587", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 169, + "column": 9 + }, + { + "title": "Changing tab inside editor doesnt change results view", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 7750, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:39.780Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-03ea38de18ef8bb48bb2", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 183, + "column": 9 + }, + { + "title": "Changing tab to diagnostics doesnt change results view", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 6657, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:47.532Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-f53ec300556b036a9c73", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 197, + "column": 9 + }, + { + "title": "Result head value is 1 for 1 row result", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4317, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:54.190Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-e4e881f7f4fe4d219078", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 212, + "column": 9 + }, + { + "title": "No result head value for no result", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 6090, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:58.508Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-55c871e243518bbcc57e", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 219, + "column": 9 + }, + { + "title": "Truncated head value is 1 for 1 row truncated result", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 7531, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:04.599Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-3aee19569a82ff1d3957", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 227, + "column": 9 + }, + { + "title": "Query execution status changes correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4858, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:12.131Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-2adc01e0fce8d9d4b7f9", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 237, + "column": 9 + }, + { + "title": "Run button executes YQL script", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 10732, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:09.541Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-d7505665d07d79754b81", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 30, + "column": 9 + }, + { + "title": "Run button executes Scan", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 10441, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:20.275Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-b8b9275d227073e426fc", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 37, + "column": 9 + }, + { + "title": "Explain button executes YQL script explanation", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 10651, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:30.717Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-c0c61ff0a5f4d64fc923", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 44, + "column": 9 + }, + { + "title": "Explain button executes Scan explanation", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 11476, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:41.371Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-d40ebe3aece47716414d", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 55, + "column": 9 + }, + { + "title": "Error is displayed for invalid query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 7369, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:52.849Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-c6c601c662eb0b13cef7", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 69, + "column": 9 + }, + { + "title": "Run and Explain buttons are disabled when query is empty", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 6277, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:00.221Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-019a95ccad3bc2cdf507", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 81, + "column": 9 + }, + { + "title": "Stop button and elapsed time label appear when query is running", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 12261, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:06.499Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-ac5603b128e96b278a99", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 93, + "column": 9 + }, + { + "title": "Stop button and elapsed time label disappear after query is stopped", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 11424, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:18.762Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-42b14e871bae72ec84a9", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 103, + "column": 9 + }, + { + "title": "Query execution is terminated when stop button is clicked", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 11952, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:30.187Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-f6016266a94c4f6c51d5", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 117, + "column": 9 + }, + { + "title": "Stop button is not visible for quick queries", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 10554, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:42.141Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-30945e74794ce6a610c5", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 129, + "column": 9 + }, + { + "title": "Stop button works for Execute mode", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 10425, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:52.697Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-dd97660c635c09a10d04", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 140, + "column": 9 + }, + { + "title": "Stop button works for Explain mode", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 16527, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:03.122Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-73bd7a25695669db7cc2", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 152, + "column": 9 + }, + { + "title": "Changing tab inside results pane doesnt change results view", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 13957, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:19.650Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-b274e4314be2f565a2bb", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 169, + "column": 9 + }, + { + "title": "Changing tab inside editor doesnt change results view", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 10343, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:33.609Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-f5d9097597fe7dd167d0", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 183, + "column": 9 + }, + { + "title": "Changing tab to diagnostics doesnt change results view", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 11169, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:43.954Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-e41c4d942de5b051cbcf", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 197, + "column": 9 + }, + { + "title": "Result head value is 1 for 1 row result", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 7762, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:55.124Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-caa2608bfbf48cff69d8", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 212, + "column": 9 + }, + { + "title": "No result head value for no result", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 11229, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:02.887Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-7c92c6bf45e23a2bdb3c", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 219, + "column": 9 + }, + { + "title": "Truncated head value is 1 for 1 row truncated result", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 10496, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:14.117Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-5dce85ef70139cdffcff", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 227, + "column": 9 + }, + { + "title": "Query execution status changes correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 7001, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:24.615Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "1edf77f8061520e77ee2-2638809bc2849502fbb6", + "file": "tenant/queryEditor/queryEditor.test.ts", + "line": 237, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/queryEditor/querySettings.test.ts", + "file": "tenant/queryEditor/querySettings.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test Query Settings", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 10, + "column": 6, + "specs": [ + { + "title": "Settings dialog opens on Gear click and closes on Cancel", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 4178, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:32.229Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-135344ec337e527c76de", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 24, + "column": 9 + }, + { + "title": "Settings dialog saves changes and updates Gear button", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 5375, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:36.408Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-6c57f26f01a98890c3df", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 34, + "column": 9 + }, + { + "title": "Banner appears after executing script with changed settings", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6190, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:41.784Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-f78b1827e299e29d6749", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 47, + "column": 9 + }, + { + "title": "Banner not appears for running query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 8788, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:47.976Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-c8926f85bb08c726e895", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 63, + "column": 9 + }, + { + "title": "Indicator icon appears after closing banner", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 8503, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:54:56.765Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-a651d48203d3cced7679", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 80, + "column": 9 + }, + { + "title": "Indicator not appears for running query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 9256, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:05.270Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-1eed4de805a342aeb3c5", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 98, + "column": 9 + }, + { + "title": "Gear button shows number of changed settings", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 9006, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:14.527Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-4d534e63b617d1783855", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 119, + "column": 9 + }, + { + "title": "Banner does not appear when executing script with default settings", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 5576, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:23.534Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-b80d19877d39d48ebaf7", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 133, + "column": 9 + }, + { + "title": "Shows error for limit rows > 100000", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6173, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:29.112Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-b91867321c3a70fa71ee", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 142, + "column": 9 + }, + { + "title": "Shows error for negative limit rows", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6454, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:35.286Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-8ef0af88691f0ca52c82", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 155, + "column": 9 + }, + { + "title": "Persists valid limit rows value", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6288, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:41.741Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-35c7747cade4a152fce0", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 168, + "column": 9 + }, + { + "title": "Allows empty limit rows value", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 5343, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:48.029Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-1645131017ea74998ea1", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 185, + "column": 9 + }, + { + "title": "Settings dialog opens on Gear click and closes on Cancel", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 7179, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:34.466Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-9769802f674e4b0950fe", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 24, + "column": 9 + }, + { + "title": "Settings dialog saves changes and updates Gear button", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 9419, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:41.649Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-37aed9adf9efd7f648a4", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 34, + "column": 9 + }, + { + "title": "Banner appears after executing script with changed settings", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 9638, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:59:51.068Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-f2c531680cef74286fe9", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 47, + "column": 9 + }, + { + "title": "Banner not appears for running query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 13301, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:00.708Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-d5bb51d578b65f04c9d3", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 63, + "column": 9 + }, + { + "title": "Indicator icon appears after closing banner", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 13804, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:14.010Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-fd7542ca676124da0a7e", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 80, + "column": 9 + }, + { + "title": "Indicator not appears for running query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 18315, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:27.815Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-d6234b457aa2e8cdf1c7", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 98, + "column": 9 + }, + { + "title": "Gear button shows number of changed settings", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 11672, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:46.131Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-8173c9080b3d912dd457", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 119, + "column": 9 + }, + { + "title": "Banner does not appear when executing script with default settings", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 7148, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:00:57.806Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-ffbb30c6a87b295f16f5", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 133, + "column": 9 + }, + { + "title": "Shows error for limit rows > 100000", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 9546, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:04.957Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-7e8e21f89f81e6fbfb5c", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 142, + "column": 9 + }, + { + "title": "Shows error for negative limit rows", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 9935, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:14.504Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-947ba3ab2da6b506b2db", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 155, + "column": 9 + }, + { + "title": "Persists valid limit rows value", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 8911, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:24.441Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-22f042513e8027181f03", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 168, + "column": 9 + }, + { + "title": "Allows empty limit rows value", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 8024, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:33.354Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "40c364a0d6efe5f7d494-a19029290c7f0cde3467", + "file": "tenant/queryEditor/querySettings.test.ts", + "line": 185, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/queryEditor/queryStatus.test.ts", + "file": "tenant/queryEditor/queryStatus.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test Query Execution Status", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 10, + "column": 6, + "specs": [ + { + "title": "No query status when no query was executed", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6933, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:55:53.376Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9243ffca380ea608dd21-a9079360e60756376396", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 24, + "column": 9 + }, + { + "title": "Running query status for running query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6065, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:00.310Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9243ffca380ea608dd21-1216a1369fdc015b759e", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 35, + "column": 9 + }, + { + "title": "Completed query status for completed query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6120, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:06.376Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9243ffca380ea608dd21-a0ec4b900ff1c051c561", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 46, + "column": 9 + }, + { + "title": "Failed query status for failed query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6405, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:12.497Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9243ffca380ea608dd21-10b3b084c7c84c1c411e", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 57, + "column": 9 + }, + { + "title": "No query status when no query was executed", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 10198, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:41.383Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9243ffca380ea608dd21-3486b473513d95ace2c9", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 24, + "column": 9 + }, + { + "title": "Running query status for running query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 11048, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:01:51.582Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9243ffca380ea608dd21-7379ea22b840ef8db883", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 35, + "column": 9 + }, + { + "title": "Completed query status for completed query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 10057, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:02.631Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9243ffca380ea608dd21-d86846776fdbe65b6d7b", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 46, + "column": 9 + }, + { + "title": "Failed query status for failed query", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 8861, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:12.689Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "9243ffca380ea608dd21-13c870045677e6814a57", + "file": "tenant/queryEditor/queryStatus.test.ts", + "line": 57, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/queryEditor/queryTemplates.test.ts", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Query Templates", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 19, + "column": 6, + "specs": [ + { + "title": "Update table template should not run successfully", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5216, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:17.002Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-986431e84921078b1013", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 30, + "column": 9 + }, + { + "title": "Create row table template should handle both success and failure cases", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4718, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:22.220Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-7a45900a1a270146d3fc", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 51, + "column": 9 + }, + { + "title": "Unsaved changes modal appears when switching between templates", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5202, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:26.939Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-a59c994ed7ee957fc54c", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 85, + "column": 9 + }, + { + "title": "Cancel button in unsaved changes modal preserves editor content", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5356, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:32.142Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-2166fbe19dd05164d9f6", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 101, + "column": 9 + }, + { + "title": "Dont save button in unsaved changes modal allows to change text", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 5452, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:37.499Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-455bd12fbe9bbee2807b", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 124, + "column": 9 + }, + { + "title": "Save query flow saves query and shows it in Saved tab", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 7067, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:42.952Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-85bd66f610402a5caa7c", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 149, + "column": 9 + }, + { + "title": "New SQL dropdown menu works correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4179, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:50.021Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-352b5a2a1df8f0441080", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 181, + "column": 9 + }, + { + "title": "Template selection shows unsaved changes warning when editor has content", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 4979, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:54.202Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-928ddc5714494a80ce5e", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 199, + "column": 9 + }, + { + "title": "Update table template should not run successfully", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 8312, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:21.564Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-3f1c7f7be5f79974d04f", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 30, + "column": 9 + }, + { + "title": "Create row table template should handle both success and failure cases", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 8748, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:29.878Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-7257aca9d7d6ef9b8bec", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 51, + "column": 9 + }, + { + "title": "Unsaved changes modal appears when switching between templates", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 9754, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:38.627Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-32fd3178bfd378bb84f1", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 85, + "column": 9 + }, + { + "title": "Cancel button in unsaved changes modal preserves editor content", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 9419, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:48.383Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-846158029029d96de0b0", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 101, + "column": 9 + }, + { + "title": "Dont save button in unsaved changes modal allows to change text", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 10413, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:57.803Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-b8733a9fd440060530d3", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 124, + "column": 9 + }, + { + "title": "Save query flow saves query and shows it in Saved tab", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 11503, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:08.219Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-e7baad9caab3e23e8de2", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 149, + "column": 9 + }, + { + "title": "New SQL dropdown menu works correctly", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 7416, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:19.724Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-7bc8ac5f01a0d6364763", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 181, + "column": 9 + }, + { + "title": "Template selection shows unsaved changes warning when editor has content", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 7715, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:27.141Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "633e69b05e7320c1670b-136d410f2a6095ddfddc", + "file": "tenant/queryEditor/queryTemplates.test.ts", + "line": 199, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/queryHistory/queryHistory.test.ts", + "file": "tenant/queryHistory/queryHistory.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Query History", + "file": "tenant/queryHistory/queryHistory.test.ts", + "line": 10, + "column": 6, + "specs": [ + { + "title": "New query appears in history after execution", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6063, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:18.908Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "ec2567e6557bd483dc0b-acce101d20dff9428038", + "file": "tenant/queryHistory/queryHistory.test.ts", + "line": 26, + "column": 9 + }, + { + "title": "Multiple queries appear in correct order in history", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 9984, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:24.972Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "ec2567e6557bd483dc0b-0368ddeb3f598db2b97d", + "file": "tenant/queryHistory/queryHistory.test.ts", + "line": 42, + "column": 9 + }, + { + "title": "Query executed with keybinding is saved in history", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6058, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:34.957Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "ec2567e6557bd483dc0b-efe465318feb62e3f578", + "file": "tenant/queryHistory/queryHistory.test.ts", + "line": 68, + "column": 9 + }, + { + "title": "New query appears in history after execution", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 11309, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:31.622Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "ec2567e6557bd483dc0b-894886ee254d17171f33", + "file": "tenant/queryHistory/queryHistory.test.ts", + "line": 26, + "column": 9 + }, + { + "title": "Multiple queries appear in correct order in history", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 16505, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:42.933Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "ec2567e6557bd483dc0b-8a01fc88a9a99c8125e6", + "file": "tenant/queryHistory/queryHistory.test.ts", + "line": 42, + "column": 9 + }, + { + "title": "Query executed with keybinding is saved in history", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 11603, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:02:59.439Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "ec2567e6557bd483dc0b-029354ed25c3321194cd", + "file": "tenant/queryHistory/queryHistory.test.ts", + "line": 68, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenant/summary/objectSummary.test.ts", + "file": "tenant/summary/objectSummary.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Object Summary", + "file": "tenant/summary/objectSummary.test.ts", + "line": 18, + "column": 6, + "specs": [ + { + "title": "Open Preview icon appears on hover for \"dv_slots\" tree item", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3742, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:41.026Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-d09ebdc8a66d48f609b7", + "file": "tenant/summary/objectSummary.test.ts", + "line": 29, + "column": 9 + }, + { + "title": "On Open Preview icon click table with results appear", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3845, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:44.769Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-d375c17bb0d6b2911cf9", + "file": "tenant/summary/objectSummary.test.ts", + "line": 38, + "column": 9 + }, + { + "title": "Preview table is still present after settings dialog was opened", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 4845, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:48.616Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-bd55c80a82c2b7d3a59e", + "file": "tenant/summary/objectSummary.test.ts", + "line": 49, + "column": 9 + }, + { + "title": "Primary keys header is visible in Schema tab", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 4071, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:53.462Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-c6422ecbd14f1a829872", + "file": "tenant/summary/objectSummary.test.ts", + "line": 60, + "column": 9 + }, + { + "title": "Actions dropdown menu opens and contains expected items", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3948, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:57.535Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-85c10847a25e182231b3", + "file": "tenant/summary/objectSummary.test.ts", + "line": 73, + "column": 9 + }, + { + "title": "Can click menu items in actions dropdown", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 4235, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:01.484Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-655105983d58e8ee4635", + "file": "tenant/summary/objectSummary.test.ts", + "line": 81, + "column": 9 + }, + { + "title": "Select and Upsert actions show loading state", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 7801, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:05.721Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-0c716e581d889e3d480e", + "file": "tenant/summary/objectSummary.test.ts", + "line": 93, + "column": 9 + }, + { + "title": "Monaco editor shows column list after select query loading completes", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 3910, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:13.523Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-6e6cc0b4018a2b3b7770", + "file": "tenant/summary/objectSummary.test.ts", + "line": 115, + "column": 9 + }, + { + "title": "Monaco editor shows column list after upsert query loading completes", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 4573, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:17.435Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-f1742a36bba9d39e9ca7", + "file": "tenant/summary/objectSummary.test.ts", + "line": 127, + "column": 9 + }, + { + "title": "Different tables show different column lists in Monaco editor", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 0, + "status": "passed", + "duration": 6750, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:22.010Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-4ae20a5d449456badf30", + "file": "tenant/summary/objectSummary.test.ts", + "line": 139, + "column": 9 + }, + { + "title": "Open Preview icon appears on hover for \"dv_slots\" tree item", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 6685, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:11.078Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-a3e3bcdb1e7e3d85597c", + "file": "tenant/summary/objectSummary.test.ts", + "line": 29, + "column": 9 + }, + { + "title": "On Open Preview icon click table with results appear", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 6705, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:17.764Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-6699a9f99d7dbd6a5f83", + "file": "tenant/summary/objectSummary.test.ts", + "line": 38, + "column": 9 + }, + { + "title": "Preview table is still present after settings dialog was opened", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 8629, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:24.470Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-0f4087b689881dabacb2", + "file": "tenant/summary/objectSummary.test.ts", + "line": 49, + "column": 9 + }, + { + "title": "Primary keys header is visible in Schema tab", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 6331, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:33.100Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-ad8968bd726a83524b9b", + "file": "tenant/summary/objectSummary.test.ts", + "line": 60, + "column": 9 + }, + { + "title": "Actions dropdown menu opens and contains expected items", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 4387, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:39.433Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-9d845bc79ec0d1452295", + "file": "tenant/summary/objectSummary.test.ts", + "line": 73, + "column": 9 + }, + { + "title": "Can click menu items in actions dropdown", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 4830, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:43.820Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-14bcfc19fc38b362462e", + "file": "tenant/summary/objectSummary.test.ts", + "line": 81, + "column": 9 + }, + { + "title": "Select and Upsert actions show loading state", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 8420, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:48.652Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-6523d3010ad3c951c96f", + "file": "tenant/summary/objectSummary.test.ts", + "line": 93, + "column": 9 + }, + { + "title": "Monaco editor shows column list after select query loading completes", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 5342, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:57.072Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-729cc8dc45bcd25986de", + "file": "tenant/summary/objectSummary.test.ts", + "line": 115, + "column": 9 + }, + { + "title": "Monaco editor shows column list after upsert query loading completes", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 5264, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:04:02.416Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-f41a7c9d5bba23c60253", + "file": "tenant/summary/objectSummary.test.ts", + "line": 127, + "column": 9 + }, + { + "title": "Different tables show different column lists in Monaco editor", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 4, + "status": "passed", + "duration": 6030, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:04:07.681Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "3151f51fae447d4958f5-b939eb322a0de9d1f39d", + "file": "tenant/summary/objectSummary.test.ts", + "line": 139, + "column": 9 + } + ] + } + ] + }, + { + "title": "tenants/tenants.test.ts", + "file": "tenants/tenants.test.ts", + "column": 0, + "line": 0, + "specs": [], + "suites": [ + { + "title": "Test Tenants page", + "file": "tenants/tenants.test.ts", + "line": 5, + "column": 6, + "specs": [ + { + "title": "Tenants page is OK", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1573, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:56:59.190Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "03aedfa636df77ae6577-b4ed3a136942b0cc2c36", + "file": "tenants/tenants.test.ts", + "line": 6, + "column": 9 + }, + { + "title": "Tenants page has tenants table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "chromium", + "projectName": "chromium", + "results": [ + { + "workerIndex": 1, + "status": "passed", + "duration": 1709, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T09:57:00.764Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "03aedfa636df77ae6577-cec79b43b6784aceeacd", + "file": "tenants/tenants.test.ts", + "line": 12, + "column": 9 + }, + { + "title": "Tenants page is OK", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 2793, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:34.866Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "03aedfa636df77ae6577-6785f7027eeaeec9350c", + "file": "tenants/tenants.test.ts", + "line": 6, + "column": 9 + }, + { + "title": "Tenants page has tenants table", + "ok": true, + "tags": [], + "tests": [ + { + "timeout": 120000, + "annotations": [], + "expectedStatus": "passed", + "projectId": "safari", + "projectName": "safari", + "results": [ + { + "workerIndex": 2, + "status": "passed", + "duration": 2608, + "errors": [], + "stdout": [], + "stderr": [], + "retry": 0, + "startTime": "2024-11-28T10:03:37.660Z", + "attachments": [] + } + ], + "status": "expected" + } + ], + "id": "03aedfa636df77ae6577-b2a322567c5e23c05408", + "file": "tenants/tenants.test.ts", + "line": 12, + "column": 9 + } + ] + } + ] + } + ], + "errors": [], + "stats": { + "startTime": "2024-11-28T09:51:04.008Z", + "duration": 789806.604, + "expected": 207, + "skipped": 0, + "unexpected": 0, + "flaky": 1 + } +} \ No newline at end of file diff --git a/1704/trace/assets/codeMirrorModule-BK3t1EEu.js b/1704/trace/assets/codeMirrorModule-BK3t1EEu.js new file mode 100644 index 000000000..b1786cc65 --- /dev/null +++ b/1704/trace/assets/codeMirrorModule-BK3t1EEu.js @@ -0,0 +1,24 @@ +import{n as vu,o as gu}from"./wsPort-964mA9MZ.js";var ho={exports:{}},ha;function Ar(){return ha||(ha=1,function(yr,Or){(function(F,Ee){yr.exports=Ee()})(vu,function(){var F=navigator.userAgent,Ee=navigator.platform,Se=/gecko\/\d/i.test(F),We=/MSIE \d/.test(F),Je=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(F),Ce=/Edge\/(\d+)/.exec(F),M=We||Je||Ce,j=M&&(We?document.documentMode||6:+(Ce||Je)[1]),_=!Ce&&/WebKit\//.test(F),ie=_&&/Qt\/\d+\.\d+/.test(F),q=!Ce&&/Chrome\/(\d+)/.exec(F),se=q&&+q[1],ce=/Opera\//.test(F),Ie=/Apple Computer/.test(navigator.vendor),Te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(F),Oe=/PhantomJS/.test(F),ae=Ie&&(/Mobile\/\w+/.test(F)||navigator.maxTouchPoints>2),V=/Android/.test(F),oe=ae||V||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(F),xe=ae||/Mac/.test(Ee),_e=/\bCrOS\b/.test(F),ye=/win/i.test(Ee),Me=ce&&F.match(/Version\/(\d*\.\d*)/);Me&&(Me=Number(Me[1])),Me&&Me>=15&&(ce=!1,_=!0);var He=xe&&(ie||ce&&(Me==null||Me<12.11)),ee=Se||M&&j>=9;function X(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var me=function(e,t){var n=e.className,r=X(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function H(e,t){return T(e).appendChild(t)}function c(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}var ue=function(){this.id=null,this.f=null,this.time=0,this.handler=te(this.onTimeout,this)};ue.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ue.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var lt=[""];function ht(e){for(;lt.length<=e;)lt.push(re(lt)+" ");return lt[e]}function re(e){return e[e.length-1]}function Ne(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||be.test(e))}function ne(e,t){return t?t.source.indexOf("\\w")>-1&&R(e)?!0:t.test(e):R(e)}function Y(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var we=/[\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 ve(e){return e.charCodeAt(0)>=768&&we.test(e)}function Tt(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function rr(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),l.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var mr=null;function nr(e,t,n){var r;mr=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:mr=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:mr=i)}return r??mr}var gi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,d,p){this.level=u,this.from=d,this.to=p}return function(u,d){var p=d=="ltr"?"L":"R";if(u.length==0||d=="ltr"&&!r.test(u))return!1;for(var m=u.length,y=[],S=0;S-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ge(e,t){var n=Yt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Et(e){e.prototype.on=function(t,n){Q(this,t,n)},e.prototype.off=function(t,n){ut(this,t,n)}}function ft(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function zr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function yt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ir(e){ft(e),zr(e)}function ln(e){return e.target||e.srcElement}function It(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),xe&&e.ctrlKey&&t==1&&(t=3),t}var yi=function(){if(M&&j<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),Pr;function _n(e){if(Pr==null){var t=c("span","​");H(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Pr=t.offsetWidth<=1&&t.offsetHeight>2&&!(M&&j<8))}var n=Pr?c("span","​"):c("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var an;function or(e){if(an!=null)return an;var t=H(e,document.createTextNode("AخA")),n=b(t,0,1).getBoundingClientRect(),r=b(t,1,2).getBoundingClientRect();return T(e),!n||n.left==n.right?!1:an=r.right-n.right<3}var Pt=` + +b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` +`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},lr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Hn=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ft=null;function mi(e){if(Ft!=null)return Ft;var t=H(e,c("span","x")),n=t.getBoundingClientRect(),r=b(t,0,1).getBoundingClientRect();return Ft=Math.abs(n.left-r.left)>1}var Er={},Wt={};function _t(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Er[e]=t}function br(e,t){Wt[e]=t}function Ir(e){if(typeof e=="string"&&Wt.hasOwnProperty(e))e=Wt[e];else if(e&&typeof e.name=="string"&&Wt.hasOwnProperty(e.name)){var t=Wt[e.name];typeof t=="string"&&(t={name:t}),e=C(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ir("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ir("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Fr(e,t){t=Ir(t);var n=Er[t.name];if(!n)return Fr(e,"text/plain");var r=n(e,t);if(ar.hasOwnProperty(t.name)){var i=ar[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var ar={};function Wr(e,t){var n=ar.hasOwnProperty(e)?ar[e]:ar[e]={};de(t,n)}function Ut(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function sn(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function _r(e,t,n){return e.startState?e.startState(t,n):!0}var je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};je.prototype.eol=function(){return this.pos>=this.string.length},je.prototype.sol=function(){return this.pos==this.lineStart},je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},je.prototype.next=function(){if(this.post},je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},je.prototype.skipToEnd=function(){this.pos=this.string.length},je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},je.prototype.backUp=function(e){this.pos-=e},je.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},je.prototype.current=function(){return this.string.slice(this.start,this.pos)},je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function U(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?k(n,U(e,n).text.length):ga(t,U(e,t.line).text.length)}function ga(e,t){var n=e.ch;return n==null||n>t?k(e.line,t):n<0?k(e.line,0):e}function vo(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Gt.fromSaved=function(e,t,n){return t instanceof Bn?new Gt(e,Ut(e.mode,t.state),n,t.lookAhead):new Gt(e,Ut(e.mode,t),n)},Gt.prototype.save=function(e){var t=e!==!1?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Bn(t,this.maxLookAhead):t};function go(e,t,n,r){var i=[e.state.modeGen],o={};ko(e,t.text,e.doc.mode,n,function(u,d){return i.push(u,d)},o,r);for(var l=n.state,a=function(u){n.baseTokens=i;var d=e.state.overlays[u],p=1,m=0;n.state=!0,ko(e,t.text,d.mode,n,function(y,S){for(var N=p;my&&i.splice(p,1,y,i[p+1],z),p+=2,m=Math.min(y,z)}if(S)if(d.opaque)i.splice(N,p-N,y,"overlay "+S),p=N+2;else for(;Ne.options.maxHighlightLength&&Ut(e.doc.mode,r.state),o=go(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function fn(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Gt(r,!0,t);var o=ya(e,t,n),l=o>r.first&&U(r,o-1).stateAfter,a=l?Gt.fromSaved(r,l,o):new Gt(r,_r(r.mode),o);return r.iter(o,t,function(s){bi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var bo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function xo(e,t,n,r){var i=e.doc,o=i.mode,l;t=fe(i,t);var a=U(i,t.line),s=fn(e,t.line,n),u=new je(a.text,e.options.tabSize,s),d;for(r&&(d=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&bi(e,t,r,d.pos),d.pos=t.length,p=null):p=wo(xi(n,d,r.state,m),o),m){var y=m[0].name;y&&(p="m-"+(p?y+" "+p:y))}if(!a||u!=p){for(;sl;--a){if(a<=o.first)return o.first;var s=U(o,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof Bn?u.lookAhead:0)<=o.modeFrontier))return a;var d=he(s.text,null,e.options.tabSize);(i==null||r>d)&&(i=a-1,r=d)}return i}function ma(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=U(e,r).stateAfter;if(i&&(!(i instanceof Bn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Rn(l,o.from,s?null:o.to))}}return r}function Ca(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var B=0;B0)){var d=[s,1],p=I(u.from,a.from),m=I(u.to,a.to);(p<0||!l.inclusiveLeft&&!p)&&d.push({from:u.from,to:a.from}),(m>0||!l.inclusiveRight&&!m)&&d.push({from:a.to,to:u.to}),i.splice.apply(i,d),s+=d.length-3}}return i}function To(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||ki(r,o.marker)<0)&&(r=o.marker)}return r}function Do(e,t,n,r,i){var o=U(e,t),l=Qt&&o.markedSpans;if(l)for(var a=0;a=0&&p<=0||d<=0&&p>=0)&&(d<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?I(u.to,n)>=0:I(u.to,n)>0)||d>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?I(u.from,r)<=0:I(u.from,r)<0)))return!0}}}function Ht(e){for(var t;t=No(e);)e=t.find(-1,!0).line;return e}function Ma(e){for(var t;t=Gn(e);)e=t.find(1,!0).line;return e}function Na(e){for(var t,n;t=Gn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Si(e,t){var n=U(e,t),r=Ht(n);return n==r?t:f(r)}function Ao(e,t){if(t>e.lastLine())return t;var n=U(e,t),r;if(!sr(e,n))return t;for(;r=Gn(n);)n=r.find(1,!0).line;return f(n)+1}function sr(e,t){var n=Qt&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Br=function(e,t,n){this.text=e,Lo(this,t),this.height=n?n(this):1};Br.prototype.lineNo=function(){return f(this)},Et(Br);function Da(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),To(e),Lo(e,n);var i=r?r(e):1;i!=e.height&&Dt(e,i)}function Aa(e){e.parent=null,To(e)}var Oa={},za={};function Oo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?za:Oa;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function zo(e,t){var n=x("span",null,null,_?"padding-right: .1px":null),r={pre:x("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=Ea,or(e.display.measure)&&(l=ke(o,e.doc.direction))&&(r.addToken=Fa(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&f(o);Wa(o,r,yo(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=K(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=K(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(_n(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(_){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=K(r.pre.className,r.textClass||"")),r}function Pa(e){var t=c("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ea(e,t,n,r,i,o,l){if(t){var a=e.splitSpaces?Ia(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,d;if(!s.test(t))e.col+=t.length,d=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,d),M&&j<9&&(u=!0),e.pos+=t.length;else{d=document.createDocumentFragment();for(var p=0;;){s.lastIndex=p;var m=s.exec(t),y=m?m.index-p:t.length-p;if(y){var S=document.createTextNode(a.slice(p,p+y));M&&j<9?d.appendChild(c("span",[S])):d.appendChild(S),e.map.push(e.pos,e.pos+y,S),e.col+=y,e.pos+=y}if(!m)break;p+=y+1;var N=void 0;if(m[0]==" "){var z=e.cm.options.tabSize,P=z-e.col%z;N=d.appendChild(c("span",ht(P),"cm-tab")),N.setAttribute("role","presentation"),N.setAttribute("cm-text"," "),e.col+=P}else m[0]=="\r"||m[0]==` +`?(N=d.appendChild(c("span",m[0]=="\r"?"␍":"␤","cm-invalidchar")),N.setAttribute("cm-text",m[0]),e.col+=1):(N=e.cm.options.specialCharPlaceholder(m[0]),N.setAttribute("cm-text",m[0]),M&&j<9?d.appendChild(c("span",[N])):d.appendChild(N),e.col+=1);e.map.push(e.pos,e.pos+1,N),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||o||l){var W=n||"";r&&(W+=r),i&&(W+=i);var E=c("span",[d],W,o);if(l)for(var B in l)l.hasOwnProperty(B)&&B!="style"&&B!="class"&&E.setAttribute(B,l[B]);return e.content.appendChild(E)}e.content.appendChild(d)}}function Ia(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&p.from<=u));m++);if(p.to>=d)return e(n,r,i,o,l,a,s);e(n,r.slice(0,p.to-u),i,o,null,a,s),o=null,r=r.slice(p.to-u),u=p.to}}}function Po(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Wa(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;ls||ge.collapsed&&Z.to==s&&Z.from==s)){if(Z.to!=null&&Z.to!=s&&y>Z.to&&(y=Z.to,N=""),ge.className&&(S+=" "+ge.className),ge.css&&(m=(m?m+";":"")+ge.css),ge.startStyle&&Z.from==s&&(z+=" "+ge.startStyle),ge.endStyle&&Z.to==y&&(B||(B=[])).push(ge.endStyle,Z.to),ge.title&&((W||(W={})).title=ge.title),ge.attributes)for(var Fe in ge.attributes)(W||(W={}))[Fe]=ge.attributes[Fe];ge.collapsed&&(!P||ki(P.marker,ge)<0)&&(P=Z)}else Z.from>s&&y>Z.from&&(y=Z.from)}if(B)for(var it=0;it=a)break;for(var Nt=Math.min(a,y);;){if(d){var wt=s+d.length;if(!P){var Ze=wt>Nt?d.slice(0,Nt-s):d;t.addToken(t,Ze,p?p+S:S,z,s+Ze.length==y?N:"",m,W)}if(wt>=Nt){d=d.slice(Nt-s),s=Nt;break}s=wt,z=""}d=i.slice(o,o=n[u++]),p=Oo(n[u++],t.cm.options)}}}function Eo(e,t,n){this.line=t,this.rest=Na(t),this.size=this.rest?f(re(this.rest))-n+1:1,this.node=this.text=null,this.hidden=sr(e,t)}function jn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Ro(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Ya(e,t){t=Ht(t);var n=f(t),r=e.display.externalMeasured=new Eo(e.doc,t,n);r.lineN=n;var i=r.built=zo(e,r);return r.text=i.pre,H(e.display.lineMeasure,i.pre),r}function Ko(e,t,n,r){return jt(e,Kr(e,t),n,r)}function Di(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Qa(e,t,n,r){var i=Go(t.map,n,r),o=i.node,l=i.start,a=i.end,s=i.collapse,u;if(o.nodeType==3){for(var d=0;d<4;d++){for(;l&&ve(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a0&&(s=r="right");var p;e.options.lineWrapping&&(p=o.getClientRects()).length>1?u=p[r=="right"?p.length-1:0]:u=o.getBoundingClientRect()}if(M&&j<9&&!l&&(!u||!u.left&&!u.right)){var m=o.parentNode.getClientRects()[0];m?u={left:m.left,right:m.left+Gr(e.display),top:m.top,bottom:m.bottom}:u=Uo}for(var y=u.top-t.rect.top,S=u.bottom-t.rect.top,N=(y+S)/2,z=t.view.measure.heights,P=0;P=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function d(S,N,z){var P=a[N],W=P.level==1;return l(z?S-1:S,W!=z)}var p=nr(a,s,u),m=mr,y=d(s,p,u=="before");return m!=null&&(y.other=d(s,m,u!="before")),y}function Qo(e,t){var n=0;t=fe(e.doc,t),e.options.lineWrapping||(n=Gr(e.display)*t.ch);var r=U(e.doc,t.line),i=Jt(r)+Xn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Oi(e,t,n,r,i){var o=k(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function zi(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Oi(r.first,0,null,-1,-1);var i=h(r,n),o=r.first+r.size-1;if(i>o)return Oi(r.first+r.size-1,U(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=U(r,i);;){var a=Va(e,l,i,t,n),s=La(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=U(r,i=u.line)}}function Jo(e,t,n,r){r-=Ai(t);var i=t.text.length,o=Ot(function(l){return jt(e,n,l-1).bottom<=r},i,0);return i=Ot(function(l){return jt(e,n,l).top>r},o,i),{begin:o,end:i}}function Vo(e,t,n,r){n||(n=Kr(e,t));var i=Yn(e,t,jt(e,n,r),"line").top;return Jo(e,t,n,i)}function Pi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Va(e,t,n,r,i){i-=Jt(t);var o=Kr(e,t),l=Ai(t),a=0,s=t.text.length,u=!0,d=ke(t,e.doc.direction);if(d){var p=(e.options.lineWrapping?es:$a)(e,t,n,o,d,r,i);u=p.level!=1,a=u?p.from:p.to-1,s=u?p.to:p.from-1}var m=null,y=null,S=Ot(function(J){var Z=jt(e,o,J);return Z.top+=l,Z.bottom+=l,Pi(Z,r,i,!1)?(Z.top<=i&&Z.left<=r&&(m=J,y=Z),!0):!1},a,s),N,z,P=!1;if(y){var W=r-y.left=B.bottom?1:0}return S=Tt(t.text,S,1),Oi(n,S,z,P,r-N)}function $a(e,t,n,r,i,o,l){var a=Ot(function(p){var m=i[p],y=m.level!=1;return Pi(Bt(e,k(n,y?m.to:m.from,y?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,d=Bt(e,k(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Pi(d,o,l,!0)&&d.top>l&&(s=i[a-1])}return s}function es(e,t,n,r,i,o,l){var a=Jo(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var d=null,p=null,m=0;m=u||y.to<=s)){var S=y.level!=1,N=jt(e,r,S?Math.min(u,y.to)-1:Math.max(s,y.from)).right,z=Nz)&&(d=y,p=z)}}return d||(d=i[i.length-1]),d.fromu&&(d={from:d.from,to:u,level:d.level}),d}var wr;function Ur(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wr==null){wr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wr.appendChild(document.createTextNode("x")),wr.appendChild(c("br"));wr.appendChild(document.createTextNode("x"))}H(e.measure,wr);var n=wr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function Gr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");H(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ei(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:Ii(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ii(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function $o(e){var t=Ur(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Gr(e.display)-3);return function(i){if(sr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(u=U(e.doc,s.line).text).length==s.ch){var d=he(u,u.length,e.options.tabSize)-u.length;s=k(s.line,Math.max(0,Math.round((o-Bo(e.display).left)/Gr(e.display))-d))}return s}function Sr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Qt&&Si(e.doc,t)i.viewFrom?fr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)fr(e);else if(t<=i.viewFrom){var o=Qn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):fr(e)}else if(n>=i.viewTo){var l=Qn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):fr(e)}else{var a=Qn(e,t,t,-1),s=Qn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(jn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):fr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Sr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);G(l,n)==-1&&l.push(n)}}}function fr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Qn(e,t,n,r){var i=Sr(e,t),o,l=e.display.view;if(!Qt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,n+=o}for(;Si(e.doc,n)!=n;){if(i==(r<0?0:l.length-1))return null;n+=r*l[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function ts(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=jn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=jn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Sr(e,n)))),r.viewTo=n}function el(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(c("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Jn(e,t){return e.top-t.top||e.left-t.left}function rs(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=Bo(e.display),a=l.left,s=Math.max(r.sizerWidth,xr(e)-r.sizer.offsetLeft)-l.right,u=i.direction=="ltr";function d(E,B,J,Z){B<0&&(B=0),B=Math.round(B),Z=Math.round(Z),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+E+`px; + top: `+B+"px; width: "+(J??s-E)+`px; + height: `+(Z-B)+"px"))}function p(E,B,J){var Z=U(i,E),ge=Z.text.length,Fe,it;function Ue(Ze,kt){return Zn(e,k(E,Ze),"div",Z,kt)}function Nt(Ze,kt,at){var $e=Vo(e,Z,null,Ze),Qe=kt=="ltr"==(at=="after")?"left":"right",Xe=at=="after"?$e.begin:$e.end-(/\s/.test(Z.text.charAt($e.end-1))?2:1);return Ue(Xe,Qe)[Qe]}var wt=ke(Z,i.direction);return rr(wt,B||0,J??ge,function(Ze,kt,at,$e){var Qe=at=="ltr",Xe=Ue(Ze,Qe?"left":"right"),St=Ue(kt-1,Qe?"right":"left"),nn=B==null&&Ze==0,gr=J==null&&kt==ge,dt=$e==0,Xt=!wt||$e==wt.length-1;if(St.top-Xe.top<=3){var ot=(u?nn:gr)&&dt,fo=(u?gr:nn)&&Xt,tr=ot?a:(Qe?Xe:St).left,Nr=fo?s:(Qe?St:Xe).right;d(tr,Xe.top,Nr-tr,Xe.bottom)}else{var Dr,vt,on,co;Qe?(Dr=u&&nn&&dt?a:Xe.left,vt=u?s:Nt(Ze,at,"before"),on=u?a:Nt(kt,at,"after"),co=u&&gr&&Xt?s:St.right):(Dr=u?Nt(Ze,at,"before"):a,vt=!u&&nn&&dt?s:Xe.right,on=!u&&gr&&Xt?a:St.left,co=u?Nt(kt,at,"after"):s),d(Dr,Xe.top,vt-Dr,Xe.bottom),Xe.bottom0?t.blinker=setInterval(function(){e.hasFocus()||qr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function rl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Bi(e))}function Hi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&qr(e))},100)}function Bi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ge(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),_&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),_i(e))}function qr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ge(e,"blur",e,t),e.state.focused=!1,me(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Vn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||y<-.005)&&(ie.display.sizerWidth){var N=Math.ceil(d/Gr(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function nl(e){if(e.widgets)for(var t=0;t=l&&(o=h(t,Jt(U(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function ns(e,t){if(!qe(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!Oe){var l=c("div","​",null,`position: absolute; + top: `+(t.top-n.viewOffset-Xn(e.display))+`px; + height: `+(t.bottom-t.top+qt(e)+n.barHeight)+`px; + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function is(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?k(t.line,t.ch+1,"before"):t,t=t.ch?k(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Bt(e,t),s=!n||n==t?a:Bt(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=Ri(e,i),d=e.doc.scrollTop,p=e.doc.scrollLeft;if(u.scrollTop!=null&&(mn(e,u.scrollTop),Math.abs(e.doc.scrollTop-d)>1&&(l=!0)),u.scrollLeft!=null&&(Cr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(l=!0)),!l)break}return i}function os(e,t){var n=Ri(e,t);n.scrollTop!=null&&mn(e,n.scrollTop),n.scrollLeft!=null&&Cr(e,n.scrollLeft)}function Ri(e,t){var n=e.display,r=Ur(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Ni(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Mi(n),s=t.topa-r;if(t.topi+o){var d=Math.min(t.top,(u?a:t.bottom)-o);d!=i&&(l.scrollTop=d)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,m=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-p,y=xr(e)-n.gutters.offsetWidth,S=t.right-t.left>y;return S&&(t.right=t.left+y),t.left<10?l.scrollLeft=0:t.lefty+m-3&&(l.scrollLeft=t.right+(S?0:10)-y),l}function Ki(e,t){t!=null&&(ei(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function jr(e){ei(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function yn(e,t,n){(t!=null||n!=null)&&ei(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function ls(e,t){ei(e),e.curOp.scrollToPos=t}function ei(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Qo(e,t.from),r=Qo(e,t.to);il(e,n,r,t.margin)}}function il(e,t,n,r){var i=Ri(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});yn(e,i.scrollLeft,i.scrollTop)}function mn(e,t){Math.abs(e.doc.scrollTop-t)<2||(Se||Gi(e,{top:t}),ol(e,t,!0),Se&&Gi(e),wn(e,100))}function ol(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,fl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function bn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Mi(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+qt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Tr=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),Q(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Q(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&j<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Tr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tr.prototype.zeroWidthHack=function(){var e=xe&&!Te?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ue,this.disableVert=new ue},Tr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Tr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var xn=function(){};xn.prototype.update=function(){return{bottom:0,right:0}},xn.prototype.setScrollLeft=function(){},xn.prototype.setScrollTop=function(){},xn.prototype.clear=function(){};function Xr(e,t){t||(t=bn(e));var n=e.display.barWidth,r=e.display.barHeight;ll(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Vn(e),ll(e,bn(e)),n=e.display.barWidth,r=e.display.barHeight}function ll(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var al={native:Tr,null:xn};function sl(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&me(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new al[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Q(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Cr(e,t):mn(e,t)},e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var as=0;function Lr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++as,markArrays:null},_a(e.curOp)}function Mr(e){var t=e.curOp;t&&Ba(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ti(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function fs(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function cs(e){var t=e.cm,n=t.display;e.updatedDisplay&&Vn(t),e.barMeasure=bn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ko(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+qt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-xr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ds(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=fn(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Ut(t.mode,r.state):null,s=go(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,d=s.classes;d?o.styleClasses=d:u&&(o.styleClasses=null);for(var p=!l||l.length!=o.styles.length||u!=d&&(!u||!d||u.bgClass!=d.bgClass||u.textClass!=d.textClass),m=0;!p&&mn)return wn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Mt(e,function(){for(var o=0;o=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&el(e)==0)return!1;cl(e)&&(fr(e),t.dims=Ei(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroml&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),Qt&&(o=Si(e.doc,o),l=Ao(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;ts(e,o,l),n.viewOffset=Jt(U(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=el(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=gs(e);return s>4&&(n.lineDiv.style.display="none"),ms(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ys(u),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,wn(e,400)),n.updateLineNumbers=null,!0}function ul(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==xr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Mi(e.display)-Ni(e),n.top)}),t.visible=$n(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=$n(e.display,e.doc,n));if(!Ui(e,t))break;Vn(e);var i=bn(e);gn(e),Xr(e,i),ji(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Gi(e,t){var n=new ti(e,t);if(Ui(e,n)){Vn(e),ul(e,n);var r=bn(e);gn(e),Xr(e,r),ji(e,r),n.finish()}}function ms(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(S){var N=S.nextSibling;return _&&xe&&e.display.currentWheelTarget==S?S.style.display="none":S.parentNode.removeChild(S),N}for(var s=r.view,u=r.viewFrom,d=0;d-1&&(y=!1),Io(e,p,u,n)),y&&(T(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(O(e.options,u)))),l=p.node.nextSibling}u+=p.size}for(;l;)l=a(l)}function qi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",tt(e,"gutterChanged",e)}function ji(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+qt(e)+"px"}function fl(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Ii(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),M&&j<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!_&&!(Se&&oe)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Xi(r.gutters,r.lineNumbers),dl(i),n.init(i)}var ri=0,$t=null;M?$t=-.53:Se?$t=15:q?$t=-.7:Ie&&($t=-1/3);function hl(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function xs(e){var t=hl(e);return t.x*=$t,t.y*=$t,t}function pl(e,t){q&&se==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=hl(t),r=n.x,i=n.y,o=$t;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&xe&&_){e:for(var d=t.target,p=l.view;d!=a;d=d.parentNode)for(var m=0;m=0&&I(e,r.to())<=0)return n}return-1};var Ae=function(e,t){this.anchor=e,this.head=t};Ae.prototype.from=function(){return Hr(this.anchor,this.head)},Ae.prototype.to=function(){return mt(this.anchor,this.head)},Ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Rt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(m,y){return I(m.from(),y.from())}),n=G(t,i);for(var o=1;o0:s>=0){var u=Hr(a.from(),l.from()),d=mt(a.to(),l.to()),p=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new Ae(p?d:u,p?u:d))}}return new At(t,n)}function cr(e,t){return new At([new Ae(e,t||e)],0)}function dr(e){return e.text?k(e.from.line+e.text.length-1,re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function vl(e,t){if(I(e,t.from)<0)return e;if(I(e,t.to)<=0)return dr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=dr(t).ch-t.to.ch),k(n,r)}function Yi(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,S-1),e.insert(a.line+1,P)}tt(e,"change",e,t)}function hr(e,t,n){function r(i,o,l){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),re(e.done)}function wl(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=Ss(i,i.lastOp==r)))a=re(l.changes),I(t.from,t.to)==0&&I(t.from,a.to)==0?a.to=dr(t):l.changes.push(Ji(e,t));else{var s=re(i.done);for((!s||!s.ranges)&&ii(e.sel,i.done),l={changes:[Ji(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Ge(e,"historyAdded")}function Cs(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ts(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Cs(e,o,re(i.done),t))?i.done[i.done.length-1]=t:ii(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&xl(i.undone)}function ii(e,t){var n=re(t);n&&n.ranges&&n.equals(e)||t.push(e)}function kl(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function Ls(e){if(!e)return null;for(var t,n=0;n-1&&(re(a)[p]=u[p],delete u[p])}}return r}function Vi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=I(t,i)<0;o!=I(n,i)<0?(i=t,t=n):o!=I(t,n)<0&&(t=n)}return new Ae(i,t)}else return new Ae(n||t,t)}function oi(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),ct(e,new At([Vi(e.sel.primary(),t,n,i)],0),r)}function Cl(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(Ge(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(n){var p=s.find(r<0?1:-1),m=void 0;if((r<0?d:u)&&(p=Al(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(m=I(p,n))&&(r<0?m<0:m>0))return Zr(e,p,t,r,i)}var y=s.find(r<0?-1:1);return(r<0?u:d)&&(y=Al(e,y,r,y.line==t.line?o:null)),y?Zr(e,y,t,r,i):null}}return t}function ai(e,t,n,r,i){var o=r||1,l=Zr(e,t,n,o,i)||!i&&Zr(e,t,n,o,!0)||Zr(e,t,n,-o,i)||!i&&Zr(e,t,n,-o,!0);return l||(e.cantEdit=!0,k(e.first,0))}function Al(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?fe(e,k(t.line-1)):null:n>0&&t.ch==(r||U(e,t.line)).text.length?t.line=0;--i)Pl(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Pl(e,t)}}function Pl(e,t){if(!(t.text.length==1&&t.text[0]==""&&I(t.from,t.to)==0)){var n=Yi(e,t);wl(e,t,n,e.cm?e.cm.curOp.id:NaN),Cn(e,t,n,wi(e,t));var r=[];hr(e,function(i,o){!o&&G(r,i.history)==-1&&(Wl(i.history,t),r.push(i.history)),Cn(i,t,null,wi(i,t))})}}function si(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--y){var S=m(y);if(S)return S.v}}}}function El(e,t){if(t!=0&&(e.first+=t,e.sel=new At(Ne(e.sel.ranges,function(i){return new Ae(k(i.anchor.line+t,i.anchor.ch),k(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){bt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:k(o,U(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Zt(e,t.from,t.to),n||(n=Yi(e,t)),e.cm?Ds(e.cm,t,r):Qi(e,t,r),li(e,n,st),e.cantEdit&&ai(e,k(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ds(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=f(Ht(U(r,o.line))),r.iter(s,l.line+1,function(y){if(y==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&zt(e),Qi(r,t,n,$o(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(y){var S=qn(y);S>i.maxLineLength&&(i.maxLine=y,i.maxLineLength=S,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),ma(r,o.line),wn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?bt(e):o.line==l.line&&t.text.length==1&&!yl(e.doc,t)?ur(e,o.line,"text"):bt(e,o.line,l.line+1,u);var d=Lt(e,"changes"),p=Lt(e,"change");if(p||d){var m={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};p&&tt(e,"change",e,m),d&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(m)}e.display.selForContextMenu=null}function Jr(e,t,n,r,i){var o;r||(r=n),I(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Qr(e,{from:n,to:r,text:t,origin:i})}function Il(e,t,n,r){n1||!(this.children[0]instanceof Ln))){var a=[];this.collapse(a),this.children=[new Ln(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=d,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&bt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Nl(e.doc)),e&&tt(e,"markerCleared",e,this,r,i),t&&Mr(e),this.parent&&this.parent.clear()}},pr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=x("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Do(e,t.line,t,n,o)||t.line!=n.line&&Do(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");xa()}o.addToHistory&&wl(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(p){s&&o.collapsed&&!s.options.lineWrapping&&Ht(p)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Dt(p,0),ka(p,new Rn(o,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,n.line+1,function(p){sr(e,p)&&Dt(p,0)}),o.clearOnEnter&&Q(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(ba(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Hl,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)bt(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var d=t.line;d<=n.line;d++)ur(s,d,"text");o.atomic&&Nl(s.doc),tt(s,"markerAdded",s,o)}return o}var Dn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)Qr(this,r[s]);a?Ll(this,a):this.cm&&jr(this.cm)}),undo:nt(function(){si(this,"undo")}),redo:nt(function(){si(this,"redo")}),undoSelection:nt(function(){si(this,"undo",!0)}),redoSelection:nt(function(){si(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=fe(this,e),t=fe(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),fe(this,k(n,t))},indexFromPos:function(e){e=fe(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),li(t.doc,cr(n,n)),p)for(var m=0;m=0;a--)Jr(e.doc,"",r[a].from,r[a].to,"+delete");jr(e)})}function eo(e,t,n){var r=Tt(e.text,t+n,n);return r<0||r>e.text.length?null:r}function to(e,t,n){var r=eo(e,t.ch,n);return r==null?null:new k(t.line,r,n<0?"after":"before")}function ro(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=ke(n,t.doc.direction);if(o){var l=i<0?re(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var d=Kr(t,n);u=i<0?n.text.length-1:0;var p=jt(t,d,u).top;u=Ot(function(m){return jt(t,d,m).top==p},i<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=eo(n,u,1))}else u=i<0?l.to:l.from;return new k(r,u,s)}}return new k(r,i<0?n.text.length:0,i<0?"before":"after")}function Us(e,t,n,r){var i=ke(t,e.doc.direction);if(!i)return to(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=nr(i,n.ch,n.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>n.ch:l.from=l.from&&m>=d.begin)){var y=p?"before":"after";return new k(n.line,m,y)}}var S=function(P,W,E){for(var B=function(Fe,it){return it?new k(n.line,a(Fe,1),"before"):new k(n.line,Fe,"after")};P>=0&&P0==(J.level!=1),ge=Z?E.begin:a(E.end,-1);if(J.from<=ge&&ge0?d.end:a(d.begin,-1);return z!=null&&!(r>0&&z==t.text.length)&&(N=S(r>0?0:i.length-1,r,u(z)),N)?N:null}var zn={selectAll:Ol,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),st)},killLine:function(e){return en(e,function(t){if(t.empty()){var n=U(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new k(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),k(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=U(e.doc,i.line-1).text;l&&(i=new k(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),k(i.line-1,l.length-1),i,"+transpose"))}}n.push(new Ae(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Mt(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&I(t,this.pos)==0&&n==this.button};var En,In;function Qs(e,t){var n=+new Date;return In&&In.compare(n,e,t)?(En=In=null,"triple"):En&&En.compare(n,e,t)?(In=new io(n,e,t),En=null,"double"):(En=new io(n,e,t),In=null,"single")}function ta(e){var t=this,n=t.display;if(!(qe(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Vt(n,e)){_||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!oo(t,e)){var r=kr(t,e),i=It(e),o=r?Qs(r,i):"single";le(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Js(t,i,r,o,e))&&(i==1?r?$s(t,r,o,e):ln(e)==n.scroller&&ft(e):i==2?(r&&oi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(ee?t.display.input.onContextMenu(e):Hi(t)))}}}function Js(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Pn(e,jl(o,i),i,function(l){if(typeof l=="string"&&(l=zn[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,n)!=Ct}finally{e.state.suppressEdits=!1}return a})}function Vs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=_e?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=xe?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(xe?n.altKey:n.ctrlKey)),i}function $s(e,t,n,r){M?setTimeout(te(rl,e),0):e.curOp.focus=g(Re(e));var i=Vs(e,n,r),o=e.doc.sel,l;e.options.dragDrop&&yi&&!e.isReadOnly()&&n=="single"&&(l=o.contains(t))>-1&&(I((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(I(l.to(),t)>0||t.xRel<0)?eu(e,r,t,i):tu(e,r,t,i)}function eu(e,t,n,r){var i=e.display,o=!1,l=rt(e,function(u){_&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Hi(e)),ut(i.wrapper.ownerDocument,"mouseup",l),ut(i.wrapper.ownerDocument,"mousemove",a),ut(i.scroller,"dragstart",s),ut(i.scroller,"drop",l),o||(ft(u),r.addNew||oi(e.doc,n,null,null,r.extend),_&&!Ie||M&&j==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};_&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,Q(i.wrapper.ownerDocument,"mouseup",l),Q(i.wrapper.ownerDocument,"mousemove",a),Q(i.scroller,"dragstart",s),Q(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ra(e,t,n){if(n=="char")return new Ae(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new Ae(k(t.line,0),fe(e.doc,k(t.line+1,0)));var r=n(e,t);return new Ae(r.from,r.to)}function tu(e,t,n,r){M&&Hi(e);var i=e.display,o=e.doc;ft(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),a>-1?l=u[a]:l=new Ae(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new Ae(n,n)),n=kr(e,t,!0,!0),a=-1;else{var d=ra(e,n,r.unit);r.extend?l=Vi(l,d.anchor,d.head,r.extend):l=d}r.addNew?a==-1?(a=u.length,ct(o,Rt(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(ct(o,Rt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):$i(o,a,l,gt):(a=0,ct(o,new At([l],0),gt),s=o.sel);var p=n;function m(E){if(I(p,E)!=0)if(p=E,r.unit=="rectangle"){for(var B=[],J=e.options.tabSize,Z=he(U(o,n.line).text,n.ch,J),ge=he(U(o,E.line).text,E.ch,J),Fe=Math.min(Z,ge),it=Math.max(Z,ge),Ue=Math.min(n.line,E.line),Nt=Math.min(e.lastLine(),Math.max(n.line,E.line));Ue<=Nt;Ue++){var wt=U(o,Ue).text,Ze=Ke(wt,Fe,J);Fe==it?B.push(new Ae(k(Ue,Ze),k(Ue,Ze))):wt.length>Ze&&B.push(new Ae(k(Ue,Ze),k(Ue,Ke(wt,it,J))))}B.length||B.push(new Ae(n,n)),ct(o,Rt(e,s.ranges.slice(0,a).concat(B),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(E)}else{var kt=l,at=ra(e,E,r.unit),$e=kt.anchor,Qe;I(at.anchor,$e)>0?(Qe=at.head,$e=Hr(kt.from(),at.anchor)):(Qe=at.anchor,$e=mt(kt.to(),at.head));var Xe=s.ranges.slice(0);Xe[a]=ru(e,new Ae(fe(o,$e),Qe)),ct(o,Rt(e,Xe,a),gt)}}var y=i.wrapper.getBoundingClientRect(),S=0;function N(E){var B=++S,J=kr(e,E,!0,r.unit=="rectangle");if(J)if(I(J,p)!=0){e.curOp.focus=g(Re(e)),m(J);var Z=$n(i,o);(J.line>=Z.to||J.liney.bottom?20:0;ge&&setTimeout(rt(e,function(){S==B&&(i.scroller.scrollTop+=ge,N(E))}),50)}}function z(E){e.state.selectingText=!1,S=1/0,E&&(ft(E),i.input.focus()),ut(i.wrapper.ownerDocument,"mousemove",P),ut(i.wrapper.ownerDocument,"mouseup",W),o.history.lastSelOrigin=null}var P=rt(e,function(E){E.buttons===0||!It(E)?z(E):N(E)}),W=rt(e,z);e.state.selectingText=W,Q(i.wrapper.ownerDocument,"mousemove",P),Q(i.wrapper.ownerDocument,"mouseup",W)}function ru(e,t){var n=t.anchor,r=t.head,i=U(e.doc,n.line);if(I(n,r)==0&&n.sticky==r.sticky)return t;var o=ke(i);if(!o)return t;var l=nr(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var d=nr(o,r.ch,r.sticky),p=d-l||(r.ch-n.ch)*(a.level==1?-1:1);d==s-1||d==s?u=p<0:u=p>0}var m=o[s+(u?-1:0)],y=u==(m.level==1),S=y?m.from:m.to,N=y?"after":"before";return n.ch==S&&n.sticky==N?t:new Ae(new k(n.line,S,N),r)}function na(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ft(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!Lt(e,n))return yt(t);o-=a.top-l.viewOffset;for(var s=0;s=i){var d=h(e.doc,o),p=e.display.gutterSpecs[s];return Ge(e,n,e,d,p.className,t),yt(t)}}}function oo(e,t){return na(e,t,"gutterClick",!0)}function ia(e,t){Vt(e.display,t)||nu(e,t)||qe(e,t,"contextmenu")||ee||e.display.input.onContextMenu(t)}function nu(e,t){return Lt(e,"gutterContextMenu")?na(e,t,"gutterContextMenu",!1):!1}function oa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),vn(e)}var tn={toString:function(){return"CodeMirror.Init"}},la={},di={};function iu(e){var t=e.optionHandlers;function n(r,i,o,l){e.defaults[r]=i,o&&(t[r]=l?function(a,s,u){u!=tn&&o(a,s,u)}:o)}e.defineOption=n,e.Init=tn,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,Zi(r)},!0),n("indentUnit",2,Zi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Sn(r),vn(r),bt(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var d=s.text.indexOf(i,u);if(d==-1)break;u=d+i.length,o.push(k(l,d))}l++});for(var a=o.length-1;a>=0;a--)Jr(r.doc,i,o[a],k(o[a].line,o[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=tn&&r.refresh()}),n("specialCharPlaceholder",Pa,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",oe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!ye),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){oa(r),kn(r)},!0),n("keyMap","default",function(r,i,o){var l=fi(i),a=o!=tn&&fi(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,lu,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Xi(i,r.options.lineNumbers),kn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Ii(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Xr(r)},!0),n("scrollbarStyle","native",function(r){sl(r),Xr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Xi(r.options.gutters,i),kn(r)},!0),n("firstLineNumber",1,kn,!0),n("lineNumberFormatter",function(r){return r},kn,!0),n("showCursorWhenSelecting",!1,gn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(qr(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,ou),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,gn,!0),n("singleCursorHeightPerLine",!0,gn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Sn,!0),n("addModeClass",!1,Sn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Sn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function ou(e,t,n){var r=n&&n!=tn;if(!t!=!r){var i=e.display.dragFunctions,o=t?Q:ut;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function lu(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(me(e.display.wrapper,"CodeMirror-wrap"),Ti(e)),Fi(e),bt(e),vn(e),setTimeout(function(){return Xr(e)},100)}function Be(e,t){var n=this;if(!(this instanceof Be))return new Be(e,t);this.options=t=t?de(t):{},de(la,t,!1);var r=t.value;typeof r=="string"?r=new xt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Be.inputStyles[t.inputStyle](this),o=this.display=new bs(e,r,i,t);o.wrapper.CodeMirror=this,oa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),sl(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 ue,keySeq:null,specialChars:null},t.autofocus&&!oe&&o.input.focus(),M&&j<11&&setTimeout(function(){return n.display.input.reset(!0)},20),au(this),_s(),Lr(this),this.curOp.forceUpdate=!0,ml(this,r),t.autofocus&&!oe||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Bi(n)},20):qr(this);for(var l in di)di.hasOwnProperty(l)&&di[l](this,t[l],tn);cl(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}Q(t.scroller,"touchstart",function(s){if(!qe(e,s)&&!o(s)&&!oo(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),Q(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Q(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Vt(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var d=e.coordsChar(t.activeTouch,"page"),p;!u.prev||l(u,u.prev)?p=new Ae(d,d):!u.prev.prev||l(u,u.prev.prev)?p=e.findWordAt(d):p=new Ae(k(d.line,0),fe(e.doc,k(d.line+1,0))),e.setSelection(p.anchor,p.head),e.focus(),ft(s)}i()}),Q(t.scroller,"touchcancel",i),Q(t.scroller,"scroll",function(){t.scroller.clientHeight&&(mn(e,t.scroller.scrollTop),Cr(e,t.scroller.scrollLeft,!0),Ge(e,"scroll",e))}),Q(t.scroller,"mousewheel",function(s){return pl(e,s)}),Q(t.scroller,"DOMMouseScroll",function(s){return pl(e,s)}),Q(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){qe(e,s)||ir(s)},over:function(s){qe(e,s)||(Ws(e,s),ir(s))},start:function(s){return Fs(e,s)},drop:rt(e,Is),leave:function(s){qe(e,s)||Kl(e)}};var a=t.input.getField();Q(a,"keyup",function(s){return $l.call(e,s)}),Q(a,"keydown",rt(e,Vl)),Q(a,"keypress",rt(e,ea)),Q(a,"focus",function(s){return Bi(e,s)}),Q(a,"blur",function(s){return qr(e,s)})}var lo=[];Be.defineInitHook=function(e){return lo.push(e)};function Fn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=fn(e,t).state:n="prev");var l=e.options.tabSize,a=U(i,t),s=he(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],d;if(!r&&!/\S/.test(a.text))d=0,n="not";else if(n=="smart"&&(d=i.mode.indent(o,a.text.slice(u.length),a.text),d==Ct||d>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?d=he(U(i,t-1).text,null,l):d=0:n=="add"?d=s+e.options.indentUnit:n=="subtract"?d=s-e.options.indentUnit:typeof n=="number"&&(d=s+n),d=Math.max(0,d);var p="",m=0;if(e.options.indentWithTabs)for(var y=Math.floor(d/l);y;--y)m+=l,p+=" ";if(ml,s=Pt(t),u=null;if(a&&r.ranges.length>1)if(Kt&&Kt.text.join(` +`)==t){if(r.ranges.length%Kt.text.length==0){u=[];for(var d=0;d=0;m--){var y=r.ranges[m],S=y.from(),N=y.to();y.empty()&&(n&&n>0?S=k(S.line,S.ch-n):e.state.overwrite&&!a?N=k(N.line,Math.min(U(o,N.line).text.length,N.ch+re(s).length)):a&&Kt&&Kt.lineWise&&Kt.text.join(` +`)==s.join(` +`)&&(S=N=k(S.line,0)));var z={from:S,to:N,text:u?u[m%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};Qr(e.doc,z),tt(e,"inputRead",e,z)}t&&!a&&sa(e,t),jr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function aa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Mt(t,function(){return ao(t,n,0,null,"paste")}),!0}function sa(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=Fn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(U(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Fn(e,i.head.line,"smart"));l&&tt(e,"electricInput",e,i.head.line)}}}function ua(e){for(var t=[],n=[],r=0;ro&&(Fn(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&jr(this));else{var s=a.from(),u=a.to(),d=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var p=d;p0&&$i(this.doc,l,new Ae(s,m[l].to()),st)}}}),getTokenAt:function(r,i){return xo(this,r,i)},getLineTokens:function(r,i){return xo(this,k(r),i,!0)},getTokenTypeAt:function(r){r=fe(this.doc,r);var i=yo(this,U(this.doc,r.line)),o=0,l=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=o+l>>1;if((u?i[u*2-1]:0)>=a)l=u;else if(i[u*2+1]s&&(r=s,l=!0),a=U(this.doc,r)}else a=r;return Yn(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-Jt(a):0)},defaultTextHeight:function(){return Ur(this.display)},defaultCharWidth:function(){return Gr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,l,a){var s=this.display;r=Bt(this,fe(this.doc,r));var u=r.bottom,d=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")u=r.top;else if(l=="above"||l=="near"){var p=Math.max(s.wrapper.clientHeight,this.doc.height),m=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+i.offsetHeight>p)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=p&&(u=r.bottom),d+i.offsetWidth>m&&(d=m-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(d=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?d=0:a=="middle"&&(d=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=d+"px"),o&&os(this,{left:d,top:u,right:d+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:pt(Vl),triggerOnKeyPress:pt(ea),triggerOnKeyUp:$l,triggerOnMouseDown:pt(ta),execCommand:function(r){if(zn.hasOwnProperty(r))return zn[r].call(null,this)},triggerElectric:pt(function(r){sa(this,r)}),findPosH:function(r,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=fe(this.doc,r),u=0;u0&&d(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&Fi(this),Ge(this,"refresh",this)}),swapDoc:pt(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),ml(this,r),vn(this),this.display.input.reset(),yn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,tt(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Et(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,l){e.registerHelper(r,i,l),n[r]._global.push({pred:o,val:l})}}function uo(e,t,n,r,i){var o=t,l=n,a=U(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var W=t.line+s;return W=e.first+e.size?!1:(t=new k(W,t.ch,t.sticky),a=U(e,W))}function d(W){var E;if(r=="codepoint"){var B=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(B))E=null;else{var J=n>0?B>=55296&&B<56320:B>=56320&&B<57343;E=new k(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(J?2:1))),-n)}}else i?E=Us(e.cm,a,t,n):E=to(a,t,n);if(E==null)if(!W&&u())t=ro(i,e.cm,a,t.line,s);else return!1;else t=E;return!0}if(r=="char"||r=="codepoint")d();else if(r=="column")d(!0);else if(r=="word"||r=="group")for(var p=null,m=r=="group",y=e.cm&&e.cm.getHelper(t,"wordChars"),S=!0;!(n<0&&!d(!S));S=!1){var N=a.text.charAt(t.ch)||` +`,z=ne(N,y)?"w":m&&N==` +`?"n":!m||/\s/.test(N)?null:"p";if(m&&!S&&!z&&(z="s"),p&&p!=z){n<0&&(n=1,d(),t.sticky="after");break}if(z&&(p=z),n>0&&!d(!S))break}var P=ai(e,t,o,l,!0);return De(o,P)&&(P.hitSide=!0),P}function ca(e,t,n,r){var i=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,le(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(a-.5*Ur(e.display),3);l=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(l=n>0?t.bottom+3:t.top-3);for(var u;u=zi(e,o,l),!!u.outside;){if(n<0?l<=0:l>=i.height){u.hitSide=!0;break}l+=n*5}return u}var Pe=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Pe.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,so(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}Q(i,"paste",function(a){!o(a)||qe(r,a)||aa(a,r)||j<=11&&setTimeout(rt(r,function(){return t.updateFromDOM()}),20)}),Q(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),Q(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),Q(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Q(i,"touchstart",function(){return n.forceCompositionEnd()}),Q(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||qe(r,a))){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=ua(r);hi({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,st),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Kt.text.join(` +`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var d=fa(),p=d.firstChild;so(p),r.display.lineSpace.insertBefore(d,r.display.lineSpace.firstChild),p.value=Kt.text.join(` +`);var m=g(ze(i));$(p),setTimeout(function(){r.display.lineSpace.removeChild(d),m.focus(),m==i&&n.showPrimarySelection()},50)}}Q(i,"copy",l),Q(i,"cut",l)},Pe.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Pe.prototype.prepareSelection=function(){var e=tl(this.cm,!1);return e.focus=g(ze(this.div))==this.div,e},Pe.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Pe.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Pe.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&da(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=k(r.line-1,U(e.doc,r.line-1).length)),i.ch==U(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Sr(e,r.line))==0?(l=f(t.view[0].line),a=t.view[0].node):(l=f(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Sr(e,i.line),u,d;if(s==t.view.length-1?(u=t.viewTo-1,d=t.lineDiv.lastChild):(u=f(t.view[s+1].line)-1,d=t.view[s+1].node.previousSibling),!a)return!1;for(var p=e.doc.splitLines(fu(e,a,d,l,u)),m=Zt(e.doc,k(l,0),k(u,U(e.doc,u).text.length));p.length>1&&m.length>1;)if(re(p)==re(m))p.pop(),m.pop(),u--;else if(p[0]==m[0])p.shift(),m.shift(),l++;else break;for(var y=0,S=0,N=p[0],z=m[0],P=Math.min(N.length,z.length);yr.ch&&W.charCodeAt(W.length-S-1)==E.charCodeAt(E.length-S-1);)y--,S++;p[p.length-1]=W.slice(0,W.length-S).replace(/^\u200b+/,""),p[0]=p[0].slice(y).replace(/\u200b+$/,"");var J=k(l,y),Z=k(u,m.length?re(m).length-S:0);if(p.length>1||p[0]||I(J,Z))return Jr(e.doc,p,J,Z,"+input"),!0},Pe.prototype.ensurePolled=function(){this.forceCompositionEnd()},Pe.prototype.reset=function(){this.forceCompositionEnd()},Pe.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Pe.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Pe.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Mt(this.cm,function(){return bt(e.cm)})},Pe.prototype.setUneditable=function(e){e.contentEditable="false"},Pe.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||rt(this.cm,ao)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Pe.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Pe.prototype.onContextMenu=function(){},Pe.prototype.resetPosition=function(){},Pe.prototype.needsContentAttribute=!0;function da(e,t){var n=Di(e,t.line);if(!n||n.hidden)return null;var r=U(e.doc,t.line),i=Ro(n,r,t.line),o=ke(r,e.doc.direction),l="left";if(o){var a=nr(o,t.ch);l=a%2?"right":"left"}var s=Go(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function uu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rn(e,t){return t&&(e.bad=!0),e}function fu(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(y){return function(S){return S.id==y}}function d(){l&&(o+=a,s&&(o+=a),l=s=!1)}function p(y){y&&(d(),o+=y)}function m(y){if(y.nodeType==1){var S=y.getAttribute("cm-text");if(S){p(S);return}var N=y.getAttribute("cm-marker"),z;if(N){var P=e.findMarks(k(r,0),k(i+1,0),u(+N));P.length&&(z=P[0].find(0))&&p(Zt(e.doc,z.from,z.to).join(a));return}if(y.getAttribute("contenteditable")=="false")return;var W=/^(pre|div|p|li|table|br)$/i.test(y.nodeName);if(!/^br$/i.test(y.nodeName)&&y.textContent.length==0)return;W&&d();for(var E=0;E=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Q(i,"paste",function(l){qe(r,l)||aa(l,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(l){if(!qe(r,l)){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=ua(r);hi({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,st):(n.prevInput="",i.value=a.text.join(` +`),$(i))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}Q(i,"cut",o),Q(i,"copy",o),Q(e.scroller,"paste",function(l){if(!(Vt(e,l)||qe(r,l))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),Q(e.lineSpace,"selectstart",function(l){Vt(e,l)||ft(l)}),Q(i,"compositionstart",function(){var l=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Q(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ye.prototype.createField=function(e){this.wrapper=fa(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;so(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ye.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ye.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=tl(e);if(e.options.moveInputWithCursor){var i=Bt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},Ye.prototype.showSelection=function(e){var t=this.cm,n=t.display;H(n.cursorDiv,e.cursors),H(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ye.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&$(this.textarea),M&&j>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",M&&j>=9&&(this.hasSelection=null));this.resetting=!1}},Ye.prototype.getField=function(){return this.textarea},Ye.prototype.supportsTouch=function(){return!1},Ye.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!oe||g(ze(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ye.prototype.blur=function(){this.textarea.blur()},Ye.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ye.prototype.receivedFocus=function(){this.slowPoll()},Ye.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ye.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},Ye.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||lr(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(M&&j>=9&&this.hasSelection===i||xe&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l1e3||i.indexOf(` +`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ye.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ye.prototype.onKeyPress=function(){M&&j>=9&&(this.hasSelection=null),this.fastPoll()},Ye.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=kr(n,e),l=r.scroller.scrollTop;if(!o||ce)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&&rt(n,ct)(n.doc,cr(o),st);var s=i.style.cssText,u=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+`px; + z-index: 1000; background: `+(M?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var p;_&&(p=i.ownerDocument.defaultView.scrollY),r.input.focus(),_&&i.ownerDocument.defaultView.scrollTo(null,p),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function m(){if(i.selectionStart!=null){var N=n.somethingSelected(),z="​"+(N?i.value:"");i.value="⇚",i.value=z,t.prevInput=N?"":"​",i.selectionStart=1,i.selectionEnd=z.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,M&&j<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!M||M&&j<9)&&m();var N=0,z=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?rt(n,Ol)(n):N++<10?r.detectingSelectAll=setTimeout(z,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(z,200)}}if(M&&j>=9&&m(),ee){ir(e);var S=function(){ut(window,"mouseup",S),setTimeout(y,20)};Q(window,"mouseup",S)}else setTimeout(y,50)},Ye.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ye.prototype.setUneditable=function(){},Ye.prototype.needsContentAttribute=!1;function du(e,t){if(t=t?de(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=g(ze(e));t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(Q(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ut(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Be(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function hu(e){e.off=ut,e.on=Q,e.wheelEventPixels=xs,e.Doc=xt,e.splitLines=Pt,e.countColumn=he,e.findColumn=Ke,e.isWordChar=R,e.Pass=Ct,e.signal=Ge,e.Line=Br,e.changeEnd=dr,e.scrollbarModel=al,e.Pos=k,e.cmpPos=I,e.modes=Er,e.mimeModes=Wt,e.resolveMode=Ir,e.getMode=Fr,e.modeExtensions=ar,e.extendMode=Wr,e.copyState=Ut,e.startState=_r,e.innerMode=sn,e.commands=zn,e.keyMap=er,e.keyName=Xl,e.isModifierKey=ql,e.lookupKey=$r,e.normalizeKeyMap=Ks,e.StringStream=je,e.SharedTextMarker=Dn,e.TextMarker=pr,e.LineWidget=Nn,e.e_preventDefault=ft,e.e_stopPropagation=zr,e.e_stop=ir,e.addClass=D,e.contains=v,e.rmClass=me,e.keyNames=vr}iu(Be),su(Be);var pu="iter insert remove copy getEditor constructor".split(" ");for(var vi in xt.prototype)xt.prototype.hasOwnProperty(vi)&&G(pu,vi)<0&&(Be.prototype[vi]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[vi]));return Et(xt),Be.inputStyles={textarea:Ye,contenteditable:Pe},Be.defineMode=function(e){!Be.defaults.mode&&e!="null"&&(Be.defaults.mode=e),_t.apply(this,arguments)},Be.defineMIME=br,Be.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Be.defineMIME("text/plain","null"),Be.defineExtension=function(e,t){Be.prototype[e]=t},Be.defineDocExtension=function(e,t){xt.prototype[e]=t},Be.fromTextArea=du,hu(Be),Be.version="5.65.15",Be})}(ho)),ho.exports}var yu=Ar();const Cu=gu(yu);var mu={exports:{}};(function(yr,Or){(function(F){F(Ar())})(function(F){F.defineMode("css",function(ee,X){var me=X.inline;X.propertyKeywords||(X=F.resolveMode("text/css"));var T=ee.indentUnit,H=X.tokenHooks,c=X.documentTypes||{},x=X.mediaTypes||{},b=X.mediaFeatures||{},v=X.mediaValueKeywords||{},g=X.propertyKeywords||{},D=X.nonStandardPropertyKeywords||{},K=X.fontProperties||{},$=X.counterDescriptors||{},pe=X.colorKeywords||{},Re=X.valueKeywords||{},ze=X.allowNested,le=X.lineComment,te=X.supportsAtComponent===!0,de=ee.highlightNonStandardPropertyKeywords!==!1,he,ue;function G(w,A){return he=A,w}function Ve(w,A){var C=w.next();if(H[C]){var be=H[C](w,A);if(be!==!1)return be}if(C=="@")return w.eatWhile(/[\w\\\-]/),G("def",w.current());if(C=="="||(C=="~"||C=="|")&&w.eat("="))return G(null,"compare");if(C=='"'||C=="'")return A.tokenize=Ct(C),A.tokenize(w,A);if(C=="#")return w.eatWhile(/[\w\\\-]/),G("atom","hash");if(C=="!")return w.match(/^\s*\w*/),G("keyword","important");if(/\d/.test(C)||C=="."&&w.eat(/\d/))return w.eatWhile(/[\w.%]/),G("number","unit");if(C==="-"){if(/[\d.]/.test(w.peek()))return w.eatWhile(/[\w.%]/),G("number","unit");if(w.match(/^-[\w\\\-]*/))return w.eatWhile(/[\w\\\-]/),w.match(/^\s*:/,!1)?G("variable-2","variable-definition"):G("variable-2","variable");if(w.match(/^\w+-/))return G("meta","meta")}else return/[,+>*\/]/.test(C)?G(null,"select-op"):C=="."&&w.match(/^-?[_a-z][_a-z0-9-]*/i)?G("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(C)?G(null,C):w.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(w.current())&&(A.tokenize=st),G("variable callee","variable")):/[\w\\\-]/.test(C)?(w.eatWhile(/[\w\\\-]/),G("property","word")):G(null,null)}function Ct(w){return function(A,C){for(var be=!1,R;(R=A.next())!=null;){if(R==w&&!be){w==")"&&A.backUp(1);break}be=!be&&R=="\\"}return(R==w||!be&&w!=")")&&(C.tokenize=null),G("string","string")}}function st(w,A){return w.next(),w.match(/^\s*[\"\')]/,!1)?A.tokenize=null:A.tokenize=Ct(")"),G(null,"(")}function gt(w,A,C){this.type=w,this.indent=A,this.prev=C}function Le(w,A,C,be){return w.context=new gt(C,A.indentation()+(be===!1?0:T),w.context),C}function Ke(w){return w.context.prev&&(w.context=w.context.prev),w.context.type}function lt(w,A,C){return Ne[C.context.type](w,A,C)}function ht(w,A,C,be){for(var R=be||1;R>0;R--)C.context=C.context.prev;return lt(w,A,C)}function re(w){var A=w.current().toLowerCase();Re.hasOwnProperty(A)?ue="atom":pe.hasOwnProperty(A)?ue="keyword":ue="variable"}var Ne={};return Ne.top=function(w,A,C){if(w=="{")return Le(C,A,"block");if(w=="}"&&C.context.prev)return Ke(C);if(te&&/@component/i.test(w))return Le(C,A,"atComponentBlock");if(/^@(-moz-)?document$/i.test(w))return Le(C,A,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(w))return Le(C,A,"atBlock");if(/^@(font-face|counter-style)/i.test(w))return C.stateArg=w,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(w))return"keyframes";if(w&&w.charAt(0)=="@")return Le(C,A,"at");if(w=="hash")ue="builtin";else if(w=="word")ue="tag";else{if(w=="variable-definition")return"maybeprop";if(w=="interpolation")return Le(C,A,"interpolation");if(w==":")return"pseudo";if(ze&&w=="(")return Le(C,A,"parens")}return C.context.type},Ne.block=function(w,A,C){if(w=="word"){var be=A.current().toLowerCase();return g.hasOwnProperty(be)?(ue="property","maybeprop"):D.hasOwnProperty(be)?(ue=de?"string-2":"property","maybeprop"):ze?(ue=A.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ue+=" error","maybeprop")}else return w=="meta"?"block":!ze&&(w=="hash"||w=="qualifier")?(ue="error","block"):Ne.top(w,A,C)},Ne.maybeprop=function(w,A,C){return w==":"?Le(C,A,"prop"):lt(w,A,C)},Ne.prop=function(w,A,C){if(w==";")return Ke(C);if(w=="{"&&ze)return Le(C,A,"propBlock");if(w=="}"||w=="{")return ht(w,A,C);if(w=="(")return Le(C,A,"parens");if(w=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(A.current()))ue+=" error";else if(w=="word")re(A);else if(w=="interpolation")return Le(C,A,"interpolation");return"prop"},Ne.propBlock=function(w,A,C){return w=="}"?Ke(C):w=="word"?(ue="property","maybeprop"):C.context.type},Ne.parens=function(w,A,C){return w=="{"||w=="}"?ht(w,A,C):w==")"?Ke(C):w=="("?Le(C,A,"parens"):w=="interpolation"?Le(C,A,"interpolation"):(w=="word"&&re(A),"parens")},Ne.pseudo=function(w,A,C){return w=="meta"?"pseudo":w=="word"?(ue="variable-3",C.context.type):lt(w,A,C)},Ne.documentTypes=function(w,A,C){return w=="word"&&c.hasOwnProperty(A.current())?(ue="tag",C.context.type):Ne.atBlock(w,A,C)},Ne.atBlock=function(w,A,C){if(w=="(")return Le(C,A,"atBlock_parens");if(w=="}"||w==";")return ht(w,A,C);if(w=="{")return Ke(C)&&Le(C,A,ze?"block":"top");if(w=="interpolation")return Le(C,A,"interpolation");if(w=="word"){var be=A.current().toLowerCase();be=="only"||be=="not"||be=="and"||be=="or"?ue="keyword":x.hasOwnProperty(be)?ue="attribute":b.hasOwnProperty(be)?ue="property":v.hasOwnProperty(be)?ue="keyword":g.hasOwnProperty(be)?ue="property":D.hasOwnProperty(be)?ue=de?"string-2":"property":Re.hasOwnProperty(be)?ue="atom":pe.hasOwnProperty(be)?ue="keyword":ue="error"}return C.context.type},Ne.atComponentBlock=function(w,A,C){return w=="}"?ht(w,A,C):w=="{"?Ke(C)&&Le(C,A,ze?"block":"top",!1):(w=="word"&&(ue="error"),C.context.type)},Ne.atBlock_parens=function(w,A,C){return w==")"?Ke(C):w=="{"||w=="}"?ht(w,A,C,2):Ne.atBlock(w,A,C)},Ne.restricted_atBlock_before=function(w,A,C){return w=="{"?Le(C,A,"restricted_atBlock"):w=="word"&&C.stateArg=="@counter-style"?(ue="variable","restricted_atBlock_before"):lt(w,A,C)},Ne.restricted_atBlock=function(w,A,C){return w=="}"?(C.stateArg=null,Ke(C)):w=="word"?(C.stateArg=="@font-face"&&!K.hasOwnProperty(A.current().toLowerCase())||C.stateArg=="@counter-style"&&!$.hasOwnProperty(A.current().toLowerCase())?ue="error":ue="property","maybeprop"):"restricted_atBlock"},Ne.keyframes=function(w,A,C){return w=="word"?(ue="variable","keyframes"):w=="{"?Le(C,A,"top"):lt(w,A,C)},Ne.at=function(w,A,C){return w==";"?Ke(C):w=="{"||w=="}"?ht(w,A,C):(w=="word"?ue="tag":w=="hash"&&(ue="builtin"),"at")},Ne.interpolation=function(w,A,C){return w=="}"?Ke(C):w=="{"||w==";"?ht(w,A,C):(w=="word"?ue="variable":w!="variable"&&w!="("&&w!=")"&&(ue="error"),"interpolation")},{startState:function(w){return{tokenize:null,state:me?"block":"top",stateArg:null,context:new gt(me?"block":"top",w||0,null)}},token:function(w,A){if(!A.tokenize&&w.eatSpace())return null;var C=(A.tokenize||Ve)(w,A);return C&&typeof C=="object"&&(he=C[1],C=C[0]),ue=C,he!="comment"&&(A.state=Ne[A.state](he,w,A)),ue},indent:function(w,A){var C=w.context,be=A&&A.charAt(0),R=C.indent;return C.type=="prop"&&(be=="}"||be==")")&&(C=C.prev),C.prev&&(be=="}"&&(C.type=="block"||C.type=="top"||C.type=="interpolation"||C.type=="restricted_atBlock")?(C=C.prev,R=C.indent):(be==")"&&(C.type=="parens"||C.type=="atBlock_parens")||be=="{"&&(C.type=="at"||C.type=="atBlock"))&&(R=Math.max(0,C.indent-T))),R},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:le,fold:"brace"}});function Ee(ee){for(var X={},me=0;me")):null:c.match("--")?b(Te("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),b(Oe(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),x.tokenize=Te("meta","?>"),"meta"):(ie=c.eat("/")?"closeTag":"openTag",x.tokenize=ce,"tag bracket");if(v=="&"){var g;return c.eat("#")?c.eat("x")?g=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):g=c.eatWhile(/[\d]/)&&c.eat(";"):g=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),g?"atom":"error"}else return c.eatWhile(/[^&<]/),null}se.isInText=!0;function ce(c,x){var b=c.next();if(b==">"||b=="/"&&c.eat(">"))return x.tokenize=se,ie=b==">"?"endTag":"selfcloseTag","tag bracket";if(b=="=")return ie="equals",null;if(b=="<"){x.tokenize=se,x.state=_e,x.tagName=x.tagStart=null;var v=x.tokenize(c,x);return v?v+" tag error":"tag error"}else return/[\'\"]/.test(b)?(x.tokenize=Ie(b),x.stringStartCol=c.column(),x.tokenize(c,x)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ie(c){var x=function(b,v){for(;!b.eol();)if(b.next()==c){v.tokenize=ce;break}return"string"};return x.isInAttribute=!0,x}function Te(c,x){return function(b,v){for(;!b.eol();){if(b.match(x)){v.tokenize=se;break}b.next()}return c}}function Oe(c){return function(x,b){for(var v;(v=x.next())!=null;){if(v=="<")return b.tokenize=Oe(c+1),b.tokenize(x,b);if(v==">")if(c==1){b.tokenize=se;break}else return b.tokenize=Oe(c-1),b.tokenize(x,b)}return"meta"}}function ae(c){return c&&c.toLowerCase()}function V(c,x,b){this.prev=c.context,this.tagName=x||"",this.indent=c.indented,this.startOfLine=b,(M.doNotIndent.hasOwnProperty(x)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function oe(c){c.context&&(c.context=c.context.prev)}function xe(c,x){for(var b;;){if(!c.context||(b=c.context.tagName,!M.contextGrabbers.hasOwnProperty(ae(b))||!M.contextGrabbers[ae(b)].hasOwnProperty(ae(x))))return;oe(c)}}function _e(c,x,b){return c=="openTag"?(b.tagStart=x.column(),ye):c=="closeTag"?Me:_e}function ye(c,x,b){return c=="word"?(b.tagName=x.current(),q="tag",X):M.allowMissingTagName&&c=="endTag"?(q="tag bracket",X(c,x,b)):(q="error",ye)}function Me(c,x,b){if(c=="word"){var v=x.current();return b.context&&b.context.tagName!=v&&M.implicitlyClosed.hasOwnProperty(ae(b.context.tagName))&&oe(b),b.context&&b.context.tagName==v||M.matchClosing===!1?(q="tag",He):(q="tag error",ee)}else return M.allowMissingTagName&&c=="endTag"?(q="tag bracket",He(c,x,b)):(q="error",ee)}function He(c,x,b){return c!="endTag"?(q="error",He):(oe(b),_e)}function ee(c,x,b){return q="error",He(c,x,b)}function X(c,x,b){if(c=="word")return q="attribute",me;if(c=="endTag"||c=="selfcloseTag"){var v=b.tagName,g=b.tagStart;return b.tagName=b.tagStart=null,c=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(ae(v))?xe(b,v):(xe(b,v),b.context=new V(b,v,g==b.indented)),_e}return q="error",X}function me(c,x,b){return c=="equals"?T:(M.allowMissing||(q="error"),X(c,x,b))}function T(c,x,b){return c=="string"?H:c=="word"&&M.allowUnquoted?(q="string",X):(q="error",X(c,x,b))}function H(c,x,b){return c=="string"?H:X(c,x,b)}return{startState:function(c){var x={tokenize:se,state:_e,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(x.baseIndent=c),x},token:function(c,x){if(!x.tagName&&c.sol()&&(x.indented=c.indentation()),c.eatSpace())return null;ie=null;var b=x.tokenize(c,x);return(b||ie)&&b!="comment"&&(q=null,x.state=x.state(ie||b,c,x),q&&(b=q=="error"?b+" error":q)),b},indent:function(c,x,b){var v=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+Ce;if(v&&v.noIndent)return F.Pass;if(c.tokenize!=ce&&c.tokenize!=se)return b?b.match(/^(\s*)/)[0].length:0;if(c.tagName)return M.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+Ce*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(c){c.state==T&&(c.state=X)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var x=[],b=c.context;b;b=b.prev)x.push(b.tagName);return x.reverse()}}}),F.defineMIME("text/xml","xml"),F.defineMIME("application/xml","xml"),F.mimeModes.hasOwnProperty("text/html")||F.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),pa.exports}var wu={exports:{}};(function(yr,Or){(function(F){F(Ar())})(function(F){F.defineMode("javascript",function(Ee,Se){var We=Ee.indentUnit,Je=Se.statementIndent,Ce=Se.jsonld,M=Se.json||Ce,j=Se.trackScope!==!1,_=Se.typescript,ie=Se.wordCharacters||/[\w$\xa1-\uffff]/,q=function(){function f(et){return{type:et,style:"keyword"}}var h=f("keyword a"),L=f("keyword b"),O=f("keyword c"),k=f("keyword d"),I=f("operator"),De={type:"atom",style:"atom"};return{if:f("if"),while:h,with:h,else:L,do:L,try:L,finally:L,return:k,break:k,continue:k,new:f("new"),delete:O,void:O,throw:O,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:I,typeof:I,instanceof:I,true:De,false:De,null:De,undefined:De,NaN:De,Infinity:De,this:f("this"),class:f("class"),super:f("atom"),yield:O,export:f("export"),import:f("import"),extends:O,await:O}}(),se=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Ie(f){for(var h=!1,L,O=!1;(L=f.next())!=null;){if(!h){if(L=="/"&&!O)return;L=="["?O=!0:O&&L=="]"&&(O=!1)}h=!h&&L=="\\"}}var Te,Oe;function ae(f,h,L){return Te=f,Oe=L,h}function V(f,h){var L=f.next();if(L=='"'||L=="'")return h.tokenize=oe(L),h.tokenize(f,h);if(L=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return ae("number","number");if(L=="."&&f.match(".."))return ae("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(L))return ae(L);if(L=="="&&f.eat(">"))return ae("=>","operator");if(L=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return ae("number","number");if(/\d/.test(L))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),ae("number","number");if(L=="/")return f.eat("*")?(h.tokenize=xe,xe(f,h)):f.eat("/")?(f.skipToEnd(),ae("comment","comment")):Dt(f,h,1)?(Ie(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ae("regexp","string-2")):(f.eat("="),ae("operator","operator",f.current()));if(L=="`")return h.tokenize=_e,_e(f,h);if(L=="#"&&f.peek()=="!")return f.skipToEnd(),ae("meta","meta");if(L=="#"&&f.eatWhile(ie))return ae("variable","property");if(L=="<"&&f.match("!--")||L=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),ae("comment","comment");if(se.test(L))return(L!=">"||!h.lexical||h.lexical.type!=">")&&(f.eat("=")?(L=="!"||L=="=")&&f.eat("="):/[<>*+\-|&?]/.test(L)&&(f.eat(L),L==">"&&f.eat(L))),L=="?"&&f.eat(".")?ae("."):ae("operator","operator",f.current());if(ie.test(L)){f.eatWhile(ie);var O=f.current();if(h.lastType!="."){if(q.propertyIsEnumerable(O)){var k=q[O];return ae(k.type,k.style,O)}if(O=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return ae("async","keyword",O)}return ae("variable","variable",O)}}function oe(f){return function(h,L){var O=!1,k;if(Ce&&h.peek()=="@"&&h.match(ce))return L.tokenize=V,ae("jsonld-keyword","meta");for(;(k=h.next())!=null&&!(k==f&&!O);)O=!O&&k=="\\";return O||(L.tokenize=V),ae("string","string")}}function xe(f,h){for(var L=!1,O;O=f.next();){if(O=="/"&&L){h.tokenize=V;break}L=O=="*"}return ae("comment","comment")}function _e(f,h){for(var L=!1,O;(O=f.next())!=null;){if(!L&&(O=="`"||O=="$"&&f.eat("{"))){h.tokenize=V;break}L=!L&&O=="\\"}return ae("quasi","string-2",f.current())}var ye="([{}])";function Me(f,h){h.fatArrowAt&&(h.fatArrowAt=null);var L=f.string.indexOf("=>",f.start);if(!(L<0)){if(_){var O=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,L));O&&(L=O.index)}for(var k=0,I=!1,De=L-1;De>=0;--De){var et=f.string.charAt(De),mt=ye.indexOf(et);if(mt>=0&&mt<3){if(!k){++De;break}if(--k==0){et=="("&&(I=!0);break}}else if(mt>=3&&mt<6)++k;else if(ie.test(et))I=!0;else if(/["'\/`]/.test(et))for(;;--De){if(De==0)return;var Hr=f.string.charAt(De-1);if(Hr==et&&f.string.charAt(De-2)!="\\"){De--;break}}else if(I&&!k){++De;break}}I&&!k&&(h.fatArrowAt=De)}}var He={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ee(f,h,L,O,k,I){this.indented=f,this.column=h,this.type=L,this.prev=k,this.info=I,O!=null&&(this.align=O)}function X(f,h){if(!j)return!1;for(var L=f.localVars;L;L=L.next)if(L.name==h)return!0;for(var O=f.context;O;O=O.prev)for(var L=O.vars;L;L=L.next)if(L.name==h)return!0}function me(f,h,L,O,k){var I=f.cc;for(T.state=f,T.stream=k,T.marked=null,T.cc=I,T.style=h,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var De=I.length?I.pop():M?G:he;if(De(L,O)){for(;I.length&&I[I.length-1].lex;)I.pop()();return T.marked?T.marked:L=="variable"&&X(f,O)?"variable-2":h}}}var T={state:null,column:null,marked:null,cc:null};function H(){for(var f=arguments.length-1;f>=0;f--)T.cc.push(arguments[f])}function c(){return H.apply(null,arguments),!0}function x(f,h){for(var L=h;L;L=L.next)if(L.name==f)return!0;return!1}function b(f){var h=T.state;if(T.marked="def",!!j){if(h.context){if(h.lexical.info=="var"&&h.context&&h.context.block){var L=v(f,h.context);if(L!=null){h.context=L;return}}else if(!x(f,h.localVars)){h.localVars=new K(f,h.localVars);return}}Se.globalVars&&!x(f,h.globalVars)&&(h.globalVars=new K(f,h.globalVars))}}function v(f,h){if(h)if(h.block){var L=v(f,h.prev);return L?L==h.prev?h:new D(L,h.vars,!0):null}else return x(f,h.vars)?h:new D(h.prev,new K(f,h.vars),!1);else return null}function g(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function D(f,h,L){this.prev=f,this.vars=h,this.block=L}function K(f,h){this.name=f,this.next=h}var $=new K("this",new K("arguments",null));function pe(){T.state.context=new D(T.state.context,T.state.localVars,!1),T.state.localVars=$}function Re(){T.state.context=new D(T.state.context,T.state.localVars,!0),T.state.localVars=null}pe.lex=Re.lex=!0;function ze(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}ze.lex=!0;function le(f,h){var L=function(){var O=T.state,k=O.indented;if(O.lexical.type=="stat")k=O.lexical.indented;else for(var I=O.lexical;I&&I.type==")"&&I.align;I=I.prev)k=I.indented;O.lexical=new ee(k,T.stream.column(),f,null,O.lexical,h)};return L.lex=!0,L}function te(){var f=T.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}te.lex=!0;function de(f){function h(L){return L==f?c():f==";"||L=="}"||L==")"||L=="]"?H():c(h)}return h}function he(f,h){return f=="var"?c(le("vardef",h),zr,de(";"),te):f=="keyword a"?c(le("form"),Ct,he,te):f=="keyword b"?c(le("form"),he,te):f=="keyword d"?T.stream.match(/^\s*$/,!1)?c():c(le("stat"),gt,de(";"),te):f=="debugger"?c(de(";")):f=="{"?c(le("}"),Re,Ot,te,ze):f==";"?c():f=="if"?(T.state.lexical.info=="else"&&T.state.cc[T.state.cc.length-1]==te&&T.state.cc.pop()(),c(le("form"),Ct,he,te,Pr)):f=="function"?c(Pt):f=="for"?c(le("form"),Re,_n,he,ze,te):f=="class"||_&&h=="interface"?(T.marked="keyword",c(le("form",f=="class"?f:h),Er,te)):f=="variable"?_&&h=="declare"?(T.marked="keyword",c(he)):_&&(h=="module"||h=="enum"||h=="type")&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword",h=="enum"?c(U):h=="type"?c(Hn,de("operator"),ke,de(";")):c(le("form"),yt,de("{"),le("}"),Ot,te,te)):_&&h=="namespace"?(T.marked="keyword",c(le("form"),G,he,te)):_&&h=="abstract"?(T.marked="keyword",c(he)):c(le("stat"),be):f=="switch"?c(le("form"),Ct,de("{"),le("}","switch"),Re,Ot,te,te,ze):f=="case"?c(G,de(":")):f=="default"?c(de(":")):f=="catch"?c(le("form"),pe,ue,he,te,ze):f=="export"?c(le("stat"),Ir,te):f=="import"?c(le("stat"),ar,te):f=="async"?c(he):h=="@"?c(G,he):H(le("stat"),G,de(";"),te)}function ue(f){if(f=="(")return c(Ft,de(")"))}function G(f,h){return st(f,h,!1)}function Ve(f,h){return st(f,h,!0)}function Ct(f){return f!="("?H():c(le(")"),gt,de(")"),te)}function st(f,h,L){if(T.state.fatArrowAt==T.stream.start){var O=L?Ne:re;if(f=="(")return c(pe,le(")"),ve(Ft,")"),te,de("=>"),O,ze);if(f=="variable")return H(pe,yt,de("=>"),O,ze)}var k=L?Ke:Le;return He.hasOwnProperty(f)?c(k):f=="function"?c(Pt,k):f=="class"||_&&h=="interface"?(T.marked="keyword",c(le("form"),mi,te)):f=="keyword c"||f=="async"?c(L?Ve:G):f=="("?c(le(")"),gt,de(")"),te,k):f=="operator"||f=="spread"?c(L?Ve:G):f=="["?c(le("]"),je,te,k):f=="{"?Tt(ne,"}",null,k):f=="quasi"?H(lt,k):f=="new"?c(w(L)):c()}function gt(f){return f.match(/[;\}\)\],]/)?H():H(G)}function Le(f,h){return f==","?c(gt):Ke(f,h,!1)}function Ke(f,h,L){var O=L==!1?Le:Ke,k=L==!1?G:Ve;if(f=="=>")return c(pe,L?Ne:re,ze);if(f=="operator")return/\+\+|--/.test(h)||_&&h=="!"?c(O):_&&h=="<"&&T.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(le(">"),ve(ke,">"),te,O):h=="?"?c(G,de(":"),k):c(k);if(f=="quasi")return H(lt,O);if(f!=";"){if(f=="(")return Tt(Ve,")","call",O);if(f==".")return c(R,O);if(f=="[")return c(le("]"),gt,de("]"),te,O);if(_&&h=="as")return T.marked="keyword",c(ke,O);if(f=="regexp")return T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),c(k)}}function lt(f,h){return f!="quasi"?H():h.slice(h.length-2)!="${"?c(lt):c(gt,ht)}function ht(f){if(f=="}")return T.marked="string-2",T.state.tokenize=_e,c(lt)}function re(f){return Me(T.stream,T.state),H(f=="{"?he:G)}function Ne(f){return Me(T.stream,T.state),H(f=="{"?he:Ve)}function w(f){return function(h){return h=="."?c(f?C:A):h=="variable"&&_?c(Lt,f?Ke:Le):H(f?Ve:G)}}function A(f,h){if(h=="target")return T.marked="keyword",c(Le)}function C(f,h){if(h=="target")return T.marked="keyword",c(Ke)}function be(f){return f==":"?c(te,he):H(Le,de(";"),te)}function R(f){if(f=="variable")return T.marked="property",c()}function ne(f,h){if(f=="async")return T.marked="property",c(ne);if(f=="variable"||T.style=="keyword"){if(T.marked="property",h=="get"||h=="set")return c(Y);var L;return _&&T.state.fatArrowAt==T.stream.start&&(L=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+L[0].length),c(we)}else{if(f=="number"||f=="string")return T.marked=Ce?"property":T.style+" property",c(we);if(f=="jsonld-keyword")return c(we);if(_&&g(h))return T.marked="keyword",c(ne);if(f=="[")return c(G,rr,de("]"),we);if(f=="spread")return c(Ve,we);if(h=="*")return T.marked="keyword",c(ne);if(f==":")return H(we)}}function Y(f){return f!="variable"?H(we):(T.marked="property",c(Pt))}function we(f){if(f==":")return c(Ve);if(f=="(")return H(Pt)}function ve(f,h,L){function O(k,I){if(L?L.indexOf(k)>-1:k==","){var De=T.state.lexical;return De.info=="call"&&(De.pos=(De.pos||0)+1),c(function(et,mt){return et==h||mt==h?H():H(f)},O)}return k==h||I==h?c():L&&L.indexOf(";")>-1?H(f):c(de(h))}return function(k,I){return k==h||I==h?c():H(f,O)}}function Tt(f,h,L){for(var O=3;O"),ke);if(f=="quasi")return H(ut,zt)}function Wn(f){if(f=="=>")return c(ke)}function Q(f){return f.match(/[\}\)\]]/)?c():f==","||f==";"?c(Q):H(Yt,Q)}function Yt(f,h){if(f=="variable"||T.style=="keyword")return T.marked="property",c(Yt);if(h=="?"||f=="number"||f=="string")return c(Yt);if(f==":")return c(ke);if(f=="[")return c(de("variable"),mr,de("]"),Yt);if(f=="(")return H(lr,Yt);if(!f.match(/[;\}\)\],]/))return c()}function ut(f,h){return f!="quasi"?H():h.slice(h.length-2)!="${"?c(ut):c(ke,Ge)}function Ge(f){if(f=="}")return T.marked="string-2",T.state.tokenize=_e,c(ut)}function qe(f,h){return f=="variable"&&T.stream.match(/^\s*[?:]/,!1)||h=="?"?c(qe):f==":"?c(ke):f=="spread"?c(qe):H(ke)}function zt(f,h){if(h=="<")return c(le(">"),ve(ke,">"),te,zt);if(h=="|"||f=="."||h=="&")return c(ke);if(f=="[")return c(ke,de("]"),zt);if(h=="extends"||h=="implements")return T.marked="keyword",c(ke);if(h=="?")return c(ke,de(":"),ke)}function Lt(f,h){if(h=="<")return c(le(">"),ve(ke,">"),te,zt)}function Et(){return H(ke,ft)}function ft(f,h){if(h=="=")return c(ke)}function zr(f,h){return h=="enum"?(T.marked="keyword",c(U)):H(yt,rr,It,yi)}function yt(f,h){if(_&&g(h))return T.marked="keyword",c(yt);if(f=="variable")return b(h),c();if(f=="spread")return c(yt);if(f=="[")return Tt(ln,"]");if(f=="{")return Tt(ir,"}")}function ir(f,h){return f=="variable"&&!T.stream.match(/^\s*:/,!1)?(b(h),c(It)):(f=="variable"&&(T.marked="property"),f=="spread"?c(yt):f=="}"?H():f=="["?c(G,de("]"),de(":"),ir):c(de(":"),yt,It))}function ln(){return H(yt,It)}function It(f,h){if(h=="=")return c(Ve)}function yi(f){if(f==",")return c(zr)}function Pr(f,h){if(f=="keyword b"&&h=="else")return c(le("form","else"),he,te)}function _n(f,h){if(h=="await")return c(_n);if(f=="(")return c(le(")"),an,te)}function an(f){return f=="var"?c(zr,or):f=="variable"?c(or):H(or)}function or(f,h){return f==")"?c():f==";"?c(or):h=="in"||h=="of"?(T.marked="keyword",c(G,or)):H(G,or)}function Pt(f,h){if(h=="*")return T.marked="keyword",c(Pt);if(f=="variable")return b(h),c(Pt);if(f=="(")return c(pe,le(")"),ve(Ft,")"),te,nr,he,ze);if(_&&h=="<")return c(le(">"),ve(Et,">"),te,Pt)}function lr(f,h){if(h=="*")return T.marked="keyword",c(lr);if(f=="variable")return b(h),c(lr);if(f=="(")return c(pe,le(")"),ve(Ft,")"),te,nr,ze);if(_&&h=="<")return c(le(">"),ve(Et,">"),te,lr)}function Hn(f,h){if(f=="keyword"||f=="variable")return T.marked="type",c(Hn);if(h=="<")return c(le(">"),ve(Et,">"),te)}function Ft(f,h){return h=="@"&&c(G,Ft),f=="spread"?c(Ft):_&&g(h)?(T.marked="keyword",c(Ft)):_&&f=="this"?c(rr,It):H(yt,rr,It)}function mi(f,h){return f=="variable"?Er(f,h):Wt(f,h)}function Er(f,h){if(f=="variable")return b(h),c(Wt)}function Wt(f,h){if(h=="<")return c(le(">"),ve(Et,">"),te,Wt);if(h=="extends"||h=="implements"||_&&f==",")return h=="implements"&&(T.marked="keyword"),c(_?ke:G,Wt);if(f=="{")return c(le("}"),_t,te)}function _t(f,h){if(f=="async"||f=="variable"&&(h=="static"||h=="get"||h=="set"||_&&g(h))&&T.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return T.marked="keyword",c(_t);if(f=="variable"||T.style=="keyword")return T.marked="property",c(br,_t);if(f=="number"||f=="string")return c(br,_t);if(f=="[")return c(G,rr,de("]"),br,_t);if(h=="*")return T.marked="keyword",c(_t);if(_&&f=="(")return H(lr,_t);if(f==";"||f==",")return c(_t);if(f=="}")return c();if(h=="@")return c(G,_t)}function br(f,h){if(h=="!"||h=="?")return c(br);if(f==":")return c(ke,It);if(h=="=")return c(Ve);var L=T.state.lexical.prev,O=L&&L.info=="interface";return H(O?lr:Pt)}function Ir(f,h){return h=="*"?(T.marked="keyword",c(_r,de(";"))):h=="default"?(T.marked="keyword",c(G,de(";"))):f=="{"?c(ve(Fr,"}"),_r,de(";")):H(he)}function Fr(f,h){if(h=="as")return T.marked="keyword",c(de("variable"));if(f=="variable")return H(Ve,Fr)}function ar(f){return f=="string"?c():f=="("?H(G):f=="."?H(Le):H(Wr,Ut,_r)}function Wr(f,h){return f=="{"?Tt(Wr,"}"):(f=="variable"&&b(h),h=="*"&&(T.marked="keyword"),c(sn))}function Ut(f){if(f==",")return c(Wr,Ut)}function sn(f,h){if(h=="as")return T.marked="keyword",c(Wr)}function _r(f,h){if(h=="from")return T.marked="keyword",c(G)}function je(f){return f=="]"?c():H(ve(Ve,"]"))}function U(){return H(le("form"),yt,de("{"),le("}"),ve(Zt,"}"),te,te)}function Zt(){return H(yt,It)}function un(f,h){return f.lastType=="operator"||f.lastType==","||se.test(h.charAt(0))||/[,.]/.test(h.charAt(0))}function Dt(f,h,L){return h.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(h.lastType)||h.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(L||0)))}return{startState:function(f){var h={tokenize:V,lastType:"sof",cc:[],lexical:new ee((f||0)-We,0,"block",!1),localVars:Se.localVars,context:Se.localVars&&new D(null,null,!1),indented:f||0};return Se.globalVars&&typeof Se.globalVars=="object"&&(h.globalVars=Se.globalVars),h},token:function(f,h){if(f.sol()&&(h.lexical.hasOwnProperty("align")||(h.lexical.align=!1),h.indented=f.indentation(),Me(f,h)),h.tokenize!=xe&&f.eatSpace())return null;var L=h.tokenize(f,h);return Te=="comment"?L:(h.lastType=Te=="operator"&&(Oe=="++"||Oe=="--")?"incdec":Te,me(h,L,Te,Oe,f))},indent:function(f,h){if(f.tokenize==xe||f.tokenize==_e)return F.Pass;if(f.tokenize!=V)return 0;var L=h&&h.charAt(0),O=f.lexical,k;if(!/^\s*else\b/.test(h))for(var I=f.cc.length-1;I>=0;--I){var De=f.cc[I];if(De==te)O=O.prev;else if(De!=Pr&&De!=ze)break}for(;(O.type=="stat"||O.type=="form")&&(L=="}"||(k=f.cc[f.cc.length-1])&&(k==Le||k==Ke)&&!/^[,\.=+\-*:?[\(]/.test(h));)O=O.prev;Je&&O.type==")"&&O.prev.type=="stat"&&(O=O.prev);var et=O.type,mt=L==et;return et=="vardef"?O.indented+(f.lastType=="operator"||f.lastType==","?O.info.length+1:0):et=="form"&&L=="{"?O.indented:et=="form"?O.indented+We:et=="stat"?O.indented+(un(f,h)?Je||We:0):O.info=="switch"&&!mt&&Se.doubleIndentSwitch!=!1?O.indented+(/^(?:case|default)\b/.test(h)?We:2*We):O.align?O.column+(mt?0:1):O.indented+(mt?0:We)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:M?null:"/*",blockCommentEnd:M?null:"*/",blockCommentContinue:M?null:" * ",lineComment:M?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:M?"json":"javascript",jsonldMode:Ce,jsonMode:M,expressionAllowed:Dt,skipExpression:function(f){me(f,"atom","atom","true",new F.StringStream("",2,null))}}}),F.registerHelper("wordChars","javascript",/[\w$]/),F.defineMIME("text/javascript","javascript"),F.defineMIME("text/ecmascript","javascript"),F.defineMIME("application/javascript","javascript"),F.defineMIME("application/x-javascript","javascript"),F.defineMIME("application/ecmascript","javascript"),F.defineMIME("application/json",{name:"javascript",json:!0}),F.defineMIME("application/x-json",{name:"javascript",json:!0}),F.defineMIME("application/manifest+json",{name:"javascript",json:!0}),F.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),F.defineMIME("text/typescript",{name:"javascript",typescript:!0}),F.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var ku=wu.exports;(function(yr,Or){(function(F){F(Ar(),xu(),ku,bu)})(function(F){var Ee={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function Se(ie,q,se){var ce=ie.current(),Ie=ce.search(q);return Ie>-1?ie.backUp(ce.length-Ie):ce.match(/<\/?$/)&&(ie.backUp(ce.length),ie.match(q,!1)||ie.match(ce)),se}var We={};function Je(ie){var q=We[ie];return q||(We[ie]=new RegExp("\\s+"+ie+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function Ce(ie,q){var se=ie.match(Je(q));return se?/^\s*(.*?)\s*$/.exec(se[2])[1]:""}function M(ie,q){return new RegExp((q?"^":"")+"","i")}function j(ie,q){for(var se in ie)for(var ce=q[se]||(q[se]=[]),Ie=ie[se],Te=Ie.length-1;Te>=0;Te--)ce.unshift(Ie[Te])}function _(ie,q){for(var se=0;se=0;Oe--)ce.script.unshift(["type",Te[Oe].matches,Te[Oe].mode]);function ae(V,oe){var xe=se.token(V,oe.htmlState),_e=/\btag\b/.test(xe),ye;if(_e&&!/[<>\s\/]/.test(V.current())&&(ye=oe.htmlState.tagName&&oe.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(ye))oe.inTag=ye+" ";else if(oe.inTag&&_e&&/>$/.test(V.current())){var Me=/^([\S]+) (.*)/.exec(oe.inTag);oe.inTag=null;var He=V.current()==">"&&_(ce[Me[1]],Me[2]),ee=F.getMode(ie,He),X=M(Me[1],!0),me=M(Me[1],!1);oe.token=function(T,H){return T.match(X,!1)?(H.token=ae,H.localState=H.localMode=null,null):Se(T,me,H.localMode.token(T,H.localState))},oe.localMode=ee,oe.localState=F.startState(ee,se.indent(oe.htmlState,"",""))}else oe.inTag&&(oe.inTag+=V.current(),V.eol()&&(oe.inTag+=" "));return xe}return{startState:function(){var V=F.startState(se);return{token:ae,inTag:null,localMode:null,localState:null,htmlState:V}},copyState:function(V){var oe;return V.localState&&(oe=F.copyState(V.localMode,V.localState)),{token:V.token,inTag:V.inTag,localMode:V.localMode,localState:oe,htmlState:F.copyState(se,V.htmlState)}},token:function(V,oe){return oe.token(V,oe)},indent:function(V,oe,xe){return!V.localMode||/^\s*<\//.test(oe)?se.indent(V.htmlState,oe,xe):V.localMode.indent?V.localMode.indent(V.localState,oe,xe):F.Pass},innerMode:function(V){return{state:V.localState||V.htmlState,mode:V.localMode||se}}}},"xml","javascript","css"),F.defineMIME("text/html","htmlmixed")})})();(function(yr,Or){(function(F){F(Ar())})(function(F){function Ee(j){return new RegExp("^(("+j.join(")|(")+"))\\b")}var Se=Ee(["and","or","not","is"]),We=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],Je=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];F.registerHelper("hintWords","python",We.concat(Je).concat(["exec","print"]));function Ce(j){return j.scopes[j.scopes.length-1]}F.defineMode("python",function(j,_){for(var ie="error",q=_.delimiters||_.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,se=[_.singleOperators,_.doubleOperators,_.doubleDelimiters,_.tripleDelimiters,_.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],ce=0;ceg?X(b):D0&&T(x,b)&&(K+=" "+ie),K}}return Me(x,b)}function Me(x,b,v){if(x.eatSpace())return null;if(!v&&x.match(/^#.*/))return"comment";if(x.match(/^[0-9\.]/,!1)){var g=!1;if(x.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(g=!0),x.match(/^[\d_]+\.\d*/)&&(g=!0),x.match(/^\.\d+/)&&(g=!0),g)return x.eat(/J/i),"number";var D=!1;if(x.match(/^0x[0-9a-f_]+/i)&&(D=!0),x.match(/^0b[01_]+/i)&&(D=!0),x.match(/^0o[0-7_]+/i)&&(D=!0),x.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(x.eat(/J/i),D=!0),x.match(/^0(?![\dx])/i)&&(D=!0),D)return x.eat(/L/i),"number"}if(x.match(oe)){var K=x.current().toLowerCase().indexOf("f")!==-1;return K?(b.tokenize=He(x.current(),b.tokenize),b.tokenize(x,b)):(b.tokenize=ee(x.current(),b.tokenize),b.tokenize(x,b))}for(var $=0;$=0;)x=x.substr(1);var v=x.length==1,g="string";function D($){return function(pe,Re){var ze=Me(pe,Re,!0);return ze=="punctuation"&&(pe.current()=="{"?Re.tokenize=D($+1):pe.current()=="}"&&($>1?Re.tokenize=D($-1):Re.tokenize=K)),ze}}function K($,pe){for(;!$.eol();)if($.eatWhile(/[^'"\{\}\\]/),$.eat("\\")){if($.next(),v&&$.eol())return g}else{if($.match(x))return pe.tokenize=b,g;if($.match("{{"))return g;if($.match("{",!1))return pe.tokenize=D(0),$.current()?g:pe.tokenize($,pe);if($.match("}}"))return g;if($.match("}"))return ie;$.eat(/['"]/)}if(v){if(_.singleLineStringErrors)return ie;pe.tokenize=b}return g}return K.isString=!0,K}function ee(x,b){for(;"rubf".indexOf(x.charAt(0).toLowerCase())>=0;)x=x.substr(1);var v=x.length==1,g="string";function D(K,$){for(;!K.eol();)if(K.eatWhile(/[^'"\\]/),K.eat("\\")){if(K.next(),v&&K.eol())return g}else{if(K.match(x))return $.tokenize=b,g;K.eat(/['"]/)}if(v){if(_.singleLineStringErrors)return ie;$.tokenize=b}return g}return D.isString=!0,D}function X(x){for(;Ce(x).type!="py";)x.scopes.pop();x.scopes.push({offset:Ce(x).offset+j.indentUnit,type:"py",align:null})}function me(x,b,v){var g=x.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:x.column()+1;b.scopes.push({offset:b.indent+Ie,type:v,align:g})}function T(x,b){for(var v=x.indentation();b.scopes.length>1&&Ce(b).offset>v;){if(Ce(b).type!="py")return!0;b.scopes.pop()}return Ce(b).offset!=v}function H(x,b){x.sol()&&(b.beginningOfLine=!0,b.dedent=!1);var v=b.tokenize(x,b),g=x.current();if(b.beginningOfLine&&g=="@")return x.match(V,!1)?"meta":ae?"operator":ie;if(/\S/.test(g)&&(b.beginningOfLine=!1),(v=="variable"||v=="builtin")&&b.lastToken=="meta"&&(v="meta"),(g=="pass"||g=="return")&&(b.dedent=!0),g=="lambda"&&(b.lambda=!0),g==":"&&!b.lambda&&Ce(b).type=="py"&&x.match(/^\s*(?:#|$)/,!1)&&X(b),g.length==1&&!/string|comment/.test(v)){var D="[({".indexOf(g);if(D!=-1&&me(x,b,"])}".slice(D,D+1)),D="])}".indexOf(g),D!=-1)if(Ce(b).type==g)b.indent=b.scopes.pop().offset-Ie;else return ie}return b.dedent&&x.eol()&&Ce(b).type=="py"&&b.scopes.length>1&&b.scopes.pop(),v}var c={startState:function(x){return{tokenize:ye,scopes:[{offset:x||0,type:"py",align:null}],indent:x||0,lastToken:null,lambda:!1,dedent:0}},token:function(x,b){var v=b.errorToken;v&&(b.errorToken=!1);var g=H(x,b);return g&&g!="comment"&&(b.lastToken=g=="keyword"||g=="punctuation"?x.current():g),g=="punctuation"&&(g=null),x.eol()&&b.lambda&&(b.lambda=!1),v?g+" "+ie:g},indent:function(x,b){if(x.tokenize!=ye)return x.tokenize.isString?F.Pass:0;var v=Ce(x),g=v.type==b.charAt(0)||v.type=="py"&&!x.dedent&&/^(else:|elif |except |finally:)/.test(b);return v.align!=null?v.align-(g?1:0):v.offset-(g?Ie:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),F.defineMIME("text/x-python","python");var M=function(j){return j.split(" ")};F.defineMIME("text/x-cython",{name:"python",extra_keywords:M("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();(function(yr,Or){(function(F){F(Ar())})(function(F){function Ee(v,g,D,K,$,pe){this.indented=v,this.column=g,this.type=D,this.info=K,this.align=$,this.prev=pe}function Se(v,g,D,K){var $=v.indented;return v.context&&v.context.type=="statement"&&D!="statement"&&($=v.context.indented),v.context=new Ee($,g,D,K,null,v.context)}function We(v){var g=v.context.type;return(g==")"||g=="]"||g=="}")&&(v.indented=v.context.indented),v.context=v.context.prev}function Je(v,g,D){if(g.prevToken=="variable"||g.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(v.string.slice(0,D))||g.typeAtEndOfLine&&v.column()==v.indentation())return!0}function Ce(v){for(;;){if(!v||v.type=="top")return!0;if(v.type=="}"&&v.prev.info!="namespace")return!1;v=v.prev}}F.defineMode("clike",function(v,g){var D=v.indentUnit,K=g.statementIndentUnit||D,$=g.dontAlignCalls,pe=g.keywords||{},Re=g.types||{},ze=g.builtin||{},le=g.blockKeywords||{},te=g.defKeywords||{},de=g.atoms||{},he=g.hooks||{},ue=g.multiLineStrings,G=g.indentStatements!==!1,Ve=g.indentSwitch!==!1,Ct=g.namespaceSeparator,st=g.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,gt=g.numberStart||/[\d\.]/,Le=g.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Ke=g.isOperatorChar||/[+\-*&%=<>!?|\/]/,lt=g.isIdentifierChar||/[\w\$_\xa1-\uffff]/,ht=g.isReservedIdentifier||!1,re,Ne;function w(R,ne){var Y=R.next();if(he[Y]){var we=he[Y](R,ne);if(we!==!1)return we}if(Y=='"'||Y=="'")return ne.tokenize=A(Y),ne.tokenize(R,ne);if(gt.test(Y)){if(R.backUp(1),R.match(Le))return"number";R.next()}if(st.test(Y))return re=Y,null;if(Y=="/"){if(R.eat("*"))return ne.tokenize=C,C(R,ne);if(R.eat("/"))return R.skipToEnd(),"comment"}if(Ke.test(Y)){for(;!R.match(/^\/[\/*]/,!1)&&R.eat(Ke););return"operator"}if(R.eatWhile(lt),Ct)for(;R.match(Ct);)R.eatWhile(lt);var ve=R.current();return j(pe,ve)?(j(le,ve)&&(re="newstatement"),j(te,ve)&&(Ne=!0),"keyword"):j(Re,ve)?"type":j(ze,ve)||ht&&ht(ve)?(j(le,ve)&&(re="newstatement"),"builtin"):j(de,ve)?"atom":"variable"}function A(R){return function(ne,Y){for(var we=!1,ve,Tt=!1;(ve=ne.next())!=null;){if(ve==R&&!we){Tt=!0;break}we=!we&&ve=="\\"}return(Tt||!(we||ue))&&(Y.tokenize=null),"string"}}function C(R,ne){for(var Y=!1,we;we=R.next();){if(we=="/"&&Y){ne.tokenize=null;break}Y=we=="*"}return"comment"}function be(R,ne){g.typeFirstDefinitions&&R.eol()&&Ce(ne.context)&&(ne.typeAtEndOfLine=Je(R,ne,R.pos))}return{startState:function(R){return{tokenize:null,context:new Ee((R||0)-D,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(R,ne){var Y=ne.context;if(R.sol()&&(Y.align==null&&(Y.align=!1),ne.indented=R.indentation(),ne.startOfLine=!0),R.eatSpace())return be(R,ne),null;re=Ne=null;var we=(ne.tokenize||w)(R,ne);if(we=="comment"||we=="meta")return we;if(Y.align==null&&(Y.align=!0),re==";"||re==":"||re==","&&R.match(/^\s*(?:\/\/.*)?$/,!1))for(;ne.context.type=="statement";)We(ne);else if(re=="{")Se(ne,R.column(),"}");else if(re=="[")Se(ne,R.column(),"]");else if(re=="(")Se(ne,R.column(),")");else if(re=="}"){for(;Y.type=="statement";)Y=We(ne);for(Y.type=="}"&&(Y=We(ne));Y.type=="statement";)Y=We(ne)}else re==Y.type?We(ne):G&&((Y.type=="}"||Y.type=="top")&&re!=";"||Y.type=="statement"&&re=="newstatement")&&Se(ne,R.column(),"statement",R.current());if(we=="variable"&&(ne.prevToken=="def"||g.typeFirstDefinitions&&Je(R,ne,R.start)&&Ce(ne.context)&&R.match(/^\s*\(/,!1))&&(we="def"),he.token){var ve=he.token(R,ne,we);ve!==void 0&&(we=ve)}return we=="def"&&g.styleDefs===!1&&(we="variable"),ne.startOfLine=!1,ne.prevToken=Ne?"def":we||re,be(R,ne),we},indent:function(R,ne){if(R.tokenize!=w&&R.tokenize!=null||R.typeAtEndOfLine&&Ce(R.context))return F.Pass;var Y=R.context,we=ne&&ne.charAt(0),ve=we==Y.type;if(Y.type=="statement"&&we=="}"&&(Y=Y.prev),g.dontIndentStatements)for(;Y.type=="statement"&&g.dontIndentStatements.test(Y.info);)Y=Y.prev;if(he.indent){var Tt=he.indent(R,Y,ne,D);if(typeof Tt=="number")return Tt}var Ot=Y.prev&&Y.prev.info=="switch";if(g.allmanIndentation&&/[{(]/.test(we)){for(;Y.type!="top"&&Y.type!="}";)Y=Y.prev;return Y.indented}return Y.type=="statement"?Y.indented+(we=="{"?0:K):Y.align&&(!$||Y.type!=")")?Y.column+(ve?0:1):Y.type==")"&&!ve?Y.indented+K:Y.indented+(ve?0:D)+(!ve&&Ot&&!/^(?:case|default)\b/.test(ne)?D:0)},electricInput:Ve?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function M(v){for(var g={},D=v.split(" "),K=0;K!?|\/#:@]/,hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},'"':function(v,g){return v.match('""')?(g.tokenize=T,g.tokenize(v,g)):!1},"'":function(v){return v.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(v.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(v,g){var D=g.context;return D.type=="}"&&D.align&&v.eat(">")?(g.context=new Ee(D.indented,D.column,D.type,D.info,null,D.prev),"operator"):!1},"/":function(v,g){return v.eat("*")?(g.tokenize=H(1),g.tokenize(v,g)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(v){return function(g,D){for(var K=!1,$,pe=!1;!g.eol();){if(!v&&!K&&g.match('"')){pe=!0;break}if(v&&g.match('"""')){pe=!0;break}$=g.next(),!K&&$=="$"&&g.match("{")&&g.skipTo("}"),K=!K&&$=="\\"&&!v}return(pe||!v)&&(D.tokenize=null),"string"}}me("text/x-kotlin",{name:"clike",keywords:M("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:M("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:M("catch class do else finally for if where try while enum"),defKeywords:M("class val var object interface fun"),atoms:M("true false null this"),hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},"*":function(v,g){return g.prevToken=="."?"variable":"operator"},'"':function(v,g){return g.tokenize=c(v.match('""')),g.tokenize(v,g)},"/":function(v,g){return v.eat("*")?(g.tokenize=H(1),g.tokenize(v,g)):!1},indent:function(v,g,D,K){var $=D&&D.charAt(0);if((v.prevToken=="}"||v.prevToken==")")&&D=="")return v.indented;if(v.prevToken=="operator"&&D!="}"&&v.context.type!="}"||v.prevToken=="variable"&&$=="."||(v.prevToken=="}"||v.prevToken==")")&&$==".")return K*2+g.indented;if(g.align&&g.type=="}")return g.indented+(v.context.type==(D||"").charAt(0)?0:K)}},modeProps:{closeBrackets:{triples:'"'}}}),me(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:M("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:M("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:M("for while do if else struct"),builtin:M("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:M("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":oe},modeProps:{fold:["brace","include"]}}),me("text/x-nesc",{name:"clike",keywords:M(_+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:Te,blockKeywords:M(ae),atoms:M("null true false"),hooks:{"#":oe},modeProps:{fold:["brace","include"]}}),me("text/x-objectivec",{name:"clike",keywords:M(_+" "+q),types:Oe,builtin:M(se),blockKeywords:M(ae+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:M(V+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:M("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:_e,hooks:{"#":oe,"*":xe},modeProps:{fold:["brace","include"]}}),me("text/x-objectivec++",{name:"clike",keywords:M(_+" "+q+" "+ie),types:Oe,builtin:M(se),blockKeywords:M(ae+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:M(V+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:M("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:_e,hooks:{"#":oe,"*":xe,u:Me,U:Me,L:Me,R:Me,0:ye,1:ye,2:ye,3:ye,4:ye,5:ye,6:ye,7:ye,8:ye,9:ye,token:function(v,g,D){if(D=="variable"&&v.peek()=="("&&(g.prevToken==";"||g.prevToken==null||g.prevToken=="}")&&He(v.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),me("text/x-squirrel",{name:"clike",keywords:M("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:Te,blockKeywords:M("case catch class else for foreach if switch try while"),defKeywords:M("function local class"),typeFirstDefinitions:!0,atoms:M("true false null"),hooks:{"#":oe},modeProps:{fold:["brace","include"]}});var x=null;function b(v){return function(g,D){for(var K=!1,$,pe=!1;!g.eol();){if(!K&&g.match('"')&&(v=="single"||g.match('""'))){pe=!0;break}if(!K&&g.match("``")){x=b(v),pe=!0;break}$=g.next(),K=v=="single"&&!K&&$=="\\"}return pe&&(D.tokenize=null),"string"}}me("text/x-ceylon",{name:"clike",keywords:M("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(v){var g=v.charAt(0);return g===g.toUpperCase()&&g!==g.toLowerCase()},blockKeywords:M("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:M("class dynamic function interface module object package value"),builtin:M("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:M("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},'"':function(v,g){return g.tokenize=b(v.match('""')?"triple":"single"),g.tokenize(v,g)},"`":function(v,g){return!x||!v.match("`")?!1:(g.tokenize=x,x=null,g.tokenize(v,g))},"'":function(v){return v.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(v,g,D){if((D=="variable"||D=="type")&&g.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();export{Cu as default}; diff --git a/1704/trace/assets/wsPort-964mA9MZ.js b/1704/trace/assets/wsPort-964mA9MZ.js new file mode 100644 index 000000000..e74b418b4 --- /dev/null +++ b/1704/trace/assets/wsPort-964mA9MZ.js @@ -0,0 +1,69 @@ +var Mp=Object.defineProperty;var jp=(e,t,n)=>t in e?Mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Z=(e,t,n)=>(jp(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Py=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ip(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pc={exports:{}},bs={},Rc={exports:{}},O={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ni=Symbol.for("react.element"),Pp=Symbol.for("react.portal"),Rp=Symbol.for("react.fragment"),$p=Symbol.for("react.strict_mode"),Op=Symbol.for("react.profiler"),zp=Symbol.for("react.provider"),Dp=Symbol.for("react.context"),Hp=Symbol.for("react.forward_ref"),Fp=Symbol.for("react.suspense"),Up=Symbol.for("react.memo"),Vp=Symbol.for("react.lazy"),qa=Symbol.iterator;function Bp(e){return e===null||typeof e!="object"?null:(e=qa&&e[qa]||e["@@iterator"],typeof e=="function"?e:null)}var $c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oc=Object.assign,zc={};function Jn(e,t,n){this.props=e,this.context=t,this.refs=zc,this.updater=n||$c}Jn.prototype.isReactComponent={};Jn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dc(){}Dc.prototype=Jn.prototype;function Hl(e,t,n){this.props=e,this.context=t,this.refs=zc,this.updater=n||$c}var Fl=Hl.prototype=new Dc;Fl.constructor=Hl;Oc(Fl,Jn.prototype);Fl.isPureReactComponent=!0;var Xa=Array.isArray,Hc=Object.prototype.hasOwnProperty,Ul={current:null},Fc={key:!0,ref:!0,__self:!0,__source:!0};function Uc(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Hc.call(t,r)&&!Fc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{let o=!1;return r!==void 0&&s(r),e().then(l=>{o||s(l)}),()=>{o=!0}},t),i}function pn(){const e=zt.useRef(null),[t,n]=zt.useState(new DOMRect(0,0,10,10));return zt.useLayoutEffect(()=>{const r=e.current;if(!r)return;const i=new ResizeObserver(s=>{const o=s[s.length-1];o&&o.contentRect&&n(o.contentRect)});return i.observe(r),()=>i.disconnect()},[e]),[t,e]}function Qe(e){if(!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0)+"ms";const t=e/1e3;if(t<60)return t.toFixed(1)+"s";const n=t/60;if(n<60)return n.toFixed(1)+"m";const r=n/60;return r<24?r.toFixed(1)+"h":(r/24).toFixed(1)+"d"}function nm(e){if(e<0||!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0);const t=e/1024;if(t<1e3)return t.toFixed(1)+"K";const n=t/1024;return n<1e3?n.toFixed(1)+"M":(n/1024).toFixed(1)+"G"}function Bc(e,t,n,r,i){let s=r||0,o=i!==void 0?i:e.length;for(;s>1;n(t,e[l])>=0?s=l+1:o=l}return o}function rm(e){const t=document.createElement("textarea");t.style.position="absolute",t.style.zIndex="-1000",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}function Ji(e,t){const n=e?Or.getObject(e,t):t,[r,i]=zt.useState(n);return[r,o=>{e&&Or.setObject(e,o),i(o)}]}class im{getString(t,n){return localStorage[t]||n}setString(t,n){localStorage[t]=n,window.saveSettings&&window.saveSettings()}getObject(t,n){if(!localStorage[t])return n;try{return JSON.parse(localStorage[t])}catch{return n}}setObject(t,n){localStorage[t]=JSON.stringify(n),window.saveSettings&&window.saveSettings()}}const Or=new im;function Ry(){if(document.playwrightThemeInitialized)return;document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",n=>{n.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",n=>{document.body.classList.add("inactive")},!1);const e=Or.getString("theme","light-mode"),t=window.matchMedia("(prefers-color-scheme: dark)");(e==="dark-mode"||t.matches)&&document.body.classList.add("dark-mode")}const Bl=new Set;function $y(){const e=Or.getString("theme","light-mode");let t;e==="dark-mode"?t="light-mode":t="dark-mode",e&&document.body.classList.remove(e),document.body.classList.add(t),Or.setString("theme",t);for(const n of Bl)n(t)}function Oy(e){Bl.add(e)}function zy(e){Bl.delete(e)}function Dy(){return document.body.classList.contains("dark-mode")?"dark-mode":"light-mode"}var Wc={exports:{}},Ue={},qc={exports:{}},Xc={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function t(M,R){var $=M.length;M.push(R);e:for(;0<$;){var W=$-1>>>1,ne=M[W];if(0>>1;Wi(or,$))mti(vn,or)?(M[W]=vn,M[mt]=$,W=mt):(M[W]=or,M[pt]=$,W=pt);else if(mti(vn,$))M[W]=vn,M[mt]=$,W=mt;else break e}}return R}function i(M,R){var $=M.sortIndex-R.sortIndex;return $!==0?$:M.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,p=3,v=!1,y=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(M){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=M)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function _(M){if(w=!1,g(M),!y)if(n(a)!==null)y=!0,Ne(N);else{var R=n(u);R!==null&&ue(_,R.startTime-M)}}function N(M,R){y=!1,w&&(w=!1,h(E),E=-1),v=!0;var $=p;try{for(g(R),f=n(a);f!==null&&(!(f.expirationTime>R)||M&&!P());){var W=f.callback;if(typeof W=="function"){f.callback=null,p=f.priorityLevel;var ne=W(f.expirationTime<=R);R=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(a)&&r(a),g(R)}else r(a);f=n(a)}if(f!==null)var Je=!0;else{var pt=n(u);pt!==null&&ue(_,pt.startTime-R),Je=!1}return Je}finally{f=null,p=$,v=!1}}var k=!1,C=null,E=-1,S=5,A=-1;function P(){return!(e.unstable_now()-AM||125W?(M.sortIndex=$,t(u,M),n(a)===null&&M===n(u)&&(w?(h(E),E=-1):w=!0,ue(_,$-W))):(M.sortIndex=ne,t(a,M),y||v||(y=!0,Ne(N))),M},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(M){var R=p;return function(){var $=p;p=R;try{return M.apply(this,arguments)}finally{p=$}}}})(Xc);qc.exports=Xc;var sm=qc.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qc=L,He=sm;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ro=Object.prototype.hasOwnProperty,om=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ka={},Ga={};function lm(e){return Ro.call(Ga,e)?!0:Ro.call(Ka,e)?!1:om.test(e)?Ga[e]=!0:(Ka[e]=!0,!1)}function am(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function um(e,t,n,r){if(t===null||typeof t>"u"||am(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wl=/[\-:]([a-z])/g;function ql(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wl,ql);me[t]=new Ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wl,ql);me[t]=new Ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wl,ql);me[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xl(e,t,n,r){var i=me.hasOwnProperty(t)?me[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` +`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{to=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_r(e):""}function cm(e){switch(e.tag){case 5:return _r(e.type);case 16:return _r("Lazy");case 13:return _r("Suspense");case 19:return _r("SuspenseList");case 0:case 2:case 15:return e=no(e.type,!1),e;case 11:return e=no(e.type.render,!1),e;case 1:return e=no(e.type,!0),e;default:return""}}function Do(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tn:return"Fragment";case kn:return"Portal";case $o:return"Profiler";case Ql:return"StrictMode";case Oo:return"Suspense";case zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yc:return(e.displayName||"Context")+".Consumer";case Gc:return(e._context.displayName||"Context")+".Provider";case Kl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gl:return t=e.displayName||null,t!==null?t:Do(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return Do(e(t))}catch{}}return null}function dm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Do(t);case 8:return t===Ql?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fm(e){var t=Zc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hi(e){e._valueTracker||(e._valueTracker=fm(e))}function ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ho(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ja(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function td(e,t){t=t.checked,t!=null&&Xl(e,"checked",t,!1)}function Fo(e,t){td(e,t);var n=Qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Uo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Uo(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Za(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Uo(e,t,n){(t!=="number"||Zi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Er=Array.isArray;function zn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var br={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hm=["Webkit","ms","Moz","O"];Object.keys(br).forEach(function(e){hm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),br[t]=br[e]})});function sd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||br.hasOwnProperty(e)&&br[e]?(""+t).trim():t+"px"}function od(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var pm=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wo(e,t){if(t){if(pm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function qo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xo=null;function Yl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qo=null,Dn=null,Hn=null;function nu(e){if(e=si(e)){if(typeof Qo!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Is(t),Qo(e.stateNode,e.type,t))}}function ld(e){Dn?Hn?Hn.push(e):Hn=[e]:Dn=e}function ad(){if(Dn){var e=Dn,t=Hn;if(Hn=Dn=null,nu(e),t)for(e=0;e>>=0,e===0?32:31-(Tm(e)/Cm|0)|0}var mi=64,gi=4194304;function kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=kr(l):(s&=o,s!==0&&(r=kr(s)))}else o=n&~i,o!==0?r=kr(o):s!==0&&(r=kr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ri(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Am(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ar),du=" ",fu=!1;function bd(e,t){switch(e){case"keyup":return ig.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ld(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function og(e,t){switch(e){case"compositionend":return Ld(t);case"keypress":return t.which!==32?null:(fu=!0,du);case"textInput":return e=t.data,e===du&&fu?null:e;default:return null}}function lg(e,t){if(Cn)return e==="compositionend"||!sa&&bd(e,t)?(e=Cd(),$i=na=$t=null,Cn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gu(n)}}function Id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pd(){for(var e=window,t=Zi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zi(e.document)}return t}function oa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function gg(e){var t=Pd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Id(n.ownerDocument.documentElement,n)){if(r!==null&&oa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=vu(n,s);var o=vu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nn=null,el=null,jr=null,tl=!1;function yu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tl||Nn==null||Nn!==Zi(r)||(r=Nn,"selectionStart"in r&&oa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Wr(jr,r)||(jr=r,r=os(el,"onSelect"),0An||(e.current=ll[An],ll[An]=null,An--)}function U(e,t){An++,ll[An]=e.current,e.current=t}var Kt={},xe=Yt(Kt),Ie=Yt(!1),an=Kt;function qn(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pe(e){return e=e.childContextTypes,e!=null}function as(){B(Ie),B(xe)}function Tu(e,t,n){if(xe.current!==Kt)throw Error(b(168));U(xe,t),U(Ie,n)}function Vd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(b(108,dm(e)||"Unknown",i));return G({},n,r)}function us(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,an=xe.current,U(xe,e),U(Ie,Ie.current),!0}function Cu(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Vd(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,B(Ie),B(xe),U(xe,e)):B(Ie),U(Ie,n)}var xt=null,Ps=!1,vo=!1;function Bd(e){xt===null?xt=[e]:xt.push(e)}function bg(e){Ps=!0,Bd(e)}function Jt(){if(!vo&&xt!==null){vo=!0;var e=0,t=F;try{var n=xt;for(F=1;e>=o,i-=o,St=1<<32-rt(t)+i|n<E?(S=C,C=null):S=C.sibling;var A=p(h,C,g[E],_);if(A===null){C===null&&(C=S);break}e&&C&&A.alternate===null&&t(h,C),m=s(A,m,E),k===null?N=A:k.sibling=A,k=A,C=S}if(E===g.length)return n(h,C),X&&Zt(h,E),N;if(C===null){for(;EE?(S=C,C=null):S=C.sibling;var P=p(h,C,A.value,_);if(P===null){C===null&&(C=S);break}e&&C&&P.alternate===null&&t(h,C),m=s(P,m,E),k===null?N=P:k.sibling=P,k=P,C=S}if(A.done)return n(h,C),X&&Zt(h,E),N;if(C===null){for(;!A.done;E++,A=g.next())A=f(h,A.value,_),A!==null&&(m=s(A,m,E),k===null?N=A:k.sibling=A,k=A);return X&&Zt(h,E),N}for(C=r(h,C);!A.done;E++,A=g.next())A=v(C,h,E,A.value,_),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?E:A.key),m=s(A,m,E),k===null?N=A:k.sibling=A,k=A);return e&&C.forEach(function(T){return t(h,T)}),X&&Zt(h,E),N}function x(h,m,g,_){if(typeof g=="object"&&g!==null&&g.type===Tn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case fi:e:{for(var N=g.key,k=m;k!==null;){if(k.key===N){if(N=g.type,N===Tn){if(k.tag===7){n(h,k.sibling),m=i(k,g.props.children),m.return=h,h=m;break e}}else if(k.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===At&&Iu(N)===k.type){n(h,k.sibling),m=i(k,g.props),m.ref=hr(h,k,g),m.return=h,h=m;break e}n(h,k);break}else t(h,k);k=k.sibling}g.type===Tn?(m=on(g.props.children,h.mode,_,g.key),m.return=h,h=m):(_=Bi(g.type,g.key,g.props,null,h.mode,_),_.ref=hr(h,m,g),_.return=h,h=_)}return o(h);case kn:e:{for(k=g.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(h,m.sibling),m=i(m,g.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=To(g,h.mode,_),m.return=h,h=m}return o(h);case At:return k=g._init,x(h,m,k(g._payload),_)}if(Er(g))return y(h,m,g,_);if(ar(g))return w(h,m,g,_);Ei(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(h,m.sibling),m=i(m,g),m.return=h,h=m):(n(h,m),m=ko(g,h.mode,_),m.return=h,h=m),o(h)):n(h,m)}return x}var Qn=Jd(!0),Zd=Jd(!1),oi={},ht=Yt(oi),Kr=Yt(oi),Gr=Yt(oi);function rn(e){if(e===oi)throw Error(b(174));return e}function ma(e,t){switch(U(Gr,t),U(Kr,e),U(ht,oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bo(t,e)}B(ht),U(ht,t)}function Kn(){B(ht),B(Kr),B(Gr)}function ef(e){rn(Gr.current);var t=rn(ht.current),n=Bo(t,e.type);t!==n&&(U(Kr,e),U(ht,n))}function ga(e){Kr.current===e&&(B(ht),B(Kr))}var Q=Yt(0);function ms(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yo=[];function va(){for(var e=0;en?n:4,e(!0);var r=wo.transition;wo.transition={};try{e(!1),t()}finally{F=n,wo.transition=r}}function vf(){return Ye().memoizedState}function jg(e,t,n){var r=Wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yf(e))wf(t,n);else if(n=Qd(e,t,n,r),n!==null){var i=ke();it(n,e,r,i),xf(n,t,r)}}function Ig(e,t,n){var r=Wt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yf(e))wf(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,ot(l,o)){var a=t.interleaved;a===null?(i.next=i,ha(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Qd(e,t,i,r),n!==null&&(i=ke(),it(n,e,r,i),xf(n,t,r))}}function yf(e){var t=e.alternate;return e===K||t!==null&&t===K}function wf(e,t){Ir=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zl(e,n)}}var vs={readContext:Ge,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},Pg={readContext:Ge,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:Ru,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,ff.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jg.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:Pu,useDebugValue:_a,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=Pu(!1),t=e[0];return e=Mg.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,i=ct();if(X){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),de===null)throw Error(b(349));cn&30||rf(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Ru(of.bind(null,r,s,e),[e]),r.flags|=2048,Zr(9,sf.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ct(),t=de.identifierPrefix;if(X){var n=_t,r=St;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[dt]=t,e[Qr]=r,Lf(e,t,!1,!1),t.stateNode=e;e:{switch(o=qo(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;iYn&&(t.flags|=128,r=!0,pr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ms(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!X)return ve(t),null}else 2*ee()-s.renderingStartTime>Yn&&n!==1073741824&&(t.flags|=128,r=!0,pr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ee(),t.sibling=null,n=Q.current,U(Q,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return ba(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function Ug(e,t){switch(aa(t),t.tag){case 1:return Pe(t.type)&&as(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kn(),B(Ie),B(xe),va(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ga(t),null;case 13:if(B(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Xn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Q),null;case 4:return Kn(),null;case 10:return fa(t.type._context),null;case 22:case 23:return ba(),null;case 24:return null;default:return null}}var Ti=!1,we=!1,Vg=typeof WeakSet=="function"?WeakSet:Set,j=null;function Pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function wl(e,t,n){try{n()}catch(r){J(e,t,r)}}var Bu=!1;function Bg(e,t){if(nl=is,e=Pd(),oa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=o),p===s&&++c===r&&(a=o),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(rl={focusedElem:e,selectionRange:n},is=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,x=y.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:et(t.type,w),x);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(_){J(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return y=Bu,Bu=!1,y}function Pr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&wl(t,n,s)}i=i.next}while(i!==r)}}function Os(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jf(e){var t=e.alternate;t!==null&&(e.alternate=null,jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[Qr],delete t[ol],delete t[Cg],delete t[Ng])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function If(e){return e.tag===5||e.tag===3||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||If(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ls));else if(r!==4&&(e=e.child,e!==null))for(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_l(e,t,n),e=e.sibling;e!==null;)_l(e,t,n),e=e.sibling}var fe=null,tt=!1;function Lt(e,t,n){for(n=n.child;n!==null;)Pf(e,t,n),n=n.sibling}function Pf(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ls,n)}catch{}switch(n.tag){case 5:we||Pn(n,t);case 6:var r=fe,i=tt;fe=null,Lt(e,t,n),fe=r,tt=i,fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?go(e.parentNode,n):e.nodeType===1&&go(e,n),Vr(e)):go(fe,n.stateNode));break;case 4:r=fe,i=tt,fe=n.stateNode.containerInfo,tt=!0,Lt(e,t,n),fe=r,tt=i;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&wl(n,t,o),i=i.next}while(i!==r)}Lt(e,t,n);break;case 1:if(!we&&(Pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){J(n,t,l)}Lt(e,t,n);break;case 21:Lt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Lt(e,t,n),we=r):Lt(e,t,n);break;default:Lt(e,t,n)}}function qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vg),t.forEach(function(r){var i=Zg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qg(r/1960))-r,10e?16:e,Ot===null)var r=!1;else{if(e=Ot,Ot=null,xs=0,D&6)throw Error(b(331));var i=D;for(D|=4,j=e.current;j!==null;){var s=j,o=s.child;if(j.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aee()-Ca?sn(e,0):Ta|=n),Re(e,t)}function Uf(e,t){t===0&&(e.mode&1?(t=gi,gi<<=1,!(gi&130023424)&&(gi=4194304)):t=1);var n=ke();e=Ct(e,t),e!==null&&(ri(e,t,n),Re(e,n))}function Jg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uf(e,n)}function Zg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Uf(e,n)}var Vf;Vf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,Hg(e,t,n);je=!!(e.flags&131072)}else je=!1,X&&t.flags&1048576&&Wd(t,ds,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fi(e,t),e=t.pendingProps;var i=qn(t,xe.current);Un(t,n),i=wa(null,t,r,e,i,n);var s=xa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)?(s=!0,us(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,pa(t),i.updater=Rs,t.stateNode=i,i._reactInternals=t,fl(t,r,e,n),t=ml(null,t,r,!0,s,n)):(t.tag=0,X&&s&&la(t),Se(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=t0(r),e=et(r,e),i){case 0:t=pl(null,t,r,e,n);break e;case 1:t=Fu(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Hu(null,t,r,et(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),pl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Fu(e,t,r,i,n);case 3:e:{if(Cf(t),e===null)throw Error(b(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Kd(e,t),ps(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Gn(Error(b(423)),t),t=Uu(e,t,r,n,i);break e}else if(r!==i){i=Gn(Error(b(424)),t),t=Uu(e,t,r,n,i);break e}else for(ze=Ut(t.stateNode.containerInfo.firstChild),De=t,X=!0,nt=null,n=Zd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xn(),r===i){t=Nt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return ef(t),e===null&&ul(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,il(r,i)?o=null:s!==null&&il(r,s)&&(t.flags|=32),Tf(e,t),Se(e,t,o,n),t.child;case 6:return e===null&&ul(t),null;case 13:return Nf(e,t,n);case 4:return ma(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Du(e,t,r,i,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,U(fs,r._currentValue),r._currentValue=o,s!==null)if(ot(s.value,o)){if(s.children===i.children&&!Ie.current){t=Nt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Et(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),cl(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(b(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),cl(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Se(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=Ge(i),r=r(i),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Hu(e,t,r,i,n);case 15:return Ef(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Fi(e,t),t.tag=1,Pe(r)?(e=!0,us(t)):e=!1,Un(t,n),Yd(t,r,i),fl(t,r,i,n),ml(null,t,r,!0,e,n);case 19:return bf(e,t,n);case 22:return kf(e,t,n)}throw Error(b(156,t.tag))};function Bf(e,t){return md(e,t)}function e0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xe(e,t,n,r){return new e0(e,t,n,r)}function Aa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t0(e){if(typeof e=="function")return Aa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kl)return 11;if(e===Gl)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=Xe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Aa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Tn:return on(n.children,i,s,t);case Ql:o=8,i|=8;break;case $o:return e=Xe(12,n,t,i|2),e.elementType=$o,e.lanes=s,e;case Oo:return e=Xe(13,n,t,i),e.elementType=Oo,e.lanes=s,e;case zo:return e=Xe(19,n,t,i),e.elementType=zo,e.lanes=s,e;case Jc:return Ds(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gc:o=10;break e;case Yc:o=9;break e;case Kl:o=11;break e;case Gl:o=14;break e;case At:o=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Xe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function on(e,t,n,r){return e=Xe(7,e,r,t),e.lanes=n,e}function Ds(e,t,n,r){return e=Xe(22,e,r,t),e.elementType=Jc,e.lanes=n,e.stateNode={isHidden:!1},e}function ko(e,t,n){return e=Xe(6,e,null,t),e.lanes=n,e}function To(e,t,n){return t=Xe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=io(0),this.expirationTimes=io(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=io(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ma(e,t,n,r,i,s,o,l,a){return e=new n0(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Xe(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pa(s),e}function r0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qf)}catch(e){console.error(e)}}Qf(),Wc.exports=Ue;var Hy=Wc.exports;const Bn=({children:e,title:t="",icon:n,disabled:r=!1,toggled:i=!1,onClick:s=()=>{},style:o})=>{let l=`toolbar-button ${n}`;return i&&(l+=" toggled"),d.jsxs("button",{className:l,onMouseDown:ec,onClick:s,onDoubleClick:ec,title:t,disabled:!!r,style:o,children:[n&&d.jsx("span",{className:`codicon codicon-${n}`,style:e?{marginRight:5}:{}}),e]})},ec=e=>{e.stopPropagation(),e.preventDefault()},Wi=Symbol("context"),Kf=Symbol("next"),Gf=Symbol("prev"),tc=Symbol("events");class Fy{constructor(t){Z(this,"startTime");Z(this,"endTime");Z(this,"browserName");Z(this,"channel");Z(this,"platform");Z(this,"wallTime");Z(this,"title");Z(this,"options");Z(this,"pages");Z(this,"actions");Z(this,"events");Z(this,"stdio");Z(this,"errors");Z(this,"errorDescriptors");Z(this,"hasSource");Z(this,"hasStepData");Z(this,"sdkLanguage");Z(this,"testIdAttributeName");Z(this,"sources");Z(this,"resources");t.forEach(r=>a0(r));const n=t.find(r=>r.isPrimary);this.browserName=(n==null?void 0:n.browserName)||"",this.sdkLanguage=n==null?void 0:n.sdkLanguage,this.channel=n==null?void 0:n.channel,this.testIdAttributeName=n==null?void 0:n.testIdAttributeName,this.platform=(n==null?void 0:n.platform)||"",this.title=(n==null?void 0:n.title)||"",this.options=(n==null?void 0:n.options)||{},this.wallTime=t.map(r=>r.wallTime).reduce((r,i)=>Math.min(r||Number.MAX_VALUE,i),Number.MAX_VALUE),this.startTime=t.map(r=>r.startTime).reduce((r,i)=>Math.min(r,i),Number.MAX_VALUE),this.endTime=t.map(r=>r.endTime).reduce((r,i)=>Math.max(r,i),Number.MIN_VALUE),this.pages=[].concat(...t.map(r=>r.pages)),this.actions=u0(t),this.events=[].concat(...t.map(r=>r.events)),this.stdio=[].concat(...t.map(r=>r.stdio)),this.errors=[].concat(...t.map(r=>r.errors)),this.hasSource=t.some(r=>r.hasSource),this.hasStepData=t.some(r=>!r.isPrimary),this.resources=[...t.map(r=>r.resources)].flat(),this.events.sort((r,i)=>r.time-i.time),this.resources.sort((r,i)=>r._monotonicTime-i._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=m0(this.actions,this.errorDescriptors)}failedAction(){return this.actions.findLast(t=>t.error)}_errorDescriptorsFromActions(){var n;const t=[];for(const r of this.actions||[])(n=r.error)!=null&&n.message&&t.push({action:r,stack:r.stack,message:r.error.message});return t}_errorDescriptorsFromTestRunner(){const t=[];for(const n of this.errors||[])n.message&&t.push({stack:n.stack,message:n.message});return t}}function a0(e){for(const n of e.pages)n[Wi]=e;for(let n=0;n=0;n--){const r=e.actions[n];r[Kf]=t,r.apiName.includes("route.")||(t=r)}for(const n of e.events)n[Wi]=e}function u0(e){const t=new Map;let n=0;const r=e.filter(l=>l.isPrimary),i=e.filter(l=>!l.isPrimary);for(const l of r){for(const a of l.actions)t.set(`${a.apiName}@${a.wallTime}`,{...a,context:l});!n&&l.actions.length&&(n=l.actions[0].startTime-l.actions[0].wallTime)}const s=new Map;for(const l of i)for(const a of l.actions){if(n){const f=a.endTime-a.startTime;a.startTime&&(a.startTime=a.wallTime+n),a.endTime&&(a.endTime=a.startTime+f)}const u=`${a.apiName}@${a.wallTime}`,c=t.get(u);if(c&&c.apiName===a.apiName){s.set(a.callId,c.callId),a.error&&(c.error=a.error),a.attachments&&(c.attachments=a.attachments),a.parentId&&(c.parentId=s.get(a.parentId)??a.parentId);continue}a.parentId&&(a.parentId=s.get(a.parentId)??a.parentId),t.set(u,{...a,context:l})}const o=[...t.values()];o.sort((l,a)=>a.parentId===l.callId?-1:l.parentId===a.callId?1:l.wallTime-a.wallTime||l.startTime-a.startTime);for(let l=1;lr.time>=e.startTime&&(!n||r.time{const[l,a]=Ji(s?s+"."+r+":size":void 0,Math.max(i,e)*window.devicePixelRatio),[u,c]=Ji(s?s+"."+r+":size":void 0,Math.max(i,e)*window.devicePixelRatio),[f,p]=L.useState(null),[v,y]=pn();let w;r==="vertical"?(w=u/window.devicePixelRatio,v&&v.heightp({offset:r==="vertical"?m.clientY:m.clientX,size:w}),onMouseUp:()=>p(null),onMouseMove:m=>{if(!m.buttons)p(null);else if(f){const _=(r==="vertical"?m.clientY:m.clientX)-f.offset,N=n?f.size+_:f.size-_,C=m.target.parentElement.getBoundingClientRect(),E=Math.min(Math.max(i,N),(r==="vertical"?C.height:C.width)-i);r==="vertical"?c(E*window.devicePixelRatio):a(E*window.devicePixelRatio)}}})]})};function Bs(e,t="'"){const n=JSON.stringify(e),r=n.substring(1,n.length-1).replace(/\\"/g,'"');if(t==="'")return t+r.replace(/[']/g,"\\'")+t;if(t==='"')return t+r.replace(/["]/g,'\\"')+t;if(t==="`")return t+r.replace(/[`]/g,"`")+t;throw new Error("Invalid escape char")}function ks(e){return e.charAt(0).toUpperCase()+e.substring(1)}function Yf(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function qe(e){let t="";for(let n=0;n=1&&n<=31||n>=48&&n<=57&&(t===0||t===1&&e.charCodeAt(0)===45)?"\\"+n.toString(16)+" ":t===0&&n===45&&e.length===1?"\\"+e.charAt(t):n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?e.charAt(t):"\\"+e.charAt(t)}function Fe(e){return e.replace(/\u200b/g,"").trim().replace(/\s+/g," ")}function Ws(e){return e.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function Jf(e){return e.unicode||e.unicodeSets?String(e):String(e).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function st(e,t){return typeof e!="string"?Jf(e):`${JSON.stringify(e)}${t?"s":"i"}`}function _e(e,t){return typeof e!="string"?Jf(e):`"${e.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${t?"s":"i"}`}function y0(e,t,n=""){if(e.length<=t)return e;const r=[...e];return r.length>t?r.slice(0,t-n.length).join("")+n:r.join("")}function nc(e,t){return y0(e,t,"…")}function w0(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const re=function(e,t,n){return e>=t&&e<=n};function be(e){return re(e,48,57)}function rc(e){return be(e)||re(e,65,70)||re(e,97,102)}function x0(e){return re(e,65,90)}function S0(e){return re(e,97,122)}function _0(e){return x0(e)||S0(e)}function E0(e){return e>=128}function qi(e){return _0(e)||E0(e)||e===95}function ic(e){return qi(e)||be(e)||e===45}function k0(e){return re(e,0,8)||e===11||re(e,14,31)||e===127}function Xi(e){return e===10}function gt(e){return Xi(e)||e===9||e===32}const T0=1114111;class Ra extends Error{constructor(t){super(t),this.name="InvalidCharacterError"}}function C0(e){const t=[];for(let n=0;n=t.length?-1:t[T]},o=function(T){if(T===void 0&&(T=1),T>3)throw"Spec Error: no more than three codepoints of lookahead.";return s(n+T)},l=function(T){return T===void 0&&(T=1),n+=T,i=s(n),!0},a=function(){return n-=1,!0},u=function(T){return T===void 0&&(T=i),T===-1},c=function(){if(f(),l(),gt(i)){for(;gt(o());)l();return new bl}else{if(i===34)return y();if(i===35)if(ic(o())||h(o(1),o(2))){const T=new hh("");return g(o(1),o(2),o(3))&&(T.type="id"),T.value=C(),T}else return new ye(i);else return i===36?o()===61?(l(),new M0):new ye(i):i===39?y():i===40?new ah:i===41?new uh:i===42?o()===61?(l(),new j0):new ye(i):i===43?k()?(a(),p()):new ye(i):i===44?new ih:i===45?k()?(a(),p()):o(1)===45&&o(2)===62?(l(2),new th):_()?(a(),v()):new ye(i):i===46?k()?(a(),p()):new ye(i):i===58?new nh:i===59?new rh:i===60?o(1)===33&&o(2)===45&&o(3)===45?(l(3),new eh):new ye(i):i===64?g(o(1),o(2),o(3))?new fh(C()):new ye(i):i===91?new lh:i===92?m()?(a(),v()):new ye(i):i===93?new Ll:i===94?o()===61?(l(),new A0):new ye(i):i===123?new sh:i===124?o()===61?(l(),new L0):o()===124?(l(),new ch):new ye(i):i===125?new oh:i===126?o()===61?(l(),new b0):new ye(i):be(i)?(a(),p()):qi(i)?(a(),v()):u()?new Ki:new ye(i)}},f=function(){for(;o(1)===47&&o(2)===42;)for(l(2);;)if(l(),i===42&&o()===47){l();break}else if(u())return},p=function(){const T=E();if(g(o(1),o(2),o(3))){const I=new I0;return I.value=T.value,I.repr=T.repr,I.type=T.type,I.unit=C(),I}else if(o()===37){l();const I=new vh;return I.value=T.value,I.repr=T.repr,I}else{const I=new gh;return I.value=T.value,I.repr=T.repr,I.type=T.type,I}},v=function(){const T=C();if(T.toLowerCase()==="url"&&o()===40){for(l();gt(o(1))&>(o(2));)l();return o()===34||o()===39?new Gi(T):gt(o())&&(o(2)===34||o(2)===39)?new Gi(T):w()}else return o()===40?(l(),new Gi(T)):new dh(T)},y=function(T){T===void 0&&(T=i);let I="";for(;l();){if(i===T||u())return new ph(I);if(Xi(i))return a(),new Zf;i===92?u(o())||(Xi(o())?l():I+=se(x())):I+=se(i)}throw new Error("Internal error")},w=function(){const T=new mh("");for(;gt(o());)l();if(u(o()))return T;for(;l();){if(i===41||u())return T;if(gt(i)){for(;gt(o());)l();return o()===41||u(o())?(l(),T):(A(),new Qi)}else{if(i===34||i===39||i===40||k0(i))return A(),new Qi;if(i===92)if(m())T.value+=se(x());else return A(),new Qi;else T.value+=se(i)}}throw new Error("Internal error")},x=function(){if(l(),rc(i)){const T=[i];for(let z=0;z<5&&rc(o());z++)l(),T.push(i);gt(o())&&l();let I=parseInt(T.map(function(z){return String.fromCharCode(z)}).join(""),16);return I>T0&&(I=65533),I}else return u()?65533:i},h=function(T,I){return!(T!==92||Xi(I))},m=function(){return h(i,o())},g=function(T,I,z){return T===45?qi(I)||I===45||h(I,z):qi(T)?!0:T===92?h(T,I):!1},_=function(){return g(i,o(1),o(2))},N=function(T,I,z){return T===43||T===45?!!(be(I)||I===46&&be(z)):T===46?!!be(I):!!be(T)},k=function(){return N(i,o(1),o(2))},C=function(){let T="";for(;l();)if(ic(i))T+=se(i);else if(m())T+=se(x());else return a(),T;throw new Error("Internal parse error")},E=function(){let T="",I="integer";for((o()===43||o()===45)&&(l(),T+=se(i));be(o());)l(),T+=se(i);if(o(1)===46&&be(o(2)))for(l(),T+=se(i),l(),T+=se(i),I="number";be(o());)l(),T+=se(i);const z=o(1),ae=o(2),Ne=o(3);if((z===69||z===101)&&be(ae))for(l(),T+=se(i),l(),T+=se(i),I="number";be(o());)l(),T+=se(i);else if((z===69||z===101)&&(ae===43||ae===45)&&be(Ne))for(l(),T+=se(i),l(),T+=se(i),l(),T+=se(i),I="number";be(o());)l(),T+=se(i);const ue=S(T);return{type:I,value:ue,repr:T}},S=function(T){return+T},A=function(){for(;l();){if(i===41||u())return;m()&&x()}};let P=0;for(;!u(o());)if(r.push(c()),P++,P>t.length*2)throw new Error("I'm infinite-looping!");return r}class te{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Zf extends te{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Qi extends te{constructor(){super(...arguments),this.tokenType="BADURL"}}class bl extends te{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class eh extends te{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return""}}class nh extends te{constructor(){super(...arguments),this.tokenType=":"}}class rh extends te{constructor(){super(...arguments),this.tokenType=";"}}class ih extends te{constructor(){super(...arguments),this.tokenType=","}}class tr extends te{constructor(){super(...arguments),this.value="",this.mirror=""}}class sh extends tr{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class oh extends tr{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class lh extends tr{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class Ll extends tr{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class ah extends tr{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class uh extends tr{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class b0 extends te{constructor(){super(...arguments),this.tokenType="~="}}class L0 extends te{constructor(){super(...arguments),this.tokenType="|="}}class A0 extends te{constructor(){super(...arguments),this.tokenType="^="}}class M0 extends te{constructor(){super(...arguments),this.tokenType="$="}}class j0 extends te{constructor(){super(...arguments),this.tokenType="*="}}class ch extends te{constructor(){super(...arguments),this.tokenType="||"}}class Ki extends te{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class ye extends te{constructor(t){super(),this.tokenType="DELIM",this.value="",this.value=se(t)}toString(){return"DELIM("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}toSource(){return this.value==="\\"?`\\ +`:this.value}}class nr extends te{constructor(){super(...arguments),this.value=""}ASCIIMatch(t){return this.value.toLowerCase()===t.toLowerCase()}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}}class dh extends nr{constructor(t){super(),this.tokenType="IDENT",this.value=t}toString(){return"IDENT("+this.value+")"}toSource(){return li(this.value)}}class Gi extends nr{constructor(t){super(),this.tokenType="FUNCTION",this.value=t,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return li(this.value)+"("}}class fh extends nr{constructor(t){super(),this.tokenType="AT-KEYWORD",this.value=t}toString(){return"AT("+this.value+")"}toSource(){return"@"+li(this.value)}}class hh extends nr{constructor(t){super(),this.tokenType="HASH",this.value=t,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t}toSource(){return this.type==="id"?"#"+li(this.value):"#"+P0(this.value)}}class ph extends nr{constructor(t){super(),this.tokenType="STRING",this.value=t}toString(){return'"'+yh(this.value)+'"'}}class mh extends nr{constructor(t){super(),this.tokenType="URL",this.value=t}toString(){return"URL("+this.value+")"}toSource(){return'url("'+yh(this.value)+'")'}}class gh extends te{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const t=super.toJSON();return t.value=this.value,t.type=this.type,t.repr=this.repr,t}toSource(){return this.repr}}class vh extends te{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.repr=this.repr,t}toSource(){return this.repr+"%"}}class I0 extends te{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t.repr=this.repr,t.unit=this.unit,t}toSource(){const t=this.repr;let n=li(this.unit);return n[0].toLowerCase()==="e"&&(n[1]==="-"||re(n.charCodeAt(1),48,57))&&(n="\\65 "+n.slice(1,n.length)),t+n}}function li(e){e=""+e;let t="";const n=e.charCodeAt(0);for(let r=0;r=128||i===45||i===95||re(i,48,57)||re(i,65,90)||re(i,97,122)?t+=e[r]:t+="\\"+e[r]}return t}function P0(e){e=""+e;let t="";for(let n=0;n=128||r===45||r===95||re(r,48,57)||re(r,65,90)||re(r,97,122)?t+=e[n]:t+="\\"+r.toString(16)+" "}return t}function yh(e){e=""+e;let t="";for(let n=0;nS instanceof fh||S instanceof Zf||S instanceof Qi||S instanceof ch||S instanceof eh||S instanceof th||S instanceof rh||S instanceof sh||S instanceof oh||S instanceof mh||S instanceof vh);if(r)throw new Ae(`Unsupported token "${r.toSource()}" while parsing selector "${e}"`);let i=0;const s=new Set;function o(){return new Ae(`Unexpected token "${n[i].toSource()}" while parsing selector "${e}"`)}function l(){for(;n[i]instanceof bl;)i++}function a(S=i){return n[S]instanceof dh}function u(S=i){return n[S]instanceof ph}function c(S=i){return n[S]instanceof gh}function f(S=i){return n[S]instanceof ih}function p(S=i){return n[S]instanceof ah}function v(S=i){return n[S]instanceof uh}function y(S=i){return n[S]instanceof Gi}function w(S=i){return n[S]instanceof ye&&n[S].value==="*"}function x(S=i){return n[S]instanceof Ki}function h(S=i){return n[S]instanceof ye&&[">","+","~"].includes(n[S].value)}function m(S=i){return f(S)||v(S)||x(S)||h(S)||n[S]instanceof bl}function g(){const S=[_()];for(;l(),!!f();)i++,S.push(_());return S}function _(){return l(),c()||u()?n[i++].value:N()}function N(){const S={simples:[]};for(l(),h()?S.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):S.simples.push({selector:k(),combinator:""});;){if(l(),h())S.simples[S.simples.length-1].combinator=n[i++].value,l();else if(m())break;S.simples.push({combinator:"",selector:k()})}return S}function k(){let S="";const A=[];for(;!m();)if(a()||w())S+=n[i++].toSource();else if(n[i]instanceof hh)S+=n[i++].toSource();else if(n[i]instanceof ye&&n[i].value===".")if(i++,a())S+="."+n[i++].toSource();else throw o();else if(n[i]instanceof nh)if(i++,a())if(!t.has(n[i].value.toLowerCase()))S+=":"+n[i++].toSource();else{const P=n[i++].value.toLowerCase();A.push({name:P,args:[]}),s.add(P)}else if(y()){const P=n[i++].value.toLowerCase();if(t.has(P)?(A.push({name:P,args:g()}),s.add(P)):S+=`:${P}(${C()})`,l(),!v())throw o();i++}else throw o();else if(n[i]instanceof lh){for(S+="[",i++;!(n[i]instanceof Ll)&&!x();)S+=n[i++].toSource();if(!(n[i]instanceof Ll))throw o();S+="]",i++}else throw o();if(!S&&!A.length)throw o();return{css:S||void 0,functions:A}}function C(){let S="",A=1;for(;!x()&&((p()||y())&&A++,v()&&A--,!!A);)S+=n[i++].toSource();return S}const E=g();if(!x())throw o();if(E.some(S=>typeof S!="object"||!("simples"in S)))throw new Ae(`Error while parsing selector "${e}"`);return{selector:E,names:Array.from(s)}}const Al=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),$0=new Set(["left-of","right-of","above","below","near"]),wh=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function qs(e){const t=D0(e),n=[];for(const r of t.parts){if(r.name==="css"||r.name==="css:light"){r.name==="css:light"&&(r.body=":light("+r.body+")");const i=R0(r.body,wh);n.push({name:"css",body:i.selector,source:r.body});continue}if(Al.has(r.name)){let i,s;try{const u=JSON.parse("["+r.body+"]");if(!Array.isArray(u)||u.length<1||u.length>2||typeof u[0]!="string")throw new Ae(`Malformed selector: ${r.name}=`+r.body);if(i=u[0],u.length===2){if(typeof u[1]!="number"||!$0.has(r.name))throw new Ae(`Malformed selector: ${r.name}=`+r.body);s=u[1]}}catch{throw new Ae(`Malformed selector: ${r.name}=`+r.body)}const o={name:r.name,source:r.body,body:{parsed:qs(i),distance:s}},l=[...o.body.parsed.parts].reverse().find(u=>u.name==="internal:control"&&u.body==="enter-frame"),a=l?o.body.parsed.parts.indexOf(l):-1;a!==-1&&O0(o.body.parsed.parts.slice(0,a+1),n.slice(0,a+1))&&o.body.parsed.parts.splice(0,a+1),n.push(o);continue}n.push({...r,source:r.body})}if(Al.has(n[0].name))throw new Ae(`"${n[0].name}" selector cannot be first`);return{capture:t.capture,parts:n}}function O0(e,t){return hn({parts:e})===hn({parts:t})}function hn(e,t){return typeof e=="string"?e:e.parts.map((n,r)=>{let i=!0;!t&&r!==e.capture&&(n.name==="css"||n.name==="xpath"&&n.source.startsWith("//")||n.source.startsWith(".."))&&(i=!1);const s=i?n.name+"=":"";return`${r===e.capture?"*":""}${s}${n.source}`}).join(" >> ")}function z0(e,t){const n=(r,i)=>{for(const s of r.parts)t(s,i),Al.has(s.name)&&n(s.body.parsed,!0)};n(e,!1)}function D0(e){let t=0,n,r=0;const i={parts:[]},s=()=>{const l=e.substring(r,t).trim(),a=l.indexOf("=");let u,c;a!==-1&&l.substring(0,a).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(u=l.substring(0,a).trim(),c=l.substring(a+1)):l.length>1&&l[0]==='"'&&l[l.length-1]==='"'||l.length>1&&l[0]==="'"&&l[l.length-1]==="'"?(u="text",c=l):/^\(*\/\//.test(l)||l.startsWith("..")?(u="xpath",c=l):(u="css",c=l);let f=!1;if(u[0]==="*"&&(f=!0,u=u.substring(1)),i.parts.push({name:u,body:c}),f){if(i.capture!==void 0)throw new Ae("Only one of the selectors can capture using * modifier");i.capture=i.parts.length-1}};if(!e.includes(">>"))return t=e.length,s(),i;const o=()=>{const a=e.substring(r,t).match(/^\s*text\s*=(.*)$/);return!!a&&!!a[1]};for(;t"&&e[t+1]===">"?(s(),t+=2,r=t):t++}return s(),i}function ln(e,t){let n=0,r=e.length===0;const i=()=>e[n]||"",s=()=>{const x=i();return++n,r=n>=e.length,x},o=x=>{throw r?new Ae(`Unexpected end of selector while parsing selector \`${e}\``):new Ae(`Error while parsing selector \`${e}\` - unexpected symbol "${i()}" at position ${n}`+(x?" during "+x:""))};function l(){for(;!r&&/\s/.test(i());)s()}function a(x){return x>="€"||x>="0"&&x<="9"||x>="A"&&x<="Z"||x>="a"&&x<="z"||x>="0"&&x<="9"||x==="_"||x==="-"}function u(){let x="";for(l();!r&&a(i());)x+=s();return x}function c(x){let h=s();for(h!==x&&o("parsing quoted string");!r&&i()!==x;)i()==="\\"&&s(),h+=s();return i()!==x&&o("parsing quoted string"),h+=s(),h}function f(){s()!=="/"&&o("parsing regular expression");let x="",h=!1;for(;!r;){if(i()==="\\")x+=s(),r&&o("parsing regular expression");else if(h&&i()==="]")h=!1;else if(!h&&i()==="[")h=!0;else if(!h&&i()==="/")break;x+=s()}s()!=="/"&&o("parsing regular expression");let m="";for(;!r&&i().match(/[dgimsuy]/);)m+=s();try{return new RegExp(x,m)}catch(g){throw new Ae(`Error while parsing selector \`${e}\`: ${g.message}`)}}function p(){let x="";return l(),i()==="'"||i()==='"'?x=c(i()).slice(1,-1):x=u(),x||o("parsing property path"),x}function v(){l();let x="";return r||(x+=s()),!r&&x!=="="&&(x+=s()),["=","*=","^=","$=","|=","~="].includes(x)||o("parsing operator"),x}function y(){s();const x=[];for(x.push(p()),l();i()===".";)s(),x.push(p()),l();if(i()==="]")return s(),{name:x.join("."),jsonPath:x,op:"",value:null,caseSensitive:!1};const h=v();let m,g=!0;if(l(),i()==="/"){if(h!=="=")throw new Ae(`Error while parsing selector \`${e}\` - cannot use ${h} in attribute with regular expression`);m=f()}else if(i()==="'"||i()==='"')m=c(i()).slice(1,-1),l(),i()==="i"||i()==="I"?(g=!1,s()):(i()==="s"||i()==="S")&&(g=!0,s());else{for(m="";!r&&(a(i())||i()==="+"||i()===".");)m+=s();m==="true"?m=!0:m==="false"?m=!1:t||(m=+m,Number.isNaN(m)&&o("parsing attribute value"))}if(l(),i()!=="]"&&o("parsing attribute value"),s(),h!=="="&&typeof m!="string")throw new Ae(`Error while parsing selector \`${e}\` - cannot use ${h} in attribute with non-string matching value - ${m}`);return{name:x.join("."),jsonPath:x,op:h,value:m,caseSensitive:g}}const w={name:"",attributes:[]};for(w.name=u(),l();i()==="[";)w.attributes.push(y()),l();if(r||o(void 0),!w.name&&!w.attributes.length)throw new Ae(`Error while parsing selector \`${e}\` - selector cannot be empty`);return w}function Xt(e,t,n=!1){return xh(e,t,n)[0]}function xh(e,t,n=!1,r=20,i){try{return _n(new q0[e](i),qs(t),n,r)}catch{return[t]}}function _n(e,t,n=!1,r=20){const i=[...t.parts];for(let l=0;le.generateLocator(u,"has",x)));continue}if(a.name==="internal:has-not"){const w=_n(e,a.body.parsed,!1,r);s.push(w.map(x=>e.generateLocator(u,"hasNot",x)));continue}if(a.name==="internal:and"){const w=_n(e,a.body.parsed,!1,r);s.push(w.map(x=>e.generateLocator(u,"and",x)));continue}if(a.name==="internal:or"){const w=_n(e,a.body.parsed,!1,r);s.push(w.map(x=>e.generateLocator(u,"or",x)));continue}if(a.name==="internal:chain"){const w=_n(e,a.body.parsed,!1,r);s.push(w.map(x=>e.generateLocator(u,"chain",x)));continue}if(a.name==="internal:label"){const{exact:w,text:x}=vr(a.body);s.push([e.generateLocator(u,"label",x,{exact:w})]);continue}if(a.name==="internal:role"){const w=ln(a.body,!0),x={attrs:[]};for(const h of w.attributes)h.name==="name"?(x.exact=h.caseSensitive,x.name=h.value):(h.name==="level"&&typeof h.value=="string"&&(h.value=+h.value),x.attrs.push({name:h.name==="include-hidden"?"includeHidden":h.name,value:h.value}));s.push([e.generateLocator(u,"role",w.name,x)]);continue}if(a.name==="internal:testid"){const w=ln(a.body,!0),{value:x}=w.attributes[0];s.push([e.generateLocator(u,"test-id",x)]);continue}if(a.name==="internal:attr"){const w=ln(a.body,!0),{name:x,value:h,caseSensitive:m}=w.attributes[0],g=h,_=!!m;if(x==="placeholder"){s.push([e.generateLocator(u,"placeholder",g,{exact:_})]);continue}if(x==="alt"){s.push([e.generateLocator(u,"alt",g,{exact:_})]);continue}if(x==="title"){s.push([e.generateLocator(u,"title",g,{exact:_})]);continue}}let c="default";const f=i[l+1];f&&f.name==="internal:control"&&f.body==="enter-frame"&&(c="frame",o="frame-locator",l++);const p=hn({parts:[a]}),v=e.generateLocator(u,c,p);if(c==="default"&&f&&["internal:has-text","internal:has-not-text"].includes(f.name)){const{exact:w,text:x}=vr(f.body);if(!w){const h=e.generateLocator("locator",f.name==="internal:has-text"?"has-text":"has-not-text",x,{exact:w}),m={};f.name==="internal:has-text"?m.hasText=x:m.hasNotText=x;const g=e.generateLocator(u,"default",p,m);s.push([e.chainLocators([v,h]),g]),l++;continue}}let y;if(["xpath","css"].includes(a.name)){const w=hn({parts:[a]},!0);y=e.generateLocator(u,c,w)}s.push([v,y].filter(Boolean))}return H0(e,s,r)}function H0(e,t,n){const r=t.map(()=>""),i=[],s=o=>{if(o===t.length)return i.push(e.chainLocators(r)),r.lengthJSON.parse(r));for(let r=0;r{y==null||y(_)},[y,_]),L.useEffect(()=>{const k=g.current;if(!k)return;const C=()=>{sc.set(e,k.scrollTop)};return k.addEventListener("scroll",C,{passive:!0}),()=>k.removeEventListener("scroll",C)},[e]),L.useEffect(()=>{g.current&&(g.current.scrollTop=sc.get(e)||0)},[e]),d.jsx("div",{className:"list-view vbox",role:t.length>0?"list":void 0,"data-testid":h||e+"-list",children:d.jsxs("div",{className:"list-view-content",tabIndex:0,onDoubleClick:()=>u&&(c==null?void 0:c(u,t.indexOf(u))),onKeyDown:k=>{var A;if(u&&k.key==="Enter"){c==null||c(u,t.indexOf(u));return}if(k.key!=="ArrowDown"&&k.key!=="ArrowUp"&&k.key!=="ArrowLeft"&&k.key!=="ArrowRight")return;if(k.stopPropagation(),k.preventDefault(),u&&k.key==="ArrowLeft"){p==null||p(u,t.indexOf(u));return}if(u&&k.key==="ArrowRight"){v==null||v(u,t.indexOf(u));return}const C=u?t.indexOf(u):-1;let E=C;k.key==="ArrowDown"&&(C===-1?E=0:E=Math.min(C+1,t.length-1)),k.key==="ArrowUp"&&(C===-1?E=t.length-1:E=Math.max(C-1,0));const S=(A=g.current)==null?void 0:A.children.item(E);X0(S||void 0),y==null||y(void 0),f==null||f(t[E],E)},ref:g,children:[x&&t.length===0&&d.jsx("div",{className:"list-view-empty",children:x}),t.map((k,C)=>{const E=u===k?" selected":"",S=!m&&_===k?" highlighted":"",A=s!=null&&s(k,C)?" error":"",P=o!=null&&o(k,C)?" warning":"",T=l!=null&&l(k,C)?" info":"",I=(a==null?void 0:a(k,C))||0,z=r(k,C);return d.jsxs("div",{role:"listitem",className:"list-view-entry"+E+S+A+P+T,onClick:()=>f==null?void 0:f(k,C),onMouseEnter:()=>N(k),onMouseLeave:()=>N(void 0),children:[I?new Array(I).fill(0).map(()=>d.jsx("div",{className:"list-view-indent"})):void 0,i&&d.jsx("div",{className:"codicon "+(i(k,C)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:ae=>{ae.preventDefault(),ae.stopPropagation()},onClick:ae=>{ae.stopPropagation(),ae.preventDefault(),w==null||w(k,C)}}),typeof z=="string"?d.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:z}):z]},(n==null?void 0:n(k,C))||C)})]})})}function X0(e){e&&(e!=null&&e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e==null||e.scrollIntoView())}const Q0=ai;function K0({name:e,rootItem:t,render:n,icon:r,isError:i,isVisible:s,selectedItem:o,onAccepted:l,onSelected:a,onHighlighted:u,treeState:c,setTreeState:f,noItemsMessage:p,dataTestId:v,autoExpandDepth:y}){const w=L.useMemo(()=>G0(t,o,c.expandedItems,y||0),[t,o,c,y]),x=L.useMemo(()=>{if(!s)return[...w.keys()];const h=new Map,m=_=>{const N=h.get(_);if(N!==void 0)return N;let k=_.children.some(E=>m(E));for(const E of _.children){const S=m(E);k=k||S}const C=s(_)||k;return h.set(_,C),C};for(const _ of w.keys())m(_);const g=[];for(const _ of w.keys())s(_)&&g.push(_);return g},[w,s]);return d.jsx(Q0,{name:e,items:x,id:h=>h.id,dataTestId:v||e+"-tree",render:h=>{const m=n(h);return d.jsxs(d.Fragment,{children:[r&&d.jsx("div",{className:"codicon "+(r(h)||"blank"),style:{minWidth:16,marginRight:4}}),typeof m=="string"?d.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:m}):m]})},icon:h=>{const m=w.get(h).expanded;if(typeof m=="boolean")return m?"codicon-chevron-down":"codicon-chevron-right"},isError:h=>(i==null?void 0:i(h))||!1,indent:h=>w.get(h).depth,selectedItem:o,onAccepted:h=>l==null?void 0:l(h),onSelected:h=>a==null?void 0:a(h),onHighlighted:h=>u==null?void 0:u(h),onLeftArrow:h=>{const{expanded:m,parent:g}=w.get(h);m?(c.expandedItems.set(h.id,!1),f({...c})):g&&(a==null||a(g))},onRightArrow:h=>{h.children.length&&(c.expandedItems.set(h.id,!0),f({...c}))},onIconClicked:h=>{const{expanded:m}=w.get(h);if(m){for(let g=o;g;g=g.parent)if(g===h){a==null||a(h);break}c.expandedItems.set(h.id,!1)}else c.expandedItems.set(h.id,!0);f({...c})},noItemsMessage:p})}function G0(e,t,n,r){const i=new Map,s=new Set;for(let l=t==null?void 0:t.parent;l;l=l.parent)s.add(l.id);const o=(l,a)=>{for(const u of l.children){const c=s.has(u.id)||n.get(u.id),f=r>a&&i.size<25&&c!==!1,p=u.children.length?c??f:void 0;i.set(u,{depth:a,expanded:p,parent:e===l?null:l}),p&&o(u,a+1)}};return o(e,0),i}const Y0=K0,J0=({actions:e,selectedAction:t,selectedTime:n,setSelectedTime:r,sdkLanguage:i,onSelected:s,onHighlighted:o,revealConsole:l,isLive:a})=>{const[u,c]=L.useState({expandedItems:new Map}),{rootItem:f,itemMap:p}=L.useMemo(()=>c0(e),[e]),{selectedItem:v}=L.useMemo(()=>({selectedItem:t?p.get(t.callId):void 0}),[p,t]);return d.jsxs("div",{className:"vbox",children:[n&&d.jsxs("div",{className:"action-list-show-all",onClick:()=>r(void 0),children:[d.jsx("span",{className:"codicon codicon-triangle-left"}),"Show all"]}),d.jsx(Y0,{name:"actions",rootItem:f,treeState:u,setTreeState:c,selectedItem:v,onSelected:y=>s(y.action),onHighlighted:y=>o(y==null?void 0:y.action),onAccepted:y=>r({minimum:y.action.startTime,maximum:y.action.endTime}),isError:y=>{var w,x;return!!((x=(w=y.action)==null?void 0:w.error)!=null&&x.message)},isVisible:y=>!n||y.action.startTime<=n.maximum&&y.action.endTime>=n.minimum,render:y=>$a(y.action,{sdkLanguage:i,revealConsole:l,isLive:a,showDuration:!0,showBadges:!0})})]})},$a=(e,t)=>{const{sdkLanguage:n,revealConsole:r,isLive:i,showDuration:s,showBadges:o}=t,{errors:l,warnings:a}=h0(e),u=e.params.selector?Xt(n||"javascript",e.params.selector):void 0;let c="";return e.endTime?c=Qe(e.endTime-e.startTime):e.error?c="Timed out":i||(c="-"),d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"action-title",title:e.apiName,children:[d.jsx("span",{children:e.apiName}),u&&d.jsx("div",{className:"action-selector",title:u,children:u}),e.method==="goto"&&e.params.url&&d.jsx("div",{className:"action-url",title:e.params.url,children:e.params.url})]}),(s||o)&&d.jsx("div",{className:"spacer"}),s&&d.jsx("div",{className:"action-duration",children:c||d.jsx("span",{className:"codicon codicon-loading"})}),o&&d.jsxs("div",{className:"action-icons",onClick:()=>r==null?void 0:r(),children:[!!l&&d.jsxs("div",{className:"action-icon",children:[d.jsx("span",{className:"codicon codicon-error"}),d.jsx("span",{className:"action-icon-value",children:l})]}),!!a&&d.jsxs("div",{className:"action-icon",children:[d.jsx("span",{className:"codicon codicon-warning"}),d.jsx("span",{className:"action-icon-value",children:a})]})]})]})},Z0=({value:e})=>{const[t,n]=L.useState("codicon-clippy"),r=L.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{n("codicon-check"),setTimeout(()=>{n("codicon-clippy")},3e3)},()=>{n("codicon-close")})},[e]);return d.jsx("span",{className:`copy-icon codicon ${t}`,onClick:r})},rr=({text:e})=>d.jsx("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:e}),e1=({action:e,sdkLanguage:t})=>{if(!e)return d.jsx(rr,{text:"No action selected"});const n={...e.params};delete n.info;const r=Object.keys(n),i=e.wallTime?new Date(e.wallTime).toLocaleString():null,s=e.endTime?Qe(e.endTime-e.startTime):"Timed Out";return d.jsxs("div",{className:"call-tab",children:[d.jsx("div",{className:"call-line",children:e.apiName}),d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"call-section",children:"Time"}),i&&d.jsxs("div",{className:"call-line",children:["wall time:",d.jsx("span",{className:"call-value datetime",title:i,children:i})]}),d.jsxs("div",{className:"call-line",children:["duration:",d.jsx("span",{className:"call-value datetime",title:s,children:s})]})]}),!!r.length&&d.jsx("div",{className:"call-section",children:"Parameters"}),!!r.length&&r.map((o,l)=>oc(lc(e,o,n[o],t),"param-"+l)),!!e.result&&d.jsx("div",{className:"call-section",children:"Return value"}),!!e.result&&Object.keys(e.result).map((o,l)=>oc(lc(e,o,e.result[o],t),"result-"+l))]})};function oc(e,t){let n=e.text.replace(/\n/g,"↵");return e.type==="string"&&(n=`"${n}"`),d.jsxs("div",{className:"call-line",children:[e.name,":",d.jsx("span",{className:`call-value ${e.type}`,title:e.text,children:n}),["string","number","object","locator"].includes(e.type)&&d.jsx(Z0,{value:e.text})]},t)}function lc(e,t,n,r){const i=e.method.includes("eval")||e.method==="waitForFunction";if(t==="files")return{text:"",type:"string",name:t};if((t==="eventInit"||t==="expectedValue"||t==="arg"&&i)&&(n=Ts(n.value,new Array(10).fill({handle:""}))),(t==="value"&&i||t==="received"&&e.method==="expect")&&(n=Ts(n,new Array(10).fill({handle:""}))),t==="selector")return{text:Xt(r||"javascript",e.params.selector),type:"locator",name:"locator"};const s=typeof n;return s!=="object"||n===null?{text:String(n),type:s,name:t}:n.guid?{text:"",type:"handle",name:t}:{text:JSON.stringify(n).slice(0,1e3),type:"object",name:t}}function Ts(e,t){if(e.n!==void 0)return e.n;if(e.s!==void 0)return e.s;if(e.b!==void 0)return e.b;if(e.v!==void 0){if(e.v==="undefined")return;if(e.v==="null")return null;if(e.v==="NaN")return NaN;if(e.v==="Infinity")return 1/0;if(e.v==="-Infinity")return-1/0;if(e.v==="-0")return-0}if(e.d!==void 0)return new Date(e.d);if(e.r!==void 0)return new RegExp(e.r.p,e.r.f);if(e.a!==void 0)return e.a.map(n=>Ts(n,t));if(e.o!==void 0){const n={};for(const{k:r,v:i}of e.o)n[r]=Ts(i,t);return n}return e.h!==void 0?t===void 0?"":t[e.h]:""}const t1=ai,n1=({action:e,isLive:t})=>{const n=L.useMemo(()=>{var o;if(!e||!e.log.length)return[];const r=e.log,i=e.wallTime-e.startTime,s=[];for(let l=0;l0?a=Qe(e.endTime-u):t?a=Qe(Date.now()-i-u):a="-"}s.push({message:r[l].message,time:a})}return s},[e,t]);return n.length?d.jsx(t1,{name:"log",items:n,render:r=>d.jsxs("div",{className:"log-list-item",children:[d.jsx("span",{className:"log-list-duration",children:r.time}),r.message]}),noHighlightOnHover:!0}):d.jsx(rr,{text:"No log entries"})};function ti(e){const t=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,n=[];let r,i={};for(;(r=t.exec(e))!==null;){const[,,s,,o]=r;if(s){const l=+s;switch(l){case 0:i={};break;case 1:i["font-weight"]="bold";break;case 3:i["font-style"]="italic";break;case 4:i["text-decoration"]="underline";break;case 8:i.display="none";break;case 9:i["text-decoration"]="line-through";break;case 22:i={...i,"font-weight":void 0,"font-style":void 0,"text-decoration":void 0};break;case 23:i={...i,"font-weight":void 0,"font-style":void 0};break;case 24:i={...i,"text-decoration":void 0};break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:i.color=ac[l-30];break;case 39:i={...i,color:void 0};break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:i["background-color"]=ac[l-40];break;case 49:i={...i,"background-color":void 0};break;case 53:i["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:i.color=uc[l-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:i["background-color"]=uc[l-100];break}}else o&&n.push(`${r1(o)}`)}return n.join("")}const ac={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},uc={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function r1(e){return e.replace(/[&"<>]/g,t=>({"&":"&",'"':""","<":"<",">":">"})[t])}function i1(e){return Object.entries(e).map(([t,n])=>`${t}: ${n}`).join("; ")}const s1=({error:e})=>{const t=L.useMemo(()=>ti(e),[e]);return d.jsx("div",{className:"error-message",dangerouslySetInnerHTML:{__html:t||""}})};function o1(e){return L.useMemo(()=>{if(!e)return{errors:new Map};const t=new Map;for(const n of e.errorDescriptors)t.set(n.message,n);return{errors:t}},[e])}const l1=({errorsModel:e,sdkLanguage:t,revealInSource:n})=>e.errors.size?d.jsx("div",{className:"fill",style:{overflow:"auto"},children:[...e.errors.entries()].map(([r,i])=>{var a;let s,o;const l=(a=i.stack)==null?void 0:a[0];return l&&(s=l.file.replace(/.*[/\\](.*)/,"$1")+":"+l.line,o=l.file+":"+l.line),d.jsxs("div",{children:[d.jsxs("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)"},children:[i.action&&$a(i.action,{sdkLanguage:t}),s&&d.jsxs("div",{className:"action-location",children:["@ ",d.jsx("span",{title:o,onClick:()=>n(i),children:s})]})]}),d.jsx(s1,{error:r})]},r)})}):d.jsx(rr,{text:"No errors"}),a1=ai;function u1(e,t){const{entries:n}=L.useMemo(()=>{if(!e)return{entries:[]};const i=[];for(const s of e.events){if(s.type==="console"){const o=s.args&&s.args.length?d1(s.args):Sh(s.text),l=s.location.url,u=`${l?l.substring(l.lastIndexOf("/")+1):""}:${s.location.lineNumber}`;i.push({browserMessage:{body:o,location:u},isError:s.messageType==="error",isWarning:s.messageType==="warning",timestamp:s.time})}s.type==="event"&&s.method==="pageError"&&i.push({browserError:s.params.error,isError:!0,isWarning:!1,timestamp:s.time})}for(const s of e.stdio){let o="";s.text&&(o=ti(s.text.trim())||""),s.base64&&(o=ti(atob(s.base64).trim())||""),i.push({nodeMessage:{html:o},isError:s.type==="stderr",isWarning:!1,timestamp:s.timestamp})}return i.sort((s,o)=>s.timestamp-o.timestamp),{entries:i}},[e]);return{entries:L.useMemo(()=>t?n.filter(i=>i.timestamp>=t.minimum&&i.timestamp<=t.maximum):n,[n,t])}}const c1=({consoleModel:e,boundaries:t})=>e.entries.length?d.jsx("div",{className:"console-tab",children:d.jsx(a1,{name:"console",items:e.entries,isError:n=>n.isError,isWarning:n=>n.isWarning,render:n=>{const r=Qe(n.timestamp-t.minimum),i=d.jsx("span",{className:"console-time",children:r}),s=n.isError?" status-error":n.isWarning?" status-warning":" status-none",o=n.browserMessage||n.browserError?d.jsx("span",{className:"codicon codicon-browser"+s,title:"Browser message"}):d.jsx("span",{className:"codicon codicon-file"+s,title:"Runner message"});let l,a,u,c;const{browserMessage:f,browserError:p,nodeMessage:v}=n;if(f&&(l=f.location,a=f.body),p){const{error:y,value:w}=p;y?(a=y.message,c=y.stack):a=String(w)}return v&&(u=v.html),d.jsxs("div",{className:"console-line",children:[i,o,l&&d.jsx("span",{className:"console-location",children:l}),a&&d.jsx("span",{className:"console-line-message",children:a}),u&&d.jsx("span",{className:"console-line-message",dangerouslySetInnerHTML:{__html:u}}),c&&d.jsx("div",{className:"console-stack",children:c})]})}})}):d.jsx(rr,{text:"No console entries"});function d1(e){if(e.length===1)return Sh(e[0].preview);const t=typeof e[0].value=="string"&&e[0].value.includes("%"),n=t?e[0].value:"",r=t?e.slice(1):e;let i=0;const s=/%([%sdifoOc])/g;let o;const l=[];let a=[];l.push(d.jsx("span",{children:a}));let u=0;for(;(o=s.exec(n))!==null;){const c=n.substring(u,o.index);a.push(d.jsx("span",{children:c})),u=o.index+2;const f=o[0][1];if(f==="%")a.push(d.jsx("span",{children:"%"}));else if(f==="s"||f==="o"||f==="O"||f==="d"||f==="i"||f==="f"){const p=r[i++],v={};typeof(p==null?void 0:p.value)!="string"&&(v.color="var(--vscode-debugTokenExpression-number)"),a.push(d.jsx("span",{style:v,children:(p==null?void 0:p.preview)||""}))}else if(f==="c"){a=[];const p=r[i++],v=p?f1(p.preview):{};l.push(d.jsx("span",{style:v,children:a}))}}for(ua[1].toUpperCase());t[l]=o}return t}catch{return{}}}function h1(e){return["background","border","color","font","line","margin","padding","text"].some(n=>e.startsWith(n))}const _h=({noShadow:e,children:t,noMinHeight:n})=>d.jsx("div",{className:"toolbar"+(e?" no-shadow":"")+(n?" no-min-height":""),children:t}),Ml=({tabs:e,selectedTab:t,setSelectedTab:n,leftToolbar:r,rightToolbar:i,dataTestId:s,mode:o})=>(o||(o="default"),d.jsx("div",{className:"tabbed-pane","data-testid":s,children:d.jsxs("div",{className:"vbox",children:[d.jsxs(_h,{children:[r&&d.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...r]}),o==="default"&&d.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},children:[...e.map(l=>d.jsx(Eh,{id:l.id,title:l.title,count:l.count,errorCount:l.errorCount,selected:t===l.id,onSelect:n}))]}),o==="select"&&d.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},children:d.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},onChange:l=>{n(e[l.currentTarget.selectedIndex].id)},children:e.map(l=>{let a="";return l.count===1?a=" 🔵":l.count&&(a=` 🔵✖️${l.count}`),l.errorCount===1?a=" 🔴":l.errorCount&&(a=` 🔴✖️${l.errorCount}`),d.jsxs("option",{value:l.id,selected:l.id===t,children:[l.title,a]})})})}),i&&d.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...i]})]}),e.map(l=>{const a="tab-content tab-"+l.id;if(l.component)return d.jsx("div",{className:a,style:{display:t===l.id?"inherit":"none"},children:l.component},l.id);if(t===l.id)return d.jsx("div",{className:a,children:l.render()},l.id)})]})})),Eh=({id:e,title:t,count:n,errorCount:r,selected:i,onSelect:s})=>d.jsxs("div",{className:"tabbed-pane-tab "+(i?"selected":""),onClick:()=>s(e),title:t,children:[d.jsx("div",{className:"tabbed-pane-tab-label",children:t}),!!n&&d.jsx("div",{className:"tabbed-pane-tab-counter",children:n}),!!r&&d.jsx("div",{className:"tabbed-pane-tab-counter error",children:r})]},e),p1="modulepreload",m1=function(e,t){return new URL(e,t).href},cc={},g1=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link");i=Promise.all(n.map(o=>{if(o=m1(o,r),o in cc)return;cc[o]=!0;const l=o.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let f=s.length-1;f>=0;f--){const p=s[f];if(p.href===o&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":p1,l||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),l)return new Promise((f,p)=>{c.addEventListener("load",f),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})}))}return i.then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},Xs=({text:e,language:t,readOnly:n,highlight:r,revealLine:i,lineNumbers:s,isFocused:o,focusOnChange:l,wrapLines:a,onChange:u})=>{const[c,f]=pn(),[p]=L.useState(g1(()=>import("./codeMirrorModule-BK3t1EEu.js"),__vite__mapDeps([0,1]),import.meta.url).then(x=>x.default)),v=L.useRef(null),[y,w]=L.useState();return L.useEffect(()=>{(async()=>{var _,N;const x=await p,h=f.current;if(!h)return;let m="";if(t==="javascript"&&(m="javascript"),t==="python"&&(m="python"),t==="java"&&(m="text/x-java"),t==="csharp"&&(m="text/x-csharp"),t==="html"&&(m="htmlmixed"),t==="css"&&(m="css"),v.current&&m===v.current.cm.getOption("mode")&&!!n===v.current.cm.getOption("readOnly")&&s===v.current.cm.getOption("lineNumbers")&&a===v.current.cm.getOption("lineWrapping"))return;(N=(_=v.current)==null?void 0:_.cm)==null||N.getWrapperElement().remove();const g=x(h,{value:"",mode:m,readOnly:!!n,lineNumbers:s,lineWrapping:a});return v.current={cm:g},o&&g.focus(),w(g),g})()},[p,y,f,t,s,a,n,o]),L.useEffect(()=>{v.current&&v.current.cm.setSize(c.width,c.height)},[c]),L.useLayoutEffect(()=>{var m;if(!y)return;let x=!1;if(y.getValue()!==e&&(y.setValue(e),x=!0,l&&(y.execCommand("selectAll"),y.focus())),x||JSON.stringify(r)!==JSON.stringify(v.current.highlight)){for(const _ of v.current.highlight||[])y.removeLineClass(_.line-1,"wrap");for(const _ of r||[])y.addLineClass(_.line-1,"wrap",`source-line-${_.type}`);for(const _ of v.current.widgets||[])y.removeLineWidget(_);const g=[];for(const _ of r||[]){if(_.type!=="error")continue;const N=(m=v.current)==null?void 0:m.cm.getLine(_.line-1);if(N){const C=document.createElement("div");C.className="source-line-error-underline",C.innerHTML=" ".repeat(N.length||1),g.push(y.addLineWidget(_.line,C,{above:!0,coverGutter:!1}))}const k=document.createElement("div");k.innerHTML=ti(_.message||""),k.className="source-line-error-widget",g.push(y.addLineWidget(_.line,k,{above:!0,coverGutter:!1}))}v.current.highlight=r,v.current.widgets=g}typeof i=="number"&&v.current.cm.lineCount()>=i&&y.scrollIntoView({line:Math.max(0,i-1),ch:0},50);let h;return u&&(h=()=>u(y.getValue()),y.on("change",h)),()=>{h&&y.off("change",h)}},[y,e,r,i,l,u]),d.jsx("div",{className:"cm-wrapper",ref:f})},v1=({resource:e,onClose:t})=>{const[n,r]=L.useState("request");return d.jsx(Ml,{dataTestId:"network-request-details",leftToolbar:[d.jsx(Bn,{icon:"close",title:"Close",onClick:t})],tabs:[{id:"request",title:"Request",render:()=>d.jsx(y1,{resource:e})},{id:"response",title:"Response",render:()=>d.jsx(w1,{resource:e})},{id:"body",title:"Body",render:()=>d.jsx(x1,{resource:e})}],selectedTab:n,setSelectedTab:r})},y1=({resource:e})=>{const[t,n]=L.useState(null);return L.useEffect(()=>{(async()=>{if(e.request.postData){const i=e.request.headers.find(l=>l.name==="Content-Type"),s=i?i.value:"",o=kh(s);if(e.request.postData._sha1){const l=await fetch(`sha1/${e.request.postData._sha1}`);n({text:jl(await l.text(),s),language:o})}else n({text:jl(e.request.postData.text,s),language:o})}})()},[e]),d.jsxs("div",{className:"network-request-details-tab",children:[d.jsx("div",{className:"network-request-details-header",children:"URL"}),d.jsx("div",{className:"network-request-details-url",children:e.request.url}),d.jsx("div",{className:"network-request-details-header",children:"Request Headers"}),d.jsx("div",{className:"network-request-details-headers",children:e.request.headers.map(r=>`${r.name}: ${r.value}`).join(` +`)}),t&&d.jsx("div",{className:"network-request-details-header",children:"Request Body"}),t&&d.jsx(Xs,{text:t.text,language:t.language,readOnly:!0,lineNumbers:!0})]})},w1=({resource:e})=>d.jsxs("div",{className:"network-request-details-tab",children:[d.jsx("div",{className:"network-request-details-header",children:"Response Headers"}),d.jsx("div",{className:"network-request-details-headers",children:e.response.headers.map(t=>`${t.name}: ${t.value}`).join(` +`)})]}),x1=({resource:e})=>{const[t,n]=L.useState(null);return L.useEffect(()=>{(async()=>{if(e.response.content._sha1){const i=e.response.content.mimeType.includes("image"),s=await fetch(`sha1/${e.response.content._sha1}`);if(i){const o=await s.blob(),l=new FileReader,a=new Promise(u=>l.onload=u);l.readAsDataURL(o),n({dataUrl:(await a).target.result})}else{const o=jl(await s.text(),e.response.content.mimeType),l=kh(e.response.content.mimeType);n({text:o,language:l})}}})()},[e]),d.jsxs("div",{className:"network-request-details-tab",children:[!e.response.content._sha1&&d.jsx("div",{children:"Response body is not available for this request."}),t&&t.dataUrl&&d.jsx("img",{draggable:"false",src:t.dataUrl}),t&&t.text&&d.jsx(Xs,{text:t.text,language:t.language,readOnly:!0,lineNumbers:!0})]})};function jl(e,t){if(e===null)return"Loading...";const n=e;if(n==="")return"";if(t.includes("application/json"))try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}return t.includes("application/x-www-form-urlencoded")?decodeURIComponent(n):n}function kh(e){if(e.includes("javascript")||e.includes("json"))return"javascript";if(e.includes("html"))return"html";if(e.includes("css"))return"css"}const Th=({cursor:e,onPaneMouseMove:t,onPaneMouseUp:n,onPaneDoubleClick:r})=>(zt.useEffect(()=>{const i=document.createElement("div");return i.style.position="fixed",i.style.top="0",i.style.right="0",i.style.bottom="0",i.style.left="0",i.style.zIndex="9999",i.style.cursor=e,document.body.appendChild(i),t&&i.addEventListener("mousemove",t),n&&i.addEventListener("mouseup",n),r&&document.body.addEventListener("dblclick",r),()=>{t&&i.removeEventListener("mousemove",t),n&&i.removeEventListener("mouseup",n),r&&document.body.removeEventListener("dblclick",r),document.body.removeChild(i)}},[e,t,n,r]),d.jsx(d.Fragment,{})),S1={position:"absolute",top:0,right:0,bottom:0,left:0},Ch=({orientation:e,offsets:t,setOffsets:n,resizerColor:r,resizerWidth:i,minColumnWidth:s})=>{const o=s||0,[l,a]=zt.useState(null),[u,c]=pn(),f={position:"absolute",right:e==="horizontal"?void 0:0,bottom:e==="horizontal"?0:void 0,width:e==="horizontal"?7:void 0,height:e==="horizontal"?void 0:7,borderTopWidth:e==="horizontal"?void 0:(7-i)/2,borderRightWidth:e==="horizontal"?(7-i)/2:void 0,borderBottomWidth:e==="horizontal"?void 0:(7-i)/2,borderLeftWidth:e==="horizontal"?(7-i)/2:void 0,borderColor:"transparent",borderStyle:"solid",cursor:e==="horizontal"?"ew-resize":"ns-resize"};return d.jsxs("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:-(7-i)/2,zIndex:1e3,pointerEvents:"none"},ref:c,children:[!!l&&d.jsx(Th,{cursor:e==="horizontal"?"ew-resize":"ns-resize",onPaneMouseUp:()=>a(null),onPaneMouseMove:p=>{if(!p.buttons)a(null);else if(l){const v=e==="horizontal"?p.clientX-l.clientX:p.clientY-l.clientY,y=l.offset+v,w=l.index>0?t[l.index-1]:0,x=e==="horizontal"?u.width:u.height,h=Math.min(Math.max(w+o,y),x-o)-t[l.index];for(let m=l.index;md.jsx("div",{style:{...f,top:e==="horizontal"?0:p,left:e==="horizontal"?p:0,pointerEvents:"initial"},onMouseDown:y=>a({clientX:y.clientX,clientY:y.clientY,offset:p,index:v}),children:d.jsx("div",{style:{...S1,background:r}})}))]})};function _1(e){const t=[];for(let s=0;s{var o,l;(l=e.setSorting)==null||l.call(e,{by:s,negate:((o=e.sorting)==null?void 0:o.by)===s?!e.sorting.negate:!1})},[e]);return d.jsxs("div",{className:`grid-view ${e.name}-grid-view`,children:[d.jsx(Ch,{orientation:"horizontal",offsets:n,setOffsets:r,resizerColor:"var(--vscode-panel-border)",resizerWidth:1,minColumnWidth:25}),d.jsxs("div",{className:"vbox",children:[d.jsx("div",{className:"grid-view-header",children:e.columns.map((s,o)=>d.jsxs("div",{className:"grid-view-header-cell "+E1(s,e.sorting),style:{width:n[o]-(n[o-1]||0)},onClick:()=>e.setSorting&&i(s),children:[d.jsx("span",{className:"grid-view-header-cell-title",children:e.columnTitle(s)}),d.jsx("span",{className:"codicon codicon-triangle-up"}),d.jsx("span",{className:"codicon codicon-triangle-down"})]}))}),d.jsx(ai,{name:e.name,items:e.items,id:e.id,render:(s,o)=>d.jsx(d.Fragment,{children:e.columns.map((l,a)=>{const{body:u,title:c}=e.render(s,l,o);return d.jsx("div",{className:`grid-view-cell grid-view-column-${String(l)}`,title:c,style:{width:n[a]-(n[a-1]||0)},children:u})})}),icon:e.icon,indent:e.indent,isError:e.isError,isWarning:e.isWarning,isInfo:e.isInfo,selectedItem:e.selectedItem,onAccepted:e.onAccepted,onSelected:e.onSelected,onLeftArrow:e.onLeftArrow,onRightArrow:e.onRightArrow,onHighlighted:e.onHighlighted,onIconClicked:e.onIconClicked,noItemsMessage:e.noItemsMessage,dataTestId:e.dataTestId,noHighlightOnHover:e.noHighlightOnHover})]})]})}function E1(e,t){return e===(t==null?void 0:t.by)?" filter-"+(t.negate?"negative":"positive"):""}const k1=_1;function T1(e,t){return{resources:L.useMemo(()=>((e==null?void 0:e.resources)||[]).filter(s=>t?!!s._monotonicTime&&s._monotonicTime>=t.minimum&&s._monotonicTime<=t.maximum:!0),[e,t])}}const C1=({boundaries:e,networkModel:t,onEntryHovered:n})=>{const[r,i]=L.useState(void 0),[s,o]=L.useState(void 0),{renderedEntries:l}=L.useMemo(()=>{const u=t.resources.map(c=>A1(c,e));return r&&j1(u,r),{renderedEntries:u}},[t.resources,r,e]);if(!t.resources.length)return d.jsx(rr,{text:"No network calls"});const a=d.jsx(k1,{name:"network",items:l,selectedItem:s,onSelected:u=>o(u),onHighlighted:u=>n(u==null?void 0:u.resource),columns:s?["name"]:["name","method","status","contentType","duration","size","start","route"],columnTitle:N1,columnWidth:b1,isError:u=>u.status.code>=400,isInfo:u=>!!u.route,render:(u,c)=>L1(u,c),sorting:r,setSorting:i});return d.jsxs(d.Fragment,{children:[!s&&a,s&&d.jsxs(Es,{sidebarSize:200,sidebarIsFirst:!0,orientation:"horizontal",children:[d.jsx(v1,{resource:s.resource,onClose:()=>o(void 0)}),a]})]})},N1=e=>e==="name"?"Name":e==="method"?"Method":e==="status"?"Status":e==="contentType"?"Content Type":e==="duration"?"Duration":e==="size"?"Size":e==="start"?"Start":e==="route"?"Route":"",b1=e=>e==="name"?200:e==="method"||e==="status"?60:e==="contentType"?200:100,L1=(e,t)=>t==="name"?{body:e.name.name,title:e.name.url}:t==="method"?{body:e.method}:t==="status"?{body:e.status.code>0?e.status.code:"",title:e.status.text}:t==="contentType"?{body:e.contentType}:t==="duration"?{body:Qe(e.duration)}:t==="size"?{body:nm(e.size)}:t==="start"?{body:Qe(e.start)}:t==="route"?{body:e.route}:{body:""},A1=(e,t)=>{const n=M1(e);let r;try{const o=new URL(e.request.url);r=o.pathname.substring(o.pathname.lastIndexOf("/")+1),r||(r=o.host)}catch{r=e.request.url}let i=e.response.content.mimeType;const s=i.match(/^(.*);\s*charset=.*$/);return s&&(i=s[1]),{name:{name:r,url:e.request.url},method:e.request.method,status:{code:e.response.status,text:e.response.statusText},contentType:i,duration:e.time,size:e.response._transferSize>0?e.response._transferSize:e.response.bodySize,start:e._monotonicTime-t.minimum,route:n,resource:e}};function M1(e){return e._wasAborted?"aborted":e._wasContinued?"continued":e._wasFulfilled?"fulfilled":e._apiRequest?"api":""}function j1(e,t){const n=I1(t==null?void 0:t.by);n&&e.sort(n),t.negate&&e.reverse()}function I1(e){if(e==="start")return(t,n)=>t.start-n.start;if(e==="duration")return(t,n)=>t.duration-n.duration;if(e==="status")return(t,n)=>t.status.code-n.status.code;if(e==="method")return(t,n)=>{const r=t.method,i=n.method;return r.localeCompare(i)};if(e==="size")return(t,n)=>t.size-n.size;if(e==="contentType")return(t,n)=>t.contentType.localeCompare(n.contentType);if(e==="name")return(t,n)=>t.name.name.localeCompare(n.name.name);if(e==="route")return(t,n)=>t.route.localeCompare(n.route)}const dc={queryAll(e,t){t.startsWith("/")&&e.nodeType!==Node.DOCUMENT_NODE&&(t="."+t);const n=[],r=e.ownerDocument||e;if(!r)return n;const i=r.evaluate(t,e,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let s=i.iterateNext();s;s=i.iterateNext())s.nodeType===Node.ELEMENT_NODE&&n.push(s);return n}};let Nh="";function P1(e){Nh=e}function Qs(e,t){for(;t;){if(e.contains(t))return!0;t=Lh(t)}return!1}function Ee(e){if(e.parentElement)return e.parentElement;if(e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function bh(e){let t=e;for(;t.parentNode;)t=t.parentNode;if(t.nodeType===11||t.nodeType===9)return t}function Lh(e){for(;e.parentElement;)e=e.parentElement;return Ee(e)}function Cr(e,t,n){for(;e;){const r=e.closest(t);if(n&&r!==n&&(r!=null&&r.contains(n)))return;if(r)return r;e=Lh(e)}}function ir(e,t){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,t):void 0}function Ah(e,t){if(t=t??ir(e),!t)return!0;if(Element.prototype.checkVisibility&&Nh!=="webkit"){if(!e.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!1}))return!1}else{const n=e.closest("details,summary");if(n!==e&&(n==null?void 0:n.nodeName)==="DETAILS"&&!n.open)return!1}return t.visibility==="visible"}function Cs(e){const t=ir(e);if(!t)return!0;if(t.display==="contents"){for(let r=e.firstChild;r;r=r.nextSibling)if(r.nodeType===1&&Cs(r)||r.nodeType===3&&Mh(r))return!0;return!1}if(!Ah(e,t))return!1;const n=e.getBoundingClientRect();return n.width>0&&n.height>0}function Mh(e){const t=e.ownerDocument.createRange();t.selectNode(e);const n=t.getBoundingClientRect();return n.width>0&&n.height>0}function fc(e){return e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}const hc="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",R1=["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"];function jh(e){return R1.some(t=>e.hasAttribute(t))}const Co={A:e=>e.hasAttribute("href")?"link":null,AREA:e=>e.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:e=>Cr(e,hc)?null:"contentinfo",FORM:e=>fc(e)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:e=>Cr(e,hc)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:e=>e.getAttribute("alt")===""&&!jh(e)&&Number.isNaN(Number(String(e.getAttribute("tabindex"))))?"presentation":"img",INPUT:e=>{const t=e.type.toLowerCase();if(t==="search")return e.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(t)){const n=Ks(e,e.getAttribute("list"))[0];return n&&n.tagName==="DATALIST"?"combobox":"textbox"}return t==="hidden"?"":{button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"}[t]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SECTION:e=>fc(e)?"region":null,SELECT:e=>e.hasAttribute("multiple")||e.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:e=>{const t=Cr(e,"table"),n=t?Ns(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:e=>{if(e.getAttribute("scope")==="col")return"columnheader";if(e.getAttribute("scope")==="row")return"rowheader";const t=Cr(e,"table"),n=t?Ns(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"},$1={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function pc(e){var r;const t=((r=Co[e.tagName.toUpperCase()])==null?void 0:r.call(Co,e))||"";if(!t)return null;let n=e;for(;n;){const i=Ee(n),s=$1[n.tagName];if(!s||!i||!s.includes(i.tagName))break;const o=Ns(i);if((o==="none"||o==="presentation")&&!Ih(i))return o;n=i}return t}const O1=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","command","complementary","composite","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","input","insertion","landmark","link","list","listbox","listitem","log","main","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","range","region","roletype","row","rowgroup","rowheader","scrollbar","search","searchbox","section","sectionhead","select","separator","slider","spinbutton","status","strong","structure","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem","widget","window"],z1=["command","composite","input","landmark","range","roletype","section","sectionhead","select","structure","widget","window"],D1=O1.filter(e=>!z1.includes(e));function Ns(e){return(e.getAttribute("role")||"").split(" ").map(n=>n.trim()).find(n=>D1.includes(n))||null}function Ih(e){return!jh(e)}function $e(e){const t=Ns(e);return!t||(t==="none"||t==="presentation")&&Ih(e)?pc(e):t}function Ph(e){return e===null?void 0:e.toLowerCase()==="true"}function Oa(e){if(["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(e.tagName))return!0;const t=ir(e),n=e.nodeName==="SLOT";if((t==null?void 0:t.display)==="contents"&&!n){for(let i=e.firstChild;i;i=i.nextSibling)if(i.nodeType===1&&!Oa(i)||i.nodeType===3&&Mh(i))return!1;return!0}return!(e.nodeName==="OPTION"&&!!e.closest("select"))&&!n&&!Ah(e,t)?!0:Rh(e)}function Rh(e){let t=jt==null?void 0:jt.get(e);if(t===void 0){if(t=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(t=!0),!t){const n=ir(e);t=!n||n.display==="none"||Ph(e.getAttribute("aria-hidden"))===!0}if(!t){const n=Ee(e);n&&(t=Rh(n))}jt==null||jt.set(e,t)}return t}function Ks(e,t){if(!t)return[];const n=bh(e);if(!n)return[];try{const r=t.split(" ").filter(s=>!!s),i=new Set;for(const s of r){const o=n.querySelector("#"+CSS.escape(s));o&&i.add(o)}return[...i]}catch{return[]}}function H1(e){return e.replace(/\r\n/g,` +`).replace(/\u00A0/g," ").replace(/\s\s+/g," ").trim()}function mc(e,t){const n=[...e.querySelectorAll(t)];for(const r of Ks(e,e.getAttribute("aria-owns")))r.matches(t)&&n.push(r),n.push(...r.querySelectorAll(t));return n}function gc(e,t){const n=t==="::before"?Fa:Ua;if(n!=null&&n.has(e))return(n==null?void 0:n.get(e))||"";const r=ir(e,t),i=F1(r);return n&&n.set(e,i),i}function F1(e){if(!e)return"";const t=e.content;if(t[0]==="'"&&t[t.length-1]==="'"||t[0]==='"'&&t[t.length-1]==='"'){const n=t.substring(1,t.length-1);return(e.display||"inline")!=="inline"?" "+n+" ":n}return""}function $h(e){const t=e.getAttribute("aria-labelledby");return t===null?null:Ks(e,t)}function U1(e,t){const n=["button","cell","checkbox","columnheader","gridcell","heading","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"].includes(e),r=t&&["","caption","code","contentinfo","definition","deletion","emphasis","insertion","list","listitem","mark","none","paragraph","presentation","region","row","rowgroup","section","strong","subscript","superscript","table","term","time"].includes(e);return n||r}function za(e,t){const n=t?Ha:Da;let r=n==null?void 0:n.get(e);return r===void 0&&(r="",["caption","code","definition","deletion","emphasis","generic","insertion","mark","paragraph","presentation","strong","subscript","suggestion","superscript","term","time"].includes($e(e)||"")||(r=H1(wt(e,{includeHidden:t,visitedElements:new Set,embeddedInLabelledBy:"none",embeddedInLabel:"none",embeddedInTextAlternativeElement:!1,embeddedInTargetElement:"self"}))),n==null||n.set(e,r)),r}function wt(e,t){if(t.visitedElements.has(e))return"";const n={...t,embeddedInLabel:t.embeddedInLabel==="self"?"descendant":t.embeddedInLabel,embeddedInLabelledBy:t.embeddedInLabelledBy==="self"?"descendant":t.embeddedInLabelledBy,embeddedInTargetElement:t.embeddedInTargetElement==="self"?"descendant":t.embeddedInTargetElement};if(!t.includeHidden&&t.embeddedInLabelledBy!=="self"&&Oa(e))return t.visitedElements.add(e),"";const r=$h(e);if(t.embeddedInLabelledBy==="none"){const o=(r||[]).map(l=>wt(l,{...t,embeddedInLabelledBy:"self",embeddedInTargetElement:"none",embeddedInLabel:"none",embeddedInTextAlternativeElement:!1})).join(" ");if(o)return o}const i=$e(e)||"";if(t.embeddedInLabel!=="none"||t.embeddedInLabelledBy!=="none"){const o=[...e.labels||[]].includes(e),l=(r||[]).includes(e);if(!o&&!l){if(i==="textbox")return t.visitedElements.add(e),e.tagName==="INPUT"||e.tagName==="TEXTAREA"?e.value:e.textContent||"";if(["combobox","listbox"].includes(i)){t.visitedElements.add(e);let a;if(e.tagName==="SELECT")a=[...e.selectedOptions],!a.length&&e.options.length&&a.push(e.options[0]);else{const u=i==="combobox"?mc(e,"*").find(c=>$e(c)==="listbox"):e;a=u?mc(u,'[aria-selected="true"]').filter(c=>$e(c)==="option"):[]}return a.map(u=>wt(u,n)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(i))return t.visitedElements.add(e),e.hasAttribute("aria-valuetext")?e.getAttribute("aria-valuetext")||"":e.hasAttribute("aria-valuenow")?e.getAttribute("aria-valuenow")||"":e.getAttribute("value")||"";if(["menu"].includes(i))return t.visitedElements.add(e),""}}const s=e.getAttribute("aria-label")||"";if(s.trim())return t.visitedElements.add(e),s;if(!["presentation","none"].includes(i)){if(e.tagName==="INPUT"&&["button","submit","reset"].includes(e.type)){t.visitedElements.add(e);const o=e.value||"";return o.trim()?o:e.type==="submit"?"Submit":e.type==="reset"?"Reset":e.getAttribute("title")||""}if(e.tagName==="INPUT"&&e.type==="image"){t.visitedElements.add(e);const o=e.labels||[];if(o.length&&t.embeddedInLabelledBy==="none")return bi(o,t);const l=e.getAttribute("alt")||"";if(l.trim())return l;const a=e.getAttribute("title")||"";return a.trim()?a:"Submit"}if(!r&&e.tagName==="BUTTON"){t.visitedElements.add(e);const o=e.labels||[];if(o.length)return bi(o,t)}if(!r&&e.tagName==="OUTPUT"){t.visitedElements.add(e);const o=e.labels||[];return o.length?bi(o,t):e.getAttribute("title")||""}if(!r&&(e.tagName==="TEXTAREA"||e.tagName==="SELECT"||e.tagName==="INPUT")){t.visitedElements.add(e);const o=e.labels||[];if(o.length)return bi(o,t);const l=e.tagName==="INPUT"&&["text","password","search","tel","email","url"].includes(e.type)||e.tagName==="TEXTAREA",a=e.getAttribute("placeholder")||"",u=e.getAttribute("title")||"";return!l||u?u:a}if(!r&&e.tagName==="FIELDSET"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="LEGEND")return wt(l,{...n,embeddedInTextAlternativeElement:!0});return e.getAttribute("title")||""}if(!r&&e.tagName==="FIGURE"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="FIGCAPTION")return wt(l,{...n,embeddedInTextAlternativeElement:!0});return e.getAttribute("title")||""}if(e.tagName==="IMG"){t.visitedElements.add(e);const o=e.getAttribute("alt")||"";return o.trim()?o:e.getAttribute("title")||""}if(e.tagName==="TABLE"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="CAPTION")return wt(l,{...n,embeddedInTextAlternativeElement:!0});const o=e.getAttribute("summary")||"";if(o)return o}if(e.tagName==="AREA"){t.visitedElements.add(e);const o=e.getAttribute("alt")||"";return o.trim()?o:e.getAttribute("title")||""}if(e.tagName.toUpperCase()==="SVG"||e.ownerSVGElement){t.visitedElements.add(e);for(let o=e.firstElementChild;o;o=o.nextElementSibling)if(o.tagName.toUpperCase()==="TITLE"&&o.ownerSVGElement)return wt(o,{...n,embeddedInLabelledBy:"self"})}if(e.ownerSVGElement&&e.tagName.toUpperCase()==="A"){const o=e.getAttribute("xlink:title")||"";if(o.trim())return t.visitedElements.add(e),o}}if(U1(i,t.embeddedInTargetElement==="descendant")||t.embeddedInLabelledBy!=="none"||t.embeddedInLabel!=="none"||t.embeddedInTextAlternativeElement){t.visitedElements.add(e);const o=[],l=(c,f)=>{var p;if(!(f&&c.assignedSlot))if(c.nodeType===1){const v=((p=ir(c))==null?void 0:p.display)||"inline";let y=wt(c,n);(v!=="inline"||c.nodeName==="BR")&&(y=" "+y+" "),o.push(y)}else c.nodeType===3&&o.push(c.textContent||"")};o.push(gc(e,"::before"));const a=e.nodeName==="SLOT"?e.assignedNodes():[];if(a.length)for(const c of a)l(c,!1);else{for(let c=e.firstChild;c;c=c.nextSibling)l(c,!0);if(e.shadowRoot)for(let c=e.shadowRoot.firstChild;c;c=c.nextSibling)l(c,!0);for(const c of Ks(e,e.getAttribute("aria-owns")))l(c,!0)}o.push(gc(e,"::after"));const u=o.join("");if(u.trim())return u}if(!["presentation","none"].includes(i)||e.tagName==="IFRAME"){t.visitedElements.add(e);const o=e.getAttribute("title")||"";if(o.trim())return o}return t.visitedElements.add(e),""}const Oh=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function V1(e){return e.tagName==="OPTION"?e.selected:Oh.includes($e(e)||"")?Ph(e.getAttribute("aria-selected"))===!0:!1}const zh=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function B1(e){const t=Dh(e,!0);return t==="error"?!1:t}function Dh(e,t){if(t&&e.tagName==="INPUT"&&e.indeterminate)return"mixed";if(e.tagName==="INPUT"&&["checkbox","radio"].includes(e.type))return e.checked;if(zh.includes($e(e)||"")){const n=e.getAttribute("aria-checked");return n==="true"?!0:t&&n==="mixed"?"mixed":!1}return"error"}const Hh=["button"];function W1(e){if(Hh.includes($e(e)||"")){const t=e.getAttribute("aria-pressed");if(t==="true")return!0;if(t==="mixed")return"mixed"}return!1}const Fh=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function q1(e){if(e.tagName==="DETAILS")return e.open;if(Fh.includes($e(e)||"")){const t=e.getAttribute("aria-expanded");return t===null?"none":t==="true"}return"none"}const Uh=["heading","listitem","row","treeitem"];function X1(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[e.tagName];if(t)return t;if(Uh.includes($e(e)||"")){const n=e.getAttribute("aria-level"),r=n===null?Number.NaN:Number(n);if(Number.isInteger(r)&&r>=1)return r}return 0}const Q1=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function Vh(e){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(e.tagName)&&(e.hasAttribute("disabled")||Bh(e))?!0:Wh(e)}function Bh(e){return e?e.tagName==="FIELDSET"&&e.hasAttribute("disabled")?!0:Bh(e.parentElement):!1}function Wh(e){if(!e)return!1;if(Q1.includes($e(e)||"")){const t=(e.getAttribute("aria-disabled")||"").toLowerCase();if(t==="true")return!0;if(t==="false")return!1}return Wh(Ee(e))}function bi(e,t){return[...e].map(n=>wt(n,{...t,embeddedInLabel:"self",embeddedInTextAlternativeElement:!1,embeddedInLabelledBy:"none",embeddedInTargetElement:"none"})).filter(n=>!!n).join(" ")}let Da,Ha,jt,Fa,Ua,qh=0;function Xh(){++qh,Da??(Da=new Map),Ha??(Ha=new Map),jt??(jt=new Map),Fa??(Fa=new Map),Ua??(Ua=new Map)}function Qh(){--qh||(Da=void 0,Ha=void 0,jt=void 0,Fa=void 0,Ua=void 0)}function Kh(e,t){for(const n of t.jsonPath)e!=null&&(e=e[n]);return Gh(e,t)}function Gh(e,t){const n=typeof e=="string"&&!t.caseSensitive?e.toUpperCase():e,r=typeof t.value=="string"&&!t.caseSensitive?t.value.toUpperCase():t.value;return t.op===""?!!n:t.op==="="?r instanceof RegExp?typeof n=="string"&&!!n.match(r):n===r:typeof n!="string"||typeof r!="string"?!1:t.op==="*="?n.includes(r):t.op==="^="?n.startsWith(r):t.op==="$="?n.endsWith(r):t.op==="|="?n===r||n.startsWith(r+"-"):t.op==="~="?n.split(" ").includes(r):!1}function Va(e){const t=e.ownerDocument;return e.nodeName==="SCRIPT"||e.nodeName==="NOSCRIPT"||e.nodeName==="STYLE"||t.head&&t.head.contains(e)}function Me(e,t){let n=e.get(t);if(n===void 0){if(n={full:"",normalized:"",immediate:[]},!Va(t)){let r="";if(t instanceof HTMLInputElement&&(t.type==="submit"||t.type==="button"))n={full:t.value,normalized:Fe(t.value),immediate:[t.value]};else{for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType===Node.TEXT_NODE?(n.full+=i.nodeValue||"",r+=i.nodeValue||""):(r&&n.immediate.push(r),r="",i.nodeType===Node.ELEMENT_NODE&&(n.full+=Me(e,i).full));r&&n.immediate.push(r),t.shadowRoot&&(n.full+=Me(e,t.shadowRoot).full),n.full&&(n.normalized=Fe(n.full))}}e.set(t,n)}return n}function Gs(e,t,n){if(Va(t)||!n(Me(e,t)))return"none";for(let r=t.firstChild;r;r=r.nextSibling)if(r.nodeType===Node.ELEMENT_NODE&&n(Me(e,r)))return"selfAndChildren";return t.shadowRoot&&n(Me(e,t.shadowRoot))?"selfAndChildren":"self"}function Yh(e,t){const n=$h(t);if(n)return n.map(s=>Me(e,s));const r=t.getAttribute("aria-label");if(r!==null&&r.trim())return[{full:r,normalized:Fe(r),immediate:[r]}];const i=t.nodeName==="INPUT"&&t.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(t.nodeName)||i){const s=t.labels;if(s)return[...s].map(o=>Me(e,o))}return[]}function vc(e){return e.displayName||e.name||"Anonymous"}function K1(e){if(e.type)switch(typeof e.type){case"function":return vc(e.type);case"string":return e.type;case"object":return e.type.displayName||(e.type.render?vc(e.type.render):"")}if(e._currentElement){const t=e._currentElement.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Anonymous"}return""}function G1(e){var t;return e.key??((t=e._currentElement)==null?void 0:t.key)}function Y1(e){if(e.child){const n=[];for(let r=e.child;r;r=r.sibling)n.push(r);return n}if(!e._currentElement)return[];const t=n=>{var i;const r=(i=n._currentElement)==null?void 0:i.type;return typeof r=="function"||typeof r=="string"};if(e._renderedComponent){const n=e._renderedComponent;return t(n)?[n]:[]}return e._renderedChildren?[...Object.values(e._renderedChildren)].filter(t):[]}function J1(e){var r;const t=e.memoizedProps||((r=e._currentElement)==null?void 0:r.props);if(!t||typeof t=="string")return t;const n={...t};return delete n.children,n}function Jh(e){var r;const t={key:G1(e),name:K1(e),children:Y1(e).map(Jh),rootElements:[],props:J1(e)},n=e.stateNode||e._hostNode||((r=e._renderedComponent)==null?void 0:r._hostNode);if(n instanceof Element)t.rootElements.push(n);else for(const i of t.children)t.rootElements.push(...i.rootElements);return t}function Zh(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)Zh(r,t,n);return n}function ep(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT);do{const i=r.currentNode,s=i,o=Object.keys(s).find(a=>a.startsWith("__reactContainer")&&s[a]!==null);if(o)t.push(s[o].stateNode.current);else{const a="_reactRootContainer";s.hasOwnProperty(a)&&s[a]!==null&&t.push(s[a]._internalRoot.current)}if(i instanceof Element&&i.hasAttribute("data-reactroot"))for(const a of Object.keys(i))(a.startsWith("__reactInternalInstance")||a.startsWith("__reactFiber"))&&t.push(i[a]);const l=i instanceof Element?i.shadowRoot:null;l&&ep(l,t)}while(r.nextNode());return t}const Z1={queryAll(e,t){const{name:n,attributes:r}=ln(t,!1),o=ep(e.ownerDocument||e).map(a=>Jh(a)).map(a=>Zh(a,u=>{const c=u.props??{};if(u.key!==void 0&&(c.key=u.key),n&&u.name!==n||u.rootElements.some(f=>!Qs(e,f)))return!1;for(const f of r)if(!Kh(c,f))return!1;return!0})).flat(),l=new Set;for(const a of o)for(const u of a.rootElements)l.add(u);return[...l]}};function tp(e,t){const n=e.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let r=n.substring(n.lastIndexOf("/")+1);return t&&r.endsWith(t)&&(r=r.substring(0,r.length-t.length)),r}function ev(e,t){return t?t.toUpperCase():""}const tv=/(?:^|[-_/])(\w)/g,np=e=>e&&e.replace(tv,ev);function nv(e){function t(c){const f=c.name||c._componentTag||c.__playwright_guessedName;if(f)return f;const p=c.__file;if(p)return np(tp(p,".vue"))}function n(c,f){return c.type.__playwright_guessedName=f,f}function r(c){var p,v,y,w;const f=t(c.type||{});if(f)return f;if(c.root===c)return"Root";for(const x in(v=(p=c.parent)==null?void 0:p.type)==null?void 0:v.components)if(((y=c.parent)==null?void 0:y.type.components[x])===c.type)return n(c,x);for(const x in(w=c.appContext)==null?void 0:w.components)if(c.appContext.components[x]===c.type)return n(c,x);return"Anonymous Component"}function i(c){return c._isBeingDestroyed||c.isUnmounted}function s(c){return c.subTree.type.toString()==="Symbol(Fragment)"}function o(c){const f=[];return c.component&&f.push(c.component),c.suspense&&f.push(...o(c.suspense.activeBranch)),Array.isArray(c.children)&&c.children.forEach(p=>{p.component?f.push(p.component):f.push(...o(p))}),f.filter(p=>{var v;return!i(p)&&!((v=p.type.devtools)!=null&&v.hide)})}function l(c){return s(c)?a(c.subTree):[c.subTree.el]}function a(c){if(!c.children)return[];const f=[];for(let p=0,v=c.children.length;p!!o.component).map(o=>o.component):[]}function i(s){return{name:n(s),children:r(s).map(i),rootElements:[s.$el],props:s._props}}return i(e)}function rp(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)rp(r,t,n);return n}function ip(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT),i=new Set;do{const s=r.currentNode;s.__vue__&&i.add(s.__vue__.$root),s.__vue_app__&&s._vnode&&s._vnode.component&&t.push({root:s._vnode.component,version:3});const o=s instanceof Element?s.shadowRoot:null;o&&ip(o,t)}while(r.nextNode());for(const s of i)t.push({version:2,root:s});return t}const iv={queryAll(e,t){const n=e.ownerDocument||e,{name:r,attributes:i}=ln(t,!1),l=ip(n).map(u=>u.version===3?nv(u.root):rv(u.root)).map(u=>rp(u,c=>{if(r&&c.name!==r||c.rootElements.some(f=>!Qs(e,f)))return!1;for(const f of i)if(!Kh(c.props,f))return!1;return!0})).flat(),a=new Set;for(const u of l)for(const c of u.rootElements)a.add(c);return[...a]}},sp=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];sp.sort();function yr(e,t,n){if(!t.includes(n))throw new Error(`"${e}" attribute is only supported for roles: ${t.slice().sort().map(r=>`"${r}"`).join(", ")}`)}function wn(e,t){if(e.op!==""&&!t.includes(e.value))throw new Error(`"${e.name}" must be one of ${t.map(n=>JSON.stringify(n)).join(", ")}`)}function xn(e,t){if(!t.includes(e.op))throw new Error(`"${e.name}" does not support "${e.op}" matcher`)}function sv(e,t){const n={role:t};for(const r of e)switch(r.name){case"checked":{yr(r.name,zh,t),wn(r,[!0,!1,"mixed"]),xn(r,["","="]),n.checked=r.op===""?!0:r.value;break}case"pressed":{yr(r.name,Hh,t),wn(r,[!0,!1,"mixed"]),xn(r,["","="]),n.pressed=r.op===""?!0:r.value;break}case"selected":{yr(r.name,Oh,t),wn(r,[!0,!1]),xn(r,["","="]),n.selected=r.op===""?!0:r.value;break}case"expanded":{yr(r.name,Fh,t),wn(r,[!0,!1]),xn(r,["","="]),n.expanded=r.op===""?!0:r.value;break}case"level":{if(yr(r.name,Uh,t),typeof r.value=="string"&&(r.value=+r.value),r.op!=="="||typeof r.value!="number"||Number.isNaN(r.value))throw new Error('"level" attribute must be compared to a number');n.level=r.value;break}case"disabled":{wn(r,[!0,!1]),xn(r,["","="]),n.disabled=r.op===""?!0:r.value;break}case"name":{if(r.op==="")throw new Error('"name" attribute must have a value');if(typeof r.value!="string"&&!(r.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');n.name=r.value,n.nameOp=r.op,n.exact=r.caseSensitive;break}case"include-hidden":{wn(r,[!0,!1]),xn(r,["","="]),n.includeHidden=r.op===""?!0:r.value;break}default:throw new Error(`Unknown attribute "${r.name}", must be one of ${sp.map(i=>`"${i}"`).join(", ")}.`)}return n}function ov(e,t,n){const r=[],i=o=>{if($e(o)===t.role&&!(t.selected!==void 0&&V1(o)!==t.selected)&&!(t.checked!==void 0&&B1(o)!==t.checked)&&!(t.pressed!==void 0&&W1(o)!==t.pressed)&&!(t.expanded!==void 0&&q1(o)!==t.expanded)&&!(t.level!==void 0&&X1(o)!==t.level)&&!(t.disabled!==void 0&&Vh(o)!==t.disabled)&&!(!t.includeHidden&&Oa(o))){if(t.name!==void 0){const l=Fe(za(o,!!t.includeHidden));if(typeof t.name=="string"&&(t.name=Fe(t.name)),n&&!t.exact&&t.nameOp==="="&&(t.nameOp="*="),!Gh(l,{name:"",jsonPath:[],op:t.nameOp||"=",value:t.name,caseSensitive:!!t.exact}))return}r.push(o)}},s=o=>{const l=[];o.shadowRoot&&l.push(o.shadowRoot);for(const a of o.querySelectorAll("*"))i(a),a.shadowRoot&&l.push(a.shadowRoot);l.forEach(s)};return s(e),r}function yc(e){return{queryAll:(t,n)=>{const r=ln(n,!0),i=r.name.toLowerCase();if(!i)throw new Error("Role must not be empty");const s=sv(r.attributes,i);Xh();try{return ov(t,s,e)}finally{Qh()}}}}function lv(e,t,n){const r=e.left-t.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function av(e,t,n){const r=t.left-e.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function uv(e,t,n){const r=t.top-e.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function cv(e,t,n){const r=e.top-t.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function dv(e,t,n){const r=n===void 0?50:n;let i=0;return e.left-t.right>=0&&(i+=e.left-t.right),t.left-e.right>=0&&(i+=t.left-e.right),t.top-e.bottom>=0&&(i+=t.top-e.bottom),e.top-t.bottom>=0&&(i+=e.top-t.bottom),i>r?void 0:i}const fv=["left-of","right-of","above","below","near"];function op(e,t,n,r){const i=t.getBoundingClientRect(),s={"left-of":av,"right-of":lv,above:uv,below:cv,near:dv}[e];let o;for(const l of n){if(l===t)continue;const a=s(i,l.getBoundingClientRect(),r);a!==void 0&&(o===void 0||ar.every((u,c)=>a.rest[c]===u));if(o)return o.result;const l=i();return s.push({rest:r,result:l}),l}_checkSelector(t){if(!(typeof t=="object"&&t&&(Array.isArray(t)||"simples"in t&&t.simples.length)))throw new Error(`Malformed selector "${t}"`);return t}matches(t,n,r){const i=this._checkSelector(n);this.begin();try{return this._cached(this._cacheMatches,t,[i,r.scope,r.pierceShadow,r.originalScope],()=>Array.isArray(i)?this._matchesEngine(Nr,t,i,r):(this._hasScopeClause(i)&&(r=this._expandContextForScopeMatching(r)),this._matchesSimple(t,i.simples[i.simples.length-1].selector,r)?this._matchesParents(t,i,i.simples.length-2,r):!1))}finally{this.end()}}query(t,n){const r=this._checkSelector(n);this.begin();try{return this._cached(this._cacheQuery,r,[t.scope,t.pierceShadow,t.originalScope],()=>{if(Array.isArray(r))return this._queryEngine(Nr,t,r);this._hasScopeClause(r)&&(t=this._expandContextForScopeMatching(t));const i=this._scoreMap;this._scoreMap=new Map;let s=this._querySimple(t,r.simples[r.simples.length-1].selector);return s=s.filter(o=>this._matchesParents(o,r,r.simples.length-2,t)),this._scoreMap.size&&s.sort((o,l)=>{const a=this._scoreMap.get(o),u=this._scoreMap.get(l);return a===u?0:a===void 0?1:u===void 0?-1:a-u}),this._scoreMap=i,s})}finally{this.end()}}_markScore(t,n){this._scoreMap&&this._scoreMap.set(t,n)}_hasScopeClause(t){return t.simples.some(n=>n.selector.functions.some(r=>r.name==="scope"))}_expandContextForScopeMatching(t){if(t.scope.nodeType!==1)return t;const n=Ee(t.scope);return n?{...t,scope:n,originalScope:t.originalScope||t.scope}:t}_matchesSimple(t,n,r){return this._cached(this._cacheMatchesSimple,t,[n,r.scope,r.pierceShadow,r.originalScope],()=>{if(t===r.scope||n.css&&!this._matchesCSS(t,n.css))return!1;for(const i of n.functions)if(!this._matchesEngine(this._getEngine(i.name),t,i.args,r))return!1;return!0})}_querySimple(t,n){return n.functions.length?this._cached(this._cacheQuerySimple,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=n.css;const i=n.functions;r==="*"&&i.length&&(r=void 0);let s,o=-1;r!==void 0?s=this._queryCSS(t,r):(o=i.findIndex(l=>this._getEngine(l.name).query!==void 0),o===-1&&(o=0),s=this._queryEngine(this._getEngine(i[o].name),t,i[o].args));for(let l=0;lthis._matchesEngine(a,u,i[l].args,t)))}for(let l=0;lthis._matchesEngine(a,u,i[l].args,t)))}return s}):this._queryCSS(t,n.css||"*")}_matchesParents(t,n,r,i){return r<0?!0:this._cached(this._cacheMatchesParents,t,[n,r,i.scope,i.pierceShadow,i.originalScope],()=>{const{selector:s,combinator:o}=n.simples[r];if(o===">"){const l=Li(t,i);return!l||!this._matchesSimple(l,s,i)?!1:this._matchesParents(l,n,r-1,i)}if(o==="+"){const l=No(t,i);return!l||!this._matchesSimple(l,s,i)?!1:this._matchesParents(l,n,r-1,i)}if(o===""){let l=Li(t,i);for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="")break}l=Li(l,i)}return!1}if(o==="~"){let l=No(t,i);for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="~")break}l=No(l,i)}return!1}if(o===">="){let l=t;for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="")break}l=Li(l,i)}return!1}throw new Error(`Unsupported combinator "${o}"`)})}_matchesEngine(t,n,r,i){if(t.matches)return this._callMatches(t,n,r,i);if(t.query)return this._callQuery(t,r,i).includes(n);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(t,n,r){if(t.query)return this._callQuery(t,r,n);if(t.matches)return this._queryCSS(n,"*").filter(i=>this._callMatches(t,i,r,n));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(t,n,r,i){return this._cached(this._cacheCallMatches,n,[t,i.scope,i.pierceShadow,i.originalScope,...r],()=>t.matches(n,r,i,this))}_callQuery(t,n,r){return this._cached(this._cacheCallQuery,t,[r.scope,r.pierceShadow,r.originalScope,...n],()=>t.query(r,n,this))}_matchesCSS(t,n){return t.matches(n)}_queryCSS(t,n){return this._cached(this._cacheQueryCSS,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=[];function i(s){if(r=r.concat([...s.querySelectorAll(n)]),!!t.pierceShadow){s.shadowRoot&&i(s.shadowRoot);for(const o of s.querySelectorAll("*"))o.shadowRoot&&i(o.shadowRoot)}}return i(t.scope),r})}_getEngine(t){const n=this._engines.get(t);if(!n)throw new Error(`Unknown selector engine "${t}"`);return n}}const Nr={matches(e,t,n,r){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');return t.some(i=>r.matches(e,i,n))},query(e,t,n){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');let r=[];for(const i of t)r=r.concat(n.query(e,i));return t.length===1?r:lp(r)}},pv={matches(e,t,n,r){if(t.length===0)throw new Error('"has" engine expects non-empty selector list');return r.query({...n,scope:e},t).length>0}},mv={matches(e,t,n,r){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const i=n.originalScope||n.scope;return i.nodeType===9?e===i.documentElement:e===i},query(e,t,n){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const r=e.originalScope||e.scope;if(r.nodeType===9){const i=r.documentElement;return i?[i]:[]}return r.nodeType===1?[r]:[]}},gv={matches(e,t,n,r){if(t.length===0)throw new Error('"not" engine expects non-empty selector list');return!r.matches(e,t,n)}},vv={query(e,t,n){return n.query({...e,pierceShadow:!1},t)},matches(e,t,n,r){return r.matches(e,t,{...n,pierceShadow:!1})}},yv={matches(e,t,n,r){if(t.length)throw new Error('"visible" engine expects no arguments');return Cs(e)}},wv={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text" engine expects a single string');const i=Fe(t[0]).toLowerCase(),s=o=>o.normalized.toLowerCase().includes(i);return Gs(r._cacheText,e,s)==="self"}},xv={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text-is" engine expects a single string');const i=Fe(t[0]),s=o=>!i&&!o.immediate.length?!0:o.immediate.some(l=>Fe(l)===i);return Gs(r._cacheText,e,s)!=="none"}},Sv={matches(e,t,n,r){if(t.length===0||typeof t[0]!="string"||t.length>2||t.length===2&&typeof t[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const i=new RegExp(t[0],t.length===2?t[1]:void 0),s=o=>i.test(o.full);return Gs(r._cacheText,e,s)==="self"}},_v={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"has-text" engine expects a single string');if(Va(e))return!1;const i=Fe(t[0]).toLowerCase();return(o=>o.normalized.toLowerCase().includes(i))(Me(r._cacheText,e))}};function wr(e){return{matches(t,n,r,i){const s=n.length&&typeof n[n.length-1]=="number"?n[n.length-1]:void 0,o=s===void 0?n:n.slice(0,n.length-1);if(n.length<1+(s===void 0?0:1))throw new Error(`"${e}" engine expects a selector list and optional maximum distance in pixels`);const l=i.query(r,o),a=op(e,t,l,s);return a===void 0?!1:(i._markScore(t,a),!0)}}}const Ev={query(e,t,n){let r=t[t.length-1];if(t.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof r!="number"||r<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const i=Nr.query(e,t.slice(0,t.length-1),n);return r--,r1){const a=new Set(l.children);l.children=[];let u=o.firstElementChild;for(;u&&l.children.lengthYi(u)))]}else{const o=Sn(e,t,n)||Ai(e,t,n);r=[Yi(o)]}const i=r[0],s=e.parseSelector(i);return{selector:i,selectors:r,elements:e.querySelectorAll(s,n.root??t.ownerDocument)}}finally{Il.clear(),Pl.clear(),Qh(),e._evaluator.end()}}function Sc(e){return e.filter(t=>t[0].selector[0]!=="/")}function Sn(e,t,n){if(n.root&&!Qs(n.root,t))throw new Error("Target element must belong to the root's subtree");if(t===n.root)return[{engine:"css",selector:":scope",score:1}];if(t.ownerDocument.documentElement===t)return[{engine:"css",selector:"html",score:1}];const r=(s,o)=>{const l=s===t;let a=o?Hv(e,s,s===t):[];s!==t&&(a=Sc(a));const u=Dv(e,s,n).filter(p=>!n.omitInternalEngines||!p.engine.startsWith("internal:")).map(p=>[p]);let c=_c(e,n.root??t.ownerDocument,s,[...a,...u],l);a=Sc(a);const f=p=>{const v=o&&!p.length,y=[...p,...u].filter(x=>c?It(x)=It(c))continue;if(w=_c(e,x,s,y,l),!w)return;const m=[...h,...w];(!c||It(m){const l=o?Il:Pl;let a=l.get(s);return a===void 0&&(a=r(s,o),l.set(s,a)),a};return r(t,!n.noText)}function Dv(e,t,n){const r=[];{for(const o of["data-testid","data-test-id","data-test"])o!==n.testIdAttributeName&&t.getAttribute(o)&&r.push({engine:"css",selector:`[${o}=${gr(t.getAttribute(o))}]`,score:kv});if(!n.noCSSId){const o=t.getAttribute("id");o&&!Fv(o)&&r.push({engine:"css",selector:gp(o),score:Rv})}r.push({engine:"css",selector:qe(t.nodeName.toLowerCase()),score:pp})}if(t.nodeName==="IFRAME"){for(const o of["name","title"])t.getAttribute(o)&&r.push({engine:"css",selector:`${qe(t.nodeName.toLowerCase())}[${o}=${gr(t.getAttribute(o))}]`,score:Tv});return t.getAttribute(n.testIdAttributeName)&&r.push({engine:"css",selector:`[${n.testIdAttributeName}=${gr(t.getAttribute(n.testIdAttributeName))}]`,score:wc}),$l([r]),r}if(t.getAttribute(n.testIdAttributeName)&&r.push({engine:"internal:testid",selector:`[${n.testIdAttributeName}=${_e(t.getAttribute(n.testIdAttributeName),!0)}]`,score:wc}),t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){const o=t;if(o.placeholder){r.push({engine:"internal:attr",selector:`[placeholder=${_e(o.placeholder,!0)}]`,score:bv});for(const l of $n(o.placeholder))r.push({engine:"internal:attr",selector:`[placeholder=${_e(l.text,!1)}]`,score:up-l.scoreBouns})}}const i=Yh(e._evaluator._cacheText,t);for(const o of i){const l=o.normalized;r.push({engine:"internal:label",selector:st(l,!0),score:Lv});for(const a of $n(l))r.push({engine:"internal:label",selector:st(a.text,!1),score:cp-a.scoreBouns})}const s=$e(t);return s&&!["none","presentation"].includes(s)&&r.push({engine:"internal:role",selector:s,score:$v}),t.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(t.nodeName)&&r.push({engine:"css",selector:`${qe(t.nodeName.toLowerCase())}[name=${gr(t.getAttribute("name"))}]`,score:bo}),["INPUT","TEXTAREA"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&t.getAttribute("type")&&r.push({engine:"css",selector:`${qe(t.nodeName.toLowerCase())}[type=${gr(t.getAttribute("type"))}]`,score:bo}),["INPUT","TEXTAREA","SELECT"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&r.push({engine:"css",selector:qe(t.nodeName.toLowerCase()),score:bo+1}),$l([r]),r}function Hv(e,t,n){if(t.nodeName==="SELECT")return[];const r=[],i=t.getAttribute("title");if(i){r.push([{engine:"internal:attr",selector:`[title=${_e(i,!0)}]`,score:Iv}]);for(const a of $n(i))r.push([{engine:"internal:attr",selector:`[title=${_e(a.text,!1)}]`,score:hp-a.scoreBouns}])}const s=t.getAttribute("alt");if(s&&["APPLET","AREA","IMG","INPUT"].includes(t.nodeName)){r.push([{engine:"internal:attr",selector:`[alt=${_e(s,!0)}]`,score:Mv}]);for(const a of $n(s))r.push([{engine:"internal:attr",selector:`[alt=${_e(a.text,!1)}]`,score:fp-a.scoreBouns}])}const o=Me(e._evaluator._cacheText,t).normalized;if(o){const a=$n(o);if(n){o.length<=80&&r.push([{engine:"internal:text",selector:st(o,!0),score:jv}]);for(const c of a)r.push([{engine:"internal:text",selector:st(c.text,!1),score:Rl-c.scoreBouns}])}const u={engine:"css",selector:qe(t.nodeName.toLowerCase()),score:pp};for(const c of a)r.push([u,{engine:"internal:has-text",selector:st(c.text,!1),score:Rl-c.scoreBouns}]);o.length<=80&&r.push([u,{engine:"internal:has-text",selector:"/^"+w0(o)+"$/",score:Nv}])}const l=$e(t);if(l&&!["none","presentation"].includes(l)){const a=za(t,!1);if(a){r.push([{engine:"internal:role",selector:`${l}[name=${_e(a,!0)}]`,score:Av}]);for(const u of $n(a))r.push([{engine:"internal:role",selector:`${l}[name=${_e(u.text,!1)}]`,score:dp-u.scoreBouns}])}}return $l(r),r}function gp(e){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(e)?"#"+e:`[id="${qe(e)}"]`}function Lo(e){return e.some(t=>t.engine==="css"&&(t.selector.startsWith("#")||t.selector.startsWith('[id="')))}function Ai(e,t,n){const r=n.root??t.ownerDocument,i=[];function s(l){const a=i.slice();l&&a.unshift(l);const u=a.join(" > "),c=e.parseSelector(u);return e.querySelector(c,r,!1)===t?u:void 0}function o(l){const a={engine:"css",selector:l,score:Ov},u=e.parseSelector(l),c=e.querySelectorAll(u,r);if(c.length===1)return[a];const f={engine:"nth",selector:String(c.indexOf(t)),score:mp};return[a,f]}for(let l=t;l&&l!==r;l=Ee(l)){const a=l.nodeName.toLowerCase();let u="";if(l.id&&!n.noCSSId){const p=gp(l.id),v=s(p);if(v)return o(v);u=p}const c=l.parentNode,f=[...l.classList];for(let p=0;px.nodeName.toLowerCase()===a).indexOf(l)===0?qe(a):`${qe(a)}:nth-child(${1+p.indexOf(l)})`,w=s(y);if(w)return o(w);u||(u=y)}else u||(u=qe(a));i.unshift(u)}return o(s())}function $l(e){for(const t of e)for(const n of t)n.score>Cv&&n.score>"),n=r,r==="css"?t.push(i):t.push(`${r}=${i}`);return t.join(" ")}function It(e){let t=0;for(let n=0;n({tokens:l,score:It(l)}));s.sort((l,a)=>l.score-a.score);let o=null;for(const{tokens:l}of s){const a=e.parseSelector(Yi(l)),u=e.querySelectorAll(a,t);if(u[0]===n&&u.length===1)return l;const c=u.indexOf(n);if(!i||o||c===-1||u.length>5)continue;const f={engine:"nth",selector:String(c),score:mp};o=[...l,f]}return o}function Fv(e){let t,n=0;for(let r=0;r="a"&&i<="z"?s="lower":i>="A"&&i<="Z"?s="upper":i>="0"&&i<="9"?s="digit":s="other",s==="lower"&&t==="upper"){t=s;continue}t&&t!==s&&++n,t=s}}return n>=e.length/4}function Ec(e,t){if(e.length<=t)return e;e=e.substring(0,t);const n=e.match(/^(.*)\b(.+?)$/);return n?n[1].trimEnd():""}function $n(e){let t=[];{const n=e.match(/^([\d.,]+)[^.,\w]/),r=n?n[1].length:0;if(r){const i=e.substring(r).trimStart();t.push({text:i,scoreBouns:i.length<=30?2:1})}}{const n=e.match(/[^.,\w]([\d.,]+)$/),r=n?n[1].length:0;if(r){const i=e.substring(0,e.length-r).trimEnd();t.push({text:i,scoreBouns:i.length<=30?2:1})}}return e.length<=30?t.push({text:e,scoreBouns:0}):(t.push({text:Ec(e,80),scoreBouns:0}),t.push({text:Ec(e,30),scoreBouns:1})),t=t.filter(n=>n.text),t.length||t.push({text:e.substring(0,80),scoreBouns:0}),t}const Uv=`:host{font-size:13px;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;color:#333}x-pw-tooltip{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:none;font-size:12.8px;font-weight:400;left:0;line-height:1.5;max-width:600px;position:absolute;top:0;padding:0;flex-direction:column;overflow:hidden}x-pw-tooltip-line{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;cursor:pointer}x-pw-tooltip-line.selectable:hover{background-color:#f2f2f2;overflow:hidden}x-pw-tooltip-footer{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;color:#777}x-pw-dialog{background-color:#fff;pointer-events:auto;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:flex;flex-direction:column;position:absolute;width:400px;height:150px;z-index:10;font-size:13px}x-pw-dialog-body{display:flex;flex-direction:column;flex:auto}x-pw-dialog-body label{margin:5px 8px;display:flex;flex-direction:row;align-items:center}x-pw-highlight{position:absolute;top:0;left:0;width:0;height:0}x-pw-action-point{position:absolute;width:20px;height:20px;background:red;border-radius:10px;margin:-10px 0 0 -10px;z-index:2}x-pw-separator{height:1px;margin:6px 9px;background:#949494e5}x-pw-tool-gripper{height:28px;width:24px;margin:2px 0;cursor:grab}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{width:100%;height:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:20px;mask-repeat:no-repeat;mask-position:center;mask-size:16px;-webkit-mask-image:url("data:image/svg+xml;utf8,");mask-image:url("data:image/svg+xml;utf8,");background-color:#555}x-pw-tools-list>label{display:flex;align-items:center;margin:0 10px;-webkit-user-select:none;user-select:none}x-pw-tools-list{display:flex;width:100%;border-bottom:1px solid #dddddd}x-pw-tool-item{pointer-events:auto;cursor:pointer;height:28px;width:28px;border-radius:3px}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.active{background-color:#8acae480}x-pw-tool-item.active:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{width:100%;height:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:20px;mask-repeat:no-repeat;mask-position:center;mask-size:16px;background-color:#3a3a3a}x-pw-tool-item.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.record.active{background-color:transparent}x-pw-tool-item.record.active:hover{background-color:#dbdbdb}x-pw-tool-item.record.active>x-div{background-color:#a1260d}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{-webkit-mask-image:url("data:image/svg+xml;utf8,");mask-image:url("data:image/svg+xml;utf8,")}x-pw-tool-item.pick-locator>x-div{-webkit-mask-image:url("data:image/svg+xml;utf8,");mask-image:url("data:image/svg+xml;utf8,")}x-pw-tool-item.text>x-div{-webkit-mask-image:url("data:image/svg+xml;utf8,");mask-image:url("data:image/svg+xml;utf8,")}x-pw-tool-item.visibility>x-div{-webkit-mask-image:url("data:image/svg+xml;utf8,");mask-image:url("data:image/svg+xml;utf8,")}x-pw-tool-item.value>x-div{-webkit-mask-image:url("data:image/svg+xml;utf8,");mask-image:url("data:image/svg+xml;utf8,")}x-pw-tool-item.accept>x-div{-webkit-mask-image:url("data:image/svg+xml;utf8,");mask-image:url("data:image/svg+xml;utf8,")}x-pw-tool-item.cancel>x-div{-webkit-mask-image:url("data:image/svg+xml;utf8,");mask-image:url("data:image/svg+xml;utf8,")}x-pw-tool-item.succeeded>x-div{-webkit-mask-image:url("data:image/svg+xml;utf8,")!important;mask-image:url("data:image/svg+xml;utf8,")!important;background-color:#388a34!important;-webkit-mask-size:18px!important;mask-size:18px!important}x-pw-overlay{position:absolute;top:0;max-width:min-content;z-index:2147483647;background:transparent;pointer-events:auto}x-pw-overlay x-pw-tools-list{background-color:#fffd;box-shadow:#0000001a 0 5px 5px;border-radius:3px;border-bottom:none}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{font-family:system-ui,Ubuntu,Droid Sans,sans-serif;flex:auto;border:none;margin:6px 10px;color:#333;outline:1px solid transparent!important;resize:none;padding:0;font-size:13px}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}*[hidden]{display:none!important}x-locator-editor{flex:none;width:100%;height:60px;padding:4px;border-bottom:1px solid #dddddd;outline:1px solid transparent}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}`;class Ao{constructor(t){this._highlightEntries=[],this._highlightOptions={},this._language="javascript",this._injectedScript=t;const n=t.document;this._isUnderTest=t.isUnderTest,this._glassPaneElement=n.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483646",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent";for(const i of["click","auxclick","dragstart","input","keydown","keyup","pointerdown","pointerup","mousedown","mouseup","mouseleave","focus","scroll"])this._glassPaneElement.addEventListener(i,s=>{s.stopPropagation(),s.stopImmediatePropagation(),s.type==="click"&&s.button===0&&this._highlightOptions.tooltipListItemSelected&&this._highlightOptions.tooltipListItemSelected(void 0)});this._actionPointElement=n.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),this._glassPaneShadow.appendChild(this._actionPointElement);const r=n.createElement("style");r.textContent=Uv,this._glassPaneShadow.appendChild(r)}install(){this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(t){this._language=t}runHighlightOnRaf(t){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this.updateHighlight(this._injectedScript.querySelectorAll(t,this._injectedScript.document.documentElement),{tooltipText:Xt(this._language,hn(t))}),this._rafRequest=requestAnimationFrame(()=>this.runHighlightOnRaf(t))}uninstall(){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this._glassPaneElement.remove()}showActionPoint(t,n){this._actionPointElement.style.top=n+"px",this._actionPointElement.style.left=t+"px",this._actionPointElement.hidden=!1}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var t,n;for(const r of this._highlightEntries)(t=r.highlightElement)==null||t.remove(),(n=r.tooltipElement)==null||n.remove();this._highlightEntries=[],this._highlightOptions={},this._glassPaneElement.style.pointerEvents="none"}updateHighlight(t,n){this._innerUpdateHighlight(t,n)}maskElements(t,n){this._innerUpdateHighlight(t,{color:n})}_innerUpdateHighlight(t,n){let r=n.color;if(r||(r=t.length>1?"#f6b26b7f":"#6fa8dc7f"),!this._highlightIsUpToDate(t,n)){this.clearHighlight(),this._highlightOptions=n,this._glassPaneElement.style.pointerEvents=n.tooltipListItemSelected?"initial":"none";for(let i=0;i1?` [${i+1} of ${t.length}]`:"";l=[n.tooltipText+a]}for(let a=0;a{var c;return(c=n.tooltipListItemSelected)==null?void 0:c.call(n,a)}))}if(n.tooltipFooter){const a=this._injectedScript.document.createElement("x-pw-tooltip-footer");a.textContent=n.tooltipFooter,o.appendChild(a)}}this._highlightEntries.push({targetElement:t[i],tooltipElement:o,highlightElement:s})}for(const i of this._highlightEntries){if(i.box=i.targetElement.getBoundingClientRect(),!i.tooltipElement)continue;const{anchorLeft:s,anchorTop:o}=this.tooltipPosition(i.box,i.tooltipElement);i.tooltipTop=o,i.tooltipLeft=s}for(const i of this._highlightEntries){i.tooltipElement&&(i.tooltipElement.style.top=i.tooltipTop+"px",i.tooltipElement.style.left=i.tooltipLeft+"px");const s=i.box;i.highlightElement.style.backgroundColor=r,i.highlightElement.style.left=s.x+"px",i.highlightElement.style.top=s.y+"px",i.highlightElement.style.width=s.width+"px",i.highlightElement.style.height=s.height+"px",i.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:s.x,y:s.y,width:s.width,height:s.height}))}}}firstBox(){var t;return(t=this._highlightEntries[0])==null?void 0:t.box}tooltipPosition(t,n){const r=n.offsetWidth,i=n.offsetHeight,s=this._glassPaneElement.offsetWidth,o=this._glassPaneElement.offsetHeight;let l=t.left;l+r>s-5&&(l=s-r-5);let a=t.bottom+5;return a+i>o-5&&(t.top>i+5?a=t.top-i-5:a=o-5-i),{anchorLeft:l,anchorTop:a}}_highlightIsUpToDate(t,n){var r,i;if(n.tooltipText!==this._highlightOptions.tooltipText||n.tooltipListItemSelected!==this._highlightOptions.tooltipListItemSelected||n.tooltipFooter!==this._highlightOptions.tooltipFooter||((r=n.tooltipList)==null?void 0:r.length)!==((i=this._highlightOptions.tooltipList)==null?void 0:i.length))return!1;if(n.tooltipList&&this._highlightOptions.tooltipList){for(let s=0;s[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:chain",this._createInternalChainEngine()),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",yc(!0));for(const{name:a,engine:u}of l)this._engines.set(a,u);this._stableRafCount=s,this._browserName=o,P1(o),this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),n&&(this.window.__injectedScript=this)}eval(t){return this.window.eval(t)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(t){const n=qs(t);return z0(n,r=>{if(!this._engines.has(r.name))throw this.createStacklessError(`Unknown engine "${r.name}" while parsing selector ${t}`)}),n}generateSelector(t,n){return xc(this,t,n)}generateSelectorSimple(t,n){return xc(this,t,{...n,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(t,n,r){const i=this.querySelectorAll(t,n);if(r&&i.length>1)throw this.strictModeViolationError(t,i);return i[0]}_queryNth(t,n){const r=[...t];let i=+n.body;return i===-1&&(i=r.length-1),new Set(r.slice(i,i+1))}_queryLayoutSelector(t,n,r){const i=n.name,s=n.body,o=[],l=this.querySelectorAll(s.parsed,r);for(const a of t){const u=op(i,a,l,s.distance);u!==void 0&&o.push({element:a,score:u})}return o.sort((a,u)=>a.score-u.score),new Set(o.map(a=>a.element))}querySelectorAll(t,n){if(t.capture!==void 0){if(t.parts.some(i=>i.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const r={parts:t.parts.slice(0,t.capture+1)};if(t.capturer.has(o)))}else if(i.name==="internal:or"){const s=this.querySelectorAll(i.body.parsed,n);r=new Set(lp(new Set([...r,...s])))}else if(fv.includes(i.name))r=this._queryLayoutSelector(r,i,n);else{const s=new Set;for(const o of r){const l=this._queryEngineAll(i,o);for(const a of l)s.add(a)}r=s}return[...r]}finally{this._evaluator.end()}}_queryEngineAll(t,n){const r=this._engines.get(t.name).queryAll(n,t.body);for(const i of r)if(!("nodeName"in i))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(i)}`);return r}_createAttributeEngine(t,n){const r=i=>[{simples:[{selector:{css:`[${t}=${JSON.stringify(i)}]`,functions:[]},combinator:""}]}];return{queryAll:(i,s)=>this._evaluator.query({scope:i,pierceShadow:n},r(s))}}_createCSSEngine(){return{queryAll:(t,n)=>this._evaluator.query({scope:t,pierceShadow:!0},n)}}_createTextEngine(t,n){return{queryAll:(i,s)=>{const{matcher:o,kind:l}=ji(s,n),a=[];let u=null;const c=p=>{if(l==="lax"&&u&&u.contains(p))return!1;const v=Gs(this._evaluator._cacheText,p,o);v==="none"&&(u=p),(v==="self"||v==="selfAndChildren"&&l==="strict"&&!n)&&a.push(p)};i.nodeType===Node.ELEMENT_NODE&&c(i);const f=this._evaluator._queryCSS({scope:i,pierceShadow:t},"*");for(const p of f)c(p);return a}}}_createInternalHasTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,i=Me(this._evaluator._cacheText,r),{matcher:s}=ji(n,!0);return s(i)?[r]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,i=Me(this._evaluator._cacheText,r),{matcher:s}=ji(n,!0);return s(i)?[]:[r]}}}_createInternalLabelEngine(){return{queryAll:(t,n)=>{const{matcher:r}=ji(n,!0);return this._evaluator._queryCSS({scope:t,pierceShadow:!0},"*").filter(s=>Yh(this._evaluator._cacheText,s).some(o=>r(o)))}}}_createNamedAttributeEngine(){return{queryAll:(n,r)=>{const i=ln(r,!0);if(i.name||i.attributes.length!==1)throw new Error("Malformed attribute selector: "+r);const{name:s,value:o,caseSensitive:l}=i.attributes[0],a=l?null:o.toLowerCase();let u;return o instanceof RegExp?u=f=>!!f.match(o):l?u=f=>f===o:u=f=>f.toLowerCase().includes(a),this._evaluator._queryCSS({scope:n,pierceShadow:!0},`[${s}]`).filter(f=>u(f.getAttribute(s)))}}}_createControlEngine(){return{queryAll(t,n){if(n==="enter-frame")return[];if(n==="return-empty")return[];if(n==="component")return t.nodeType!==1?[]:[t.childElementCount===1?t.firstElementChild:t];throw new Error(`Internal error, unknown internal:control selector ${n}`)}}}_createHasEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[n]:[]}}_createHasNotEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[]:[n]}}_createVisibleEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:Cs(n)===!!r?[n]:[]}}_createInternalChainEngine(){return{queryAll:(n,r)=>this.querySelectorAll(r.parsed,n)}}extend(t,n){const r=this.window.eval(` + (() => { + const module = {}; + ${t} + return module.exports.default(); + })()`);return new r(this,n)}isVisible(t){return Cs(t)}async viewportRatio(t){return await new Promise(n=>{const r=new IntersectionObserver(i=>{n(i[0].intersectionRatio),r.disconnect()});r.observe(t),requestAnimationFrame(()=>{})})}getElementBorderWidth(t){if(t.nodeType!==Node.ELEMENT_NODE||!t.ownerDocument||!t.ownerDocument.defaultView)return{left:0,top:0};const n=t.ownerDocument.defaultView.getComputedStyle(t);return{left:parseInt(n.borderLeftWidth||"",10),top:parseInt(n.borderTopWidth||"",10)}}describeIFrameStyle(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return"error:notconnected";const n=t.ownerDocument.defaultView;for(let i=t;i;i=Ee(i))if(n.getComputedStyle(i).transform!=="none")return"transformed";const r=n.getComputedStyle(t);return{left:parseInt(r.borderLeftWidth||"",10)+parseInt(r.paddingLeft||"",10),top:parseInt(r.borderTopWidth||"",10)+parseInt(r.paddingTop||"",10)}}retarget(t,n){let r=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement;return r?(n==="none"||(r.matches("input, textarea, select")||(n==="button-link"?r=r.closest("button, [role=button], a, [role=link]")||r:r=r.closest("button, [role=button], [role=checkbox], [role=radio]")||r),n==="follow-label"&&(!r.matches("input, textarea, button, select, [role=button], [role=checkbox], [role=radio]")&&!r.isContentEditable&&(r=r.closest("label")||r),r.nodeName==="LABEL"&&(r=r.control||r))),r):null}async checkElementStates(t,n){if(n.includes("stable")){const r=await this._checkElementIsStable(t);if(r===!1)return{missingState:"stable"};if(r==="error:notconnected")return r}for(const r of n)if(r!=="stable"){const i=this.elementState(t,r);if(i===!1)return{missingState:r};if(i==="error:notconnected")return i}}async _checkElementIsStable(t){const n=Symbol("continuePolling");let r,i=0,s=0;const o=()=>{const f=this.retarget(t,"no-follow-label");if(!f)return"error:notconnected";const p=performance.now();if(this._stableRafCount>1&&p-s<15)return n;s=p;const v=f.getBoundingClientRect(),y={x:v.top,y:v.left,width:v.width,height:v.height};if(r){if(!(y.x===r.x&&y.y===r.y&&y.width===r.width&&y.height===r.height))return!1;if(++i>=this._stableRafCount)return!0}return r=y,n};let l,a;const u=new Promise((f,p)=>{l=f,a=p}),c=()=>{try{const f=o();f!==n?l(f):requestAnimationFrame(c)}catch(f){a(f)}};return requestAnimationFrame(c),u}elementState(t,n){const r=this.retarget(t,["stable","visible","hidden"].includes(n)?"none":"follow-label");if(!r||!r.isConnected)return n==="hidden"?!0:"error:notconnected";if(n==="visible")return this.isVisible(r);if(n==="hidden")return!this.isVisible(r);const i=Vh(r);if(n==="disabled")return i;if(n==="enabled")return!i;const s=!(["INPUT","TEXTAREA","SELECT"].includes(r.nodeName)&&r.hasAttribute("readonly"));if(n==="editable")return!i&&s;if(n==="checked"||n==="unchecked"){const o=n==="checked",l=Dh(r,!1);if(l==="error")throw this.createStacklessError("Not a checkbox or radio button");return o===l}throw this.createStacklessError(`Unexpected element state "${n}"`)}selectOptions(t,n){const r=this.retarget(t,"follow-label");if(!r)return"error:notconnected";if(r.nodeName.toLowerCase()!=="select")throw this.createStacklessError("Element is not a ,