From c4f754b3b652c126b5960f30533d8b7cb31c9085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Syn=C3=A1=C4=8Dek?= Date: Fri, 4 Sep 2026 09:25:52 +0200 Subject: [PATCH 1/7] chore(deps): upgrade vitest to v5 --- cli/vite.config.ts | 3 +- client-tests/apollo-js/package.json | 2 +- client-tests/mcp-ts/package.json | 2 +- controlplane/test/delete-user.test.ts | 2 +- controlplane/test/openai-graphql.test.ts | 68 +- package.json | 4 +- playground/package.json | 4 +- pnpm-lock.yaml | 1424 +++++++---------- pnpm-workspace.yaml | 4 +- .../sdl-to-mapping/sdl-to-mapping.bench.ts | 20 +- .../tests/sdl-to-proto/sdl-to-proto.bench.ts | 20 +- router/internal/graphiql/graphiql.html | 42 +- studio/package.json | 2 +- 13 files changed, 662 insertions(+), 935 deletions(-) diff --git a/cli/vite.config.ts b/cli/vite.config.ts index 78e6f7792e..5a37f403c7 100644 --- a/cli/vite.config.ts +++ b/cli/vite.config.ts @@ -2,12 +2,13 @@ // Configure Vitest (https://vitest.dev/config/) -import { defineConfig } from 'vitest/config'; +import { configDefaults, defineConfig } from 'vitest/config'; export default defineConfig({ test: { /* for example, use global to avoid globals imports (describe, test, expect): */ // globals: true, restoreMocks: true, + exclude: [...configDefaults.exclude, 'dist/**'], }, }); diff --git a/client-tests/apollo-js/package.json b/client-tests/apollo-js/package.json index b2ddde9c60..bf5542656d 100644 --- a/client-tests/apollo-js/package.json +++ b/client-tests/apollo-js/package.json @@ -20,6 +20,6 @@ "graphql-ws": "^6.0.6", "ts-node": "^10.9.2", "typescript": "^5.9.2", - "vitest": "^3.2.4" + "vitest": "^5.0.0" } } diff --git a/client-tests/mcp-ts/package.json b/client-tests/mcp-ts/package.json index 24cbc3ca30..40f622b8d0 100644 --- a/client-tests/mcp-ts/package.json +++ b/client-tests/mcp-ts/package.json @@ -15,6 +15,6 @@ "@modelcontextprotocol/sdk": "^1.29.0", "@types/node": "^22.19.15", "typescript": "^5.9.3", - "vitest": "^3.2.4" + "vitest": "^5.0.0" } } diff --git a/controlplane/test/delete-user.test.ts b/controlplane/test/delete-user.test.ts index f13cc5526d..7070e4fe2b 100644 --- a/controlplane/test/delete-user.test.ts +++ b/controlplane/test/delete-user.test.ts @@ -177,7 +177,7 @@ vi.mock('../src/core/clickhouse/index.js', () => { return { ClickHouseClient }; }); -describe.sequential('Delete user tests', (ctx) => { +describe('Delete user tests', () => { let chClient: ClickHouseClient; beforeEach(() => { diff --git a/controlplane/test/openai-graphql.test.ts b/controlplane/test/openai-graphql.test.ts index 231cb15c20..efad2d9291 100644 --- a/controlplane/test/openai-graphql.test.ts +++ b/controlplane/test/openai-graphql.test.ts @@ -2,46 +2,34 @@ import { describe, expect, test } from 'vitest'; import { OpenAIGraphql } from '../src/core/openai-graphql/index.js'; describe('OpenAI GraphQL', () => { - test( - 'Should properly correct schema', - async () => { - if (!process.env.OPENAI_API_KEY) { - return; - } - const ai = new OpenAIGraphql({ - openAiApiKey: process.env.OPENAI_API_KEY, - }); - const result = await ai.fixSDL({ - sdl: brokenSubgraphSDL, - checkResult: brokenSubgraphCheckResult, - }); - expect(result.sdl).toEqual(fixedSubgraphSDL); - }, - { - timeout: 20_000, - }, - ); - - test( - 'Should properly generate a README from a GraphQL schema', - async () => { - if (!process.env.OPENAI_API_KEY) { - return; - } - const ai = new OpenAIGraphql({ - openAiApiKey: process.env.OPENAI_API_KEY, - }); - const result = await ai.generateReadme({ - sdl: schemaSDL, - graphName: 'MyGraph', - }); - - expect(result.readme).toBeDefined(); - }, - { - timeout: 20_000, - }, - ); + test('Should properly correct schema', { timeout: 20_000 }, async () => { + if (!process.env.OPENAI_API_KEY) { + return; + } + const ai = new OpenAIGraphql({ + openAiApiKey: process.env.OPENAI_API_KEY, + }); + const result = await ai.fixSDL({ + sdl: brokenSubgraphSDL, + checkResult: brokenSubgraphCheckResult, + }); + expect(result.sdl).toEqual(fixedSubgraphSDL); + }); + + test('Should properly generate a README from a GraphQL schema', { timeout: 20_000 }, async () => { + if (!process.env.OPENAI_API_KEY) { + return; + } + const ai = new OpenAIGraphql({ + openAiApiKey: process.env.OPENAI_API_KEY, + }); + const result = await ai.generateReadme({ + sdl: schemaSDL, + graphName: 'MyGraph', + }); + + expect(result.readme).toBeDefined(); + }); }); const brokenSubgraphCheckResult = ` diff --git a/package.json b/package.json index 5df75e1366..2847bca100 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,9 @@ "sigstore": "4.1.1", "engine.io": "6.6.9", "glob@10.x": "10.5.0", - "sharp": "0.35.3" + "sharp": "0.35.3", + "eslint-plugin-import": "2.27.5", + "eslint-module-utils": "2.8.0" }, "patchedDependencies": { "graphql@16.9.0": "patches/graphql@16.9.0.patch" diff --git a/playground/package.json b/playground/package.json index f5a1759b06..611748990b 100644 --- a/playground/package.json +++ b/playground/package.json @@ -80,7 +80,7 @@ "@types/prismjs": "^1.26.3", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "@vitejs/plugin-react": "^4.3.1", + "@vitejs/plugin-react": "^5.2.0", "autoprefixer": "^10.4.16", "postcss": "catalog:", "tailwind-merge": "^2.0.0", @@ -88,7 +88,7 @@ "tailwindcss": "^3.4.15", "tailwindcss-animate": "^1.0.7", "typescript": "catalog:", - "vite": "^5.4.21", + "vite": "^6.4.3", "vite-plugin-dts": "4.5.4", "vite-plugin-html": "^3.2.2", "vite-plugin-singlefile": "^2.2.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04f6040e2a..785698cb0c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,8 +52,8 @@ catalogs: specifier: 18.3.0 version: 18.3.0 '@vitest/coverage-v8': - specifier: 3.2.4 - version: 3.2.4 + specifier: 5.0.0 + version: 5.0.0 axios: specifier: 1.19.0 version: 1.19.0 @@ -100,8 +100,8 @@ catalogs: specifier: 6.0.3 version: 6.0.3 vitest: - specifier: ^3.2.4 - version: 3.2.4 + specifier: ^5.0.0 + version: 5.0.0 overrides: react: 18.3.1 @@ -162,6 +162,8 @@ overrides: engine.io: 6.6.9 glob@10.x: 10.5.0 sharp: 0.35.3 + eslint-plugin-import: 2.27.5 + eslint-module-utils: 2.8.0 patchedDependencies: graphql@16.9.0: @@ -226,7 +228,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) + version: 5.0.0(@opentelemetry/api@1.9.1)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) admission-server: dependencies: @@ -309,7 +311,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) + version: 5.0.0(@opentelemetry/api@1.9.1)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) cli: dependencies: @@ -478,7 +480,7 @@ importers: version: 7.7.0 '@vitest/coverage-v8': specifier: 'catalog:' - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1)) + version: 5.0.0(vitest@5.0.0) del-cli: specifier: 'catalog:' version: 5.1.0 @@ -499,7 +501,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) + version: 5.0.0(@opentelemetry/api@1.9.1)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) composition: dependencies: @@ -548,7 +550,7 @@ importers: version: 22.17.0 '@vitest/coverage-v8': specifier: 'catalog:' - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1)) + version: 5.0.0(vitest@5.0.0) del-cli: specifier: 'catalog:' version: 5.1.0 @@ -557,7 +559,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) + version: 5.0.0(@opentelemetry/api@1.9.1)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) connect: dependencies: @@ -600,7 +602,7 @@ importers: version: 9.0.1 '@graphql-eslint/eslint-plugin': specifier: ^3.20.1 - version: 3.20.1(@babel/core@7.24.5)(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 3.20.1(@babel/core@7.29.7)(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-inspector/core': specifier: ^6.2.1 version: 6.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) @@ -790,7 +792,7 @@ importers: version: 9.0.8 '@vitest/coverage-v8': specifier: 'catalog:' - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@6.0.3))(terser@5.44.1)) + version: 5.0.0(vitest@5.0.0) del-cli: specifier: 'catalog:' version: 5.1.0 @@ -820,7 +822,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@6.0.3))(terser@5.44.1) + version: 5.0.0(@opentelemetry/api@1.9.0)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(msw@2.2.11(typescript@6.0.3))(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) controlplane/emails: devDependencies: @@ -971,8 +973,8 @@ importers: specifier: ^18.3.0 version: 18.3.0 '@vitejs/plugin-react': - specifier: ^4.3.1 - version: 4.3.1(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) + specifier: ^5.2.0 + version: 5.2.0(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) autoprefixer: specifier: ^10.4.16 version: 10.4.19(postcss@8.5.26) @@ -995,17 +997,17 @@ importers: specifier: 'catalog:' version: 6.0.3 vite: - specifier: ^5.4.21 - version: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + specifier: ^6.4.3 + version: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) vite-plugin-dts: specifier: 4.5.4 - version: 4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@6.0.3)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) + version: 4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@6.0.3)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) vite-plugin-html: specifier: ^3.2.2 - version: 3.2.2(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) + version: 3.2.2(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) vite-plugin-singlefile: specifier: ^2.2.0 - version: 2.2.0(rollup@4.59.0)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) + version: 2.2.0(rollup@4.59.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) protographic: dependencies: @@ -1036,7 +1038,7 @@ importers: version: 22.17.0 '@vitest/coverage-v8': specifier: 'catalog:' - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1)) + version: 5.0.0(vitest@5.0.0) eslint: specifier: 'catalog:' version: 8.57.1 @@ -1051,7 +1053,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) + version: 5.0.0(@opentelemetry/api@1.9.1)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) router: {} @@ -1095,7 +1097,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) + version: 5.0.0(@opentelemetry/api@1.9.1)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) studio: dependencies: @@ -1419,11 +1421,11 @@ importers: specifier: 'catalog:' version: 18.3.0 '@vitejs/plugin-react': - specifier: ^4.2.1 - version: 4.2.1(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) + specifier: ^5.2.0 + version: 5.2.0(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) '@vitest/coverage-v8': specifier: 'catalog:' - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1)) + version: 5.0.0(vitest@5.0.0) autoprefixer: specifier: 10.4.14 version: 10.4.14(postcss@8.5.26) @@ -1450,7 +1452,7 @@ importers: version: 6.0.3 vitest: specifier: 'catalog:' - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1) + version: 5.0.0(@opentelemetry/api@1.9.0)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@23.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) packages: @@ -1669,14 +1671,26 @@ packages: resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} engines: {node: '>=6.9.0'} + '@babel/code-frame@7.29.7': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + '@babel/compat-data@7.28.0': resolution: {integrity: sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==} engines: {node: '>=6.9.0'} + '@babel/compat-data@7.29.7': + resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} + engines: {node: '>=6.9.0'} + '@babel/core@7.24.5': resolution: {integrity: sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==} engines: {node: '>=6.9.0'} + '@babel/core@7.29.7': + resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} + engines: {node: '>=6.9.0'} + '@babel/generator@7.23.6': resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} engines: {node: '>=6.9.0'} @@ -1685,10 +1699,18 @@ packages: resolution: {integrity: sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==} engines: {node: '>=6.9.0'} + '@babel/generator@7.29.8': + resolution: {integrity: sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==} + engines: {node: '>=6.9.0'} + '@babel/helper-compilation-targets@7.27.2': resolution: {integrity: sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==} engines: {node: '>=6.9.0'} + '@babel/helper-compilation-targets@7.29.7': + resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==} + engines: {node: '>=6.9.0'} + '@babel/helper-environment-visitor@7.22.20': resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==} engines: {node: '>=6.9.0'} @@ -1701,6 +1723,10 @@ packages: resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==} engines: {node: '>=6.9.0'} + '@babel/helper-globals@7.29.7': + resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} + engines: {node: '>=6.9.0'} + '@babel/helper-hoist-variables@7.22.5': resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} @@ -1709,18 +1735,28 @@ packages: resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==} engines: {node: '>=6.9.0'} + '@babel/helper-module-imports@7.29.7': + resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} + engines: {node: '>=6.9.0'} + '@babel/helper-module-transforms@7.27.3': resolution: {integrity: sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 + '@babel/helper-module-transforms@7.29.7': + resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + '@babel/helper-plugin-utils@7.22.5': resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} engines: {node: '>=6.9.0'} - '@babel/helper-plugin-utils@7.24.7': - resolution: {integrity: sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==} + '@babel/helper-plugin-utils@7.29.7': + resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} engines: {node: '>=6.9.0'} '@babel/helper-split-export-declaration@7.22.6': @@ -1735,6 +1771,10 @@ packages: resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} engines: {node: '>=6.9.0'} + '@babel/helper-string-parser@7.29.7': + resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} + engines: {node: '>=6.9.0'} + '@babel/helper-validator-identifier@7.22.20': resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} engines: {node: '>=6.9.0'} @@ -1751,14 +1791,26 @@ packages: resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} engines: {node: '>=6.9.0'} + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + '@babel/helper-validator-option@7.27.1': resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} engines: {node: '>=6.9.0'} + '@babel/helper-validator-option@7.29.7': + resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} + engines: {node: '>=6.9.0'} + '@babel/helpers@7.28.2': resolution: {integrity: sha512-/V9771t+EgXz62aCcyofnQhGM8DQACbRhvzKFsXKC9QM+5MadF8ZmIm0crDMaz3+o0h0zXfJnd4EhbYbxsrcFw==} engines: {node: '>=6.9.0'} + '@babel/helpers@7.29.7': + resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==} + engines: {node: '>=6.9.0'} + '@babel/highlight@7.23.4': resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} engines: {node: '>=6.9.0'} @@ -1783,32 +1835,25 @@ packages: engines: {node: '>=6.0.0'} hasBin: true + '@babel/parser@7.29.8': + resolution: {integrity: sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==} + engines: {node: '>=6.0.0'} + hasBin: true + '@babel/plugin-syntax-import-assertions@7.23.3': resolution: {integrity: sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/plugin-transform-react-jsx-self@7.23.3': - resolution: {integrity: sha512-qXRvbeKDSfwnlJnanVRp0SfuWE5DQhwQr5xtLBzp56Wabyo+4CMosF6Kfp+eOD/4FYpql64XVJ2W0pVLlJZxOQ==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - - '@babel/plugin-transform-react-jsx-self@7.24.7': - resolution: {integrity: sha512-fOPQYbGSgH0HUp4UJO4sMBFjY6DuWq+2i8rixyUMb3CdGixs/gccURvYOAhajBdKDoGajFr3mUq5rH3phtkGzw==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - - '@babel/plugin-transform-react-jsx-source@7.23.3': - resolution: {integrity: sha512-91RS0MDnAWDNvGC6Wio5XYkyWI39FMFO+JK9+4AlgaTH+yWwVTsw7/sn6LK0lH7c5F+TFkpv/3LfCJ1Ydwof/g==} + '@babel/plugin-transform-react-jsx-self@7.29.7': + resolution: {integrity: sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/plugin-transform-react-jsx-source@7.24.7': - resolution: {integrity: sha512-J2z+MWzZHVOemyLweMqngXrgGC42jQ//R0KdxqkIz/OrbVIIlhFI3WigZ5fO+nwFvBlncr4MGapd8vTyc7RPNQ==} + '@babel/plugin-transform-react-jsx-source@7.29.7': + resolution: {integrity: sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -1821,14 +1866,14 @@ packages: resolution: {integrity: sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==} engines: {node: '>=6.9.0'} - '@babel/template@7.24.0': - resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==} - engines: {node: '>=6.9.0'} - '@babel/template@7.27.2': resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} engines: {node: '>=6.9.0'} + '@babel/template@7.29.7': + resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} + engines: {node: '>=6.9.0'} + '@babel/traverse@7.23.7': resolution: {integrity: sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==} engines: {node: '>=6.9.0'} @@ -1841,8 +1886,8 @@ packages: resolution: {integrity: sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg==} engines: {node: '>=6.9.0'} - '@babel/types@7.23.4': - resolution: {integrity: sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ==} + '@babel/traverse@7.29.8': + resolution: {integrity: sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==} engines: {node: '>=6.9.0'} '@babel/types@7.23.6': @@ -1857,6 +1902,10 @@ packages: resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==} engines: {node: '>=6.9.0'} + '@babel/types@7.29.8': + resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==} + engines: {node: '>=6.9.0'} + '@bcoe/v8-coverage@1.0.2': resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} @@ -2722,11 +2771,11 @@ packages: '@esbuild-kit/core-utils@3.1.0': resolution: {integrity: sha512-Uuk8RpCg/7fdHSceR1M6XbSZFSuMrxcePFuGgyvsBn+u339dk5OeL4jv2EojwTN2st/unJGsVm4qHWjWNmJ/tw==} - deprecated: 'Merged into tsx: https://tsx.is' + deprecated: 'Merged into tsx: https://tsx.hirok.io' '@esbuild-kit/esm-loader@2.5.5': resolution: {integrity: sha512-Qwfvj/qoPbClxCRNuac1Du01r9gvNOT+pMYtJDapfB1eoGN1YlJ1BixLyL9WVENRx5RXgNLdfYdx/CuswlGhMw==} - deprecated: 'Merged into tsx: https://tsx.is' + deprecated: 'Merged into tsx: https://tsx.hirok.io' '@esbuild/aix-ppc64@0.19.11': resolution: {integrity: sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==} @@ -2734,12 +2783,6 @@ packages: cpu: [ppc64] os: [aix] - '@esbuild/aix-ppc64@0.21.5': - resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [aix] - '@esbuild/aix-ppc64@0.25.0': resolution: {integrity: sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==} engines: {node: '>=18'} @@ -2764,12 +2807,6 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.21.5': - resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm64@0.25.0': resolution: {integrity: sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==} engines: {node: '>=18'} @@ -2794,12 +2831,6 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.21.5': - resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - '@esbuild/android-arm@0.25.0': resolution: {integrity: sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==} engines: {node: '>=18'} @@ -2824,12 +2855,6 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.21.5': - resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - '@esbuild/android-x64@0.25.0': resolution: {integrity: sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==} engines: {node: '>=18'} @@ -2854,12 +2879,6 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.21.5': - resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-arm64@0.25.0': resolution: {integrity: sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==} engines: {node: '>=18'} @@ -2884,12 +2903,6 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.21.5': - resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - '@esbuild/darwin-x64@0.25.0': resolution: {integrity: sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==} engines: {node: '>=18'} @@ -2914,12 +2927,6 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.21.5': - resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-arm64@0.25.0': resolution: {integrity: sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==} engines: {node: '>=18'} @@ -2944,12 +2951,6 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.21.5': - resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - '@esbuild/freebsd-x64@0.25.0': resolution: {integrity: sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==} engines: {node: '>=18'} @@ -2974,12 +2975,6 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.21.5': - resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm64@0.25.0': resolution: {integrity: sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==} engines: {node: '>=18'} @@ -3004,12 +2999,6 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.21.5': - resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - '@esbuild/linux-arm@0.25.0': resolution: {integrity: sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==} engines: {node: '>=18'} @@ -3034,12 +3023,6 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.21.5': - resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-ia32@0.25.0': resolution: {integrity: sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==} engines: {node: '>=18'} @@ -3064,12 +3047,6 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.21.5': - resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.25.0': resolution: {integrity: sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==} engines: {node: '>=18'} @@ -3094,12 +3071,6 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.21.5': - resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-mips64el@0.25.0': resolution: {integrity: sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==} engines: {node: '>=18'} @@ -3124,12 +3095,6 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.21.5': - resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-ppc64@0.25.0': resolution: {integrity: sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==} engines: {node: '>=18'} @@ -3154,12 +3119,6 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.21.5': - resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-riscv64@0.25.0': resolution: {integrity: sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==} engines: {node: '>=18'} @@ -3184,12 +3143,6 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.21.5': - resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-s390x@0.25.0': resolution: {integrity: sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==} engines: {node: '>=18'} @@ -3214,12 +3167,6 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.21.5': - resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - '@esbuild/linux-x64@0.25.0': resolution: {integrity: sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==} engines: {node: '>=18'} @@ -3256,12 +3203,6 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.21.5': - resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - '@esbuild/netbsd-x64@0.25.0': resolution: {integrity: sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==} engines: {node: '>=18'} @@ -3298,12 +3239,6 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.21.5': - resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - '@esbuild/openbsd-x64@0.25.0': resolution: {integrity: sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==} engines: {node: '>=18'} @@ -3334,12 +3269,6 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.21.5': - resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - '@esbuild/sunos-x64@0.25.0': resolution: {integrity: sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==} engines: {node: '>=18'} @@ -3364,12 +3293,6 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.21.5': - resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-arm64@0.25.0': resolution: {integrity: sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==} engines: {node: '>=18'} @@ -3394,12 +3317,6 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.21.5': - resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-ia32@0.25.0': resolution: {integrity: sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==} engines: {node: '>=18'} @@ -3424,12 +3341,6 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.21.5': - resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - '@esbuild/win32-x64@0.25.0': resolution: {integrity: sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==} engines: {node: '>=18'} @@ -3930,13 +3841,12 @@ packages: '@isaacs/string-locale-compare@1.1.0': resolution: {integrity: sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==} - '@istanbuljs/schema@0.1.3': - resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} - engines: {node: '>=8'} - '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} @@ -4487,6 +4397,7 @@ packages: '@octokit/webhooks-types@7.6.1': resolution: {integrity: sha512-S8u2cJzklBC0FgTwWVLaM8tMrDuDMVE4xiTK4EYXM9GntyvrdbSoxqDQa+Fh57CCNApyIpyeqPhhFEmHPfrXgw==} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. '@octokit/webhooks@13.8.0': resolution: {integrity: sha512-3PCWyFBNbW2+Ox36VAkSqlPoIb96NZiPcICRYySHZrDTM2NuNxvrjPeaQDj2egqILs9EZFObRTHVMe4XxXJV7w==} @@ -6428,6 +6339,9 @@ packages: '@repeaterjs/repeater@3.0.5': resolution: {integrity: sha512-l3YHBLAol6d/IKnB9LhpD0cEZWAoe3eFKUyTYWmFmCO2Q/WOckxLQAUyMZWwZV2M/m3+4vgRoaolFqaII82/TA==} + '@rolldown/pluginutils@1.0.0-rc.3': + resolution: {integrity: sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==} + '@rollup/plugin-commonjs@28.0.1': resolution: {integrity: sha512-+tNWdlWKbpB3WgBN7ijjYkq9X5uhjmcvyjEght4NmH5fAU++zfQzAJ6wumLS+dNcvwEZhKx2Z+skY8m7v0wGSA==} engines: {node: '>=16.0.0 || 14 >= 14.17'} @@ -7811,55 +7725,42 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} deprecated: Potential CWE-502 - Update to 1.3.1 or higher - '@vitejs/plugin-react@4.2.1': - resolution: {integrity: sha512-oojO9IDc4nCUUi8qIR11KoQm0XFFLIwsRBwHRR4d/88IWghn1y6ckz/bJ8GHDCsYEJee8mDzqtJxh15/cisJNQ==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - vite: ^4.2.0 || ^5.0.0 - - '@vitejs/plugin-react@4.3.1': - resolution: {integrity: sha512-m/V2syj5CuVnaxcUJOQRel/Wr31FFXRFlnOoq1TVtkCxsY5veGMTEmpWHndrhB2U8ScHtCQB1e+4hWYExQc6Lg==} - engines: {node: ^14.18.0 || >=16.0.0} + '@vitejs/plugin-react@5.2.0': + resolution: {integrity: sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==} + engines: {node: ^20.19.0 || >=22.12.0} peerDependencies: - vite: ^4.2.0 || ^5.0.0 + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 - '@vitest/coverage-v8@3.2.4': - resolution: {integrity: sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ==} + '@vitest/coverage-v8@5.0.0': + resolution: {integrity: sha512-toMg6PZGCIa/lQNCDoASrfb1ly4hsUKXFtFYC9kD4t78o5Y6LyNJU7AENt8eHPr3quYdxaxK7hj2mnbFfUk9NA==} peerDependencies: - '@vitest/browser': 3.2.4 - vitest: 3.2.4 + '@vitest/browser': 5.0.0 + vitest: 5.0.0 peerDependenciesMeta: '@vitest/browser': optional: true - '@vitest/expect@3.2.4': - resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==} + '@vitest/istanbul-lib-coverage@1.0.1': + resolution: {integrity: sha512-k3DJZ8LhMBK9NS4SclF1ASD3OgXEWDorbIcPTRDK0/Zae6fRvu+fJRxtFdLfHsa9Y24beCdPnoNZ4LviTNstfA==} + engines: {node: '>=22'} - '@vitest/mocker@3.2.4': - resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==} + '@vitest/istanbul-lib-report@1.0.1': + resolution: {integrity: sha512-1EOLRfsTMnyAr3+kEAsP4o9dhaDlGPpD7H5iLBBeq//YpNB1VIahkPhB+eRp9N2Dkfw8oySROjE3yf9XDeaIkQ==} + engines: {node: '>=22'} + + '@vitest/mocker@5.0.0': + resolution: {integrity: sha512-66PGTMIiVJP3t4a5yxU9qPtf7MdTBs8jmToMvy+HVflB3Yy13WJZTtPePdvU+wjRV02SKK5doLbSA6o9pwOmiA==} peerDependencies: msw: ^2.4.9 - vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: msw: optional: true vite: optional: true - '@vitest/pretty-format@3.2.4': - resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} - - '@vitest/runner@3.2.4': - resolution: {integrity: sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==} - - '@vitest/snapshot@3.2.4': - resolution: {integrity: sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==} - - '@vitest/spy@3.2.4': - resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==} - - '@vitest/utils@3.2.4': - resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} + '@vitest/spy@5.0.0': + resolution: {integrity: sha512-uy+luWBAPw9XfthoHi5AkfHUnuPYEESjl0p/r+meoBnU8bxg5GDQ3Ey8MjcJ6sqahkL4PFyrvfMJJBw7LbU06g==} '@volar/language-core@2.4.28': resolution: {integrity: sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==} @@ -8181,18 +8082,26 @@ packages: resolution: {integrity: sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==} engines: {node: '>= 0.4'} + array-includes@3.1.9: + resolution: {integrity: sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==} + engines: {node: '>= 0.4'} + array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} - array.prototype.flat@1.3.1: - resolution: {integrity: sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==} + array.prototype.flat@1.3.3: + resolution: {integrity: sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==} engines: {node: '>= 0.4'} array.prototype.flatmap@1.3.1: resolution: {integrity: sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==} engines: {node: '>= 0.4'} + array.prototype.flatmap@1.3.3: + resolution: {integrity: sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==} + engines: {node: '>= 0.4'} + array.prototype.tosorted@1.1.1: resolution: {integrity: sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==} @@ -8208,15 +8117,11 @@ packages: resolution: {integrity: sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==} engines: {node: '>=12.0.0'} - assertion-error@2.0.1: - resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} - engines: {node: '>=12'} - ast-types-flow@0.0.7: resolution: {integrity: sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==} - ast-v8-to-istanbul@0.3.8: - resolution: {integrity: sha512-szgSZqUxI5T8mLKvS7WTjF9is+MVbOeLADU73IseOcrqhxr/VAvy6wfoVE39KnKzA7JRhjF5eUagNlHwvZPlKQ==} + ast-v8-to-istanbul@1.0.5: + resolution: {integrity: sha512-UPAgKJFSEGMWSDr3LX4tqnAb4f7KGT8O40Tyx8wbYmmZ/yn58lNCm8h3svs3eXgiGd5AXxz8NDOvXWvicq+rJA==} async-function@1.0.0: resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==} @@ -8432,10 +8337,6 @@ packages: resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} engines: {node: '>= 0.8'} - cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - cacache@20.0.3: resolution: {integrity: sha512-3pUp4e8hv07k1QlijZu6Kn7c9+ZpWWk4j3F8N3xPuCExULobqJydKYOTj1FTq58srkJsXvO7LbGAH4C0ZU3WGw==} engines: {node: ^20.17.0 || >=22.9.0} @@ -8500,8 +8401,8 @@ packages: ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} - chai@5.2.1: - resolution: {integrity: sha512-5nFxhUrX0PqtyogoYOA8IPswy5sZFTOsBFl/9bNsmDLgsxYTzSZQJDPppDnZPTQbzSEm0hqGjWPzRemQCYbD6A==} + chai@6.2.2: + resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} chalk@2.4.2: @@ -8545,10 +8446,6 @@ packages: chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} - check-error@2.1.1: - resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} - engines: {node: '>= 16'} - chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} @@ -8886,6 +8783,7 @@ packages: cron-parser@4.9.0: resolution: {integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==} engines: {node: '>=12.0.0'} + deprecated: v4 is no longer maintained, upgrade to v5 cross-env@7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} @@ -8902,6 +8800,7 @@ packages: crypto-js@4.2.0: resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} + deprecated: Active development of CryptoJS has been discontinued. This library is no longer maintained. css-box-model@1.2.1: resolution: {integrity: sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==} @@ -9105,10 +9004,6 @@ packages: babel-plugin-macros: optional: true - deep-eql@5.0.2: - resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} - engines: {node: '>=6'} - deep-equal@2.2.3: resolution: {integrity: sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==} engines: {node: '>= 0.4'} @@ -9485,6 +9380,9 @@ packages: es-module-lexer@1.7.0: resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + es-object-atoms@1.1.1: resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} engines: {node: '>= 0.4'} @@ -9504,6 +9402,10 @@ packages: es-shim-unscopables@1.0.0: resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} + es-shim-unscopables@1.1.0: + resolution: {integrity: sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==} + engines: {node: '>= 0.4'} + es-to-primitive@1.3.0: resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==} engines: {node: '>= 0.4'} @@ -9523,11 +9425,6 @@ packages: engines: {node: '>=12'} hasBin: true - esbuild@0.21.5: - resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} - engines: {node: '>=12'} - hasBin: true - esbuild@0.25.0: resolution: {integrity: sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==} engines: {node: '>=18'} @@ -9595,7 +9492,7 @@ packages: engines: {node: '>=12.0.0'} peerDependencies: eslint: ^8.0.1 - eslint-plugin-import: ^2.25.2 + eslint-plugin-import: 2.27.5 eslint-plugin-n: '^15.0.0 || ^16.0.0 ' eslint-plugin-promise: ^6.0.0 @@ -9605,6 +9502,9 @@ packages: eslint: '*' typescript: '*' + eslint-import-resolver-node@0.3.10: + resolution: {integrity: sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==} + eslint-import-resolver-node@0.3.7: resolution: {integrity: sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==} @@ -9613,7 +9513,7 @@ packages: engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: eslint: '*' - eslint-plugin-import: '*' + eslint-plugin-import: 2.27.5 eslint-module-utils@2.8.0: resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} @@ -9821,8 +9721,8 @@ packages: resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==} engines: {node: ^18.19.0 || >=20.5.0} - expect-type@1.2.1: - resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==} + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} engines: {node: '>=12.0.0'} exponential-backoff@3.1.1: @@ -10486,9 +10386,6 @@ packages: resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==} engines: {node: '>=18'} - html-escaper@2.0.2: - resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} - html-minifier-terser@6.1.0: resolution: {integrity: sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==} engines: {node: '>=12'} @@ -10738,6 +10635,10 @@ packages: resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==} engines: {node: '>= 0.4'} + is-core-module@2.16.2: + resolution: {integrity: sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==} + engines: {node: '>= 0.4'} + is-data-view@1.0.2: resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==} engines: {node: '>= 0.4'} @@ -10961,22 +10862,6 @@ packages: peerDependencies: ws: 8.21.0 - istanbul-lib-coverage@3.2.2: - resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} - engines: {node: '>=8'} - - istanbul-lib-report@3.0.1: - resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} - engines: {node: '>=10'} - - istanbul-lib-source-maps@5.0.6: - resolution: {integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==} - engines: {node: '>=10'} - - istanbul-reports@3.2.0: - resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==} - engines: {node: '>=8'} - iterate-iterator@1.0.2: resolution: {integrity: sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw==} @@ -11030,12 +10915,12 @@ packages: js-cookie@3.0.8: resolution: {integrity: sha512-yeJd4aNAdYZQjaon2bpD/Gb0B/omw7HQOsynXXcOiWVCacbBcPlgn8S/d1X6blFSaHao7ozqtW7NZW19xpCtIw==} + js-tokens@10.0.0: + resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-tokens@9.0.1: - resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} - js-yaml@4.3.1: resolution: {integrity: sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==} hasBin: true @@ -11289,9 +11174,6 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - loupe@3.2.0: - resolution: {integrity: sha512-2NCfZcT5VGVNX9mSZIxLRkEAegDGBpuQZBy13desuHeVORmBDyAET4TkJr4SjqQy3A8JDofMN6LpkK8Xcm/dlw==} - lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} @@ -11328,12 +11210,11 @@ packages: resolution: {integrity: sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==} engines: {node: '>=12'} - magicast@0.3.5: - resolution: {integrity: sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==} + magic-string@1.2.3: + resolution: {integrity: sha512-Bpb0W2TbLKOZ7vJnOUnVRGq3WL2p+ISV29M6hYPL1AFCpyKZpdr5ytiXoTSSxRVhg8YW7f65+6gbG8WG6PCa/g==} - make-dir@4.0.0: - resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} - engines: {node: '>=10'} + magicast@0.5.4: + resolution: {integrity: sha512-llBEhWm1SacoRwgHUoQJYtwp4PBLF4faQi5TCpIGyGs9n4y5+juI0tDgyKIfpqxckRHaHzouUEph3THklWh03w==} make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} @@ -11779,6 +11660,10 @@ packages: engines: {node: '>=10.5.0'} deprecated: Use your platform's native DOMException instead + node-exports-info@1.6.2: + resolution: {integrity: sha512-kXs9Go0cah0qHVV2v389IXQLdLCeE1xfFtjOAF+iobu0OIoG1pje8At2vMHyaPMiPMnG/LWP50twML21eMcAag==} + engines: {node: '>= 0.4'} + node-fetch@2.6.13: resolution: {integrity: sha512-StxNAxh15zr77QvvkmveSQ8uCQ4+v5FkvNTj0OESmiHu+VRi/gXArXtkWMElOsOUNLtUEvI4yS+rdtOHZTwlQA==} engines: {node: 4.x || >=6.0.0} @@ -11939,9 +11824,17 @@ packages: resolution: {integrity: sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==} engines: {node: '>= 0.4'} + object.values@1.2.1: + resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==} + engines: {node: '>= 0.4'} + obliterator@2.0.4: resolution: {integrity: sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==} + obug@2.1.4: + resolution: {integrity: sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==} + engines: {node: '>=12.20.0'} + octokit@4.1.3: resolution: {integrity: sha512-PP+EL8h4xPCE9NBo6jXq6I2/EiTXsn1cg9F0IZehHBv/qhuQpyGMFElEB17miWKciuT6vRHiFFiG9+FoXOmg6A==} engines: {node: '>= 18'} @@ -12193,10 +12086,6 @@ packages: pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - pathval@2.0.1: - resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==} - engines: {node: '>= 14.16'} - peberminta@0.9.0: resolution: {integrity: sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ==} @@ -12498,6 +12387,7 @@ packages: prom-client@15.1.3: resolution: {integrity: sha512-6ZiOBfCywsD4k1BN9IX0uZhF+tJkV8q8llP64G5Hajs4JOeVLPCwpPVcpXy3BwYiUGgyJzsJJQeOIv7+hDSq8g==} engines: {node: ^16 || ^18 || >=20} + deprecated: prom-client has been replaced by @prometheus-io/client promise-all-reject-late@1.0.1: resolution: {integrity: sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==} @@ -12743,12 +12633,8 @@ packages: react-promise-suspense@0.3.4: resolution: {integrity: sha512-I42jl7L3Ze6kZaq+7zXWSunBa3b1on5yfvUW6Eo/3fFOj6dZ5Bqmcd264nJbTK/gn1HjjILAjSwnZbV4RpSaNQ==} - react-refresh@0.14.0: - resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==} - engines: {node: '>=0.10.0'} - - react-refresh@0.14.2: - resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==} + react-refresh@0.18.0: + resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} engines: {node: '>=0.10.0'} react-remove-scroll-bar@2.3.6: @@ -13007,11 +12893,6 @@ packages: resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - resolve@1.22.10: - resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==} - engines: {node: '>= 0.4'} - hasBin: true - resolve@1.22.11: resolution: {integrity: sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==} engines: {node: '>= 0.4'} @@ -13025,6 +12906,11 @@ packages: resolution: {integrity: sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==} hasBin: true + resolve@2.0.0-next.7: + resolution: {integrity: sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==} + engines: {node: '>= 0.4'} + hasBin: true + restore-cursor@3.1.0: resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} engines: {node: '>=8'} @@ -13419,8 +13305,8 @@ packages: resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} engines: {node: '>= 0.8'} - std-env@3.9.0: - resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==} + std-env@4.2.0: + resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==} stdin-discarder@0.2.2: resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==} @@ -13525,9 +13411,6 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - strip-literal@3.0.0: - resolution: {integrity: sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==} - stripe@14.19.0: resolution: {integrity: sha512-Je2USTpUib3hApIgoHXViLoYkDLp+AXdUJvJ6aMQ/AcvZK1PcC7N8nTceh+0gpdotX8izlWN4QyVdMcptubHBQ==} engines: {node: '>=12.*'} @@ -13647,10 +13530,6 @@ packages: engines: {node: '>=10'} hasBin: true - test-exclude@7.0.1: - resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==} - engines: {node: '>=18'} - text-decoder@1.2.7: resolution: {integrity: sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==} @@ -13687,8 +13566,9 @@ packages: resolution: {integrity: sha512-27BIW0dIWTYYoWNnqSmoNMKe5WIbkXsc0xaCQHd3/3xT2XMuMJrzHdrO9QBFR14emBz1Bu0dOAs2sCBBrvgPQA==} engines: {node: '>=12'} - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + tinybench@6.1.4: + resolution: {integrity: sha512-9APumHG7r4yOk4X4WlkmE71aZcv1gvin1czO3OQ1U9iJcFA5Ja/ygyb0vPOVHTthFozUYs8CLoLUlM8grb2lTQ==} + engines: {node: '>=20.0.0'} tinyduration@3.4.1: resolution: {integrity: sha512-NemFoamVYn7TmtwZKZ3OiliM9fZkr6EWiTM+wKknco6POSy2gS689xx/pXip0JYp40HXpUw6k65CUYHWYUXdaA==} @@ -13699,28 +13579,28 @@ packages: tinyexec@1.0.1: resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==} + tinyexec@1.3.0: + resolution: {integrity: sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==} + engines: {node: '>=18'} + tinyglobby@0.2.15: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} - tinypool@1.1.1: - resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} - engines: {node: ^18.0.0 || >=20.0.0} + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} tinypool@2.1.0: resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==} engines: {node: ^20.0.0 || >=22.0.0} - tinyrainbow@2.0.0: - resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} - engines: {node: '>=14.0.0'} - tinyrainbow@3.1.0: resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==} engines: {node: '>=14.0.0'} - tinyspy@4.0.3: - resolution: {integrity: sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==} + tinyrainbow@3.1.1: + resolution: {integrity: sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==} engines: {node: '>=14.0.0'} tippy.js@6.3.7: @@ -13826,8 +13706,8 @@ packages: '@swc/wasm': optional: true - tsconfig-paths@3.14.2: - resolution: {integrity: sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==} + tsconfig-paths@3.15.0: + resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} @@ -14192,11 +14072,6 @@ packages: victory-vendor@36.6.11: resolution: {integrity: sha512-nT8kCiJp8dQh8g991J/R5w5eE2KnO8EAIP0xocWlh9l2okngMWglOPoMZzJvek8Q1KUc4XE/mJxTZnvOB1sTYg==} - vite-node@3.2.4: - resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} - hasBin: true - vite-plugin-dts@4.5.4: resolution: {integrity: sha512-d4sOM8M/8z7vRXHHq/ebbblfaxENjogAAekcfcDCCwAyvGqnPrc7f4NZbvItS+g4WTgerW0xDwSz5qz11JT3vg==} peerDependencies: @@ -14218,22 +14093,27 @@ packages: rollup: ^4.35.0 vite: ^5.4.11 || ^6.0.0 - vite@5.4.21: - resolution: {integrity: sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==} - engines: {node: ^18.0.0 || >=20.0.0} + vite@6.4.3: + resolution: {integrity: sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' less: '*' lightningcss: ^1.21.0 sass: '*' sass-embedded: '*' stylus: '*' sugarss: '*' - terser: ^5.4.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: 2.8.3 peerDependenciesMeta: '@types/node': optional: true + jiti: + optional: true less: optional: true lightningcss: @@ -14248,27 +14128,44 @@ packages: optional: true terser: optional: true + tsx: + optional: true + yaml: + optional: true - vitest@3.2.4: - resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + vitest@5.0.0: + resolution: {integrity: sha512-gpsMNoRhMjMktVxPtstOH4/PJuPyovVaMDr4oDilXaGH1EcqM2OE96SoHT2VIQ6fTGtTjqmHDrEu2X9RQiXf8Q==} + engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' - '@types/debug': ^4.1.12 - '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 - '@vitest/browser': 3.2.4 - '@vitest/ui': 3.2.4 + '@opentelemetry/api': ^1.9.0 + '@types/node': ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 5.0.0 + '@vitest/browser-preview': 5.0.0 + '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0 + '@vitest/coverage-istanbul': 5.0.0 + '@vitest/coverage-v8': 5.0.0 + '@vitest/ui': 5.0.0 happy-dom: '*' jsdom: '*' + vite: ^6.4.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: '@edge-runtime/vm': optional: true - '@types/debug': + '@opentelemetry/api': optional: true '@types/node': optional: true - '@vitest/browser': + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': optional: true '@vitest/ui': optional: true @@ -15149,8 +15046,16 @@ snapshots: js-tokens: 4.0.0 picocolors: 1.1.1 + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + '@babel/compat-data@7.28.0': {} + '@babel/compat-data@7.29.7': {} + '@babel/core@7.24.5': dependencies: '@ampproject/remapping': 2.3.0 @@ -15159,10 +15064,30 @@ snapshots: '@babel/helper-compilation-targets': 7.27.2 '@babel/helper-module-transforms': 7.27.3(@babel/core@7.24.5) '@babel/helpers': 7.28.2 - '@babel/parser': 7.29.2 + '@babel/parser': 7.29.8 '@babel/template': 7.27.2 '@babel/traverse': 7.28.0 - '@babel/types': 7.29.0 + '@babel/types': 7.29.8 + convert-source-map: 2.0.0 + debug: 4.4.1 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/core@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.8 + '@babel/helper-compilation-targets': 7.29.7 + '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) + '@babel/helpers': 7.29.7 + '@babel/parser': 7.29.8 + '@babel/template': 7.29.7 + '@babel/traverse': 7.29.8 + '@babel/types': 7.29.8 + '@jridgewell/remapping': 2.3.5 convert-source-map: 2.0.0 debug: 4.4.1 gensync: 1.0.0-beta.2 @@ -15173,7 +15098,7 @@ snapshots: '@babel/generator@7.23.6': dependencies: - '@babel/types': 7.29.0 + '@babel/types': 7.29.8 '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 jsesc: 2.5.2 @@ -15186,6 +15111,14 @@ snapshots: '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0 + '@babel/generator@7.29.8': + dependencies: + '@babel/parser': 7.29.8 + '@babel/types': 7.29.8 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + '@babel/helper-compilation-targets@7.27.2': dependencies: '@babel/compat-data': 7.28.0 @@ -15194,23 +15127,40 @@ snapshots: lru-cache: 5.1.1 semver: 6.3.1 + '@babel/helper-compilation-targets@7.29.7': + dependencies: + '@babel/compat-data': 7.29.7 + '@babel/helper-validator-option': 7.29.7 + browserslist: 4.28.1 + lru-cache: 5.1.1 + semver: 6.3.1 + '@babel/helper-environment-visitor@7.22.20': {} '@babel/helper-function-name@7.23.0': dependencies: - '@babel/template': 7.24.0 - '@babel/types': 7.29.0 + '@babel/template': 7.27.2 + '@babel/types': 7.29.8 '@babel/helper-globals@7.28.0': {} + '@babel/helper-globals@7.29.7': {} + '@babel/helper-hoist-variables@7.22.5': dependencies: - '@babel/types': 7.29.0 + '@babel/types': 7.29.8 '@babel/helper-module-imports@7.27.1': dependencies: '@babel/traverse': 7.28.0 - '@babel/types': 7.29.0 + '@babel/types': 7.29.8 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-imports@7.29.7': + dependencies: + '@babel/traverse': 7.29.8 + '@babel/types': 7.29.8 transitivePeerDependencies: - supports-color @@ -15218,23 +15168,34 @@ snapshots: dependencies: '@babel/core': 7.24.5 '@babel/helper-module-imports': 7.27.1 - '@babel/helper-validator-identifier': 7.28.5 + '@babel/helper-validator-identifier': 7.29.7 '@babel/traverse': 7.28.0 transitivePeerDependencies: - supports-color + '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7)': + dependencies: + '@babel/core': 7.29.7 + '@babel/helper-module-imports': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@babel/traverse': 7.29.8 + transitivePeerDependencies: + - supports-color + '@babel/helper-plugin-utils@7.22.5': {} - '@babel/helper-plugin-utils@7.24.7': {} + '@babel/helper-plugin-utils@7.29.7': {} '@babel/helper-split-export-declaration@7.22.6': dependencies: - '@babel/types': 7.29.0 + '@babel/types': 7.29.8 '@babel/helper-string-parser@7.23.4': {} '@babel/helper-string-parser@7.27.1': {} + '@babel/helper-string-parser@7.29.7': {} + '@babel/helper-validator-identifier@7.22.20': {} '@babel/helper-validator-identifier@7.25.9': {} @@ -15243,12 +15204,21 @@ snapshots: '@babel/helper-validator-identifier@7.28.5': {} + '@babel/helper-validator-identifier@7.29.7': {} + '@babel/helper-validator-option@7.27.1': {} + '@babel/helper-validator-option@7.29.7': {} + '@babel/helpers@7.28.2': dependencies: '@babel/template': 7.27.2 - '@babel/types': 7.29.0 + '@babel/types': 7.29.8 + + '@babel/helpers@7.29.7': + dependencies: + '@babel/template': 7.29.7 + '@babel/types': 7.29.8 '@babel/highlight@7.23.4': dependencies: @@ -15258,7 +15228,7 @@ snapshots: '@babel/parser@7.23.6': dependencies: - '@babel/types': 7.23.6 + '@babel/types': 7.29.0 '@babel/parser@7.24.5': dependencies: @@ -15266,52 +15236,46 @@ snapshots: '@babel/parser@7.28.0': dependencies: - '@babel/types': 7.28.2 + '@babel/types': 7.29.0 '@babel/parser@7.29.2': dependencies: - '@babel/types': 7.29.0 + '@babel/types': 7.29.8 - '@babel/plugin-syntax-import-assertions@7.23.3(@babel/core@7.24.5)': + '@babel/parser@7.29.8': dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/types': 7.29.8 - '@babel/plugin-transform-react-jsx-self@7.23.3(@babel/core@7.24.5)': + '@babel/plugin-syntax-import-assertions@7.23.3(@babel/core@7.29.7)': dependencies: - '@babel/core': 7.24.5 + '@babel/core': 7.29.7 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-transform-react-jsx-self@7.24.7(@babel/core@7.24.5)': - dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.24.7 - - '@babel/plugin-transform-react-jsx-source@7.23.3(@babel/core@7.24.5)': + '@babel/plugin-transform-react-jsx-self@7.29.7(@babel/core@7.29.7)': dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-transform-react-jsx-source@7.24.7(@babel/core@7.24.5)': + '@babel/plugin-transform-react-jsx-source@7.29.7(@babel/core@7.29.7)': dependencies: - '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.29.7 + '@babel/helper-plugin-utils': 7.29.7 '@babel/runtime@7.27.1': {} '@babel/runtime@7.28.6': {} - '@babel/template@7.24.0': + '@babel/template@7.27.2': dependencies: '@babel/code-frame': 7.27.1 '@babel/parser': 7.29.2 '@babel/types': 7.29.0 - '@babel/template@7.27.2': + '@babel/template@7.29.7': dependencies: - '@babel/code-frame': 7.27.1 - '@babel/parser': 7.29.2 - '@babel/types': 7.29.0 + '@babel/code-frame': 7.29.7 + '@babel/parser': 7.29.8 + '@babel/types': 7.29.8 '@babel/traverse@7.23.7': dependencies: @@ -15345,18 +15309,24 @@ snapshots: '@babel/code-frame': 7.27.1 '@babel/generator': 7.28.0 '@babel/helper-globals': 7.28.0 - '@babel/parser': 7.29.2 + '@babel/parser': 7.29.8 '@babel/template': 7.27.2 - '@babel/types': 7.29.0 + '@babel/types': 7.29.8 debug: 4.4.1 transitivePeerDependencies: - supports-color - '@babel/types@7.23.4': + '@babel/traverse@7.29.8': dependencies: - '@babel/helper-string-parser': 7.23.4 - '@babel/helper-validator-identifier': 7.22.20 - to-fast-properties: 2.0.0 + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.8 + '@babel/helper-globals': 7.29.7 + '@babel/parser': 7.29.8 + '@babel/template': 7.29.7 + '@babel/types': 7.29.8 + debug: 4.4.1 + transitivePeerDependencies: + - supports-color '@babel/types@7.23.6': dependencies: @@ -15374,6 +15344,11 @@ snapshots: '@babel/helper-string-parser': 7.27.1 '@babel/helper-validator-identifier': 7.28.5 + '@babel/types@7.29.8': + dependencies: + '@babel/helper-string-parser': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@bcoe/v8-coverage@1.0.2': {} '@borewit/text-codec@0.2.2': {} @@ -16403,7 +16378,7 @@ snapshots: '@emotion/babel-plugin@11.13.5': dependencies: - '@babel/helper-module-imports': 7.27.1 + '@babel/helper-module-imports': 7.29.7 '@babel/runtime': 7.28.6 '@emotion/hash': 0.9.2 '@emotion/memoize': 0.9.0 @@ -16507,9 +16482,6 @@ snapshots: '@esbuild/aix-ppc64@0.19.11': optional: true - '@esbuild/aix-ppc64@0.21.5': - optional: true - '@esbuild/aix-ppc64@0.25.0': optional: true @@ -16522,9 +16494,6 @@ snapshots: '@esbuild/android-arm64@0.19.11': optional: true - '@esbuild/android-arm64@0.21.5': - optional: true - '@esbuild/android-arm64@0.25.0': optional: true @@ -16537,9 +16506,6 @@ snapshots: '@esbuild/android-arm@0.19.11': optional: true - '@esbuild/android-arm@0.21.5': - optional: true - '@esbuild/android-arm@0.25.0': optional: true @@ -16552,9 +16518,6 @@ snapshots: '@esbuild/android-x64@0.19.11': optional: true - '@esbuild/android-x64@0.21.5': - optional: true - '@esbuild/android-x64@0.25.0': optional: true @@ -16567,9 +16530,6 @@ snapshots: '@esbuild/darwin-arm64@0.19.11': optional: true - '@esbuild/darwin-arm64@0.21.5': - optional: true - '@esbuild/darwin-arm64@0.25.0': optional: true @@ -16582,9 +16542,6 @@ snapshots: '@esbuild/darwin-x64@0.19.11': optional: true - '@esbuild/darwin-x64@0.21.5': - optional: true - '@esbuild/darwin-x64@0.25.0': optional: true @@ -16597,9 +16554,6 @@ snapshots: '@esbuild/freebsd-arm64@0.19.11': optional: true - '@esbuild/freebsd-arm64@0.21.5': - optional: true - '@esbuild/freebsd-arm64@0.25.0': optional: true @@ -16612,9 +16566,6 @@ snapshots: '@esbuild/freebsd-x64@0.19.11': optional: true - '@esbuild/freebsd-x64@0.21.5': - optional: true - '@esbuild/freebsd-x64@0.25.0': optional: true @@ -16627,9 +16578,6 @@ snapshots: '@esbuild/linux-arm64@0.19.11': optional: true - '@esbuild/linux-arm64@0.21.5': - optional: true - '@esbuild/linux-arm64@0.25.0': optional: true @@ -16642,9 +16590,6 @@ snapshots: '@esbuild/linux-arm@0.19.11': optional: true - '@esbuild/linux-arm@0.21.5': - optional: true - '@esbuild/linux-arm@0.25.0': optional: true @@ -16657,9 +16602,6 @@ snapshots: '@esbuild/linux-ia32@0.19.11': optional: true - '@esbuild/linux-ia32@0.21.5': - optional: true - '@esbuild/linux-ia32@0.25.0': optional: true @@ -16672,9 +16614,6 @@ snapshots: '@esbuild/linux-loong64@0.19.11': optional: true - '@esbuild/linux-loong64@0.21.5': - optional: true - '@esbuild/linux-loong64@0.25.0': optional: true @@ -16687,9 +16626,6 @@ snapshots: '@esbuild/linux-mips64el@0.19.11': optional: true - '@esbuild/linux-mips64el@0.21.5': - optional: true - '@esbuild/linux-mips64el@0.25.0': optional: true @@ -16702,9 +16638,6 @@ snapshots: '@esbuild/linux-ppc64@0.19.11': optional: true - '@esbuild/linux-ppc64@0.21.5': - optional: true - '@esbuild/linux-ppc64@0.25.0': optional: true @@ -16717,9 +16650,6 @@ snapshots: '@esbuild/linux-riscv64@0.19.11': optional: true - '@esbuild/linux-riscv64@0.21.5': - optional: true - '@esbuild/linux-riscv64@0.25.0': optional: true @@ -16732,9 +16662,6 @@ snapshots: '@esbuild/linux-s390x@0.19.11': optional: true - '@esbuild/linux-s390x@0.21.5': - optional: true - '@esbuild/linux-s390x@0.25.0': optional: true @@ -16747,9 +16674,6 @@ snapshots: '@esbuild/linux-x64@0.19.11': optional: true - '@esbuild/linux-x64@0.21.5': - optional: true - '@esbuild/linux-x64@0.25.0': optional: true @@ -16768,9 +16692,6 @@ snapshots: '@esbuild/netbsd-x64@0.19.11': optional: true - '@esbuild/netbsd-x64@0.21.5': - optional: true - '@esbuild/netbsd-x64@0.25.0': optional: true @@ -16789,9 +16710,6 @@ snapshots: '@esbuild/openbsd-x64@0.19.11': optional: true - '@esbuild/openbsd-x64@0.21.5': - optional: true - '@esbuild/openbsd-x64@0.25.0': optional: true @@ -16807,9 +16725,6 @@ snapshots: '@esbuild/sunos-x64@0.19.11': optional: true - '@esbuild/sunos-x64@0.21.5': - optional: true - '@esbuild/sunos-x64@0.25.0': optional: true @@ -16822,9 +16737,6 @@ snapshots: '@esbuild/win32-arm64@0.19.11': optional: true - '@esbuild/win32-arm64@0.21.5': - optional: true - '@esbuild/win32-arm64@0.25.0': optional: true @@ -16837,9 +16749,6 @@ snapshots: '@esbuild/win32-ia32@0.19.11': optional: true - '@esbuild/win32-ia32@0.21.5': - optional: true - '@esbuild/win32-ia32@0.25.0': optional: true @@ -16852,9 +16761,6 @@ snapshots: '@esbuild/win32-x64@0.19.11': optional: true - '@esbuild/win32-x64@0.21.5': - optional: true - '@esbuild/win32-x64@0.25.0': optional: true @@ -16974,11 +16880,11 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@graphql-eslint/eslint-plugin@3.20.1(@babel/core@7.24.5)(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-eslint/eslint-plugin@3.20.1(@babel/core@7.29.7)(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: '@babel/code-frame': 7.23.5 - '@graphql-tools/code-file-loader': 7.3.23(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/code-file-loader': 7.3.23(@babel/core@7.29.7)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.29.7)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) chalk: 4.1.2 debug: 4.3.7 @@ -17012,9 +16918,9 @@ snapshots: tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-tools/code-file-loader@7.3.23(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/code-file-loader@7.3.23(@babel/core@7.29.7)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: - '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.29.7)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) globby: 11.1.0 graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) @@ -17093,10 +16999,10 @@ snapshots: tslib: 2.8.1 unixify: 1.0.0 - '@graphql-tools/graphql-tag-pluck@7.5.2(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/graphql-tag-pluck@7.5.2(@babel/core@7.29.7)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: '@babel/parser': 7.23.6 - '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/core@7.24.5) + '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/core@7.29.7) '@babel/traverse': 7.23.7 '@babel/types': 7.23.6 '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) @@ -17466,13 +17372,16 @@ snapshots: '@isaacs/string-locale-compare@1.1.0': {} - '@istanbuljs/schema@0.1.3': {} - '@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.5.5 '@jridgewell/trace-mapping': 0.3.31 + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + '@jridgewell/resolve-uri@3.1.2': {} '@jridgewell/source-map@0.3.11': @@ -20541,6 +20450,8 @@ snapshots: '@repeaterjs/repeater@3.0.5': {} + '@rolldown/pluginutils@1.0.0-rc.3': {} + '@rollup/plugin-commonjs@28.0.1(rollup@3.30.0)': dependencies: '@rollup/pluginutils': 5.1.0(rollup@3.30.0) @@ -21778,24 +21689,24 @@ snapshots: '@types/babel__core@7.20.5': dependencies: - '@babel/parser': 7.23.6 - '@babel/types': 7.23.4 + '@babel/parser': 7.29.8 + '@babel/types': 7.29.8 '@types/babel__generator': 7.6.8 '@types/babel__template': 7.4.4 '@types/babel__traverse': 7.20.5 '@types/babel__generator@7.6.8': dependencies: - '@babel/types': 7.23.4 + '@babel/types': 7.29.8 '@types/babel__template@7.4.4': dependencies: - '@babel/parser': 7.28.0 - '@babel/types': 7.23.4 + '@babel/parser': 7.29.8 + '@babel/types': 7.29.8 '@types/babel__traverse@7.20.5': dependencies: - '@babel/types': 7.23.4 + '@babel/types': 7.29.8 '@types/bun@1.2.3': dependencies: @@ -22284,135 +22195,56 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-react@4.2.1(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': - dependencies: - '@babel/core': 7.24.5 - '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/core@7.24.5) - '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.24.5) - '@types/babel__core': 7.20.5 - react-refresh: 0.14.0 - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) - transitivePeerDependencies: - - supports-color - - '@vitejs/plugin-react@4.3.1(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': + '@vitejs/plugin-react@5.2.0(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3))': dependencies: - '@babel/core': 7.24.5 - '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.5) - '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.5) + '@babel/core': 7.29.7 + '@babel/plugin-transform-react-jsx-self': 7.29.7(@babel/core@7.29.7) + '@babel/plugin-transform-react-jsx-source': 7.29.7(@babel/core@7.29.7) + '@rolldown/pluginutils': 1.0.0-rc.3 '@types/babel__core': 7.20.5 - react-refresh: 0.14.2 - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + react-refresh: 0.18.0 + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1))': + '@vitest/coverage-v8@5.0.0(vitest@5.0.0)': dependencies: - '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 - ast-v8-to-istanbul: 0.3.8 - debug: 4.4.1 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 5.0.6 - istanbul-reports: 3.2.0 - magic-string: 0.30.17 - magicast: 0.3.5 - std-env: 3.9.0 - test-exclude: 7.0.1 - tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1) - transitivePeerDependencies: - - supports-color + '@vitest/istanbul-lib-coverage': 1.0.1 + '@vitest/istanbul-lib-report': 1.0.1 + ast-v8-to-istanbul: 1.0.5 + magicast: 0.5.4 + obug: 2.1.4 + std-env: 4.2.0 + tinyrainbow: 3.1.1 + vitest: 5.0.0(@opentelemetry/api@1.9.1)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@6.0.3))(terser@5.44.1))': - dependencies: - '@ampproject/remapping': 2.3.0 - '@bcoe/v8-coverage': 1.0.2 - ast-v8-to-istanbul: 0.3.8 - debug: 4.4.1 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 5.0.6 - istanbul-reports: 3.2.0 - magic-string: 0.30.17 - magicast: 0.3.5 - std-env: 3.9.0 - test-exclude: 7.0.1 - tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@6.0.3))(terser@5.44.1) - transitivePeerDependencies: - - supports-color - - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1))': - dependencies: - '@ampproject/remapping': 2.3.0 - '@bcoe/v8-coverage': 1.0.2 - ast-v8-to-istanbul: 0.3.8 - debug: 4.4.1 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 5.0.6 - istanbul-reports: 3.2.0 - magic-string: 0.30.17 - magicast: 0.3.5 - std-env: 3.9.0 - test-exclude: 7.0.1 - tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) - transitivePeerDependencies: - - supports-color + '@vitest/istanbul-lib-coverage@1.0.1': {} - '@vitest/expect@3.2.4': + '@vitest/istanbul-lib-report@1.0.1': dependencies: - '@types/chai': 5.2.2 - '@vitest/spy': 3.2.4 - '@vitest/utils': 3.2.4 - chai: 5.2.1 - tinyrainbow: 2.0.0 + '@vitest/istanbul-lib-coverage': 1.0.1 - '@vitest/mocker@3.2.4(msw@2.2.11(typescript@6.0.3))(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': + '@vitest/mocker@5.0.0(msw@2.2.11(typescript@6.0.3))(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3))': dependencies: - '@vitest/spy': 3.2.4 + '@jridgewell/trace-mapping': 0.3.31 + '@vitest/spy': 5.0.0 estree-walker: 3.0.3 - magic-string: 0.30.17 + magic-string: 1.2.3 optionalDependencies: msw: 2.2.11(typescript@6.0.3) - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) - '@vitest/mocker@3.2.4(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': + '@vitest/mocker@5.0.0(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3))': dependencies: - '@vitest/spy': 3.2.4 + '@jridgewell/trace-mapping': 0.3.31 + '@vitest/spy': 5.0.0 estree-walker: 3.0.3 - magic-string: 0.30.17 + magic-string: 1.2.3 optionalDependencies: - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) - '@vitest/pretty-format@3.2.4': - dependencies: - tinyrainbow: 2.0.0 - - '@vitest/runner@3.2.4': - dependencies: - '@vitest/utils': 3.2.4 - pathe: 2.0.3 - strip-literal: 3.0.0 - - '@vitest/snapshot@3.2.4': - dependencies: - '@vitest/pretty-format': 3.2.4 - magic-string: 0.30.17 - pathe: 2.0.3 - - '@vitest/spy@3.2.4': - dependencies: - tinyspy: 4.0.3 - - '@vitest/utils@3.2.4': - dependencies: - '@vitest/pretty-format': 3.2.4 - loupe: 3.2.0 - tinyrainbow: 2.0.0 + '@vitest/spy@5.0.0': {} '@volar/language-core@2.4.28': dependencies: @@ -22428,7 +22260,7 @@ snapshots: '@vue/compiler-core@3.5.32': dependencies: - '@babel/parser': 7.29.2 + '@babel/parser': 7.29.8 '@vue/shared': 3.5.32 entities: 7.0.1 estree-walker: 2.0.2 @@ -22801,14 +22633,25 @@ snapshots: get-intrinsic: 1.3.0 is-string: 1.1.1 + array-includes@3.1.9: + dependencies: + call-bind: 1.0.9 + call-bound: 1.0.4 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-object-atoms: 1.1.1 + get-intrinsic: 1.3.0 + is-string: 1.1.1 + math-intrinsics: 1.1.0 + array-union@2.1.0: {} - array.prototype.flat@1.3.1: + array.prototype.flat@1.3.3: dependencies: call-bind: 1.0.9 define-properties: 1.2.1 es-abstract: 1.24.2 - es-shim-unscopables: 1.0.0 + es-shim-unscopables: 1.1.0 array.prototype.flatmap@1.3.1: dependencies: @@ -22817,6 +22660,13 @@ snapshots: es-abstract: 1.24.2 es-shim-unscopables: 1.0.0 + array.prototype.flatmap@1.3.3: + dependencies: + call-bind: 1.0.9 + define-properties: 1.2.1 + es-abstract: 1.24.2 + es-shim-unscopables: 1.1.0 + array.prototype.tosorted@1.1.1: dependencies: call-bind: 1.0.9 @@ -22843,15 +22693,13 @@ snapshots: pvutils: 1.1.3 tslib: 2.8.1 - assertion-error@2.0.1: {} - ast-types-flow@0.0.7: {} - ast-v8-to-istanbul@0.3.8: + ast-v8-to-istanbul@1.0.5: dependencies: '@jridgewell/trace-mapping': 0.3.31 estree-walker: 3.0.3 - js-tokens: 9.0.1 + js-tokens: 10.0.0 async-function@1.0.0: {} @@ -23091,8 +22939,6 @@ snapshots: bytes@3.1.2: {} - cac@6.7.14: {} - cacache@20.0.3: dependencies: '@npmcli/fs': 5.0.0 @@ -23164,13 +23010,7 @@ snapshots: ccount@2.0.1: {} - chai@5.2.1: - dependencies: - assertion-error: 2.0.1 - check-error: 2.1.1 - deep-eql: 5.0.2 - loupe: 3.2.0 - pathval: 2.0.1 + chai@6.2.2: {} chalk@2.4.2: dependencies: @@ -23219,8 +23059,6 @@ snapshots: chardet@0.7.0: {} - check-error@2.1.1: {} - chokidar@3.6.0: dependencies: anymatch: 3.1.3 @@ -23737,8 +23575,6 @@ snapshots: optionalDependencies: babel-plugin-macros: 3.1.0 - deep-eql@5.0.2: {} - deep-equal@2.2.3: dependencies: array-buffer-byte-length: 1.0.2 @@ -24113,6 +23949,8 @@ snapshots: es-module-lexer@1.7.0: {} + es-module-lexer@2.3.2: {} + es-object-atoms@1.1.1: dependencies: es-errors: 1.3.0 @@ -24167,6 +24005,10 @@ snapshots: dependencies: has: 1.0.3 + es-shim-unscopables@1.1.0: + dependencies: + hasown: 2.0.4 + es-to-primitive@1.3.0: dependencies: is-callable: 1.2.7 @@ -24231,32 +24073,6 @@ snapshots: '@esbuild/win32-ia32': 0.19.11 '@esbuild/win32-x64': 0.19.11 - esbuild@0.21.5: - optionalDependencies: - '@esbuild/aix-ppc64': 0.21.5 - '@esbuild/android-arm': 0.21.5 - '@esbuild/android-arm64': 0.21.5 - '@esbuild/android-x64': 0.21.5 - '@esbuild/darwin-arm64': 0.21.5 - '@esbuild/darwin-x64': 0.21.5 - '@esbuild/freebsd-arm64': 0.21.5 - '@esbuild/freebsd-x64': 0.21.5 - '@esbuild/linux-arm': 0.21.5 - '@esbuild/linux-arm64': 0.21.5 - '@esbuild/linux-ia32': 0.21.5 - '@esbuild/linux-loong64': 0.21.5 - '@esbuild/linux-mips64el': 0.21.5 - '@esbuild/linux-ppc64': 0.21.5 - '@esbuild/linux-riscv64': 0.21.5 - '@esbuild/linux-s390x': 0.21.5 - '@esbuild/linux-x64': 0.21.5 - '@esbuild/netbsd-x64': 0.21.5 - '@esbuild/openbsd-x64': 0.21.5 - '@esbuild/sunos-x64': 0.21.5 - '@esbuild/win32-arm64': 0.21.5 - '@esbuild/win32-ia32': 0.21.5 - '@esbuild/win32-x64': 0.21.5 - esbuild@0.25.0: optionalDependencies: '@esbuild/aix-ppc64': 0.25.0 @@ -24383,6 +24199,14 @@ snapshots: - eslint-import-resolver-webpack - supports-color + eslint-import-resolver-node@0.3.10: + dependencies: + debug: 4.4.1 + is-core-module: 2.16.2 + resolve: 2.0.0-next.7 + transitivePeerDependencies: + - supports-color + eslint-import-resolver-node@0.3.7: dependencies: debug: 4.4.1 @@ -24427,6 +24251,17 @@ snapshots: - eslint-import-resolver-webpack - supports-color + eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1): + dependencies: + debug: 4.4.1 + optionalDependencies: + '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@6.0.3) + eslint: 8.57.1 + eslint-import-resolver-node: 0.3.10 + eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-plugin-import@2.27.5)(eslint@8.57.1) + transitivePeerDependencies: + - supports-color + eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1): dependencies: debug: 4.4.1 @@ -24434,7 +24269,7 @@ snapshots: '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@6.0.3) eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 - eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-plugin-import@2.27.5)(eslint@8.57.1) + eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-import-resolver-node@0.3.7)(eslint-plugin-import@2.27.5(eslint@8.57.1))(eslint@8.57.1) transitivePeerDependencies: - supports-color @@ -24463,22 +24298,22 @@ snapshots: eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1): dependencies: - array-includes: 3.1.6 - array.prototype.flat: 1.3.1 - array.prototype.flatmap: 1.3.1 + array-includes: 3.1.9 + array.prototype.flat: 1.3.3 + array.prototype.flatmap: 1.3.3 debug: 4.4.1 doctrine: 2.1.0 eslint: 8.57.1 - eslint-import-resolver-node: 0.3.7 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) + eslint-import-resolver-node: 0.3.10 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) has: 1.0.3 - is-core-module: 2.16.1 + is-core-module: 2.16.2 is-glob: 4.0.3 minimatch: 3.1.4 - object.values: 1.1.6 + object.values: 1.2.1 resolve: 1.22.11 semver: 6.3.1 - tsconfig-paths: 3.14.2 + tsconfig-paths: 3.15.0 optionalDependencies: '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@6.0.3) transitivePeerDependencies: @@ -24488,22 +24323,22 @@ snapshots: eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint@8.57.1): dependencies: - array-includes: 3.1.6 - array.prototype.flat: 1.3.1 - array.prototype.flatmap: 1.3.1 + array-includes: 3.1.9 + array.prototype.flat: 1.3.3 + array.prototype.flatmap: 1.3.3 debug: 4.4.1 doctrine: 2.1.0 eslint: 8.57.1 - eslint-import-resolver-node: 0.3.7 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) + eslint-import-resolver-node: 0.3.10 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@6.0.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) has: 1.0.3 - is-core-module: 2.16.1 + is-core-module: 2.16.2 is-glob: 4.0.3 minimatch: 3.1.4 - object.values: 1.1.6 + object.values: 1.2.1 resolve: 1.22.11 semver: 6.3.1 - tsconfig-paths: 3.14.2 + tsconfig-paths: 3.15.0 optionalDependencies: '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@6.0.3) transitivePeerDependencies: @@ -24790,7 +24625,7 @@ snapshots: strip-final-newline: 4.0.0 yoctocolors: 2.1.1 - expect-type@1.2.1: {} + expect-type@1.4.0: {} exponential-backoff@3.1.1: {} @@ -25086,7 +24921,7 @@ snapshots: asynckit: 0.4.0 combined-stream: 1.0.8 es-set-tostringtag: 2.1.0 - hasown: 2.0.2 + hasown: 2.0.4 mime-types: 2.1.35 form-data@4.0.6: @@ -25176,7 +25011,7 @@ snapshots: call-bound: 1.0.4 define-properties: 1.2.1 functions-have-names: 1.2.3 - hasown: 2.0.2 + hasown: 2.0.4 is-callable: 1.2.7 functions-have-names@1.2.3: {} @@ -25201,7 +25036,7 @@ snapshots: get-proto: 1.0.1 gopd: 1.2.0 has-symbols: 1.1.0 - hasown: 2.0.2 + hasown: 2.0.4 math-intrinsics: 1.1.0 get-nonce@1.0.1: {} @@ -25591,8 +25426,6 @@ snapshots: dependencies: whatwg-encoding: 3.1.1 - html-escaper@2.0.2: {} - html-minifier-terser@6.1.0: dependencies: camel-case: 4.1.2 @@ -25811,7 +25644,7 @@ snapshots: internal-slot@1.1.0: dependencies: es-errors: 1.3.0 - hasown: 2.0.2 + hasown: 2.0.4 side-channel: 1.1.0 internmap@2.0.3: {} @@ -25893,6 +25726,10 @@ snapshots: dependencies: hasown: 2.0.2 + is-core-module@2.16.2: + dependencies: + hasown: 2.0.4 + is-data-view@1.0.2: dependencies: call-bound: 1.0.4 @@ -25988,7 +25825,7 @@ snapshots: call-bound: 1.0.4 gopd: 1.2.0 has-tostringtag: 1.0.2 - hasown: 2.0.2 + hasown: 2.0.4 is-retry-allowed@2.2.0: {} @@ -26070,27 +25907,6 @@ snapshots: dependencies: ws: 8.21.0 - istanbul-lib-coverage@3.2.2: {} - - istanbul-lib-report@3.0.1: - dependencies: - istanbul-lib-coverage: 3.2.2 - make-dir: 4.0.0 - supports-color: 10.2.0 - - istanbul-lib-source-maps@5.0.6: - dependencies: - '@jridgewell/trace-mapping': 0.3.31 - debug: 4.4.1 - istanbul-lib-coverage: 3.2.2 - transitivePeerDependencies: - - supports-color - - istanbul-reports@3.2.0: - dependencies: - html-escaper: 2.0.2 - istanbul-lib-report: 3.0.1 - iterate-iterator@1.0.2: {} iterate-value@1.0.2: @@ -26137,9 +25953,9 @@ snapshots: js-cookie@3.0.8: {} - js-tokens@4.0.0: {} + js-tokens@10.0.0: {} - js-tokens@9.0.1: {} + js-tokens@4.0.0: {} js-yaml@4.3.1: dependencies: @@ -26242,10 +26058,10 @@ snapshots: jsx-ast-utils@3.3.4: dependencies: - array-includes: 3.1.6 - array.prototype.flat: 1.3.1 + array-includes: 3.1.9 + array.prototype.flat: 1.3.3 object.assign: 4.1.7 - object.values: 1.1.6 + object.values: 1.2.1 just-diff-apply@5.5.0: {} @@ -26422,8 +26238,6 @@ snapshots: dependencies: js-tokens: 4.0.0 - loupe@3.2.0: {} - lower-case@2.0.2: dependencies: tslib: 2.8.1 @@ -26454,15 +26268,15 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 - magicast@0.3.5: + magic-string@1.2.3: dependencies: - '@babel/parser': 7.29.2 - '@babel/types': 7.29.0 - source-map-js: 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.5 - make-dir@4.0.0: + magicast@0.5.4: dependencies: - semver: 7.7.1 + '@babel/parser': 7.29.8 + '@babel/types': 7.29.8 + source-map-js: 1.2.1 make-error@1.3.6: {} @@ -27146,6 +26960,13 @@ snapshots: node-domexception@1.0.0: {} + node-exports-info@1.6.2: + dependencies: + array.prototype.flatmap: 1.3.3 + es-errors: 1.3.0 + object.entries: 1.1.9 + semver: 6.3.1 + node-fetch@2.6.13(encoding@0.1.13): dependencies: whatwg-url: 5.0.0 @@ -27165,7 +26986,7 @@ snapshots: proc-log: 6.1.0 semver: 7.7.1 tar: 7.5.21 - tinyglobby: 0.2.15 + tinyglobby: 0.2.17 which: 6.0.1 transitivePeerDependencies: - supports-color @@ -27332,8 +27153,17 @@ snapshots: define-properties: 1.2.1 es-abstract: 1.24.2 + object.values@1.2.1: + dependencies: + call-bind: 1.0.9 + call-bound: 1.0.4 + define-properties: 1.2.1 + es-object-atoms: 1.1.1 + obliterator@2.0.4: {} + obug@2.1.4: {} + octokit@4.1.3: dependencies: '@octokit/app': 15.1.6 @@ -27632,8 +27462,6 @@ snapshots: pathe@2.0.3: {} - pathval@2.0.1: {} - peberminta@0.9.0: {} pend@1.2.0: {} @@ -28222,9 +28050,7 @@ snapshots: dependencies: fast-deep-equal: 2.0.1 - react-refresh@0.14.0: {} - - react-refresh@0.14.2: {} + react-refresh@0.18.0: {} react-remove-scroll-bar@2.3.6(@types/react@18.3.3)(react@18.3.1): dependencies: @@ -28521,7 +28347,7 @@ snapshots: dependencies: debug: 4.4.1 module-details-from-path: 1.0.3 - resolve: 1.22.10 + resolve: 1.22.11 transitivePeerDependencies: - supports-color @@ -28544,27 +28370,30 @@ snapshots: resolve-pkg-maps@1.0.0: {} - resolve@1.22.10: + resolve@1.22.11: dependencies: is-core-module: 2.16.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - resolve@1.22.11: + resolve@1.22.8: dependencies: is-core-module: 2.16.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - resolve@1.22.8: + resolve@2.0.0-next.4: dependencies: - is-core-module: 2.16.1 + is-core-module: 2.16.2 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - resolve@2.0.0-next.4: + resolve@2.0.0-next.7: dependencies: - is-core-module: 2.16.1 + es-errors: 1.3.0 + is-core-module: 2.16.2 + node-exports-info: 1.6.2 + object-keys: 1.1.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 @@ -29077,7 +28906,7 @@ snapshots: statuses@2.0.2: {} - std-env@3.9.0: {} + std-env@4.2.0: {} stdin-discarder@0.2.2: {} @@ -29201,10 +29030,6 @@ snapshots: strip-json-comments@3.1.1: {} - strip-literal@3.0.0: - dependencies: - js-tokens: 9.0.1 - stripe@14.19.0: dependencies: '@types/node': 22.17.0 @@ -29354,12 +29179,6 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 - test-exclude@7.0.1: - dependencies: - '@istanbuljs/schema': 0.1.3 - glob: 10.5.0 - minimatch: 9.0.7 - text-decoder@1.2.7: dependencies: b4a: 1.8.1 @@ -29394,7 +29213,7 @@ snapshots: tiny-lru@11.2.11: {} - tinybench@2.9.0: {} + tinybench@6.1.4: {} tinyduration@3.4.1: {} @@ -29402,20 +29221,23 @@ snapshots: tinyexec@1.0.1: {} + tinyexec@1.3.0: {} + tinyglobby@0.2.15: dependencies: fdir: 6.5.0(picomatch@4.0.4) picomatch: 4.0.4 - tinypool@1.1.1: {} + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.4) + picomatch: 4.0.4 tinypool@2.1.0: {} - tinyrainbow@2.0.0: {} - tinyrainbow@3.1.0: {} - tinyspy@4.0.3: {} + tinyrainbow@3.1.1: {} tippy.js@6.3.7: dependencies: @@ -29510,7 +29332,7 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - tsconfig-paths@3.14.2: + tsconfig-paths@3.15.0: dependencies: '@types/json5': 0.0.29 json5: 1.0.2 @@ -29866,25 +29688,7 @@ snapshots: d3-time: 3.1.0 d3-timer: 3.0.1 - vite-node@3.2.4(@types/node@22.17.0)(terser@5.44.1): - dependencies: - cac: 6.7.14 - debug: 4.4.1 - es-module-lexer: 1.7.0 - pathe: 2.0.3 - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - vite-plugin-dts@4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@6.0.3)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)): + vite-plugin-dts@4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@6.0.3)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)): dependencies: '@microsoft/api-extractor': 7.58.2(@types/node@22.17.0) '@rollup/pluginutils': 5.3.0(rollup@4.59.0) @@ -29897,13 +29701,13 @@ snapshots: magic-string: 0.30.17 typescript: 6.0.3 optionalDependencies: - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) transitivePeerDependencies: - '@types/node' - rollup - supports-color - vite-plugin-html@3.2.2(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)): + vite-plugin-html@3.2.2(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)): dependencies: '@rollup/pluginutils': 4.2.1 colorette: 2.0.20 @@ -29917,143 +29721,101 @@ snapshots: html-minifier-terser: 6.1.0 node-html-parser: 5.4.2 pathe: 0.2.0 - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) - vite-plugin-singlefile@2.2.0(rollup@4.59.0)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)): + vite-plugin-singlefile@2.2.0(rollup@4.59.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)): dependencies: micromatch: 4.0.8 rollup: 4.59.0 - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) - vite@5.4.21(@types/node@22.17.0)(terser@5.44.1): + vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3): dependencies: - esbuild: 0.21.5 + esbuild: 0.25.9 + fdir: 6.5.0(picomatch@4.0.4) + picomatch: 4.0.4 postcss: 8.5.26 rollup: 4.59.0 + tinyglobby: 0.2.17 optionalDependencies: '@types/node': 22.17.0 fsevents: 2.3.3 + jiti: 2.4.2 terser: 5.44.1 + tsx: 4.19.4 + yaml: 2.8.3 - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1): + vitest@5.0.0(@opentelemetry/api@1.9.0)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@23.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)): dependencies: '@types/chai': 5.2.2 - '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) - '@vitest/pretty-format': 3.2.4 - '@vitest/runner': 3.2.4 - '@vitest/snapshot': 3.2.4 - '@vitest/spy': 3.2.4 - '@vitest/utils': 3.2.4 - chai: 5.2.1 - debug: 4.4.1 - expect-type: 1.2.1 - magic-string: 0.30.17 - pathe: 2.0.3 + '@vitest/mocker': 5.0.0(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) + chai: 6.2.2 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 1.2.3 + obug: 2.1.4 picomatch: 4.0.4 - std-env: 3.9.0 - tinybench: 2.9.0 - tinyexec: 0.3.2 - tinyglobby: 0.2.15 - tinypool: 1.1.1 - tinyrainbow: 2.0.0 - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) - vite-node: 3.2.4(@types/node@22.17.0)(terser@5.44.1) + std-env: 4.2.0 + tinybench: 6.1.4 + tinyexec: 1.3.0 + tinyglobby: 0.2.17 + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) why-is-node-running: 2.3.0 optionalDependencies: - '@types/debug': 4.1.12 + '@opentelemetry/api': 1.9.0 '@types/node': 22.17.0 + '@vitest/coverage-v8': 5.0.0(vitest@5.0.0) jsdom: 23.2.0 transitivePeerDependencies: - - less - - lightningcss - msw - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@6.0.3))(terser@5.44.1): + vitest@5.0.0(@opentelemetry/api@1.9.0)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(msw@2.2.11(typescript@6.0.3))(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)): dependencies: '@types/chai': 5.2.2 - '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.2.11(typescript@6.0.3))(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) - '@vitest/pretty-format': 3.2.4 - '@vitest/runner': 3.2.4 - '@vitest/snapshot': 3.2.4 - '@vitest/spy': 3.2.4 - '@vitest/utils': 3.2.4 - chai: 5.2.1 - debug: 4.4.1 - expect-type: 1.2.1 - magic-string: 0.30.17 - pathe: 2.0.3 + '@vitest/mocker': 5.0.0(msw@2.2.11(typescript@6.0.3))(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) + chai: 6.2.2 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 1.2.3 + obug: 2.1.4 picomatch: 4.0.4 - std-env: 3.9.0 - tinybench: 2.9.0 - tinyexec: 0.3.2 - tinyglobby: 0.2.15 - tinypool: 1.1.1 - tinyrainbow: 2.0.0 - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) - vite-node: 3.2.4(@types/node@22.17.0)(terser@5.44.1) + std-env: 4.2.0 + tinybench: 6.1.4 + tinyexec: 1.3.0 + tinyglobby: 0.2.17 + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) why-is-node-running: 2.3.0 optionalDependencies: - '@types/debug': 4.1.12 + '@opentelemetry/api': 1.9.0 '@types/node': 22.17.0 + '@vitest/coverage-v8': 5.0.0(vitest@5.0.0) jsdom: 27.2.0 transitivePeerDependencies: - - less - - lightningcss - msw - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1): + vitest@5.0.0(@opentelemetry/api@1.9.1)(@types/node@22.17.0)(@vitest/coverage-v8@5.0.0)(jsdom@27.2.0)(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)): dependencies: '@types/chai': 5.2.2 - '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) - '@vitest/pretty-format': 3.2.4 - '@vitest/runner': 3.2.4 - '@vitest/snapshot': 3.2.4 - '@vitest/spy': 3.2.4 - '@vitest/utils': 3.2.4 - chai: 5.2.1 - debug: 4.4.1 - expect-type: 1.2.1 - magic-string: 0.30.17 - pathe: 2.0.3 + '@vitest/mocker': 5.0.0(vite@6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3)) + chai: 6.2.2 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 1.2.3 + obug: 2.1.4 picomatch: 4.0.4 - std-env: 3.9.0 - tinybench: 2.9.0 - tinyexec: 0.3.2 - tinyglobby: 0.2.15 - tinypool: 1.1.1 - tinyrainbow: 2.0.0 - vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) - vite-node: 3.2.4(@types/node@22.17.0)(terser@5.44.1) + std-env: 4.2.0 + tinybench: 6.1.4 + tinyexec: 1.3.0 + tinyglobby: 0.2.17 + vite: 6.4.3(@types/node@22.17.0)(jiti@2.4.2)(terser@5.44.1)(tsx@4.19.4)(yaml@2.8.3) why-is-node-running: 2.3.0 optionalDependencies: - '@types/debug': 4.1.12 + '@opentelemetry/api': 1.9.1 '@types/node': 22.17.0 + '@vitest/coverage-v8': 5.0.0(vitest@5.0.0) jsdom: 27.2.0 transitivePeerDependencies: - - less - - lightningcss - msw - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser vscode-languageserver-types@3.17.3: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 33ed10b698..a8520963c9 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -21,8 +21,8 @@ packages: catalog: # Build/test tooling typescript: 6.0.3 - vitest: ^3.2.4 - '@vitest/coverage-v8': 3.2.4 + vitest: ^5.0.0 + '@vitest/coverage-v8': 5.0.0 tsx: ^4.16.0 prettier: ^3.6.2 postcss: 8.5.26 diff --git a/protographic/tests/sdl-to-mapping/sdl-to-mapping.bench.ts b/protographic/tests/sdl-to-mapping/sdl-to-mapping.bench.ts index 1dc8cc2aee..55b2c99a0c 100644 --- a/protographic/tests/sdl-to-mapping/sdl-to-mapping.bench.ts +++ b/protographic/tests/sdl-to-mapping/sdl-to-mapping.bench.ts @@ -1,4 +1,4 @@ -import { bench, describe } from 'vitest'; +import { test } from 'vitest'; import { buildSchema } from 'graphql'; import { compileGraphQLToMapping } from '../../src/index.js'; @@ -123,16 +123,16 @@ const complexSchema = ` } `; -describe('GraphQL to Proto Benchmarks', () => { +test('GraphQL to Mapping Benchmarks', async ({ bench }) => { const simpleSchemaObj = buildSchema(simpleSchema); - - bench('Simple Schema - compileGraphQLToMapping', () => { - compileGraphQLToMapping(simpleSchemaObj); - }); - const complexSchemaObj = buildSchema(complexSchema); - bench('Complex Schema - compileGraphQLToMapping', () => { - compileGraphQLToMapping(complexSchemaObj); - }); + await bench.compare( + bench('Simple Schema - compileGraphQLToMapping', () => { + compileGraphQLToMapping(simpleSchemaObj); + }), + bench('Complex Schema - compileGraphQLToMapping', () => { + compileGraphQLToMapping(complexSchemaObj); + }), + ); }); diff --git a/protographic/tests/sdl-to-proto/sdl-to-proto.bench.ts b/protographic/tests/sdl-to-proto/sdl-to-proto.bench.ts index 2c501349b4..c01a93b05a 100644 --- a/protographic/tests/sdl-to-proto/sdl-to-proto.bench.ts +++ b/protographic/tests/sdl-to-proto/sdl-to-proto.bench.ts @@ -1,4 +1,4 @@ -import { bench, describe } from 'vitest'; +import { test } from 'vitest'; import { buildSchema } from 'graphql'; import { compileGraphQLToProto } from '../../src/index.js'; @@ -123,16 +123,16 @@ const complexSchema = ` } `; -describe('GraphQL to Proto Benchmarks', () => { +test('GraphQL to Proto Benchmarks', async ({ bench }) => { const simpleSchemaObj = buildSchema(simpleSchema); - - bench('Simple Schema - compileGraphQLToProto', () => { - compileGraphQLToProto(simpleSchemaObj); - }); - const complexSchemaObj = buildSchema(complexSchema); - bench('Complex Schema - compileGraphQLToProto', () => { - compileGraphQLToProto(complexSchemaObj); - }); + await bench.compare( + bench('Simple Schema - compileGraphQLToProto', () => { + compileGraphQLToProto(simpleSchemaObj); + }), + bench('Complex Schema - compileGraphQLToProto', () => { + compileGraphQLToProto(complexSchemaObj); + }), + ); }); diff --git a/router/internal/graphiql/graphiql.html b/router/internal/graphiql/graphiql.html index cc4f12fa92..b2b1ec82ce 100644 --- a/router/internal/graphiql/graphiql.html +++ b/router/internal/graphiql/graphiql.html @@ -9,7 +9,7 @@ href="data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1080 1080' width='35' height='35' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M447.099 231.913C405.967 244.337 367.742 264.878 334.682 292.323C320.832 268.71 298.796 251.002 272.754 242.557C313.865 205.575 362.202 177.525 414.709 160.178C467.216 142.832 522.751 136.567 577.803 141.781C632.855 146.994 686.227 163.571 734.544 190.465C746.769 197.27 758.603 204.698 770.004 212.711C770.394 212.542 770.785 212.376 771.179 212.213C785.976 206.085 802.259 204.482 817.967 207.607C833.676 210.733 848.105 218.446 859.429 229.771C870.754 241.096 878.465 255.525 881.589 271.233C884.712 286.941 883.107 303.223 876.976 318.018C870.845 332.814 860.464 345.459 847.146 354.355C833.828 363.252 818.171 367.999 802.154 367.997C791.52 367.997 780.991 365.902 771.167 361.833C761.343 357.763 752.417 351.799 744.898 344.28C737.379 336.76 731.415 327.834 727.347 318.01C723.279 308.186 721.186 297.657 721.187 287.024C721.187 282.871 721.506 278.742 722.135 274.672C713.657 268.849 704.889 263.426 695.859 258.426C658.269 237.612 616.889 224.541 574.163 219.988C531.437 215.434 488.232 219.489 447.099 231.913ZM319.489 348.564C319.489 363.809 315.185 378.728 307.094 391.613L323.693 420.326C307.59 439.476 285.501 452.638 260.995 457.683L244.582 429.298C237.31 429.844 229.959 429.408 222.73 427.971C207.024 424.848 192.597 417.138 181.273 405.816C169.949 394.495 162.237 380.069 159.112 364.365C155.986 348.661 157.588 332.382 163.715 317.588C169.841 302.794 180.217 290.149 193.531 281.251C206.845 272.354 222.498 267.604 238.511 267.601C249.145 267.6 259.674 269.693 269.499 273.761C279.324 277.829 288.251 283.793 295.77 291.311C303.29 298.829 309.255 307.755 313.325 317.578C317.394 327.402 319.489 337.931 319.489 348.564ZM260.998 457.685L400.599 699.132L442.692 772.036L484.794 699.132L537.279 608.237L589.621 698.805L631.691 771.687L673.783 698.794L744.391 576.462H859.708C861.079 564.36 861.767 552.19 861.769 540.01C861.771 527.83 861.08 515.66 859.697 503.558H702.288L694.971 516.229L631.67 625.857L579.327 535.278L537.235 462.374L495.208 535.289L442.692 626.184L323.7 420.328C307.596 439.478 285.506 452.64 260.998 457.685ZM861.77 540.003C861.768 552.183 861.08 564.353 859.709 576.455H937.128V503.551H859.709C861.088 515.653 861.776 527.823 861.77 540.003ZM937.154 503.558H938.332C939.411 515.563 940 527.721 940 540.01C940 760.902 760.967 940 540.027 940C319.088 940 140 760.924 140 540.031C139.942 500.879 145.66 461.933 156.968 424.449C175.493 444.394 200.696 456.845 227.794 459.44C221.851 485.163 218.231 515.061 218.231 540.01C218.231 717.668 362.259 861.764 540.038 861.764C705.462 861.764 841.629 736.99 859.731 576.462H937.154V503.558Z' fill='white' %3E%3C/path%3E%3C/svg%3E" /> WunderGraph Playground - +function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=r.create([0,1518500249,1859775393,2400959708,2840853838]),p=r.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,d,b,x,E,D,T,w,C,S,k,A=this._hash.words,N=c.words,F=p.words,P=a.words,_=s.words,O=l.words,I=u.words;for(D=o=A[0],T=d=A[1],w=b=A[2],C=x=A[3],S=E=A[4],n=0;n<80;n+=1)k=o+e[t+P[n]]|0,k+=n<16?f(d,b,x)+N[0]:n<32?h(d,b,x)+N[1]:n<48?m(d,b,x)+N[2]:n<64?g(d,b,x)+N[3]:y(d,b,x)+N[4],k=(k=v(k|=0,O[n]))+E|0,o=E,E=x,x=v(b,10),b=d,d=k,k=D+e[t+_[n]]|0,k+=n<16?y(T,w,C)+F[0]:n<32?g(T,w,C)+F[1]:n<48?m(T,w,C)+F[2]:n<64?h(T,w,C)+F[3]:f(T,w,C)+F[4],k=(k=v(k|=0,I[n]))+S|0,D=S,S=C,C=v(w,10),w=T,T=k;k=A[1]+b+C|0,A[1]=A[2]+x+S|0,A[2]=A[3]+E+D|0,A[3]=A[4]+o+T|0,A[4]=A[0]+d+w|0,A[0]=k},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function v(e,t){return e<>>32-t}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(),e.RIPEMD160)),Xve.exports;var e}(),ebe(),function(){return tbe||(tbe=1,nbe.exports=(l=mve(),Bve(),ebe(),t=(e=l).lib,n=t.Base,r=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=a.create(n.hasher,e),o=r.create(),s=r.create([1]),l=o.words,u=s.words,c=n.keySize,p=n.iterations;l.length>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Dbe?Tbe.exports:(Dbe=1,Tbe.exports=(e=mve(),lbe(),e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return wbe?Cbe.exports:(wbe=1,Cbe.exports=(e=mve(),lbe(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return Sbe||(Sbe=1,kbe.exports=(e=mve(),lbe(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding)),kbe.exports;var e}(),function(){return Abe?Nbe.exports:(Abe=1,Nbe.exports=(e=mve(),lbe(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Fbe?Pbe.exports:(Fbe=1,Pbe.exports=(r=mve(),lbe(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return _be||(_be=1,Obe.exports=(e=mve(),kve(),Ove(),obe(),lbe(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],s=[],l=[],u=[],c=[],p=[],d=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,i[n]=h,o[h]=n;var m=e[n],g=e[m],y=e[g],v=257*e[h]^16843008*h;a[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,u[n]=v,v=16843009*y^65537*g^257*m^16843008*n,c[h]=v<<24|v>>>8,p[h]=v<<16|v>>>16,d[h]=v<<8|v>>>24,f[h]=v,n?(n=m^e[e[e[y^m]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a6&&a%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=h[a/n|0]<<24),o[a]=o[a-n]^u);for(var s=this._invKeySchedule=[],l=0;l>>24]]^p[i[u>>>16&255]]^d[i[u>>>8&255]]^f[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,u,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,p,d,f,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],p=e[t+2]^n[2],d=e[t+3]^n[3],f=4,h=1;h>>24]^i[c>>>16&255]^o[p>>>8&255]^a[255&d]^n[f++],g=r[c>>>24]^i[p>>>16&255]^o[d>>>8&255]^a[255&u]^n[f++],y=r[p>>>24]^i[d>>>16&255]^o[u>>>8&255]^a[255&c]^n[f++],v=r[d>>>24]^i[u>>>16&255]^o[c>>>8&255]^a[255&p]^n[f++];u=m,c=g,p=y,d=v}m=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[p>>>8&255]<<8|s[255&d])^n[f++],g=(s[c>>>24]<<24|s[p>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[f++],y=(s[p>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&p])^n[f++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=v},keySize:8});t.AES=n._createHelper(m)}(),e.AES)),Obe.exports;var e}(),Mbe(),function(){return jbe||(jbe=1,Rbe.exports=(e=mve(),kve(),Ove(),obe(),lbe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4)),Rbe.exports;var e}(),function(){return Bbe||(Bbe=1,Vbe.exports=(e=mve(),kve(),Ove(),obe(),lbe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=p,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=p,i[6]^=c,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit)),Vbe.exports;var e}(),function(){return Ube||(Ube=1,zbe.exports=(e=mve(),kve(),Ove(),obe(),lbe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=u>>>16|4294901760&c,d=c<<16|65535&u;for(r[0]^=u,r[1]^=p,r[2]^=c,r[3]^=d,r[4]^=u,r[5]^=p,r[6]^=c,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy)),zbe.exports;var e}(),qbe())),pve.exports);const exe=i(Zbe);var txe,nxe;const rxe=i(function(){if(nxe)return txe;nxe=1;var e=E_();return txe=function(t,n){return e(t,n)}}()),ixe="Checkbox",[oxe]=ry(ixe),[axe,sxe]=oxe(ixe),lxe=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:a,disabled:s,value:l="on",onCheckedChange:u,...c}=e,[p,d]=y.useState(null),f=Ug(t,e=>d(e)),h=y.useRef(!1),m=!p||Boolean(p.closest("form")),[g=!1,v]=fy({prop:i,defaultProp:o,onChange:u}),b=y.useRef(g);return y.useEffect(()=>{const e=null==p?void 0:p.form;if(e){const t=()=>v(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[p,v]),y.createElement(axe,{scope:n,state:g,disabled:s},y.createElement(cy.button,Bg({type:"button",role:"checkbox","aria-checked":cxe(g)?"mixed":g,"aria-required":a,"data-state":pxe(g),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onKeyDown:ny(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:ny(e.onClick,e=>{v(e=>!!cxe(e)||!e),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})})),m&&y.createElement(uxe,{control:p,bubbles:!h.current,name:r,value:l,checked:g,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),uxe=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=y.useRef(null),a=she(n),s=h8(t);return y.useEffect(()=>{const e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&i){const t=new Event("click",{bubbles:r});e.indeterminate=cxe(n),i.call(e,!cxe(n)&&n),e.dispatchEvent(t)}},[a,n,r]),y.createElement("input",Bg({type:"checkbox","aria-hidden":!0,defaultChecked:!cxe(n)&&n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function cxe(e){return"indeterminate"===e}function pxe(e){return cxe(e)?"indeterminate":e?"checked":"unchecked"}const dxe=lxe,fxe=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=sxe("CheckboxIndicator",n);return y.createElement(Oy,{present:r||cxe(o.state)||!0===o.state},y.createElement(cy.span,Bg({"data-state":pxe(o.state),"data-disabled":o.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),hxe=y.forwardRef(({className:e,...t},n)=>g.jsx(dxe,{ref:n,className:Te("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:g.jsx(fxe,{className:Te("flex items-center justify-center text-current"),children:g.jsx(cg,{className:"h-4 w-4"})})}));hxe.displayName=dxe.displayName;const mxe="playground:env",gxe=(e,t,n)=>{window.playground=((e,t,n)=>({env:{set:(t,n)=>{const r=localStorage.getItem(mxe)||"{}",i=JSON.parse(r);i[e]||(i[e]={}),i[e][t]=n,localStorage.setItem(mxe,JSON.stringify(i)),window.dispatchEvent(new StorageEvent("local-storage",{key:mxe}))},get:t=>{var n;const r=localStorage.getItem(mxe)||"{}";return null==(n=JSON.parse(r)[e])?void 0:n[t]}},request:{body:t||null},response:{body:n||null},CryptoJS:exe}))(e,t,n)},yxe=()=>{delete window.playground},vxe=({script:e,close:t})=>{const n=Kge(),r=Vge(),i=y.useRef(null),o=y.useRef(null),a=y.useContext(Yge),{tabsState:{activeTabIndex:s,tabs:l}}=a,u=l[s].id;y.useEffect(()=>{r&&("dark"===n?r.editor.setTheme("wg-dark"):r.editor.setTheme("light"))},[n,r]);const[c,p]=y.useState([]),d=y.useRef(null);y.useEffect(()=>{d.current&&d.current.scrollIntoView()},[c]);const[f,h]=oye(mxe,{}),[m,v]=y.useState(),b=Xge(e=>{v(e)},500);y.useEffect(()=>{v(void 0)},[f,b]);const[x,E]=oye(`playground:${e.type}:selected`,{}),[D,T]=oye("playground:script:tabState",{}),w=y.useCallback(({upsert:t,updatedTitle:n})=>{const r={...D};l.forEach(o=>{var a,u,c,p,d;const f=o.id;r[f]&&(null==(a=r[f][e.type])?void 0:a.id)===e.id?r[f][e.type]={...r[f][e.type],id:e.id,enabled:(null==(u=r[f][e.type])?void 0:u.enabled)||!1,content:null==(c=i.current)?void 0:c.getValue()}:t&&f===l[s].id&&(r[f]||(r[f]={}),r[f][e.type]={id:e.id,title:n||e.title,enabled:(null==(p=r[f][e.type])?void 0:p.enabled)||!1,content:null==(d=i.current)?void 0:d.getValue()})}),T(r)},[l,s,e,D,T]);return n?g.jsxs("div",{className:"flex flex-col",children:[g.jsxs(lve,{direction:"vertical",children:[g.jsx(uve,{defaultSize:70,minSize:20,children:g.jsx(Hge,{theme:"dark"===n?"wg-dark":"light",className:"scrollbar-custom h-full text-xs",language:"javascript",defaultValue:e.content,loading:null,options:{automaticLayout:!0,language:"javascript",minimap:{enabled:!1},hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6,useShadows:!1},suggest:{showWords:!1}},onMount:(e,t)=>{i.current=e,t.editor.defineTheme("wg-dark",qge),"dark"===n&&t.editor.setTheme("wg-dark"),fetch("https://unpkg.com/@types/crypto-js@4.2.0/index.d.ts").then(e=>e.text()).then(e=>{t.languages.typescript.javascriptDefaults.addExtraLib(e,"crypto-js.d.ts"),t.languages.typescript.javascriptDefaults.addExtraLib("\n declare module 'crypto-js' {\n export = CryptoJS;\n }\n ","crypto-js-module.d.ts")}).catch(e=>console.error(e)),t.languages.typescript.javascriptDefaults.addExtraLib('\n interface JSONObject {\n [key: string]: JSONValue;\n }\n type JSONArray = JSONValue[];\n type JSONValue = string | number | boolean | JSONObject | JSONArray | null;\n\n interface Playground {\n /**\n * The env property contains methods to interact with local environment variables.\n */\n env: {\n /**\n * Sets a key-value pair for local environment variables.\n * @param name The key name.\n * @param value The value to store.\n */\n set(name: string, value: any): void;\n\n /**\n * Gets a value from local environment variables by key.\n * @param name The key name.\n * @returns The value associated with the key.\n */\n get(name: string): JSONValue;\n };\n\n /**\n * Represents the GraphQL request body.\n */\n request: {\n body: {\n /**\n * The GraphQL query string.\n */\n query: string;\n\n /**\n * The variables object associated with the GraphQL query.\n */\n variables?: { [key: string]?: JSONValue };\n\n /**\n * The name of the GraphQL operation (if specified).\n */\n operationName?: string;\n };\n };\n\n /**\n * Represents the GraphQL response body.\n */\n response: {\n body?: {\n /**\n * The data resulting from the GraphQL operation.\n */\n data?: T;\n };\n };\n\n /**\n * Exposes the crypto-js library for cryptographic operations.\n */\n CryptoJS: typeof import("crypto-js");\n }\n\n\n declare const playground: Playground;\n',"playground.d.ts")}},e.id)}),g.jsx(cve,{}),g.jsx(uve,{minSize:10,defaultSize:30,children:g.jsxs(lve,{direction:"horizontal",children:[g.jsx(uve,{defaultSize:60,minSize:40,children:g.jsxs("div",{className:"relative flex h-full flex-col py-4 pr-4 text-sm",children:[g.jsx("p",{className:"pb-4",children:"Console Output"}),g.jsxs("div",{className:"absolute right-3 top-3 flex gap-x-2",children:[g.jsx(Zg,{size:"icon-sm",variant:"outline",onClick:()=>{p([])},children:g.jsx(gg,{})}),g.jsx(Zg,{size:"icon-sm",variant:"outline",onClick:()=>{var e;const t=null==(e=i.current)?void 0:e.getValue();t&&(async e=>{const t=console.log;console.log=(...e)=>{const n=e.map(e=>null===e?"null":void 0===e?"undefined":"object"==typeof e?JSON.stringify(e,null,2):String(e)).join(" ");p(e=>[...e,n]),t(...e)};try{gxe(a.graphId);const t=new Function(`\n return (async () => {\n ${e}\n })();\n `);await t()}catch(n){p(e=>[...e,`Error: ${n.message}`])}finally{yxe()}console.log=t})(t)},children:g.jsx(_g,{})})]}),g.jsxs("div",{className:"scrollbar-custom h-full flex-1 overflow-auto",children:[c.map((e,t)=>g.jsx("div",{className:"border-b border-dotted py-1.5 after:content-['\\200b'] last:border-none ",children:e},t)),g.jsx("div",{ref:d})]})]})}),g.jsx(cve,{}),g.jsx(uve,{defaultSize:40,minSize:40,children:g.jsxs("div",{className:"flex h-full flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between py-4 pl-4 text-sm",children:[g.jsx("span",{children:"Environment Variables"}),g.jsxs(e1,{children:[g.jsx(t1,{children:m?g.jsx(gg,{className:"text-destructive"}):g.jsx(cg,{className:"text-success"})}),g.jsx(n1,{align:"end",children:m||"Valid"})]})]}),g.jsx(Hge,{onChange:e=>{try{const t=JSON.parse(e||"{}");h({...f,[a.graphId]:t}),b(void 0)}catch(Dq){b(Dq.message)}},theme:"dark"===n?"wg-dark":"light",language:"json",value:JSON.stringify(f[a.graphId],null,2),loading:null,options:{automaticLayout:!0,language:"json",minimap:{enabled:!1},hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6,useShadows:!1},lineNumbers:"off",folding:!1},onMount:(e,t)=>{o.current=e,t.editor.defineTheme("wg-dark",qge),"dark"===n&&t.editor.setTheme("wg-dark")}},"env-editor")]})})]})})]}),g.jsx(iJ,{orientation:"horizontal"}),g.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[g.jsx(Zg,{variant:"secondary",onClick:()=>{t()},children:"Cancel"}),g.jsx(Zg,{onClick:()=>{var n;E({...e,content:null==(n=i.current)?void 0:n.getValue(),updatedByTabId:u}),"pre-flight"!==e.type&&w({upsert:!0}),t()},children:"Save"})]})]}):null},bxe=({type:e})=>{const[t,n]=y.useState(!1),[r,i]=y.useState(),{tabsState:{activeTabIndex:o,tabs:a}}=y.useContext(Yge);return y.useEffect(()=>{var n,r;if(!t)return;const s={id:Date.now().toString(),content:"",title:"",type:e};if("pre-flight"===e){const e=localStorage.getItem("playground:pre-flight:selected"),t=JSON.parse(e&&"undefined"!==e?e:"{}");i((null==t?void 0:t.id)?t:s)}else{const t=JSON.parse(localStorage.getItem("playground:script:tabState")||"{}"),l=null==(n=a[o])?void 0:n.id;if(!l)return;const u=null==(r=t[l])?void 0:r[e];i((null==u?void 0:u.id)?u:s)}},[t,o,a]),g.jsxs(Kb,{open:t,onOpenChange:e=>{e||i(void 0),n(e)},children:[g.jsx(Wb,{asChild:!0,children:g.jsx(Zg,{size:"icon-sm",variant:"secondary",children:g.jsx(Fg,{})})}),g.jsxs(Xb,{className:"flex h-[90vh] max-w-[90vw] flex-col overflow-hidden",onInteractOutside:e=>e.preventDefault(),children:[g.jsx(Jb,{children:g.jsxs(Zb,{className:"capitalize",children:[e," Script"]})}),g.jsx("div",{className:"grid h-full min-h-0 grid-cols-1 gap-4 divide-x",children:r&&g.jsx(vxe,{script:r,close:()=>{n(!1)}})})]})]})},xxe=({type:e})=>{const[t]=oye(`playground:${e}:selected`,null),[n,r]=oye("playground:pre-flight:enabled",!0),[i,o]=oye("playground:script:tabState",{}),{tabsState:{activeTabIndex:a,tabs:s}}=y.useContext(Yge),l=y.useMemo(()=>{var t,n,r;const o=null==(t=s[a])?void 0:t.id;if(o)return(null==(r=null==(n=i[o])?void 0:n[e])?void 0:r.enabled)||!1},[a,s,i,e]),u=y.useCallback(t=>{const n=s[a].id,r={...i};r[n]||(r[n]={}),r[n][e]={...r[n][e],enabled:t},o(r)},[s,a,i,e,o]);return g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(hxe,{checked:"pre-flight"===e?n:l,onCheckedChange:t=>{"pre-flight"===e?r(!!t):u(!!t)}}),g.jsx("div",{className:"w-28 flex-shrink-0 capitalize",children:e}),":",g.jsxs("div",{className:"flex w-full items-center justify-between gap-4 rounded-lg border pl-2",children:[g.jsx("div",{className:"select-none text-sm italic",children:t&&t.id?t.title||"untitled script":"None Selected"}),g.jsx(bxe,{type:e})]})]})},Exe=()=>{const{tabsState:{activeTabIndex:e,tabs:t}}=y.useContext(Yge),[n,r]=oye("playground:script:tabState",{});y.useEffect(()=>{r(e=>{if(0===t.length)return e;const n=Object.keys(e),r=t.map(e=>e.id),i={...e};return n.forEach(e=>{r.includes(e)||delete i[e]}),i})},[t,r]);const[i,o]=oye("playground:pre-operation:selected",null),[a,s]=oye("playground:post-operation:selected",null);return y.useEffect(()=>{var r;const l=null==(r=t[e])?void 0:r.id;if(!l)return;const u=n[l];rxe(i,null==u?void 0:u["pre-operation"])||(null==i?void 0:i.updatedByTabId)&&(null==i?void 0:i.updatedByTabId)!==l&&o(null==u?void 0:u["pre-operation"]),rxe(a,null==u?void 0:u["post-operation"])||(null==a?void 0:a.updatedByTabId)&&(null==a?void 0:a.updatedByTabId)!==l&&s(null==u?void 0:u["post-operation"])},[t,e,n,i,a,o,s]),g.jsxs("div",{className:"flex h-full flex-1 flex-col gap-2 pl-1.5",children:[g.jsx(xxe,{type:"pre-operation"}),g.jsx(xxe,{type:"post-operation"})]})},Dxe=()=>g.jsx("div",{className:"border-t py-4 pl-6 pr-4",children:g.jsx(xxe,{type:"pre-flight"})}),Txe=e=>{for(const t in e)if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(t))throw new TypeError(`Header name must be a valid HTTP token [${t}]`)},wxe=(e,t)=>{const n=JSON.parse(localStorage.getItem("playground:env")||"{}")[t];if(!n)return e;const r={};Object.entries(n).forEach(([e,t])=>{"true"===t||"false"===t?r[e]="true"===t:isNaN(t)||""===t?r[e]=t:r[e]=Number(t)});for(const i in e){let t=e[i];const n=/{\s*{\s*(\w+)\s*}\s*}/g;"string"==typeof t&&(t=t.replace(n,(e,t)=>void 0!==r[t]?r[t]:(console.warn(`No value found for placeholder: ${t}`),e)),e[i]=t)}return e},Cxe=async(e,t)=>{if(e)try{const t=new Function(`\n return (async () => {\n ${e}\n })();\n `);await t()}catch(n){console.error(n)}},Sxe=e=>{const t=localStorage.getItem(e);return JSON.parse(t&&"undefined"!==t?t:"{}")},kxe=async(e,t,n,r,i,o)=>{var a;try{const s=o.headers;let l=(null==n?void 0:n.transformHeaders)?n.transformHeaders(s):{...s};if(l=wxe(l,"0"),Txe(l),e&&t){const t=null==(a=JSON.parse(o.body))?void 0:a.query,n=Ss.validate(e,Ss.parse(t));if(n.length>0){const e={message:"Client-side validation failed. The request was not sent to the Router.",errors:n.map(e=>({message:e.message,path:e.path,locations:e.locations}))},t=new Response(JSON.stringify(e),{headers:{"Content-Type":"application/json"}});return r(await t.clone().json()),t}}const u=JSON.parse(o.body);await(async(e,t)=>{gxe(e,t);const n=Sxe("playground:pre-flight:selected"),r=localStorage.getItem("playground:pre-flight:enabled"),i=Sxe("playground:pre-operation:selected");r&&"true"!==r||await Cxe(n.content),i.enabled&&await Cxe(i.content),yxe()})("0",u);const c=await fetch(i,{...o,headers:l}),p=await c.clone().json();return await(async(e,t,n)=>{const r=localStorage.getItem("playground:post-operation:selected"),i=JSON.parse(r&&"undefined"!==r?r:"{}");i.enabled&&(gxe(e,t,n),await Cxe(i.content),yxe())})("0",u,p),r(await c.clone().json(),c.status,c.statusText),c}catch(Dq){const t="Failed to fetch from router due to network errors. Please check network activity in browser dev tools for more details.",n=new Response(JSON.stringify(Dq.message?"Failed to fetch"==Dq.message?t:Dq.message:t),{headers:{"Content-Type":"application/json"}});return r(await n.clone().json(),void 0,"Network Error"),n}},Axe=()=>{const{view:e,setView:t}=y.useContext(Yge),n=e=>"response"===e?g.jsx(ihe,{className:"h-4 w-4 flex-shrink-0"}):"request-trace"===e?g.jsx(rhe,{className:"h-4 w-4 flex-shrink-0"}):g.jsx(Is,{className:"h-4 w-4 flex-shrink-0"}),{status:r,statusText:i}=y.useContext(Yge),o=!!r&&r>=200&&r<300;return g.jsxs("div",{className:"flex items-center gap-x-2",children:[(r||i)&&g.jsxs(JX,{className:"h-8",variant:o?"success":"destructive",children:[!o&&g.jsx(Sg,{className:"mr-1 h-4 w-4"}),r||i]}),g.jsxs(Ume,{onValueChange:e=>{const n=document.getElementsByClassName("graphiql-response")[0],r=document.getElementById("art-visualization"),i=document.getElementById("planner-visualization");n&&r&&i&&("request-trace"===e?(n.classList.add("invisible"),n.classList.add("-z-50"),i.classList.add("invisible"),i.classList.add("-z-50"),r.classList.remove("invisible"),r.classList.remove("-z-50")):"query-plan"===e?(n.classList.add("invisible"),n.classList.add("-z-50"),r.classList.add("invisible"),r.classList.add("-z-50"),i.classList.remove("invisible"),i.classList.remove("-z-50")):(n.classList.remove("invisible"),n.classList.remove("-z-50"),r.classList.add("invisible"),r.classList.add("-z-50"),i.classList.add("invisible"),i.classList.add("-z-50")),t(e))},children:[g.jsx($me,{className:"w-[180px]",children:g.jsx(zme,{children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[n(e),lx(e)]})})}),g.jsxs(Hme,{children:[g.jsx(qme,{value:"response",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[n("response"),"Response"]})}),g.jsx(qme,{value:"request-trace",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[n("request-trace"),"Request Trace"]})}),g.jsx(qme,{value:"query-plan",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[n("query-plan"),"Query Plan"]})})]})]})]})},Nxe=()=>{const{clientValidationEnabled:e,setClientValidationEnabled:t}=y.useContext(v1);return g.jsxs(e1,{delayDuration:100,children:[g.jsx(t1,{asChild:!0,children:g.jsx(Zg,{onClick:()=>t(!e),variant:"ghost",size:"icon",className:"graphiql-toolbar-button",children:g.jsx(ohe,{className:Te("graphiql-toolbar-icon",{"text-success":e})})})}),g.jsx(n1,{className:"rounded-md border bg-background px-2 py-1 !text-foreground text-base",children:e?"Client-side validation enabled":"Client-side validation disabled"})]})},Fxe=()=>{const e=document.getElementById("response-toolbar"),t=document.getElementById("art-visualization"),n=document.getElementById("planner-visualization"),r=document.getElementById("toggle-client-validation"),i=document.getElementById("graphiql-wg-logo"),o=document.getElementById("scripts-section"),a=document.getElementById("pre-flight-script-section");return e&&t&&n&&r&&i&&o&&a?g.jsxs(g.Fragment,{children:[qp.createPortal(g.jsx(Axe,{}),e),qp.createPortal(g.jsx(Qge,{}),n),qp.createPortal(g.jsx(x1,{}),t),qp.createPortal(g.jsx(Nxe,{}),r),qp.createPortal(g.jsx(Exe,{}),o),qp.createPortal(g.jsx(Dxe,{}),a),qp.createPortal(g.jsx("a",{href:"https://wundergraph.com",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1080 1080",className:"mt-3 mx-auto",width:"35",height:"35",fill:"none",children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M447.099 231.913C405.967 244.337 367.742 264.878 334.682 292.323C320.832 268.71 298.796 251.002 272.754 242.557C313.865 205.575 362.202 177.525 414.709 160.178C467.216 142.832 522.751 136.567 577.803 141.781C632.855 146.994 686.227 163.571 734.544 190.465C746.769 197.27 758.603 204.698 770.004 212.711C770.394 212.542 770.785 212.376 771.179 212.213C785.976 206.085 802.259 204.482 817.967 207.607C833.676 210.733 848.105 218.446 859.429 229.771C870.754 241.096 878.465 255.525 881.589 271.233C884.712 286.941 883.107 303.223 876.976 318.018C870.845 332.814 860.464 345.459 847.146 354.355C833.828 363.252 818.171 367.999 802.154 367.997C791.52 367.997 780.991 365.902 771.167 361.833C761.343 357.763 752.417 351.799 744.898 344.28C737.379 336.76 731.415 327.834 727.347 318.01C723.279 308.186 721.186 297.657 721.187 287.024C721.187 282.871 721.506 278.742 722.135 274.672C713.657 268.849 704.889 263.426 695.859 258.426C658.269 237.612 616.889 224.541 574.163 219.988C531.437 215.434 488.232 219.489 447.099 231.913ZM319.489 348.564C319.489 363.809 315.185 378.728 307.094 391.613L323.693 420.326C307.59 439.476 285.501 452.638 260.995 457.683L244.582 429.298C237.31 429.844 229.959 429.408 222.73 427.971C207.024 424.848 192.597 417.138 181.273 405.816C169.949 394.495 162.237 380.069 159.112 364.365C155.986 348.661 157.588 332.382 163.715 317.588C169.841 302.794 180.217 290.149 193.531 281.251C206.845 272.354 222.498 267.604 238.511 267.601C249.145 267.6 259.674 269.693 269.499 273.761C279.324 277.829 288.251 283.793 295.77 291.311C303.29 298.829 309.255 307.755 313.325 317.578C317.394 327.402 319.489 337.931 319.489 348.564ZM260.998 457.685L400.599 699.132L442.692 772.036L484.794 699.132L537.279 608.237L589.621 698.805L631.691 771.687L673.783 698.794L744.391 576.462H859.708C861.079 564.36 861.767 552.19 861.769 540.01C861.771 527.83 861.08 515.66 859.697 503.558H702.288L694.971 516.229L631.67 625.857L579.327 535.278L537.235 462.374L495.208 535.289L442.692 626.184L323.7 420.328C307.596 439.478 285.506 452.64 260.998 457.685ZM861.77 540.003C861.768 552.183 861.08 564.353 859.709 576.455H937.128V503.551H859.709C861.088 515.653 861.776 527.823 861.77 540.003ZM937.154 503.558H938.332C939.411 515.563 940 527.721 940 540.01C940 760.902 760.967 940 540.027 940C319.088 940 140 760.924 140 540.031C139.942 500.879 145.66 461.933 156.968 424.449C175.493 444.394 200.696 456.845 227.794 459.44C221.851 485.163 218.231 515.061 218.231 540.01C218.231 717.668 362.259 861.764 540.038 861.764C705.462 861.764 841.629 736.99 859.731 576.462H937.154V503.558Z",className:"fill-foreground"})})}),i)]}):null};const Pxe=e=>{const t=e.routingUrl||function(e,t,n){let r=e;return r.endsWith(n)?r=r.slice(0,-n.length):r.endsWith(n+"/")&&(r=r.slice(0,-n.length-1)),r=r.replace(/\/+$/,""),r+(t.startsWith("/")?t:`/${t}`)}(window.location.href,"{{graphqlURL}}","{{playgroundPath}}"),[n,r]=y.useState(!1),[i,o]=y.useState("response"),[a,s]=y.useState(null),[l,u]=y.useState(void 0),[c,p]=oye("graphiql:headers","",{deserializer:e=>e,serializer:e=>e}),[d,f]=y.useState();y.useEffect(()=>{c&&!d&&f(c)},[c,d]),y.useEffect(()=>{d&&p(d)},[d]);const[h,m]=y.useState('{\n "X-WG-TRACE" : "true"\n}'),[v,b]=y.useState(""),[x,E]=y.useState(void 0),[D,T]=y.useState(""),[w,C]=y.useState(!0);y.useEffect(()=>{if(document.getElementById("response-toolbar")&&n)return;const t=document.getElementsByClassName("graphiql-sidebar-section")[0];if(t&&!e.hideLogo){const e=document.createElement("div");e.id="graphiql-wg-logo",t.prepend(e)}const i=document.getElementsByClassName("graphiql-session-header-right")[0];if(i){const e=document.getElementsByClassName("graphiql-logo")[0];if(e){e.classList.add("hidden");const t=document.createElement("div");t.id="response-toolbar",t.className="flex items-center justify-center mx-2",i.append(t)}}const o=document.getElementsByClassName("graphiql-editor-tools")[0],a=document.getElementsByClassName("graphiql-editor-tool")[0];if(o&&a&&!document.getElementById("scripts-tab")){const e=[o.childNodes[0],o.childNodes[1]],t=Array.from(a.childNodes),n=document.createElement("button");n.id="scripts-tab",n.className="graphiql-un-styled",n.textContent="Operation Scripts";const r=document.createElement("div");r.id="scripts-section",r.className="graphiql-editor hidden",e.forEach((e,n)=>e.addEventListener("click",()=>{e.className="graphiql-un-styled active",t[n].className="graphiql-editor",r.className="graphiql-editor hidden"})),n.onclick=i=>{e[0].className="graphiql-un-styled",e[1].className="graphiql-un-styled",t[0].className="graphiql-editor hidden",t[1].className="graphiql-editor hidden",r.className="graphiql-editor",n.className="graphiql-un-styled active"},o.addEventListener("click",e=>{var t;(null==(t=e.target)?void 0:t.closest(`#${n.id}`))||(n.className="graphiql-un-styled")}),o.insertBefore(n,o.childNodes[2]),a.appendChild(r)}const s=document.getElementsByClassName("graphiql-editors")[0];if(s){const e=document.createElement("div");e.id="pre-flight-script-section",s.appendChild(e)}const l=document.getElementsByClassName("graphiql-response")[0];if(l){const e=l.parentElement;if(e){e.id="response-parent",e.classList.add("relative");const t=document.createElement("div");t.id="art-visualization",t.className="flex flex-1 h-full w-full absolute invisible -z-50";const n=document.createElement("div");n.id="planner-visualization",n.className="flex flex-1 h-full w-full absolute invisible -z-50",e.append(t),e.append(n)}}const u=document.getElementsByClassName("graphiql-toolbar")[0];if(u){const e=document.createElement("div");e.id="toggle-client-validation",u.append(e)}r(!0)});y.useEffect(()=>{(async()=>{const n=e.fetch?e.fetch:fetch,r=await n(t,{body:JSON.stringify({operationName:"IntrospectionQuery",query:Ss.getIntrospectionQuery({inputValueDeprecation:!0})}),method:"POST",headers:JSON.parse(h)});s(Ss.buildClientSchema((await r.json()).data))})()},[h]);const[S,k]=y.useState(),[A,N]=y.useState(),F=y.useMemo(()=>{const n=(e,t,n)=>{b(JSON.stringify(e)),k(t),N(n)};return J1({url:t,subscriptionUrl:t.replace("http","ws"),fetch:(...t)=>kxe(a,w,e.scripts,n,t[0],t[1])})},[a,w]),[P]=eye(l,300),[_]=eye(h,300);y.useEffect(()=>{(async()=>{var e;if(a&&P&&t&&"query-plan"===i)try{const n=Ss.parse(P);if(Ss.validate(a,n).length>0)return void T("Invalid query");const r=JSON.parse(_||"{}");delete r["X-WG-TRACE"];let i={...r,"X-WG-Include-Query-Plan":"true","X-WG-Skip-Loader":"true","X-WG-DISABLE-TRACING":"true"};i=wxe(i,"0"),Txe(i);const o=await fetch(t,{method:"POST",headers:i,body:JSON.stringify({query:P})}),s=await o.json();if(!(null==(e=null==s?void 0:s.extensions)?void 0:e.queryPlan))throw new Error("No query plan found");T(""),E(s.extensions.queryPlan)}catch(n){E(void 0),T(n.message||"Network error")}})()},[P,_,t,a,i]);const[O,I]=y.useState({activeTabIndex:0,tabs:[]});return g.jsx(Z0,{children:g.jsx(Yge.Provider,{value:{graphId:"0",tabsState:O,status:S,statusText:A,view:i,setView:o},children:g.jsxs(v1.Provider,{value:{query:l,headers:h,response:v,subgraphs:[],plan:x,planError:D,clientValidationEnabled:w,setClientValidationEnabled:C,forcedTheme:e.theme},children:[g.jsx(Kfe,{shouldPersistHeaders:!0,showPersistHeadersSettings:!1,fetcher:F,onEditQuery:u,defaultHeaders:'{\n "X-WG-TRACE" : "true"\n}',onEditHeaders:m,onTabChange:I,plugins:[Hfe({showAttribution:!1})],forcedTheme:e.theme}),n&&g.jsx(Fxe,{})]})})})};function _xe(){return g.jsx(Pxe,{})}O.createRoot(document.getElementById("root")).render(g.jsx(v.StrictMode,{children:g.jsx(_xe,{})}));var Oxe=Object.defineProperty,Ixe=(e,t)=>Oxe(e,"name",{value:t,configurable:!0});typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;function Lxe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Ixe(Lxe,"getDefaultExportFromCjs");var Mxe,jxe={exports:{}};function Rxe(){return Mxe||(Mxe=1,jxe.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=d&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),y=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),E=p&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(p=!1,l=!0);var D=v&&(u||p&&(null==E||E<12.11)),T=n||a&&s>=9;function w(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}Ixe(w,"classTest");var C,S=Ixe(function(e,t){var n=e.className,r=w(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:"")}},"rmClass");function k(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return k(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?L=Ixe(function(e){e.selectionStart=0,e.selectionEnd=e.value.length},"selectInput"):a&&(L=Ixe(function(e){try{e.select()}catch{}},"selectInput")),Ixe(M,"bind"),Ixe(j,"copyObj"),Ixe(R,"countColumn");var B=Ixe(function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)},"Delayed");function V(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}Ixe(G,"findColumn");var K=[""];function W(e){for(;K.length<=e;)K.push(Q(K)+" ");return K[e]}function Q(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}Ixe(te,"isWordCharBasic"),Ixe(ne,"isWordChar"),Ixe(re,"isEmpty");var ie=/[\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 oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(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 le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}Ixe(oe,"isExtendingChar"),Ixe(ae,"skipExtendingChars"),Ixe(se,"findFirst"),Ixe(le,"iterateBidiSections");var ue=null;function ce(e,t,n){var r;ue=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return r??ue}Ixe(ce,"getBidiPartAt");var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}Ixe(n,"charType");var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return Ixe(l,"BidiSpan"),function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,p=[],d=0;d-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ye(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ee(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function De(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){De(e),Te(e)}function Se(e){return e.target||e.srcElement}function ke(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}Ixe(me,"getHandlers"),Ixe(ge,"off"),Ixe(ye,"signal"),Ixe(ve,"signalDOMEvent"),Ixe(be,"signalCursorActivity"),Ixe(xe,"hasHandler"),Ixe(Ee,"eventMixin"),Ixe(De,"e_preventDefault"),Ixe(Te,"e_stopPropagation"),Ixe(we,"e_defaultPrevented"),Ixe(Ce,"e_stop"),Ixe(Se,"e_target"),Ixe(ke,"e_button");var Ae,Ne,Fe=function(){if(a&&s<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==Ae){var t=N("span","​");A(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ae=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ae?N("span","​"):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function _e(e){if(null!=Ne)return Ne;var t=A(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return k(e),!(!n||n.left==n.right)&&(Ne=r.right-n.right<3)}Ixe(Pe,"zeroWidthElement"),Ixe(_e,"hasBadBidiRects");var Oe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ie=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)&&0!=t.compareEndPoints("StartToEnd",t)},Le=function(){var e=N("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Me=null;function je(e){if(null!=Me)return Me;var t=A(e,N("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return Me=Math.abs(n.left-r.left)>1}Ixe(je,"hasBadZoomedRects");var Re={},Be={};function Ve(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Re[e]=t}function Ue(e,t){Be[e]=t}function ze(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function $e(e,t){t=ze(t);var n=Re[t.name];if(!n)return $e(e,"text/plain");var r=n(e,t);if(He.hasOwnProperty(t.name)){var i=He[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 a in t.modeProps)r[a]=t.modeProps[a];return r}Ixe(Ve,"defineMode"),Ixe(Ue,"defineMIME"),Ixe(ze,"resolveMode"),Ixe($e,"getMode");var He={};function qe(e,t){j(t,He.hasOwnProperty(e)?He[e]:He[e]={})}function Ge(e,t){if(!0===t)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 Ke(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function We(e,t,n){return!e.startState||e.startState(t,n)}Ixe(qe,"extendMode"),Ixe(Ge,"copyState"),Ixe(Ke,"innerMode"),Ixe(We,"startState");var Qe=Ixe(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},"StringStream");function Ye(e,t){if((t-=e.first)<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?it(n,Ye(e,n).text.length):dt(t,Ye(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function ft(e,t){for(var n=[],r=0;r=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.post},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=Ixe(function(e){return n?e.toLowerCase():e},"cased");if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)},Ixe(Ye,"getLine"),Ixe(Xe,"getBetween"),Ixe(Je,"getLines"),Ixe(Ze,"updateLineHeight"),Ixe(et,"lineNo"),Ixe(tt,"lineAtHeight"),Ixe(nt,"isLine"),Ixe(rt,"lineNumberFor"),Ixe(it,"Pos"),Ixe(ot,"cmp"),Ixe(at,"equalCursorPos"),Ixe(st,"copyPos"),Ixe(lt,"maxPos"),Ixe(ut,"minPos"),Ixe(ct,"clipLine"),Ixe(pt,"clipPos"),Ixe(dt,"clipToLen"),Ixe(ft,"clipPosArray");var ht=Ixe(function(e,t){this.state=e,this.lookAhead=t},"SavedContext"),mt=Ixe(function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1},"Context");function gt(e,t,n,r){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=Ixe(function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Ct(e,t.text,s.mode,n,function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ge(e.doc.mode,r.state),o=gt(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 vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(r,!0,t);var o=St(e,t,n),a=o>r.first&&Ye(r,o-1).stateAfter,s=a?mt.fromSaved(r,a,o):new mt(r,We(r.mode),o);return r.iter(o,t,function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.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}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof ht?new mt(e,Ge(e.mode,t.state),n,t.lookAhead):new mt(e,Ge(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t},Ixe(gt,"highlightLine"),Ixe(yt,"getLineStyles"),Ixe(vt,"getContextBefore"),Ixe(bt,"processLine"),Ixe(xt,"callBlankLine"),Ixe(Et,"readToken");var Dt=Ixe(function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},"Token");function Tt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ye(a,(t=pt(a,t)).line),u=vt(e,t.line,n),c=new Qe(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,p.pos),p.pos=t.length,l=null):l=wt(Et(n,p,r.state,d),o),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||c!=l){for(;ua;--s){if(s<=o.first)return o.first;var l=Ye(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ht?u.lookAhead:0)<=o.modeFrontier))return s;var c=R(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function kt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof ht)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)){var c=[l,1],p=ot(u.from,s.from),d=ot(u.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function Ut(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||qt(n,o.marker)<0)&&(n=o.marker)}return n}function Yt(e,t,n,r,i){var o=Ye(e,t),a=Nt&&o.markedSpans;if(a)for(var s=0;s=0&&p<=0||c<=0&&p>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function Xt(e){for(var t;t=Kt(e);)e=t.find(-1,!0).line;return e}function Jt(e){for(var t;t=Wt(e);)e=t.find(1,!0).line;return e}function Zt(e){for(var t,n;t=Wt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Ye(e,t),r=Xt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!nn(e,r))return t;for(;n=Wt(r);)r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=Nt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}Ixe(Ft,"seeReadOnlySpans"),Ixe(Pt,"seeCollapsedSpans"),Ixe(_t,"MarkedSpan"),Ixe(Ot,"getMarkedSpanFor"),Ixe(It,"removeMarkedSpan"),Ixe(Lt,"addMarkedSpan"),Ixe(Mt,"markedSpansBefore"),Ixe(jt,"markedSpansAfter"),Ixe(Rt,"stretchSpansOverChange"),Ixe(Bt,"clearEmptySpans"),Ixe(Vt,"removeReadOnlyRanges"),Ixe(Ut,"detachMarkedSpans"),Ixe(zt,"attachMarkedSpans"),Ixe($t,"extraLeft"),Ixe(Ht,"extraRight"),Ixe(qt,"compareCollapsedMarkers"),Ixe(Gt,"collapsedSpanAtSide"),Ixe(Kt,"collapsedSpanAtStart"),Ixe(Wt,"collapsedSpanAtEnd"),Ixe(Qt,"collapsedSpanAround"),Ixe(Yt,"conflictingCollapsedRange"),Ixe(Xt,"visualLine"),Ixe(Jt,"visualLineEnd"),Ixe(Zt,"visualLineContinued"),Ixe(en,"visualLineNo"),Ixe(tn,"visualLineEndNo"),Ixe(nn,"lineIsHidden"),Ixe(rn,"lineIsHiddenInner"),Ixe(on,"heightAtLine"),Ixe(an,"lineLength"),Ixe(sn,"findMaxLine");var ln=Ixe(function(e,t,n){this.text=e,zt(this,t),this.height=n?n(this):1},"Line");function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),zt(e,n);var i=r?r(e):1;i!=e.height&&Ze(e,i)}function cn(e){e.parent=null,Ut(e)}ln.prototype.lineNo=function(){return et(this)},Ee(ln),Ixe(un,"updateLine"),Ixe(cn,"cleanUpLine");var pn={},dn={};function fn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:pn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=F("span",null,null,l?"padding-right: .1px":null),r={pre:F("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,a=void 0;r.pos=0,r.addToken=gn,_e(e.display.measure)&&(a=de(o,e.doc.direction))&&(r.addToken=vn(r.addToken,a)),r.map=[],xn(o,r,yt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=I(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=I(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pe(e.display.measure))),0==i?(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(l){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 ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function mn(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?yn(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){u=document.createDocumentFragment();for(var f=0;;){p.lastIndex=f;var h=p.exec(t),m=h?h.index-f:t.length-f;if(m){var g=document.createTextNode(c.slice(f,f+m));a&&s<9?u.appendChild(N("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;f+=m+1;var y=void 0;if("\t"==h[0]){var v=e.cm.options.tabSize,b=v-e.col%v;(y=u.appendChild(N("span",W(b),"cm-tab"))).setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((y=u.appendChild(N("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((y=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(N("span",[y])):u.appendChild(y),e.col+=1);e.map.push(e.pos,e.pos+1,y),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||d||o||l){var x=n||"";r&&(x+=r),i&&(x+=i);var E=N("span",[u],x,o);if(l)for(var D in l)l.hasOwnProperty(D)&&"style"!=D&&"class"!=D&&E.setAttribute(D,l[D]);return e.content.appendChild(E)}e.content.appendChild(u)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&p.from<=u);d++);if(p.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,p.to-u),i,o,null,s,l),o=null,r=r.slice(p.to-u),u=p.to}}}function bn(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 xn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,p,d,f=i.length,h=0,m=1,g="",y=0;;){if(y==h){l=u=c=s="",d=null,p=null,y=1/0;for(var v=[],b=void 0,x=0;xh||D.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&y>E.to&&(y=E.to,u=""),D.className&&(l+=" "+D.className),D.css&&(s=(s?s+";":"")+D.css),D.startStyle&&E.from==h&&(c+=" "+D.startStyle),D.endStyle&&E.to==y&&(b||(b=[])).push(D.endStyle,E.to),D.title&&((d||(d={})).title=D.title),D.attributes)for(var T in D.attributes)(d||(d={}))[T]=D.attributes[T];D.collapsed&&(!p||qt(p.marker,D)<0)&&(p=E)}else E.from>h&&y>E.from&&(y=E.from)}if(b)for(var w=0;w=f)break;for(var S=Math.min(f,y);;){if(g){var k=h+g.length;if(!p){var A=k>S?g.slice(0,S-h):g;t.addToken(t,A,a?a+l:l,c,h+A.length==y?u:"",s,d)}if(k>=S){g=g.slice(S-h),h=S;break}h=k,c=""}g=i.slice(o,o=n[m++]),a=fn(n[m++],t.cm.options)}}else for(var N=1;N2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Xn(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 Jn(e,t){var n=et(t=Xt(t)),r=e.display.externalMeasured=new En(e.doc,t,n);r.lineN=n;var i=r.built=hn(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}function Zn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function sr(e,t,n,r){var i,o=or(t.map,n,r),l=o.node,u=o.start,c=o.end,p=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&oe(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c0&&(p=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Nr(e.display),top:h.top,bottom:h.bottom}:ir}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,y=(m+g)/2,v=t.view.measure.heights,b=0;b=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}Ixe(c,"getBidi");var p=ce(s,l,u),d=ue,f=c(l,p,"before"==u);return null!=d&&(f.other=c(l,d,"before"!=u)),f}function br(e,t){var n=0;t=pt(e.doc,t),e.options.lineWrapping||(n=Nr(e.display)*t.ch);var r=Ye(e.doc,t.line),i=on(r)+Hn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function xr(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return xr(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return xr(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ye(r,i);;){var s=Cr(e,a,i,t,n),l=Qt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ye(r,i=u.line)}}function Dr(e,t,n,r){r-=hr(t);var i=t.text.length,o=se(function(t){return nr(e,n,t-1).bottom<=r},i,0);return i=se(function(t){return nr(e,n,t).top>r},o,i),{begin:o,end:i}}function Tr(e,t,n,r){return n||(n=tr(e,t)),Dr(e,t,n,mr(e,t,nr(e,n,r),"line").top)}function wr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Cr(e,t,n,r,i){i-=on(t);var o=tr(e,t),a=hr(t),s=0,l=t.text.length,u=!0,c=de(t,e.doc.direction);if(c){var p=(e.options.lineWrapping?kr:Sr)(e,t,n,o,c,r,i);s=(u=1!=p.level)?p.from:p.to-1,l=u?p.to:p.from-1}var d,f,h=null,m=null,g=se(function(t){var n=nr(e,o,t);return n.top+=a,n.bottom+=a,!!wr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)},s,l),y=!1;if(m){var v=r-m.left=x.bottom?1:0}return xr(n,g=ae(t.text,g,1),f,y,r-d)}function Sr(e,t,n,r,i,o,a){var s=se(function(s){var l=i[s],u=1!=l.level;return wr(vr(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=vr(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);wr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function kr(e,t,n,r,i,o,a){var s=Dr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,p=null,d=0;d=u||f.to<=l)){var h=nr(e,r,1!=f.level?Math.min(u,f.to)-1:Math.max(l,f.from)).right,m=hm)&&(c=f,p=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Ar(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(N("br"));rr.appendChild(document.createTextNode("x"))}A(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),k(e.measure),n||1}function Nr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Fr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Pr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Pr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _r(e){var t=Ar(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Nr(e.display)-3);return function(i){if(nn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Ye(e.doc,u.line).text).length==u.ch){var c=R(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-Gn(e.display).left)/Nr(e.display))-c))}return u}function Lr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Nt&&en(e.doc,t)i.viewFrom?Rr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Rr(e);else if(t<=i.viewFrom){var o=Br(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Rr(e)}else if(n>=i.viewTo){var a=Br(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Rr(e)}else{var s=Br(e,t,t,-1),l=Br(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Dn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Rr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Lr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==V(a,n)&&a.push(n)}}}function Rr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Br(e,t,n,r){var i,o=Lr(e,t),a=e.display.view;if(!Nt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;en(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Vr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Dn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Dn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Lr(e,n)))),r.viewTo=n}function Ur(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function qr(e,t){return e.top-t.top||e.left-t.left}function Gr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Gn(e.display),s=a.left,l=Math.max(r.sizerWidth,Wn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(n??l-e)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=Ye(i,t),d=p.text.length;function f(n,r){return yr(e,it(t,n),"div",p,r)}function h(t,n,r){var i=Tr(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}Ixe(f,"coords"),Ixe(h,"wrapX");var m=de(p,i.direction);return le(m,n||0,r??d,function(e,t,i,p){var g="ltr"==i,y=f(e,g?"left":"right"),v=f(t-1,g?"right":"left"),b=null==n&&0==e,x=null==r&&t==d,E=0==p,D=!m||p==m.length-1;if(v.top-y.top<=3){var T=(u?x:b)&&D,w=(u?b:x)&&E?s:(g?y:v).left,C=T?l:(g?v:y).right;c(w,y.top,C-w,y.bottom)}else{var S,k,A,N;g?(S=u&&b&&E?s:y.left,k=u?l:h(e,i,"before"),A=u?s:h(t,i,"after"),N=u&&x&&D?l:v.right):(S=u?h(e,i,"before"):s,k=!u&&b&&E?l:y.right,A=!u&&x&&D?s:v.left,N=u?h(t,i,"after"):l),c(S,y.top,k-S,y.bottom),y.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Xr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Wr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Yr(e))}function Qr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Xr(e))},100)}function Yr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,O(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Kr(e))}function Xr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Jr(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||m<-.005)&&(ie.display.sizerWidth){var y=Math.ceil(d/Nr(e.display));y>e.display.maxLineLength&&(e.display.maxLineLength=y,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Zr(e){if(e.widgets)for(var t=0;t=a&&(o=tt(t,on(Ye(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ti(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=N("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Hn(e.display))+"px;\n height: "+(t.bottom-t.top+Kn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ni(e,t,n,r){var i;null==r&&(r=0),!e.options.lineWrapping&&t==n&&(n="before"==t.sticky?it(t.line,t.ch+1,"before"):t,t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=vr(e,t),l=n&&n!=t?vr(e,n):s,u=ii(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=u.scrollTop&&(pi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(fi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}function ri(e,t){var n=ii(e,t);null!=n.scrollTop&&pi(e,n.scrollTop),null!=n.scrollLeft&&fi(e,n.scrollLeft)}function ii(e,t){var n=e.display,r=Ar(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+qn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,f=Wn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+d-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function oi(e,t){null!=t&&(ui(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){ui(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){(null!=t||null!=n)&&ui(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ui(e),e.curOp.scrollToPos=t}function ui(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ci(e,br(e,t.from),br(e,t.to),t.margin))}function ci(e,t,n,r){var i=ii(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});si(e,i.scrollLeft,i.scrollTop)}function pi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||zi(e,{top:t}),di(e,t,!0),n&&zi(e),Ii(e,100))}function di(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 fi(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,Gi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function hi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+qn(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+Kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}Ixe(or,"nodeAndOffsetInLineMap"),Ixe(ar,"getUsefulRect"),Ixe(sr,"measureCharInner"),Ixe(lr,"maybeUpdateRectForZooming"),Ixe(ur,"clearLineMeasurementCacheFor"),Ixe(cr,"clearLineMeasurementCache"),Ixe(pr,"clearCaches"),Ixe(dr,"pageScrollX"),Ixe(fr,"pageScrollY"),Ixe(hr,"widgetTopHeight"),Ixe(mr,"intoCoordSystem"),Ixe(gr,"fromCoordSystem"),Ixe(yr,"charCoords"),Ixe(vr,"cursorCoords"),Ixe(br,"estimateCoords"),Ixe(xr,"PosWithInfo"),Ixe(Er,"coordsChar"),Ixe(Dr,"wrappedLineExtent"),Ixe(Tr,"wrappedLineExtentChar"),Ixe(wr,"boxIsAfter"),Ixe(Cr,"coordsCharInner"),Ixe(Sr,"coordsBidiPart"),Ixe(kr,"coordsBidiPartWrapped"),Ixe(Ar,"textHeight"),Ixe(Nr,"charWidth"),Ixe(Fr,"getDimensions"),Ixe(Pr,"compensateForHScroll"),Ixe(_r,"estimateHeight"),Ixe(Or,"estimateLineHeights"),Ixe(Ir,"posFromMouse"),Ixe(Lr,"findViewIndex"),Ixe(Mr,"regChange"),Ixe(jr,"regLineChange"),Ixe(Rr,"resetView"),Ixe(Br,"viewCuttingPoint"),Ixe(Vr,"adjustView"),Ixe(Ur,"countDirtyView"),Ixe(zr,"updateSelection"),Ixe($r,"prepareSelection"),Ixe(Hr,"drawSelectionCursor"),Ixe(qr,"cmpCoords"),Ixe(Gr,"drawSelectionRange"),Ixe(Kr,"restartBlink"),Ixe(Wr,"ensureFocus"),Ixe(Qr,"delayBlurEvent"),Ixe(Yr,"onFocus"),Ixe(Xr,"onBlur"),Ixe(Jr,"updateHeightsInViewport"),Ixe(Zr,"updateWidgetHeight"),Ixe(ei,"visibleLines"),Ixe(ti,"maybeScrollWindow"),Ixe(ni,"scrollPosIntoView"),Ixe(ri,"scrollIntoView"),Ixe(ii,"calculateScrollPos"),Ixe(oi,"addToScrollTop"),Ixe(ai,"ensureCursorVisible"),Ixe(si,"scrollToCoords"),Ixe(li,"scrollToRange"),Ixe(ui,"resolveScrollToPos"),Ixe(ci,"scrollToCoordsRange"),Ixe(pi,"updateScrollTop"),Ixe(di,"setScrollTop"),Ixe(fi,"setScrollLeft"),Ixe(hi,"measureForScrollbars");var mi=Ixe(function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),he(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),he(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")},"NativeScrollbars");mi.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&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},mi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mi.prototype.zeroWidthHack=function(){var e=v&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},mi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",Ixe(r,"maybeDisable"),t.set(1e3,r)},mi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gi=Ixe(function(){},"NullScrollbars");function yi(e,t){t||(t=hi(e));var n=e.display.barWidth,r=e.display.barHeight;vi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),vi(e,hi(e)),n=e.display.barWidth,r=e.display.barHeight}function vi(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=""}gi.prototype.update=function(){return{bottom:0,right:0}},gi.prototype.setScrollLeft=function(){},gi.prototype.setScrollTop=function(){},gi.prototype.clear=function(){},Ixe(yi,"updateScrollbars"),Ixe(vi,"updateScrollbarsInner");var bi={native:mi,null:gi};function xi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?fi(e,t):pi(e,t)},e),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)}Ixe(xi,"initScrollbars");var Ei=0;function Di(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:++Ei,markArrays:null},wn(e.curOp)}function Ti(e){var t=e.curOp;t&&Sn(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Mi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Si(e){e.updatedDisplay=e.mustUpdate&&Vi(e.cm,e.update)}function ki(e){var t=e.cm,n=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=hi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Zn(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+Kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Wn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ai(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(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 a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,l=gt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!p&&dn)return Ii(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Fi(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ur(e))return!1;Ki(e)&&(Rr(e),t.dims=Fr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Nt&&(o=en(e.doc,o),a=tn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Vr(e,o,a),n.viewOffset=on(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ur(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Ri(e);return l>4&&(n.lineDiv.style.display="none"),$i(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Bi(u),k(n.cursorDiv),k(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ii(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Wn(e))r&&(t.visible=ei(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+qn(e.display)-Qn(e),n.top)}),t.visible=ei(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Vi(e,t))break;Jr(e);var i=hi(e);zr(e),yi(e,i),qi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function zi(e,t){var n=new Mi(e,t);if(Vi(e,n)){Jr(e),Ui(e,n);var r=hi(e);zr(e),yi(e,r),qi(e,r),n.finish()}}function $i(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}Ixe(s,"rm");for(var u=r.view,c=r.viewFrom,p=0;p-1&&(f=!1),Fn(e,d,c,n)),f&&(k(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=d.node.nextSibling}else{var h=Rn(e,d,c,n);o.insertBefore(h,a)}c+=d.size}for(;a;)a=s(a)}function Hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",An(e,"gutterChanged",e)}function qi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Kn(e)+"px"}function Gi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Pr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;au.clientWidth,d=u.scrollHeight>u.clientHeight;if(i&&c||o&&d){if(o&&v&&l)e:for(var f=t.target,h=s.view;f!=u;f=f.parentNode)for(var m=0;m=0&&ot(e,r.to())<=0)return n}return-1};var io=Ixe(function(e,t){this.anchor=e,this.head=t},"Range");function oo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return ot(e.from(),t.from())}),n=V(t,i);for(var o=1;o0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new io(p?c:u,p?u:c))}}return new ro(t,n)}function ao(e,t){return new ro([new io(e,t||e)],0)}function so(e){return e.text?it(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lo(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return so(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+=so(t).ch-t.to.ch),it(n,r)}function uo(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}An(e,"change",e,t)}function yo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}function Co(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=wo(i,i.lastOp==r)))a=Q(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=so(t):o.changes.push(Do(e,t));else{var l=Q(i.done);for((!l||!l.ranges)&&Ao(e.sel,i.done),o={changes:[Do(e,t)],generation:i.generation},i.done.push(o);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=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ye(e,"historyAdded")}function So(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 ko(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||So(e,o,Q(i.done),t))?i.done[i.done.length-1]=t:Ao(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&To(i.undone)}function Ao(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function No(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(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Fo(e){if(!e)return null;for(var t,n=0;n-1&&(Q(s)[p]=u[p],delete u[p])}}}return r}function Io(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new io(i,t)}return new io(n||t,t)}function Lo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new ro([Io(e.sel.primary(),t,n,i)],0),r)}function Mo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(ye(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),d=void 0;if((r<0?c:u)&&(p=Wo(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(d=ot(p,n))&&(r<0?d<0:d>0))return Go(e,p,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?u:c)&&(f=Wo(e,f,r,f.line==t.line?o:null)),f?Go(e,f,t,r,i):null}}return t}function Ko(e,t,n,r,i){var o=r||1;return Go(e,t,n,o,i)||!i&&Go(e,t,n,o,!0)||Go(e,t,n,-o,i)||!i&&Go(e,t,n,-o,!0)||(e.cantEdit=!0,it(e.first,0))}function Wo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?pt(e,it(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line=0;--i)Jo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=uo(e,t);Co(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Rt(e,t));var r=[];yo(e,function(e,n){!n&&-1==V(r,e.history)&&(aa(e.history,t),r.push(e.history)),ta(e,t,null,Rt(e,t))})}}function Zo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--f){var h=d(f);if(h)return h.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Y(e.sel.ranges,function(e){return new io(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Mr(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:it(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=uo(e,t)),e.cm?na(e.cm,t,r):go(e,t,r),zo(e,n,$),e.cantEdit&&Ko(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et(Xt(Ye(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&be(e),go(r,t,n,_r(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=an(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),kt(r,o.line),Ii(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Mr(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Mr(e,o.line,a.line+1,u):jr(e,o.line,"text");var c=xe(e,"changes"),p=xe(e,"change");if(p||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&An(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ra(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Xo(e,{from:n,to:r,text:t,origin:i})}function ia(e,t,n,r){n1||!(this.children[0]instanceof la))){var s=[];this.collapse(s),this.children=[new la(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=F("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Yt(e,t.line,t,n,o)||t.line!=n.line&&Yt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt()}o.addToHistory&&Co(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(r){u&&o.collapsed&&!u.options.lineWrapping&&Xt(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ze(r,0),Lt(r,new _t(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){nn(e,t)&&Ze(t,0)}),o.clearOnEnter&&he(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Ft(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++fa,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Mr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)jr(u,c,"text");o.atomic&&Ho(u.doc),An(u,"markerAdded",u,o)}return o}ha.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Di(e),xe(this,"clear")){var n=this.find();n&&An(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ho(e.doc)),e&&An(e,"markerCleared",e,this,r,i),t&&Ti(e),this.parent&&this.parent.clear()}},ha.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,r,i=0;i=0;l--)Xo(this,r[l]);s?Vo(this,s):this.cm&&ai(this.cm)}),undo:Oi(function(){Zo(this,"undo")}),redo:Oi(function(){Zo(this,"redo")}),undoSelection:Oi(function(){Zo(this,"undo",!0)}),redoSelection:Oi(function(){Zo(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=pt(this,e),t=pt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch)&&(!n||n(l.marker))&&r.push(l.marker.parent||l.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}),pt(this,it(n,t))},indexFromPos:function(e){var t=(e=pt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),zo(t.doc,ao(n,n)),d)for(var f=0;f=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ai(e)})}function Ga(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ka(e,t,n){var r=Ga(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Wa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=de(n,t.doc.direction);if(o){var a,s=i<0?Q(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=tr(t,n);a=i<0?n.text.length-1:0;var c=nr(t,u,a).top;a=se(function(e){return nr(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ga(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,l)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}function Qa(e,t,n,r){var i=de(t,e.doc.direction);if(!i)return Ka(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=ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=c.begin)){var f=p?"before":"after";return new it(n.line,d,f)}}var h=Ixe(function(e,t,r){for(var o=Ixe(function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")},"getRes");e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}ja.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ja.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ja.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ja.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ja.default=v?ja.macDefault:ja.pcDefault,Ixe(Ra,"normalizeKeyName"),Ixe(Ba,"normalizeKeyMap"),Ixe(Va,"lookupKey"),Ixe(Ua,"isModifierKey"),Ixe(za,"addModifierNames"),Ixe($a,"keyName"),Ixe(Ha,"getKeyMap"),Ixe(qa,"deleteNearSelection"),Ixe(Ga,"moveCharLogically"),Ixe(Ka,"moveLogically"),Ixe(Wa,"endOfLine"),Ixe(Qa,"moveVisually");var Ya={selectAll:Qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return qa(e,function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ye(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Fi(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;r-1&&(ot((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?Es(e,r,t,o):Ts(e,r,t,o)}function Es(e,t,n,r){var i=e.display,o=!1,u=Pi(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qr(e)),ge(i.wrapper.ownerDocument,"mouseup",u),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",p),ge(i.scroller,"drop",u),o||(De(t),r.addNew||Lo(e.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),c=Ixe(function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},"mouseMove"),p=Ixe(function(){return o=!0},"dragStart");l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,he(i.wrapper.ownerDocument,"mouseup",u),he(i.wrapper.ownerDocument,"mousemove",c),he(i.scroller,"dragstart",p),he(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ds(e,t,n){if("char"==n)return new io(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new io(it(t.line,0),pt(e.doc,it(t.line+1,0)));var r=n(e,t);return new io(r.from,r.to)}function Ts(e,t,n,r){a&&Qr(e);var i=e.display,o=e.doc;De(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new io(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new io(n,n)),n=Ir(e,t,!0,!0),l=-1;else{var p=Ds(e,n,r.unit);s=r.extend?Io(s,p.anchor,p.head,r.extend):p}r.addNew?-1==l?(l=c.length,Uo(o,oo(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Uo(o,oo(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):jo(o,l,s,H):(l=0,Uo(o,new ro([s],0),H),u=o.sel);var d=n;function f(t){if(0!=ot(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=R(Ye(o,n.line).text,n.ch,a),p=R(Ye(o,t.line).text,t.ch,a),f=Math.min(c,p),h=Math.max(c,p),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var y=Ye(o,m).text,v=G(y,f,a);f==h?i.push(new io(it(m,v),it(m,v))):y.length>v&&i.push(new io(it(m,v),it(m,G(y,h,a))))}i.length||i.push(new io(n,n)),Uo(o,oo(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=s,E=Ds(e,t,r.unit),D=x.anchor;ot(E.anchor,D)>0?(b=E.head,D=ut(x.from(),E.anchor)):(b=E.anchor,D=lt(x.to(),E.head));var T=u.ranges.slice(0);T[l]=ws(e,new io(pt(o,D),b)),Uo(o,oo(e,T,l),H)}}Ixe(f,"extendTo");var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=Ir(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,d)){e.curOp.focus=_(),f(a);var s=ei(i,o);(a.line>=s.to||a.lineh.bottom?20:0;l&&setTimeout(Pi(e,function(){m==n&&(i.scroller.scrollTop+=l,g(t))}),50)}}function y(t){e.state.selectingText=!1,m=1/0,t&&(De(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",v),ge(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}Ixe(g,"extend"),Ixe(y,"done");var v=Pi(e,function(e){0!==e.buttons&&ke(e)?g(e):y(e)}),b=Pi(e,y);e.state.selectingText=b,he(i.wrapper.ownerDocument,"mousemove",v),he(i.wrapper.ownerDocument,"mouseup",b)}function ws(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=de(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),p=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?p<0:p>0}var d=o[u+(l?-1:0)],f=l==(1==d.level),h=f?d.from:d.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new io(new it(n.line,h,m),r)}function Cs(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&&De(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!xe(e,n))return we(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return ye(e,n,e,tt(e.doc,o),e.display.gutterSpecs[l].className,t),we(t)}}function Ss(e,t){return Cs(e,t,"gutterClick",!0)}function ks(e,t){$n(e.display,t)||As(e,t)||ve(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function As(e,t){return!!xe(e,"gutterContextMenu")&&Cs(e,t,"gutterContextMenu",!1)}function Ns(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),pr(e)}ms.prototype.compare=function(e,t,n){return this.time+hs>e&&0==ot(t,this.pos)&&n==this.button},Ixe(gs,"clickRepeat"),Ixe(ys,"onMouseDown"),Ixe(vs,"handleMappedButton"),Ixe(bs,"configureMouse"),Ixe(xs,"leftButtonDown"),Ixe(Es,"leftButtonStartDrag"),Ixe(Ds,"rangeForUnit"),Ixe(Ts,"leftButtonSelect"),Ixe(ws,"bidiSimplify"),Ixe(Cs,"gutterEvent"),Ixe(Ss,"clickInGutter"),Ixe(ks,"onContextMenu"),Ixe(As,"contextMenuInGutter"),Ixe(Ns,"themeChanged");var Fs={toString:function(){return"CodeMirror.Init"}},Ps={},_s={};function Os(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Fs&&i(e,t,n)}:i)}Ixe(n,"option"),e.defineOption=n,e.Init=Fs,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,fo(e)},!0),n("indentUnit",2,fo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){ho(e),pr(e),Mr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++});for(var i=n.length-1;i>=0;i--)ra(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Fs&&e.refresh()}),n("specialCharPlaceholder",mn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Ns(e),Yi(e)},!0),n("keyMap","default",function(e,t,n){var r=Ha(t),i=n!=Fs&&Ha(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ls,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=Wi(t,e.options.lineNumbers),Yi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Pr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return yi(e)},!0),n("scrollbarStyle","native",function(e){xi(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=Wi(e.options.gutters,t),Yi(e)},!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",function(e){return e},Yi,!0),n("showCursorWhenSelecting",!1,zr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Xr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Is),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,zr,!0),n("singleCursorHeightPerLine",!0,zr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,ho,!0),n("addModeClass",!1,ho,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,ho,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}function Is(e,t,n){if(!t!=!(n&&n!=Fs)){var r=e.display.dragFunctions,i=t?he:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ls(e){e.options.lineWrapping?(O(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Or(e),Mr(e),pr(e),setTimeout(function(){return yi(e)},100)}function Ms(e,t){var n=this;if(!(this instanceof Ms))return new Ms(e,t);this.options=t=t?j(t):{},j(Ps,t,!1);var r=t.value;"string"==typeof r?r=new Da(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ms.inputStyles[t.inputStyle](this),o=this.display=new Xi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Ns(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xi(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 B,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),js(this),Fa(),Di(this),this.curOp.forceUpdate=!0,vo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Yr(n)},20):Xr(this),_s)_s.hasOwnProperty(u)&&_s[u](this,t[u],Fs);Ki(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}Ixe(i,"finishTouch"),Ixe(o,"isMouseLikeTouchEvent"),Ixe(l,"farAway"),he(t.scroller,"touchstart",function(i){if(!ve(e,i)&&!o(i)&&!Ss(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),he(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),he(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!$n(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new io(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new io(it(a.line,0),pt(e.doc,it(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),De(n)}i()}),he(t.scroller,"touchcancel",i),he(t.scroller,"scroll",function(){t.scroller.clientHeight&&(pi(e,t.scroller.scrollTop),fi(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))}),he(t.scroller,"mousewheel",function(t){return no(e,t)}),he(t.scroller,"DOMMouseScroll",function(t){return no(e,t)}),he(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ve(e,t)||Ce(t)},over:function(t){ve(e,t)||(Sa(e,t),Ce(t))},start:function(t){return Ca(e,t)},drop:Pi(e,wa),leave:function(t){ve(e,t)||ka(e)}};var u=t.input.getField();he(u,"keyup",function(t){return cs.call(e,t)}),he(u,"keydown",Pi(e,ls)),he(u,"keypress",Pi(e,ps)),he(u,"focus",function(t){return Yr(e,t)}),he(u,"blur",function(t){return Xr(e,t)})}Ixe(Os,"defineOptions"),Ixe(Is,"dragDropChanged"),Ixe(Ls,"wrappingChanged"),Ixe(Ms,"CodeMirror"),Ms.defaults=Ps,Ms.optionHandlers=_s,Ixe(js,"registerEventHandlers");var Rs=[];function Bs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=vt(e,t).state:n="prev");var a=e.options.tabSize,s=Ye(o,t),l=R(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==z||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?R(Ye(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var p="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/a);f;--f)d+=a,p+="\t";if(da,l=Oe(t),u=null;if(s&&r.ranges.length>1)if(Vs&&Vs.text.join("\n")==t){if(r.ranges.length%Vs.text.length==0){u=[];for(var c=0;c=0;d--){var f=r.ranges[d],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Ye(o,m.line).text.length,m.ch+Q(l).length)):s&&Vs&&Vs.lineWise&&Vs.text.join("\n")==l.join("\n")&&(h=m=it(h.line,0)));var g={from:h,to:m,text:u?u[d%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Xo(e.doc,g),An(e,"inputRead",e,g)}t&&!s&&Hs(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function $s(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Fi(t,function(){return zs(t,n,0,null,"paste")}),!0}function Hs(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),a=!1;if(o.electricChars){for(var s=0;s-1){a=Bs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Bs(e,i.head.line,"smart"));a&&An(e,"electricInput",e,i.head.line)}}}function qs(e){for(var t=[],n=[],r=0;rn&&(Bs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&jo(this.doc,r,new io(o,u[r].to()),$)}}}),getTokenAt:function(e,t){return Tt(this,e,t)},getLineTokens:function(e,t){return Tt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=pt(this.doc,e);var t,n=yt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return mr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return Nr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=vr(this,pt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:_i(ls),triggerOnKeyPress:_i(ps),triggerOnKeyUp:cs,triggerOnMouseDown:_i(ys),execCommand:function(e){if(Ya.hasOwnProperty(e))return Ya[e].call(null,this)},triggerElectric:_i(function(e){Hs(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=pt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Or(this),ye(this,"refresh",this)}),swapDoc:_i(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),vo(this,e),pr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,An(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},Ee(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Qs(e,t,n,r,i){var o=t,a=n,s=Ye(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),s=Ye(e,n))}function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var p=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?Qa(e.cm,s,t,n):Ka(s,t,n);if(null==a){if(o||!u())return!1;t=Wa(i,e.cm,s,t.line,l)}else t=a;return!0}if(Ixe(u,"findNextLine"),Ixe(c,"moveOnce"),"char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var p=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var m=s.text.charAt(t.ch)||"\n",g=ne(m,f)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(d&&!h&&!g&&(g="s"),p&&p!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(p=g),n>0&&!c(!h))break}var y=Ko(e,t,o,a,!0);return at(o,y)&&(y.hitSide=!0),y}function Ys(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Ar(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}Ixe(Us,"setLastCopied"),Ixe(zs,"applyTextInput"),Ixe($s,"handlePaste"),Ixe(Hs,"triggerElectric"),Ixe(qs,"copyableRanges"),Ixe(Gs,"disableBrowserMagic"),Ixe(Ks,"hiddenTextarea"),Ixe(Ws,"addEditorMethods"),Ixe(Qs,"findPosH"),Ixe(Ys,"findPosV");var Xs=Ixe(function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null},"ContentEditableInput");function Js(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=Xn(n,r,t.line),o=de(r,e.doc.direction),a="left";o&&(a=ce(o,t.ch)%2?"right":"left");var s=or(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Zs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function p(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void p(n);var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(it(r,0),it(i+1,0),u(+f));return void(h.length&&(o=h[0].find(0))&&p(Xe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&Js(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=it(a.line-1,Ye(r.doc,a.line-1).length)),s.ch==Ye(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Lr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=Lr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(tl(r,n,u,t,l)),d=Xe(r.doc,it(t,0),it(l,Ye(r.doc,l).text.length));p.length>1&&d.length>1;)if(Q(p)==Q(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var f=0,h=0,m=p[0],g=d[0],y=Math.min(m.length,g.length);fa.ch&&v.charCodeAt(v.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;p[p.length-1]=v.slice(0,v.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(f).replace(/\u200b+$/,"");var E=it(t,f),D=it(l,d.length?Q(d).length-h:0);return p.length>1||p[0]||ot(E,D)?(ra(r.doc,p,E,D,"+input"),!0):void 0},Xs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xs.prototype.reset=function(){this.forceCompositionEnd()},Xs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Xs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Xs.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Fi(this.cm,function(){return Mr(e.cm)})},Xs.prototype.setUneditable=function(e){e.contentEditable="false"},Xs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Pi(this.cm,zs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Xs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Xs.prototype.onContextMenu=function(){},Xs.prototype.resetPosition=function(){},Xs.prototype.needsContentAttribute=!0,Ixe(Js,"posToDOM"),Ixe(Zs,"isInGutter"),Ixe(el,"badPos"),Ixe(tl,"domTextBetween"),Ixe(nl,"domToPos"),Ixe(rl,"locateNodeInLineView");var il=Ixe(function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null},"TextareaInput");function ol(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=_();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(Ixe(r,"save"),e.form&&(he(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch{}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone&&"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Ms(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function al(e){e.off=ge,e.on=he,e.wheelEventPixels=to,e.Doc=Da,e.splitLines=Oe,e.countColumn=R,e.findColumn=G,e.isWordChar=te,e.Pass=z,e.signal=ye,e.Line=ln,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=it,e.cmpPos=ot,e.modes=Re,e.mimeModes=Be,e.resolveMode=ze,e.getMode=$e,e.modeExtensions=He,e.extendMode=qe,e.copyState=Ge,e.startState=We,e.innerMode=Ke,e.commands=Ya,e.keyMap=ja,e.keyName=$a,e.isModifierKey=Ua,e.lookupKey=Va,e.normalizeKeyMap=Ba,e.StringStream=Qe,e.SharedTextMarker=ga,e.TextMarker=ha,e.LineWidget=ca,e.e_preventDefault=De,e.e_stopPropagation=Te,e.e_stop=Ce,e.addClass=O,e.contains=P,e.rmClass=S,e.keyNames=Oa}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(r,e)){if(r.somethingSelected())Us({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=qs(r);Us({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),he(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),he(i,"paste",function(e){ve(r,e)||$s(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),Ixe(o,"prepareCopyCut"),he(i,"cut",o),he(i,"copy",o),he(e.scroller,"paste",function(t){if(!$n(e,t)&&!ve(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),he(e.lineSpace,"selectstart",function(t){$n(e,t)||De(t)}),he(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),he(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},il.prototype.createField=function(e){this.wrapper=Ks(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=$r(e);if(e.options.moveInputWithCursor){var i=vr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||_()!=this.textarea))try{this.textarea.focus()}catch{}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,Ixe(n,"p"),t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ie(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(a&&s>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203==o&&!r&&(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-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},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Ir(n,e),u=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Pi(n,Uo)(n.doc,ao(o),$);var c,d=i.style.cssText,f=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),Ixe(g,"prepareSelectAllHack"),Ixe(y,"rehide"),a&&s>=9&&g(),T){Ce(e);var m=Ixe(function(){ge(window,"mouseup",m),setTimeout(y,20)},"mouseup");he(window,"mouseup",m)}else setTimeout(y,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=Ixe(function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Pi(n,Qo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())},"poll");r.detectingSelectAll=setTimeout(o,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,Ixe(ol,"fromTextArea"),Ixe(al,"addLegacyProps"),Os(Ms),Ws(Ms);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in Da.prototype)Da.prototype.hasOwnProperty(ll)&&V(sl,ll)<0&&(Ms.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(Da.prototype[ll]));return Ee(Da),Ms.inputStyles={textarea:il,contenteditable:Xs},Ms.defineMode=function(e){!Ms.defaults.mode&&"null"!=e&&(Ms.defaults.mode=e),Ve.apply(this,arguments)},Ms.defineMIME=Ue,Ms.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ms.defineMIME("text/plain","null"),Ms.defineExtension=function(e,t){Ms.prototype[e]=t},Ms.defineDocExtension=function(e,t){Da.prototype[e]=t},Ms.fromTextArea=ol,al(Ms),Ms.version="5.65.3",Ms}()),jxe.exports}Ixe(Rxe,"requireCodemirror");var Bxe=Object.defineProperty;function Vxe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}((e,t)=>{Bxe(e,"name",{value:t,configurable:!0})})(Vxe,"_mergeNamespaces");var Uxe=Rxe();const zxe=Lxe(Uxe),$xe=Vxe({__proto__:null,default:zxe},[Uxe]),Hxe=Object.freeze(Object.defineProperty({__proto__:null,C:zxe,c:$xe},Symbol.toStringTag,{value:"Module"}));var qxe=Object.defineProperty,Gxe=(e,t)=>qxe(e,"name",{value:t,configurable:!0});function Kxe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}Gxe(Kxe,"_mergeNamespaces");!function(e){var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(t){t=a(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;id.clientHeight+1;if(setTimeout(function(){P=a.getScrollInfo()}),_.bottom-F>0){var I=_.bottom-_.top;if(x.top-(x.bottom-_.top)-I>0)d.style.top=(D=x.top-I-C)+"px",T=!1;else if(I>F){d.style.height=F-5+"px",d.style.top=(D=x.bottom-_.top-C)+"px";var L=a.getCursor();i.from.ch!=L.ch&&(x=a.cursorCoords(L),d.style.left=(E=x.left-w)+"px",_=d.getBoundingClientRect())}}var M,j=_.right-N;if(O&&(j+=a.display.nativeBarWidth),j>0&&(_.right-_.left>N&&(d.style.width=N-5+"px",j-=_.right-_.left-N),d.style.left=(E=x.left-j-w)+"px"),O)for(var R=d.firstChild;R;R=R.nextSibling)R.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=l(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:h.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){M=setTimeout(function(){r.close()},100)}),a.on("focus",this.onFocus=function(){clearTimeout(M)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),t=a.getWrapperElement().getBoundingClientRect();P||(P=a.getScrollInfo());var n=D+P.top-e.top,i=n-(p.pageYOffset||(c.documentElement||c.body).scrollTop);if(T||(i+=d.offsetHeight),i<=t.top||i>=t.bottom)return r.close();d.style.top=n+"px",d.style.left=E+P.left-e.left+"px"}),e.on(d,"dblclick",function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(d,"click",function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())}),e.on(d,"mousedown",function(){setTimeout(function(){a.focus()},20)});var B=this.getSelectedHintRange();return(0!==B.from||0!==B.to)&&this.scrollToActive(),e.signal(i,"select",h[this.selectedHint],d.childNodes[this.selectedHint]),!0}function p(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):o(i+1)})}Gxe(o,"run"),o(0)},"resolved");return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation(function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(s(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},Gxe(p,"applicableHelpers"),Gxe(d,"fetchHints"),Gxe(f,"resolveAutoHints"),e.registerHelper("hint","auto",{resolve:f}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(Rxe());var Wxe={};const Qxe=Kxe({__proto__:null,default:Lxe(Wxe)},[Wxe]),Yxe=Object.freeze(Object.defineProperty({__proto__:null,s:Qxe},Symbol.toStringTag,{value:"Module"}));var Xxe,Jxe=Object.defineProperty,Zxe=(e,t)=>Jxe(e,"name",{value:t,configurable:!0}),eEe={exports:{}};function tEe(){return Xxe||(Xxe=1,function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),p=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!p)return null;var d=">"==p.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(d>0?1:0)),d,f,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==p.charAt(0),forward:d>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],p=i(s),d=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),f=t.line;f!=d;f+=o){var h=e.getLine(f);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(f==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var y=h.charAt(m);if(p.test(y)&&(void 0===a||(e.getTokenTypeAt(n(f,m+1))||"")==(a||""))){var v=r[y];if(v&&">"==v.charAt(1)==o>0)c.push(y);else{if(!c.length)return{pos:n(f,m),ch:y};c.pop()}}}}}return f-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;cr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}((e,t)=>{nEe(e,"name",{value:t,configurable:!0})})(rEe,"_mergeNamespaces");var iEe=tEe();const oEe=rEe({__proto__:null,default:Lxe(iEe)},[iEe]),aEe=Object.freeze(Object.defineProperty({__proto__:null,m:oEe},Symbol.toStringTag,{value:"Module"}));var sEe=Object.defineProperty,lEe=(e,t)=>sEe(e,"name",{value:t,configurable:!0});function uEe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}lEe(uEe,"_mergeNamespaces");!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}),lEe(r,"getOption");var i={Backspace:l,Enter:u};function o(e){for(var t=0;t=0;l--){var c=a[l].head;t.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function u(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function p(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function d(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),l=a.indexOf(i);if(-1==l)return e.Pass;for(var u,d=r(o,"closeBefore"),f=r(o,"triples"),m=a.charAt(l+1)==i,g=t.listSelections(),y=l%2==0,v=0;v1&&f.indexOf(i)>=0&&t.getRange(n(E.line,E.ch-2),E)==i+i){if(E.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(E.line,E.ch-2))))return e.Pass;b="addFour"}else if(m){var T=0==E.ch?" ":t.getRange(n(E.line,E.ch-1),E);if(e.isWordChar(D)||T==i||e.isWordChar(T))return e.Pass;b="both"}else{if(!y||!(0===D.length||/\s/.test(D)||d.indexOf(D)>-1))return e.Pass;b="both"}else b=m&&h(t,E)?"both":f.indexOf(i)>=0&&t.getRange(E,n(E.line,E.ch+3))==i+i+i?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var w=l%2?a.charAt(l-1):i,C=l%2?i:a.charAt(l+1);t.operation(function(){if("skip"==u)c(t,1);else if("skipThree"==u)c(t,3);else if("surround"==u){for(var e=t.getSelections(),n=0;nfEe(e,"name",{value:t,configurable:!0});function mEe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}hEe(mEe,"_mergeNamespaces");!function(e){function t(t){return function(n,r){var i=r.line,o=n.getLine(i);function a(t){for(var a,s=r.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&ut.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}hEe(r,"hasImport");var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}hEe(r,"hasInclude");var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})}(Rxe());var gEe={};const yEe=mEe({__proto__:null,default:Lxe(gEe)},[gEe]),vEe=Object.freeze(Object.defineProperty({__proto__:null,b:yEe},Symbol.toStringTag,{value:"Module"}));var bEe=Object.defineProperty,xEe=(e,t)=>bEe(e,"name",{value:t,configurable:!0});function EEe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}xEe(EEe,"_mergeNamespaces");var DEe,TEe={exports:{}};function wEe(){return DEe||(DEe=1,function(e){function t(t,r,o,a){if(o&&o.call){var s=o;o=null}else s=i(t,o,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var l=i(t,o,"minFoldSize");function u(e){var n=s(t,r);if(!n||n.to.line-n.from.linet.firstLine();)r=e.Pos(r.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==a){var p=n(t,o,c);e.on(p,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(c.from,c.to,{replacedWith:p,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,c.from,c.to)}}function n(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);(r=document.createElement("span")).appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}xEe(t,"doFold"),xEe(n,"makeWidget"),e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n=u){if(d&&s&&d.test(s.className))return;r=o(a.indicatorOpen)}}!r&&!s||e.setGutterMarker(n,a.gutter,r)})}function s(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function l(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){a(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function u(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){l(e)},n.foldOnChangeTimeSpan||600)}}function p(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?l(e):e.operation(function(){n.fromt.to&&(a(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function d(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&rAEe(e,"name",{value:t,configurable:!0});function FEe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}NEe(FEe,"_mergeNamespaces");!function(e){var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function r(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),NEe(o,"position"),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}function i(e){e.parentNode&&e.parentNode.removeChild(e)}function o(e){e.parentNode&&(null==e.style.opacity&&i(e),e.style.opacity=0,setTimeout(function(){i(e)},600))}function a(t,n,i,a){var s=r(t,n,i);function l(){e.off(a,"mouseout",l),s&&(o(s),s=null)}NEe(l,"hide");var u=setInterval(function(){if(s)for(var e=a;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){l();break}}if(!s)return clearInterval(u)},400);e.on(a,"mouseout",l)}function s(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),(!t||!0===t)&&(t={}),this.options={},this.linterOptions=t.options||{},l)this.options[r]=l[r];for(var r in t)l.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){x(e,t)},this.waitingFor=0}NEe(r,"showTooltip"),NEe(i,"rm"),NEe(o,"hideTooltip"),NEe(a,"showTooltipFor"),NEe(s,"LintState");var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&c(e);for(var r=0;r-1)&&c.push(e.message)});for(var m=null,g=i.hasGutter&&document.createDocumentFragment(),y=0;y1,o.tooltips)),o.highlightLines&&e.addLineClass(s,"wrap",n+m)}}o.onUpdateLinting&&o.onUpdateLinting(r,a,e)}}function v(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){g(e)},t.options.delay))}function b(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),o=0;oLEe(e,"name",{value:t,configurable:!0}),jEe={exports:{}};function REe(){return IEe||(IEe=1,function(e){var t,n,r=e.Pos;function i(e){return e.flags??(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=i(e),r=n,o=0;oc);p++){var d=e.getLine(u++);i=null==i?d:i+"\n"+d}l*=2,t.lastIndex=n.ch;var f=t.exec(i);if(f){var h=i.slice(0,f.index).split("\n"),m=f[0].split("\n"),g=n.line+h.length-1,y=h[h.length-1].length;return{from:r(g,y),to:r(g+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:f}}}}function u(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function c(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.firstLine();i>=s;i--,a=-1){var l=e.getLine(i),c=u(l,t,a<0?0:l.length-a);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function p(e,t,n){if(!a(t))return c(e,t,n);t=o(t,"gm");for(var i,s=1,l=e.getLine(n.line).length-n.ch,p=n.line,d=e.firstLine();p>=d;){for(var f=0;f=d;f++){var h=e.getLine(p--);i=null==i?h:h+"\n"+i}s*=2;var m=u(i,t,l);if(m){var g=i.slice(0,m.index).split("\n"),y=m[0].split("\n"),v=p+g.length,b=g[g.length-1].length;return{from:r(v,b),to:r(v+y.length-1,1==y.length?b+y[0].length:y[y.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.lastLine()+1-l.length;u<=p;u++,c=0){var f=e.getLine(u).slice(c),h=s(f);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(f,h,m,s)+c,{from:r(u,d(f,h,m,s)+c),to:r(u,d(f,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var y=1;y=p;u--,c=-1){var f=e.getLine(u);c>-1&&(f=f.slice(0,c));var h=s(f);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(f,h,m,s)),to:r(u,d(f,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var y=1;for(o=u-l.length+1;y(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new m(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new m(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}(Rxe())),jEe.exports}MEe(REe,"requireSearchcursor");var BEe=Object.defineProperty;function VEe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}((e,t)=>{BEe(e,"name",{value:t,configurable:!0})})(VEe,"_mergeNamespaces");var UEe=REe();const zEe=VEe({__proto__:null,default:Lxe(UEe)},[UEe]),$Ee=Object.freeze(Object.defineProperty({__proto__:null,s:zEe},Symbol.toStringTag,{value:"Module"}));var HEe=Object.defineProperty,qEe=(e,t)=>HEe(e,"name",{value:t,configurable:!0});function GEe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}qEe(GEe,"_mergeNamespaces");!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}qEe(t,"dialogDiv"),qEe(n,"closeNotification"),e.defineExtension("openDialog",function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)p.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}qEe(u,"close");var c,p=a.getElementsByTagName("input")[0];return p?(p.focus(),o.value&&(p.value=o.value,!1!==o.selectValueOnOpen&&p.select()),o.onInput&&e.on(p,"input",function(e){o.onInput(e,p.value,u)}),o.onKeyUp&&e.on(p,"keyup",function(e){o.onKeyUp(e,p.value,u)}),e.on(p,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,p.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(p.blur(),e.e_stop(t),u()),13==t.keyCode&&i(p.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&u()})):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){u(),l.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function p(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}qEe(p,"close"),s[0].focus();for(var d=0;dYEe(e,"name",{value:t,configurable:!0});function JEe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}XEe(JEe,"_mergeNamespaces");!function(e){function t(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function n(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}function r(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),XEe(t,"dialog"),XEe(n,"getJumpDialog"),XEe(r,"interpretLine"),e.commands.jumpToLine=function(e){var i=e.getCursor();t(e,n(e),e.phrase("Jump to line:"),i.line+1+":"+i.ch,function(t){var n;if(t)if(n=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(r(e,n[1]),Number(n[2]));else if(n=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(e.lineCount()*Number(n[1])/100);/^[-+]/.test(n[1])&&(o=i.line+o+1),e.setCursor(o-1,i.ch)}else(n=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(r(e,n[1]),i.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"}(Rxe());var ZEe={};const eDe=JEe({__proto__:null,default:Lxe(ZEe)},[ZEe]),tDe=Object.freeze(Object.defineProperty({__proto__:null,j:eDe},Symbol.toStringTag,{value:"Module"}));var nDe=Object.defineProperty,rDe=(e,t)=>nDe(e,"name",{value:t,configurable:!0});function iDe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}rDe(iDe,"_mergeNamespaces");!function(e){var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,p=0;u!=c;u+=i,p++){var d=o.charAt(i<0?u-1:u),f="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==f&&d.toUpperCase()==d&&(f="W"),"start"==s)"o"!=f?(s="in",a=f):l=u+i;else if("in"==s&&a!=f){if("w"==a&&"W"==f&&i<0&&u--,"W"==a&&"w"==f&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}function i(e,t){e.extendSelectionsBy(function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()})}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=a(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function h(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function m(e,t){var r=h(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}rDe(c,"selectBetweenBrackets"),t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},rDe(p,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1,p(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,p(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head})},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0==s.to().ch&&!s.empty()&&l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){f(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){f(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},rDe(h,"getTarget"),rDe(m,"findAndGoTo"),t.findUnder=function(e){m(e,!0)},t.findUnderPrevious=function(e){m(e,!1)},t.findAllUnder=function(e){var t=h(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var g=e.keyMap;g.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(g.macSublime),g.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(g.pcSublime);var y=g.default==g.macDefault;g.sublime=y?g.macSublime:g.pcSublime}(Rxe(),REe(),tEe());var oDe={};const aDe=iDe({__proto__:null,default:Lxe(oDe)},[oDe]),sDe=Object.freeze(Object.defineProperty({__proto__:null,s:aDe},Symbol.toStringTag,{value:"Module"}));var lDe=Object.defineProperty,uDe=(e,t)=>lDe(e,"name",{value:t,configurable:!0});function cDe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}uDe(cDe,"_mergeNamespaces");var pDe;(pDe=Rxe()).defineMode("javascript",function(e,t){var n,r,i=e.indentUnit,o=t.statementIndent,a=t.jsonld,s=t.json||a,l=!1!==t.trackScope,u=t.typescript,c=t.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}uDe(e,"kw");var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function m(e,t,i){return n=e,r=i,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):rt(e,t,1)?(h(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=b,b(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==n&&e.eatWhile(c))return m("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(d.test(n))return(">"!=n||!t.lexical||">"!=t.lexical.type)&&(e.eat("=")?("!"==n||"="==n)&&e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?m("."):m("operator","operator",e.current());if(c.test(n)){e.eatWhile(c);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var i=p[r];return m(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",r)}return m("variable","variable",r)}}function y(e){return function(t,n){var r,i=!1;if(a&&"@"==t.peek()&&t.match(f))return n.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=g),m("string","string")}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function b(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}uDe(h,"readRegexp"),uDe(m,"ret"),uDe(g,"tokenBase"),uDe(y,"tokenString"),uDe(v,"tokenComment"),uDe(b,"tokenQuasi");var x="([{}])";function E(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=x.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(c.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}uDe(E,"findFatArrow");var D={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){if(!l)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function C(e,t,n,r,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?H:z)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==n&&w(e,r)?"variable-2":t}}uDe(T,"JSLexical"),uDe(w,"inScope"),uDe(C,"parseJS");var S={state:null,marked:null,cc:null};function k(){for(var e=arguments.length-1;e>=0;e--)S.cc.push(arguments[e])}function A(){return k.apply(null,arguments),!0}function N(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function F(e){var n=S.state;if(S.marked="def",l){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=P(e,n.context);if(null!=r)return void(n.context=r)}else if(!N(e,n.localVars))return void(n.localVars=new I(e,n.localVars));t.globalVars&&!N(e,n.globalVars)&&(n.globalVars=new I(e,n.globalVars))}}function P(e,t){if(t){if(t.block){var n=P(e,t.prev);return n?n==t.prev?t:new O(n,t.vars,!0):null}return N(e,t.vars)?t:new O(t.prev,new I(e,t.vars),!1)}return null}function _(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,n){this.prev=e,this.vars=t,this.block=n}function I(e,t){this.name=e,this.next=t}uDe(k,"pass"),uDe(A,"cont"),uDe(N,"inList"),uDe(F,"register"),uDe(P,"registerVarScoped"),uDe(_,"isModifier"),uDe(O,"Context"),uDe(I,"Var");var L=new I("this",new I("arguments",null));function M(){S.state.context=new O(S.state.context,S.state.localVars,!1),S.state.localVars=L}function j(){S.state.context=new O(S.state.context,S.state.localVars,!0),S.state.localVars=null}function R(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function B(e,t){var n=uDe(function(){var n=S.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,S.stream.column(),e,null,n.lexical,t)},"result");return n.lex=!0,n}function V(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function U(e){function t(n){return n==e?A():";"==e||"}"==n||")"==n||"]"==n?k():A(t)}return uDe(t,"exp"),t}function z(e,t){return"var"==e?A(B("vardef",t),ke,U(";"),V):"keyword a"==e?A(B("form"),G,z,V):"keyword b"==e?A(B("form"),z,V):"keyword d"==e?S.stream.match(/^\s*$/,!1)?A():A(B("stat"),W,U(";"),V):"debugger"==e?A(U(";")):"{"==e?A(B("}"),j,pe,V,R):";"==e?A():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==V&&S.state.cc.pop()(),A(B("form"),G,z,V,Oe)):"function"==e?A(je):"for"==e?A(B("form"),j,Ie,z,R,V):"class"==e||u&&"interface"==t?(S.marked="keyword",A(B("form","class"==e?e:t),ze,V)):"variable"==e?u&&"declare"==t?(S.marked="keyword",A(z)):u&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?A(et):"type"==t?A(Be,U("operator"),ge,U(";")):A(B("form"),Ae,U("{"),B("}"),pe,V,V)):u&&"namespace"==t?(S.marked="keyword",A(B("form"),H,z,V)):u&&"abstract"==t?(S.marked="keyword",A(z)):A(B("stat"),ie):"switch"==e?A(B("form"),G,U("{"),B("}","switch"),j,pe,V,V,R):"case"==e?A(H,U(":")):"default"==e?A(U(":")):"catch"==e?A(B("form"),M,$,z,V,R):"export"==e?A(B("stat"),Ge,V):"import"==e?A(B("stat"),We,V):"async"==e?A(z):"@"==t?A(H,z):k(B("stat"),H,U(";"),V)}function $(e){if("("==e)return A(Ve,U(")"))}function H(e,t){return K(e,t,!1)}function q(e,t){return K(e,t,!0)}function G(e){return"("!=e?k():A(B(")"),W,U(")"),V)}function K(e,t,n){if(S.state.fatArrowAt==S.stream.start){var r=n?ee:Z;if("("==e)return A(M,B(")"),ue(Ve,")"),V,U("=>"),r,R);if("variable"==e)return k(M,Ae,U("=>"),r,R)}var i=n?Y:Q;return D.hasOwnProperty(e)?A(i):"function"==e?A(je,i):"class"==e||u&&"interface"==t?(S.marked="keyword",A(B("form"),Ue,V)):"keyword c"==e||"async"==e?A(n?q:H):"("==e?A(B(")"),W,U(")"),V,i):"operator"==e||"spread"==e?A(n?q:H):"["==e?A(B("]"),Ze,V,i):"{"==e?ce(ae,"}",null,i):"quasi"==e?k(X,i):"new"==e?A(te(n)):A()}function W(e){return e.match(/[;\}\)\],]/)?k():k(H)}function Q(e,t){return","==e?A(W):Y(e,t,!1)}function Y(e,t,n){var r=0==n?Q:Y,i=0==n?H:q;if("=>"==e)return A(M,n?ee:Z,R);if("operator"==e)return/\+\+|--/.test(t)||u&&"!"==t?A(r):u&&"<"==t&&S.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(B(">"),ue(ge,">"),V,r):"?"==t?A(H,U(":"),i):A(i);if("quasi"==e)return k(X,r);if(";"!=e){if("("==e)return ce(q,")","call",r);if("."==e)return A(oe,r);if("["==e)return A(B("]"),W,U("]"),V,r);if(u&&"as"==t)return S.marked="keyword",A(ge,r);if("regexp"==e)return S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),A(i)}}function X(e,t){return"quasi"!=e?k():"${"!=t.slice(t.length-2)?A(X):A(W,J)}function J(e){if("}"==e)return S.marked="string-2",S.state.tokenize=b,A(X)}function Z(e){return E(S.stream,S.state),k("{"==e?z:H)}function ee(e){return E(S.stream,S.state),k("{"==e?z:q)}function te(e){return function(t){return"."==t?A(e?re:ne):"variable"==t&&u?A(we,e?Y:Q):k(e?q:H)}}function ne(e,t){if("target"==t)return S.marked="keyword",A(Q)}function re(e,t){if("target"==t)return S.marked="keyword",A(Y)}function ie(e){return":"==e?A(V,z):k(Q,U(";"),V)}function oe(e){if("variable"==e)return S.marked="property",A()}function ae(e,t){return"async"==e?(S.marked="property",A(ae)):"variable"==e||"keyword"==S.style?(S.marked="property","get"==t||"set"==t?A(se):(u&&S.state.fatArrowAt==S.stream.start&&(n=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+n[0].length),A(le))):"number"==e||"string"==e?(S.marked=a?"property":S.style+" property",A(le)):"jsonld-keyword"==e?A(le):u&&_(t)?(S.marked="keyword",A(ae)):"["==e?A(H,de,U("]"),le):"spread"==e?A(q,le):"*"==t?(S.marked="keyword",A(ae)):":"==e?k(le):void 0;var n}function se(e){return"variable"!=e?k(le):(S.marked="property",A(je))}function le(e){return":"==e?A(q):"("==e?k(je):void 0}function ue(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=S.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),A(function(n,r){return n==t||r==t?k():k(e)},r)}return i==t||o==t?A():n&&n.indexOf(";")>-1?k(e):A(U(t))}return uDe(r,"proceed"),function(n,i){return n==t||i==t?A():k(e,r)}}function ce(e,t,n){for(var r=3;r"),ge):"quasi"==e?k(xe,Te):void 0}function ye(e){if("=>"==e)return A(ge)}function ve(e){return e.match(/[\}\)\]]/)?A():","==e||";"==e?A(ve):k(be,ve)}function be(e,t){return"variable"==e||"keyword"==S.style?(S.marked="property",A(be)):"?"==t||"number"==e||"string"==e?A(be):":"==e?A(ge):"["==e?A(U("variable"),fe,U("]"),be):"("==e?k(Re,be):e.match(/[;\}\)\],]/)?void 0:A()}function xe(e,t){return"quasi"!=e?k():"${"!=t.slice(t.length-2)?A(xe):A(ge,Ee)}function Ee(e){if("}"==e)return S.marked="string-2",S.state.tokenize=b,A(xe)}function De(e,t){return"variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?A(De):":"==e?A(ge):"spread"==e?A(De):k(ge)}function Te(e,t){return"<"==t?A(B(">"),ue(ge,">"),V,Te):"|"==t||"."==e||"&"==t?A(ge):"["==e?A(ge,U("]"),Te):"extends"==t||"implements"==t?(S.marked="keyword",A(ge)):"?"==t?A(ge,U(":"),ge):void 0}function we(e,t){if("<"==t)return A(B(">"),ue(ge,">"),V,Te)}function Ce(){return k(ge,Se)}function Se(e,t){if("="==t)return A(ge)}function ke(e,t){return"enum"==t?(S.marked="keyword",A(et)):k(Ae,de,Pe,_e)}function Ae(e,t){return u&&_(t)?(S.marked="keyword",A(Ae)):"variable"==e?(F(t),A()):"spread"==e?A(Ae):"["==e?ce(Fe,"]"):"{"==e?ce(Ne,"}"):void 0}function Ne(e,t){return"variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?A(Ae):"}"==e?k():"["==e?A(H,U("]"),U(":"),Ne):A(U(":"),Ae,Pe)):(F(t),A(Pe))}function Fe(){return k(Ae,Pe)}function Pe(e,t){if("="==t)return A(q)}function _e(e){if(","==e)return A(ke)}function Oe(e,t){if("keyword b"==e&&"else"==t)return A(B("form","else"),z,V)}function Ie(e,t){return"await"==t?A(Ie):"("==e?A(B(")"),Le,V):void 0}function Le(e){return"var"==e?A(ke,Me):"variable"==e?A(Me):k(Me)}function Me(e,t){return")"==e?A():";"==e?A(Me):"in"==t||"of"==t?(S.marked="keyword",A(H,Me)):k(H,Me)}function je(e,t){return"*"==t?(S.marked="keyword",A(je)):"variable"==e?(F(t),A(je)):"("==e?A(M,B(")"),ue(Ve,")"),V,he,z,R):u&&"<"==t?A(B(">"),ue(Ce,">"),V,je):void 0}function Re(e,t){return"*"==t?(S.marked="keyword",A(Re)):"variable"==e?(F(t),A(Re)):"("==e?A(M,B(")"),ue(Ve,")"),V,he,R):u&&"<"==t?A(B(">"),ue(Ce,">"),V,Re):void 0}function Be(e,t){return"keyword"==e||"variable"==e?(S.marked="type",A(Be)):"<"==t?A(B(">"),ue(Ce,">"),V):void 0}function Ve(e,t){return"@"==t&&A(H,Ve),"spread"==e?A(Ve):u&&_(t)?(S.marked="keyword",A(Ve)):u&&"this"==e?A(de,Pe):k(Ae,de,Pe)}function Ue(e,t){return"variable"==e?ze(e,t):$e(e,t)}function ze(e,t){if("variable"==e)return F(t),A($e)}function $e(e,t){return"<"==t?A(B(">"),ue(Ce,">"),V,$e):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(S.marked="keyword"),A(u?ge:H,$e)):"{"==e?A(B("}"),He,V):void 0}function He(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&_(t))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",A(He)):"variable"==e||"keyword"==S.style?(S.marked="property",A(qe,He)):"number"==e||"string"==e?A(qe,He):"["==e?A(H,de,U("]"),qe,He):"*"==t?(S.marked="keyword",A(He)):u&&"("==e?k(Re,He):";"==e||","==e?A(He):"}"==e?A():"@"==t?A(H,He):void 0}function qe(e,t){if("!"==t||"?"==t)return A(qe);if(":"==e)return A(ge,Pe);if("="==t)return A(q);var n=S.state.lexical.prev;return k(n&&"interface"==n.info?Re:je)}function Ge(e,t){return"*"==t?(S.marked="keyword",A(Je,U(";"))):"default"==t?(S.marked="keyword",A(H,U(";"))):"{"==e?A(ue(Ke,"}"),Je,U(";")):k(z)}function Ke(e,t){return"as"==t?(S.marked="keyword",A(U("variable"))):"variable"==e?k(q,Ke):void 0}function We(e){return"string"==e?A():"("==e?k(H):"."==e?k(Q):k(Qe,Ye,Je)}function Qe(e,t){return"{"==e?ce(Qe,"}"):("variable"==e&&F(t),"*"==t&&(S.marked="keyword"),A(Xe))}function Ye(e){if(","==e)return A(Qe,Ye)}function Xe(e,t){if("as"==t)return S.marked="keyword",A(Qe)}function Je(e,t){if("from"==t)return S.marked="keyword",A(H)}function Ze(e){return"]"==e?A():k(ue(q,"]"))}function et(){return k(B("form"),Ae,U("{"),B("}"),ue(tt,"}"),V,V)}function tt(){return k(Ae,Pe)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function rt(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return uDe(M,"pushcontext"),uDe(j,"pushblockcontext"),M.lex=j.lex=!0,uDe(R,"popcontext"),R.lex=!0,uDe(B,"pushlex"),uDe(V,"poplex"),V.lex=!0,uDe(U,"expect"),uDe(z,"statement"),uDe($,"maybeCatchBinding"),uDe(H,"expression"),uDe(q,"expressionNoComma"),uDe(G,"parenExpr"),uDe(K,"expressionInner"),uDe(W,"maybeexpression"),uDe(Q,"maybeoperatorComma"),uDe(Y,"maybeoperatorNoComma"),uDe(X,"quasi"),uDe(J,"continueQuasi"),uDe(Z,"arrowBody"),uDe(ee,"arrowBodyNoComma"),uDe(te,"maybeTarget"),uDe(ne,"target"),uDe(re,"targetNoComma"),uDe(ie,"maybelabel"),uDe(oe,"property"),uDe(ae,"objprop"),uDe(se,"getterSetter"),uDe(le,"afterprop"),uDe(ue,"commasep"),uDe(ce,"contCommasep"),uDe(pe,"block"),uDe(de,"maybetype"),uDe(fe,"maybetypeOrIn"),uDe(he,"mayberettype"),uDe(me,"isKW"),uDe(ge,"typeexpr"),uDe(ye,"maybeReturnType"),uDe(ve,"typeprops"),uDe(be,"typeprop"),uDe(xe,"quasiType"),uDe(Ee,"continueQuasiType"),uDe(De,"typearg"),uDe(Te,"afterType"),uDe(we,"maybeTypeArgs"),uDe(Ce,"typeparam"),uDe(Se,"maybeTypeDefault"),uDe(ke,"vardef"),uDe(Ae,"pattern"),uDe(Ne,"proppattern"),uDe(Fe,"eltpattern"),uDe(Pe,"maybeAssign"),uDe(_e,"vardefCont"),uDe(Oe,"maybeelse"),uDe(Ie,"forspec"),uDe(Le,"forspec1"),uDe(Me,"forspec2"),uDe(je,"functiondef"),uDe(Re,"functiondecl"),uDe(Be,"typename"),uDe(Ve,"funarg"),uDe(Ue,"classExpression"),uDe(ze,"className"),uDe($e,"classNameAfter"),uDe(He,"classBody"),uDe(qe,"classfield"),uDe(Ge,"afterExport"),uDe(Ke,"exportField"),uDe(We,"afterImport"),uDe(Qe,"importSpec"),uDe(Ye,"maybeMoreImports"),uDe(Xe,"maybeAs"),uDe(Je,"maybeFrom"),uDe(Ze,"arrayLiteral"),uDe(et,"enumdef"),uDe(tt,"enummember"),uDe(nt,"isContinuedStatement"),uDe(rt,"expressionAllowed"),{startState:function(e){var n={tokenize:g,lastType:"sof",cc:[],lexical:new T((e||0)-i,0,"block",!1),localVars:t.localVars,context:t.localVars&&new O(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),E(e,t)),t.tokenize!=v&&e.eatSpace())return null;var i=t.tokenize(e,t);return"comment"==n?i:(t.lastType="operator"!=n||"++"!=r&&"--"!=r?n:"incdec",C(t,i,n,r,e))},indent:function(e,n){if(e.tokenize==v||e.tokenize==b)return pDe.Pass;if(e.tokenize!=g)return 0;var r,a=n&&n.charAt(0),s=e.lexical;if(!/^\s*else\b/.test(n))for(var l=e.cc.length-1;l>=0;--l){var u=e.cc[l];if(u==V)s=s.prev;else if(u!=Oe&&u!=R)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(r=e.cc[e.cc.length-1])&&(r==Q||r==Y)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;o&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var c=s.type,p=a==c;return"vardef"==c?s.indented+("operator"==e.lastType||","==e.lastType?s.info.length+1:0):"form"==c&&"{"==a?s.indented:"form"==c?s.indented+i:"stat"==c?s.indented+(nt(e,n)?o||i:0):"switch"!=s.info||p||0==t.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:i):s.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:a,jsonMode:s,expressionAllowed:rt,skipExpression:function(e){C(e,"atom","atom","true",new pDe.StringStream("",2,null))}}}),pDe.registerHelper("wordChars","javascript",/[\w$]/),pDe.defineMIME("text/javascript","javascript"),pDe.defineMIME("text/ecmascript","javascript"),pDe.defineMIME("application/javascript","javascript"),pDe.defineMIME("application/x-javascript","javascript"),pDe.defineMIME("application/ecmascript","javascript"),pDe.defineMIME("application/json",{name:"javascript",json:!0}),pDe.defineMIME("application/x-json",{name:"javascript",json:!0}),pDe.defineMIME("application/manifest+json",{name:"javascript",json:!0}),pDe.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),pDe.defineMIME("text/typescript",{name:"javascript",typescript:!0}),pDe.defineMIME("application/typescript",{name:"javascript",typescript:!0});var dDe={};const fDe=cDe({__proto__:null,default:Lxe(dDe)},[dDe]),hDe=Object.freeze(Object.defineProperty({__proto__:null,j:fDe},Symbol.toStringTag,{value:"Module"}));var mDe=Object.defineProperty,gDe=(e,t)=>mDe(e,"name",{value:t,configurable:!0});function yDe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}gDe(yDe,"_mergeNamespaces");!function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t,n){return/\bstring\b/.test(e.getTokenTypeAt(r(t.line,0)))&&!/^[\'\"\`]/.test(n)}function s(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}gDe(o,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),u=o[s].to();l.line>=i||(u.line>=i&&(u=r(i,0)),i=l.line,null==a?n.uncomment(l,u,e)?a="un":(n.lineComment(l,u,e),a="line"):"un"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}}),gDe(a,"probablyInsideString"),gDe(s,"getMode"),e.defineExtension("lineComment",function(e,i,l){l||(l=t);var u=this,c=s(u,e),p=u.getLine(e.line);if(null!=p&&!a(u,e,p)){var d=l.lineComment||c.lineComment;if(!d)return void((l.blockCommentStart||c.blockCommentStart)&&(l.fullLines=!0,u.blockComment(e,i,l)));var f=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,u.lastLine()+1),h=null==l.padding?" ":l.padding,m=l.commentBlankLines||e.line==i.line;u.operation(function(){if(l.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;id||l.operation(function(){if(0!=a.fullLines){var t=n.test(l.getLine(d));l.replaceRange(f+p,r(d)),l.replaceRange(c+f,r(e.line,0));var s=a.blockCommentLead||u.blockCommentLead;if(null!=s)for(var h=e.line+1;h<=d;++h)(h!=d||t)&&l.replaceRange(s+f,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(p,o),m&&l.setSelection(g?o:l.getCursor("from"),o),l.replaceRange(c,e)}})}}else(a.lineComment||u.lineComment)&&0!=a.fullLines&&l.lineComment(e,o,a)}),e.defineExtension("uncomment",function(e,i,o){o||(o=t);var a,l=this,u=s(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),p=Math.min(e.line,c),d=o.lineComment||u.lineComment,f=[],h=null==o.padding?" ":o.padding;e:if(d){for(var m=p;m<=c;++m){var g=l.getLine(m),y=g.indexOf(d);if(y>-1&&!/comment/.test(l.getTokenTypeAt(r(m,y+1)))&&(y=-1),-1==y&&n.test(g)||y>-1&&n.test(g.slice(0,y)))break e;f.push(g)}if(l.operation(function(){for(var e=p;e<=c;++e){var t=f[e-p],n=t.indexOf(d),i=n+d.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),a=!0,l.replaceRange("",r(e,n),r(e,i)))}}),a)return!0}var v=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!v||!b)return!1;var x=o.blockCommentLead||u.blockCommentLead,E=l.getLine(p),D=E.indexOf(v);if(-1==D)return!1;var T=c==p?E:l.getLine(c),w=T.indexOf(b,c==p?D+v.length:0),C=r(p,D+1),S=r(c,w+1);if(-1==w||!/comment/.test(l.getTokenTypeAt(C))||!/comment/.test(l.getTokenTypeAt(S))||l.getRange(C,S,"\n").indexOf(b)>-1)return!1;var k=E.lastIndexOf(v,e.ch),A=-1==k?-1:E.slice(0,e.ch).indexOf(b,k+v.length);if(-1!=k&&-1!=A&&A+b.length!=e.ch)return!1;A=T.indexOf(b,i.ch);var N=T.slice(i.ch).lastIndexOf(v,A-i.ch);return k=-1==A||-1==N?-1:i.ch+N,(-1==A||-1==k||k==i.ch)&&(l.operation(function(){l.replaceRange("",r(c,w-(h&&T.slice(w-h.length,w)==h?h.length:0)),r(c,w+b.length));var e=D+v.length;if(h&&E.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(p,D),r(p,e)),x)for(var t=p+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(x);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+x.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}}),!0)})}(Rxe());var vDe={};const bDe=yDe({__proto__:null,default:Lxe(vDe)},[vDe]),xDe=Object.freeze(Object.defineProperty({__proto__:null,c:bDe},Symbol.toStringTag,{value:"Module"}));var EDe=Object.defineProperty,DDe=(e,t)=>EDe(e,"name",{value:t,configurable:!0});function TDe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}DDe(TDe,"_mergeNamespaces");!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function o(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function a(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){h(e)},onKeyDown:i,bottom:e.options.search.bottom})}function s(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function l(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function u(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function c(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch{}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function p(e,n,r){n.queryText=r,n.query=c(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function d(t,n,i,o){var l=r(t);if(l.query)return f(t,n);var u=t.getSelection()||l.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var c=null,d=DDe(function(n,r){e.e_stop(r),n&&(n!=l.queryText&&(p(t,l,n),l.posFrom=l.posTo=t.getCursor()),c&&(c.style.opacity=1),f(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((c=r).style.opacity=.4)}))},"searchNext");a(t,g(t),u,d,function(n,i){var o=e.keyName(n),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(n),p(t,r(t),i),t.execCommand(s)):("find"==s||"findPersistent"==s)&&(e.e_stop(n),d(i,n))}),o&&u&&(p(t,l,u),f(t,n))}else s(t,g(t),"Search for:",u,function(e){e&&!l.query&&t.operation(function(){p(t,l,e),l.posFrom=l.posTo=t.getCursor(),f(t,n)})})}function f(t,n,i){t.operation(function(){var a=r(t),s=o(t,a.query,n?a.posFrom:a.posTo);!s.find(n)&&!(s=o(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n)||(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),i&&i(s.from(),s.to()))})}function h(e){e.operation(function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function m(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i{const{schema:n,externalFragments:r,autocompleteOptions:i}=t;if(!n)return;const o=e.getCursor(),a=e.getTokenAt(o),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new N5(o.line,s),u={list:b5(n,e.getValue(),l,a,r,i).map(e=>{var t;return{text:null!==(t=null==e?void 0:e.rawInsert)&&void 0!==t?t:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}),from:{line:o.line,ch:s},to:{line:o.line,ch:a.end}};return null!=u&&u.list&&u.list.length>0&&(u.from=zxe.Pos(u.from.line,u.from.ch),u.to=zxe.Pos(u.to.line,u.to.ch),zxe.signal(e,"hasCompletion",e,u,a)),u});const kDe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ADe=["error","warning","information","hint"],NDe={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};zxe.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return L5(e,n,r,0,i).map(e=>({message:e.message,severity:e.severity?ADe[e.severity-1]:ADe[0],type:e.source?NDe[e.source]:void 0,from:zxe.Pos(e.range.start.line,e.range.start.character),to:zxe.Pos(e.range.end.line,e.range.end.character)}))});const FDe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var PDe=Object.defineProperty;function _De(e,t){const n=[];let r=e;for(;null!=r&&r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}((e,t)=>{PDe(e,"name",{value:t,configurable:!0})})(_De,"forEachState");var ODe=Object.defineProperty,IDe=(e,t)=>ODe(e,"name",{value:t,configurable:!0});function LDe(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return _De(t,t=>{var r,i;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?MDe(e,n.parentType,t.name):null,n.type=null===(r=n.fieldDef)||void 0===r?void 0:r.type;break;case"SelectionSet":n.parentType=n.type?Ss.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const o=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&MDe(e,n.parentType,t.prevState.name):null:null;n.argDefs=o?o.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;ee.value===t.name):null;break;case"ListValue":const s=n.inputType?Ss.getNullableType(n.inputType):null;n.inputType=s instanceof Ss.GraphQLList?s.ofType:null;break;case"ObjectValue":const l=n.inputType?Ss.getNamedType(n.inputType):null;n.objectFieldDefs=l instanceof Ss.GraphQLInputObjectType?l.getFields():null;break;case"ObjectField":const u=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==u?void 0:u.type,n.fieldDef=u;break;case"NamedType":n.type=t.name?e.getType(t.name):null}}),n}function MDe(e,t,n){return n===Ss.SchemaMetaFieldDef.name&&e.getQueryType()===t?Ss.SchemaMetaFieldDef:n===Ss.TypeMetaFieldDef.name&&e.getQueryType()===t?Ss.TypeMetaFieldDef:n===Ss.TypeNameMetaFieldDef.name&&Ss.isCompositeType(t)?Ss.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}function jDe(e,t){for(let n=0;nHDe(e,"name",{value:t,configurable:!0});function GDe(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function KDe(e){const{options:t}=e.state.info;return(null==t?void 0:t.hoverTime)||500}function WDe(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement)||"SPAN"!==r.nodeName||void 0!==n.hoverTimeout)return;const i=r.getBoundingClientRect(),o=qDe(function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(s,l)},"onMouseMove"),a=qDe(function(){zxe.off(document,"mousemove",o),zxe.off(e.getWrapperElement(),"mouseout",a),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},"onMouseOut"),s=qDe(function(){zxe.off(document,"mousemove",o),zxe.off(e.getWrapperElement(),"mouseout",a),n.hoverTimeout=void 0,QDe(e,i)},"onHover"),l=KDe(e);n.hoverTimeout=setTimeout(s,l),zxe.on(document,"mousemove",o),zxe.on(e.getWrapperElement(),"mouseout",a)}function QDe(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),r=e.state.info,{options:i}=r,o=i.render||e.getHelper(n,"info");if(o){const r=e.getTokenAt(n,!0);if(r){const a=o(r,i,e,n);a&&YDe(e,t,a)}}}function YDe(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const i=r.getBoundingClientRect(),o=window.getComputedStyle(r),a=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),s=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom);let l=t.bottom;s>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(l=t.top-s),l<0&&(l=t.bottom);let u,c=Math.max(0,window.innerWidth-a-15);c>t.left&&(c=t.left),r.style.opacity="1",r.style.top=l+"px",r.style.left=c+"px";const p=qDe(function(){clearTimeout(u)},"onMouseOverPopup"),d=qDe(function(){clearTimeout(u),u=setTimeout(f,200)},"onMouseOut"),f=qDe(function(){zxe.off(r,"mouseover",p),zxe.off(r,"mouseout",d),zxe.off(e.getWrapperElement(),"mouseout",d),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()},"hidePopup");zxe.on(r,"mouseover",p),zxe.on(r,"mouseout",d),zxe.on(e.getWrapperElement(),"mouseout",d)}zxe.defineOption("info",!1,(e,t,n)=>{if(n&&n!==zxe.Init){const t=e.state.info.onMouseOver;zxe.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=GDe(t);n.onMouseOver=WDe.bind(null,e),zxe.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}}),qDe(GDe,"createState"),qDe(KDe,"getHoverTime"),qDe(WDe,"onMouseOver"),qDe(QDe,"onMouseHover"),qDe(YDe,"showPopup");const XDe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var JDe=Object.defineProperty,ZDe=(e,t)=>JDe(e,"name",{value:t,configurable:!0});function eTe(e,t,n){tTe(e,t,n),oTe(e,t,n,t.type)}function tTe(e,t,n){var r;uTe(e,(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"","field-name",n,RDe(t))}function nTe(e,t,n){var r;uTe(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,BDe(t))}function rTe(e,t,n){var r;uTe(e,(null===(r=t.argDef)||void 0===r?void 0:r.name)||"","arg-name",n,VDe(t)),oTe(e,t,n,t.inputType)}function iTe(e,t,n){var r;const i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";aTe(e,t,n,t.inputType),uTe(e,"."),uTe(e,i,"enum-value",n,UDe(t))}function oTe(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof Ss.GraphQLNonNull?(aTe(i,t,n,r.ofType),uTe(i,"!")):r instanceof Ss.GraphQLList?(uTe(i,"["),aTe(i,t,n,r.ofType),uTe(i,"]")):uTe(i,(null==r?void 0:r.name)||"","type-name",n,zDe(t,r)),e.append(i)}function aTe(e,t,n,r){r instanceof Ss.GraphQLNonNull?(aTe(e,t,n,r.ofType),uTe(e,"!")):r instanceof Ss.GraphQLList?(uTe(e,"["),aTe(e,t,n,r.ofType),uTe(e,"]")):uTe(e,(null==r?void 0:r.name)||"","type-name",n,zDe(t,r))}function sTe(e,t,n){const{description:r}=n;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.append(document.createTextNode(r)),e.append(n)}lTe(e,t,n)}function lTe(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.append(n);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),n.append(i);const o=document.createElement("div");o.className="info-deprecation-reason",t.renderDescription?o.innerHTML=t.renderDescription(r):o.append(document.createTextNode(r)),n.append(o)}}function uTe(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",e=>{e.preventDefault(),o(i,e)})):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}zxe.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const{kind:n,step:r}=e.state,i=LDe(t.schema,e.state);if("Field"===n&&0===r&&i.fieldDef||"AliasedField"===n&&2===r&&i.fieldDef||"ObjectField"===n&&0===r&&i.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",eTe(e,i,t);const n=document.createElement("div");return n.append(e),sTe(n,t,i.fieldDef),n}if("Directive"===n&&1===r&&i.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",nTe(e,i,t);const n=document.createElement("div");return n.append(e),sTe(n,t,i.directiveDef),n}if("Argument"===n&&0===r&&i.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",rTe(e,i,t);const n=document.createElement("div");return n.append(e),sTe(n,t,i.argDef),n}if("EnumValue"===n&&i.enumValue&&i.enumValue.description){const e=document.createElement("div");e.className="CodeMirror-info-header",iTe(e,i,t);const n=document.createElement("div");return n.append(e),sTe(n,t,i.enumValue),n}if("NamedType"===n&&i.type&&i.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",aTe(e,i,t,i.type);const n=document.createElement("div");return n.append(e),sTe(n,t,i.type),n}}),ZDe(eTe,"renderField"),ZDe(tTe,"renderQualifiedField"),ZDe(nTe,"renderDirective"),ZDe(rTe,"renderArg"),ZDe(iTe,"renderEnumValue"),ZDe(oTe,"renderTypeAnnotation"),ZDe(aTe,"renderType"),ZDe(sTe,"renderDescription"),ZDe(lTe,"renderDeprecation"),ZDe(uTe,"text");const cTe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var pTe=Object.defineProperty,dTe=(e,t)=>pTe(e,"name",{value:t,configurable:!0});function fTe(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement)||"SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&vTe(e)}function hTe(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&bTe(e):e.state.jump.cursor=null}function mTe(e,t){if(e.state.jump.isHoldingModifier||!yTe(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&vTe(e);const n=dTe(o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&bTe(e),zxe.off(document,"keyup",n),zxe.off(document,"click",r),e.off("mousedown",i))},"onKeyUp"),r=dTe(t=>{const{destination:n,options:r}=e.state.jump;n&&r.onClick(n,t)},"onClick"),i=dTe((t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)},"onMouseDown");zxe.on(document,"keyup",n),zxe.on(document,"click",r),e.on("mousedown",i)}zxe.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==zxe.Init){const t=e.state.jump.onMouseOver;zxe.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;zxe.off(e.getWrapperElement(),"mouseout",n),zxe.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:fTe.bind(null,e),onMouseOut:hTe.bind(null,e),onKeyDown:mTe.bind(null,e)};zxe.on(e.getWrapperElement(),"mouseover",n.onMouseOver),zxe.on(e.getWrapperElement(),"mouseout",n.onMouseOut),zxe.on(document,"keydown",n.onKeyDown)}}),dTe(fTe,"onMouseOver"),dTe(hTe,"onMouseOut"),dTe(mTe,"onKeyDown");const gTe=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");function yTe(e){return e===(gTe?"Meta":"Control")}function vTe(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const t=o(i,n,e);if(t){const n=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=n,e.state.jump.destination=t}}}function bTe(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}dTe(yTe,"isJumpModifier"),dTe(vTe,"enableJumpMode"),dTe(bTe,"disableJumpMode"),zxe.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=LDe(t.schema,n);return"Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef?RDe(o):"Directive"===r&&1===i&&o.directiveDef?BDe(o):"Argument"===r&&0===i&&o.argDef?VDe(o):"EnumValue"===r&&o.enumValue?UDe(o):"NamedType"===r&&o.type?zDe(o):void 0});const xTe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var ETe=Object.defineProperty;function DTe(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((i&&0!==i.length?i.at(-1)-(null!==(n=this.electricInput)&&void 0!==n&&n.test(t)?1:0):o)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}((e,t)=>{ETe(e,"name",{value:t,configurable:!0})})(DTe,"indent");var TTe=Object.defineProperty,wTe=(e,t)=>TTe(e,"name",{value:t,configurable:!0});const CTe=wTe(e=>{const t=e5({eatWhitespace:e=>e.eatWhile(W4),lexRules:Q4,parseRules:Y4,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:DTe,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");zxe.defineMode("graphql",CTe);const STe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var kTe=Object.defineProperty,ATe=(e,t)=>kTe(e,"name",{value:t,configurable:!0});function NTe(e,t,n){const r=FTe(n,_Te(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function FTe(e,t){if(!t)return PTe(e,e=>!e.isDeprecated);return PTe(PTe(e.map(e=>({proximity:OTe(_Te(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry)}function PTe(e,t){const n=e.filter(t);return 0===n.length?e:n}function _Te(e){return e.toLowerCase().replaceAll(/\W/g,"")}function OTe(e,t){let n=ITe(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function ITe(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}function LTe(e,t,n){const r="Invalid"===t.state.kind?t.state.prevState:t.state,{kind:i,step:o}=r;if("Document"===i&&0===o)return NTe(e,t,[{text:"{"}]);const{variableToType:a}=n;if(!a)return;const s=MTe(a,t.state);if("Document"===i||"Variable"===i&&0===o){return NTe(e,t,Object.keys(a).map(e=>({text:`"${e}": `,type:a[e]})))}if(("ObjectValue"===i||"ObjectField"===i&&0===o)&&s.fields){const n=Object.keys(s.fields).map(e=>s.fields[e]);return NTe(e,t,n.map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})))}if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===o||"ObjectField"===i&&2===o||"Variable"===i&&2===o){const n=s.type?Ss.getNamedType(s.type):void 0;if(n instanceof Ss.GraphQLInputObjectType)return NTe(e,t,[{text:"{"}]);if(n instanceof Ss.GraphQLEnumType){return NTe(e,t,n.getValues().map(e=>({text:`"${e.name}"`,type:n,description:e.description})))}if(n===Ss.GraphQLBoolean)return NTe(e,t,[{text:"true",type:Ss.GraphQLBoolean,description:"Not false."},{text:"false",type:Ss.GraphQLBoolean,description:"Not true."}])}}function MTe(e,t){const n={type:null,fields:null};return _De(t,t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{const e=n.type?Ss.getNullableType(n.type):void 0;n.type=e instanceof Ss.GraphQLList?e.ofType:null;break}case"ObjectValue":{const e=n.type?Ss.getNamedType(n.type):void 0;n.fields=e instanceof Ss.GraphQLInputObjectType?e.getFields():null;break}case"ObjectField":{const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type;break}}}),n}ATe(NTe,"hintList"),ATe(FTe,"filterAndSortList"),ATe(PTe,"filterNonEmpty"),ATe(_Te,"normalizeText"),ATe(OTe,"getProximity"),ATe(ITe,"lexicalDistance"),zxe.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=LTe(n,r,t);return null!=i&&i.list&&i.list.length>0&&(i.from=zxe.Pos(i.from.line,i.from.ch),i.to=zxe.Pos(i.to.line,i.to.ch),zxe.signal(e,"hasCompletion",e,i,r)),i}),ATe(LTe,"getVariablesHint"),ATe(MTe,"getTypeInfo");const jTe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var RTe=Object.defineProperty,BTe=(e,t)=>RTe(e,"name",{value:t,configurable:!0});function VTe(e){UTe=e,zTe=e.length,$Te=HTe=qTe=-1,rwe(),iwe();const t=WTe();return ZTe("EOF"),t}let UTe,zTe,$Te,HTe,qTe,GTe,KTe;function WTe(){const e=$Te,t=[];if(ZTe("{"),!nwe("}")){do{t.push(QTe())}while(nwe(","));ZTe("}")}return{kind:"Object",start:e,end:qTe,members:t}}function QTe(){const e=$Te,t="String"===KTe?JTe():null;ZTe("String"),ZTe(":");const n=XTe();return{kind:"Member",start:e,end:qTe,key:t,value:n}}function YTe(){const e=$Te,t=[];if(ZTe("["),!nwe("]")){do{t.push(XTe())}while(nwe(","));ZTe("]")}return{kind:"Array",start:e,end:qTe,values:t}}function XTe(){switch(KTe){case"[":return YTe();case"{":return WTe();case"String":case"Number":case"Boolean":case"Null":const e=JTe();return iwe(),e}ZTe("Value")}function JTe(){return{kind:KTe,start:$Te,end:HTe,value:JSON.parse(UTe.slice($Te,HTe))}}function ZTe(e){if(KTe===e)return void iwe();let t;if("EOF"===KTe)t="[end of file]";else if(HTe-$Te>1)t="`"+UTe.slice($Te,HTe)+"`";else{const e=UTe.slice($Te).match(/^.+?\b/);t="`"+(e?e[0]:UTe[$Te])+"`"}throw twe(`Expected ${e} but found ${t}.`)}BTe(VTe,"jsonParse"),BTe(WTe,"parseObj"),BTe(QTe,"parseMember"),BTe(YTe,"parseArr"),BTe(XTe,"parseVal"),BTe(JTe,"curToken"),BTe(ZTe,"expect");class ewe extends Error{constructor(e,t){super(e),this.position=t}}function twe(e){return new ewe(e,{start:$Te,end:HTe})}function nwe(e){if(KTe===e)return iwe(),!0}function rwe(){return HTe31;)if(92===GTe)switch(GTe=rwe(),GTe){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:rwe();break;case 117:rwe(),awe(),awe(),awe(),awe();break;default:throw twe("Bad character escape sequence.")}else{if(HTe===zTe)throw twe("Unterminated string.");rwe()}if(34!==GTe)throw twe("Unterminated string.");rwe()}function awe(){if(GTe>=48&>e<=57||GTe>=65&>e<=70||GTe>=97&>e<=102)return rwe();throw twe("Expected hexadecimal digit.")}function swe(){45===GTe&&rwe(),48===GTe?rwe():lwe(),46===GTe&&(rwe(),lwe()),(69===GTe||101===GTe)&&(GTe=rwe(),(43===GTe||45===GTe)&&rwe(),lwe())}function lwe(){if(GTe<48||GTe>57)throw twe("Expected decimal digit.");do{rwe()}while(GTe>=48&>e<=57)}function uwe(e,t,n){var r;const i=[];for(const o of n.members)if(o){const n=null===(r=o.key)||void 0===r?void 0:r.value,a=t[n];if(a)for(const[t,r]of cwe(a,o.value))i.push(pwe(e,t,r));else i.push(pwe(e,o.key,`Variable "$${n}" does not appear in any GraphQL query.`))}return i}function cwe(e,t){if(!e||!t)return[];if(e instanceof Ss.GraphQLNonNull)return"Null"===t.kind?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:cwe(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof Ss.GraphQLList){const n=e.ofType;if("Array"===t.kind){return fwe(t.values||[],e=>cwe(n,e))}return cwe(n,t)}if(e instanceof Ss.GraphQLInputObjectType){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=fwe(t.members,t=>{var r;const i=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.value;n[i]=!0;const o=e.getFields()[i];if(!o)return[[t.key,`Type "${e}" does not have a field "${i}".`]];return cwe(o?o.type:void 0,t.value)});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof Ss.GraphQLNonNull&&!o.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof Ss.GraphQLEnumType||e instanceof Ss.GraphQLScalarType)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||dwe(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}function pwe(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function dwe(e){return null==e||e!=e}function fwe(e,t){return Array.prototype.concat.apply([],e.map(t))}BTe(ewe,"JSONSyntaxError"),BTe(twe,"syntaxError"),BTe(nwe,"skip"),BTe(rwe,"ch"),BTe(iwe,"lex"),BTe(owe,"readString"),BTe(awe,"readHex"),BTe(swe,"readNumber"),BTe(lwe,"readDigits"),zxe.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=VTe(e)}catch(o){if(o instanceof ewe)return[pwe(n,o.position,o.message)];throw o}const{variableToType:i}=t;return i?uwe(n,i,r):[]}),BTe(uwe,"validateVariables"),BTe(cwe,"validateValue"),BTe(pwe,"lintError"),BTe(dwe,"isNullish"),BTe(fwe,"mapCat");const hwe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var mwe=Object.defineProperty;zxe.defineMode("graphql-variables",e=>{const t=e5({eatWhitespace:e=>e.eatSpace(),lexRules:gwe,parseRules:ywe,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:DTe,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const gwe={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},ywe={Document:[K4("{"),q4("Variable",H4(K4(","))),K4("}")],Variable:[vwe("variable"),K4(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[G4("Number","number")],StringValue:[G4("String","string")],BooleanValue:[G4("Keyword","builtin")],NullValue:[G4("Keyword","keyword")],ListValue:[K4("["),q4("Value",H4(K4(","))),K4("]")],ObjectValue:[K4("{"),q4("ObjectField",H4(K4(","))),K4("}")],ObjectField:[vwe("attribute"),K4(":"),"Value"]};function vwe(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}((e,t)=>{mwe(e,"name",{value:t,configurable:!0})})(vwe,"namedKey");const bwe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));zxe.defineMode("graphql-results",e=>{const t=e5({eatWhitespace:e=>e.eatSpace(),lexRules:xwe,parseRules:Ewe,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:DTe,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const xwe={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Ewe={Document:[K4("{"),q4("Entry",K4(",")),K4("}")],Entry:[G4("String","def"),K4(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[G4("Number","number")],StringValue:[G4("String","string")],BooleanValue:[G4("Keyword","builtin")],NullValue:[G4("Keyword","keyword")],ListValue:[K4("["),q4("Value",K4(",")),K4("]")],ObjectValue:[K4("{"),q4("ObjectField",K4(",")),K4("}")],ObjectField:[G4("String","property"),K4(":"),"Value"]},Dwe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));