pythinker-code 2.0.0__py3-none-any.whl
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.
- pythinker_code/CHANGELOG.md +16 -0
- pythinker_code/__init__.py +0 -0
- pythinker_code/__main__.py +92 -0
- pythinker_code/acp/AGENTS.md +93 -0
- pythinker_code/acp/__init__.py +13 -0
- pythinker_code/acp/convert.py +128 -0
- pythinker_code/acp/host.py +298 -0
- pythinker_code/acp/mcp.py +46 -0
- pythinker_code/acp/server.py +497 -0
- pythinker_code/acp/session.py +496 -0
- pythinker_code/acp/tools.py +167 -0
- pythinker_code/acp/types.py +13 -0
- pythinker_code/acp/version.py +45 -0
- pythinker_code/agents/default/agent.yaml +36 -0
- pythinker_code/agents/default/coder.yaml +25 -0
- pythinker_code/agents/default/explore.yaml +46 -0
- pythinker_code/agents/default/plan.yaml +30 -0
- pythinker_code/agents/default/system.md +164 -0
- pythinker_code/agents/okabe/agent.yaml +22 -0
- pythinker_code/agentspec.py +163 -0
- pythinker_code/app.py +820 -0
- pythinker_code/approval_runtime/__init__.py +29 -0
- pythinker_code/approval_runtime/models.py +42 -0
- pythinker_code/approval_runtime/runtime.py +235 -0
- pythinker_code/auth/__init__.py +25 -0
- pythinker_code/auth/anthropic_direct.py +207 -0
- pythinker_code/auth/deepseek.py +192 -0
- pythinker_code/auth/lm_studio.py +418 -0
- pythinker_code/auth/minimax.py +203 -0
- pythinker_code/auth/oauth.py +1122 -0
- pythinker_code/auth/ollama.py +293 -0
- pythinker_code/auth/openai.py +771 -0
- pythinker_code/auth/opencode_go.py +203 -0
- pythinker_code/auth/openrouter.py +225 -0
- pythinker_code/auth/platforms.py +466 -0
- pythinker_code/background/__init__.py +36 -0
- pythinker_code/background/agent_runner.py +231 -0
- pythinker_code/background/ids.py +19 -0
- pythinker_code/background/manager.py +650 -0
- pythinker_code/background/models.py +105 -0
- pythinker_code/background/store.py +237 -0
- pythinker_code/background/summary.py +66 -0
- pythinker_code/background/worker.py +209 -0
- pythinker_code/cli/__init__.py +1326 -0
- pythinker_code/cli/__main__.py +19 -0
- pythinker_code/cli/_lazy_group.py +238 -0
- pythinker_code/cli/export.py +322 -0
- pythinker_code/cli/info.py +62 -0
- pythinker_code/cli/mcp.py +349 -0
- pythinker_code/cli/plugin.py +351 -0
- pythinker_code/cli/toad.py +74 -0
- pythinker_code/cli/vis.py +38 -0
- pythinker_code/cli/web.py +80 -0
- pythinker_code/config.py +453 -0
- pythinker_code/constant.py +33 -0
- pythinker_code/exception.py +43 -0
- pythinker_code/hooks/__init__.py +4 -0
- pythinker_code/hooks/config.py +34 -0
- pythinker_code/hooks/engine.py +371 -0
- pythinker_code/hooks/events.py +190 -0
- pythinker_code/hooks/runner.py +89 -0
- pythinker_code/llm.py +412 -0
- pythinker_code/metadata.py +79 -0
- pythinker_code/notifications/__init__.py +33 -0
- pythinker_code/notifications/llm.py +77 -0
- pythinker_code/notifications/manager.py +145 -0
- pythinker_code/notifications/models.py +50 -0
- pythinker_code/notifications/notifier.py +41 -0
- pythinker_code/notifications/store.py +118 -0
- pythinker_code/notifications/wire.py +21 -0
- pythinker_code/plugin/__init__.py +124 -0
- pythinker_code/plugin/manager.py +153 -0
- pythinker_code/plugin/tool.py +173 -0
- pythinker_code/prompts/__init__.py +6 -0
- pythinker_code/prompts/compact.md +73 -0
- pythinker_code/prompts/init.md +21 -0
- pythinker_code/py.typed +0 -0
- pythinker_code/session.py +319 -0
- pythinker_code/session_fork.py +325 -0
- pythinker_code/session_state.py +132 -0
- pythinker_code/share.py +14 -0
- pythinker_code/skill/__init__.py +727 -0
- pythinker_code/skill/flow/__init__.py +99 -0
- pythinker_code/skill/flow/d2.py +482 -0
- pythinker_code/skill/flow/mermaid.py +266 -0
- pythinker_code/skills/pythinker-code-help/SKILL.md +54 -0
- pythinker_code/skills/skill-creator/SKILL.md +367 -0
- pythinker_code/soul/__init__.py +304 -0
- pythinker_code/soul/agent.py +520 -0
- pythinker_code/soul/approval.py +267 -0
- pythinker_code/soul/btw.py +214 -0
- pythinker_code/soul/compaction.py +189 -0
- pythinker_code/soul/context.py +339 -0
- pythinker_code/soul/denwarenji.py +39 -0
- pythinker_code/soul/dynamic_injection.py +84 -0
- pythinker_code/soul/dynamic_injections/__init__.py +0 -0
- pythinker_code/soul/dynamic_injections/auto_mode.py +72 -0
- pythinker_code/soul/dynamic_injections/plan_mode.py +239 -0
- pythinker_code/soul/message.py +92 -0
- pythinker_code/soul/pythinkersoul.py +1613 -0
- pythinker_code/soul/slash.py +340 -0
- pythinker_code/soul/toolset.py +788 -0
- pythinker_code/subagents/__init__.py +21 -0
- pythinker_code/subagents/builder.py +42 -0
- pythinker_code/subagents/core.py +86 -0
- pythinker_code/subagents/git_context.py +172 -0
- pythinker_code/subagents/models.py +54 -0
- pythinker_code/subagents/output.py +71 -0
- pythinker_code/subagents/registry.py +28 -0
- pythinker_code/subagents/runner.py +428 -0
- pythinker_code/subagents/store.py +196 -0
- pythinker_code/telemetry/__init__.py +211 -0
- pythinker_code/telemetry/config.py +54 -0
- pythinker_code/telemetry/crash.py +157 -0
- pythinker_code/telemetry/metrics.py +208 -0
- pythinker_code/telemetry/otel.py +240 -0
- pythinker_code/telemetry/sentry.py +167 -0
- pythinker_code/telemetry/sink.py +189 -0
- pythinker_code/tools/AGENTS.md +6 -0
- pythinker_code/tools/__init__.py +105 -0
- pythinker_code/tools/agent/__init__.py +277 -0
- pythinker_code/tools/agent/description.md +41 -0
- pythinker_code/tools/ask_user/__init__.py +159 -0
- pythinker_code/tools/ask_user/description.md +19 -0
- pythinker_code/tools/background/__init__.py +318 -0
- pythinker_code/tools/background/list.md +10 -0
- pythinker_code/tools/background/output.md +11 -0
- pythinker_code/tools/background/stop.md +8 -0
- pythinker_code/tools/display.py +46 -0
- pythinker_code/tools/dmail/__init__.py +38 -0
- pythinker_code/tools/dmail/dmail.md +17 -0
- pythinker_code/tools/file/__init__.py +30 -0
- pythinker_code/tools/file/glob.md +17 -0
- pythinker_code/tools/file/glob.py +160 -0
- pythinker_code/tools/file/grep.md +6 -0
- pythinker_code/tools/file/grep_local.py +589 -0
- pythinker_code/tools/file/plan_mode.py +45 -0
- pythinker_code/tools/file/read.md +16 -0
- pythinker_code/tools/file/read.py +300 -0
- pythinker_code/tools/file/read_media.md +24 -0
- pythinker_code/tools/file/read_media.py +217 -0
- pythinker_code/tools/file/replace.md +7 -0
- pythinker_code/tools/file/replace.py +195 -0
- pythinker_code/tools/file/utils.py +257 -0
- pythinker_code/tools/file/write.md +5 -0
- pythinker_code/tools/file/write.py +177 -0
- pythinker_code/tools/plan/__init__.py +327 -0
- pythinker_code/tools/plan/description.md +29 -0
- pythinker_code/tools/plan/enter.py +190 -0
- pythinker_code/tools/plan/enter_description.md +35 -0
- pythinker_code/tools/plan/heroes.py +277 -0
- pythinker_code/tools/shell/__init__.py +253 -0
- pythinker_code/tools/shell/bash.md +35 -0
- pythinker_code/tools/shell/powershell.md +30 -0
- pythinker_code/tools/test.py +55 -0
- pythinker_code/tools/think/__init__.py +21 -0
- pythinker_code/tools/think/think.md +1 -0
- pythinker_code/tools/todo/__init__.py +168 -0
- pythinker_code/tools/todo/set_todo_list.md +23 -0
- pythinker_code/tools/utils.py +199 -0
- pythinker_code/tools/web/__init__.py +4 -0
- pythinker_code/tools/web/fetch.md +1 -0
- pythinker_code/tools/web/fetch.py +189 -0
- pythinker_code/tools/web/search.md +1 -0
- pythinker_code/tools/web/search.py +163 -0
- pythinker_code/ui/__init__.py +0 -0
- pythinker_code/ui/acp/__init__.py +99 -0
- pythinker_code/ui/print/__init__.py +474 -0
- pythinker_code/ui/print/visualize.py +185 -0
- pythinker_code/ui/shell/__init__.py +1696 -0
- pythinker_code/ui/shell/console.py +109 -0
- pythinker_code/ui/shell/debug.py +190 -0
- pythinker_code/ui/shell/echo.py +17 -0
- pythinker_code/ui/shell/export_import.py +117 -0
- pythinker_code/ui/shell/keyboard.py +300 -0
- pythinker_code/ui/shell/mcp_status.py +113 -0
- pythinker_code/ui/shell/model_picker.py +318 -0
- pythinker_code/ui/shell/oauth.py +272 -0
- pythinker_code/ui/shell/placeholders.py +531 -0
- pythinker_code/ui/shell/prompt.py +2278 -0
- pythinker_code/ui/shell/replay.py +215 -0
- pythinker_code/ui/shell/session_picker.py +227 -0
- pythinker_code/ui/shell/setup.py +212 -0
- pythinker_code/ui/shell/slash.py +898 -0
- pythinker_code/ui/shell/startup.py +32 -0
- pythinker_code/ui/shell/task_browser.py +486 -0
- pythinker_code/ui/shell/update.py +350 -0
- pythinker_code/ui/shell/usage.py +291 -0
- pythinker_code/ui/shell/usage_adapters/__init__.py +50 -0
- pythinker_code/ui/shell/usage_adapters/anthropic_admin.py +233 -0
- pythinker_code/ui/shell/usage_adapters/base.py +72 -0
- pythinker_code/ui/shell/usage_adapters/deepseek.py +137 -0
- pythinker_code/ui/shell/usage_adapters/minimax.py +236 -0
- pythinker_code/ui/shell/usage_adapters/openai_admin.py +225 -0
- pythinker_code/ui/shell/usage_adapters/openai_chatgpt.py +241 -0
- pythinker_code/ui/shell/usage_adapters/opencode_go.py +232 -0
- pythinker_code/ui/shell/usage_adapters/openrouter.py +105 -0
- pythinker_code/ui/shell/usage_adapters/pythinker.py +189 -0
- pythinker_code/ui/shell/usage_adapters/pythinker_ai.py +50 -0
- pythinker_code/ui/shell/usage_render.py +150 -0
- pythinker_code/ui/shell/visualize/__init__.py +165 -0
- pythinker_code/ui/shell/visualize/_approval_panel.py +505 -0
- pythinker_code/ui/shell/visualize/_blocks.py +629 -0
- pythinker_code/ui/shell/visualize/_btw_panel.py +224 -0
- pythinker_code/ui/shell/visualize/_input_router.py +48 -0
- pythinker_code/ui/shell/visualize/_interactive.py +523 -0
- pythinker_code/ui/shell/visualize/_live_view.py +826 -0
- pythinker_code/ui/shell/visualize/_question_panel.py +586 -0
- pythinker_code/ui/theme.py +241 -0
- pythinker_code/usage_ratelimit_cache.py +175 -0
- pythinker_code/utils/__init__.py +0 -0
- pythinker_code/utils/aiohttp.py +24 -0
- pythinker_code/utils/aioqueue.py +72 -0
- pythinker_code/utils/broadcast.py +37 -0
- pythinker_code/utils/changelog.py +108 -0
- pythinker_code/utils/clipboard.py +246 -0
- pythinker_code/utils/datetime.py +64 -0
- pythinker_code/utils/diff.py +135 -0
- pythinker_code/utils/editor.py +91 -0
- pythinker_code/utils/environment.py +73 -0
- pythinker_code/utils/envvar.py +22 -0
- pythinker_code/utils/export.py +696 -0
- pythinker_code/utils/file_filter.py +375 -0
- pythinker_code/utils/frontmatter.py +70 -0
- pythinker_code/utils/io.py +27 -0
- pythinker_code/utils/logging.py +146 -0
- pythinker_code/utils/media_tags.py +29 -0
- pythinker_code/utils/message.py +24 -0
- pythinker_code/utils/path.py +199 -0
- pythinker_code/utils/proctitle.py +33 -0
- pythinker_code/utils/proxy.py +31 -0
- pythinker_code/utils/pyinstaller.py +45 -0
- pythinker_code/utils/rich/__init__.py +33 -0
- pythinker_code/utils/rich/columns.py +99 -0
- pythinker_code/utils/rich/diff_render.py +481 -0
- pythinker_code/utils/rich/markdown.py +900 -0
- pythinker_code/utils/rich/markdown_sample.md +108 -0
- pythinker_code/utils/rich/markdown_sample_short.md +2 -0
- pythinker_code/utils/rich/syntax.py +114 -0
- pythinker_code/utils/sensitive.py +54 -0
- pythinker_code/utils/server.py +121 -0
- pythinker_code/utils/signals.py +43 -0
- pythinker_code/utils/slashcmd.py +124 -0
- pythinker_code/utils/string.py +41 -0
- pythinker_code/utils/subprocess_env.py +73 -0
- pythinker_code/utils/term.py +168 -0
- pythinker_code/utils/typing.py +20 -0
- pythinker_code/vis/__init__.py +0 -0
- pythinker_code/vis/api/__init__.py +5 -0
- pythinker_code/vis/api/sessions.py +687 -0
- pythinker_code/vis/api/statistics.py +209 -0
- pythinker_code/vis/api/system.py +19 -0
- pythinker_code/vis/app.py +175 -0
- pythinker_code/vis/static/assets/highlighted-body-B3W2YXNL-D2MTYyJz.js +1 -0
- pythinker_code/vis/static/assets/index-CezafTt_.js +185 -0
- pythinker_code/vis/static/assets/index-DSRInNnm.css +1 -0
- pythinker_code/vis/static/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- pythinker_code/vis/static/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- pythinker_code/vis/static/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- pythinker_code/vis/static/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- pythinker_code/vis/static/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- pythinker_code/vis/static/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- pythinker_code/vis/static/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- pythinker_code/vis/static/index.html +17 -0
- pythinker_code/web/__init__.py +5 -0
- pythinker_code/web/api/__init__.py +15 -0
- pythinker_code/web/api/config.py +208 -0
- pythinker_code/web/api/open_in.py +199 -0
- pythinker_code/web/api/sessions.py +1225 -0
- pythinker_code/web/app.py +451 -0
- pythinker_code/web/auth.py +191 -0
- pythinker_code/web/models.py +98 -0
- pythinker_code/web/runner/__init__.py +5 -0
- pythinker_code/web/runner/messages.py +57 -0
- pythinker_code/web/runner/process.py +754 -0
- pythinker_code/web/runner/worker.py +97 -0
- pythinker_code/web/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- pythinker_code/web/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- pythinker_code/web/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- pythinker_code/web/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- pythinker_code/web/static/assets/_baseUniq--dyU3g5v.js +1 -0
- pythinker_code/web/static/assets/abap-BdImnpbu.js +1 -0
- pythinker_code/web/static/assets/actionscript-3-CfeIJUat.js +1 -0
- pythinker_code/web/static/assets/ada-bCR0ucgS.js +1 -0
- pythinker_code/web/static/assets/andromeeda-C-Jbm3Hp.js +1 -0
- pythinker_code/web/static/assets/angular-html-CU67Zn6k.js +1 -0
- pythinker_code/web/static/assets/angular-ts-BwZT4LLn.js +1 -0
- pythinker_code/web/static/assets/apache-Pmp26Uib.js +1 -0
- pythinker_code/web/static/assets/apex-D8_7TLub.js +1 -0
- pythinker_code/web/static/assets/apl-dKokRX4l.js +1 -0
- pythinker_code/web/static/assets/applescript-Co6uUVPk.js +1 -0
- pythinker_code/web/static/assets/ara-BRHolxvo.js +1 -0
- pythinker_code/web/static/assets/arc-DkMjLpYa.js +1 -0
- pythinker_code/web/static/assets/architectureDiagram-VXUJARFQ-CHWVaGo9.js +36 -0
- pythinker_code/web/static/assets/asciidoc-Dv7Oe6Be.js +1 -0
- pythinker_code/web/static/assets/asm-D_Q5rh1f.js +1 -0
- pythinker_code/web/static/assets/astro-CbQHKStN.js +1 -0
- pythinker_code/web/static/assets/aurora-x-D-2ljcwZ.js +1 -0
- pythinker_code/web/static/assets/awk-DMzUqQB5.js +1 -0
- pythinker_code/web/static/assets/ayu-dark-CmMr59Fi.js +1 -0
- pythinker_code/web/static/assets/ballerina-BFfxhgS-.js +1 -0
- pythinker_code/web/static/assets/bat-BkioyH1T.js +1 -0
- pythinker_code/web/static/assets/beancount-k_qm7-4y.js +1 -0
- pythinker_code/web/static/assets/berry-uYugtg8r.js +1 -0
- pythinker_code/web/static/assets/bibtex-CHM0blh-.js +1 -0
- pythinker_code/web/static/assets/bicep-Bmn6On1c.js +1 -0
- pythinker_code/web/static/assets/blade-D4QpJJKB.js +1 -0
- pythinker_code/web/static/assets/blockDiagram-VD42YOAC-DzdKe497.js +122 -0
- pythinker_code/web/static/assets/bsl-BO_Y6i37.js +1 -0
- pythinker_code/web/static/assets/c-BIGW1oBm.js +1 -0
- pythinker_code/web/static/assets/c3-VCDPK7BO.js +1 -0
- pythinker_code/web/static/assets/c4Diagram-YG6GDRKO-D84Blotg.js +10 -0
- pythinker_code/web/static/assets/cadence-Bv_4Rxtq.js +1 -0
- pythinker_code/web/static/assets/cairo-KRGpt6FW.js +1 -0
- pythinker_code/web/static/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- pythinker_code/web/static/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- pythinker_code/web/static/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- pythinker_code/web/static/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- pythinker_code/web/static/assets/channel-CllSjjdl.js +1 -0
- pythinker_code/web/static/assets/chunk-4BX2VUAB-C9w8wleE.js +1 -0
- pythinker_code/web/static/assets/chunk-55IACEB6-YlYJ8HnF.js +1 -0
- pythinker_code/web/static/assets/chunk-B4BG7PRW-Bwtz_AHU.js +165 -0
- pythinker_code/web/static/assets/chunk-DI55MBZ5-BbEHkl8h.js +220 -0
- pythinker_code/web/static/assets/chunk-FMBD7UC4-BKPbvjLC.js +15 -0
- pythinker_code/web/static/assets/chunk-QN33PNHL-D73dQvKf.js +1 -0
- pythinker_code/web/static/assets/chunk-QZHKN3VN-zGiLKes_.js +1 -0
- pythinker_code/web/static/assets/chunk-TZMSLE5B-LHJCi2fy.js +1 -0
- pythinker_code/web/static/assets/clarity-D53aC0YG.js +1 -0
- pythinker_code/web/static/assets/classDiagram-2ON5EDUG-vX27iZwa.js +1 -0
- pythinker_code/web/static/assets/classDiagram-v2-WZHVMYZB-vX27iZwa.js +1 -0
- pythinker_code/web/static/assets/clojure-P80f7IUj.js +1 -0
- pythinker_code/web/static/assets/clone-DYBkaPm2.js +1 -0
- pythinker_code/web/static/assets/cmake-D1j8_8rp.js +1 -0
- pythinker_code/web/static/assets/cobol-nwyudZeR.js +1 -0
- pythinker_code/web/static/assets/code-block-IT6T5CEO-NtKViZGl.js +2 -0
- pythinker_code/web/static/assets/codeowners-Bp6g37R7.js +1 -0
- pythinker_code/web/static/assets/codeql-DsOJ9woJ.js +1 -0
- pythinker_code/web/static/assets/coffee-Ch7k5sss.js +1 -0
- pythinker_code/web/static/assets/common-lisp-Cg-RD9OK.js +1 -0
- pythinker_code/web/static/assets/coq-DkFqJrB1.js +1 -0
- pythinker_code/web/static/assets/cose-bilkent-S5V4N54A-DialjZpd.js +1 -0
- pythinker_code/web/static/assets/cpp-CofmeUqb.js +1 -0
- pythinker_code/web/static/assets/crystal-tKQVLTB8.js +1 -0
- pythinker_code/web/static/assets/csharp-K5feNrxe.js +1 -0
- pythinker_code/web/static/assets/css-DPfMkruS.js +1 -0
- pythinker_code/web/static/assets/csv-fuZLfV_i.js +1 -0
- pythinker_code/web/static/assets/cue-D82EKSYY.js +1 -0
- pythinker_code/web/static/assets/cypher-COkxafJQ.js +1 -0
- pythinker_code/web/static/assets/cytoscape.esm-C_Fzpdck.js +321 -0
- pythinker_code/web/static/assets/d-85-TOEBH.js +1 -0
- pythinker_code/web/static/assets/dagre-6UL2VRFP-DfuvkZZ7.js +4 -0
- pythinker_code/web/static/assets/dark-plus-C3mMm8J8.js +1 -0
- pythinker_code/web/static/assets/dart-CF10PKvl.js +1 -0
- pythinker_code/web/static/assets/dax-CEL-wOlO.js +1 -0
- pythinker_code/web/static/assets/defaultLocale-DX6XiGOO.js +1 -0
- pythinker_code/web/static/assets/desktop-BmXAJ9_W.js +1 -0
- pythinker_code/web/static/assets/diagram-PSM6KHXK-DLGctX3v.js +24 -0
- pythinker_code/web/static/assets/diagram-QEK2KX5R-DnxN6S0F.js +43 -0
- pythinker_code/web/static/assets/diagram-S2PKOQOG-Caq_Set9.js +24 -0
- pythinker_code/web/static/assets/diff-D97Zzqfu.js +1 -0
- pythinker_code/web/static/assets/docker-BcOcwvcX.js +1 -0
- pythinker_code/web/static/assets/dotenv-Da5cRb03.js +1 -0
- pythinker_code/web/static/assets/dracula-BzJJZx-M.js +1 -0
- pythinker_code/web/static/assets/dracula-soft-BXkSAIEj.js +1 -0
- pythinker_code/web/static/assets/dream-maker-BtqSS_iP.js +1 -0
- pythinker_code/web/static/assets/edge-BkV0erSs.js +1 -0
- pythinker_code/web/static/assets/elixir-CDX3lj18.js +1 -0
- pythinker_code/web/static/assets/elm-DbKCFpqz.js +1 -0
- pythinker_code/web/static/assets/emacs-lisp-C9XAeP06.js +1 -0
- pythinker_code/web/static/assets/erDiagram-Q2GNP2WA-BgTfALoK.js +60 -0
- pythinker_code/web/static/assets/erb-BOJIQeun.js +1 -0
- pythinker_code/web/static/assets/erlang-DsQrWhSR.js +1 -0
- pythinker_code/web/static/assets/everforest-dark-BgDCqdQA.js +1 -0
- pythinker_code/web/static/assets/everforest-light-C8M2exoo.js +1 -0
- pythinker_code/web/static/assets/fennel-BYunw83y.js +1 -0
- pythinker_code/web/static/assets/fish-BvzEVeQv.js +1 -0
- pythinker_code/web/static/assets/flowDiagram-NV44I4VS-QjW_fnGi.js +162 -0
- pythinker_code/web/static/assets/fluent-C4IJs8-o.js +1 -0
- pythinker_code/web/static/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- pythinker_code/web/static/assets/fortran-free-form-BxgE0vQu.js +1 -0
- pythinker_code/web/static/assets/fsharp-CXgrBDvD.js +1 -0
- pythinker_code/web/static/assets/ganttDiagram-JELNMOA3-fqi8JFof.js +267 -0
- pythinker_code/web/static/assets/gdresource-B7Tvp0Sc.js +1 -0
- pythinker_code/web/static/assets/gdscript-DTMYz4Jt.js +1 -0
- pythinker_code/web/static/assets/gdshader-DkwncUOv.js +1 -0
- pythinker_code/web/static/assets/genie-D0YGMca9.js +1 -0
- pythinker_code/web/static/assets/gherkin-DyxjwDmM.js +1 -0
- pythinker_code/web/static/assets/git-commit-F4YmCXRG.js +1 -0
- pythinker_code/web/static/assets/git-rebase-r7XF79zn.js +1 -0
- pythinker_code/web/static/assets/gitGraphDiagram-NY62KEGX-i7o6VQ8x.js +65 -0
- pythinker_code/web/static/assets/github-dark-DHJKELXO.js +1 -0
- pythinker_code/web/static/assets/github-dark-default-Cuk6v7N8.js +1 -0
- pythinker_code/web/static/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- pythinker_code/web/static/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- pythinker_code/web/static/assets/github-light-DAi9KRSo.js +1 -0
- pythinker_code/web/static/assets/github-light-default-D7oLnXFd.js +1 -0
- pythinker_code/web/static/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- pythinker_code/web/static/assets/gleam-BspZqrRM.js +1 -0
- pythinker_code/web/static/assets/glimmer-js-Rg0-pVw9.js +1 -0
- pythinker_code/web/static/assets/glimmer-ts-U6CK756n.js +1 -0
- pythinker_code/web/static/assets/glsl-DplSGwfg.js +1 -0
- pythinker_code/web/static/assets/gn-n2N0HUVH.js +1 -0
- pythinker_code/web/static/assets/gnuplot-DdkO51Og.js +1 -0
- pythinker_code/web/static/assets/go-Dn2_MT6a.js +1 -0
- pythinker_code/web/static/assets/graph-C0vZK2pT.js +1 -0
- pythinker_code/web/static/assets/graphql-ChdNCCLP.js +1 -0
- pythinker_code/web/static/assets/groovy-gcz8RCvz.js +1 -0
- pythinker_code/web/static/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- pythinker_code/web/static/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- pythinker_code/web/static/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- pythinker_code/web/static/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- pythinker_code/web/static/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- pythinker_code/web/static/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- pythinker_code/web/static/assets/hack-CaT9iCJl.js +1 -0
- pythinker_code/web/static/assets/haml-B8DHNrY2.js +1 -0
- pythinker_code/web/static/assets/handlebars-BL8al0AC.js +1 -0
- pythinker_code/web/static/assets/haskell-Df6bDoY_.js +1 -0
- pythinker_code/web/static/assets/haxe-CzTSHFRz.js +1 -0
- pythinker_code/web/static/assets/hcl-BWvSN4gD.js +1 -0
- pythinker_code/web/static/assets/hjson-D5-asLiD.js +1 -0
- pythinker_code/web/static/assets/hlsl-D3lLCCz7.js +1 -0
- pythinker_code/web/static/assets/houston-DnULxvSX.js +1 -0
- pythinker_code/web/static/assets/html-GMplVEZG.js +1 -0
- pythinker_code/web/static/assets/html-derivative-BFtXZ54Q.js +1 -0
- pythinker_code/web/static/assets/http-jrhK8wxY.js +1 -0
- pythinker_code/web/static/assets/hurl-irOxFIW8.js +1 -0
- pythinker_code/web/static/assets/hxml-Bvhsp5Yf.js +1 -0
- pythinker_code/web/static/assets/hy-DFXneXwc.js +1 -0
- pythinker_code/web/static/assets/imba-DGztddWO.js +1 -0
- pythinker_code/web/static/assets/index-BYCCk6-K.js +153 -0
- pythinker_code/web/static/assets/index-BpoLgcEt.js +1 -0
- pythinker_code/web/static/assets/index-Cpy4G3uJ.js +2 -0
- pythinker_code/web/static/assets/index-CzV_vCfu.css +1 -0
- pythinker_code/web/static/assets/index-DI2oedCt.js +19 -0
- pythinker_code/web/static/assets/index-DdIkp80K.js +5 -0
- pythinker_code/web/static/assets/infoDiagram-WHAUD3N6-BMPpeZSM.js +2 -0
- pythinker_code/web/static/assets/ini-BEwlwnbL.js +1 -0
- pythinker_code/web/static/assets/init-Gi6I4Gst.js +1 -0
- pythinker_code/web/static/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- pythinker_code/web/static/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- pythinker_code/web/static/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- pythinker_code/web/static/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- pythinker_code/web/static/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- pythinker_code/web/static/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- pythinker_code/web/static/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- pythinker_code/web/static/assets/java-CylS5w8V.js +1 -0
- pythinker_code/web/static/assets/javascript-wDzz0qaB.js +1 -0
- pythinker_code/web/static/assets/jinja-4LBKfQ-Z.js +1 -0
- pythinker_code/web/static/assets/jison-wvAkD_A8.js +1 -0
- pythinker_code/web/static/assets/journeyDiagram-XKPGCS4Q-DAM7gngo.js +139 -0
- pythinker_code/web/static/assets/json-Cp-IABpG.js +1 -0
- pythinker_code/web/static/assets/json5-C9tS-k6U.js +1 -0
- pythinker_code/web/static/assets/jsonc-Des-eS-w.js +1 -0
- pythinker_code/web/static/assets/jsonl-DcaNXYhu.js +1 -0
- pythinker_code/web/static/assets/jsonnet-DFQXde-d.js +1 -0
- pythinker_code/web/static/assets/jssm-C2t-YnRu.js +1 -0
- pythinker_code/web/static/assets/jsx-g9-lgVsj.js +1 -0
- pythinker_code/web/static/assets/julia-CxzCAyBv.js +1 -0
- pythinker_code/web/static/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- pythinker_code/web/static/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- pythinker_code/web/static/assets/kanagawa-wave-DWedfzmr.js +1 -0
- pythinker_code/web/static/assets/kanban-definition-3W4ZIXB7-ChpBpV0k.js +89 -0
- pythinker_code/web/static/assets/katex-D2lIc1rk.css +1 -0
- pythinker_code/web/static/assets/kdl-DV7GczEv.js +1 -0
- pythinker_code/web/static/assets/kotlin-BdnUsdx6.js +1 -0
- pythinker_code/web/static/assets/kusto-DZf3V79B.js +1 -0
- pythinker_code/web/static/assets/laserwave-DUszq2jm.js +1 -0
- pythinker_code/web/static/assets/latex-B4uzh10-.js +1 -0
- pythinker_code/web/static/assets/layout-C3Jp1gKO.js +1 -0
- pythinker_code/web/static/assets/lean-BZvkOJ9d.js +1 -0
- pythinker_code/web/static/assets/less-B1dDrJ26.js +1 -0
- pythinker_code/web/static/assets/light-plus-B7mTdjB0.js +1 -0
- pythinker_code/web/static/assets/linear-BGHtL1N4.js +1 -0
- pythinker_code/web/static/assets/liquid-DYVedYrR.js +1 -0
- pythinker_code/web/static/assets/llvm-BtvRca6l.js +1 -0
- pythinker_code/web/static/assets/log-2UxHyX5q.js +1 -0
- pythinker_code/web/static/assets/logo-BtOb2qkB.js +1 -0
- pythinker_code/web/static/assets/lua-BbnMAYS6.js +1 -0
- pythinker_code/web/static/assets/luau-C-HG3fhB.js +1 -0
- pythinker_code/web/static/assets/make-CHLpvVh8.js +1 -0
- pythinker_code/web/static/assets/markdown-Cvjx9yec.js +1 -0
- pythinker_code/web/static/assets/marko-DZsq8hO1.js +1 -0
- pythinker_code/web/static/assets/material-theme-D5KoaKCx.js +1 -0
- pythinker_code/web/static/assets/material-theme-darker-BfHTSMKl.js +1 -0
- pythinker_code/web/static/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- pythinker_code/web/static/assets/material-theme-ocean-CyktbL80.js +1 -0
- pythinker_code/web/static/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- pythinker_code/web/static/assets/matlab-D7o27uSR.js +1 -0
- pythinker_code/web/static/assets/mdc-DUICxH0z.js +1 -0
- pythinker_code/web/static/assets/mdx-Cmh6b_Ma.js +1 -0
- pythinker_code/web/static/assets/mermaid-VLURNSYL-B2P5VJ9v.css +1 -0
- pythinker_code/web/static/assets/mermaid-VLURNSYL-C_HW6koB.js +465 -0
- pythinker_code/web/static/assets/mermaid-mWjccvbQ.js +1 -0
- pythinker_code/web/static/assets/mermaid.core-CnT4VrPC.js +191 -0
- pythinker_code/web/static/assets/min-Dn5VRVmX.js +1 -0
- pythinker_code/web/static/assets/min-dark-CafNBF8u.js +1 -0
- pythinker_code/web/static/assets/min-light-CTRr51gU.js +1 -0
- pythinker_code/web/static/assets/mindmap-definition-VGOIOE7T-x8EwhfIt.js +68 -0
- pythinker_code/web/static/assets/mipsasm-CKIfxQSi.js +1 -0
- pythinker_code/web/static/assets/mojo-B93PlW-d.js +1 -0
- pythinker_code/web/static/assets/monokai-D4h5O-jR.js +1 -0
- pythinker_code/web/static/assets/moonbit-Ba13S78F.js +1 -0
- pythinker_code/web/static/assets/move-Bu9oaDYs.js +1 -0
- pythinker_code/web/static/assets/narrat-DRg8JJMk.js +1 -0
- pythinker_code/web/static/assets/nextflow-BrzmwbiE.js +1 -0
- pythinker_code/web/static/assets/nginx-DknmC5AR.js +1 -0
- pythinker_code/web/static/assets/night-owl-C39BiMTA.js +1 -0
- pythinker_code/web/static/assets/nim-CVrawwO9.js +1 -0
- pythinker_code/web/static/assets/nix-CwoSXNpI.js +1 -0
- pythinker_code/web/static/assets/nord-Ddv68eIx.js +1 -0
- pythinker_code/web/static/assets/nushell-C-sUppwS.js +1 -0
- pythinker_code/web/static/assets/objective-c-DXmwc3jG.js +1 -0
- pythinker_code/web/static/assets/objective-cpp-CLxacb5B.js +1 -0
- pythinker_code/web/static/assets/ocaml-C0hk2d4L.js +1 -0
- pythinker_code/web/static/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- pythinker_code/web/static/assets/one-light-PoHY5YXO.js +1 -0
- pythinker_code/web/static/assets/openscad-C4EeE6gA.js +1 -0
- pythinker_code/web/static/assets/ordinal-Cboi1Yqb.js +1 -0
- pythinker_code/web/static/assets/pascal-D93ZcfNL.js +1 -0
- pythinker_code/web/static/assets/perl-C0TMdlhV.js +1 -0
- pythinker_code/web/static/assets/php-CDn_0X-4.js +1 -0
- pythinker_code/web/static/assets/pieDiagram-ADFJNKIX-DgxBKGz2.js +30 -0
- pythinker_code/web/static/assets/pkl-u5AG7uiY.js +1 -0
- pythinker_code/web/static/assets/plastic-3e1v2bzS.js +1 -0
- pythinker_code/web/static/assets/plsql-ChMvpjG-.js +1 -0
- pythinker_code/web/static/assets/po-BTJTHyun.js +1 -0
- pythinker_code/web/static/assets/poimandres-CS3Unz2-.js +1 -0
- pythinker_code/web/static/assets/polar-C0HS_06l.js +1 -0
- pythinker_code/web/static/assets/postcss-CXtECtnM.js +1 -0
- pythinker_code/web/static/assets/powerquery-CEu0bR-o.js +1 -0
- pythinker_code/web/static/assets/powershell-Dpen1YoG.js +1 -0
- pythinker_code/web/static/assets/prisma-Dd19v3D-.js +1 -0
- pythinker_code/web/static/assets/prolog-CbFg5uaA.js +1 -0
- pythinker_code/web/static/assets/proto-C7zT0LnQ.js +1 -0
- pythinker_code/web/static/assets/pug-CGlum2m_.js +1 -0
- pythinker_code/web/static/assets/puppet-BMWR74SV.js +1 -0
- pythinker_code/web/static/assets/purescript-CklMAg4u.js +1 -0
- pythinker_code/web/static/assets/python-B6aJPvgy.js +1 -0
- pythinker_code/web/static/assets/qml-3beO22l8.js +1 -0
- pythinker_code/web/static/assets/qmldir-C8lEn-DE.js +1 -0
- pythinker_code/web/static/assets/qss-IeuSbFQv.js +1 -0
- pythinker_code/web/static/assets/quadrantDiagram-AYHSOK5B-DSpe_dqk.js +7 -0
- pythinker_code/web/static/assets/r-Dspwwk_N.js +1 -0
- pythinker_code/web/static/assets/racket-BqYA7rlc.js +1 -0
- pythinker_code/web/static/assets/raku-DXvB9xmW.js +1 -0
- pythinker_code/web/static/assets/razor-C1TweQQi.js +1 -0
- pythinker_code/web/static/assets/red-bN70gL4F.js +1 -0
- pythinker_code/web/static/assets/reg-C-SQnVFl.js +1 -0
- pythinker_code/web/static/assets/regexp-CDVJQ6XC.js +1 -0
- pythinker_code/web/static/assets/rel-C3B-1QV4.js +1 -0
- pythinker_code/web/static/assets/requirementDiagram-UZGBJVZJ-8o9hozL-.js +64 -0
- pythinker_code/web/static/assets/riscv-BM1_JUlF.js +1 -0
- pythinker_code/web/static/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- pythinker_code/web/static/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- pythinker_code/web/static/assets/rose-pine-qdsjHGoJ.js +1 -0
- pythinker_code/web/static/assets/rosmsg-BJDFO7_C.js +1 -0
- pythinker_code/web/static/assets/rst-B0xPkSld.js +1 -0
- pythinker_code/web/static/assets/ruby-BvKwtOVI.js +1 -0
- pythinker_code/web/static/assets/rust-B1yitclQ.js +1 -0
- pythinker_code/web/static/assets/sankeyDiagram-TZEHDZUN-BLOSUixH.js +10 -0
- pythinker_code/web/static/assets/sas-cz2c8ADy.js +1 -0
- pythinker_code/web/static/assets/sass-Cj5Yp3dK.js +1 -0
- pythinker_code/web/static/assets/scala-C151Ov-r.js +1 -0
- pythinker_code/web/static/assets/scheme-C98Dy4si.js +1 -0
- pythinker_code/web/static/assets/scss-OYdSNvt2.js +1 -0
- pythinker_code/web/static/assets/sdbl-DVxCFoDh.js +1 -0
- pythinker_code/web/static/assets/sequenceDiagram-WL72ISMW-6F2G8JTU.js +145 -0
- pythinker_code/web/static/assets/shaderlab-Dg9Lc6iA.js +1 -0
- pythinker_code/web/static/assets/shellscript-Yzrsuije.js +1 -0
- pythinker_code/web/static/assets/shellsession-BADoaaVG.js +1 -0
- pythinker_code/web/static/assets/slack-dark-BthQWCQV.js +1 -0
- pythinker_code/web/static/assets/slack-ochin-DqwNpetd.js +1 -0
- pythinker_code/web/static/assets/smalltalk-BERRCDM3.js +1 -0
- pythinker_code/web/static/assets/snazzy-light-Bw305WKR.js +1 -0
- pythinker_code/web/static/assets/solarized-dark-DXbdFlpD.js +1 -0
- pythinker_code/web/static/assets/solarized-light-L9t79GZl.js +1 -0
- pythinker_code/web/static/assets/solidity-rGO070M0.js +1 -0
- pythinker_code/web/static/assets/soy-Brmx7dQM.js +1 -0
- pythinker_code/web/static/assets/sparql-rVzFXLq3.js +1 -0
- pythinker_code/web/static/assets/splunk-BtCnVYZw.js +1 -0
- pythinker_code/web/static/assets/sql-BLtJtn59.js +1 -0
- pythinker_code/web/static/assets/ssh-config-_ykCGR6B.js +1 -0
- pythinker_code/web/static/assets/stata-BH5u7GGu.js +1 -0
- pythinker_code/web/static/assets/stateDiagram-FKZM4ZOC-DP8xP0iJ.js +1 -0
- pythinker_code/web/static/assets/stateDiagram-v2-4FDKWEC3-1l6-EZNX.js +1 -0
- pythinker_code/web/static/assets/stylus-BEDo0Tqx.js +1 -0
- pythinker_code/web/static/assets/svelte-zxCyuUbr.js +1 -0
- pythinker_code/web/static/assets/swift-Dg5xB15N.js +1 -0
- pythinker_code/web/static/assets/synthwave-84-CbfX1IO0.js +1 -0
- pythinker_code/web/static/assets/system-verilog-CnnmHF94.js +1 -0
- pythinker_code/web/static/assets/systemd-4A_iFExJ.js +1 -0
- pythinker_code/web/static/assets/talonscript-CkByrt1z.js +1 -0
- pythinker_code/web/static/assets/tasl-QIJgUcNo.js +1 -0
- pythinker_code/web/static/assets/tcl-dwOrl1Do.js +1 -0
- pythinker_code/web/static/assets/templ-W15q3VgB.js +1 -0
- pythinker_code/web/static/assets/terraform-BETggiCN.js +1 -0
- pythinker_code/web/static/assets/tex-CvyZ59Mk.js +1 -0
- pythinker_code/web/static/assets/timeline-definition-IT6M3QCI-DMgruDfK.js +61 -0
- pythinker_code/web/static/assets/tokyo-night-hegEt444.js +1 -0
- pythinker_code/web/static/assets/toml-vGWfd6FD.js +1 -0
- pythinker_code/web/static/assets/treemap-KMMF4GRG-Bo9ZkrAK.js +128 -0
- pythinker_code/web/static/assets/ts-tags-zn1MmPIZ.js +1 -0
- pythinker_code/web/static/assets/tsv-B_m7g4N7.js +1 -0
- pythinker_code/web/static/assets/tsx-COt5Ahok.js +1 -0
- pythinker_code/web/static/assets/turtle-BsS91CYL.js +1 -0
- pythinker_code/web/static/assets/twig-CO9l9SDP.js +1 -0
- pythinker_code/web/static/assets/typescript-BPQ3VLAy.js +1 -0
- pythinker_code/web/static/assets/typespec-BGHnOYBU.js +1 -0
- pythinker_code/web/static/assets/typst-DHCkPAjA.js +1 -0
- pythinker_code/web/static/assets/v-BcVCzyr7.js +1 -0
- pythinker_code/web/static/assets/vala-CsfeWuGM.js +1 -0
- pythinker_code/web/static/assets/vb-D17OF-Vu.js +1 -0
- pythinker_code/web/static/assets/verilog-BQ8w6xss.js +1 -0
- pythinker_code/web/static/assets/vesper-DU1UobuO.js +1 -0
- pythinker_code/web/static/assets/vhdl-CeAyd5Ju.js +1 -0
- pythinker_code/web/static/assets/viml-CJc9bBzg.js +1 -0
- pythinker_code/web/static/assets/vitesse-black-Bkuqu6BP.js +1 -0
- pythinker_code/web/static/assets/vitesse-dark-D0r3Knsf.js +1 -0
- pythinker_code/web/static/assets/vitesse-light-CVO1_9PV.js +1 -0
- pythinker_code/web/static/assets/vue-DN_0RTcg.js +1 -0
- pythinker_code/web/static/assets/vue-html-AaS7Mt5G.js +1 -0
- pythinker_code/web/static/assets/vue-vine-CQOfvN7w.js +1 -0
- pythinker_code/web/static/assets/vyper-CDx5xZoG.js +1 -0
- pythinker_code/web/static/assets/wasm-CG6Dc4jp.js +1 -0
- pythinker_code/web/static/assets/wasm-MzD3tlZU.js +1 -0
- pythinker_code/web/static/assets/wenyan-BV7otONQ.js +1 -0
- pythinker_code/web/static/assets/wgsl-Dx-B1_4e.js +1 -0
- pythinker_code/web/static/assets/wikitext-BhOHFoWU.js +1 -0
- pythinker_code/web/static/assets/wit-5i3qLPDT.js +1 -0
- pythinker_code/web/static/assets/wolfram-lXgVvXCa.js +1 -0
- pythinker_code/web/static/assets/xml-sdJ4AIDG.js +1 -0
- pythinker_code/web/static/assets/xsl-CtQFsRM5.js +1 -0
- pythinker_code/web/static/assets/xychartDiagram-PRI3JC2R-GeF2johi.js +7 -0
- pythinker_code/web/static/assets/yaml-Buea-lGh.js +1 -0
- pythinker_code/web/static/assets/zenscript-DVFEvuxE.js +1 -0
- pythinker_code/web/static/assets/zig-VOosw3JB.js +1 -0
- pythinker_code/web/static/brand/apple-touch-icon.png +0 -0
- pythinker_code/web/static/brand/arctecture.webp +0 -0
- pythinker_code/web/static/brand/bimi-logo.svg +46 -0
- pythinker_code/web/static/brand/favicon.ico +0 -0
- pythinker_code/web/static/brand/fonts/dm-sans-latin-ext.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/dm-sans-latin.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/instrument-sans-latin-ext.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/instrument-sans-latin.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/instrument-serif-latin-ext.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/instrument-serif-latin.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/libre-baskerville-italic-latin-ext.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/libre-baskerville-italic-latin.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/libre-baskerville-latin-ext.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/libre-baskerville-latin.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/roboto-latin-ext.woff2 +0 -0
- pythinker_code/web/static/brand/fonts/roboto-latin.woff2 +0 -0
- pythinker_code/web/static/brand/icon-192.png +0 -0
- pythinker_code/web/static/brand/icon-512.png +0 -0
- pythinker_code/web/static/brand/icon.svg +1 -0
- pythinker_code/web/static/brand/logo.png +0 -0
- pythinker_code/web/static/brand/pythinker_animated.svg +79 -0
- pythinker_code/web/static/brand/robots.txt +4 -0
- pythinker_code/web/static/index.html +15 -0
- pythinker_code/web/static/logo.png +0 -0
- pythinker_code/web/store/__init__.py +1 -0
- pythinker_code/web/store/sessions.py +432 -0
- pythinker_code/wire/__init__.py +148 -0
- pythinker_code/wire/file.py +151 -0
- pythinker_code/wire/jsonrpc.py +263 -0
- pythinker_code/wire/protocol.py +2 -0
- pythinker_code/wire/root_hub.py +27 -0
- pythinker_code/wire/serde.py +26 -0
- pythinker_code/wire/server.py +1069 -0
- pythinker_code/wire/types.py +698 -0
- pythinker_code-2.0.0.dist-info/METADATA +660 -0
- pythinker_code-2.0.0.dist-info/RECORD +731 -0
- pythinker_code-2.0.0.dist-info/WHEEL +4 -0
- pythinker_code-2.0.0.dist-info/entry_points.txt +4 -0
- pythinker_code-2.0.0.dist-info/licenses/LICENSE +202 -0
- pythinker_code-2.0.0.dist-info/licenses/NOTICE +14 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-CU67Zn6k.js","./html-GMplVEZG.js","./javascript-wDzz0qaB.js","./css-DPfMkruS.js","./angular-ts-BwZT4LLn.js","./scss-OYdSNvt2.js","./apl-dKokRX4l.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./json-Cp-IABpG.js","./astro-CbQHKStN.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-D4QpJJKB.js","./html-derivative-BFtXZ54Q.js","./sql-BLtJtn59.js","./bsl-BO_Y6i37.js","./sdbl-DVxCFoDh.js","./cairo-KRGpt6FW.js","./python-B6aJPvgy.js","./cobol-nwyudZeR.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./crystal-tKQVLTB8.js","./shellscript-Yzrsuije.js","./edge-BkV0erSs.js","./elixir-CDX3lj18.js","./elm-DbKCFpqz.js","./erb-BOJIQeun.js","./ruby-BvKwtOVI.js","./haml-B8DHNrY2.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./lua-BbnMAYS6.js","./yaml-Buea-lGh.js","./erlang-DsQrWhSR.js","./markdown-Cvjx9yec.js","./fortran-fixed-form-CkoXwp7k.js","./fortran-free-form-BxgE0vQu.js","./fsharp-CXgrBDvD.js","./gdresource-B7Tvp0Sc.js","./gdshader-DkwncUOv.js","./gdscript-DTMYz4Jt.js","./git-commit-F4YmCXRG.js","./diff-D97Zzqfu.js","./git-rebase-r7XF79zn.js","./glimmer-js-Rg0-pVw9.js","./glimmer-ts-U6CK756n.js","./hack-CaT9iCJl.js","./handlebars-BL8al0AC.js","./http-jrhK8wxY.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./hxml-Bvhsp5Yf.js","./haxe-CzTSHFRz.js","./jinja-4LBKfQ-Z.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./r-Dspwwk_N.js","./latex-B4uzh10-.js","./tex-CvyZ59Mk.js","./liquid-DYVedYrR.js","./marko-DZsq8hO1.js","./less-B1dDrJ26.js","./mdc-DUICxH0z.js","./nginx-DknmC5AR.js","./nim-CVrawwO9.js","./perl-C0TMdlhV.js","./php-CDn_0X-4.js","./pug-CGlum2m_.js","./qml-3beO22l8.js","./razor-C1TweQQi.js","./csharp-K5feNrxe.js","./rst-B0xPkSld.js","./cmake-D1j8_8rp.js","./sas-cz2c8ADy.js","./shaderlab-Dg9Lc6iA.js","./hlsl-D3lLCCz7.js","./shellsession-BADoaaVG.js","./soy-Brmx7dQM.js","./sparql-rVzFXLq3.js","./turtle-BsS91CYL.js","./stata-BH5u7GGu.js","./svelte-zxCyuUbr.js","./templ-W15q3VgB.js","./go-Dn2_MT6a.js","./ts-tags-zn1MmPIZ.js","./twig-CO9l9SDP.js","./vue-DN_0RTcg.js","./vue-html-AaS7Mt5G.js","./vue-vine-CQOfvN7w.js","./stylus-BEDo0Tqx.js","./xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as d}from"./index-Cpy4G3uJ.js";import{w as ur,s as bn,f as ji,b as Wi,e as Hi,i as Nr,z as zi,l as qi,m as Xi}from"./mermaid-VLURNSYL-C_HW6koB.js";import{c as Qi}from"./index-BpoLgcEt.js";let V=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Ji(t){return cr(t)}function cr(t){return Array.isArray(t)?Ki(t):t instanceof RegExp?t:typeof t=="object"?Yi(t):t}function Ki(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=cr(t[r]);return e}function Yi(t){let e={};for(let r in t)e[r]=cr(t[r]);return e}function An(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function In(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?In(t.substring(0,t.length-1)):t.substr(~e+1)}var Ot=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,tt=class{static hasCaptures(t){return t===null?!1:(Ot.lastIndex=0,Ot.test(t))}static replaceCaptures(t,e,r){return t.replace(Ot,(n,i,o,s)=>{let c=r[parseInt(i||o,10)];if(c){let u=e.substring(c.start,c.end);for(;u[0]===".";)u=u.substring(1);switch(s){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return n})}};function Cn(t,e){return t<e?-1:t>e?1:0}function kn(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let o=Cn(t[i],e[i]);if(o!==0)return o}return 0}return r-n}function Br(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Sn(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Rn=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},mt=class{constructor(t,e,r){this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(to(t),e)}static createFromParsedTheme(t,e){return no(t,e)}_cachedMatchRoot=new Rn(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>Zi(t.parent,i.parentScopes));return n?new Tn(n.fontStyle,n.foreground,n.background):null}},Dt=class lt{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new lt(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new lt(r,e[n]);return r}push(e){return new lt(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function Zi(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!eo(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function eo(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var Tn=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function to(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,o=e.length;i<o;i++){let s=e[i];if(!s.settings)continue;let c;if(typeof s.scope=="string"){let f=s.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),c=f.split(",")}else Array.isArray(s.scope)?c=s.scope:c=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let f=s.settings.fontStyle.split(" ");for(let _=0,y=f.length;_<y;_++)switch(f[_]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let m=null;typeof s.settings.foreground=="string"&&Br(s.settings.foreground)&&(m=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&Br(s.settings.background)&&(p=s.settings.background);for(let f=0,_=c.length;f<_;f++){let w=c[f].trim().split(" "),k=w[w.length-1],S=null;w.length>1&&(S=w.slice(0,w.length-1),S.reverse()),r[n++]=new ro(k,S,i,u,m,p)}}return r}var ro=class{constructor(t,e,r,n,i,o){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},X=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(X||{});function no(t,e){t.sort((u,m)=>{let p=Cn(u.scope,m.scope);return p!==0||(p=kn(u.parentScopes,m.parentScopes),p!==0)?p:u.index-m.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let u=t.shift();u.fontStyle!==-1&&(r=u.fontStyle),u.foreground!==null&&(n=u.foreground),u.background!==null&&(i=u.background)}let o=new io(e),s=new Tn(r,o.getId(n),o.getId(i)),c=new so(new Xt(0,null,-1,0,0),[]);for(let u=0,m=t.length;u<m;u++){let p=t[u];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new mt(o,s,c)}var io=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},oo=Object.freeze([]),Xt=class xn{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,r,n,i,o){this.scopeDepth=e,this.parentScopes=r||oo,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new xn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},so=class Qt{constructor(e,r=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-e.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,o;if(n===-1?(i=e,o=""):(i=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Qt._cmpBySpecificity),r}insert(e,r,n,i,o,s){if(r===""){this._doInsertHere(e,n,i,o,s);return}let c=r.indexOf("."),u,m;c===-1?(u=r,m=""):(u=r.substring(0,c),m=r.substring(c+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new Qt(this._mainRule.clone(),Xt.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(e+1,m,n,i,o,s)}_doInsertHere(e,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(e,n,i,o);return}for(let s=0,c=this._rulesWithParentScopes.length;s<c;s++){let u=this._rulesWithParentScopes[s];if(kn(u.parentScopes,r)===0){u.acceptOverwrite(e,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Xt(e,r,n,i,o))}},De=class J{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=J.getLanguageId(e),n=J.getTokenType(e),i=J.getFontStyle(e),o=J.getForeground(e),s=J.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,o,s,c){let u=J.getLanguageId(e),m=J.getTokenType(e),p=J.containsBalancedBrackets(e)?1:0,f=J.getFontStyle(e),_=J.getForeground(e),y=J.getBackground(e);return r!==0&&(u=r),n!==8&&(m=n),i!==null&&(p=i?1:0),o!==-1&&(f=o),s!==0&&(_=s),c!==0&&(y=c),(u<<0|m<<8|p<<10|f<<11|_<<15|y<<24)>>>0}};function ht(t,e){const r=[],n=ao(t);let i=n.next();for(;i!==null;){let u=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let m=s();if(r.push({matcher:m,priority:u}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const u=o();return m=>!!u&&!u(m)}if(i==="("){i=n.next();const u=c();return i===")"&&(i=n.next()),u}if($r(i)){const u=[];do u.push(i),i=n.next();while($r(i));return m=>e(u,m)}return null}function s(){const u=[];let m=o();for(;m;)u.push(m),m=o();return p=>u.every(f=>f(p))}function c(){const u=[];let m=s();for(;m&&(u.push(m),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");m=s()}return p=>u.some(f=>f(p))}}function $r(t){return!!t&&!!t.match(/[\w\.:]+/)}function ao(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function Ln(t){typeof t.dispose=="function"&&t.dispose()}var We=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},lo=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},uo=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},co=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new We(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new uo;for(const r of t)po(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof We){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function po(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=r.lookup(e);t instanceof We?ut({baseGrammar:o,selfGrammar:i},n):Jt(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const s=r.injections(t.scopeName);if(s)for(const c of s)n.add(new We(c))}function Jt(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];dt([n],e,r)}}function ut(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&dt(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&dt(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function dt(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?An({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&dt(n.patterns,{...e,repository:i},r);const o=n.include;if(!o)continue;const s=vn(o);switch(s.kind){case 0:ut({...e,selfGrammar:e.baseGrammar},r);break;case 1:ut(e,r);break;case 2:Jt(s.ruleName,{...e,repository:i},r);break;case 3:case 4:const c=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const u={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};s.kind===4?Jt(s.ruleName,u,r):ut(u,r)}else s.kind===4?r.add(new lo(s.scopeName,s.ruleName)):r.add(new We(s.scopeName));break}}}var mo=class{kind=0},ho=class{kind=1},fo=class{constructor(t){this.ruleName=t}kind=2},go=class{constructor(t){this.scopeName=t}kind=3},_o=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function vn(t){if(t==="$base")return new mo;if(t==="$self")return new ho;const e=t.indexOf("#");if(e===-1)return new go(t);if(e===0)return new fo(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new _o(r,n)}}var yo=/\\(\d+)/,Vr=/\\(\d+)/g,Eo=-1,Pn=-2;var Ke=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,r,n){this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=tt.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=tt.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${In(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:tt.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:tt.replaceCaptures(this._contentName,t,e)}},wo=class extends Ke{retokenizeCapturedWithRuleId;constructor(t,e,r,n,i){super(t,e,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,r,n){throw new Error("Not supported!")}},bo=class extends Ke{_match;captures;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,null),this._match=new He(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ze,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Mr=class extends Ke{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const r of this.patterns)t.getRule(r).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ze,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Kt=class extends Ke{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i,o,s,c,u,m){super(t,e,r,n),this._begin=new He(i,this.id),this.beginCaptures=o,this._end=new He(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=u||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.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(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,r,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ze;for(const r of this.patterns)t.getRule(r).collectPatterns(t,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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},ft=class extends Ke{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,r,n,i,o,s,c,u){super(t,e,r,n),this._begin=new He(i,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new He(s,Pn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.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(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ze;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,r,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ze,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},On=class q{static createCaptureRule(e,r,n,i,o){return e.registerRule(s=>new wo(r,s,n,i,o))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new bo(e.$vscodeTextmateLocation,e.id,e.name,e.match,q._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=An({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Mr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,q._compilePatterns(o,r,n))}return e.while?new ft(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,q._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,q._compileCaptures(e.whileCaptures||e.captures,r,n),q._compilePatterns(e.patterns,r,n)):new Kt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,q._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,q._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,q._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>o&&(o=c)}for(let s=0;s<=o;s++)i[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let u=0;e[s].patterns&&(u=q.getCompiledRuleId(e[s],r,n)),i[c]=q.createCaptureRule(r,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,u)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let o=0,s=e.length;o<s;o++){const c=e[o];let u=-1;if(c.include){const m=vn(c.include);switch(m.kind){case 0:case 1:u=q.getCompiledRuleId(n[c.include],r,n);break;case 2:let p=n[m.ruleName];p&&(u=q.getCompiledRuleId(p,r,n));break;case 3:case 4:const f=m.scopeName,_=m.kind===4?m.ruleName:null,y=r.getExternalGrammar(f,n);if(y)if(_){let w=y.repository[_];w&&(u=q.getCompiledRuleId(w,r,y.repository))}else u=q.getCompiledRuleId(y.repository.$self,r,y.repository);break}}else u=q.getCompiledRuleId(c,r,n);if(u!==-1){const m=r.getRule(u);let p=!1;if((m instanceof Mr||m instanceof Kt||m instanceof ft)&&m.hasMissingPatterns&&m.patterns.length===0&&(p=!0),p)continue;i.push(u)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},He=class Dn{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,r){if(e&&typeof e=="string"){const n=e.length;let i=0,o=[],s=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const m=e.charAt(c+1);m==="z"?(o.push(e.substring(i,c)),o.push("$(?!\\n)(?<!\\n)"),i=c+2):(m==="A"||m==="G")&&(s=!0),c++}this.hasAnchor=s,i===0?this.source=e:(o.push(e.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=yo.test(this.source):this.hasBackReferences=!1}clone(){return new Dn(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return Vr.lastIndex=0,this.source.replace(Vr,(i,o)=>Sn(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],o,s,c,u;for(o=0,s=this.source.length;o<s;o++)c=this.source.charAt(o),e[o]=c,r[o]=c,n[o]=c,i[o]=c,c==="\\"&&o+1<s&&(u=this.source.charAt(o+1),u==="A"?(e[o+1]="",r[o+1]="",n[o+1]="A",i[o+1]="A"):u==="G"?(e[o+1]="",r[o+1]="G",n[o+1]="",i[o+1]="G"):(e[o+1]=u,r[o+1]=u,n[o+1]=u,i[o+1]=u),o++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ze=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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new Fr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new Fr(t,n,this._items.map(i=>i.ruleId))}},Fr=class{constructor(t,e,r){this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
3
|
+
`)}findNextMatchSync(t,e,r){const n=this.scanner.findNextMatchSync(t,e,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Nt=class{constructor(t,e){this.languageId=t,this.tokenType=e}},Ao=class Yt{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,r){this._defaultAttributes=new Nt(e,8),this._embeddedLanguagesMatcher=new Io(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Yt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new Nt(0,0);_getBasicScopeAttributes=new Rn(e=>{const r=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new Nt(r,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const r=e.match(Yt.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Io=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([r,n])=>Sn(r));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},Gr=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function Nn(t,e,r,n,i,o,s,c){const u=e.content.length;let m=!1,p=-1;if(s){const y=Co(t,e,r,n,i,o);i=y.stack,n=y.linePos,r=y.isFirstLine,p=y.anchorPosition}const f=Date.now();for(;!m;){if(c!==0&&Date.now()-f>c)return new Gr(i,!0);_()}return new Gr(i,!1);function _(){const y=ko(t,e,r,n,i,p);if(!y){o.produce(i,u),m=!0;return}const w=y.captureIndices,k=y.matchedRuleId,S=w&&w.length>0?w[0].end>n:!1;if(k===Eo){const I=i.getRule(t);o.produce(i,w[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ge(t,e,r,i,o,I.endCaptures,w),o.produce(i,w[0].end);const R=i;if(i=i.parent,p=R.getAnchorPos(),!S&&R.getEnterPos()===n){i=R,o.produce(i,u),m=!0;return}}else{const I=t.getRule(k);o.produce(i,w[0].start);const R=i,C=I.getName(e.content,w),T=i.contentNameScopesList.pushAttributed(C,t);if(i=i.push(k,n,p,w[0].end===u,null,T,T),I instanceof Kt){const L=I;Ge(t,e,r,i,o,L.beginCaptures,w),o.produce(i,w[0].end),p=w[0].end;const B=L.getContentName(e.content,w),z=T.pushAttributed(B,t);if(i=i.withContentNameScopesList(z),L.endHasBackReferences&&(i=i.withEndRule(L.getEndWithResolvedBackReferences(e.content,w))),!S&&R.hasSameRuleAs(i)){i=i.pop(),o.produce(i,u),m=!0;return}}else if(I instanceof ft){const L=I;Ge(t,e,r,i,o,L.beginCaptures,w),o.produce(i,w[0].end),p=w[0].end;const B=L.getContentName(e.content,w),z=T.pushAttributed(B,t);if(i=i.withContentNameScopesList(z),L.whileHasBackReferences&&(i=i.withEndRule(L.getWhileWithResolvedBackReferences(e.content,w))),!S&&R.hasSameRuleAs(i)){i=i.pop(),o.produce(i,u),m=!0;return}}else if(Ge(t,e,r,i,o,I.captures,w),o.produce(i,w[0].end),i=i.pop(),!S){i=i.safePop(),o.produce(i,u),m=!0;return}}w[0].end>n&&(n=w[0].end,r=!1)}}function Co(t,e,r,n,i,o){let s=i.beginRuleCapturedEOL?0:-1;const c=[];for(let u=i;u;u=u.pop()){const m=u.getRule(t);m instanceof ft&&c.push({rule:m,stack:u})}for(let u=c.pop();u;u=c.pop()){const{ruleScanner:m,findOptions:p}=To(u.rule,t,u.stack.endRule,r,n===s),f=m.findNextMatchSync(e,n,p);if(f){if(f.ruleId!==Pn){i=u.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(u.stack,f.captureIndices[0].start),Ge(t,e,r,u.stack,o,u.rule.whileCaptures,f.captureIndices),o.produce(u.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>n&&(n=f.captureIndices[0].end,r=!1))}else{i=u.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}function ko(t,e,r,n,i,o){const s=So(t,e,r,n,i,o),c=t.getInjections();if(c.length===0)return s;const u=Ro(c,t,e,r,n,i,o);if(!u)return s;if(!s)return u;const m=s.captureIndices[0].start,p=u.captureIndices[0].start;return p<m||u.priorityMatch&&p===m?u:s}function So(t,e,r,n,i,o){const s=i.getRule(t),{ruleScanner:c,findOptions:u}=Bn(s,t,i.endRule,r,n===o),m=c.findNextMatchSync(e,n,u);return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}function Ro(t,e,r,n,i,o,s){let c=Number.MAX_VALUE,u=null,m,p=0;const f=o.contentNameScopesList.getScopeNames();for(let _=0,y=t.length;_<y;_++){const w=t[_];if(!w.matcher(f))continue;const k=e.getRule(w.ruleId),{ruleScanner:S,findOptions:I}=Bn(k,e,null,n,i===s),R=S.findNextMatchSync(r,i,I);if(!R)continue;const C=R.captureIndices[0].start;if(!(C>=c)&&(c=C,u=R.captureIndices,m=R.ruleId,p=w.priority,c===i))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:m}:null}function Bn(t,e,r,n,i){return{ruleScanner:t.compileAG(e,r,n,i),findOptions:0}}function To(t,e,r,n,i){return{ruleScanner:t.compileWhileAG(e,r,n,i),findOptions:0}}function Ge(t,e,r,n,i,o,s){if(o.length===0)return;const c=e.content,u=Math.min(o.length,s.length),m=[],p=s[0].end;for(let f=0;f<u;f++){const _=o[f];if(_===null)continue;const y=s[f];if(y.length===0)continue;if(y.start>p)break;for(;m.length>0&&m[m.length-1].endPos<=y.start;)i.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?i.produceFromScopes(m[m.length-1].scopes,y.start):i.produce(n,y.start),_.retokenizeCapturedWithRuleId){const k=_.getName(c,s),S=n.contentNameScopesList.pushAttributed(k,t),I=_.getContentName(c,s),R=S.pushAttributed(I,t),C=n.push(_.retokenizeCapturedWithRuleId,y.start,-1,!1,null,S,R),T=t.createOnigString(c.substring(0,y.end));Nn(t,T,r&&y.start===0,y.start,C,i,!1,0),Ln(T);continue}const w=_.getName(c,s);if(w!==null){const S=(m.length>0?m[m.length-1].scopes:n.contentNameScopesList).pushAttributed(w,t);m.push(new xo(S,y.end))}}for(;m.length>0;)i.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}var xo=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function Lo(t,e,r,n,i,o,s,c){return new Po(t,e,r,n,i,o,s,c)}function Ur(t,e,r,n,i){const o=ht(e,gt),s=On.getCompiledRuleId(r,n,i.repository);for(const c of o)t.push({debugSelector:e,matcher:c.matcher,ruleId:s,grammar:i,priority:c.priority})}function gt(t,e){if(e.length<t.length)return!1;let r=0;return t.every(n=>{for(let i=r;i<e.length;i++)if(vo(e[i],n))return r=i+1,!0;return!1})}function vo(t,e){if(!t)return!1;if(t===e)return!0;const r=e.length;return t.length>r&&t.substr(0,r)===e&&t[r]==="."}var Po=class{constructor(t,e,r,n,i,o,s,c){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new Ao(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=jr(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const u of Object.keys(i)){const m=ht(u,gt);for(const p of m)this._tokenTypeMatchers.push({matcher:p.matcher,type:i[u]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let s in i)Ur(e,s,i[s],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(s=>{const c=this.getExternalGrammar(s);if(c){const u=c.injectionSelector;u&&Ur(e,u,c,this,c)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,r=t(e);return this._ruleId2desc[e]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=jr(r,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,r=0){const n=this._tokenize(t,e,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,r=0){const n=this._tokenize(t,e,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,r,n){this._rootId===-1&&(this._rootId=On.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Zt.NULL){i=!0;const m=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),f=De.set(0,m.languageId,m.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),_=this.getRule(this._rootId).getName(null,null);let y;_?y=Ue.createRootAndLookUpScopeName(_,f,this):y=Ue.createRoot("unknown",f),e=new Zt(null,this._rootId,-1,-1,!1,null,y,y)}else i=!1,e.reset();t=t+`
|
|
4
|
+
`;const o=this.createOnigString(t),s=o.content.length,c=new Do(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),u=Nn(this,o,i,0,e,c,!0,n);return Ln(o),{lineLength:s,lineTokens:c,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function jr(t,e){return t=Ji(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var Ue=class ie{constructor(e,r,n){this.parent=e,this.scopePath=r,this.tokenAttributes=n}static fromExtension(e,r){let n=e,i=e?.scopePath??null;for(const o of r)i=Dt.push(i,o.scopeNames),n=new ie(n,i,o.encodedTokenAttributes);return n}static createRoot(e,r){return new ie(null,new Dt(null,e),r)}static createRootAndLookUpScopeName(e,r,n){const i=n.getMetadataForScope(e),o=new Dt(null,e),s=n.themeProvider.themeMatch(o),c=ie.mergeAttributes(r,i,s);return new ie(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return ie.equals(this,e)}static equals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.scopeName!==r.scopeName||e.tokenAttributes!==r.tokenAttributes)return!1;e=e.parent,r=r.parent}while(!0)}static mergeAttributes(e,r,n){let i=-1,o=0,s=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,s=n.backgroundId),De.set(e,r.languageId,r.tokenType,null,i,o,s)}pushAttributed(e,r){if(e===null)return this;if(e.indexOf(" ")===-1)return ie._pushAttributed(this,e,r);const n=e.split(/ /g);let i=this;for(const o of n)i=ie._pushAttributed(i,o,r);return i}static _pushAttributed(e,r,n){const i=n.getMetadataForScope(r),o=e.scopePath.push(r),s=n.themeProvider.themeMatch(o),c=ie.mergeAttributes(e.tokenAttributes,i,s);return new ie(e,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?r.reverse():void 0}},Zt=class Ee{constructor(e,r,n,i,o,s,c,u){this.parent=e,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=c,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new Ee(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:Ee._equals(this,e)}static _equals(e,r){return e===r?!0:this._structuralEquals(e,r)?Ue.equals(e.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.depth!==r.depth||e.ruleId!==r.ruleId||e.endRule!==r.endRule)return!1;e=e.parent,r=r.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){Ee._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,r,n,i,o,s,c){return new Ee(this,e,r,n,i,o,s,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,r){return this.parent&&(r=this.parent._writeString(e,r)),e[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new Ee(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let r=this;for(;r&&r._enterPos===e._enterPos;){if(r.ruleId===e.ruleId)return!0;r=r.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(e,r){const n=Ue.fromExtension(e?.nameScopesList??null,r.nameScopesList);return new Ee(e,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,Ue.fromExtension(n,r.contentNameScopesList))}},Oo=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ht(r,gt).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(r=>ht(r,gt).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Do=class{constructor(t,e,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(n=De.set(n,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=De.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:r}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},No=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,r,n,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,Lo(t,o,e,r,n,i,this,this._onigLib))}return this._grammars.get(t)}},Bo=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new No(mt.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,r){this._syncRegistry.setTheme(mt.createFromRawTheme(e,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,r,n){return this.loadGrammarWithConfiguration(e,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,r,n){return this._loadGrammar(e,r,n.embeddedLanguages,n.tokenTypes,new Oo(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,r,n,i,o){const s=new co(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(c=>this._loadSingleGrammar(c.scopeName)),s.processQueue();return this._grammarForScopeName(e,r,n,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const r=this._options.loadGrammar(e);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(e,r=[],n=0,i=null){return this._syncRegistry.addGrammar(e,r),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,r=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,r,n,i,o)}},er=Zt.NULL;const $o=/["&'<>`]/g,Vo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mo=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Fo=/[|\\{}()[\]^$+*?.]/g,Wr=new WeakMap;function Go(t,e){if(t=t.replace(e.subset?Uo(e.subset):$o,n),e.subset||e.escapeOnly)return t;return t.replace(Vo,r).replace(Mo,n);function r(i,o,s){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function n(i,o,s){return e.format(i.charCodeAt(0),s.charCodeAt(o+1),e)}}function Uo(t){let e=Wr.get(t);return e||(e=jo(t),Wr.set(t,e)),e}function jo(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(Fo,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Wo=/[\dA-Fa-f]/;function Ho(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!Wo.test(String.fromCharCode(e))?n:n+";"}const zo=/\d/;function qo(t,e,r){const n="&#"+String(t);return r&&e&&!zo.test(String.fromCharCode(e))?n:n+";"}const Bt={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",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:"€"},Xo=["cent","copy","divide","gt","lt","not","para","times"],$n={}.hasOwnProperty,tr={};let rt;for(rt in Bt)$n.call(Bt,rt)&&(tr[Bt[rt]]=rt);const Qo=/[^\dA-Za-z]/;function Jo(t,e,r,n){const i=String.fromCharCode(t);if($n.call(tr,i)){const o=tr[i],s="&"+o;return r&&Qi.includes(o)&&!Xo.includes(o)&&(!n||e&&e!==61&&Qo.test(String.fromCharCode(e)))?s:s+";"}return""}function Ko(t,e,r){let n=Ho(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Jo(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const o=qo(t,e,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Oe(t,e){return Go(t,Object.assign({format:Ko},e))}const Yo=/^>|^->|<!--|-->|--!>|<!-$/g,Zo=[">"],es=["<",">"];function ts(t,e,r,n){return n.settings.bogusComments?"<?"+Oe(t.value,Object.assign({},n.settings.characterReferences,{subset:Zo}))+">":"<!--"+t.value.replace(Yo,i)+"-->";function i(o){return Oe(o,Object.assign({},n.settings.characterReferences,{subset:es}))}}function rs(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const G=Mn(1),Vn=Mn(-1),ns=[];function Mn(t){return e;function e(r,n,i){const o=r?r.children:ns;let s=(n||0)+t,c=o[s];if(!i)for(;c&&ur(c);)s+=t,c=o[s];return c}}const is={}.hasOwnProperty;function Fn(t){return e;function e(r,n,i){return is.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const pr=Fn({body:ss,caption:$t,colgroup:$t,dd:cs,dt:us,head:$t,html:os,li:ls,optgroup:ps,option:ms,p:as,rp:Hr,rt:Hr,tbody:ds,td:zr,tfoot:fs,th:zr,thead:hs,tr:gs});function $t(t,e,r){const n=G(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ur(n.value.charAt(0)))}function os(t,e,r){const n=G(r,e);return!n||n.type!=="comment"}function ss(t,e,r){const n=G(r,e);return!n||n.type!=="comment"}function as(t,e,r){const n=G(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function ls(t,e,r){const n=G(r,e);return!n||n.type==="element"&&n.tagName==="li"}function us(t,e,r){const n=G(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function cs(t,e,r){const n=G(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Hr(t,e,r){const n=G(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function ps(t,e,r){const n=G(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function ms(t,e,r){const n=G(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function hs(t,e,r){const n=G(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function ds(t,e,r){const n=G(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function fs(t,e,r){return!G(r,e)}function gs(t,e,r){const n=G(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function zr(t,e,r){const n=G(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const _s=Fn({body:ws,colgroup:bs,head:Es,html:ys,tbody:As});function ys(t){const e=G(t,-1);return!e||e.type!=="comment"}function Es(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function ws(t){const e=G(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&ur(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function bs(t,e,r){const n=Vn(r,e),i=G(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&pr(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function As(t,e,r){const n=Vn(r,e),i=G(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&pr(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const nt={name:[[`
|
|
5
|
+
\f\r &/=>`.split(""),`
|
|
6
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
7
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
8
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
9
|
+
\f\r &>`.split(""),`\0
|
|
10
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
11
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
12
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Is(t,e,r,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const c=[];let u;i.space==="html"&&t.tagName==="svg"&&(n.schema=bn);const m=Cs(n,t.properties),p=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,p&&(s=!1),(m||!o||!_s(t,e,r))&&(c.push("<",t.tagName,m?" "+m:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(u=m.charAt(m.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!s&&(!o||!pr(t,e,r))&&c.push("</"+t.tagName+">"),c.join("")}function Cs(t,e){const r=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=ks(t,i,e[i]);o&&r.push(o)}}for(;++n<r.length;){const o=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function ks(t,e,r){const n=ji(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let s=t.quote,c;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const u=Oe(n.attribute,Object.assign({},t.settings.characterReferences,{subset:nt.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Wi:Hi)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?u:(t.settings.preferUnquoted&&(c=Oe(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:nt.unquoted[i][o]}))),c!==r&&(t.settings.quoteSmart&&Nr(r,s)>Nr(r,t.alternative)&&(s=t.alternative),c=s+Oe(r,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?nt.single:nt.double)[i][o],attribute:!0}))+s),u+(c&&"="+c))}const Ss=["<","&"];function Gn(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:Oe(t.value,Object.assign({},n.settings.characterReferences,{subset:Ss}))}function Rs(t,e,r,n){return n.settings.allowDangerousHtml?t.value:Gn(t,e,r,n)}function Ts(t,e,r,n){return n.all(t)}const xs=zi("type",{invalid:Ls,unknown:vs,handlers:{comment:ts,doctype:rs,element:Is,raw:Rs,root:Ts,text:Gn}});function Ls(t){throw new Error("Expected node, not `"+t+"`")}function vs(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Ps={},Os={},Ds=[];function Ns(t,e){const r=e||Ps,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Bs,all:$s,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||Xi,characterReferences:r.characterReferences||Os,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?bn:qi,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Bs(t,e,r){return xs(t,e,r,this)}function $s(t){const e=[],r=t&&t.children||Ds;let n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}function _t(t,e){const r=typeof t=="string"?{}:{...t.colorReplacements},n=typeof t=="string"?t:t.name;for(const[i,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?r[i]=o:i===n&&Object.assign(r,o);return r}function fe(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function Vs(t){return Array.isArray(t)?t:[t]}async function Un(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function mr(t){return!t||["plaintext","txt","text","plain"].includes(t)}function jn(t){return t==="ansi"||mr(t)}function hr(t){return t==="none"}function Wn(t){return hr(t)}function Hn(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const r=Array.isArray(e)?e:e.split(/\s+/g);for(const n of r)n&&!t.properties.class.includes(n)&&t.properties.class.push(n);return t}function bt(t,e=!1){if(t.length===0)return[["",0]];const r=t.split(/(\r?\n)/g);let n=0;const i=[];for(let o=0;o<r.length;o+=2){const s=e?r[o]+(r[o+1]||""):r[o];i.push([s,n]),n+=r[o].length,n+=r[o+1]?.length||0}return i}function Ms(t){const e=bt(t,!0).map(([i])=>i);function r(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,s=0;for(const c of e){if(o<c.length)break;o-=c.length,s++}return{line:s,character:o}}function n(i,o){let s=0;for(let c=0;c<i;c++)s+=e[c].length;return s+=o,s}return{lines:e,indexToPos:r,posToIndex:n}}function Fs(t,e,r){const n=new Set;for(const o of t.matchAll(/:?lang=["']([^"']+)["']/g)){const s=o[1].toLowerCase().trim();s&&n.add(s)}for(const o of t.matchAll(/(?:```|~~~)([\w-]+)/g)){const s=o[1].toLowerCase().trim();s&&n.add(s)}for(const o of t.matchAll(/\\begin\{([\w-]+)\}/g)){const s=o[1].toLowerCase().trim();s&&n.add(s)}for(const o of t.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const s=o[1].toLowerCase().trim(),c=s.includes("/")?s.split("/").pop():s;c&&n.add(c)}if(!r)return Array.from(n);const i=r.getBundledLanguages();return Array.from(n).filter(o=>o&&i[o])}const dr="light-dark()",Gs=["color","background-color"];function Us(t,e){let r=0;const n=[];for(const i of e)i>r&&n.push({...t,content:t.content.slice(r,i),offset:t.offset+r}),r=i;return r<t.content.length&&n.push({...t,content:t.content.slice(r),offset:t.offset+r}),n}function js(t,e){const r=Array.from(e instanceof Set?e:new Set(e)).sort((n,i)=>n-i);return r.length?t.map(n=>n.flatMap(i=>{const o=r.filter(s=>i.offset<s&&s<i.offset+i.content.length).map(s=>s-i.offset).sort((s,c)=>s-c);return o.length?Us(i,o):i})):t}function Ws(t,e,r,n,i="css-vars"){const o={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(p=>yt(t.variants[p])),c=new Set(s.flatMap(p=>Object.keys(p))),u={},m=(p,f)=>{const _=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return r+e[p]+(f==="color"?"":_)};return s.forEach((p,f)=>{for(const _ of c){const y=p[_]||"inherit";if(f===0&&n&&Gs.includes(_))if(n===dr&&s.length>1){const w=e.findIndex(R=>R==="light"),k=e.findIndex(R=>R==="dark");if(w===-1||k===-1)throw new V('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const S=s[w][_]||"inherit",I=s[k][_]||"inherit";u[_]=`light-dark(${S}, ${I})`,i==="css-vars"&&(u[m(f,_)]=y)}else u[_]=y;else i==="css-vars"&&(u[m(f,_)]=y)}}),o.htmlStyle=u,o}function yt(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&X.Italic&&(e["font-style"]="italic"),t.fontStyle&X.Bold&&(e["font-weight"]="bold");const r=[];t.fontStyle&X.Underline&&r.push("underline"),t.fontStyle&X.Strikethrough&&r.push("line-through"),r.length&&(e["text-decoration"]=r.join(" "))}return e}function rr(t){return typeof t=="string"?t:Object.entries(t).map(([e,r])=>`${e}:${r}`).join(";")}const zn=new WeakMap;function At(t,e){zn.set(t,e)}function qe(t){return zn.get(t)}class Ne{_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,r){return new Ne(Object.fromEntries(Vs(r).map(n=>[n,er])),e)}constructor(...e){if(e.length===2){const[r,n]=e;this.lang=n,this._stacks=r}else{const[r,n,i]=e;this.lang=n,this._stacks={[i]:r}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Hs(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Hs(t){const e=[],r=new Set;function n(i){if(r.has(i))return;r.add(i);const o=i?.nameScopesList?.scopeName;o&&e.push(o),i.parent&&n(i.parent)}return n(t),e}function zs(t,e){if(!(t instanceof Ne))throw new V("Invalid grammar state");return t.getInternalStack(e)}function qs(){const t=new WeakMap;function e(r){if(!t.has(r.meta)){let n=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new V(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...i.indexToPos(s),offset:s}}else{const c=i.lines[s.line];if(c===void 0)throw new V(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let u=s.character;if(u<0&&(u=c.length+u),u<0||u>c.length)throw new V(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,character:u,offset:i.posToIndex(s.line,u)}}};const i=Ms(r.source),o=(r.options.decorations||[]).map(s=>({...s,start:n(s.start),end:n(s.end)}));Xs(o),t.set(r.meta,{decorations:o,converter:i,source:r.source})}return t.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const i=e(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return js(r,i)},code(r){if(!this.options.decorations?.length)return;const n=e(this),i=Array.from(r.children).filter(p=>p.type==="element"&&p.tagName==="span");if(i.length!==n.converter.lines.length)throw new V(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(p,f,_,y){const w=i[p];let k="",S=-1,I=-1;if(f===0&&(S=0),_===0&&(I=0),_===Number.POSITIVE_INFINITY&&(I=w.children.length),S===-1||I===-1)for(let C=0;C<w.children.length;C++)k+=qn(w.children[C]),S===-1&&k.length===f&&(S=C+1),I===-1&&k.length===_&&(I=C+1);if(S===-1)throw new V(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(I===-1)throw new V(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const R=w.children.slice(S,I);if(!y.alwaysWrap&&R.length===w.children.length)c(w,y,"line");else if(!y.alwaysWrap&&R.length===1&&R[0].type==="element")c(R[0],y,"token");else{const C={type:"element",tagName:"span",properties:{},children:R};c(C,y,"wrapper"),w.children.splice(S,R.length,C)}}function s(p,f){i[p]=c(i[p],f,"line")}function c(p,f,_){const y=f.properties||{},w=f.transform||(k=>k);return p.tagName=f.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},f.properties?.class&&Hn(p,f.properties.class),p=w(p,_)||p,p}const u=[],m=n.decorations.sort((p,f)=>f.start.offset-p.start.offset||p.end.offset-f.end.offset);for(const p of m){const{start:f,end:_}=p;if(f.line===_.line)o(f.line,f.character,_.character,p);else if(f.line<_.line){o(f.line,f.character,Number.POSITIVE_INFINITY,p);for(let y=f.line+1;y<_.line;y++)u.unshift(()=>s(y,p));o(_.line,0,_.character,p)}}u.forEach(p=>p())}}}function Xs(t){for(let e=0;e<t.length;e++){const r=t[e];if(r.start.offset>r.end.offset)throw new V(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=e+1;n<t.length;n++){const i=t[n],o=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,s=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset,c=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,u=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset;if(o||s||c||u){if(o&&s||c&&u||c&&r.start.offset===r.end.offset||s&&i.start.offset===i.end.offset)continue;throw new V(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function qn(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(qn).join(""):""}const Qs=[qs()];function Et(t){const e=Js(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Qs]}function Js(t){const e=[],r=[],n=[];for(const i of t)switch(i.enforce){case"pre":e.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:e,post:r,normal:n}}var be=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Vt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ks(t,e){const r=t.indexOf("\x1B",e);if(r!==-1&&t[r+1]==="["){const n=t.indexOf("m",r);if(n!==-1)return{sequence:t.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:t.length}}function qr(t){const e=t.shift();if(e==="2"){const r=t.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(e==="5"){const r=t.shift();if(r)return{type:"table",index:Number(r)}}}function Ys(t){const e=[];for(;t.length>0;){const r=t.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)e.push({type:"resetAll"});else if(n<=9)Vt[n]&&e.push({type:"setDecoration",value:Vt[n]});else if(n<=29){const i=Vt[n-20];i&&(e.push({type:"resetDecoration",value:i}),i==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)e.push({type:"setForegroundColor",value:{type:"named",name:be[n-30]}});else if(n===38){const i=qr(t);i&&e.push({type:"setForegroundColor",value:i})}else if(n===39)e.push({type:"resetForegroundColor"});else if(n<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:be[n-40]}});else if(n===48){const i=qr(t);i&&e.push({type:"setBackgroundColor",value:i})}else n===49?e.push({type:"resetBackgroundColor"}):n===53?e.push({type:"setDecoration",value:"overline"}):n===55?e.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?e.push({type:"setForegroundColor",value:{type:"named",name:be[n-90+8]}}):n>=100&&n<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:be[n-100+8]}})}return e}function Zs(){let t=null,e=null,r=new Set;return{parse(n){const i=[];let o=0;do{const s=Ks(n,o),c=s.sequence?n.substring(o,s.startPosition):n.substring(o);if(c.length>0&&i.push({value:c,foreground:t,background:e,decorations:new Set(r)}),s.sequence){const u=Ys(s.sequence);for(const m of u)m.type==="resetAll"?(t=null,e=null,r.clear()):m.type==="resetForegroundColor"?t=null:m.type==="resetBackgroundColor"?e=null:m.type==="resetDecoration"&&r.delete(m.value);for(const m of u)m.type==="setForegroundColor"?t=m.value:m.type==="setBackgroundColor"?e=m.value:m.type==="setDecoration"&&r.add(m.value)}o=s.position}while(o<n.length);return i}}}var ea={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"};function ta(t=ea){function e(c){return t[c]}function r(c){return`#${c.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let m=0;m<be.length;m++)n.push(e(be[m]));let c=[0,95,135,175,215,255];for(let m=0;m<6;m++)for(let p=0;p<6;p++)for(let f=0;f<6;f++)n.push(r([c[m],c[p],c[f]]));let u=8;for(let m=0;m<24;m++,u+=10)n.push(r([u,u,u]));return n}function o(c){return i()[c]}function s(c){switch(c.type){case"named":return e(c.name);case"rgb":return r(c.rgb);case"table":return o(c.index)}}return{value:s}}const ra={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 na(t,e,r){const n=_t(t,r),i=bt(e),o=Object.fromEntries(be.map(u=>{const m=`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`,p=t.colors?.[m];return[u,p||ra[u]]})),s=ta(o),c=Zs();return i.map(u=>c.parse(u[0]).map(m=>{let p,f;m.decorations.has("reverse")?(p=m.background?s.value(m.background):t.bg,f=m.foreground?s.value(m.foreground):t.fg):(p=m.foreground?s.value(m.foreground):t.fg,f=m.background?s.value(m.background):void 0),p=fe(p,n),f=fe(f,n),m.decorations.has("dim")&&(p=ia(p));let _=X.None;return m.decorations.has("bold")&&(_|=X.Bold),m.decorations.has("italic")&&(_|=X.Italic),m.decorations.has("underline")&&(_|=X.Underline),m.decorations.has("strikethrough")&&(_|=X.Strikethrough),{content:m.value,offset:u[1],color:p,bgColor:f,fontStyle:_}}))}function ia(t){const e=t.match(/#([0-9a-f]{3,8})/i);if(e){const n=e[1];if(n.length===8){const i=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${i}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const i=n[0],o=n[1],s=n[2],c=n[3],u=Math.round(Number.parseInt(`${c}${c}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${o}${o}${s}${s}${u}`}else if(n.length===3){const i=n[0],o=n[1],s=n[2];return`#${i}${i}${o}${o}${s}${s}80`}}}const r=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:t}function It(t,e,r={}){const{theme:n=t.getLoadedThemes()[0]}=r,i=t.resolveLangAlias(r.lang||"text");if(mr(i)||hr(n))return bt(e).map(u=>[{content:u[0],offset:u[1]}]);const{theme:o,colorMap:s}=t.setTheme(n);if(i==="ansi")return na(o,e,r);const c=t.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==c.name)throw new V(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${c.name}"`);if(!r.grammarState.themes.includes(o.name))throw new V(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return oa(e,c,o,s,r)}function Xn(...t){if(t.length===2)return qe(t[1]);const[e,r,n={}]=t,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=n;if(mr(i)||hr(o))throw new V("Plain language does not have grammar state");if(i==="ansi")throw new V("ANSI language does not have grammar state");const{theme:s,colorMap:c}=e.setTheme(o),u=e.getLanguage(i);return new Ne(fr(r,u,s,c,n).stateStack,u.name,s.name)}function oa(t,e,r,n,i){const o=fr(t,e,r,n,i),s=new Ne(o.stateStack,e.name,r.name);return At(o.tokens,s),o.tokens}function fr(t,e,r,n,i){const o=_t(r,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:c=500}=i,u=bt(t);let m=i.grammarState?zs(i.grammarState,r.name)??er:i.grammarContextCode!=null?fr(i.grammarContextCode,e,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:er,p=[];const f=[];for(let _=0,y=u.length;_<y;_++){const[w,k]=u[_];if(w===""){p=[],f.push([]);continue}if(s>0&&w.length>=s){p=[],f.push([{content:w,offset:k,color:"",fontStyle:0}]);continue}let S,I,R;i.includeExplanation&&(S=e.tokenizeLine(w,m,c),I=S.tokens,R=0);const C=e.tokenizeLine2(w,m,c),T=C.tokens.length/2;for(let L=0;L<T;L++){const B=C.tokens[2*L],z=L+1<T?C.tokens[2*L+2]:w.length;if(B===z)continue;const H=C.tokens[2*L+1],ge=fe(n[De.getForeground(H)],o),Ce=De.getFontStyle(H),_e={content:w.substring(B,z),offset:k+B,color:ge,fontStyle:Ce};if(i.includeExplanation){const re=[];if(i.includeExplanation!=="scopeName")for(const ee of r.settings){let pe;switch(typeof ee.scope){case"string":pe=ee.scope.split(/,/).map(Ve=>Ve.trim());break;case"object":pe=ee.scope;break;default:continue}re.push({settings:ee,selectors:pe.map(Ve=>Ve.split(/ /))})}_e.explanation=[];let Ze=0;for(;B+Ze<z;){const ee=I[R],pe=w.substring(ee.startIndex,ee.endIndex);Ze+=pe.length,_e.explanation.push({content:pe,scopes:i.includeExplanation==="scopeName"?sa(ee.scopes):aa(re,ee.scopes)}),R+=1}}p.push(_e)}f.push(p),p=[],m=C.ruleStack}return{tokens:f,stateStack:m}}function sa(t){return t.map(e=>({scopeName:e}))}function aa(t,e){const r=[];for(let n=0,i=e.length;n<i;n++){const o=e[n];r[n]={scopeName:o,themeMatches:ua(t,o,e.slice(0,n))}}return r}function Xr(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function la(t,e,r){if(!Xr(t[t.length-1],e))return!1;let n=t.length-2,i=r.length-1;for(;n>=0&&i>=0;)Xr(t[n],r[i])&&(n-=1),i-=1;return n===-1}function ua(t,e,r){const n=[];for(const{selectors:i,settings:o}of t)for(const s of i)if(la(s,e,r)){n.push(o);break}return n}function gr(t,e,r){const n=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),i=n.map(u=>{const m=It(t,e,{...r,theme:u.theme}),p=qe(m),f=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:m,state:p,theme:f}}),o=ca(...i.map(u=>u.tokens)),s=o[0].map((u,m)=>u.map((p,f)=>{const _={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in r&&r.includeExplanation&&(_.explanation=p.explanation),o.forEach((y,w)=>{const{content:k,explanation:S,offset:I,...R}=y[m][f];_.variants[n[w].color]=R}),_})),c=i[0].state?new Ne(Object.fromEntries(i.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),i[0].state.lang):void 0;return c&&At(s,c),s}function ca(...t){const e=t.map(()=>[]),r=t.length;for(let n=0;n<t[0].length;n++){const i=t.map(u=>u[n]),o=e.map(()=>[]);e.forEach((u,m)=>u.push(o[m]));const s=i.map(()=>0),c=i.map(u=>u[0]);for(;c.every(u=>u);){const u=Math.min(...c.map(m=>m.content.length));for(let m=0;m<r;m++){const p=c[m];p.content.length===u?(o[m].push(p),s[m]+=1,c[m]=i[m][s[m]]):(o[m].push({...p,content:p.content.slice(0,u)}),c[m]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return e}function Xe(t,e,r){let n,i,o,s,c,u;if("themes"in r){const{defaultColor:m="light",cssVariablePrefix:p="--shiki-",colorsRendering:f="css-vars"}=r,_=Object.entries(r.themes).filter(I=>I[1]).map(I=>({color:I[0],theme:I[1]})).sort((I,R)=>I.color===m?-1:R.color===m?1:0);if(_.length===0)throw new V("`themes` option must not be empty");const y=gr(t,e,r);if(u=qe(y),m&&dr!==m&&!_.find(I=>I.color===m))throw new V(`\`themes\` option must contain the defaultColor key \`${m}\``);const w=_.map(I=>t.getTheme(I.theme)),k=_.map(I=>I.color);o=y.map(I=>I.map(R=>Ws(R,k,p,m,f))),u&&At(o,u);const S=_.map(I=>_t(I.theme,r));i=Qr(_,w,S,p,m,"fg",f),n=Qr(_,w,S,p,m,"bg",f),s=`shiki-themes ${w.map(I=>I.name).join(" ")}`,c=m?void 0:[i,n].join(";")}else if("theme"in r){const m=_t(r.theme,r);o=It(t,e,r);const p=t.getTheme(r.theme);n=fe(p.bg,m),i=fe(p.fg,m),s=p.name,u=qe(o)}else throw new V("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:s,rootStyle:c,grammarState:u}}function Qr(t,e,r,n,i,o,s){return t.map((c,u)=>{const m=fe(e[u][o],r[u])||"inherit",p=`${n+c.color}${o==="bg"?"-bg":""}:${m}`;if(u===0&&i){if(i===dr&&t.length>1){const f=t.findIndex(k=>k.color==="light"),_=t.findIndex(k=>k.color==="dark");if(f===-1||_===-1)throw new V('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=fe(e[f][o],r[f])||"inherit",w=fe(e[_][o],r[_])||"inherit";return`light-dark(${y}, ${w});${p}`}return m}return s==="css-vars"?p:null}).filter(c=>!!c).join(";")}function Qe(t,e,r,n={meta:{},options:r,codeToHast:(i,o)=>Qe(t,i,o),codeToTokens:(i,o)=>Xe(t,i,o)}){let i=e;for(const w of Et(r))i=w.preprocess?.call(n,i,r)||i;let{tokens:o,fg:s,bg:c,themeName:u,rootStyle:m,grammarState:p}=Xe(t,i,r);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:_=!1}=r;f===!0?o=ma(o):f==="never"&&(o=ha(o)),_&&(o=da(o));const y={...n,get source(){return i}};for(const w of Et(r))o=w.tokens?.call(y,o)||o;return pa(o,{...r,fg:s,bg:c,themeName:u,rootStyle:r.rootStyle===!1?!1:r.rootStyle??m},y,p)}function pa(t,e,r,n=qe(t)){const i=Et(e),o=[],s={type:"root",children:[]},{structure:c="classic",tabindex:u="0"}=e,m={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?m.style=e.rootStyle:m.style=`background-color:${e.bg};color:${e.fg}`),u!==!1&&u!=null&&(m.tabindex=u.toString());for(const[k,S]of Object.entries(e.meta||{}))k.startsWith("_")||(m[k]=S);let p={type:"element",tagName:"pre",properties:m,children:[],data:e.data},f={type:"element",tagName:"code",properties:{},children:o};const _=[],y={...r,structure:c,addClassToHast:Hn,get source(){return r.source},get tokens(){return t},get options(){return e},get root(){return s},get pre(){return p},get code(){return f},get lines(){return _}};if(t.forEach((k,S)=>{S&&(c==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
|
|
13
|
+
`}));let I={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const C of k){let T={type:"element",tagName:"span",properties:{...C.htmlAttrs},children:[{type:"text",value:C.content}]};const L=rr(C.htmlStyle||yt(C));L&&(T.properties.style=L);for(const B of i)T=B?.span?.call(y,T,S+1,R,I,C)||T;c==="inline"?s.children.push(T):c==="classic"&&I.children.push(T),R+=C.content.length}if(c==="classic"){for(const C of i)I=C?.line?.call(y,I,S+1)||I;_.push(I),o.push(I)}else c==="inline"&&_.push(I)}),c==="classic"){for(const k of i)f=k?.code?.call(y,f)||f;p.children.push(f);for(const k of i)p=k?.pre?.call(y,p)||p;s.children.push(p)}else if(c==="inline"){const k=[];let S={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const C of s.children)C.type==="element"&&C.tagName==="br"?(k.push(S),S={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(C.type==="element"||C.type==="text")&&S.children.push(C);k.push(S);let R={type:"element",tagName:"code",properties:{},children:k};for(const C of i)R=C?.code?.call(y,R)||R;s.children=[];for(let C=0;C<R.children.length;C++){C>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const T=R.children[C];T.type==="element"&&s.children.push(...T.children)}}let w=s;for(const k of i)w=k?.root?.call(y,w)||w;return n&&At(w,n),w}function ma(t){return t.map(e=>{const r=[];let n="",i;return e.forEach((o,s)=>{const u=!(o.fontStyle&&(o.fontStyle&X.Underline||o.fontStyle&X.Strikethrough));u&&o.content.match(/^\s+$/)&&e[s+1]?(i===void 0&&(i=o.offset),n+=o.content):n?(u?r.push({...o,offset:i,content:n+o.content}):r.push({content:n,offset:i},o),i=void 0,n=""):r.push(o)}),r})}function ha(t){return t.map(e=>e.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,i,o,s]=n;if(!i&&!s)return r;const c=[{...r,offset:r.offset+i.length,content:o}];return i&&c.unshift({content:i,offset:r.offset}),s&&c.push({content:s,offset:r.offset+i.length+o.length}),c}))}function da(t){return t.map(e=>{const r=[];for(const n of e){if(r.length===0){r.push({...n});continue}const i=r[r.length-1],o=rr(i.htmlStyle||yt(i)),s=rr(n.htmlStyle||yt(n)),c=i.fontStyle&&(i.fontStyle&X.Underline||i.fontStyle&X.Strikethrough),u=n.fontStyle&&(n.fontStyle&X.Underline||n.fontStyle&X.Strikethrough);!c&&!u&&o===s?i.content+=n.content:r.push({...n})}return r})}const fa=Ns;function Qn(t,e,r){const n={meta:{},options:r,codeToHast:(o,s)=>Qe(t,o,s),codeToTokens:(o,s)=>Xe(t,o,s)};let i=fa(Qe(t,e,r,n));for(const o of Et(r))i=o.postprocess?.call(n,i,r)||i;return i}const Jr={light:"#333333",dark:"#bbbbbb"},Kr={light:"#fffffe",dark:"#1e1e1e"},Yr="__shiki_resolved";function _r(t){if(t?.[Yr])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:r,fg:n}=e;if(!r||!n){const c=e.settings?e.settings.find(u=>!u.name&&!u.scope):void 0;c?.settings?.foreground&&(n=c.settings.foreground),c?.settings?.background&&(r=c.settings.background),!n&&e?.colors?.["editor.foreground"]&&(n=e.colors["editor.foreground"]),!r&&e?.colors?.["editor.background"]&&(r=e.colors["editor.background"]),n||(n=e.type==="light"?Jr.light:Jr.dark),r||(r=e.type==="light"?Kr.light:Kr.dark),e.fg=n,e.bg=r}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function s(c){if(o.has(c))return o.get(c);i+=1;const u=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${u}`]?s(c):(o.set(c,u),u)}e.settings=e.settings.map(c=>{const u=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),m=c.settings?.background&&!c.settings.background.startsWith("#");if(!u&&!m)return c;const p={...c,settings:{...c.settings}};if(u){const f=s(c.settings.foreground);e.colorReplacements[f]=c.settings.foreground,p.settings.foreground=f}if(m){const f=s(c.settings.background);e.colorReplacements[f]=c.settings.background,p.settings.background=f}return p});for(const c of Object.keys(e.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!e.colors[c]?.startsWith("#")){const u=s(e.colors[c]);e.colorReplacements[u]=e.colors[c],e.colors[c]=u}return Object.defineProperty(e,Yr,{enumerable:!1,writable:!1,value:!0}),e}async function Jn(t){return Array.from(new Set((await Promise.all(t.filter(e=>!jn(e)).map(async e=>await Un(e).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function Kn(t){return(await Promise.all(t.map(async r=>Wn(r)?null:_r(await Un(r))))).filter(r=>!!r)}let ct=3,Yn=!1;function Wu(t=!0,e=!1){ct=t,Yn=e}function ga(t,e=3){if(ct&&!(typeof ct=="number"&&e>ct)){if(Yn)throw new Error(`[SHIKI DEPRECATE]: ${t}`);console.trace(`[SHIKI DEPRECATE]: ${t}`)}}let Pe=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Zn(t,e){if(!e)return t;if(e[t]){const r=new Set([t]);for(;e[t];){if(t=e[t],r.has(t))throw new Pe(`Circular alias \`${Array.from(r).join(" -> ")} -> ${t}\``);r.add(t)}}return t}class _a extends Bo{constructor(e,r,n,i={}){super(e),this._resolver=e,this._themes=r,this._langs=n,this._alias=i,this._themes.map(o=>this.loadTheme(o)),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 typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const r=_r(e);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let r=this._textmateThemeCache.get(e);r||(r=mt.createFromRawTheme(e),this._textmateThemeCache.set(e,r)),this._syncRegistry.setTheme(r)}getGrammar(e){return e=Zn(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const r=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,r.size)for(const o of r)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const r=Array.from(this._langGraph.entries()),n=r.filter(([i,o])=>!o);if(n.length){const i=r.filter(([o,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(u=>n.map(([m])=>m).includes(u)):!1).filter(o=>!n.includes(o));throw new Pe(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of r)this._resolver.addLanguage(o);for(const[i,o]of r)this.loadLanguage(o)}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);const r=e.embeddedLanguages??e.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}}class ya{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,r){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},r.forEach(n=>this.addLanguage(n))}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(r=>{this._langs.set(r,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(e.scopeName)})}getInjections(e){const r=e.split(".");let n=[];for(let i=1;i<=r.length;i++){const o=r.slice(0,i).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}let Fe=0;function ei(t){Fe+=1,t.warnings!==!1&&Fe>=10&&Fe%10===0&&console.warn(`[Shiki] ${Fe} 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 e=!1;if(!t.engine)throw new Pe("`engine` option is required for synchronous mode");const r=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(_r),i=new ya(t.engine,r),o=new _a(i,n,r,t.langAlias);let s;function c(C){return Zn(C,t.langAlias)}function u(C){I();const T=o.getGrammar(typeof C=="string"?C:C.name);if(!T)throw new Pe(`Language \`${C}\` not found, you may need to load it first`);return T}function m(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};I();const T=o.getTheme(C);if(!T)throw new Pe(`Theme \`${C}\` not found, you may need to load it first`);return T}function p(C){I();const T=m(C);s!==C&&(o.setTheme(T),s=C);const L=o.getColorMap();return{theme:T,colorMap:L}}function f(){return I(),o.getLoadedThemes()}function _(){return I(),o.getLoadedLanguages()}function y(...C){I(),o.loadLanguages(C.flat(1))}async function w(...C){return y(await Jn(C))}function k(...C){I();for(const T of C.flat(1))o.loadTheme(T)}async function S(...C){return I(),k(await Kn(C))}function I(){if(e)throw new Pe("Shiki instance has been disposed")}function R(){e||(e=!0,o.dispose(),Fe-=1)}return{setTheme:p,getTheme:m,getLanguage:u,getLoadedThemes:f,getLoadedLanguages:_,resolveLangAlias:c,loadLanguage:w,loadLanguageSync:y,loadTheme:S,loadThemeSync:k,dispose:R,[Symbol.dispose]:R}}async function Ea(t){t.engine||ga("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,r,n]=await Promise.all([Kn(t.themes||[]),Jn(t.langs||[]),t.engine]);return ei({...t,themes:e,langs:r,engine:n})}async function ti(t){const e=await Ea(t);return{getLastGrammarState:(...r)=>Xn(e,...r),codeToTokensBase:(r,n)=>It(e,r,n),codeToTokensWithThemes:(r,n)=>gr(e,r,n),codeToTokens:(r,n)=>Xe(e,r,n),codeToHast:(r,n)=>Qe(e,r,n),codeToHtml:(r,n)=>Qn(e,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function zu(t){const e=ei(t);return{getLastGrammarState:(...r)=>Xn(e,...r),codeToTokensBase:(r,n)=>It(e,r,n),codeToTokensWithThemes:(r,n)=>gr(e,r,n),codeToTokens:(r,n)=>Xe(e,r,n),codeToHast:(r,n)=>Qe(e,r,n),codeToHtml:(r,n)=>Qn(e,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function wa(t){let e;async function r(n){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}return r}const qu=wa(ti);function ri(t){const e=t.langs,r=t.themes,n=t.engine;async function i(o){function s(f){if(typeof f=="string"){if(f=o.langAlias?.[f]||f,jn(f))return[];const _=e[f];if(!_)throw new V(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);return _}return f}function c(f){if(Wn(f))return"none";if(typeof f=="string"){const _=r[f];if(!_)throw new V(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);return _}return f}const u=(o.themes??[]).map(f=>c(f)),m=(o.langs??[]).map(f=>s(f)),p=await ti({engine:o.engine??n(),...o,themes:u,langs:m});return{...p,loadLanguage(...f){return p.loadLanguage(...f.map(s))},loadTheme(...f){return p.loadTheme(...f.map(c))},getBundledLanguages(){return e},getBundledThemes(){return r}}}return i}function ba(t){let e;async function r(n={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else{e=t({...n,themes:[],langs:[]});const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}}return r}function Aa(t,e){const r=ba(t);async function n(i,o){const s=await r({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),c=await e?.guessEmbeddedLanguages?.(i,o.lang,s);return c&&await s.loadLanguage(...c),s}return{getSingletonHighlighter(i){return r(i)},async codeToHtml(i,o){return(await n(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await n(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await n(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await n(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await n(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await r({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}const Xu=ri;function Qu(t={}){const{name:e="css-variables",variablePrefix:r="--shiki-",fontStyle:n=!0}=t,i=s=>t.variableDefaults?.[s]?`var(${r}${s}, ${t.variableDefaults[s]})`:`var(${r}${s})`,o={name:e,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 n||(o.tokenColors=o.tokenColors?.map(s=>(s.settings?.fontStyle&&delete s.settings.fontStyle,s))),o}const ni=[{id:"abap",name:"ABAP",import:(()=>d(()=>import("./abap-BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>d(()=>import("./actionscript-3-CfeIJUat.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>d(()=>import("./ada-bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>d(()=>import("./angular-html-CU67Zn6k.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>d(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>d(()=>import("./apache-Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>d(()=>import("./apex-D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>d(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>d(()=>import("./applescript-Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>d(()=>import("./ara-BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>d(()=>import("./asciidoc-Dv7Oe6Be.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>d(()=>import("./asm-D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>d(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>d(()=>import("./awk-DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>d(()=>import("./ballerina-BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>d(()=>import("./bat-BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>d(()=>import("./beancount-k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>d(()=>import("./berry-uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>d(()=>import("./bibtex-CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>d(()=>import("./bicep-Bmn6On1c.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>d(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>d(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>d(()=>import("./c-BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>d(()=>import("./c3-VCDPK7BO.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>d(()=>import("./cadence-Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>d(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>d(()=>import("./clarity-D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>d(()=>import("./clojure-P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>d(()=>import("./cmake-D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>d(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>d(()=>import("./codeowners-Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>d(()=>import("./codeql-DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>d(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>d(()=>import("./common-lisp-Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>d(()=>import("./coq-DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>d(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>d(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>d(()=>import("./csharp-K5feNrxe.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>d(()=>import("./css-DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>d(()=>import("./csv-fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>d(()=>import("./cue-D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>d(()=>import("./cypher-COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>d(()=>import("./d-85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>d(()=>import("./dart-CF10PKvl.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>d(()=>import("./dax-CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>d(()=>import("./desktop-BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>d(()=>import("./diff-D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>d(()=>import("./docker-BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>d(()=>import("./dotenv-Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>d(()=>import("./dream-maker-BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>d(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>d(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>d(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>d(()=>import("./emacs-lisp-C9XAeP06.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>d(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>d(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>d(()=>import("./fennel-BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>d(()=>import("./fish-BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>d(()=>import("./fluent-C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>d(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>d(()=>import("./fortran-free-form-BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>d(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",import:(()=>d(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",import:(()=>d(()=>import("./gdscript-DTMYz4Jt.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>d(()=>import("./gdshader-DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>d(()=>import("./genie-D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>d(()=>import("./gherkin-DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>d(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>d(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>d(()=>import("./gleam-BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>d(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>d(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>d(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>d(()=>import("./gn-n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>d(()=>import("./gnuplot-DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>d(()=>import("./go-Dn2_MT6a.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>d(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>d(()=>import("./groovy-gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>d(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>d(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>d(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>d(()=>import("./haskell-Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>d(()=>import("./haxe-CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>d(()=>import("./hcl-BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>d(()=>import("./hjson-D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>d(()=>import("./hlsl-D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>d(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>d(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>d(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>d(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>d(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>d(()=>import("./hy-DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>d(()=>import("./imba-DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>d(()=>import("./ini-BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>d(()=>import("./java-CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>d(()=>import("./javascript-wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>d(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>d(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>d(()=>import("./json-Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>d(()=>import("./json5-C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>d(()=>import("./jsonc-Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>d(()=>import("./jsonl-DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>d(()=>import("./jsonnet-DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>d(()=>import("./jssm-C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>d(()=>import("./jsx-g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>d(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>d(()=>import("./kdl-DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>d(()=>import("./kotlin-BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>d(()=>import("./kusto-DZf3V79B.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>d(()=>import("./latex-B4uzh10-.js"),__vite__mapDeps([63,64,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>d(()=>import("./lean-BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>d(()=>import("./less-B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>d(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>d(()=>import("./llvm-BtvRca6l.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>d(()=>import("./log-2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>d(()=>import("./logo-BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>d(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>d(()=>import("./luau-C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>d(()=>import("./make-CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>d(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>d(()=>import("./marko-DZsq8hO1.js"),__vite__mapDeps([66,3,67,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>d(()=>import("./matlab-D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>d(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>d(()=>import("./mdx-Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>d(()=>import("./mermaid-mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>d(()=>import("./mipsasm-CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>d(()=>import("./mojo-B93PlW-d.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>d(()=>import("./moonbit-Ba13S78F.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>d(()=>import("./move-Bu9oaDYs.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>d(()=>import("./narrat-DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>d(()=>import("./nextflow-BrzmwbiE.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>d(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>d(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>d(()=>import("./nix-CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>d(()=>import("./nushell-C-sUppwS.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>d(()=>import("./objective-c-DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>d(()=>import("./objective-cpp-CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>d(()=>import("./ocaml-C0hk2d4L.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>d(()=>import("./openscad-C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>d(()=>import("./pascal-D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>d(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>d(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>d(()=>import("./pkl-u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>d(()=>import("./plsql-ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>d(()=>import("./po-BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>d(()=>import("./polar-C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>d(()=>import("./postcss-CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>d(()=>import("./powerquery-CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>d(()=>import("./powershell-Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>d(()=>import("./prisma-Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>d(()=>import("./prolog-CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>d(()=>import("./proto-C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>d(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>d(()=>import("./puppet-BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>d(()=>import("./purescript-CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>d(()=>import("./python-B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>d(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>d(()=>import("./qmldir-C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>d(()=>import("./qss-IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>d(()=>import("./r-Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>d(()=>import("./racket-BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>d(()=>import("./raku-DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>d(()=>import("./razor-C1TweQQi.js"),__vite__mapDeps([75,1,2,3,76]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>d(()=>import("./reg-C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>d(()=>import("./regexp-CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>d(()=>import("./rel-C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>d(()=>import("./riscv-BM1_JUlF.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>d(()=>import("./rosmsg-BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>d(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>d(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>d(()=>import("./rust-B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>d(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>d(()=>import("./sass-Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>d(()=>import("./scala-C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>d(()=>import("./scheme-C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>d(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>d(()=>import("./sdbl-DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>d(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>d(()=>import("./shellscript-Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>d(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>d(()=>import("./smalltalk-BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>d(()=>import("./solidity-rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>d(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>d(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>d(()=>import("./splunk-BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>d(()=>import("./sql-BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>d(()=>import("./ssh-config-_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>d(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>d(()=>import("./stylus-BEDo0Tqx.js"),[],import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>d(()=>import("./svelte-zxCyuUbr.js"),__vite__mapDeps([87,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>d(()=>import("./swift-Dg5xB15N.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>d(()=>import("./system-verilog-CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>d(()=>import("./systemd-4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>d(()=>import("./talonscript-CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>d(()=>import("./tasl-QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>d(()=>import("./tcl-dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>d(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>d(()=>import("./terraform-BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>d(()=>import("./tex-CvyZ59Mk.js"),__vite__mapDeps([64,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>d(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>d(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>d(()=>import("./tsv-B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>d(()=>import("./tsx-COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>d(()=>import("./turtle-BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>d(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>d(()=>import("./typescript-BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>d(()=>import("./typespec-BGHnOYBU.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>d(()=>import("./typst-DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>d(()=>import("./v-BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>d(()=>import("./vala-CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>d(()=>import("./vb-D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>d(()=>import("./verilog-BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>d(()=>import("./vhdl-CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>d(()=>import("./viml-CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>d(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([92,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>d(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([93,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>d(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([94,3,5,67,95,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>d(()=>import("./vyper-CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>d(()=>import("./wasm-MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>d(()=>import("./wenyan-BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>d(()=>import("./wgsl-Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>d(()=>import("./wikitext-BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>d(()=>import("./wit-5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>d(()=>import("./wolfram-lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>d(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>d(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>d(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>d(()=>import("./zenscript-DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>d(()=>import("./zig-VOosw3JB.js"),[],import.meta.url))}],Ia=Object.fromEntries(ni.map(t=>[t.id,t.import])),Ca=Object.fromEntries(ni.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),ka={...Ia,...Ca},Sa=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>d(()=>import("./andromeeda-C-Jbm3Hp.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>d(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>d(()=>import("./ayu-dark-CmMr59Fi.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>d(()=>import("./catppuccin-frappe-DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>d(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>d(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>d(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>d(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>d(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>d(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>d(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>d(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>d(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>d(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>d(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>d(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>d(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>d(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>d(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>d(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>d(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>d(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>d(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>d(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>d(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>d(()=>import("./houston-DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>d(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>d(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>d(()=>import("./kanagawa-wave-DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>d(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>d(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>d(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>d(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>d(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>d(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>d(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>d(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>d(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>d(()=>import("./monokai-D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>d(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>d(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>d(()=>import("./one-dark-pro-DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>d(()=>import("./one-light-PoHY5YXO.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>d(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>d(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>d(()=>import("./red-bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>d(()=>import("./rose-pine-qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>d(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>d(()=>import("./rose-pine-moon-D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>d(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>d(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>d(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>d(()=>import("./solarized-dark-DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>d(()=>import("./solarized-light-L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>d(()=>import("./synthwave-84-CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>d(()=>import("./tokyo-night-hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>d(()=>import("./vesper-DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>d(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>d(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>d(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url))}],Ra=Object.fromEntries(Sa.map(t=>[t.id,t.import]));var ii={},Ct={};Ct.byteLength=La;Ct.toByteArray=Pa;Ct.fromByteArray=Na;var se=[],K=[],Ta=typeof Uint8Array<"u"?Uint8Array:Array,Mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Re=0,xa=Mt.length;Re<xa;++Re)se[Re]=Mt[Re],K[Mt.charCodeAt(Re)]=Re;K[45]=62;K[95]=63;function oi(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function La(t){var e=oi(t),r=e[0],n=e[1];return(r+n)*3/4-n}function va(t,e,r){return(e+r)*3/4-r}function Pa(t){var e,r=oi(t),n=r[0],i=r[1],o=new Ta(va(t,n,i)),s=0,c=i>0?n-4:n,u;for(u=0;u<c;u+=4)e=K[t.charCodeAt(u)]<<18|K[t.charCodeAt(u+1)]<<12|K[t.charCodeAt(u+2)]<<6|K[t.charCodeAt(u+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=K[t.charCodeAt(u)]<<2|K[t.charCodeAt(u+1)]>>4,o[s++]=e&255),i===1&&(e=K[t.charCodeAt(u)]<<10|K[t.charCodeAt(u+1)]<<4|K[t.charCodeAt(u+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function Oa(t){return se[t>>18&63]+se[t>>12&63]+se[t>>6&63]+se[t&63]}function Da(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Oa(n));return i.join("")}function Na(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,c=r-n;s<c;s+=o)i.push(Da(t,s,s+o>c?c:s+o));return n===1?(e=t[r-1],i.push(se[e>>2]+se[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(se[e>>10]+se[e>>4&63]+se[e<<2&63]+"=")),i.join("")}var yr={};yr.read=function(t,e,r,n,i){var o,s,c=i*8-n-1,u=(1<<c)-1,m=u>>1,p=-7,f=r?i-1:0,_=r?-1:1,y=t[e+f];for(f+=_,o=y&(1<<-p)-1,y>>=-p,p+=c;p>0;o=o*256+t[e+f],f+=_,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+t[e+f],f+=_,p-=8);if(o===0)o=1-m;else{if(o===u)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-m}return(y?-1:1)*s*Math.pow(2,o-n)};yr.write=function(t,e,r,n,i,o){var s,c,u,m=o*8-i-1,p=(1<<m)-1,f=p>>1,_=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,w=n?1:-1,k=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,s=p):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?e+=_/u:e+=_*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=p?(c=0,s=p):s+f>=1?(c=(e*u-1)*Math.pow(2,i),s=s+f):(c=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+y]=c&255,y+=w,c/=256,i-=8);for(s=s<<i|c,m+=i;m>0;t[r+y]=s&255,y+=w,s/=256,m-=8);t[r+y-w]|=k*128};(function(t){const e=Ct,r=yr,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=L,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:c}=globalThis;p.TYPED_ARRAY_SUPPORT=u(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{const h=new o(1),a={foo:function(){return 42}};return Object.setPrototypeOf(a,o.prototype),Object.setPrototypeOf(h,a),h.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function m(h){if(h>i)throw new RangeError('The value "'+h+'" is invalid for option "size"');const a=new o(h);return Object.setPrototypeOf(a,p.prototype),a}function p(h,a,l){if(typeof h=="number"){if(typeof a=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(h)}return f(h,a,l)}p.poolSize=8192;function f(h,a,l){if(typeof h=="string")return k(h,a);if(s.isView(h))return I(h);if(h==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(ne(h,s)||h&&ne(h.buffer,s)||typeof c<"u"&&(ne(h,c)||h&&ne(h.buffer,c)))return R(h,a,l);if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=h.valueOf&&h.valueOf();if(g!=null&&g!==h)return p.from(g,a,l);const E=C(h);if(E)return E;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]=="function")return p.from(h[Symbol.toPrimitive]("string"),a,l);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}p.from=function(h,a,l){return f(h,a,l)},Object.setPrototypeOf(p.prototype,o.prototype),Object.setPrototypeOf(p,o);function _(h){if(typeof h!="number")throw new TypeError('"size" argument must be of type number');if(h<0)throw new RangeError('The value "'+h+'" is invalid for option "size"')}function y(h,a,l){return _(h),h<=0?m(h):a!==void 0?typeof l=="string"?m(h).fill(a,l):m(h).fill(a):m(h)}p.alloc=function(h,a,l){return y(h,a,l)};function w(h){return _(h),m(h<0?0:T(h)|0)}p.allocUnsafe=function(h){return w(h)},p.allocUnsafeSlow=function(h){return w(h)};function k(h,a){if((typeof a!="string"||a==="")&&(a="utf8"),!p.isEncoding(a))throw new TypeError("Unknown encoding: "+a);const l=B(h,a)|0;let g=m(l);const E=g.write(h,a);return E!==l&&(g=g.slice(0,E)),g}function S(h){const a=h.length<0?0:T(h.length)|0,l=m(a);for(let g=0;g<a;g+=1)l[g]=h[g]&255;return l}function I(h){if(ne(h,o)){const a=new o(h);return R(a.buffer,a.byteOffset,a.byteLength)}return S(h)}function R(h,a,l){if(a<0||h.byteLength<a)throw new RangeError('"offset" is outside of buffer bounds');if(h.byteLength<a+(l||0))throw new RangeError('"length" is outside of buffer bounds');let g;return a===void 0&&l===void 0?g=new o(h):l===void 0?g=new o(h,a):g=new o(h,a,l),Object.setPrototypeOf(g,p.prototype),g}function C(h){if(p.isBuffer(h)){const a=T(h.length)|0,l=m(a);return l.length===0||h.copy(l,0,0,a),l}if(h.length!==void 0)return typeof h.length!="number"||Pt(h.length)?m(0):S(h);if(h.type==="Buffer"&&Array.isArray(h.data))return S(h.data)}function T(h){if(h>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return h|0}function L(h){return+h!=h&&(h=0),p.alloc(+h)}p.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==p.prototype},p.compare=function(a,l){if(ne(a,o)&&(a=p.from(a,a.offset,a.byteLength)),ne(l,o)&&(l=p.from(l,l.offset,l.byteLength)),!p.isBuffer(a)||!p.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===l)return 0;let g=a.length,E=l.length;for(let b=0,A=Math.min(g,E);b<A;++b)if(a[b]!==l[b]){g=a[b],E=l[b];break}return g<E?-1:E<g?1:0},p.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(a,l){if(!Array.isArray(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return p.alloc(0);let g;if(l===void 0)for(l=0,g=0;g<a.length;++g)l+=a[g].length;const E=p.allocUnsafe(l);let b=0;for(g=0;g<a.length;++g){let A=a[g];if(ne(A,o))b+A.length>E.length?(p.isBuffer(A)||(A=p.from(A)),A.copy(E,b)):o.prototype.set.call(E,A,b);else if(p.isBuffer(A))A.copy(E,b);else throw new TypeError('"list" argument must be an Array of Buffers');b+=A.length}return E};function B(h,a){if(p.isBuffer(h))return h.length;if(s.isView(h)||ne(h,s))return h.byteLength;if(typeof h!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);const l=h.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&l===0)return 0;let E=!1;for(;;)switch(a){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":return vt(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l*2;case"hex":return l>>>1;case"base64":return Dr(h).length;default:if(E)return g?-1:vt(h).length;a=(""+a).toLowerCase(),E=!0}}p.byteLength=B;function z(h,a,l){let g=!1;if((a===void 0||a<0)&&(a=0),a>this.length||((l===void 0||l>this.length)&&(l=this.length),l<=0)||(l>>>=0,a>>>=0,l<=a))return"";for(h||(h="utf8");;)switch(h){case"hex":return Di(this,a,l);case"utf8":case"utf-8":return kr(this,a,l);case"ascii":return Pi(this,a,l);case"latin1":case"binary":return Oi(this,a,l);case"base64":return Ve(this,a,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ni(this,a,l);default:if(g)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),g=!0}}p.prototype._isBuffer=!0;function H(h,a,l){const g=h[a];h[a]=h[l],h[l]=g}p.prototype.swap16=function(){const a=this.length;if(a%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<a;l+=2)H(this,l,l+1);return this},p.prototype.swap32=function(){const a=this.length;if(a%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<a;l+=4)H(this,l,l+3),H(this,l+1,l+2);return this},p.prototype.swap64=function(){const a=this.length;if(a%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<a;l+=8)H(this,l,l+7),H(this,l+1,l+6),H(this,l+2,l+5),H(this,l+3,l+4);return this},p.prototype.toString=function(){const a=this.length;return a===0?"":arguments.length===0?kr(this,0,a):z.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(a){if(!p.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:p.compare(this,a)===0},p.prototype.inspect=function(){let a="";const l=t.INSPECT_MAX_BYTES;return a=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(a+=" ... "),"<Buffer "+a+">"},n&&(p.prototype[n]=p.prototype.inspect),p.prototype.compare=function(a,l,g,E,b){if(ne(a,o)&&(a=p.from(a,a.offset,a.byteLength)),!p.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(l===void 0&&(l=0),g===void 0&&(g=a?a.length:0),E===void 0&&(E=0),b===void 0&&(b=this.length),l<0||g>a.length||E<0||b>this.length)throw new RangeError("out of range index");if(E>=b&&l>=g)return 0;if(E>=b)return-1;if(l>=g)return 1;if(l>>>=0,g>>>=0,E>>>=0,b>>>=0,this===a)return 0;let A=b-E,v=g-l;const D=Math.min(A,v),O=this.slice(E,b),N=a.slice(l,g);for(let P=0;P<D;++P)if(O[P]!==N[P]){A=O[P],v=N[P];break}return A<v?-1:v<A?1:0};function ge(h,a,l,g,E){if(h.length===0)return-1;if(typeof l=="string"?(g=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),l=+l,Pt(l)&&(l=E?0:h.length-1),l<0&&(l=h.length+l),l>=h.length){if(E)return-1;l=h.length-1}else if(l<0)if(E)l=0;else return-1;if(typeof a=="string"&&(a=p.from(a,g)),p.isBuffer(a))return a.length===0?-1:Ce(h,a,l,g,E);if(typeof a=="number")return a=a&255,typeof o.prototype.indexOf=="function"?E?o.prototype.indexOf.call(h,a,l):o.prototype.lastIndexOf.call(h,a,l):Ce(h,[a],l,g,E);throw new TypeError("val must be string, number or Buffer")}function Ce(h,a,l,g,E){let b=1,A=h.length,v=a.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(h.length<2||a.length<2)return-1;b=2,A/=2,v/=2,l/=2}function D(N,P){return b===1?N[P]:N.readUInt16BE(P*b)}let O;if(E){let N=-1;for(O=l;O<A;O++)if(D(h,O)===D(a,N===-1?0:O-N)){if(N===-1&&(N=O),O-N+1===v)return N*b}else N!==-1&&(O-=O-N),N=-1}else for(l+v>A&&(l=A-v),O=l;O>=0;O--){let N=!0;for(let P=0;P<v;P++)if(D(h,O+P)!==D(a,P)){N=!1;break}if(N)return O}return-1}p.prototype.includes=function(a,l,g){return this.indexOf(a,l,g)!==-1},p.prototype.indexOf=function(a,l,g){return ge(this,a,l,g,!0)},p.prototype.lastIndexOf=function(a,l,g){return ge(this,a,l,g,!1)};function _e(h,a,l,g){l=Number(l)||0;const E=h.length-l;g?(g=Number(g),g>E&&(g=E)):g=E;const b=a.length;g>b/2&&(g=b/2);let A;for(A=0;A<g;++A){const v=parseInt(a.substr(A*2,2),16);if(Pt(v))return A;h[l+A]=v}return A}function re(h,a,l,g){return et(vt(a,h.length-l),h,l,g)}function Ze(h,a,l,g){return et(Mi(a),h,l,g)}function ee(h,a,l,g){return et(Dr(a),h,l,g)}function pe(h,a,l,g){return et(Fi(a,h.length-l),h,l,g)}p.prototype.write=function(a,l,g,E){if(l===void 0)E="utf8",g=this.length,l=0;else if(g===void 0&&typeof l=="string")E=l,g=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(g)?(g=g>>>0,E===void 0&&(E="utf8")):(E=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const b=this.length-l;if((g===void 0||g>b)&&(g=b),a.length>0&&(g<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");E||(E="utf8");let A=!1;for(;;)switch(E){case"hex":return _e(this,a,l,g);case"utf8":case"utf-8":return re(this,a,l,g);case"ascii":case"latin1":case"binary":return Ze(this,a,l,g);case"base64":return ee(this,a,l,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,a,l,g);default:if(A)throw new TypeError("Unknown encoding: "+E);E=(""+E).toLowerCase(),A=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ve(h,a,l){return a===0&&l===h.length?e.fromByteArray(h):e.fromByteArray(h.slice(a,l))}function kr(h,a,l){l=Math.min(h.length,l);const g=[];let E=a;for(;E<l;){const b=h[E];let A=null,v=b>239?4:b>223?3:b>191?2:1;if(E+v<=l){let D,O,N,P;switch(v){case 1:b<128&&(A=b);break;case 2:D=h[E+1],(D&192)===128&&(P=(b&31)<<6|D&63,P>127&&(A=P));break;case 3:D=h[E+1],O=h[E+2],(D&192)===128&&(O&192)===128&&(P=(b&15)<<12|(D&63)<<6|O&63,P>2047&&(P<55296||P>57343)&&(A=P));break;case 4:D=h[E+1],O=h[E+2],N=h[E+3],(D&192)===128&&(O&192)===128&&(N&192)===128&&(P=(b&15)<<18|(D&63)<<12|(O&63)<<6|N&63,P>65535&&P<1114112&&(A=P))}}A===null?(A=65533,v=1):A>65535&&(A-=65536,g.push(A>>>10&1023|55296),A=56320|A&1023),g.push(A),E+=v}return vi(g)}const Sr=4096;function vi(h){const a=h.length;if(a<=Sr)return String.fromCharCode.apply(String,h);let l="",g=0;for(;g<a;)l+=String.fromCharCode.apply(String,h.slice(g,g+=Sr));return l}function Pi(h,a,l){let g="";l=Math.min(h.length,l);for(let E=a;E<l;++E)g+=String.fromCharCode(h[E]&127);return g}function Oi(h,a,l){let g="";l=Math.min(h.length,l);for(let E=a;E<l;++E)g+=String.fromCharCode(h[E]);return g}function Di(h,a,l){const g=h.length;(!a||a<0)&&(a=0),(!l||l<0||l>g)&&(l=g);let E="";for(let b=a;b<l;++b)E+=Gi[h[b]];return E}function Ni(h,a,l){const g=h.slice(a,l);let E="";for(let b=0;b<g.length-1;b+=2)E+=String.fromCharCode(g[b]+g[b+1]*256);return E}p.prototype.slice=function(a,l){const g=this.length;a=~~a,l=l===void 0?g:~~l,a<0?(a+=g,a<0&&(a=0)):a>g&&(a=g),l<0?(l+=g,l<0&&(l=0)):l>g&&(l=g),l<a&&(l=a);const E=this.subarray(a,l);return Object.setPrototypeOf(E,p.prototype),E};function U(h,a,l){if(h%1!==0||h<0)throw new RangeError("offset is not uint");if(h+a>l)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(a,l,g){a=a>>>0,l=l>>>0,g||U(a,l,this.length);let E=this[a],b=1,A=0;for(;++A<l&&(b*=256);)E+=this[a+A]*b;return E},p.prototype.readUintBE=p.prototype.readUIntBE=function(a,l,g){a=a>>>0,l=l>>>0,g||U(a,l,this.length);let E=this[a+--l],b=1;for(;l>0&&(b*=256);)E+=this[a+--l]*b;return E},p.prototype.readUint8=p.prototype.readUInt8=function(a,l){return a=a>>>0,l||U(a,1,this.length),this[a]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(a,l){return a=a>>>0,l||U(a,2,this.length),this[a]|this[a+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(a,l){return a=a>>>0,l||U(a,2,this.length),this[a]<<8|this[a+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(a,l){return a=a>>>0,l||U(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+this[a+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(a,l){return a=a>>>0,l||U(a,4,this.length),this[a]*16777216+(this[a+1]<<16|this[a+2]<<8|this[a+3])},p.prototype.readBigUInt64LE=me(function(a){a=a>>>0,Se(a,"offset");const l=this[a],g=this[a+7];(l===void 0||g===void 0)&&Me(a,this.length-8);const E=l+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24,b=this[++a]+this[++a]*2**8+this[++a]*2**16+g*2**24;return BigInt(E)+(BigInt(b)<<BigInt(32))}),p.prototype.readBigUInt64BE=me(function(a){a=a>>>0,Se(a,"offset");const l=this[a],g=this[a+7];(l===void 0||g===void 0)&&Me(a,this.length-8);const E=l*2**24+this[++a]*2**16+this[++a]*2**8+this[++a],b=this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+g;return(BigInt(E)<<BigInt(32))+BigInt(b)}),p.prototype.readIntLE=function(a,l,g){a=a>>>0,l=l>>>0,g||U(a,l,this.length);let E=this[a],b=1,A=0;for(;++A<l&&(b*=256);)E+=this[a+A]*b;return b*=128,E>=b&&(E-=Math.pow(2,8*l)),E},p.prototype.readIntBE=function(a,l,g){a=a>>>0,l=l>>>0,g||U(a,l,this.length);let E=l,b=1,A=this[a+--E];for(;E>0&&(b*=256);)A+=this[a+--E]*b;return b*=128,A>=b&&(A-=Math.pow(2,8*l)),A},p.prototype.readInt8=function(a,l){return a=a>>>0,l||U(a,1,this.length),this[a]&128?(255-this[a]+1)*-1:this[a]},p.prototype.readInt16LE=function(a,l){a=a>>>0,l||U(a,2,this.length);const g=this[a]|this[a+1]<<8;return g&32768?g|4294901760:g},p.prototype.readInt16BE=function(a,l){a=a>>>0,l||U(a,2,this.length);const g=this[a+1]|this[a]<<8;return g&32768?g|4294901760:g},p.prototype.readInt32LE=function(a,l){return a=a>>>0,l||U(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},p.prototype.readInt32BE=function(a,l){return a=a>>>0,l||U(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},p.prototype.readBigInt64LE=me(function(a){a=a>>>0,Se(a,"offset");const l=this[a],g=this[a+7];(l===void 0||g===void 0)&&Me(a,this.length-8);const E=this[a+4]+this[a+5]*2**8+this[a+6]*2**16+(g<<24);return(BigInt(E)<<BigInt(32))+BigInt(l+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24)}),p.prototype.readBigInt64BE=me(function(a){a=a>>>0,Se(a,"offset");const l=this[a],g=this[a+7];(l===void 0||g===void 0)&&Me(a,this.length-8);const E=(l<<24)+this[++a]*2**16+this[++a]*2**8+this[++a];return(BigInt(E)<<BigInt(32))+BigInt(this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+g)}),p.prototype.readFloatLE=function(a,l){return a=a>>>0,l||U(a,4,this.length),r.read(this,a,!0,23,4)},p.prototype.readFloatBE=function(a,l){return a=a>>>0,l||U(a,4,this.length),r.read(this,a,!1,23,4)},p.prototype.readDoubleLE=function(a,l){return a=a>>>0,l||U(a,8,this.length),r.read(this,a,!0,52,8)},p.prototype.readDoubleBE=function(a,l){return a=a>>>0,l||U(a,8,this.length),r.read(this,a,!1,52,8)};function Q(h,a,l,g,E,b){if(!p.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>E||a<b)throw new RangeError('"value" argument is out of bounds');if(l+g>h.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(a,l,g,E){if(a=+a,l=l>>>0,g=g>>>0,!E){const v=Math.pow(2,8*g)-1;Q(this,a,l,g,v,0)}let b=1,A=0;for(this[l]=a&255;++A<g&&(b*=256);)this[l+A]=a/b&255;return l+g},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(a,l,g,E){if(a=+a,l=l>>>0,g=g>>>0,!E){const v=Math.pow(2,8*g)-1;Q(this,a,l,g,v,0)}let b=g-1,A=1;for(this[l+b]=a&255;--b>=0&&(A*=256);)this[l+b]=a/A&255;return l+g},p.prototype.writeUint8=p.prototype.writeUInt8=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,1,255,0),this[l]=a&255,l+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,2,65535,0),this[l]=a&255,this[l+1]=a>>>8,l+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,2,65535,0),this[l]=a>>>8,this[l+1]=a&255,l+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,4,4294967295,0),this[l+3]=a>>>24,this[l+2]=a>>>16,this[l+1]=a>>>8,this[l]=a&255,l+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,4,4294967295,0),this[l]=a>>>24,this[l+1]=a>>>16,this[l+2]=a>>>8,this[l+3]=a&255,l+4};function Rr(h,a,l,g,E){Or(a,g,E,h,l,7);let b=Number(a&BigInt(4294967295));h[l++]=b,b=b>>8,h[l++]=b,b=b>>8,h[l++]=b,b=b>>8,h[l++]=b;let A=Number(a>>BigInt(32)&BigInt(4294967295));return h[l++]=A,A=A>>8,h[l++]=A,A=A>>8,h[l++]=A,A=A>>8,h[l++]=A,l}function Tr(h,a,l,g,E){Or(a,g,E,h,l,7);let b=Number(a&BigInt(4294967295));h[l+7]=b,b=b>>8,h[l+6]=b,b=b>>8,h[l+5]=b,b=b>>8,h[l+4]=b;let A=Number(a>>BigInt(32)&BigInt(4294967295));return h[l+3]=A,A=A>>8,h[l+2]=A,A=A>>8,h[l+1]=A,A=A>>8,h[l]=A,l+8}p.prototype.writeBigUInt64LE=me(function(a,l=0){return Rr(this,a,l,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=me(function(a,l=0){return Tr(this,a,l,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(a,l,g,E){if(a=+a,l=l>>>0,!E){const D=Math.pow(2,8*g-1);Q(this,a,l,g,D-1,-D)}let b=0,A=1,v=0;for(this[l]=a&255;++b<g&&(A*=256);)a<0&&v===0&&this[l+b-1]!==0&&(v=1),this[l+b]=(a/A>>0)-v&255;return l+g},p.prototype.writeIntBE=function(a,l,g,E){if(a=+a,l=l>>>0,!E){const D=Math.pow(2,8*g-1);Q(this,a,l,g,D-1,-D)}let b=g-1,A=1,v=0;for(this[l+b]=a&255;--b>=0&&(A*=256);)a<0&&v===0&&this[l+b+1]!==0&&(v=1),this[l+b]=(a/A>>0)-v&255;return l+g},p.prototype.writeInt8=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,1,127,-128),a<0&&(a=255+a+1),this[l]=a&255,l+1},p.prototype.writeInt16LE=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,2,32767,-32768),this[l]=a&255,this[l+1]=a>>>8,l+2},p.prototype.writeInt16BE=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,2,32767,-32768),this[l]=a>>>8,this[l+1]=a&255,l+2},p.prototype.writeInt32LE=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,4,2147483647,-2147483648),this[l]=a&255,this[l+1]=a>>>8,this[l+2]=a>>>16,this[l+3]=a>>>24,l+4},p.prototype.writeInt32BE=function(a,l,g){return a=+a,l=l>>>0,g||Q(this,a,l,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[l]=a>>>24,this[l+1]=a>>>16,this[l+2]=a>>>8,this[l+3]=a&255,l+4},p.prototype.writeBigInt64LE=me(function(a,l=0){return Rr(this,a,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=me(function(a,l=0){return Tr(this,a,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xr(h,a,l,g,E,b){if(l+g>h.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("Index out of range")}function Lr(h,a,l,g,E){return a=+a,l=l>>>0,E||xr(h,a,l,4),r.write(h,a,l,g,23,4),l+4}p.prototype.writeFloatLE=function(a,l,g){return Lr(this,a,l,!0,g)},p.prototype.writeFloatBE=function(a,l,g){return Lr(this,a,l,!1,g)};function vr(h,a,l,g,E){return a=+a,l=l>>>0,E||xr(h,a,l,8),r.write(h,a,l,g,52,8),l+8}p.prototype.writeDoubleLE=function(a,l,g){return vr(this,a,l,!0,g)},p.prototype.writeDoubleBE=function(a,l,g){return vr(this,a,l,!1,g)},p.prototype.copy=function(a,l,g,E){if(!p.isBuffer(a))throw new TypeError("argument should be a Buffer");if(g||(g=0),!E&&E!==0&&(E=this.length),l>=a.length&&(l=a.length),l||(l=0),E>0&&E<g&&(E=g),E===g||a.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("Index out of range");if(E<0)throw new RangeError("sourceEnd out of bounds");E>this.length&&(E=this.length),a.length-l<E-g&&(E=a.length-l+g);const b=E-g;return this===a&&typeof o.prototype.copyWithin=="function"?this.copyWithin(l,g,E):o.prototype.set.call(a,this.subarray(g,E),l),b},p.prototype.fill=function(a,l,g,E){if(typeof a=="string"){if(typeof l=="string"?(E=l,l=0,g=this.length):typeof g=="string"&&(E=g,g=this.length),E!==void 0&&typeof E!="string")throw new TypeError("encoding must be a string");if(typeof E=="string"&&!p.isEncoding(E))throw new TypeError("Unknown encoding: "+E);if(a.length===1){const A=a.charCodeAt(0);(E==="utf8"&&A<128||E==="latin1")&&(a=A)}}else typeof a=="number"?a=a&255:typeof a=="boolean"&&(a=Number(a));if(l<0||this.length<l||this.length<g)throw new RangeError("Out of range index");if(g<=l)return this;l=l>>>0,g=g===void 0?this.length:g>>>0,a||(a=0);let b;if(typeof a=="number")for(b=l;b<g;++b)this[b]=a;else{const A=p.isBuffer(a)?a:p.from(a,E),v=A.length;if(v===0)throw new TypeError('The value "'+a+'" is invalid for argument "value"');for(b=0;b<g-l;++b)this[b+l]=A[b%v]}return this};const ke={};function Lt(h,a,l){ke[h]=class extends l{constructor(){super(),Object.defineProperty(this,"message",{value:a.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${h}]`,this.stack,delete this.name}get code(){return h}set code(E){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:E,writable:!0})}toString(){return`${this.name} [${h}]: ${this.message}`}}}Lt("ERR_BUFFER_OUT_OF_BOUNDS",function(h){return h?`${h} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Lt("ERR_INVALID_ARG_TYPE",function(h,a){return`The "${h}" argument must be of type number. Received type ${typeof a}`},TypeError),Lt("ERR_OUT_OF_RANGE",function(h,a,l){let g=`The value of "${h}" is out of range.`,E=l;return Number.isInteger(l)&&Math.abs(l)>2**32?E=Pr(String(l)):typeof l=="bigint"&&(E=String(l),(l>BigInt(2)**BigInt(32)||l<-(BigInt(2)**BigInt(32)))&&(E=Pr(E)),E+="n"),g+=` It must be ${a}. Received ${E}`,g},RangeError);function Pr(h){let a="",l=h.length;const g=h[0]==="-"?1:0;for(;l>=g+4;l-=3)a=`_${h.slice(l-3,l)}${a}`;return`${h.slice(0,l)}${a}`}function Bi(h,a,l){Se(a,"offset"),(h[a]===void 0||h[a+l]===void 0)&&Me(a,h.length-(l+1))}function Or(h,a,l,g,E,b){if(h>l||h<a){const A=typeof a=="bigint"?"n":"";let v;throw a===0||a===BigInt(0)?v=`>= 0${A} and < 2${A} ** ${(b+1)*8}${A}`:v=`>= -(2${A} ** ${(b+1)*8-1}${A}) and < 2 ** ${(b+1)*8-1}${A}`,new ke.ERR_OUT_OF_RANGE("value",v,h)}Bi(g,E,b)}function Se(h,a){if(typeof h!="number")throw new ke.ERR_INVALID_ARG_TYPE(a,"number",h)}function Me(h,a,l){throw Math.floor(h)!==h?(Se(h,l),new ke.ERR_OUT_OF_RANGE("offset","an integer",h)):a<0?new ke.ERR_BUFFER_OUT_OF_BOUNDS:new ke.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${a}`,h)}const $i=/[^+/0-9A-Za-z-_]/g;function Vi(h){if(h=h.split("=")[0],h=h.trim().replace($i,""),h.length<2)return"";for(;h.length%4!==0;)h=h+"=";return h}function vt(h,a){a=a||1/0;let l;const g=h.length;let E=null;const b=[];for(let A=0;A<g;++A){if(l=h.charCodeAt(A),l>55295&&l<57344){if(!E){if(l>56319){(a-=3)>-1&&b.push(239,191,189);continue}else if(A+1===g){(a-=3)>-1&&b.push(239,191,189);continue}E=l;continue}if(l<56320){(a-=3)>-1&&b.push(239,191,189),E=l;continue}l=(E-55296<<10|l-56320)+65536}else E&&(a-=3)>-1&&b.push(239,191,189);if(E=null,l<128){if((a-=1)<0)break;b.push(l)}else if(l<2048){if((a-=2)<0)break;b.push(l>>6|192,l&63|128)}else if(l<65536){if((a-=3)<0)break;b.push(l>>12|224,l>>6&63|128,l&63|128)}else if(l<1114112){if((a-=4)<0)break;b.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw new Error("Invalid code point")}return b}function Mi(h){const a=[];for(let l=0;l<h.length;++l)a.push(h.charCodeAt(l)&255);return a}function Fi(h,a){let l,g,E;const b=[];for(let A=0;A<h.length&&!((a-=2)<0);++A)l=h.charCodeAt(A),g=l>>8,E=l%256,b.push(E),b.push(g);return b}function Dr(h){return e.toByteArray(Vi(h))}function et(h,a,l,g){let E;for(E=0;E<g&&!(E+l>=a.length||E>=h.length);++E)a[E+l]=h[E];return E}function ne(h,a){return h instanceof a||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===a.name}function Pt(h){return h!==h}const Gi=(function(){const h="0123456789abcdef",a=new Array(256);for(let l=0;l<16;++l){const g=l*16;for(let E=0;E<16;++E)a[g+E]=h[l]+h[E]}return a})();function me(h){return typeof BigInt>"u"?Ui:h}function Ui(){throw new Error("BigInt not supported")}})(ii);const Zr=ii.Buffer;class Er extends Error{constructor(e){super(e),this.name="ShikiError"}}function Ba(){return 2147483648}function $a(){return typeof performance<"u"?performance.now():Date.now()}const Va=(t,e)=>t+(e-t%e)%e;async function Ma(t){let e,r;const n={};function i(y){r=y,n.HEAPU8=new Uint8Array(y),n.HEAPU32=new Uint32Array(y)}function o(y,w,k){n.HEAPU8.copyWithin(y,w,w+k)}function s(y){try{return e.grow(y-r.byteLength+65535>>>16),i(e.buffer),1}catch{}}function c(y){const w=n.HEAPU8.length;y=y>>>0;const k=Ba();if(y>k)return!1;for(let S=1;S<=4;S*=2){let I=w*(1+.2/S);I=Math.min(I,y+100663296);const R=Math.min(k,Va(Math.max(y,I),65536));if(s(R))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function m(y,w,k=1024){const S=w+k;let I=w;for(;y[I]&&!(I>=S);)++I;if(I-w>16&&y.buffer&&u)return u.decode(y.subarray(w,I));let R="";for(;w<I;){let C=y[w++];if(!(C&128)){R+=String.fromCharCode(C);continue}const T=y[w++]&63;if((C&224)===192){R+=String.fromCharCode((C&31)<<6|T);continue}const L=y[w++]&63;if((C&240)===224?C=(C&15)<<12|T<<6|L:C=(C&7)<<18|T<<12|L<<6|y[w++]&63,C<65536)R+=String.fromCharCode(C);else{const B=C-65536;R+=String.fromCharCode(55296|B>>10,56320|B&1023)}}return R}function p(y,w){return y?m(n.HEAPU8,y,w):""}const f={emscripten_get_now:$a,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function _(){const w=await t({env:f,wasi_snapshot_preview1:f});e=w.memory,i(e.buffer),Object.assign(n,w),n.UTF8ToString=p}return await _(),n}var Fa=Object.defineProperty,Ga=(t,e,r)=>e in t?Fa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,M=(t,e,r)=>Ga(t,typeof e!="symbol"?e+"":e,r);let j=null;function Ua(t){throw new Er(t.UTF8ToString(t.getLastOnigError()))}class kt{constructor(e){M(this,"utf16Length"),M(this,"utf8Length"),M(this,"utf16Value"),M(this,"utf8Value"),M(this,"utf16OffsetToUtf8"),M(this,"utf8OffsetToUtf16");const r=e.length,n=kt._utf8ByteLength(e),i=n!==r,o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const c=new Uint8Array(n);let u=0;for(let m=0;m<r;m++){const p=e.charCodeAt(m);let f=p,_=!1;if(p>=55296&&p<=56319&&m+1<r){const y=e.charCodeAt(m+1);y>=56320&&y<=57343&&(f=(p-55296<<10)+65536|y-56320,_=!0)}i&&(o[m]=u,_&&(o[m+1]=u),f<=127?s[u+0]=m:f<=2047?(s[u+0]=m,s[u+1]=m):f<=65535?(s[u+0]=m,s[u+1]=m,s[u+2]=m):(s[u+0]=m,s[u+1]=m,s[u+2]=m,s[u+3]=m)),f<=127?c[u++]=f:f<=2047?(c[u++]=192|(f&1984)>>>6,c[u++]=128|(f&63)>>>0):f<=65535?(c[u++]=224|(f&61440)>>>12,c[u++]=128|(f&4032)>>>6,c[u++]=128|(f&63)>>>0):(c[u++]=240|(f&1835008)>>>18,c[u++]=128|(f&258048)>>>12,c[u++]=128|(f&4032)>>>6,c[u++]=128|(f&63)>>>0),_&&m++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let r=0;for(let n=0,i=e.length;n<i;n++){const o=e.charCodeAt(n);let s=o,c=!1;if(o>=55296&&o<=56319&&n+1<i){const u=e.charCodeAt(n+1);u>=56320&&u<=57343&&(s=(o-55296<<10)+65536|u-56320,c=!0)}s<=127?r+=1:s<=2047?r+=2:s<=65535?r+=3:r+=4,c&&n++}return r}createString(e){const r=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,r),r}}const St=class oe{constructor(e){if(M(this,"id",++oe.LAST_ID),M(this,"_onigBinding"),M(this,"content"),M(this,"utf16Length"),M(this,"utf8Length"),M(this,"utf16OffsetToUtf8"),M(this,"utf8OffsetToUtf16"),M(this,"ptr"),!j)throw new Er("Must invoke loadWasm first.");this._onigBinding=j,this.content=e;const r=new kt(e);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!oe._sharedPtrInUse?(oe._sharedPtr||(oe._sharedPtr=j.omalloc(1e4)),oe._sharedPtrInUse=!0,j.HEAPU8.set(r.utf8Value,oe._sharedPtr),this.ptr=oe._sharedPtr):this.ptr=r.createString(j)}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===oe._sharedPtr?oe._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};M(St,"LAST_ID",0);M(St,"_sharedPtr",0);M(St,"_sharedPtrInUse",!1);let si=St;class ja{constructor(e){if(M(this,"_onigBinding"),M(this,"_ptr"),!j)throw new Er("Must invoke loadWasm first.");const r=[],n=[];for(let c=0,u=e.length;c<u;c++){const m=new kt(e[c]);r[c]=m.createString(j),n[c]=m.utf8Length}const i=j.omalloc(4*e.length);j.HEAPU32.set(r,i/4);const o=j.omalloc(4*e.length);j.HEAPU32.set(n,o/4);const s=j.createOnigScanner(i,o,e.length);for(let c=0,u=e.length;c<u;c++)j.ofree(r[c]);j.ofree(o),j.ofree(i),s===0&&Ua(j),this._onigBinding=j,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof e=="string"){e=new si(e);const o=this._findNextMatchSync(e,r,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,r,!1,i)}_findNextMatchSync(e,r,n,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(r),i);if(s===0)return null;const c=o.HEAPU32;let u=s/4;const m=c[u++],p=c[u++],f=[];for(let _=0;_<p;_++){const y=e.convertUtf8OffsetToUtf16(c[u++]),w=e.convertUtf8OffsetToUtf16(c[u++]);f[_]={start:y,end:w,length:w-y}}return{index:m,captureIndices:f}}}function Wa(t){return typeof t.instantiator=="function"}function Ha(t){return typeof t.default=="function"}function za(t){return typeof t.data<"u"}function qa(t){return typeof Response<"u"&&t instanceof Response}function Xa(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Zr<"u"&&Zr.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let it;function Qa(t){if(it)return it;async function e(){j=await Ma(async r=>{let n=t;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),Wa(n)?n=await n.instantiator(r):Ha(n)?n=await n.default(r):(za(n)&&(n=n.data),qa(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Ja(n)(r):n=await Ka(n)(r):Xa(n)?n=await Ft(n)(r):n instanceof WebAssembly.Module?n=await Ft(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Ft(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return it=e(),it}function Ft(t){return e=>WebAssembly.instantiate(t,e)}function Ja(t){return e=>WebAssembly.instantiateStreaming(t,e)}function Ka(t){return async e=>{const r=await t.arrayBuffer();return WebAssembly.instantiate(r,e)}}async function Ya(t){return t&&await Qa(t),{createScanner(e){return new ja(e.map(r=>typeof r=="string"?r:r.source))},createString(e){return new si(e)}}}const Za=ri({langs:ka,themes:Ra,engine:()=>Ya(d(()=>import("./wasm-CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:Ku,codeToHast:Yu,codeToTokens:Zu,codeToTokensBase:ec,codeToTokensWithThemes:tc,getSingletonHighlighter:rc,getLastGrammarState:nc}=Aa(Za,{guessEmbeddedLanguages:Fs});function Be(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function el(t,e,r){return t.has(e)||t.set(e,r),t.get(e)}const wr=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),W=String.raw;function $e(t,e){if(t==null)throw new Error(e??"Value expected");return t}const ai=W`\[\^?`,li=`c.? | C(?:-.?)?|${W`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${W`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${W`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${W`o\{[^\}]*\}?`}|${W`\d{1,3}`}`,br=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ot=new RegExp(W`
|
|
14
|
+
\\ (?:
|
|
15
|
+
${li}
|
|
16
|
+
| [gk]<[^>]*>?
|
|
17
|
+
| [gk]'[^']*'?
|
|
18
|
+
| .
|
|
19
|
+
)
|
|
20
|
+
| \( (?:
|
|
21
|
+
\? (?:
|
|
22
|
+
[:=!>({]
|
|
23
|
+
| <[=!]
|
|
24
|
+
| <[^>]*>
|
|
25
|
+
| '[^']*'
|
|
26
|
+
| ~\|?
|
|
27
|
+
| #(?:[^)\\]|\\.?)*
|
|
28
|
+
| [^:)]*[:)]
|
|
29
|
+
)?
|
|
30
|
+
| \*[^\)]*\)?
|
|
31
|
+
)?
|
|
32
|
+
| (?:${br.source})+
|
|
33
|
+
| ${ai}
|
|
34
|
+
| .
|
|
35
|
+
`.replace(/\s+/g,""),"gsu"),Gt=new RegExp(W`
|
|
36
|
+
\\ (?:
|
|
37
|
+
${li}
|
|
38
|
+
| .
|
|
39
|
+
)
|
|
40
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
41
|
+
| ${ai}
|
|
42
|
+
| &&
|
|
43
|
+
| .
|
|
44
|
+
`.replace(/\s+/g,""),"gsu");function tl(t,e={}){const r={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");const n=wl(r.flags),i=[n.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(f){i.push(f)},replaceCurrentModX(f){i[i.length-1]=f},singleline:r.rules.singleline};let s=[],c;for(ot.lastIndex=0;c=ot.exec(t);){const f=rl(o,t,c[0],ot.lastIndex);f.tokens?s.push(...f.tokens):f.token&&s.push(f.token),f.lastIndex!==void 0&&(ot.lastIndex=f.lastIndex)}const u=[];let m=0;s.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++m:f.raw==="("&&u.push(f)}),m||u.forEach((f,_)=>{f.kind="capturing",f.number=_+1});const p=m||u.length;return{tokens:s.map(f=>f.type==="EscapedNumber"?Al(f,p):f).flat(),flags:n}}function rl(t,e,r,n){const[i,o]=r;if(r==="["||r==="[^"){const s=nl(e,r,n);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:en(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:hl(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:ci(r)}}if(o==="K")return{token:pi("keep",r)};if(o==="N"||o==="R")return{token:Ae("newline",r,{negate:o==="N"})};if(o==="O")return{token:Ae("any",r)};if(o==="X")return{token:Ae("text_segment",r)};const s=ui(r,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(i==="("){if(o==="*")return{token:_l(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(e[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:gl(r,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,r==="("&&!t.captureGroup||r==="(?:")return{token:Le("group",r)};if(r==="(?>")return{token:Le("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:Le(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&t.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Le("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:Le("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:cl(r)}}if(t.getCurrentModX()){if(r==="#"){const s=e.indexOf(`
|
|
45
|
+
`,n);return{lastIndex:s===-1?e.length:s}}if(/^\s$/.test(r)){const s=/\s+/y;return s.lastIndex=n,{lastIndex:s.exec(e)?s.lastIndex:n}}}if(r===".")return{token:Ae("dot",r)};if(r==="^"||r==="$"){const s=t.singleline?{"^":W`\A`,$:W`\Z`}[r]:r;return{token:en(s,r)}}return r==="|"?{token:ol(r)}:br.test(r)?{tokens:Il(r)}:{token:ue(Be(r),r)}}function nl(t,e,r){const n=[tn(e[1]==="^",e)];let i=1,o;for(Gt.lastIndex=r;o=Gt.exec(t);){const s=o[0];if(s[0]==="["&&s[1]!==":")i++,n.push(tn(s[1]==="^",s));else if(s==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(ue(93,s));else if(i--,n.push(sl(s)),!i)break}else{const c=il(s);Array.isArray(c)?n.push(...c):n.push(c)}}return{tokens:n,lastIndex:Gt.lastIndex||t.length}}function il(t){if(t[0]==="\\")return ui(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!wr.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return Ae("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?al(t):t==="&&"?ll(t):ue(Be(t),t)}function ui(t,{inCharClass:e}){const r=t[1];if(r==="c"||r==="C")return fl(t);if("dDhHsSwW".includes(r))return yl(t);if(t.startsWith(W`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return El(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const n=t.split(/\\x/).slice(1).map(s=>parseInt(s,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),o=new TextEncoder;return[...i].map(s=>{const c=[...o.encode(s)].map(u=>`\\x${u.toString(16)}`).join("");return ue(Be(s),c)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return ue(bl(t),t);if(rn.has(r))return ue(rn.get(r),t);if(/\d/.test(r))return ul(e,t);if(t==="\\")throw new Error(W`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return ue(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function ol(t){return{type:"Alternator",raw:t}}function en(t,e){return{type:"Assertion",kind:t,raw:e}}function ci(t){return{type:"Backreference",raw:t}}function ue(t,e){return{type:"Character",value:t,raw:e}}function sl(t){return{type:"CharacterClassClose",raw:t}}function al(t){return{type:"CharacterClassHyphen",raw:t}}function ll(t){return{type:"CharacterClassIntersector",raw:t}}function tn(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function Ae(t,e,r={}){return{type:"CharacterSet",kind:t,...r,raw:e}}function pi(t,e,r={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:$e(r.flags),raw:e}}function ul(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function cl(t){return{type:"GroupClose",raw:t}}function Le(t,e,r={}){return{type:"GroupOpen",kind:t,...r,raw:e}}function pl(t,e,r,n){return{type:"NamedCallout",kind:t,tag:e,arguments:r,raw:n}}function ml(t,e,r,n){return{type:"Quantifier",kind:t,min:e,max:r,raw:n}}function hl(t){return{type:"Subroutine",raw:t}}const dl=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),rn=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function fl(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return ue(Be(e.toUpperCase())-64,t)}function gl(t,e){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;n??="";const i=(e.getCurrentModX()||r.includes("x"))&&!n.includes("x"),o=on(r),s=on(n),c={};if(o&&(c.enable=o),s&&(c.disable=s),t.endsWith(")"))return e.replaceCurrentModX(i),pi("flags",t,{flags:c});if(t.endsWith(":"))return e.pushModX(i),e.numOpenGroups++,Le("group",t,{...(o||s)&&{flags:c}});throw new Error(`Unexpected flag modifier "${t}"`)}function _l(t){const e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);const{name:r,tag:n,args:i}=e.groups;if(!r)throw new Error(`Invalid named callout "${t}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);const o=i?i.split(",").filter(p=>p!=="").map(p=>/^[+-]?\d+$/.test(p)?+p:p):[],[s,c,u]=o,m=dl.has(r)?r.toLowerCase():"custom";switch(m){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(o.length===2&&(typeof c=="number"||!/^[<>X]$/.test(c)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${c}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof c=="number"||!/^(?:[<>!=]=|[<>])$/.test(c))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${c}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument three must be a tag or number "${u}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${m}"`)}return pl(m,n??null,i?.split(",")??null,t)}function nn(t){let e=null,r,n;if(t[0]==="{"){const{minStr:i,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,s=1e5;if(+i>s||o&&+o>s)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+i,n=o===void 0?+i:o===""?1/0:+o,r>n&&(e="possessive",[r,n]=[n,r]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else r=t[0]==="+"?1:0,n=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return ml(e,r,n,t)}function yl(t){const e=t[1].toLowerCase();return Ae({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function El(t){const{p:e,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return Ae("property",t,{value:n,negate:e==="P"&&!r||e==="p"&&!!r})}function on(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function wl(t){const e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<t.length;r++){const n=t[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(t.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[r+2]==="g"?"grapheme":"word",r+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return e}function bl(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function Al(t,e){const{raw:r,inCharClass:n}=t,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[ci(r)];const o=[],s=i.match(/^[0-7]+|\d/g);for(let c=0;c<s.length;c++){const u=s[c];let m;if(c===0&&u!=="8"&&u!=="9"){if(m=parseInt(u,8),m>127)throw new Error(W`Octal encoded byte above 177 unsupported "${r}"`)}else m=Be(u);o.push(ue(m,(c===0?"\\":"")+u))}return o}function Il(t){const e=[],r=new RegExp(br,"gy");let n;for(;n=r.exec(t);){const i=n[0];if(i[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(o){const{min:s,max:c}=o.groups;if(+s>+c&&i.endsWith("?")){r.lastIndex--,e.push(nn(i.slice(0,-1)));continue}}}e.push(nn(i))}return e}function mi(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;const r=t.body[0];return!e||Object.keys(e).every(n=>e[n]===r[n])}function Cl(t){return kl.has(t.type)}const kl=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function hi(t,e={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},n=tl(t,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),i=(_,y)=>{const w=n.tokens[o.nextIndex];switch(o.parent=_,o.nextIndex++,w.type){case"Alternator":return Ie();case"Assertion":return Sl(w);case"Backreference":return Rl(w,o);case"Character":return Rt(w.value,{useLastValid:!!y.isCheckingRangeEnd});case"CharacterClassHyphen":return Tl(w,o,y);case"CharacterClassOpen":return xl(w,o,y);case"CharacterSet":return Ll(w,o);case"Directive":return Bl(w.kind,{flags:w.flags});case"GroupOpen":return vl(w,o,y);case"NamedCallout":return Vl(w.kind,w.tag,w.arguments);case"Quantifier":return Pl(w,o);case"Subroutine":return Ol(w,o);default:throw new Error(`Unexpected token type "${w.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:i},s=Fl($l(n.flags));let c=s.body[0];for(;o.nextIndex<n.tokens.length;){const _=i(c,{});_.type==="Alternative"?(s.body.push(_),c=_):c.body.push(_)}const{capturingGroups:u,hasNumberedRef:m,namedGroupsByName:p,subroutines:f}=o;if(m&&p.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:_}of f)if(typeof _=="number"){if(_>u.length)throw new Error("Subroutine uses a group number that's not defined");_&&(u[_-1].isSubroutined=!0)}else if(p.has(_)){if(p.get(_).length>1)throw new Error(W`Subroutine uses a duplicate group name "\g<${_}>"`);p.get(_)[0].isSubroutined=!0}else throw new Error(W`Subroutine uses a group name that's not defined "\g<${_}>"`);return s}function Sl({kind:t}){return nr($e({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[t],`Unexpected assertion kind "${t}"`),{negate:t===W`\B`||t===W`\Y`})}function Rl({raw:t},e){const r=/^\\k[<']/.test(t),n=r?t.slice(3,-1):t.slice(1),i=(o,s=!1)=>{const c=e.capturingGroups.length;let u=!1;if(o>c)if(e.skipBackrefValidation)u=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,ir(s?c+1-o:o,{orphan:u})};if(r){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${t}"`);return ir(n)}return i(+n)}function Tl(t,e,r){const{tokens:n,walk:i}=e,o=e.parent,s=o.body.at(-1),c=n[e.nextIndex];if(!r.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&c&&c.type!=="CharacterClassOpen"&&c.type!=="CharacterClassClose"&&c.type!=="CharacterClassIntersector"){const u=i(o,{...r,isCheckingRangeEnd:!0});if(s.type==="Character"&&u.type==="Character")return o.body.pop(),Nl(s,u);throw new Error("Invalid character class range")}return Rt(Be("-"))}function xl({negate:t},e,r){const{tokens:n,walk:i}=e,o=n[e.nextIndex],s=[pt()];let c=ln(o);for(;c.type!=="CharacterClassClose";){if(c.type==="CharacterClassIntersector")s.push(pt()),e.nextIndex++;else{const m=s.at(-1);m.body.push(i(m,r))}c=ln(n[e.nextIndex],o)}const u=pt({negate:t});return s.length===1?u.body=s[0].body:(u.kind="intersection",u.body=s.map(m=>m.body.length===1?m.body[0]:m)),e.nextIndex++,u}function Ll({kind:t,negate:e,value:r},n){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:s}=n;if(t==="property"){const c=Tt(r);if(wr.has(c)&&!s?.has(c))t="posix",r=c;else return ve(r,{negate:e,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:s})}return t==="posix"?Ml(r,{negate:e}):or(t,{negate:e})}function vl(t,e,r){const{tokens:n,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:s,walk:c}=e,u=Gl(t),m=u.type==="AbsenceFunction",p=an(u),f=p&&u.negate;if(u.type==="CapturingGroup"&&(i.push(u),u.name&&el(o,u.name,[]).push(u)),m&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let _=un(n[e.nextIndex]);for(;_.type!=="GroupClose";){if(_.type==="Alternator")u.body.push(Ie()),e.nextIndex++;else{const y=u.body.at(-1),w=c(y,{...r,isInAbsenceFunction:r.isInAbsenceFunction||m,isInLookbehind:r.isInLookbehind||p,isInNegLookbehind:r.isInNegLookbehind||f});if(y.body.push(w),(p||r.isInLookbehind)&&!s){const k="Lookbehind includes a pattern not allowed by Oniguruma";if(f||r.isInNegLookbehind){if(sn(w)||w.type==="CapturingGroup")throw new Error(k)}else if(sn(w)||an(w)&&w.negate)throw new Error(k)}}_=un(n[e.nextIndex])}return e.nextIndex++,u}function Pl({kind:t,min:e,max:r},n){const i=n.parent,o=i.body.at(-1);if(!o||!Cl(o))throw new Error("Quantifier requires a repeatable token");const s=fi(t,e,r,o);return i.body.pop(),s}function Ol({raw:t},e){const{capturingGroups:r,subroutines:n}=e;let i=t.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(o){const c=+o.groups.num,u=r.length;if(e.hasNumberedRef=!0,i={"":c,"+":u+c,"-":u+1-c}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const s=gi(i);return n.push(s),s}function Dl(t,e){return{type:"AbsenceFunction",kind:t,body:Ye(e?.body)}}function Ie(t){return{type:"Alternative",body:_i(t?.body)}}function nr(t,e){const r={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(r.negate=!!e?.negate),r}function ir(t,e){const r=!!e?.orphan;return{type:"Backreference",ref:t,...r&&{orphan:r}}}function di(t,e){const r={name:void 0,isSubroutined:!1,...e};if(r.name!==void 0&&!Ul(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Ye(e?.body)}}function Rt(t,e){const r={useLastValid:!1,...e};if(t>1114111){const n=t.toString(16);if(r.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:t}}function pt(t){const e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:_i(t?.body)}}function Nl(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function or(t,e){const r=!!e?.negate,n={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(n.negate=r),(t==="text_segment"||t==="newline"&&!r)&&(n.variableLength=!0),n}function Bl(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:$e(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function $l(t){return{type:"Flags",...t}}function te(t){const e=t?.atomic,r=t?.flags;if(e&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...r&&{flags:r},body:Ye(t?.body)}}function we(t){const e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:Ye(t?.body)}}function Vl(t,e,r){return{type:"NamedCallout",kind:t,tag:e,arguments:r}}function Ml(t,e){const r=!!e?.negate;if(!wr.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:r}}function fi(t,e,r,n){if(e>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:r,body:n}}function Fl(t,e){return{type:"Regex",body:Ye(e?.body),flags:t}}function gi(t){return{type:"Subroutine",ref:t}}function ve(t,e){const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e};let n=r.unicodePropertyMap?.get(Tt(t));if(!n){if(r.normalizeUnknownPropertyNames)n=jl(t);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(W`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:n??t,negate:r.negate}}function Gl({flags:t,kind:e,name:r,negate:n,number:i}){switch(e){case"absence_repeater":return Dl("repeater");case"atomic":return te({atomic:!0});case"capturing":return di(i,{name:r});case"group":return te({flags:t});case"lookahead":case"lookbehind":return we({behind:e==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${e}"`)}}function Ye(t){if(t===void 0)t=[Ie()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function _i(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function sn(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function an(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function Ul(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function jl(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Tt(t){return t.replace(/[- _]+/g,"").toLowerCase()}function ln(t,e){return $e(t,`${e?.type==="Character"&&e.value===93?"Empty":"Unclosed"} character class`)}function un(t){return $e(t,"Unclosed group")}function je(t,e,r=null){function n(o,s){for(let c=0;c<o.length;c++){const u=i(o[c],s,c,o);c=Math.max(-1,c+u)}}function i(o,s=null,c=null,u=null){let m=0,p=!1;const f={node:o,parent:s,key:c,container:u,root:t,remove(){st(u).splice(Math.max(0,Te(c)+m),1),m--,p=!0},removeAllNextSiblings(){return st(u).splice(Te(c)+1)},removeAllPrevSiblings(){const I=Te(c)+m;return m-=I,st(u).splice(0,Math.max(0,I))},replaceWith(I,R={}){const C=!!R.traverse;u?u[Math.max(0,Te(c)+m)]=I:$e(s,"Can't replace root node")[c]=I,C&&i(I,s,c,u),p=!0},replaceWithMultiple(I,R={}){const C=!!R.traverse;if(st(u).splice(Math.max(0,Te(c)+m),1,...I),m+=I.length-1,C){let T=0;for(let L=0;L<I.length;L++)T+=i(I[L],s,Te(c)+L+T,u)}p=!0},skip(){p=!0}},{type:_}=o,y=e["*"],w=e[_],k=typeof y=="function"?y:y?.enter,S=typeof w=="function"?w:w?.enter;if(k?.(f,r),S?.(f,r),!p)switch(_){case"AbsenceFunction":case"CapturingGroup":case"Group":n(o.body,o);break;case"Alternative":case"CharacterClass":n(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(o.min,o,"min"),i(o.max,o,"max");break;case"LookaroundAssertion":n(o.body,o);break;case"Quantifier":i(o.body,o,"body");break;case"Regex":n(o.body,o),i(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${_}"`)}return w?.exit?.(f,r),y?.exit?.(f,r),m}return i(t),t}function st(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function Te(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}const Wl=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Hl(t,e){for(let r=0;r<t.length;r++)t[r]>=e&&t[r]++}function zl(t,e,r,n){return t.slice(0,e)+n+t.slice(e+r.length)}const Z=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Ar(t,e,r,n){const i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let s=0,c="";for(const u of t.matchAll(i)){const{0:m,groups:{$skip:p}}=u;if(!p&&(!n||n===Z.DEFAULT==!s)){r instanceof Function?c+=r(u,{context:s?Z.CHAR_CLASS:Z.DEFAULT,negated:o[o.length-1]}):c+=r;continue}m[0]==="["?(s++,o.push(m[1]==="^")):m==="]"&&s&&(s--,o.pop()),c+=m}return c}function yi(t,e,r,n){Ar(t,e,r,n)}function ql(t,e,r=0,n){if(!new RegExp(e,"su").test(t))return null;const i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let o=0,s;for(;s=i.exec(t);){const{0:c,groups:{$skip:u}}=s;if(!u&&(!n||n===Z.DEFAULT==!o))return s;c==="["?o++:c==="]"&&o&&o--,i.lastIndex==s.index&&i.lastIndex++}return null}function at(t,e,r){return!!ql(t,e,0,r)}function Xl(t,e){const r=/\\?./gsu;r.lastIndex=e;let n=t.length,i=0,o=1,s;for(;s=r.exec(t);){const[c]=s;if(c==="[")i++;else if(i)c==="]"&&i--;else if(c==="(")o++;else if(c===")"&&(o--,!o)){n=s.index;break}}return t.slice(e,n)}const cn=new RegExp(String.raw`(?<noncapturingStart>${Wl})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Ql(t,e){const r=e?.hiddenCaptures??[];let n=e?.captureTransfers??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:n,hiddenCaptures:r};const i="(?>",o="(?:(?=(",s=[0],c=[];let u=0,m=0,p=NaN,f;do{f=!1;let _=0,y=0,w=!1,k;for(cn.lastIndex=Number.isNaN(p)?0:p+o.length;k=cn.exec(t);){const{0:S,index:I,groups:{capturingStart:R,noncapturingStart:C}}=k;if(S==="[")_++;else if(_)S==="]"&&_--;else if(S===i&&!w)p=I,w=!0;else if(w&&C)y++;else if(R)w?y++:(u++,s.push(u+m));else if(S===")"&&w){if(!y){m++;const T=u+m;if(t=`${t.slice(0,p)}${o}${t.slice(p+i.length,I)}))<$$${T}>)${t.slice(I+1)}`,f=!0,c.push(T),Hl(r,T),n.size){const L=new Map;n.forEach((B,z)=>{L.set(z>=T?z+1:z,B.map(H=>H>=T?H+1:H))}),n=L}break}y--}}}while(f);return r.push(...c),t=Ar(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:_,groups:{backrefNum:y,wrappedBackrefNum:w}})=>{if(y){const k=+y;if(k>s.length-1)throw new Error(`Backref "${_}" greater than number of captures`);return`\\${s[k]}`}return`\\${w}`},Z.DEFAULT),{pattern:t,captureTransfers:n,hiddenCaptures:r}}const Ei=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ut=new RegExp(String.raw`
|
|
46
|
+
\\(?: \d+
|
|
47
|
+
| c[A-Za-z]
|
|
48
|
+
| [gk]<[^>]+>
|
|
49
|
+
| [pPu]\{[^\}]+\}
|
|
50
|
+
| u[A-Fa-f\d]{4}
|
|
51
|
+
| x[A-Fa-f\d]{2}
|
|
52
|
+
)
|
|
53
|
+
| \((?: \? (?: [:=!>]
|
|
54
|
+
| <(?:[=!]|[^>]+>)
|
|
55
|
+
| [A-Za-z\-]+:
|
|
56
|
+
| \(DEFINE\)
|
|
57
|
+
))?
|
|
58
|
+
| (?<qBase>${Ei})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
59
|
+
| \\?.
|
|
60
|
+
`.replace(/\s+/g,""),"gsu");function Jl(t){if(!new RegExp(`${Ei}\\+`).test(t))return{pattern:t};const e=[];let r=null,n=null,i="",o=0,s;for(Ut.lastIndex=0;s=Ut.exec(t);){const{0:c,index:u,groups:{qBase:m,qMod:p,invalidQ:f}}=s;if(c==="[")o||(n=u),o++;else if(c==="]")o?o--:n=null;else if(!o)if(p==="+"&&i&&!i.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${c}"`);let _=-1;if(/^\{\d+\}$/.test(m))t=zl(t,u+m.length,p,"");else{if(i===")"||i==="]"){const y=i===")"?r:n;if(y===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,y)}(?>${t.slice(y,u)}${m})${t.slice(u+c.length)}`}else t=`${t.slice(0,u-i.length)}(?>${i}${m})${t.slice(u+c.length)}`;_+=4}Ut.lastIndex+=_}else c[0]==="("?e.push(u):c===")"&&(r=e.length?e.pop():null);i=c}return{pattern:t}}const Y=String.raw,Kl=Y`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,sr=Y`\(\?R=(?<rDepth>[^\)]+)\)|${Kl}`,xt=Y`\(\?<(?![=!])(?<captureName>[^>]+)>`,wi=Y`${xt}|(?<unnamed>\()(?!\?)`,ye=new RegExp(Y`${xt}|${sr}|\(\?|\\?.`,"gsu"),jt="Cannot use multiple overlapping recursions";function Yl(t,e){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...e};let i=e?.captureTransfers??new Map;if(!new RegExp(sr,"su").test(t))return{pattern:t,captureTransfers:i,hiddenCaptures:r};if(n==="plugin"&&at(t,Y`\(\?\(DEFINE\)`,Z.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],s=at(t,Y`\\[1-9]`,Z.DEFAULT),c=new Map,u=[];let m=!1,p=0,f=0,_;for(ye.lastIndex=0;_=ye.exec(t);){const{0:y,groups:{captureName:w,rDepth:k,gRNameOrNum:S,gRDepth:I}}=_;if(y==="[")p++;else if(p)y==="]"&&p--;else if(k){if(pn(k),m)throw new Error(jt);if(s)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const R=t.slice(0,_.index),C=t.slice(ye.lastIndex);if(at(C,sr,Z.DEFAULT))throw new Error(jt);const T=+k-1;t=mn(R,C,T,!1,r,o,f),i=dn(i,R,T,o.length,0,f);break}else if(S){pn(I);let R=!1;for(const re of u)if(re.name===S||re.num===+S){if(R=!0,re.hasRecursedWithin)throw new Error(jt);break}if(!R)throw new Error(Y`Recursive \g cannot be used outside the referenced group "${n==="external"?S:Y`\g<${S}&R=${I}>`}"`);const C=c.get(S),T=Xl(t,C);if(s&&at(T,Y`${xt}|\((?!\?)`,Z.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const L=t.slice(C,_.index),B=T.slice(L.length+y.length),z=o.length,H=+I-1,ge=mn(L,B,H,!0,r,o,f);i=dn(i,L,H,o.length-z,z,f);const Ce=t.slice(0,C),_e=t.slice(C+T.length);t=`${Ce}${ge}${_e}`,ye.lastIndex+=ge.length-y.length-L.length-B.length,u.forEach(re=>re.hasRecursedWithin=!0),m=!0}else if(w)f++,c.set(String(f),ye.lastIndex),c.set(w,ye.lastIndex),u.push({num:f,name:w});else if(y[0]==="("){const R=y==="(";R&&(f++,c.set(String(f),ye.lastIndex)),u.push(R?{num:f}:{})}else y===")"&&u.pop()}return r.push(...o),{pattern:t,captureTransfers:i,hiddenCaptures:r}}function pn(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function mn(t,e,r,n,i,o,s){const c=new Set;n&&yi(t+e,xt,({groups:{captureName:m}})=>{c.add(m)},Z.DEFAULT);const u=[r,n?c:null,i,o,s];return`${t}${hn(`(?:${t}`,"forward",...u)}(?:)${hn(`${e})`,"backward",...u)}${e}`}function hn(t,e,r,n,i,o,s){const u=p=>e==="forward"?p+2:r-p+2-1;let m="";for(let p=0;p<r;p++){const f=u(p);m+=Ar(t,Y`${wi}|\\k<(?<backref>[^>]+)>`,({0:_,groups:{captureName:y,unnamed:w,backref:k}})=>{if(k&&n&&!n.has(k))return _;const S=`_$${f}`;if(w||y){const I=s+o.length+1;return o.push(I),Zl(i,I),w?_:`(?<${y}${S}>`}return Y`\k<${k}${S}>`},Z.DEFAULT)}return m}function Zl(t,e){for(let r=0;r<t.length;r++)t[r]>=e&&t[r]++}function dn(t,e,r,n,i,o){if(t.size&&n){let s=0;yi(e,wi,()=>s++,Z.DEFAULT);const c=o-s+i,u=new Map;return t.forEach((m,p)=>{const f=(n-s*r)/r,_=s*r,y=p>c+s?p+n:p,w=[];for(const k of m)if(k<=c)w.push(k);else if(k>c+s+f)w.push(k+n);else if(k<=c+s)for(let S=0;S<=r;S++)w.push(k+s*S);else for(let S=0;S<=r;S++)w.push(k+_+f*S);u.set(y,w)}),u}return t}var F=String.fromCodePoint,x=String.raw,ce={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};ce.bugFlagVLiteralHyphenIsRange=ce.unicodeSets?(()=>{try{new RegExp(x`[\d\-a]`,"v")}catch{return!0}return!1})():!1;ce.bugNestedClassIgnoresNegation=ce.unicodeSets&&new RegExp("[[^a]]","v").test("a");function wt(t,{enable:e,disable:r}){return{dotAll:!r?.dotAll&&!!(e?.dotAll||t.dotAll),ignoreCase:!r?.ignoreCase&&!!(e?.ignoreCase||t.ignoreCase)}}function Je(t,e,r){return t.has(e)||t.set(e,r),t.get(e)}function ar(t,e){return fn[t]>=fn[e]}function eu(t,e){if(t==null)throw new Error(e??"Value expected");return t}var fn={ES2025:2025,ES2024:2024,ES2018:2018},tu={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function bi(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!tu[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=ce.flagGroups?"ES2025":ce.unicodeSets?"ES2024":"ES2018"),e}var ru="[ -\r ]",nu=new Set([F(304),F(305)]),ae=x`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ai(t){if(nu.has(t))return[t];const e=new Set,r=t.toLowerCase(),n=r.toUpperCase(),i=su.get(r),o=iu.get(r),s=ou.get(r);return[...n].length===1&&e.add(n),s&&e.add(s),i&&e.add(i),e.add(r),o&&e.add(o),[...e]}var Ir=new Map(`C Other
|
|
61
|
+
Cc Control cntrl
|
|
62
|
+
Cf Format
|
|
63
|
+
Cn Unassigned
|
|
64
|
+
Co Private_Use
|
|
65
|
+
Cs Surrogate
|
|
66
|
+
L Letter
|
|
67
|
+
LC Cased_Letter
|
|
68
|
+
Ll Lowercase_Letter
|
|
69
|
+
Lm Modifier_Letter
|
|
70
|
+
Lo Other_Letter
|
|
71
|
+
Lt Titlecase_Letter
|
|
72
|
+
Lu Uppercase_Letter
|
|
73
|
+
M Mark Combining_Mark
|
|
74
|
+
Mc Spacing_Mark
|
|
75
|
+
Me Enclosing_Mark
|
|
76
|
+
Mn Nonspacing_Mark
|
|
77
|
+
N Number
|
|
78
|
+
Nd Decimal_Number digit
|
|
79
|
+
Nl Letter_Number
|
|
80
|
+
No Other_Number
|
|
81
|
+
P Punctuation punct
|
|
82
|
+
Pc Connector_Punctuation
|
|
83
|
+
Pd Dash_Punctuation
|
|
84
|
+
Pe Close_Punctuation
|
|
85
|
+
Pf Final_Punctuation
|
|
86
|
+
Pi Initial_Punctuation
|
|
87
|
+
Po Other_Punctuation
|
|
88
|
+
Ps Open_Punctuation
|
|
89
|
+
S Symbol
|
|
90
|
+
Sc Currency_Symbol
|
|
91
|
+
Sk Modifier_Symbol
|
|
92
|
+
Sm Math_Symbol
|
|
93
|
+
So Other_Symbol
|
|
94
|
+
Z Separator
|
|
95
|
+
Zl Line_Separator
|
|
96
|
+
Zp Paragraph_Separator
|
|
97
|
+
Zs Space_Separator
|
|
98
|
+
ASCII
|
|
99
|
+
ASCII_Hex_Digit AHex
|
|
100
|
+
Alphabetic Alpha
|
|
101
|
+
Any
|
|
102
|
+
Assigned
|
|
103
|
+
Bidi_Control Bidi_C
|
|
104
|
+
Bidi_Mirrored Bidi_M
|
|
105
|
+
Case_Ignorable CI
|
|
106
|
+
Cased
|
|
107
|
+
Changes_When_Casefolded CWCF
|
|
108
|
+
Changes_When_Casemapped CWCM
|
|
109
|
+
Changes_When_Lowercased CWL
|
|
110
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
111
|
+
Changes_When_Titlecased CWT
|
|
112
|
+
Changes_When_Uppercased CWU
|
|
113
|
+
Dash
|
|
114
|
+
Default_Ignorable_Code_Point DI
|
|
115
|
+
Deprecated Dep
|
|
116
|
+
Diacritic Dia
|
|
117
|
+
Emoji
|
|
118
|
+
Emoji_Component EComp
|
|
119
|
+
Emoji_Modifier EMod
|
|
120
|
+
Emoji_Modifier_Base EBase
|
|
121
|
+
Emoji_Presentation EPres
|
|
122
|
+
Extended_Pictographic ExtPict
|
|
123
|
+
Extender Ext
|
|
124
|
+
Grapheme_Base Gr_Base
|
|
125
|
+
Grapheme_Extend Gr_Ext
|
|
126
|
+
Hex_Digit Hex
|
|
127
|
+
IDS_Binary_Operator IDSB
|
|
128
|
+
IDS_Trinary_Operator IDST
|
|
129
|
+
ID_Continue IDC
|
|
130
|
+
ID_Start IDS
|
|
131
|
+
Ideographic Ideo
|
|
132
|
+
Join_Control Join_C
|
|
133
|
+
Logical_Order_Exception LOE
|
|
134
|
+
Lowercase Lower
|
|
135
|
+
Math
|
|
136
|
+
Noncharacter_Code_Point NChar
|
|
137
|
+
Pattern_Syntax Pat_Syn
|
|
138
|
+
Pattern_White_Space Pat_WS
|
|
139
|
+
Quotation_Mark QMark
|
|
140
|
+
Radical
|
|
141
|
+
Regional_Indicator RI
|
|
142
|
+
Sentence_Terminal STerm
|
|
143
|
+
Soft_Dotted SD
|
|
144
|
+
Terminal_Punctuation Term
|
|
145
|
+
Unified_Ideograph UIdeo
|
|
146
|
+
Uppercase Upper
|
|
147
|
+
Variation_Selector VS
|
|
148
|
+
White_Space space
|
|
149
|
+
XID_Continue XIDC
|
|
150
|
+
XID_Start XIDS`.split(/\s/).map(t=>[Tt(t),t])),iu=new Map([["s",F(383)],[F(383),"s"]]),ou=new Map([[F(223),F(7838)],[F(107),F(8490)],[F(229),F(8491)],[F(969),F(8486)]]),su=new Map([he(453),he(456),he(459),he(498),...Wt(8072,8079),...Wt(8088,8095),...Wt(8104,8111),he(8124),he(8140),he(8188)]),au=new Map([["alnum",x`[\p{Alpha}\p{Nd}]`],["alpha",x`\p{Alpha}`],["ascii",x`\p{ASCII}`],["blank",x`[\p{Zs}\t]`],["cntrl",x`\p{Cc}`],["digit",x`\p{Nd}`],["graph",x`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",x`\p{Lower}`],["print",x`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",x`[\p{P}\p{S}]`],["space",x`\p{space}`],["upper",x`\p{Upper}`],["word",x`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",x`\p{AHex}`]]);function lu(t,e){const r=[];for(let n=t;n<=e;n++)r.push(n);return r}function he(t){const e=F(t);return[e.toLowerCase(),e]}function Wt(t,e){return lu(t,e).map(r=>he(r))}var Ii=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function uu(t,e){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};Ci(t);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ar(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};je(t,cu,n);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};je(t,pu,o);const s={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return je(t,mu,s),t._originMap=o.groupOriginByCopy,t._strategy=n.strategy,t}var cu={AbsenceFunction({node:t,parent:e,replaceWith:r}){const{body:n,kind:i}=t;if(i==="repeater"){const o=te();o.body[0].body.push(we({negate:!0,body:n}),ve("Any"));const s=te();s.body[0].body.push(fi("greedy",0,1/0,o)),r($(s,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:r},{flagDirectivesByAlt:n}){const i=t.body.filter(o=>o.kind==="flags");for(let o=r+1;o<e.body.length;o++){const s=e.body[o];Je(n,s,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){if(e.get(t)?.length){const r=Si(e.get(t));if(r){const n=te({flags:r});n.body[0].body=t.body,t.body=[$(n,t)]}}}},Assertion({node:t,parent:e,key:r,container:n,root:i,remove:o,replaceWith:s},c){const{kind:u,negate:m}=t,{asciiWordBoundaries:p,avoidSubclass:f,supportedGNodes:_,wordIsAscii:y}=c;if(u==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${m?"Y":"y"}"`);if(u==="line_end")s($(we({body:[Ie({body:[nr("string_end")]}),Ie({body:[Rt(10)]})]}),e));else if(u==="line_start")s($(le(x`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(u==="search_start")if(_.has(t))i.flags.sticky=!0,o();else{const w=n[r-1];if(w&&yu(w))s($(we({negate:!0}),e));else{if(f)throw new Error(x`Uses "\G" in a way that requires a subclass`);s(de(nr("string_start"),e)),c.strategy="clip_search"}}else if(!(u==="string_end"||u==="string_start"))if(u==="string_end_newline")s($(le(x`(?=\n?\z)`),e));else if(u==="word_boundary"){if(!y&&!p){const w=`(?:(?<=${ae})(?!${ae})|(?<!${ae})(?=${ae}))`,k=`(?:(?<=${ae})(?=${ae})|(?<!${ae})(?!${ae}))`;s($(le(m?k:w),e))}}else throw new Error(`Unexpected assertion kind "${u}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!zt(r)&&(r=Ht(r,e),t.ref=r)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:r}){let{name:n}=t;n&&!zt(n)&&(n=Ht(n,e),t.name=n),r.set(t.number,t),n&&r.set(n,t)},CharacterClassRange({node:t,parent:e,replaceWith:r}){if(e.kind==="intersection"){const n=pt({body:[t]});r($(n,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:o,spaceIsAscii:s,wordIsAscii:c}){const{kind:u,negate:m,value:p}=t;if(o&&(u==="digit"||p==="digit")){r(de(or("digit",{negate:m}),e));return}if(s&&(u==="space"||p==="space")){r($(qt(le(ru),m),e));return}if(c&&(u==="word"||p==="word")){r(de(or("word",{negate:m}),e));return}if(u==="any")r(de(ve("Any"),e));else if(u==="digit")r(de(ve("Nd",{negate:m}),e));else if(u!=="dot")if(u==="text_segment"){if(n==="strict")throw new Error(x`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",_=x`\p{RI}{2}|${f}(?:\u200D${f})*`;r($(le(x`(?>\r\n|${i?x`\p{RGI_Emoji}`:_}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(u==="hex")r(de(ve("AHex",{negate:m}),e));else if(u==="newline")r($(le(m?`[^
|
|
151
|
+
]`:`(?>\r
|
|
152
|
+
?|[
|
|
153
|
+
\v\f
\u2028\u2029])`),e));else if(u==="posix")if(!i&&(p==="graph"||p==="print")){if(n==="strict")throw new Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[p];m&&(f=`\0-${F(f.codePointAt(0)-1)}${F(f.codePointAt(2)+1)}-`),r($(le(`[${f}]`),e))}else r($(qt(le(au.get(p)),m),e));else if(u==="property")Ir.has(Tt(p))||(t.key="sc");else if(u==="space")r(de(ve("space",{negate:m}),e));else if(u==="word")r($(qt(le(ae),m),e));else throw new Error(`Unexpected character set kind "${u}"`)},Directive({node:t,parent:e,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:s}){const{kind:c,flags:u}=t;if(c==="flags")if(!u.enable&&!u.disable)n();else{const m=te({flags:u});m.body[0].body=s(),i($(m,e),{traverse:!0})}else if(c==="keep"){const m=r.body[0],f=r.body.length===1&&mi(m,{type:"Group"})&&m.body[0].body.length===1?m.body[0]:r;if(e.parent!==f||f.body.length>1)throw new Error(x`Uses "\K" in a way that's unsupported`);const _=we({behind:!0});_.body[0].body=o(),i($(_,e))}else throw new Error(`Unexpected directive kind "${c}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete t[r]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:r}=t.flags;e?.extended&&delete e.extended,r?.extended&&delete r.extended,e?.dotAll&&r?.dotAll&&delete e.dotAll,e?.ignoreCase&&r?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,r&&!Object.keys(r).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){const{kind:r}=t;r==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:r}){const{kind:n}=t;if(n==="fail")r($(we({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){const e=te();e.body[0].body.push(t.body),t.body=$(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){const r=[];let n=!1,i=!1;for(const o of t.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const s=Ti(o.body);s?(n=!0,Array.isArray(s)?r.push(...s):r.push(s)):i=!0}n&&!i&&r.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:r,strategy:n}){if(e==="strict"&&r&&n)throw new Error(x`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!zt(r)&&(r=Ht(r,e),t.ref=r)}},pu={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=t;n||r.set(t,[...e.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:s,openRefs:c,reffedNodesByReferencer:u}){const m=i.get(t);if(m&&c.has(t.number)){const f=de(gn(t.number),e);u.set(f,c.get(t.number)),r(f);return}c.set(t.number,t),s.set(t.number,[]),t.name&&Je(s,t.name,[]);const p=s.get(t.name??t.number);for(let f=0;f<p.length;f++){const _=p[f];if(m===_.node||m&&m===_.origin||t===_.origin){p.splice(f,1);break}}if(s.get(t.number).push({node:t,origin:m}),t.name&&s.get(t.name).push({node:t,origin:m}),t.name){const f=Je(o,t.name,new Map);let _=!1;if(m)_=!0;else for(const y of f.values())if(!y.hasDuplicateNameToRemove){_=!0;break}o.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:_})}},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=wt(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:r},n){const{isRecursive:i,ref:o}=t;if(i){let p=e;for(;(p=p.parent)&&!(p.type==="CapturingGroup"&&(p.name===o||p.number===o)););n.reffedNodesByReferencer.set(t,p);return}const s=n.subroutineRefMap.get(o),c=o===0,u=c?gn(0):ki(s,n.groupOriginByCopy,null);let m=u;if(!c){const p=Si(fu(s,_=>_.type==="Group"&&!!_.flags)),f=p?wt(n.globalFlags,p):n.globalFlags;hu(f,n.currentFlags)||(m=te({flags:gu(f)}),m.body[0].body.push(u))}r($(m,e),{traverse:!c})}},mu={Backreference({node:t,parent:e,replaceWith:r},n){if(t.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,t.ref);return}const o=n.reffedNodesByReferencer.get(t).filter(s=>du(s,t));if(!o.length)r($(we({negate:!0}),e));else if(o.length>1){const s=te({atomic:!0,body:o.reverse().map(c=>Ie({body:[ir(c.number)]}))});r($(s,e))}else t.ref=o[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){const r=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=di();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function Ci(t){je(t,{"*"({node:e,parent:r}){e.parent=r}})}function hu(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function du(t,e){let r=e;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===t)return!1;const n=Ri(r.parent);for(const i of n){if(i===r)break;if(i===t||xi(i,t))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function ki(t,e,r,n){const i=Array.isArray(t)?[]:{};for(const[o,s]of Object.entries(t))o==="parent"?i.parent=Array.isArray(r)?n:r:s&&typeof s=="object"?i[o]=ki(s,e,i,r):(o==="type"&&s==="CapturingGroup"&&e.set(i,e.get(t)??t),i[o]=s);return i}function gn(t){const e=gi(t);return e.isRecursive=!0,e}function fu(t,e){const r=[];for(;t=t.parent;)(!e||e(t))&&r.push(t);return r}function Ht(t,e){if(e.has(t))return e.get(t);const r=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,r),r}function Si(t){const e=["dotAll","ignoreCase"],r={enable:{},disable:{}};return t.forEach(({flags:n})=>{e.forEach(i=>{n.enable?.[i]&&(delete r.disable[i],r.enable[i]=!0),n.disable?.[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function gu({dotAll:t,ignoreCase:e}){const r={};return(t||e)&&(r.enable={},t&&(r.enable.dotAll=!0),e&&(r.enable.ignoreCase=!0)),(!t||!e)&&(r.disable={},!t&&(r.disable.dotAll=!0),!e&&(r.disable.ignoreCase=!0)),r}function Ri(t){if(!t)throw new Error("Node expected");const{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function Ti(t){const e=t.find(r=>r.kind==="search_start"||Eu(r,{negate:!1})||!_u(r));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const r=[];for(const n of e.body){const i=Ti(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function xi(t,e){const r=Ri(t)??[];for(const n of r)if(n===e||xi(n,e))return!0;return!1}function _u({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function yu(t){const e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function Eu(t,e){const r={negate:null,...e};return t.type==="LookaroundAssertion"&&(r.negate===null||t.negate===r.negate)&&t.body.length===1&&mi(t.body[0],{type:"Assertion",kind:"search_start"})}function zt(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function le(t,e){const n=hi(t,{...e,unicodePropertyMap:Ir}).body;return n.length>1||n[0].body.length>1?te({body:n}):n[0].body[0]}function qt(t,e){return t.negate=e,t}function de(t,e){return t.parent=e,t}function $(t,e){return Ci(t),t.parent=e,t}function wu(t,e){const r=bi(e),n=ar(r.target,"ES2024"),i=ar(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,c=null;if(!i){const y=[t.flags.ignoreCase];je(t,bu,{getCurrentModI:()=>y.at(-1),popModI(){y.pop()},pushModI(w){y.push(w)},setHasCasedChar(){y.at(-1)?s=!0:c=!0}})}const u={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||s)&&!c)};let m=t;const p={accuracy:r.accuracy,appliedGlobalFlags:u,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:m,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&s&&c),useFlagMods:i,useFlagV:n,verbose:r.verbose};function f(y){return p.lastNode=m,m=y,eu(Au[y.type],`Unexpected node type "${y.type}"`)(y,p,f)}const _={pattern:t.body.map(f).join("|"),flags:f(t.flags),options:{...t.options}};return n||(delete _.options.force.v,_.options.disable.v=!0,_.options.unicodeSetsPlugin=null),_._captureTransfers=new Map,_._hiddenCaptures=[],p.captureMap.forEach((y,w)=>{y.hidden&&_._hiddenCaptures.push(w),y.transferTo&&Je(_._captureTransfers,y.transferTo,[]).push(w)}),_}var bu={"*":{enter({node:t},e){if(yn(t)){const r=e.getCurrentModI();e.pushModI(t.flags?wt({ignoreCase:r},t.flags).ignoreCase:r)}},exit({node:t},e){yn(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){Cr(F(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},r){e(),Li(t,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&Ii.has(t.value)&&e.setHasCasedChar()}},Au={Alternative({body:t},e,r){return t.map(r).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?x`\B`:x`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,r){const{body:n,name:i,number:o}=t,s={ignoreCase:e.currentFlags.ignoreCase},c=e.originMap.get(t);return c&&(s.hidden=!0,o>c.number&&(s.transferTo=c.number)),e.captureMap.set(o,s),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:t},e){const r=F(t),n=xe(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(n!==r)return n;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&Cr(r)){const i=Ai(r);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(t,e,r){const{kind:n,negate:i,parent:o}=t;let{body:s}=t;if(n==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");ce.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&s.some(En)&&(s=[Rt(45),...s.filter(m=>!En(m))]);const c=()=>`[${i?"^":""}${s.map(r).join(n==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||ce.bugNestedClassIgnoresNegation)&&!i){const p=s.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(p.length){const f=te(),_=f.body[0];return f.parent=o,_.parent=f,s=s.filter(y=>!p.includes(y)),t.body=s,s.length?(t.parent=_,_.body.push(t)):f.body.pop(),p.forEach(y=>{const w=Ie({body:[y]});y.parent=w,w.parent=f,f.body.push(w)}),r(f)}}e.inCharClass=!0;const m=c();return e.inCharClass=!1,m}const u=s[0];if(n==="union"&&!i&&u&&((!e.useFlagV||!e.verbose)&&o.kind==="union"&&!(ce.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&o.kind==="intersection"&&s.length===1&&u.type!=="CharacterClassRange"))return s.map(r).join("");if(!e.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return c()},CharacterClassRange(t,e){const r=t.min.value,n=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},o=xe(r,i),s=xe(n,i),c=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const u=Li(t);Ru(u).forEach(p=>{c.add(Array.isArray(p)?`${xe(p[0],i)}-${xe(p[1],i)}`:xe(p,i))})}return`${o}-${s}${[...c].join("")}`},CharacterSet({kind:t,negate:e,value:r,key:n},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":x`[^\n]`;if(t==="digit")return e?x`\D`:x`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Ii.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${e?x`\P`:x`\p`}{${n?`${n}=`:""}${r}}`}if(t==="word")return e?x`\W`:x`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:r,parent:n},i,o){const s=i.currentFlags;r&&(i.currentFlags=wt(s,r));const c=e.map(o).join("|"),u=!i.verbose&&e.length===1&&n.type!=="Quantifier"&&!t&&(!i.useFlagMods||!r)?c:`(?${Tu(t,r,i.useFlagMods)}${c})`;return i.currentFlags=s,u},LookaroundAssertion({body:t,kind:e,negate:r},n,i){return`(?${`${e==="lookahead"?"":"<"}${r?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,r){return r(t.body)+xu(t)},Subroutine({isRecursive:t,ref:e},r){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return e===0?`(?R=${n})`:x`\g<${e}&R=${n}>`}},Iu=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Cu=new Set(["-","\\","]","^","["]),ku=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),_n=new Map([[9,x`\t`],[10,x`\n`],[11,x`\v`],[12,x`\f`],[13,x`\r`],[8232,x`\u2028`],[8233,x`\u2029`],[65279,x`\uFEFF`]]),Su=new RegExp("^\\p{Cased}$","u");function Cr(t){return Su.test(t)}function Li(t,e){const r=!!e?.firstOnly,n=t.min.value,i=t.max.value,o=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return o;for(let s=n;s<=i;s++){const c=F(s);if(!Cr(c))continue;const u=Ai(c).filter(m=>{const p=m.codePointAt(0);return p<n||p>i});if(u.length&&(o.push(...u),r))break}return o}function xe(t,{escDigit:e,inCharClass:r,useFlagV:n}){if(_n.has(t))return _n.get(t);if(t<32||t>126&&t<160||t>262143||e&&Lu(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?ku:Cu:Iu,o=F(t);return(i.has(o)?"\\":"")+o}function Ru(t){const e=t.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),r=[];let n=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?n??=e[i]:n===null?r.push(e[i]):(r.push([n,e[i]]),n=null);return r}function Tu(t,e,r){if(t)return">";let n="";if(e&&r){const{enable:i,disable:o}=e;n=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${n}:`}function xu({kind:t,max:e,min:r}){let n;return!r&&e===1?n="?":!r&&e===1/0?n="*":r===1&&e===1/0?n="+":r===e?n=`{${r}}`:n=`{${r},${e===1/0?"":e}}`,n+{greedy:"",lazy:"?",possessive:"+"}[t]}function yn({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function Lu(t){return t>47&&t<58}function En({type:t,value:e}){return t==="Character"&&e===45}var vu=class lr extends RegExp{#t=new Map;#e=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(e,r,n){const i=!!n?.lazyCompile;if(e instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const o=e;super(o,r),this.#n=o.source,o instanceof lr&&(this.#t=o.#t,this.#r=o.#r,this.#i=o.#i,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":e,r),this.#n=e,this.#t=Ou(o.hiddenCaptures,o.transfers),this.#i=o.strategy,this.rawOptions=n??{}}i||(this.#e=this)}exec(e){if(!this.#e){const{lazyCompile:i,...o}=this.rawOptions;this.#e=new lr(this.#n,this.flags,o)}const r=this.global||this.sticky,n=this.lastIndex;if(this.#i==="clip_search"&&r&&n){this.lastIndex=0;const i=this.#o(e.slice(n));return i&&(Pu(i,n,e,this.hasIndices),this.lastIndex+=n),i}return this.#o(e)}#o(e){this.#e.lastIndex=this.lastIndex;const r=super.exec.call(this.#e,e);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;const n=[...r];r.length=1;let i;this.hasIndices&&(i=[...r.indices],r.indices.length=1);const o=[0];for(let s=1;s<n.length;s++){const{hidden:c,transferTo:u}=this.#t.get(s)??{};if(c?o.push(null):(o.push(r.length),r.push(n[s]),this.hasIndices&&r.indices.push(i[s])),u&&n[s]!==void 0){const m=o[u];if(!m)throw new Error(`Invalid capture transfer to "${m}"`);if(r[m]=n[s],this.hasIndices&&(r.indices[m]=i[s]),r.groups){this.#r||(this.#r=Du(this.source));const p=this.#r.get(u);p&&(r.groups[p]=n[s],this.hasIndices&&(r.indices.groups[p]=i[s]))}}}return r}};function Pu(t,e,r,n){if(t.index+=e,t.input=r,n){const i=t.indices;for(let s=0;s<i.length;s++){const c=i[s];c&&(i[s]=[c[0]+e,c[1]+e])}const o=i.groups;o&&Object.keys(o).forEach(s=>{const c=o[s];c&&(o[s]=[c[0]+e,c[1]+e])})}}function Ou(t,e){const r=new Map;for(const n of t)r.set(n,{hidden:!0});for(const[n,i]of e)for(const o of i)Je(r,o,{}).transferTo=n;return r}function Du(t){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,o;for(;o=e.exec(t);){const{0:s,groups:{capture:c,name:u}}=o;s==="["?n++:n?s==="]"&&n--:c&&(i++,u&&r.set(i,u))}return r}function Nu(t,e){const r=Bu(t,e);return r.options?new vu(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function Bu(t,e){const r=bi(e),n=hi(t,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:Ir}),i=uu(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=wu(i,r),s=Yl(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),c=Jl(s.pattern),u=Ql(c.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),m={pattern:u.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const p=u.hiddenCaptures.sort((w,k)=>w-k),f=Array.from(u.captureTransfers),_=i._strategy,y=m.pattern.length>=r.lazyCompileLength;(p.length||f.length||_||y)&&(m.options={...p.length&&{hiddenCaptures:p},...f.length&&{transfers:f},..._&&{strategy:_},...y&&{lazyCompile:y}})}return m}const wn=4294967295;class $u{constructor(e,r={}){this.patterns=e,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:o}=r;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(s=>{if(typeof s!="string")return s;const c=i?.get(s);if(c){if(c instanceof RegExp)return c;if(n)return null;throw c}try{const u=o(s);return i?.set(s,u),u}catch(u){if(i?.set(s,u),n)return null;throw u}})}regexps;findNextMatchSync(e,r,n){const i=typeof e=="string"?e:e.content,o=[];function s(c,u,m=0){return{index:c,captureIndices:u.indices.map(p=>p==null?{start:wn,end:wn,length:0}:{start:p[0]+m,end:p[1]+m,length:p[1]-p[0]})}}for(let c=0;c<this.regexps.length;c++){const u=this.regexps[c];if(u)try{u.lastIndex=r;const m=u.exec(i);if(!m)continue;if(m.index===r)return s(c,m,0);o.push([c,m,0])}catch(m){if(this.options.forgiving)continue;throw m}}if(o.length){const c=Math.min(...o.map(u=>u[1].index));for(const[u,m,p]of o)if(m.index===c)return s(u,m,p)}return null}}function Vu(t,e){return Nu(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function ic(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||=r=>Vu(r,{target:e.target}),{createScanner(r){return new $u(r,e)},createString(r){return{content:r}}}}export{V as ShikiError,Hn as addClassToHast,fe as applyColorReplacements,ka as bundledLanguages,Ca as bundledLanguagesAlias,Ia as bundledLanguagesBase,ni as bundledLanguagesInfo,Ra as bundledThemes,Sa as bundledThemesInfo,Yu as codeToHast,Ku as codeToHtml,Zu as codeToTokens,ec as codeToTokensBase,tc as codeToTokensWithThemes,ri as createBundledHighlighter,Qu as createCssVariablesTheme,Za as createHighlighter,ti as createHighlighterCore,zu as createHighlighterCoreSync,ic as createJavaScriptRegexEngine,Ya as createOnigurumaEngine,Ms as createPositionConverter,Ea as createShikiInternal,ei as createShikiInternalSync,Aa as createSingletonShorthands,Xu as createdBundledHighlighter,Vu as defaultJavaScriptRegexConstructor,Wu as enableDeprecationWarnings,Ws as flatTokenVariants,nc as getLastGrammarState,rc as getSingletonHighlighter,qu as getSingletonHighlighterCore,yt as getTokenStyleObject,Fs as guessEmbeddedLanguages,fa as hastToHtml,hr as isNoneTheme,mr as isPlainLang,jn as isSpecialLang,Wn as isSpecialTheme,Qa as loadWasm,ba as makeSingletonHighlighter,wa as makeSingletonHighlighterCore,Un as normalizeGetter,_r as normalizeTheme,_t as resolveColorReplacements,bt as splitLines,Us as splitToken,js as splitTokens,rr as stringifyTokenStyle,Vs as toArray,na as tokenizeAnsiWithTheme,oa as tokenizeWithTheme,pa as tokensToHast,qs as transformerDecorations,ga as warnDeprecated};
|