@surething/cockpit 1.0.238 → 1.0.239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next-prod/BUILD_ID +1 -1
- package/.next-prod/app-path-routes-manifest.json +7 -4
- package/.next-prod/build-manifest.json +3 -3
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/react-loadable-manifest.json +12 -12
- package/.next-prod/routes-manifest.json +20 -0
- package/.next-prod/server/app/_global-error/page.js +2 -2
- package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
- package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_global-error.html +1 -1
- package/.next-prod/server/app/_global-error.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found/page.js +2 -2
- package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
- package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_not-found.html +2 -2
- package/.next-prod/server/app/_not-found.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next-prod/server/app/api/agent/test/route.js +1 -1
- package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/bash/route.js +1 -1
- package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js +2 -2
- package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +2 -2
- package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/pty-input/route.js +1 -1
- package/.next-prod/server/app/api/chat/pty-input/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/route.js +1 -1
- package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/commands/route.js +1 -1
- package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/comments/route.js +1 -1
- package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/columns/route.js +1 -1
- package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/connect/route.js +1 -1
- package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/export/route.js +1 -1
- package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/query/route.js +1 -1
- package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js +2 -2
- package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/dev/spans/route.js +1 -1
- package/.next-prod/server/app/api/dev/spans/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/extension/version/route.js +1 -1
- package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/file/route.js +1 -1
- package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/blame/route.js +1 -1
- package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/copy/route.js +1 -1
- package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/delete/route.js +1 -1
- package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/index/route.js +1 -1
- package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/init/route.js +1 -1
- package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/paste/route.js +1 -1
- package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/read/route.js +1 -1
- package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/recent/route.js +1 -1
- package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/save/route.js +1 -1
- package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/search/route.js +1 -1
- package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/stat/route.js +1 -1
- package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/text/route.js +1 -1
- package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/branches/route.js +1 -1
- package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/commits/route.js +1 -1
- package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
- package/.next-prod/server/app/api/git/current-branch/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/diff/route.js +1 -1
- package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/discard/route.js +1 -1
- package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/stage/route.js +1 -1
- package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/status/route.js +1 -1
- package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/global-state/route.js +2 -2
- package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/health/route.js +1 -1
- package/.next-prod/server/app/api/health/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route.js +2 -2
- package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/note/route.js +1 -1
- package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/preview/[...path]/route.js +1 -0
- package/.next-prod/server/app/api/preview/[...path]/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/preview/[...path]/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/project-settings/route.js +1 -1
- package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-state/route.js +2 -2
- package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projects/route.js +1 -1
- package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/command/route.js +1 -1
- package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/get/route.js +1 -1
- package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/set/route.js +1 -1
- package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/identify/route.js +1 -1
- package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/order/route.js +1 -1
- package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/route.js +1 -1
- package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/share-info/route.js +1 -1
- package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/users/route.js +1 -1
- package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route.js +3 -3
- package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/services/config/route.js +1 -1
- package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/route.js +1 -1
- package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/settings/route.js +1 -1
- package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/content/route.js +1 -1
- package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/route.js +1 -1
- package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/snapshots/diff/route.js +1 -0
- package/.next-prod/server/app/api/snapshots/diff/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/snapshots/diff/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/snapshots/route.js +1 -0
- package/.next-prod/server/app/api/snapshots/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/snapshots/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/version/route.js +1 -1
- package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
- package/.next-prod/server/app/favicon.ico/route.js +1 -1
- package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next-prod/server/app/m/page.js +2 -2
- package/.next-prod/server/app/m/page.js.nft.json +1 -1
- package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
- package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next-prod/server/app/page.js +2 -2
- package/.next-prod/server/app/page.js.nft.json +1 -1
- package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/project/page.js +2 -2
- package/.next-prod/server/app/project/page.js.nft.json +1 -1
- package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/review/[id]/page.js +2 -2
- package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
- package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app-paths-manifest.json +7 -4
- package/.next-prod/server/chunks/304.js +5 -1
- package/.next-prod/server/chunks/{5897.js → 4848.js} +8 -8
- package/.next-prod/server/chunks/{8523.js → 5674.js} +2 -2
- package/.next-prod/server/chunks/7184.js +1 -1
- package/.next-prod/server/chunks/8916.js +1 -1
- package/.next-prod/server/chunks/9658.js +15 -15
- package/.next-prod/server/middleware-build-manifest.js +1 -1
- package/.next-prod/server/middleware-react-loadable-manifest.js +1 -1
- package/.next-prod/server/pages/404.html +2 -2
- package/.next-prod/server/pages/500.html +1 -1
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/static/c1JrZ4eVs2JR2ujEC_UrJ/_buildManifest.js +1 -0
- package/.next-prod/static/chunks/{6787-866a3046a4a0fa50.js → 1973-5ba02ae354968836.js} +7 -7
- package/.next-prod/static/chunks/{2501.4e65b56602faa956.js → 2501.8a795c737a86ac2f.js} +1 -1
- package/.next-prod/static/chunks/{3304.16305e84f4ff6598.js → 3304.540e84c28c47b48b.js} +1 -1
- package/.next-prod/static/chunks/{4523.3f277a24fbcfde6d.js → 4523.a6c0a4fb0a46d0bb.js} +1 -1
- package/.next-prod/static/chunks/{4678.867dfae26694be02.js → 4678.9870fc2e3d7d1e5d.js} +1 -1
- package/.next-prod/static/chunks/5408-f7b9470b57c6690e.js +25 -0
- package/.next-prod/static/chunks/543-9c1455693df33cd1.js +15 -0
- package/.next-prod/static/chunks/{6729.77a5381ac8f5c9ae.js → 6729.582a7ca4e74b0aea.js} +1 -1
- package/.next-prod/static/chunks/6784-a155388d7e43ef3d.js +0 -0
- package/.next-prod/static/chunks/{7799.40b047a634f96a24.js → 7799.ada4812ac0884dcc.js} +1 -1
- package/.next-prod/static/chunks/{2502-fb8682bc7a61e04d.js → 7849-7c580c908fe21e9d.js} +2 -2
- package/.next-prod/static/chunks/{2160.e38d781fd5c4cde0.js → 9779.7a4ff1aee2a02f63.js} +1 -1
- package/.next-prod/static/chunks/app/_global-error/page-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/agent/test/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/stop/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/dev/spans/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/stat/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/files/text/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/current-branch/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/health/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/load/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/save/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/pick-folder/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/preview/[...path]/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/push/public-key/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/push/subscribe/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/[id]/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/content/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/{layout-09e14606d83f2723.js → layout-b8d5256d3bf96b1e.js} +1 -1
- package/.next-prod/static/chunks/app/m/{page-bf48756850ebe349.js → page-149145e4714873de.js} +1 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/app/{page-9ad16c0c615eedae.js → page-497c9c5c75bf40f2.js} +1 -1
- package/.next-prod/static/chunks/app/project/{page-9ad16c0c615eedae.js → page-497c9c5c75bf40f2.js} +1 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-f265b8a7128b7a1a.js +1 -0
- package/.next-prod/static/chunks/webpack-798abcb0f340ce75.js +1 -0
- package/.next-prod/static/css/5b0dd8036a3ffc10.css +1 -0
- package/.next-prod/trace +13 -13
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/preview/[...path]/route.ts +351 -0
- package/.next-prod/types/app/api/snapshots/diff/route.ts +351 -0
- package/.next-prod/types/app/api/snapshots/route.ts +351 -0
- package/.next-prod/types/routes.d.ts +4 -1
- package/.next-prod/types/validator.ts +27 -0
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/dist/{chunk-GFI4IHYM.mjs → chunk-44DBCDDK.mjs} +615 -4
- package/dist/{chunk-IQXDXTI7.mjs → chunk-MNMFPTV4.mjs} +1 -1
- package/dist/{chunk-RJMSCVG5.mjs → chunk-TRQ4S2LT.mjs} +1 -1
- package/dist/httpApi.mjs +2 -2
- package/dist/scheduledTasks.mjs +111 -4
- package/dist/{server-K4DO2GUO.mjs → server-UDKNFSZE.mjs} +2 -2
- package/dist/wsServer.mjs +4 -4
- package/package.json +1 -1
- package/.next-prod/static/UnrfRwZSyDx6zJRTpvkls/_buildManifest.js +0 -1
- package/.next-prod/static/chunks/217-1bf54355c7c0c898.js +0 -15
- package/.next-prod/static/chunks/3283-06498d72f2d02c34.js +0 -25
- package/.next-prod/static/chunks/6784-11888818d8e3114e.js +0 -0
- package/.next-prod/static/chunks/app/_global-error/page-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/agent/test/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/load/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/save/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-d7801a0008b8d59b.js +0 -1
- package/.next-prod/static/chunks/webpack-fb9d282647d95d0a.js +0 -1
- package/.next-prod/static/css/76211649f6d7a87c.css +0 -1
- /package/.next-prod/static/{UnrfRwZSyDx6zJRTpvkls → c1JrZ4eVs2JR2ujEC_UrJ}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4523],{64523:(e,t,n)=>{let r,i;n.r(t),n.d(t,{ShikiError:()=>a,addClassToHast:()=>tu,applyColorReplacements:()=>tr,bundledLanguages:()=>nc,bundledLanguagesAlias:()=>nl,bundledLanguagesBase:()=>no,bundledLanguagesInfo:()=>ns,bundledThemes:()=>nd,bundledThemesInfo:()=>nu,codeToHast:()=>nE,codeToHtml:()=>nN,codeToTokens:()=>nP,codeToTokensBase:()=>nL,codeToTokensWithThemes:()=>nI,createBundledHighlighter:()=>nt,createCssVariablesTheme:()=>na,createHighlighter:()=>nA,createHighlighterCore:()=>t7,createHighlighterCoreSync:()=>t4,createJavaScriptRegexEngine:()=>i_,createOnigurumaEngine:()=>nv,createPositionConverter:()=>th,createShikiInternal:()=>t6,createShikiInternalSync:()=>t8,createSingletonShorthands:()=>nr,createdBundledHighlighter:()=>ni,defaultJavaScriptRegexConstructor:()=>ik,enableDeprecationWarnings:()=>tZ,flatTokenVariants:()=>ty,getLastGrammarState:()=>n$,getSingletonHighlighter:()=>nT,getSingletonHighlighterCore:()=>ne,getTokenStyleObject:()=>tk,guessEmbeddedLanguages:()=>tp,hastToHtml:()=>tH,isNoneTheme:()=>tl,isPlainLang:()=>ts,isSpecialLang:()=>to,isSpecialTheme:()=>tc,loadWasm:()=>nS,makeSingletonHighlighter:()=>nn,makeSingletonHighlighterCore:()=>t9,normalizeGetter:()=>ta,normalizeTheme:()=>tV,resolveColorReplacements:()=>tn,splitLines:()=>td,splitToken:()=>tf,splitTokens:()=>tb,stringifyTokenStyle:()=>t_,toArray:()=>ti,tokenizeAnsiWithTheme:()=>t$,tokenizeWithTheme:()=>tG,tokensToHast:()=>tW,transformerDecorations:()=>tv,warnDeprecated:()=>tY});class a extends Error{constructor(e){super(e),this.name="ShikiError"}}var s,o,l=n(41463);function c(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var u=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,d=class{static hasCaptures(e){return null!==e&&(u.lastIndex=0,u.test(e))}static replaceCaptures(e,t,n){return e.replace(u,(e,r,i,a)=>{let s=n[parseInt(r||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function h(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function p(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function m(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var g=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},f=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&p(a.settings.foreground)&&(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&p(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),n[r++]=new k(c,u,e,s,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=h(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new w(t),s=new y(n,a.getId(r),a.getId(i)),o=new x(new S(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new f(a,s,o)}(e,t)}_cachedMatchRoot=new g(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new y(n.fontStyle,n.foreground,n.background):null}},b=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},y=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},k=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},_=((s=_||{})[s.NotSet=-1]="NotSet",s[s.None=0]="None",s[s.Italic=1]="Italic",s[s.Bold=2]="Bold",s[s.Underline=4]="Underline",s[s.Strikethrough=8]="Strikethrough",s),w=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},C=Object.freeze([]),S=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||C,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},x=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,s){let o,l,c;if(""===n)return void this._doInsertHere(t,r,i,a,s);let u=n.indexOf(".");-1===u?(o=n,l=""):(o=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),S.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,i,a,s)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===h(s.parentScopes,t))return void s.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new S(e,t,n,r,i))}},v=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),h=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=+!!i),-1!==a&&(d=a),0!==s&&(h=s),0!==o&&(p=o),(l|c<<8|u<<10|d<<11|h<<15|p<<24)>>>0}};function A(e,t){var n;let r,i,a=[],s=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return a;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o);t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(N(o)){let e=[];do e.push(o),o=s.next();while(N(o));return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function N(e){return!!e&&!!e.match(/[\w\.:]+/)}var E=((o=E||{})[o.None=0]="None",o[o.NotBeginString=1]="NotBeginString",o[o.NotEndString=2]="NotEndString",o[o.NotBeginPosition=4]="NotBeginPosition",o[o.DebugCall=8]="DebugCall",o);function P(e){"function"==typeof e.dispose&&e.dispose()}var L=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},I=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},T=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},$=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new L(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new T;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof L?M({baseGrammar:a,selfGrammar:i},r):R(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let s=n.injections(e.scopeName);if(s)for(let e of s)r.add(new L(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof L){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function R(e,t,n){t.repository&&t.repository[e]&&G([t.repository[e]],t,n)}function M(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&G(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&G(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function G(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?c({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&G(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=j(i);switch(a.kind){case 0:M({...t,selfGrammar:t.baseGrammar},n);break;case 1:M(t,n);break;case 2:R(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let r={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?R(a.ruleName,r,n):M(r,n)}else 4===a.kind?n.add(new I(a.scopeName,a.ruleName)):n.add(new L(a.scopeName))}}}var B=class{kind=0},O=class{kind=1},D=class{constructor(e){this.ruleName=e}kind=2},F=class{constructor(e){this.scopeName=e}kind=3},U=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function j(e){if("$base"===e)return new B;if("$self"===e)return new O;let t=e.indexOf("#");return -1===t?new F(e):0===t?new D(e.substring(1)):new U(e.substring(0,t),e.substring(t+1))}var W=/\\(\d+)/,H=/\\(\d+)/g;Symbol("RuleId");var q=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=d.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=d.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?d.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?d.replaceCaptures(this._contentName,e,t):this._contentName}},z=class extends q{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},V=class extends q{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Z(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},X=class extends q{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Q=class extends q{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,s,o,l,c){super(e,t,n,r),this._begin=new Z(i,this.id),this.beginCaptures=a,this._end=new Z(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new Y,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},J=class extends q{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r),this._begin=new Z(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=new Z(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new Y,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Y,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},K=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new z(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new V(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=c({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new X(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Q(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],n,r)),i[s]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=j(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[s.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,n,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else o=e.getCompiledRuleId(s,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof X||e instanceof Q||e instanceof J)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Z=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=W.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return H.lastIndex=0,this.source.replace(H,(e,t)=>m(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,s[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="",a[e+1]="",s[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="",a[e+1]="G",s[e+1]="",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,s[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Y=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ee(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new ee(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ee=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},et=class{constructor(e,t){this.languageId=e,this.tokenType=t}},en=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new et(e,8),this._embeddedLanguagesMatcher=new er(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new et(0,0);_getBasicScopeAttributes=new g(e=>new et(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},er=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>m(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==l&&l.env.VSCODE_TEXTMATE_DEBUG;var ei=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ea(e,t,n,r,i,a,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,n,r,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof J&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,c,u,d,h;let{ruleScanner:o,findOptions:m}=(l=p.rule,c=e,u=p.stack.endRule,d=n,h=r===s,{ruleScanner:l.compileWhileAG(c,u,d,h),findOptions:0}),g=o.findNextMatchSync(t,r,m);if(g){if(-2!==g.ruleId){i=p.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(a.produce(p.stack,g.captureIndices[0].start),eo(e,t,n,p.stack,a,p.rule.whileCaptures,g.captureIndices),a.produce(p.stack,g.captureIndices[0].end),s=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}(e,t,n,r,i,a);i=s.stack,r=s.linePos,n=s.isFirstLine,u=s.anchorPosition}let d=Date.now();for(;!c;){if(0!==o&&Date.now()-d>o)return new ei(i,!0);!function(){let s=function(e,t,n,r,i,a){let s=function(e,t,n,r,i,a){let{ruleScanner:s,findOptions:o}=es(i.getRule(e),e,i.endRule,n,r===a),l=s.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,n,r,i,a,s){let o,l=Number.MAX_VALUE,c=null,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,h=e.length;a<h;a++){let h=e[a];if(!h.matcher(d))continue;let{ruleScanner:p,findOptions:m}=es(t.getRule(h.ruleId),t,null,r,i===s),g=p.findNextMatchSync(n,i,m);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=l)&&(l=f,c=g.captureIndices,o=g.ruleId,u=h.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,n,r,i,u);if(!s){a.produce(i,l),c=!0;return}let o=s.captureIndices,d=s.matchedRuleId,h=!!o&&o.length>0&&o[0].end>r;if(-1===d){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),eo(e,t,n,i,a,s.endCaptures,o),a.produce(i,o[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!h&&d.getEnterPos()===r){i=d,a.produce(i,l),c=!0;return}}else{let s=e.getRule(d);a.produce(i,o[0].start);let p=i,m=s.getName(t.content,o),g=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,o[0].end===l,null,g,g),s instanceof Q){eo(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),d=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(s instanceof J){eo(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),d=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(eo(e,t,n,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!h){i=i.safePop(),a.produce(i,l),c=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new ei(i,!1)}function es(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eo(e,t,n,r,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let d=s[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=a.pushAttributed(c,e),h=r.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(o.substring(0,d.end));ea(e,p,n&&0===d.start,d.start,h,i,!1,0),P(p);continue}let h=l.getName(o,s);if(null!==h){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new el(t,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var el=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ec(e,t,n,r,i){let a=A(t,eu),s=K.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:s,grammar:i,priority:n.priority})}function eu(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var ed=class{constructor(e,t,n,r,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new en(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=eh(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of A(e,eu))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)ec(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&ec(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=eh(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=K.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==em.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=v.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?ep.createRootAndLookUpScopeName(s,a,this):ep.createRoot("unknown",a),t=new em(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new ef(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ea(this,a,i,0,t,o,!0,r);return P(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eh(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ep=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=b.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new b(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new b(null,t),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),v.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},em=class e{constructor(e,t,n,r,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ep.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,s,o){return new e(this,t,n,r,i,a,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=ep.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ep.fromExtension(r,n.contentNameScopesList))}},eg=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):A(e,eu).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>A(e,eu).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ef=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=v.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=v.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},eb=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new ed(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},ey=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eb(f.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(f.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new eg(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new $(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ek=em.NULL,e_=n(51640),ew=n(4918),eC=n(27629);let eS=/["&'<>`]/g,ex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ev=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eA=/[|\\{}()[\]^$+*?.]/g,eN=new WeakMap,eE=/[\dA-Fa-f]/,eP=/\d/;var eL=n(6801);let eI={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},eT=["cent","copy","divide","gt","lt","not","para","times"],e$={}.hasOwnProperty,eR={};for(r in eI)e$.call(eI,r)&&(eR[eI[r]]=r);let eM=/[^\dA-Za-z]/;function eG(e,t,n){var r,i;let a,s,o=(r=n.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),r&&t&&!eE.test(String.fromCharCode(t))?a:a+";");if((n.useNamedReferences||n.useShortestReferences)&&(s=function(e,t,n,r){let i=String.fromCharCode(e);if(e$.call(eR,i)){let e=eR[i],a="&"+e;return n&&eL.K.includes(e)&&!eT.includes(e)&&(!r||t&&61!==t&&eM.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){let r,a=(i=n.omitOptionalSemicolons,r="&#"+String(e),i&&t&&!eP.test(String.fromCharCode(t))?r:r+";");a.length<o.length&&(o=a)}return s&&(!n.useShortestReferences||s.length<o.length)?s:o}function eB(e,t){let n;var r,i=e,a=Object.assign({format:eG},t);if(i=i.replace(a.subset?(r=a.subset,(n=eN.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eA,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),eN.set(r,n)),n):eS,s),a.subset||a.escapeOnly)return i;return i.replace(ex,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(ev,s);function s(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let eO=/^>|^->|<!--|-->|--!>|<!-$/g,eD=[">"],eF=["<",">"];var eU=n(49884),ej=n(86994),eW=n(38609),eH=n(51705),eq=n(36887);let ez=eQ(1),eV=eQ(-1),eX=[];function eQ(e){return function(t,n,r){let i=t?t.children:eX,a=(n||0)+e,s=i[a];if(!r)for(;s&&(0,eq.m)(s);)a+=e,s=i[a];return s}}let eJ={}.hasOwnProperty;function eK(e){return function(t,n,r){return eJ.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let eZ=eK({body:function(e,t,n){let r=ez(n,t);return!r||"comment"!==r.type},caption:eY,colgroup:eY,dd:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=ez(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:eY,html:function(e,t,n){let r=ez(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=ez(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:e0,rt:e0,tbody:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:e1,tfoot:function(e,t,n){return!ez(n,t)},th:e1,thead:function(e,t,n){let r=ez(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function eY(e,t,n){let r=ez(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,eq.m)(r.value.charAt(0)))}function e0(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function e1(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let e2=eK({body:function(e){let t=ez(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eq.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=eV(n,t),i=ez(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&eZ(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=ez(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=eV(n,t),i=ez(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&eZ(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),e3={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e5=["<","&"];function e8(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eB(e.value,Object.assign({},r.settings.characterReferences,{subset:e5}))}let e6=(0,eC.A)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+eB(e.value,Object.assign({},r.settings.characterReferences,{subset:eD}))+">":"\x3c!--"+e.value.replace(eO,function(e){return eB(e,Object.assign({},r.settings.characterReferences,{subset:eF}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,s="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=ew.JW);let c=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=(0,eW.I)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eB(i.attribute,Object.assign({},e.settings.characterReferences,{subset:e3.name[a][s]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?ej.A:eH.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=eB(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e3.unquoted[a][s]}))),r!==n&&(e.settings.quoteSmart&&(0,eU.D)(n,o)>(0,eU.D)(n,e.alternative)&&(o=e.alternative),r=o+eB(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e3.single:e3.double)[a][s],attribute:!0}))+o),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(o=!1),!c&&s&&e2(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&eZ(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:e8(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:e8}}),e7={},e4={},e9=[];function te(e,t,n){return e6(e,t,n,this)}function tt(e){let t=[],n=e&&e.children||e9,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function tn(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function tr(e,t){return e&&t?.[e?.toLowerCase()]||e}function ti(e){return Array.isArray(e)?e:[e]}async function ta(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function ts(e){return!e||["plaintext","txt","text","plain"].includes(e)}function to(e){return"ansi"===e||ts(e)}function tl(e){return"none"===e}function tc(e){return tl(e)}function tu(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function td(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}function th(e){let t=td(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}function tp(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}let tm="light-dark()",tg=["color","background-color"];function tf(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function tb(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?tf(e,t):e})):e}function ty(e,t,n,r,i="css-vars"){let s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>tk(e.variants[t])),l=new Set(o.flatMap(e=>Object.keys(e))),c={},u=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let s of l){let l=e[s]||"inherit";if(0===n&&r&&tg.includes(s))if(r===tm&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new a('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let d=o[e][s]||"inherit",h=o[r][s]||"inherit";c[s]=`light-dark(${d}, ${h})`,"css-vars"===i&&(c[u(n,s)]=l)}else c[s]=l;else"css-vars"===i&&(c[u(n,s)]=l)}}),s.htmlStyle=c,s}function tk(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&_.Italic&&(t["font-style"]="italic"),e.fontStyle&_.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&_.Underline&&n.push("underline"),e.fontStyle&_.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function t_(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tw=new WeakMap;function tC(e,t){tw.set(e,t)}function tS(e){return tw.get(e)}class tx{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tx(Object.fromEntries(ti(t).map(e=>[e,ek])),e)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,r;return t=this._stacks[e],n=[],r=new Set,!function e(t){if(r.has(t))return;r.add(t);let i=t?.nameScopesList?.scopeName;i&&n.push(i),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function tv(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new a(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new a(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new a(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=th(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new a(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,s=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||s||o||l){if(i&&s||o&&l||o&&n.start.offset===n.end.offset||s&&t.start.offset===t.end.offset)continue;throw new a(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return tb(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new a(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],l="",c=-1,u=-1;if(0===t&&(c=0),0===n&&(u=0),n===1/0&&(u=o.children.length),-1===c||-1===u)for(let e=0;e<o.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===c&&l.length===t&&(c=e+1),-1===u&&l.length===n&&(u=e+1);if(-1===c)throw new a(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===u)throw new a(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let d=o.children.slice(c,u);if(i.alwaysWrap||d.length!==o.children.length)if(i.alwaysWrap||1!==d.length||"element"!==d[0].type){let e={type:"element",tagName:"span",properties:{},children:d};s(e,i,"wrapper"),o.children.splice(c,d.length,e)}else s(d[0],i,"token");else s(o,i,"line")}function s(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&tu(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=s(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}let tA=[tv()];function tN(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tA]}var tE=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tP={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tL(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tI={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let tT={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function t$(e,t,n){let r,i,a,s=tn(e,n),o=td(t),l=function(e=tI){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<tE.length;n++)t.push(e[tE[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tE.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||tT[t]]}))),c=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let s=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=s.sequence?e.substring(n,s.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:i,decorations:new Set(a)}),s.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)tP[r]&&t.push({type:"setDecoration",value:tP[r]});else if(r<=29){let e=tP[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tE[r-30]}});else if(38===r){let n=tL(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tE[r-40]}});else if(48===r){let n=tL(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tE[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tE[r-100+8]}})}return t}(s.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=s.position}while(n<e.length);return t}});return o.map(t=>c.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=tr(r,s),i=tr(i,s),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3],a=Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${r}${r}${a}`}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=_.None;return n.decorations.has("bold")&&(a|=_.Bold),n.decorations.has("italic")&&(a|=_.Italic),n.decorations.has("underline")&&(a|=_.Underline),n.decorations.has("strikethrough")&&(a|=_.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}function tR(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(ts(i)||tl(r))return td(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:s,colorMap:o}=e.setTheme(r);if("ansi"===i)return t$(s,t,n);let l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new a(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(s.name))throw new a(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return tG(t,l,s,o,n)}function tM(...e){if(2===e.length)return tS(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:s=t.getLoadedThemes()[0]}=r;if(ts(i)||tl(s))throw new a("Plain language does not have grammar state");if("ansi"===i)throw new a("ANSI language does not have grammar state");let{theme:o,colorMap:l}=t.setTheme(s),c=t.getLanguage(i);return new tx(tB(n,c,o,l,r).stateStack,c.name,o.name)}function tG(e,t,n,r,i){let a=tB(e,t,n,r,i),s=new tx(a.stateStack,t.name,n.name);return tC(a.tokens,s),a.tokens}function tB(e,t,n,r,i){let s=tn(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,c=td(e),u=i.grammarState?function(e,t){if(!(e instanceof tx))throw new a("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??ek:null!=i.grammarContextCode?tB(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ek,d=[],h=[];for(let e=0,a=c.length;e<a;e++){let a,p,[m,g]=c[e];if(""===m){d=[],h.push([]);continue}if(o>0&&m.length>=o){d=[],h.push([{content:m,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(a=t.tokenizeLine(m,u,l).tokens,p=0);let f=t.tokenizeLine2(m,u,l),b=f.tokens.length/2;for(let e=0;e<b;e++){let t=f.tokens[2*e],o=e+1<b?f.tokens[2*e+2]:m.length;if(t===o)continue;let l=f.tokens[2*e+1],c=tr(r[v.getForeground(l)],s),u=v.getFontStyle(l),h={content:m.substring(t,o),offset:g+t,color:c,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}h.explanation=[];let r=0;for(;t+r<o;){let t=a[p],n=m.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tO(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tO(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}d.push(h)}h.push(d),d=[],u=f.ruleStack}return{tokens:h,stateStack:u}}function tO(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tD(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=tR(e,t,{...n,theme:r.theme}),a=tS(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let s=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(a[t].push(n),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),s=a[0].map((e,t)=>e.map((e,i)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:o,offset:l,...c}=e[t][i];s.variants[r[n].color]=c}),s})),o=i[0].state?new tx(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&tC(s,o),s}function tF(e,t,n){let r,i,s,o,l,c;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:d="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(0===p.length)throw new a("`themes` option must not be empty");let m=tD(e,t,n);if(c=tS(m),u&&tm!==u&&!p.find(e=>e.color===u))throw new a(`\`themes\` option must contain the defaultColor key \`${u}\``);let g=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);s=m.map(e=>e.map(e=>ty(e,f,d,u,h))),c&&tC(s,c);let b=p.map(e=>tn(e.theme,n));i=tU(p,g,b,d,u,"fg",h),r=tU(p,g,b,d,u,"bg",h),o=`shiki-themes ${g.map(e=>e.name).join(" ")}`,l=u?void 0:[i,r].join(";")}else if("theme"in n){let a=tn(n.theme,n);s=tR(e,t,n);let l=e.getTheme(n.theme);r=tr(l.bg,a),i=tr(l.fg,a),o=l.name,c=tS(s)}else throw new a("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:l,grammarState:c}}function tU(e,t,n,r,i,s,o){return e.map((l,c)=>{let u=tr(t[c][s],n[c])||"inherit",d=`${r+l.color}${"bg"===s?"-bg":""}:${u}`;if(0===c&&i){if(i===tm&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new a('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=tr(t[r][s],n[r])||"inherit",l=tr(t[i][s],n[i])||"inherit";return`light-dark(${o}, ${l});${d}`}return u}return"css-vars"===o?d:null}).filter(e=>!!e).join(";")}function tj(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>tj(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)}){let i=t;for(let e of tN(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}=tF(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;!0===d?a=a.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&_.Underline||i.fontStyle&_.Strikethrough));s&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(s?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===d&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),h&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=t_(e.htmlStyle||tk(e)),i=t_(n.htmlStyle||tk(n)),a=e.fontStyle&&(e.fontStyle&_.Underline||e.fontStyle&_.Strikethrough),s=n.fontStyle&&(n.fontStyle&_.Underline||n.fontStyle&_.Strikethrough);a||s||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of tN(n))a=e.tokens?.call(p,a)||a;return tW(a,{...n,fg:s,bg:o,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??c)},p,u)}function tW(e,t,n,r=tS(e)){let i=tN(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=n);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:a},h=[],p={...n,structure:o,addClassToHast:tu,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return d},get lines(){return h}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=t_(a.htmlStyle||tk(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(p,e,t+1,r,n,a)||e;"inline"===o?s.children.push(e):"classic"===o&&n.children.push(e),r+=a.content.length}if("classic"===o){for(let e of i)n=e?.line?.call(p,n,t+1)||n;h.push(n),a.push(n)}else"inline"===o&&h.push(n)}),"classic"===o){for(let e of i)d=e?.code?.call(p,d)||d;for(let e of(u.children.push(d),i))u=e?.pre?.call(p,u)||u;s.children.push(u)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of s.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;s.children=[];for(let e=0;e<n.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&s.children.push(...t.children)}}let m=s;for(let e of i)m=e?.root?.call(p,m)||m;return r&&tC(m,r),m}let tH=function(e,t){let n=t||e7,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:te,all:tt,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||e_.b,characterReferences:n.characterReferences||e4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?ew.JW:ew.qy,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};function tq(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tj(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)},i=tH(tj(e,t,n,r));for(let e of tN(n))i=e.postprocess?.call(r,i,n)||i;return i}let tz="__shiki_resolved";function tV(e){if(e?.[tz])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function s(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?s(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=s(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=s(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=s(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tz,{enumerable:!1,writable:!1,value:!0}),t}async function tX(e){return Array.from(new Set((await Promise.all(e.filter(e=>!to(e)).map(async e=>await ta(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tQ(e){return(await Promise.all(e.map(async e=>tl(e)?null:tV(await ta(e))))).filter(e=>!!e)}let tJ=3,tK=!1;function tZ(e=!0,t=!1){tJ=e,tK=t}function tY(e,t=3){if(tJ&&("number"!=typeof tJ||!(t>tJ)))if(tK)throw Error(`[SHIKI DEPRECATE]: ${e}`);else console.trace(`[SHIKI DEPRECATE]: ${e}`)}class t0 extends Error{constructor(e){super(e),this.name="ShikiError"}}function t1(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new t0(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class t2 extends ey{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tV(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=f.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=t1(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>{if(!t)return!1;let r=t.embeddedLanguages||t.embeddedLangs;return r?.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new t0(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class t3{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let t5=0;function t8(e){let t;t5+=1,!1!==e.warnings&&t5>=10&&t5%10==0&&console.warn(`[Shiki] ${t5} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new t0("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tV),a=new t2(new t3(e.engine,r),i,r,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new t0(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))a.loadTheme(t)}function c(){if(n)throw new t0("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),t5-=1)}return{setTheme:function(e){c();let n=s(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new t0(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return t1(t,e.langAlias)},loadLanguage:async function(...e){return o(await tX(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await tQ(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}async function t6(e){e.engine||tY("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tQ(e.themes||[]),tX(e.langs||[]),e.engine]);return t8({...e,themes:t,langs:n,engine:r})}async function t7(e){let t=await t6(e);return{getLastGrammarState:(...e)=>tM(t,...e),codeToTokensBase:(e,n)=>tR(t,e,n),codeToTokensWithThemes:(e,n)=>tD(t,e,n),codeToTokens:(e,n)=>tF(t,e,n),codeToHast:(e,n)=>tj(t,e,n),codeToHtml:(e,n)=>tq(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function t4(e){let t=t8(e);return{getLastGrammarState:(...e)=>tM(t,...e),codeToTokensBase:(e,n)=>tR(t,e,n),codeToTokensWithThemes:(e,n)=>tD(t,e,n),codeToTokens:(e,n)=>tF(t,e,n),codeToHast:(e,n)=>tj(t,e,n),codeToHtml:(e,n)=>tq(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function t9(e){let t;return async function(n){if(!t)return t=e({...n,themes:n.themes||[],langs:n.langs||[]});{let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}}}let ne=t9(t7);function nt(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(n){if("string"==typeof n){if(to(n=e.langAlias?.[n]||n))return[];let r=t[n];if(!r)throw new a(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function s(e){if(tl(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new a(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>s(e)),l=(e.langs??[]).map(e=>i(e)),c=await t7({engine:e.engine??r(),...e,themes:o,langs:l});return{...c,loadLanguage:(...e)=>c.loadLanguage(...e.map(i)),loadTheme:(...e)=>c.loadTheme(...e.map(s)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}function nn(e){let t;return async function(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}}function nr(e,t){let n=nn(e);async function r(e,r){let i=await n({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await r(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await r(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await r(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await r(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await r(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}let ni=nt;function na(e={}){let{name:t="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=e,i=t=>e.variableDefaults?.[t]?`var(${n}${t}, ${e.variableDefaults[t]})`:`var(${n}${t})`,a={name:t,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return r||(a.tokenColors=a.tokenColors?.map(e=>(e.settings?.fontStyle&&delete e.settings.fontStyle,e))),a}let ns=[{id:"abap",name:"ABAP",import:()=>n.e(8773).then(n.bind(n,48773))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(36).then(n.bind(n,10036))},{id:"ada",name:"Ada",import:()=>n.e(5575).then(n.bind(n,55575))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3175)]).then(n.bind(n,23175))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(2577),n.e(1630),n.e(3782),n.e(3476),n.e(3111),n.e(3186)]).then(n.bind(n,76359))},{id:"apache",name:"Apache Conf",import:()=>n.e(2765).then(n.bind(n,52765))},{id:"apex",name:"Apex",import:()=>n.e(7455).then(n.bind(n,27455))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(4174)]).then(n.bind(n,54174))},{id:"applescript",name:"AppleScript",import:()=>n.e(9178).then(n.bind(n,19178))},{id:"ara",name:"Ara",import:()=>n.e(3313).then(n.bind(n,93313))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(8318).then(n.bind(n,98318))},{id:"asm",name:"Assembly",import:()=>n.e(7846).then(n.bind(n,87846))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(3782),n.e(6686)]).then(n.bind(n,36686))},{id:"awk",name:"AWK",import:()=>n.e(4900).then(n.bind(n,54900))},{id:"ballerina",name:"Ballerina",import:()=>n.e(2747).then(n.bind(n,92747))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(3290).then(n.bind(n,73290))},{id:"beancount",name:"Beancount",import:()=>n.e(8496).then(n.bind(n,98496))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(5331).then(n.bind(n,95331))},{id:"bibtex",name:"BibTeX",import:()=>n.e(5937).then(n.bind(n,25937))},{id:"bicep",name:"Bicep",import:()=>n.e(8406).then(n.bind(n,68406))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e(1410).then(n.bind(n,71410))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(5005)]).then(n.bind(n,25005))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(4608).then(n.bind(n,4608))},{id:"c",name:"C",import:()=>n.e(8192).then(n.bind(n,88192))},{id:"c3",name:"C3",import:()=>n.e(7113).then(n.bind(n,7113))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(4242).then(n.bind(n,64242))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(893),n.e(4367)]).then(n.bind(n,84367))},{id:"clarity",name:"Clarity",import:()=>n.e(5183).then(n.bind(n,15183))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(6959).then(n.bind(n,66959))},{id:"cmake",name:"CMake",import:()=>n.e(5482).then(n.bind(n,55482))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(5498)]).then(n.bind(n,15498))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(1188).then(n.bind(n,21188))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(2403).then(n.bind(n,22403))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(2577),n.e(6647)]).then(n.bind(n,76647))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(3787).then(n.bind(n,93787))},{id:"coq",name:"Coq",import:()=>n.e(5920).then(n.bind(n,55920))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(6666),n.e(8835),n.e(2503),n.e(8192),n.e(6110)]).then(n.bind(n,27816))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2503),n.e(8192),n.e(7152),n.e(1413)]).then(n.bind(n,21413))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(9261).then(n.bind(n,71642))},{id:"css",name:"CSS",import:()=>n.e(3782).then(n.bind(n,63782))},{id:"csv",name:"CSV",import:()=>n.e(6331).then(n.bind(n,66331))},{id:"cue",name:"CUE",import:()=>n.e(5338).then(n.bind(n,45338))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(4350).then(n.bind(n,14350))},{id:"d",name:"D",import:()=>n.e(9015).then(n.bind(n,59015))},{id:"dart",name:"Dart",import:()=>n.e(3288).then(n.bind(n,3288))},{id:"dax",name:"DAX",import:()=>n.e(1932).then(n.bind(n,21932))},{id:"desktop",name:"Desktop",import:()=>n.e(7819).then(n.bind(n,7819))},{id:"diff",name:"Diff",import:()=>n.e(2614).then(n.bind(n,62614))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(2783).then(n.bind(n,52783))},{id:"dotenv",name:"dotEnv",import:()=>n.e(4829).then(n.bind(n,44829))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(425).then(n.bind(n,32806))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(7844)]).then(n.bind(n,67844))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(698)]).then(n.bind(n,20698))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(8192),n.e(4583)]).then(n.bind(n,84583))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(3879).then(n.bind(n,62965))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(8848),n.e(1198)]).then(n.bind(n,91198))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(3304),n.e(4678)]).then(n.bind(n,64678))},{id:"fennel",name:"Fennel",import:()=>n.e(2964).then(n.bind(n,60583))},{id:"fish",name:"Fish",import:()=>n.e(2349).then(n.bind(n,52349))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(6293).then(n.bind(n,26293))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(4823),n.e(5061)]).then(n.bind(n,85061))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(4823).then(n.bind(n,94823))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(3304),n.e(2501)]).then(n.bind(n,52501))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(8670).then(n.bind(n,98670))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(4223).then(n.bind(n,34223))},{id:"gdshader",name:"GDShader",import:()=>n.e(7977).then(n.bind(n,67977))},{id:"genie",name:"Genie",import:()=>n.e(2031).then(n.bind(n,42031))},{id:"gherkin",name:"Gherkin",import:()=>n.e(8457).then(n.bind(n,88457))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(2041).then(n.bind(n,92041))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(7152),n.e(3194)]).then(n.bind(n,33194))},{id:"gleam",name:"Gleam",import:()=>n.e(2895).then(n.bind(n,62895))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(640)]).then(n.bind(n,30640))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(9186)]).then(n.bind(n,59186))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(8192),n.e(6887)]).then(n.bind(n,6887))},{id:"gn",name:"GN",import:()=>n.e(9448).then(n.bind(n,99448))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(9690).then(n.bind(n,79690))},{id:"go",name:"Go",import:()=>n.e(4553).then(n.bind(n,64553))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(1248)]).then(n.bind(n,41248))},{id:"groovy",name:"Groovy",import:()=>n.e(9189).then(n.bind(n,39189))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2503),n.e(400)]).then(n.bind(n,70400))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3437)]).then(n.bind(n,63437))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2735)]).then(n.bind(n,12735))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(1335).then(n.bind(n,21335))},{id:"haxe",name:"Haxe",import:()=>n.e(1215).then(n.bind(n,11215))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(2374).then(n.bind(n,82374))},{id:"hjson",name:"Hjson",import:()=>n.e(9421).then(n.bind(n,79421))},{id:"hlsl",name:"HLSL",import:()=>n.e(10).then(n.bind(n,80010))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476)]).then(n.bind(n,43476))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(1656)]).then(n.bind(n,51656))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6931),n.e(7152),n.e(1248),n.e(8243)]).then(n.bind(n,98243))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6931),n.e(1248),n.e(816)]).then(n.bind(n,20816))},{id:"hxml",name:"HXML",import:()=>n.e(376).then(n.bind(n,50376))},{id:"hy",name:"Hy",import:()=>n.e(6938).then(n.bind(n,26938))},{id:"imba",name:"Imba",import:()=>n.e(794).then(n.bind(n,30794))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(4309).then(n.bind(n,34309))},{id:"java",name:"Java",import:()=>n.e(6931).then(n.bind(n,76931))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(2577).then(n.bind(n,52970))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3392)]).then(n.bind(n,43392))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(2577),n.e(6402)]).then(n.bind(n,36402))},{id:"json",name:"JSON",import:()=>n.e(4053).then(n.bind(n,4053))},{id:"json5",name:"JSON5",import:()=>n.e(3860).then(n.bind(n,63860))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(4650).then(n.bind(n,4650))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(1453).then(n.bind(n,91453))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(8132).then(n.bind(n,8132))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(4634).then(n.bind(n,24634))},{id:"jsx",name:"JSX",import:()=>n.e(9312).then(n.bind(n,29228))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(2577),n.e(6666),n.e(8835),n.e(2503),n.e(8192),n.e(893),n.e(6339)]).then(n.bind(n,85816))},{id:"just",name:"Just",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(8848),n.e(968),n.e(8977)]).then(n.bind(n,18977))},{id:"kdl",name:"KDL",import:()=>n.e(5968).then(n.bind(n,95968))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(6572).then(n.bind(n,26572))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(583).then(n.bind(n,50583))},{id:"latex",name:"LaTeX",import:()=>n.e(2839).then(n.bind(n,72839))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(7227).then(n.bind(n,77227))},{id:"less",name:"Less",import:()=>n.e(1280).then(n.bind(n,11280))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(5347)]).then(n.bind(n,25347))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9220).then(n.bind(n,19220))},{id:"log",name:"Log file",import:()=>n.e(6741).then(n.bind(n,16741))},{id:"logo",name:"Logo",import:()=>n.e(5670).then(n.bind(n,25670))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(8192),n.e(3873)]).then(n.bind(n,33873))},{id:"luau",name:"Luau",import:()=>n.e(3072).then(n.bind(n,33072))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(541).then(n.bind(n,30541))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(3304).then(n.bind(n,13304))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(535),n.e(3782),n.e(3111),n.e(1280),n.e(5645)]).then(n.bind(n,65645))},{id:"matlab",name:"MATLAB",import:()=>n.e(1184).then(n.bind(n,31184))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3304),n.e(6729)]).then(n.bind(n,86729))},{id:"mdx",name:"MDX",import:()=>n.e(5690).then(n.bind(n,55690))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(9842).then(n.bind(n,29842))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(1501).then(n.bind(n,11501))},{id:"mojo",name:"Mojo",import:()=>n.e(194).then(n.bind(n,50194))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(4567).then(n.bind(n,24567))},{id:"move",name:"Move",import:()=>n.e(4540).then(n.bind(n,24540))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(6455).then(n.bind(n,36455))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(5320).then(n.bind(n,35320))},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>n.e(3633).then(n.bind(n,53633))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(8192),n.e(2215)]).then(n.bind(n,2215))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(8192),n.e(3304),n.e(7799)]).then(n.bind(n,7799))},{id:"nix",name:"Nix",import:()=>n.e(6099).then(n.bind(n,86099))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(8288).then(n.bind(n,38288))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(6290).then(n.bind(n,36290))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(4763).then(n.bind(n,21946))},{id:"ocaml",name:"OCaml",import:()=>n.e(3419).then(n.bind(n,3419))},{id:"odin",name:"Odin",import:()=>n.e(9547).then(n.bind(n,69547))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(4474).then(n.bind(n,4474))},{id:"pascal",name:"Pascal",import:()=>n.e(6948).then(n.bind(n,46948))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(968),n.e(7040)]).then(n.bind(n,30968))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(6155),n.e(4659)]).then(n.bind(n,86155))},{id:"pkl",name:"Pkl",import:()=>n.e(6166).then(n.bind(n,96166))},{id:"plsql",name:"PL/SQL",import:()=>n.e(8947).then(n.bind(n,48947))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(3324).then(n.bind(n,43324))},{id:"polar",name:"Polar",import:()=>n.e(3095).then(n.bind(n,93095))},{id:"postcss",name:"PostCSS",import:()=>n.e(9240).then(n.bind(n,19240))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(9294).then(n.bind(n,19294))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(7636).then(n.bind(n,7636))},{id:"prisma",name:"Prisma",import:()=>n.e(327).then(n.bind(n,40327))},{id:"prolog",name:"Prolog",import:()=>n.e(34).then(n.bind(n,80034))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(8545).then(n.bind(n,58545))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(5755)]).then(n.bind(n,55755))},{id:"puppet",name:"Puppet",import:()=>n.e(9569).then(n.bind(n,19569))},{id:"purescript",name:"PureScript",import:()=>n.e(6580).then(n.bind(n,36580))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(893).then(n.bind(n,40893))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(2577),n.e(3077)]).then(n.bind(n,73077))},{id:"qmldir",name:"QML Directory",import:()=>n.e(6144).then(n.bind(n,46144))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(5712).then(n.bind(n,55712))},{id:"r",name:"R",import:()=>n.e(5025).then(n.bind(n,25025))},{id:"racket",name:"Racket",import:()=>n.e(3229).then(n.bind(n,3229))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(252).then(n.bind(n,30252))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(9261),n.e(4903)]).then(n.bind(n,84903))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(5997).then(n.bind(n,85997))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(6412).then(n.bind(n,86412))},{id:"rel",name:"Rel",import:()=>n.e(2062).then(n.bind(n,62062))},{id:"riscv",name:"RISC-V",import:()=>n.e(2710).then(n.bind(n,52710))},{id:"ron",name:"RON",import:()=>n.e(862).then(n.bind(n,80862))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(5728).then(n.bind(n,95728))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(8848),n.e(123)]).then(n.bind(n,52504))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(8848)]).then(n.bind(n,72331))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(1161).then(n.bind(n,61161))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(2503),n.e(6360)]).then(n.bind(n,66360))},{id:"sass",name:"Sass",import:()=>n.e(8113).then(n.bind(n,88113))},{id:"scala",name:"Scala",import:()=>n.e(9377).then(n.bind(n,89377))},{id:"scheme",name:"Scheme",import:()=>n.e(7142).then(n.bind(n,97142))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(3782),n.e(3111)]).then(n.bind(n,43111))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(9648).then(n.bind(n,59648))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(1379).then(n.bind(n,1379))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(7152).then(n.bind(n,57152))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(7152),n.e(8257)]).then(n.bind(n,8257))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(1556).then(n.bind(n,61556))},{id:"solidity",name:"Solidity",import:()=>n.e(8704).then(n.bind(n,38704))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2728)]).then(n.bind(n,72728))},{id:"sparql",name:"SPARQL",import:()=>n.e(8432).then(n.bind(n,68432))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(7610).then(n.bind(n,47610))},{id:"sql",name:"SQL",import:()=>n.e(2503).then(n.bind(n,2503))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(6046).then(n.bind(n,16046))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(2503),n.e(4080)]).then(n.bind(n,64080))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(7557).then(n.bind(n,97557))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(2577),n.e(830)]).then(n.bind(n,30830))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(1142)]).then(n.bind(n,81142))},{id:"swift",name:"Swift",import:()=>n.e(5922).then(n.bind(n,35922))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(3274).then(n.bind(n,90893))},{id:"systemd",name:"Systemd Units",import:()=>n.e(9006).then(n.bind(n,9006))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(1078).then(n.bind(n,21078))},{id:"tasl",name:"Tasl",import:()=>n.e(4963).then(n.bind(n,94963))},{id:"tcl",name:"Tcl",import:()=>n.e(1274).then(n.bind(n,41274))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(4553),n.e(1977)]).then(n.bind(n,81977))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(3483).then(n.bind(n,43483))},{id:"tex",name:"TeX",import:()=>n.e(1456).then(n.bind(n,11456))},{id:"toml",name:"TOML",import:()=>n.e(4163).then(n.bind(n,84163))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(4357)]).then(n.bind(n,74357))},{id:"tsv",name:"TSV",import:()=>n.e(840).then(n.bind(n,30840))},{id:"tsx",name:"TSX",import:()=>n.e(6814).then(n.bind(n,33710))},{id:"turtle",name:"Turtle",import:()=>n.e(1365).then(n.bind(n,41365))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(8848),n.e(3111),n.e(6155),n.e(6588)]).then(n.bind(n,96588))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(535).then(n.bind(n,5346))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(9466).then(n.bind(n,19466))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(2013).then(n.bind(n,62013))},{id:"v",name:"V",import:()=>n.e(7525).then(n.bind(n,7525))},{id:"vala",name:"Vala",import:()=>n.e(9565).then(n.bind(n,59565))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(2179).then(n.bind(n,62179))},{id:"verilog",name:"Verilog",import:()=>n.e(7182).then(n.bind(n,34801))},{id:"vhdl",name:"VHDL",import:()=>n.e(7425).then(n.bind(n,37425))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(4539).then(n.bind(n,14539))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(5553)]).then(n.bind(n,45553))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(2577),n.e(7021)]).then(n.bind(n,17021))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(2577),n.e(1290),n.e(3782),n.e(3111),n.e(1280),n.e(2160)]).then(n.bind(n,98110))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(1219).then(n.bind(n,21219))},{id:"wasm",name:"WebAssembly",import:()=>n.e(4275).then(n.bind(n,84275))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(5269).then(n.bind(n,65269))},{id:"wgsl",name:"WGSL",import:()=>n.e(4976).then(n.bind(n,44976))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(4370).then(n.bind(n,44370))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(624).then(n.bind(n,58243))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(7442).then(n.bind(n,6987))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(6931),n.e(2278)]).then(n.bind(n,77040))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(6931),n.e(3942)]).then(n.bind(n,3942))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(5518).then(n.bind(n,95518))},{id:"zenscript",name:"ZenScript",import:()=>n.e(2485).then(n.bind(n,92485))},{id:"zig",name:"Zig",import:()=>n.e(7041).then(n.bind(n,57041))}],no=Object.fromEntries(ns.map(e=>[e.id,e.import])),nl=Object.fromEntries(ns.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),nc={...no,...nl},nu=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(2812).then(n.bind(n,62812))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(7635).then(n.bind(n,27635))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(7884).then(n.bind(n,77884))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(4358).then(n.bind(n,94358))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(9005).then(n.bind(n,19005))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(1595).then(n.bind(n,51595))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(3979).then(n.bind(n,83979))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(9680).then(n.bind(n,59680))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(2107).then(n.bind(n,2107))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(5375).then(n.bind(n,75375))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(5136).then(n.bind(n,55136))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(4295).then(n.bind(n,4295))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(7258).then(n.bind(n,87258))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9996).then(n.bind(n,49996))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(9224).then(n.bind(n,39224))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(6704).then(n.bind(n,86704))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(6927).then(n.bind(n,96927))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(5424).then(n.bind(n,15424))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(3082).then(n.bind(n,23082))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(9382).then(n.bind(n,69382))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(2130).then(n.bind(n,32130))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(9666).then(n.bind(n,49666))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(392).then(n.bind(n,80392))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(9841).then(n.bind(n,49841))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(3492).then(n.bind(n,53492))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(214).then(n.bind(n,214))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(579).then(n.bind(n,60579))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(6311).then(n.bind(n,96311))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>n.e(3526).then(n.bind(n,23526))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(7524).then(n.bind(n,7524))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(6563).then(n.bind(n,56563))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(6701).then(n.bind(n,26701))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(7785).then(n.bind(n,97785))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(9136).then(n.bind(n,19136))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(2489).then(n.bind(n,82489))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(1247).then(n.bind(n,21247))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(6859).then(n.bind(n,76859))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(7921).then(n.bind(n,67921))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(6846).then(n.bind(n,96846))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(3074).then(n.bind(n,83074))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(9521).then(n.bind(n,89521))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(6089).then(n.bind(n,6089))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(5520).then(n.bind(n,15520))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(4969).then(n.bind(n,44969))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(2954).then(n.bind(n,92954))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(5491).then(n.bind(n,5491))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(9615).then(n.bind(n,9615))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7625).then(n.bind(n,67625))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(1534).then(n.bind(n,21534))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(8430).then(n.bind(n,28430))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(8555).then(n.bind(n,48555))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(7082).then(n.bind(n,87082))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(1583).then(n.bind(n,1583))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(5750).then(n.bind(n,35750))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(7465).then(n.bind(n,17465))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(1898).then(n.bind(n,21898))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(7130).then(n.bind(n,67130))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(966).then(n.bind(n,966))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(1664).then(n.bind(n,31664))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(3286).then(n.bind(n,83286))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(4593).then(n.bind(n,94593))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(9267).then(n.bind(n,39267))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(7889).then(n.bind(n,47889))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(5318).then(n.bind(n,55318))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(8656).then(n.bind(n,78656))}],nd=Object.fromEntries(nu.map(e=>[e.id,e.import]));var nh=n(49304).Buffer;class np extends Error{constructor(e){super(e),this.name="ShikiError"}}function nm(){return"u">typeof performance?performance.now():Date.now()}let ng=(e,t)=>e+(t-e%t)%t;async function nf(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){s+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(n);else{let e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(r.HEAPU8,e,t):""}let o={emscripten_get_now:nm,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let s=a*(1+.2/r);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,ng(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=s}return await l(),r}var nb=Object.defineProperty,ny=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?nb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let nk=null;class n_{constructor(e){ny(this,"utf16Length"),ny(this,"utf8Length"),ny(this,"utf16Value"),ny(this,"utf8Value"),ny(this,"utf16OffsetToUtf8"),ny(this,"utf8OffsetToUtf16");const t=e.length,n=n_._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const s=new Uint8Array(n);let o=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}r&&(i[n]=o,u&&(i[n+1]=o),c<=127?a[o+0]=n:c<=2047?(a[o+0]=n,a[o+1]=n):c<=65535?(a[o+0]=n,a[o+1]=n,a[o+2]=n):(a[o+0]=n,a[o+1]=n,a[o+2]=n,a[o+3]=n)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,s=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let nw=class e{constructor(t){if(ny(this,"id",++e.LAST_ID),ny(this,"_onigBinding"),ny(this,"content"),ny(this,"utf16Length"),ny(this,"utf8Length"),ny(this,"utf16OffsetToUtf8"),ny(this,"utf8OffsetToUtf16"),ny(this,"ptr"),!nk)throw new np("Must invoke loadWasm first.");this._onigBinding=nk,this.content=t;const n=new n_(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=nk.omalloc(1e4)),e._sharedPtrInUse=!0,nk.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(nk)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ny(nw,"LAST_ID",0),ny(nw,"_sharedPtr",0),ny(nw,"_sharedPtrInUse",!1);class nC{constructor(e){if(ny(this,"_onigBinding"),ny(this,"_ptr"),!nk)throw new np("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=new n_(e[r]);t[r]=i.createString(nk),n[r]=i.utf8Length}const r=nk.omalloc(4*e.length);nk.HEAPU32.set(t,r/4);const i=nk.omalloc(4*e.length);nk.HEAPU32.set(n,i/4);const a=nk.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)nk.ofree(t[n]);nk.ofree(i),nk.ofree(r),0===a&&function(e){throw new np(e.UTF8ToString(e.getLastOnigError()))}(nk),this._onigBinding=nk,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new nw(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(s[o++]),r=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}function nS(e){return i||(i=async function(){nk=await nf(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,s;if(void 0!==n.data&&(n=n.data),r=n,"u">typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (s=n,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==nh&&nh.isBuffer?.(i)||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await nx(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await nx(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function nx(e){return t=>WebAssembly.instantiate(e,t)}async function nv(e){return e&&await nS(e),{createScanner:e=>new nC(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new nw(e)}}let nA=nt({langs:nc,themes:nd,engine:()=>nv(Promise.all([n.e(4814),n.e(9302)]).then(n.bind(n,49302)))}),{codeToHtml:nN,codeToHast:nE,codeToTokens:nP,codeToTokensBase:nL,codeToTokensWithThemes:nI,getSingletonHighlighter:nT,getLastGrammarState:n$}=nr(nA,{guessEmbeddedLanguages:tp});function nR(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let nM=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),nG=String.raw;function nB(e,t){if(null==e)throw Error(t??"Value expected");return e}let nO=nG`\[\^?`,nD=`c.? | C(?:-.?)?|${nG`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${nG`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${nG`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${nG`o\{[^\}]*\}?`}|${nG`\d{1,3}`}`,nF=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,nU=RegExp(nG`
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4523],{64523:(e,t,n)=>{let r,i;n.r(t),n.d(t,{ShikiError:()=>a,addClassToHast:()=>tu,applyColorReplacements:()=>tr,bundledLanguages:()=>nc,bundledLanguagesAlias:()=>nl,bundledLanguagesBase:()=>no,bundledLanguagesInfo:()=>ns,bundledThemes:()=>nd,bundledThemesInfo:()=>nu,codeToHast:()=>nE,codeToHtml:()=>nN,codeToTokens:()=>nP,codeToTokensBase:()=>nL,codeToTokensWithThemes:()=>nI,createBundledHighlighter:()=>nt,createCssVariablesTheme:()=>na,createHighlighter:()=>nA,createHighlighterCore:()=>t7,createHighlighterCoreSync:()=>t4,createJavaScriptRegexEngine:()=>i_,createOnigurumaEngine:()=>nv,createPositionConverter:()=>th,createShikiInternal:()=>t6,createShikiInternalSync:()=>t8,createSingletonShorthands:()=>nr,createdBundledHighlighter:()=>ni,defaultJavaScriptRegexConstructor:()=>ik,enableDeprecationWarnings:()=>tZ,flatTokenVariants:()=>ty,getLastGrammarState:()=>n$,getSingletonHighlighter:()=>nT,getSingletonHighlighterCore:()=>ne,getTokenStyleObject:()=>tk,guessEmbeddedLanguages:()=>tp,hastToHtml:()=>tH,isNoneTheme:()=>tl,isPlainLang:()=>ts,isSpecialLang:()=>to,isSpecialTheme:()=>tc,loadWasm:()=>nS,makeSingletonHighlighter:()=>nn,makeSingletonHighlighterCore:()=>t9,normalizeGetter:()=>ta,normalizeTheme:()=>tV,resolveColorReplacements:()=>tn,splitLines:()=>td,splitToken:()=>tf,splitTokens:()=>tb,stringifyTokenStyle:()=>t_,toArray:()=>ti,tokenizeAnsiWithTheme:()=>t$,tokenizeWithTheme:()=>tG,tokensToHast:()=>tW,transformerDecorations:()=>tv,warnDeprecated:()=>tY});class a extends Error{constructor(e){super(e),this.name="ShikiError"}}var s,o,l=n(41463);function c(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var u=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,d=class{static hasCaptures(e){return null!==e&&(u.lastIndex=0,u.test(e))}static replaceCaptures(e,t,n){return e.replace(u,(e,r,i,a)=>{let s=n[parseInt(r||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function h(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function p(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function m(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var g=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},f=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&p(a.settings.foreground)&&(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&p(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),n[r++]=new k(c,u,e,s,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=h(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new w(t),s=new y(n,a.getId(r),a.getId(i)),o=new x(new S(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new f(a,s,o)}(e,t)}_cachedMatchRoot=new g(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new y(n.fontStyle,n.foreground,n.background):null}},b=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},y=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},k=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},_=((s=_||{})[s.NotSet=-1]="NotSet",s[s.None=0]="None",s[s.Italic=1]="Italic",s[s.Bold=2]="Bold",s[s.Underline=4]="Underline",s[s.Strikethrough=8]="Strikethrough",s),w=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},C=Object.freeze([]),S=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||C,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},x=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,s){let o,l,c;if(""===n)return void this._doInsertHere(t,r,i,a,s);let u=n.indexOf(".");-1===u?(o=n,l=""):(o=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),S.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,i,a,s)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===h(s.parentScopes,t))return void s.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new S(e,t,n,r,i))}},v=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),h=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=+!!i),-1!==a&&(d=a),0!==s&&(h=s),0!==o&&(p=o),(l|c<<8|u<<10|d<<11|h<<15|p<<24)>>>0}};function A(e,t){var n;let r,i,a=[],s=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return a;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o);t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(N(o)){let e=[];do e.push(o),o=s.next();while(N(o));return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function N(e){return!!e&&!!e.match(/[\w\.:]+/)}var E=((o=E||{})[o.None=0]="None",o[o.NotBeginString=1]="NotBeginString",o[o.NotEndString=2]="NotEndString",o[o.NotBeginPosition=4]="NotBeginPosition",o[o.DebugCall=8]="DebugCall",o);function P(e){"function"==typeof e.dispose&&e.dispose()}var L=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},I=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},T=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},$=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new L(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new T;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof L?M({baseGrammar:a,selfGrammar:i},r):R(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let s=n.injections(e.scopeName);if(s)for(let e of s)r.add(new L(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof L){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function R(e,t,n){t.repository&&t.repository[e]&&G([t.repository[e]],t,n)}function M(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&G(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&G(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function G(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?c({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&G(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=j(i);switch(a.kind){case 0:M({...t,selfGrammar:t.baseGrammar},n);break;case 1:M(t,n);break;case 2:R(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let r={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?R(a.ruleName,r,n):M(r,n)}else 4===a.kind?n.add(new I(a.scopeName,a.ruleName)):n.add(new L(a.scopeName))}}}var B=class{kind=0},O=class{kind=1},D=class{constructor(e){this.ruleName=e}kind=2},F=class{constructor(e){this.scopeName=e}kind=3},U=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function j(e){if("$base"===e)return new B;if("$self"===e)return new O;let t=e.indexOf("#");return -1===t?new F(e):0===t?new D(e.substring(1)):new U(e.substring(0,t),e.substring(t+1))}var W=/\\(\d+)/,H=/\\(\d+)/g;Symbol("RuleId");var q=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=d.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=d.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?d.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?d.replaceCaptures(this._contentName,e,t):this._contentName}},z=class extends q{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},V=class extends q{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Z(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},X=class extends q{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Q=class extends q{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,s,o,l,c){super(e,t,n,r),this._begin=new Z(i,this.id),this.beginCaptures=a,this._end=new Z(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new Y,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},J=class extends q{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r),this._begin=new Z(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=new Z(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new Y,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Y,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},K=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new z(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new V(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=c({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new X(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Q(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],n,r)),i[s]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=j(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[s.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,n,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else o=e.getCompiledRuleId(s,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof X||e instanceof Q||e instanceof J)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Z=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=W.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return H.lastIndex=0,this.source.replace(H,(e,t)=>m(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,s[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="",a[e+1]="",s[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="",a[e+1]="G",s[e+1]="",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,s[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Y=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ee(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new ee(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},ee=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},et=class{constructor(e,t){this.languageId=e,this.tokenType=t}},en=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new et(e,8),this._embeddedLanguagesMatcher=new er(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new et(0,0);_getBasicScopeAttributes=new g(e=>new et(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},er=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>m(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==l&&l.env.VSCODE_TEXTMATE_DEBUG;var ei=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ea(e,t,n,r,i,a,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,n,r,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof J&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,c,u,d,h;let{ruleScanner:o,findOptions:m}=(l=p.rule,c=e,u=p.stack.endRule,d=n,h=r===s,{ruleScanner:l.compileWhileAG(c,u,d,h),findOptions:0}),g=o.findNextMatchSync(t,r,m);if(g){if(-2!==g.ruleId){i=p.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(a.produce(p.stack,g.captureIndices[0].start),eo(e,t,n,p.stack,a,p.rule.whileCaptures,g.captureIndices),a.produce(p.stack,g.captureIndices[0].end),s=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}(e,t,n,r,i,a);i=s.stack,r=s.linePos,n=s.isFirstLine,u=s.anchorPosition}let d=Date.now();for(;!c;){if(0!==o&&Date.now()-d>o)return new ei(i,!0);!function(){let s=function(e,t,n,r,i,a){let s=function(e,t,n,r,i,a){let{ruleScanner:s,findOptions:o}=es(i.getRule(e),e,i.endRule,n,r===a),l=s.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,n,r,i,a,s){let o,l=Number.MAX_VALUE,c=null,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,h=e.length;a<h;a++){let h=e[a];if(!h.matcher(d))continue;let{ruleScanner:p,findOptions:m}=es(t.getRule(h.ruleId),t,null,r,i===s),g=p.findNextMatchSync(n,i,m);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=l)&&(l=f,c=g.captureIndices,o=g.ruleId,u=h.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,n,r,i,u);if(!s){a.produce(i,l),c=!0;return}let o=s.captureIndices,d=s.matchedRuleId,h=!!o&&o.length>0&&o[0].end>r;if(-1===d){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),eo(e,t,n,i,a,s.endCaptures,o),a.produce(i,o[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!h&&d.getEnterPos()===r){i=d,a.produce(i,l),c=!0;return}}else{let s=e.getRule(d);a.produce(i,o[0].start);let p=i,m=s.getName(t.content,o),g=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,o[0].end===l,null,g,g),s instanceof Q){eo(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),d=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(s instanceof J){eo(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),d=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(d),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!h&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(eo(e,t,n,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!h){i=i.safePop(),a.produce(i,l),c=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new ei(i,!1)}function es(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eo(e,t,n,r,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let d=s[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=a.pushAttributed(c,e),h=r.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(o.substring(0,d.end));ea(e,p,n&&0===d.start,d.start,h,i,!1,0),P(p);continue}let h=l.getName(o,s);if(null!==h){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new el(t,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var el=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ec(e,t,n,r,i){let a=A(t,eu),s=K.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:s,grammar:i,priority:n.priority})}function eu(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var ed=class{constructor(e,t,n,r,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new en(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=eh(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of A(e,eu))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)ec(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&ec(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=eh(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=K.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==em.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=v.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?ep.createRootAndLookUpScopeName(s,a,this):ep.createRoot("unknown",a),t=new em(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new ef(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ea(this,a,i,0,t,o,!0,r);return P(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eh(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ep=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=b.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new b(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new b(null,t),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),v.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},em=class e{constructor(e,t,n,r,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&ep.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,s,o){return new e(this,t,n,r,i,a,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=ep.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ep.fromExtension(r,n.contentNameScopesList))}},eg=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):A(e,eu).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>A(e,eu).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ef=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=v.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=v.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},eb=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new ed(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},ey=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eb(f.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(f.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new eg(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new $(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},ek=em.NULL,e_=n(51640),ew=n(4918),eC=n(27629);let eS=/["&'<>`]/g,ex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ev=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eA=/[|\\{}()[\]^$+*?.]/g,eN=new WeakMap,eE=/[\dA-Fa-f]/,eP=/\d/;var eL=n(6801);let eI={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},eT=["cent","copy","divide","gt","lt","not","para","times"],e$={}.hasOwnProperty,eR={};for(r in eI)e$.call(eI,r)&&(eR[eI[r]]=r);let eM=/[^\dA-Za-z]/;function eG(e,t,n){var r,i;let a,s,o=(r=n.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),r&&t&&!eE.test(String.fromCharCode(t))?a:a+";");if((n.useNamedReferences||n.useShortestReferences)&&(s=function(e,t,n,r){let i=String.fromCharCode(e);if(e$.call(eR,i)){let e=eR[i],a="&"+e;return n&&eL.K.includes(e)&&!eT.includes(e)&&(!r||t&&61!==t&&eM.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){let r,a=(i=n.omitOptionalSemicolons,r="&#"+String(e),i&&t&&!eP.test(String.fromCharCode(t))?r:r+";");a.length<o.length&&(o=a)}return s&&(!n.useShortestReferences||s.length<o.length)?s:o}function eB(e,t){let n;var r,i=e,a=Object.assign({format:eG},t);if(i=i.replace(a.subset?(r=a.subset,(n=eN.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eA,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),eN.set(r,n)),n):eS,s),a.subset||a.escapeOnly)return i;return i.replace(ex,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(ev,s);function s(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let eO=/^>|^->|<!--|-->|--!>|<!-$/g,eD=[">"],eF=["<",">"];var eU=n(49884),ej=n(86994),eW=n(38609),eH=n(51705),eq=n(36887);let ez=eQ(1),eV=eQ(-1),eX=[];function eQ(e){return function(t,n,r){let i=t?t.children:eX,a=(n||0)+e,s=i[a];if(!r)for(;s&&(0,eq.m)(s);)a+=e,s=i[a];return s}}let eJ={}.hasOwnProperty;function eK(e){return function(t,n,r){return eJ.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let eZ=eK({body:function(e,t,n){let r=ez(n,t);return!r||"comment"!==r.type},caption:eY,colgroup:eY,dd:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=ez(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:eY,html:function(e,t,n){let r=ez(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=ez(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:e0,rt:e0,tbody:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:e1,tfoot:function(e,t,n){return!ez(n,t)},th:e1,thead:function(e,t,n){let r=ez(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function eY(e,t,n){let r=ez(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,eq.m)(r.value.charAt(0)))}function e0(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function e1(e,t,n){let r=ez(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let e2=eK({body:function(e){let t=ez(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eq.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=eV(n,t),i=ez(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&eZ(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=ez(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=eV(n,t),i=ez(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&eZ(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),e3={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e5=["<","&"];function e8(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eB(e.value,Object.assign({},r.settings.characterReferences,{subset:e5}))}let e6=(0,eC.A)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+eB(e.value,Object.assign({},r.settings.characterReferences,{subset:eD}))+">":"\x3c!--"+e.value.replace(eO,function(e){return eB(e,Object.assign({},r.settings.characterReferences,{subset:eF}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,s="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=ew.JW);let c=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=(0,eW.I)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eB(i.attribute,Object.assign({},e.settings.characterReferences,{subset:e3.name[a][s]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?ej.A:eH.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=eB(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e3.unquoted[a][s]}))),r!==n&&(e.settings.quoteSmart&&(0,eU.D)(n,o)>(0,eU.D)(n,e.alternative)&&(o=e.alternative),r=o+eB(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e3.single:e3.double)[a][s],attribute:!0}))+o),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(o=!1),!c&&s&&e2(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&eZ(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:e8(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:e8}}),e7={},e4={},e9=[];function te(e,t,n){return e6(e,t,n,this)}function tt(e){let t=[],n=e&&e.children||e9,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function tn(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function tr(e,t){return e&&t?.[e?.toLowerCase()]||e}function ti(e){return Array.isArray(e)?e:[e]}async function ta(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function ts(e){return!e||["plaintext","txt","text","plain"].includes(e)}function to(e){return"ansi"===e||ts(e)}function tl(e){return"none"===e}function tc(e){return tl(e)}function tu(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function td(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}function th(e){let t=td(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}function tp(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}let tm="light-dark()",tg=["color","background-color"];function tf(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function tb(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?tf(e,t):e})):e}function ty(e,t,n,r,i="css-vars"){let s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>tk(e.variants[t])),l=new Set(o.flatMap(e=>Object.keys(e))),c={},u=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let s of l){let l=e[s]||"inherit";if(0===n&&r&&tg.includes(s))if(r===tm&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new a('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let d=o[e][s]||"inherit",h=o[r][s]||"inherit";c[s]=`light-dark(${d}, ${h})`,"css-vars"===i&&(c[u(n,s)]=l)}else c[s]=l;else"css-vars"===i&&(c[u(n,s)]=l)}}),s.htmlStyle=c,s}function tk(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&_.Italic&&(t["font-style"]="italic"),e.fontStyle&_.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&_.Underline&&n.push("underline"),e.fontStyle&_.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function t_(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tw=new WeakMap;function tC(e,t){tw.set(e,t)}function tS(e){return tw.get(e)}class tx{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tx(Object.fromEntries(ti(t).map(e=>[e,ek])),e)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,r;return t=this._stacks[e],n=[],r=new Set,!function e(t){if(r.has(t))return;r.add(t);let i=t?.nameScopesList?.scopeName;i&&n.push(i),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function tv(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new a(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new a(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new a(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=th(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new a(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,s=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||s||o||l){if(i&&s||o&&l||o&&n.start.offset===n.end.offset||s&&t.start.offset===t.end.offset)continue;throw new a(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length)return tb(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new a(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],l="",c=-1,u=-1;if(0===t&&(c=0),0===n&&(u=0),n===1/0&&(u=o.children.length),-1===c||-1===u)for(let e=0;e<o.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===c&&l.length===t&&(c=e+1),-1===u&&l.length===n&&(u=e+1);if(-1===c)throw new a(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===u)throw new a(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let d=o.children.slice(c,u);if(i.alwaysWrap||d.length!==o.children.length)if(i.alwaysWrap||1!==d.length||"element"!==d[0].type){let e={type:"element",tagName:"span",properties:{},children:d};s(e,i,"wrapper"),o.children.splice(c,d.length,e)}else s(d[0],i,"token");else s(o,i,"line")}function s(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&tu(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=s(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}let tA=[tv()];function tN(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tA]}var tE=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tP={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tL(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tI={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let tT={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function t$(e,t,n){let r,i,a,s=tn(e,n),o=td(t),l=function(e=tI){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<tE.length;n++)t.push(e[tE[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tE.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||tT[t]]}))),c=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let s=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=s.sequence?e.substring(n,s.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:i,decorations:new Set(a)}),s.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)tP[r]&&t.push({type:"setDecoration",value:tP[r]});else if(r<=29){let e=tP[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tE[r-30]}});else if(38===r){let n=tL(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tE[r-40]}});else if(48===r){let n=tL(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tE[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tE[r-100+8]}})}return t}(s.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=s.position}while(n<e.length);return t}});return o.map(t=>c.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=tr(r,s),i=tr(i,s),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3],a=Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${r}${r}${a}`}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=_.None;return n.decorations.has("bold")&&(a|=_.Bold),n.decorations.has("italic")&&(a|=_.Italic),n.decorations.has("underline")&&(a|=_.Underline),n.decorations.has("strikethrough")&&(a|=_.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}function tR(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(ts(i)||tl(r))return td(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:s,colorMap:o}=e.setTheme(r);if("ansi"===i)return t$(s,t,n);let l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new a(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(s.name))throw new a(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return tG(t,l,s,o,n)}function tM(...e){if(2===e.length)return tS(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:s=t.getLoadedThemes()[0]}=r;if(ts(i)||tl(s))throw new a("Plain language does not have grammar state");if("ansi"===i)throw new a("ANSI language does not have grammar state");let{theme:o,colorMap:l}=t.setTheme(s),c=t.getLanguage(i);return new tx(tB(n,c,o,l,r).stateStack,c.name,o.name)}function tG(e,t,n,r,i){let a=tB(e,t,n,r,i),s=new tx(a.stateStack,t.name,n.name);return tC(a.tokens,s),a.tokens}function tB(e,t,n,r,i){let s=tn(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,c=td(e),u=i.grammarState?function(e,t){if(!(e instanceof tx))throw new a("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??ek:null!=i.grammarContextCode?tB(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ek,d=[],h=[];for(let e=0,a=c.length;e<a;e++){let a,p,[m,g]=c[e];if(""===m){d=[],h.push([]);continue}if(o>0&&m.length>=o){d=[],h.push([{content:m,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(a=t.tokenizeLine(m,u,l).tokens,p=0);let f=t.tokenizeLine2(m,u,l),b=f.tokens.length/2;for(let e=0;e<b;e++){let t=f.tokens[2*e],o=e+1<b?f.tokens[2*e+2]:m.length;if(t===o)continue;let l=f.tokens[2*e+1],c=tr(r[v.getForeground(l)],s),u=v.getFontStyle(l),h={content:m.substring(t,o),offset:g+t,color:c,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}h.explanation=[];let r=0;for(;t+r<o;){let t=a[p],n=m.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tO(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tO(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}d.push(h)}h.push(d),d=[],u=f.ruleStack}return{tokens:h,stateStack:u}}function tO(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tD(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=tR(e,t,{...n,theme:r.theme}),a=tS(i);return{tokens:i,state:a,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let s=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(a[t].push(n),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...i.map(e=>e.tokens)),s=a[0].map((e,t)=>e.map((e,i)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:o,offset:l,...c}=e[t][i];s.variants[r[n].color]=c}),s})),o=i[0].state?new tx(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return o&&tC(s,o),s}function tF(e,t,n){let r,i,s,o,l,c;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:d="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(0===p.length)throw new a("`themes` option must not be empty");let m=tD(e,t,n);if(c=tS(m),u&&tm!==u&&!p.find(e=>e.color===u))throw new a(`\`themes\` option must contain the defaultColor key \`${u}\``);let g=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);s=m.map(e=>e.map(e=>ty(e,f,d,u,h))),c&&tC(s,c);let b=p.map(e=>tn(e.theme,n));i=tU(p,g,b,d,u,"fg",h),r=tU(p,g,b,d,u,"bg",h),o=`shiki-themes ${g.map(e=>e.name).join(" ")}`,l=u?void 0:[i,r].join(";")}else if("theme"in n){let a=tn(n.theme,n);s=tR(e,t,n);let l=e.getTheme(n.theme);r=tr(l.bg,a),i=tr(l.fg,a),o=l.name,c=tS(s)}else throw new a("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:l,grammarState:c}}function tU(e,t,n,r,i,s,o){return e.map((l,c)=>{let u=tr(t[c][s],n[c])||"inherit",d=`${r+l.color}${"bg"===s?"-bg":""}:${u}`;if(0===c&&i){if(i===tm&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new a('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=tr(t[r][s],n[r])||"inherit",l=tr(t[i][s],n[i])||"inherit";return`light-dark(${o}, ${l});${d}`}return u}return"css-vars"===o?d:null}).filter(e=>!!e).join(";")}function tj(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>tj(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)}){let i=t;for(let e of tN(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}=tF(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:h=!1}=n;!0===d?a=a.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&_.Underline||i.fontStyle&_.Strikethrough));s&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(s?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===d&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),h&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=t_(e.htmlStyle||tk(e)),i=t_(n.htmlStyle||tk(n)),a=e.fontStyle&&(e.fontStyle&_.Underline||e.fontStyle&_.Strikethrough),s=n.fontStyle&&(n.fontStyle&_.Underline||n.fontStyle&_.Strikethrough);a||s||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of tN(n))a=e.tokens?.call(p,a)||a;return tW(a,{...n,fg:s,bg:o,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??c)},p,u)}function tW(e,t,n,r=tS(e)){let i=tN(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=n);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:a},h=[],p={...n,structure:o,addClassToHast:tu,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return d},get lines(){return h}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=t_(a.htmlStyle||tk(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(p,e,t+1,r,n,a)||e;"inline"===o?s.children.push(e):"classic"===o&&n.children.push(e),r+=a.content.length}if("classic"===o){for(let e of i)n=e?.line?.call(p,n,t+1)||n;h.push(n),a.push(n)}else"inline"===o&&h.push(n)}),"classic"===o){for(let e of i)d=e?.code?.call(p,d)||d;for(let e of(u.children.push(d),i))u=e?.pre?.call(p,u)||u;s.children.push(u)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of s.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;s.children=[];for(let e=0;e<n.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&s.children.push(...t.children)}}let m=s;for(let e of i)m=e?.root?.call(p,m)||m;return r&&tC(m,r),m}let tH=function(e,t){let n=t||e7,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:te,all:tt,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||e_.b,characterReferences:n.characterReferences||e4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?ew.JW:ew.qy,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};function tq(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>tj(e,t,n),codeToTokens:(t,n)=>tF(e,t,n)},i=tH(tj(e,t,n,r));for(let e of tN(n))i=e.postprocess?.call(r,i,n)||i;return i}let tz="__shiki_resolved";function tV(e){if(e?.[tz])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function s(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?s(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=s(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=s(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=s(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tz,{enumerable:!1,writable:!1,value:!0}),t}async function tX(e){return Array.from(new Set((await Promise.all(e.filter(e=>!to(e)).map(async e=>await ta(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tQ(e){return(await Promise.all(e.map(async e=>tl(e)?null:tV(await ta(e))))).filter(e=>!!e)}let tJ=3,tK=!1;function tZ(e=!0,t=!1){tJ=e,tK=t}function tY(e,t=3){if(tJ&&("number"!=typeof tJ||!(t>tJ)))if(tK)throw Error(`[SHIKI DEPRECATE]: ${e}`);else console.trace(`[SHIKI DEPRECATE]: ${e}`)}class t0 extends Error{constructor(e){super(e),this.name="ShikiError"}}function t1(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new t0(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class t2 extends ey{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tV(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=f.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=t1(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>{if(!t)return!1;let r=t.embeddedLanguages||t.embeddedLangs;return r?.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new t0(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class t3{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let t5=0;function t8(e){let t;t5+=1,!1!==e.warnings&&t5>=10&&t5%10==0&&console.warn(`[Shiki] ${t5} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new t0("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tV),a=new t2(new t3(e.engine,r),i,r,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new t0(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))a.loadTheme(t)}function c(){if(n)throw new t0("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),t5-=1)}return{setTheme:function(e){c();let n=s(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new t0(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return t1(t,e.langAlias)},loadLanguage:async function(...e){return o(await tX(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await tQ(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}async function t6(e){e.engine||tY("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tQ(e.themes||[]),tX(e.langs||[]),e.engine]);return t8({...e,themes:t,langs:n,engine:r})}async function t7(e){let t=await t6(e);return{getLastGrammarState:(...e)=>tM(t,...e),codeToTokensBase:(e,n)=>tR(t,e,n),codeToTokensWithThemes:(e,n)=>tD(t,e,n),codeToTokens:(e,n)=>tF(t,e,n),codeToHast:(e,n)=>tj(t,e,n),codeToHtml:(e,n)=>tq(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function t4(e){let t=t8(e);return{getLastGrammarState:(...e)=>tM(t,...e),codeToTokensBase:(e,n)=>tR(t,e,n),codeToTokensWithThemes:(e,n)=>tD(t,e,n),codeToTokens:(e,n)=>tF(t,e,n),codeToHast:(e,n)=>tj(t,e,n),codeToHtml:(e,n)=>tq(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function t9(e){let t;return async function(n){if(!t)return t=e({...n,themes:n.themes||[],langs:n.langs||[]});{let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}}}let ne=t9(t7);function nt(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(n){if("string"==typeof n){if(to(n=e.langAlias?.[n]||n))return[];let r=t[n];if(!r)throw new a(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function s(e){if(tl(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new a(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>s(e)),l=(e.langs??[]).map(e=>i(e)),c=await t7({engine:e.engine??r(),...e,themes:o,langs:l});return{...c,loadLanguage:(...e)=>c.loadLanguage(...e.map(i)),loadTheme:(...e)=>c.loadTheme(...e.map(s)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}function nn(e){let t;return async function(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}}function nr(e,t){let n=nn(e);async function r(e,r){let i=await n({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await r(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await r(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await r(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await r(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await r(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}let ni=nt;function na(e={}){let{name:t="css-variables",variablePrefix:n="--shiki-",fontStyle:r=!0}=e,i=t=>e.variableDefaults?.[t]?`var(${n}${t}, ${e.variableDefaults[t]})`:`var(${n}${t})`,a={name:t,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return r||(a.tokenColors=a.tokenColors?.map(e=>(e.settings?.fontStyle&&delete e.settings.fontStyle,e))),a}let ns=[{id:"abap",name:"ABAP",import:()=>n.e(8773).then(n.bind(n,48773))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(36).then(n.bind(n,10036))},{id:"ada",name:"Ada",import:()=>n.e(5575).then(n.bind(n,55575))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3175)]).then(n.bind(n,23175))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(2577),n.e(1630),n.e(3782),n.e(3476),n.e(3111),n.e(3186)]).then(n.bind(n,76359))},{id:"apache",name:"Apache Conf",import:()=>n.e(2765).then(n.bind(n,52765))},{id:"apex",name:"Apex",import:()=>n.e(7455).then(n.bind(n,27455))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(4174)]).then(n.bind(n,54174))},{id:"applescript",name:"AppleScript",import:()=>n.e(9178).then(n.bind(n,19178))},{id:"ara",name:"Ara",import:()=>n.e(3313).then(n.bind(n,93313))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(8318).then(n.bind(n,98318))},{id:"asm",name:"Assembly",import:()=>n.e(7846).then(n.bind(n,87846))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(3782),n.e(6686)]).then(n.bind(n,36686))},{id:"awk",name:"AWK",import:()=>n.e(4900).then(n.bind(n,54900))},{id:"ballerina",name:"Ballerina",import:()=>n.e(2747).then(n.bind(n,92747))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(3290).then(n.bind(n,73290))},{id:"beancount",name:"Beancount",import:()=>n.e(8496).then(n.bind(n,98496))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(5331).then(n.bind(n,95331))},{id:"bibtex",name:"BibTeX",import:()=>n.e(5937).then(n.bind(n,25937))},{id:"bicep",name:"Bicep",import:()=>n.e(8406).then(n.bind(n,68406))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e(1410).then(n.bind(n,71410))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(5005)]).then(n.bind(n,25005))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(4608).then(n.bind(n,4608))},{id:"c",name:"C",import:()=>n.e(8192).then(n.bind(n,88192))},{id:"c3",name:"C3",import:()=>n.e(7113).then(n.bind(n,7113))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(4242).then(n.bind(n,64242))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(893),n.e(4367)]).then(n.bind(n,84367))},{id:"clarity",name:"Clarity",import:()=>n.e(5183).then(n.bind(n,15183))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(6959).then(n.bind(n,66959))},{id:"cmake",name:"CMake",import:()=>n.e(5482).then(n.bind(n,55482))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(5498)]).then(n.bind(n,15498))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(1188).then(n.bind(n,21188))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(2403).then(n.bind(n,22403))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(2577),n.e(6647)]).then(n.bind(n,76647))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(3787).then(n.bind(n,93787))},{id:"coq",name:"Coq",import:()=>n.e(5920).then(n.bind(n,55920))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(6666),n.e(8835),n.e(2503),n.e(8192),n.e(6110)]).then(n.bind(n,27816))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2503),n.e(8192),n.e(7152),n.e(1413)]).then(n.bind(n,21413))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(9261).then(n.bind(n,71642))},{id:"css",name:"CSS",import:()=>n.e(3782).then(n.bind(n,63782))},{id:"csv",name:"CSV",import:()=>n.e(6331).then(n.bind(n,66331))},{id:"cue",name:"CUE",import:()=>n.e(5338).then(n.bind(n,45338))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(4350).then(n.bind(n,14350))},{id:"d",name:"D",import:()=>n.e(9015).then(n.bind(n,59015))},{id:"dart",name:"Dart",import:()=>n.e(3288).then(n.bind(n,3288))},{id:"dax",name:"DAX",import:()=>n.e(1932).then(n.bind(n,21932))},{id:"desktop",name:"Desktop",import:()=>n.e(7819).then(n.bind(n,7819))},{id:"diff",name:"Diff",import:()=>n.e(2614).then(n.bind(n,62614))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(2783).then(n.bind(n,52783))},{id:"dotenv",name:"dotEnv",import:()=>n.e(4829).then(n.bind(n,44829))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(425).then(n.bind(n,32806))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(7844)]).then(n.bind(n,67844))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(698)]).then(n.bind(n,20698))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(8192),n.e(4583)]).then(n.bind(n,84583))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(3879).then(n.bind(n,62965))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(8848),n.e(1198)]).then(n.bind(n,91198))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(3304),n.e(4678)]).then(n.bind(n,64678))},{id:"fennel",name:"Fennel",import:()=>n.e(2964).then(n.bind(n,60583))},{id:"fish",name:"Fish",import:()=>n.e(2349).then(n.bind(n,52349))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(6293).then(n.bind(n,26293))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(4823),n.e(5061)]).then(n.bind(n,85061))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(4823).then(n.bind(n,94823))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(3304),n.e(2501)]).then(n.bind(n,52501))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(8670).then(n.bind(n,98670))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(4223).then(n.bind(n,34223))},{id:"gdshader",name:"GDShader",import:()=>n.e(7977).then(n.bind(n,67977))},{id:"genie",name:"Genie",import:()=>n.e(2031).then(n.bind(n,42031))},{id:"gherkin",name:"Gherkin",import:()=>n.e(8457).then(n.bind(n,88457))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(2041).then(n.bind(n,92041))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(7152),n.e(3194)]).then(n.bind(n,33194))},{id:"gleam",name:"Gleam",import:()=>n.e(2895).then(n.bind(n,62895))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(640)]).then(n.bind(n,30640))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(9186)]).then(n.bind(n,59186))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(8192),n.e(6887)]).then(n.bind(n,6887))},{id:"gn",name:"GN",import:()=>n.e(9448).then(n.bind(n,99448))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(9690).then(n.bind(n,79690))},{id:"go",name:"Go",import:()=>n.e(4553).then(n.bind(n,64553))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(1248)]).then(n.bind(n,41248))},{id:"groovy",name:"Groovy",import:()=>n.e(9189).then(n.bind(n,39189))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2503),n.e(400)]).then(n.bind(n,70400))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3437)]).then(n.bind(n,63437))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2735)]).then(n.bind(n,12735))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(1335).then(n.bind(n,21335))},{id:"haxe",name:"Haxe",import:()=>n.e(1215).then(n.bind(n,11215))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(2374).then(n.bind(n,82374))},{id:"hjson",name:"Hjson",import:()=>n.e(9421).then(n.bind(n,79421))},{id:"hlsl",name:"HLSL",import:()=>n.e(10).then(n.bind(n,80010))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476)]).then(n.bind(n,43476))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(1656)]).then(n.bind(n,51656))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6931),n.e(7152),n.e(1248),n.e(8243)]).then(n.bind(n,98243))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6931),n.e(1248),n.e(816)]).then(n.bind(n,20816))},{id:"hxml",name:"HXML",import:()=>n.e(376).then(n.bind(n,50376))},{id:"hy",name:"Hy",import:()=>n.e(6938).then(n.bind(n,26938))},{id:"imba",name:"Imba",import:()=>n.e(794).then(n.bind(n,30794))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(4309).then(n.bind(n,34309))},{id:"java",name:"Java",import:()=>n.e(6931).then(n.bind(n,76931))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(2577).then(n.bind(n,52970))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3392)]).then(n.bind(n,43392))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(2577),n.e(6402)]).then(n.bind(n,36402))},{id:"json",name:"JSON",import:()=>n.e(4053).then(n.bind(n,4053))},{id:"json5",name:"JSON5",import:()=>n.e(3860).then(n.bind(n,63860))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(4650).then(n.bind(n,4650))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(1453).then(n.bind(n,91453))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(8132).then(n.bind(n,8132))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(4634).then(n.bind(n,24634))},{id:"jsx",name:"JSX",import:()=>n.e(9312).then(n.bind(n,29228))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(2577),n.e(6666),n.e(8835),n.e(2503),n.e(8192),n.e(893),n.e(6339)]).then(n.bind(n,85816))},{id:"just",name:"Just",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(8848),n.e(968),n.e(8977)]).then(n.bind(n,18977))},{id:"kdl",name:"KDL",import:()=>n.e(5968).then(n.bind(n,95968))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(6572).then(n.bind(n,26572))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(583).then(n.bind(n,50583))},{id:"latex",name:"LaTeX",import:()=>n.e(2839).then(n.bind(n,72839))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(7227).then(n.bind(n,77227))},{id:"less",name:"Less",import:()=>n.e(1280).then(n.bind(n,11280))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(5347)]).then(n.bind(n,25347))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9220).then(n.bind(n,19220))},{id:"log",name:"Log file",import:()=>n.e(6741).then(n.bind(n,16741))},{id:"logo",name:"Logo",import:()=>n.e(5670).then(n.bind(n,25670))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(8192),n.e(3873)]).then(n.bind(n,33873))},{id:"luau",name:"Luau",import:()=>n.e(3072).then(n.bind(n,33072))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(541).then(n.bind(n,30541))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(3304).then(n.bind(n,90923))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(535),n.e(3782),n.e(3111),n.e(1280),n.e(5645)]).then(n.bind(n,65645))},{id:"matlab",name:"MATLAB",import:()=>n.e(1184).then(n.bind(n,31184))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3304),n.e(6729)]).then(n.bind(n,86729))},{id:"mdx",name:"MDX",import:()=>n.e(5690).then(n.bind(n,55690))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(9842).then(n.bind(n,29842))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(1501).then(n.bind(n,11501))},{id:"mojo",name:"Mojo",import:()=>n.e(194).then(n.bind(n,50194))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(4567).then(n.bind(n,24567))},{id:"move",name:"Move",import:()=>n.e(4540).then(n.bind(n,24540))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(6455).then(n.bind(n,36455))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(5320).then(n.bind(n,35320))},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>n.e(3633).then(n.bind(n,53633))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(8192),n.e(2215)]).then(n.bind(n,2215))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(8192),n.e(3304),n.e(7799)]).then(n.bind(n,7799))},{id:"nix",name:"Nix",import:()=>n.e(6099).then(n.bind(n,86099))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(8288).then(n.bind(n,38288))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(6290).then(n.bind(n,36290))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(4763).then(n.bind(n,21946))},{id:"ocaml",name:"OCaml",import:()=>n.e(3419).then(n.bind(n,3419))},{id:"odin",name:"Odin",import:()=>n.e(9547).then(n.bind(n,69547))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(4474).then(n.bind(n,4474))},{id:"pascal",name:"Pascal",import:()=>n.e(6948).then(n.bind(n,46948))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(968),n.e(7040)]).then(n.bind(n,30968))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(6155),n.e(4659)]).then(n.bind(n,86155))},{id:"pkl",name:"Pkl",import:()=>n.e(6166).then(n.bind(n,96166))},{id:"plsql",name:"PL/SQL",import:()=>n.e(8947).then(n.bind(n,48947))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(3324).then(n.bind(n,43324))},{id:"polar",name:"Polar",import:()=>n.e(3095).then(n.bind(n,93095))},{id:"postcss",name:"PostCSS",import:()=>n.e(9240).then(n.bind(n,19240))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(9294).then(n.bind(n,19294))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(7636).then(n.bind(n,7636))},{id:"prisma",name:"Prisma",import:()=>n.e(327).then(n.bind(n,40327))},{id:"prolog",name:"Prolog",import:()=>n.e(34).then(n.bind(n,80034))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(8545).then(n.bind(n,58545))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(5755)]).then(n.bind(n,55755))},{id:"puppet",name:"Puppet",import:()=>n.e(9569).then(n.bind(n,19569))},{id:"purescript",name:"PureScript",import:()=>n.e(6580).then(n.bind(n,36580))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(893).then(n.bind(n,40893))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(2577),n.e(3077)]).then(n.bind(n,73077))},{id:"qmldir",name:"QML Directory",import:()=>n.e(6144).then(n.bind(n,46144))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(5712).then(n.bind(n,55712))},{id:"r",name:"R",import:()=>n.e(5025).then(n.bind(n,25025))},{id:"racket",name:"Racket",import:()=>n.e(3229).then(n.bind(n,3229))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(252).then(n.bind(n,30252))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(9261),n.e(4903)]).then(n.bind(n,84903))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(5997).then(n.bind(n,85997))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(6412).then(n.bind(n,86412))},{id:"rel",name:"Rel",import:()=>n.e(2062).then(n.bind(n,62062))},{id:"riscv",name:"RISC-V",import:()=>n.e(2710).then(n.bind(n,52710))},{id:"ron",name:"RON",import:()=>n.e(862).then(n.bind(n,80862))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(5728).then(n.bind(n,95728))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(8848),n.e(123)]).then(n.bind(n,52504))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(8848)]).then(n.bind(n,72331))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(1161).then(n.bind(n,61161))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(2503),n.e(6360)]).then(n.bind(n,66360))},{id:"sass",name:"Sass",import:()=>n.e(8113).then(n.bind(n,88113))},{id:"scala",name:"Scala",import:()=>n.e(9377).then(n.bind(n,89377))},{id:"scheme",name:"Scheme",import:()=>n.e(7142).then(n.bind(n,97142))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(3782),n.e(3111)]).then(n.bind(n,43111))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(9648).then(n.bind(n,59648))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(1379).then(n.bind(n,1379))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(7152).then(n.bind(n,57152))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(7152),n.e(8257)]).then(n.bind(n,8257))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(1556).then(n.bind(n,61556))},{id:"solidity",name:"Solidity",import:()=>n.e(8704).then(n.bind(n,38704))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2728)]).then(n.bind(n,72728))},{id:"sparql",name:"SPARQL",import:()=>n.e(8432).then(n.bind(n,68432))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(7610).then(n.bind(n,47610))},{id:"sql",name:"SQL",import:()=>n.e(2503).then(n.bind(n,2503))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(6046).then(n.bind(n,16046))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(2503),n.e(4080)]).then(n.bind(n,64080))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(7557).then(n.bind(n,97557))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(2577),n.e(830)]).then(n.bind(n,30830))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(1142)]).then(n.bind(n,81142))},{id:"swift",name:"Swift",import:()=>n.e(5922).then(n.bind(n,35922))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(3274).then(n.bind(n,90893))},{id:"systemd",name:"Systemd Units",import:()=>n.e(9006).then(n.bind(n,9006))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(1078).then(n.bind(n,21078))},{id:"tasl",name:"Tasl",import:()=>n.e(4963).then(n.bind(n,94963))},{id:"tcl",name:"Tcl",import:()=>n.e(1274).then(n.bind(n,41274))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(4553),n.e(1977)]).then(n.bind(n,81977))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(3483).then(n.bind(n,43483))},{id:"tex",name:"TeX",import:()=>n.e(1456).then(n.bind(n,11456))},{id:"toml",name:"TOML",import:()=>n.e(4163).then(n.bind(n,84163))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(4357)]).then(n.bind(n,74357))},{id:"tsv",name:"TSV",import:()=>n.e(840).then(n.bind(n,30840))},{id:"tsx",name:"TSX",import:()=>n.e(6814).then(n.bind(n,33710))},{id:"turtle",name:"Turtle",import:()=>n.e(1365).then(n.bind(n,41365))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(8848),n.e(3111),n.e(6155),n.e(6588)]).then(n.bind(n,96588))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(535).then(n.bind(n,5346))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(9466).then(n.bind(n,19466))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(2013).then(n.bind(n,62013))},{id:"v",name:"V",import:()=>n.e(7525).then(n.bind(n,7525))},{id:"vala",name:"Vala",import:()=>n.e(9565).then(n.bind(n,59565))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(2179).then(n.bind(n,62179))},{id:"verilog",name:"Verilog",import:()=>n.e(7182).then(n.bind(n,34801))},{id:"vhdl",name:"VHDL",import:()=>n.e(7425).then(n.bind(n,37425))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(4539).then(n.bind(n,14539))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(5553)]).then(n.bind(n,45553))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(2577),n.e(7021)]).then(n.bind(n,17021))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(2577),n.e(1290),n.e(3782),n.e(3111),n.e(1280),n.e(9779)]).then(n.bind(n,98110))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(1219).then(n.bind(n,21219))},{id:"wasm",name:"WebAssembly",import:()=>n.e(4275).then(n.bind(n,84275))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(5269).then(n.bind(n,65269))},{id:"wgsl",name:"WGSL",import:()=>n.e(4976).then(n.bind(n,44976))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(4370).then(n.bind(n,44370))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(624).then(n.bind(n,58243))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(7442).then(n.bind(n,6987))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(6931),n.e(2278)]).then(n.bind(n,77040))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(6931),n.e(3942)]).then(n.bind(n,3942))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(5518).then(n.bind(n,95518))},{id:"zenscript",name:"ZenScript",import:()=>n.e(2485).then(n.bind(n,92485))},{id:"zig",name:"Zig",import:()=>n.e(7041).then(n.bind(n,57041))}],no=Object.fromEntries(ns.map(e=>[e.id,e.import])),nl=Object.fromEntries(ns.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),nc={...no,...nl},nu=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(2812).then(n.bind(n,62812))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(7635).then(n.bind(n,27635))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(7884).then(n.bind(n,77884))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(4358).then(n.bind(n,94358))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(9005).then(n.bind(n,19005))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(1595).then(n.bind(n,51595))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(3979).then(n.bind(n,83979))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(9680).then(n.bind(n,59680))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(2107).then(n.bind(n,2107))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(5375).then(n.bind(n,75375))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(5136).then(n.bind(n,55136))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(4295).then(n.bind(n,4295))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(7258).then(n.bind(n,87258))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9996).then(n.bind(n,49996))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(9224).then(n.bind(n,39224))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(6704).then(n.bind(n,86704))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(6927).then(n.bind(n,96927))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(5424).then(n.bind(n,15424))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(3082).then(n.bind(n,23082))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(9382).then(n.bind(n,69382))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(2130).then(n.bind(n,32130))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(9666).then(n.bind(n,49666))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(392).then(n.bind(n,80392))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(9841).then(n.bind(n,49841))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(3492).then(n.bind(n,53492))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(214).then(n.bind(n,214))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(579).then(n.bind(n,60579))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(6311).then(n.bind(n,96311))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>n.e(3526).then(n.bind(n,23526))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(7524).then(n.bind(n,7524))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(6563).then(n.bind(n,56563))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(6701).then(n.bind(n,26701))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(7785).then(n.bind(n,97785))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(9136).then(n.bind(n,19136))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(2489).then(n.bind(n,82489))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(1247).then(n.bind(n,21247))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(6859).then(n.bind(n,76859))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(7921).then(n.bind(n,67921))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(6846).then(n.bind(n,96846))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(3074).then(n.bind(n,83074))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(9521).then(n.bind(n,89521))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(6089).then(n.bind(n,6089))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(5520).then(n.bind(n,15520))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(4969).then(n.bind(n,44969))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(2954).then(n.bind(n,92954))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(5491).then(n.bind(n,5491))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(9615).then(n.bind(n,9615))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7625).then(n.bind(n,67625))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(1534).then(n.bind(n,21534))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(8430).then(n.bind(n,28430))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(8555).then(n.bind(n,48555))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(7082).then(n.bind(n,87082))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(1583).then(n.bind(n,1583))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(5750).then(n.bind(n,35750))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(7465).then(n.bind(n,17465))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(1898).then(n.bind(n,21898))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(7130).then(n.bind(n,67130))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(966).then(n.bind(n,966))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(1664).then(n.bind(n,31664))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(3286).then(n.bind(n,83286))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(4593).then(n.bind(n,94593))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(9267).then(n.bind(n,39267))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(7889).then(n.bind(n,47889))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(5318).then(n.bind(n,55318))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(8656).then(n.bind(n,78656))}],nd=Object.fromEntries(nu.map(e=>[e.id,e.import]));var nh=n(49304).Buffer;class np extends Error{constructor(e){super(e),this.name="ShikiError"}}function nm(){return"u">typeof performance?performance.now():Date.now()}let ng=(e,t)=>e+(t-e%t)%t;async function nf(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){s+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(n);else{let e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(r.HEAPU8,e,t):""}let o={emscripten_get_now:nm,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let s=a*(1+.2/r);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,ng(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=s}return await l(),r}var nb=Object.defineProperty,ny=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?nb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let nk=null;class n_{constructor(e){ny(this,"utf16Length"),ny(this,"utf8Length"),ny(this,"utf16Value"),ny(this,"utf8Value"),ny(this,"utf16OffsetToUtf8"),ny(this,"utf8OffsetToUtf16");const t=e.length,n=n_._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const s=new Uint8Array(n);let o=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}r&&(i[n]=o,u&&(i[n+1]=o),c<=127?a[o+0]=n:c<=2047?(a[o+0]=n,a[o+1]=n):c<=65535?(a[o+0]=n,a[o+1]=n,a[o+2]=n):(a[o+0]=n,a[o+1]=n,a[o+2]=n,a[o+3]=n)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,s=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let nw=class e{constructor(t){if(ny(this,"id",++e.LAST_ID),ny(this,"_onigBinding"),ny(this,"content"),ny(this,"utf16Length"),ny(this,"utf8Length"),ny(this,"utf16OffsetToUtf8"),ny(this,"utf8OffsetToUtf16"),ny(this,"ptr"),!nk)throw new np("Must invoke loadWasm first.");this._onigBinding=nk,this.content=t;const n=new n_(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=nk.omalloc(1e4)),e._sharedPtrInUse=!0,nk.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(nk)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ny(nw,"LAST_ID",0),ny(nw,"_sharedPtr",0),ny(nw,"_sharedPtrInUse",!1);class nC{constructor(e){if(ny(this,"_onigBinding"),ny(this,"_ptr"),!nk)throw new np("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=new n_(e[r]);t[r]=i.createString(nk),n[r]=i.utf8Length}const r=nk.omalloc(4*e.length);nk.HEAPU32.set(t,r/4);const i=nk.omalloc(4*e.length);nk.HEAPU32.set(n,i/4);const a=nk.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)nk.ofree(t[n]);nk.ofree(i),nk.ofree(r),0===a&&function(e){throw new np(e.UTF8ToString(e.getLastOnigError()))}(nk),this._onigBinding=nk,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new nw(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(s[o++]),r=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}function nS(e){return i||(i=async function(){nk=await nf(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,s;if(void 0!==n.data&&(n=n.data),r=n,"u">typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (s=n,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==nh&&nh.isBuffer?.(i)||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await nx(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await nx(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function nx(e){return t=>WebAssembly.instantiate(e,t)}async function nv(e){return e&&await nS(e),{createScanner:e=>new nC(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new nw(e)}}let nA=nt({langs:nc,themes:nd,engine:()=>nv(Promise.all([n.e(4814),n.e(9302)]).then(n.bind(n,49302)))}),{codeToHtml:nN,codeToHast:nE,codeToTokens:nP,codeToTokensBase:nL,codeToTokensWithThemes:nI,getSingletonHighlighter:nT,getLastGrammarState:n$}=nr(nA,{guessEmbeddedLanguages:tp});function nR(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let nM=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),nG=String.raw;function nB(e,t){if(null==e)throw Error(t??"Value expected");return e}let nO=nG`\[\^?`,nD=`c.? | C(?:-.?)?|${nG`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${nG`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${nG`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${nG`o\{[^\}]*\}?`}|${nG`\d{1,3}`}`,nF=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,nU=RegExp(nG`
|
|
2
2
|
\\ (?:
|
|
3
3
|
${nD}
|
|
4
4
|
| [gk]<[^>]*>?
|